@salesforce/storefront-next-dev 1.1.0-alpha.0 → 1.1.0-alpha.2

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.
package/dist/mrt/ssr.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"./sfnext-server-chunk-DUt5XHAg.mjs";import o from"node:process";import s from"node:os";import c from"node:tty";import l from"path";import u from"node:zlib";import{resolve as d}from"node:path";import{existsSync as f,readFileSync as p}from"node:fs";import{pathToFileURL as m}from"node:url";var h=a(((e,t)=>{let n=e=>typeof e==`function`?e():e,r={debug:[[`debug`,`debug`],[`verbose`,`debug`],[`info`,`info`],[`error`,`error`],[`warn`,`warn`]],verbose:[[`verbose`,`debug`],[`info`,`info`],[`error`,`error`],[`warn`,`warn`]],info:[[`info`,`info`],[`error`,`error`],[`warn`,`warn`]],warn:[[`warn`,`warn`],[`error`,`error`]],error:[[`error`,`error`]],none:[]},i=e=>(t,...r)=>console[e]({message:n(t),...Array.isArray(r)?r.map(n):[]}),a=()=>{};function o({level:e=`error`}={}){let t=r[e],n={error:a,debug:a,info:a,verbose:a,warn:a};if(!t)return n;for(let[e,r]of t)n[e]=i(r);return n}t.exports=o})),g=a(((e,t)=>{let n={};function r(){return n}function i({event:e,context:t}){n.event=e,n.context=t}t.exports={getCurrentInvoke:r,setCurrentInvoke:i}})),_=a(((e,n)=>{let r=t(`url`);function i({event:e,query:t=e.multiValueQueryStringParameters,path:n=e.pathParameters&&e.pathParameters.proxy&&`/${e.pathParameters.proxy}`||e.path,stripBasePath:i=``,replaceRegex:a=RegExp(`^${i}`)}){return r.format({pathname:n.replace(a,``),query:t})}function a({event:e,body:t=e.body,isBase64Encoded:n=e.isBase64Encoded}){return Buffer.from(t,n?`base64`:`utf8`)}function o({event:e,method:t=e.httpMethod,path:n=i({event:e})}){let r={};e.multiValueHeaders?r=l({headersMap:e.multiValueHeaders,lowerCaseKey:!0}):e.headers&&(r=e.headers);let o;if(e.body){o=a({event:e});let{isBase64Encoded:t}=e;r[`content-length`]=Buffer.byteLength(o,t?`base64`:`utf8`)}let s=e&&e.requestContext&&e.requestContext.identity&&e.requestContext.identity.sourceIp||``;return{method:t,headers:r,body:o,remoteAddress:s,path:n}}function s({headers:e}){let t={};return Object.entries(e).forEach(([e,n])=>{let r=Array.isArray(n)?n.map(String):[String(n)];t[e.toLowerCase()]=r}),t}function c({event:e}){if(e.requestContext&&e.requestContext.elb)return`AWS_ALB`;if(e.headers?.[`x-amzn-lattice-network`]&&console.warn(`Lattice event v1 is not supported. Please use Lattice event v2.`),e.requestContext&&e.requestContext.serviceNetworkArn&&e.requestContext.serviceArn)return`AWS_VPC_LATTICE_V2`;if(e.eventSource===`SelfManagedKafka`)return`AWS_SELF_MANAGED_KAFKA`;if(e.Records){let t=e.Records[0]?e.Records[0].EventSource||e.Records[0].eventSource:void 0;return t===`aws:sns`?`AWS_SNS`:t===`aws:dynamodb`?`AWS_DYNAMODB`:t===`aws:sqs`?`AWS_SQS`:t===`aws:kinesis`?`AWS_KINESIS_DATA_STREAM`:t===`aws:s3`?`AWS_S3`:`AWS_LAMBDA_EDGE`}if(e.requestContext)return e.version===`2.0`?`AWS_API_GATEWAY_V2`:`AWS_API_GATEWAY_V1`;if(e.traceContext){let e=process.env.FUNCTIONS_EXTENSION_VERSION;if(!e)console.warn(`The environment variable 'FUNCTIONS_EXTENSION_VERSION' is not set. Only the function runtime '~3' is supported.`);else if(e===`~3`)return`AZURE_HTTP_FUNCTION_V3`;else if(e===`~4`)return`AZURE_HTTP_FUNCTION_V4`;else console.warn(`The function runtime '`+e+`' is not supported. Only '~3' and '~4' are supported.`)}if(e.version&&e.version===`0`&&e.id&&e[`detail-type`]&&e.source&&e.account&&e.time&&e.region&&e.resources&&Array.isArray(e.resources)&&e.detail&&typeof e.detail==`object`&&!Array.isArray(e.detail))return`AWS_EVENTBRIDGE`;if(e.context&&e.context.Execution&&e.context.State&&e.context.StateMachine)return`AWS_STEP_FUNCTIONS`;throw Error(`Unable to determine event source based on event.`)}function l({headersMap:e,separator:t=`,`,lowerCaseKey:n=!1}){let r={};return Object.entries(e).forEach(([e,i])=>{let a=n?e.toLowerCase():e;Array.isArray(i)?r[a]=i.join(t):r[a]=i}),r}n.exports={getPathWithQueryStringParams:i,getRequestValuesFromEvent:o,getMultiValueHeaders:s,getEventSourceNameBasedOnEvent:c,getEventBody:a,getCommaDelimitedHeaders:l,emptyResponseMapper:()=>{},parseCookie:e=>e.split(`;`).map(e=>e.split(`=`)).reduce((e,t)=>(t[1]&&(e[decodeURIComponent(t[0].trim().toLowerCase())]=decodeURIComponent(t[1].trim())),e),{})}})),v=a(((e,t)=>{let{getRequestValuesFromEvent:n,getMultiValueHeaders:r}=_(),i=({event:e})=>n({event:e});function a({statusCode:e,body:t,headers:n,isBase64Encoded:i}){let a=r({headers:n}),o=a[`transfer-encoding`];return o&&o.includes(`chunked`)&&(a[`transfer-encoding`]=o.filter(e=>e!==`chunked`)),{statusCode:e,body:t,multiValueHeaders:a,isBase64Encoded:i}}t.exports={getRequest:i,getResponse:a}})),y=a(((e,n)=>{let r=t(`url`),{getEventBody:i,getCommaDelimitedHeaders:a}=_();function o({event:e}){let{requestContext:t,requestPath:n,rawPath:a,rawQueryString:o,cookies:s}=e,c=t.http.method,l=n||a,u=RegExp(`^`),d=r.format({pathname:l.replace(u,``),search:o}),f={};s&&(f.cookie=s.join(`; `)),Object.entries(e.headers).forEach(([e,t])=>{f[e.toLowerCase()]=t});let p;if(e.body){p=i({event:e});let t=e.isBase64Encoded;f[`content-length`]=Buffer.byteLength(p,t?`base64`:`utf8`)}return{method:c,headers:f,body:p,remoteAddress:t.http.sourceIp,path:d}}function s({statusCode:e,body:t,headers:n={},isBase64Encoded:r=!1,response:i={}}){if(n[`transfer-encoding`]===`chunked`||i.chunkedEncoding)throw Error(`chunked encoding is not supported by API Gateway`);let o={statusCode:e,body:t,isBase64Encoded:r},s=n[`set-cookie`];return s&&(o.cookies=Array.isArray(s)?s:[s],delete n[`set-cookie`]),o.headers=a({headersMap:n}),o}n.exports={getRequest:o,getResponse:s}})),b=a(((e,n)=>{let r=t(`url`),{getRequestValuesFromEvent:i,getMultiValueHeaders:a}=_();function o({event:e,path:t=e.pathParameters&&e.pathParameters.proxy&&`/${e.pathParameters.proxy}`||e.path,stripBasePath:n=``,replaceRegex:i=RegExp(`^${n}`)}){let a={};if(e.multiValueQueryStringParameters)for(let t in e.multiValueQueryStringParameters){let n=s(t);a[n]=e.multiValueQueryStringParameters[t].map(e=>s(e))}else for(let t in e.queryStringParameters){let n=s(t);a[n]=s(e.queryStringParameters[t])}return r.format({pathname:t.replace(i,``),query:a})}function s(e){return decodeURIComponent(e.replace(/\+/g,`%20`))}n.exports={getRequest:({event:e})=>i({event:e,path:o({event:e})}),getResponse:({event:e,statusCode:t,body:n,headers:r,isBase64Encoded:i})=>{let o=e.headers?void 0:a({headers:r});return{statusCode:t,body:n,headers:e.headers?Object.entries(r).reduce((e,[t,n])=>(e[t]=Array.isArray(n)?String(n[0]):String(n),e),{}):void 0,multiValueHeaders:o,isBase64Encoded:i}}}})),x=a(((e,n)=>{let r=t(`url`),{getEventBody:i}=_(),a=[`content-length`];function o({event:e}){let{headers:t,uri:n,method:a,querystring:o,body:s={},clientIp:c}=e.Records[0].cf.request,l=null,u={};if(Object.entries(t).forEach(([e,t])=>{u[e]=t.map(e=>e.value).join(`,`)}),s.data){let e=s.encoding===`base64`;l=i({body:s.data,isBase64Encoded:e}),u[`content-length`]=Buffer.byteLength(l,e?`base64`:`utf8`)}let d=r.format({pathname:n,search:o}),{host:f}=u;return{method:a,path:d,headers:u,body:l,remoteAddress:c,host:f,hostname:f}}function s({statusCode:e,body:t,headers:n,isBase64Encoded:r}){let i={};return Object.entries(n).forEach(([e,t])=>{let n=e.toLowerCase();if(a.includes(n))return;if(i[n]||(i[n]=[]),!Array.isArray(t)){i[n].push({key:n,value:t});return}let r=t.map(e=>({key:n,value:e}));i[n].push(...r)}),{status:e,body:t,headers:i,bodyEncoding:r?`base64`:`text`}}n.exports={getRequest:o,getResponse:s}})),S=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`sns.amazonaws.com`},body:e}),getResponse:n}})),C=a(((e,t)=>{t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`sqs.amazonaws.com`},body:e}),getResponse:({body:e})=>{try{return JSON.parse(e)}catch{}}}})),w=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`dynamodb.amazonaws.com`},body:e}),getResponse:n}})),T=a(((e,n)=>{let r=t(`url`),{getCommaDelimitedHeaders:i,parseCookie:a}=_();function o({event:e}){let t=e.req,n=t.method,i=new r.URL(t.url),a=i.pathname+i.search,o={cookies:t.headers.cookie};Object.entries(t.headers).forEach(([e,t])=>{o[e.toLowerCase()]=t});let s=o[`x-forwarded-for`],c=t.rawBody;return c&&(o[`content-length`]=Buffer.byteLength(c,`utf8`)),{method:n,headers:o,body:c,remoteAddress:s,path:a}}function s({statusCode:e,body:t,headers:n={},isBase64Encoded:r=!1,response:o={}}){let s={statusCode:e,body:t,isBase64Encoded:r};r&&(s.body=Buffer.from(t,`base64`),s.isBase64Encoded=!1);let c=[],l=[].concat(n[`set-cookie`]||[]);if(l.length>0){for(let e of l){let t=a(e),n=e.split(`;`)[0].split(`=`),r={name:n[0],value:n[1]};e.toLowerCase().includes(`httponly`)&&(r.httpOnly=!0),e.toLowerCase().includes(`secure`)&&(r.secure=!0),t[`max-age`]&&(r.maxAge=+t[`max-age`]),t.samesite&&(r.sameSite=t.samesite),t.expires&&typeof t.expires==`string`?r.expires=new Date(t.expires):t.expires&&typeof t.expires==`number`&&(r.expires=t.expires),t.path&&(r.path=t.path),t.domain&&(r.domain=t.domain),c.push(r)}s.cookies=c,delete n[`set-cookie`]}return s.headers=i({headersMap:n}),s}n.exports={getRequest:o,getResponse:s}})),E=a(((e,t)=>{let{getRequest:n,getResponse:r}=T();t.exports={getRequest:n,getResponse:r}})),D=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`events.amazonaws.com`},body:e}),getResponse:n}})),O=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`kinesis.amazonaws.com`},body:e}),getResponse:n}})),k=a(((e,t)=>{t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`s3.amazonaws.com`},body:e}),getResponse:({statusCode:e,body:t,headers:n,isBase64Encoded:r})=>({statusCode:e,headers:n,body:t,isBase64Encoded:r})}})),A=a(((e,t)=>{t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`stepfunctions.amazonaws.com`},body:e}),getResponse:({body:e,isBase64Encoded:t=!1})=>{if(t)throw Error(`base64 encoding is not supported`);return JSON.parse(e)}}})),j=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`self-managed-kafka`},body:e}),getResponse:n}})),M=a(((e,t)=>{let{getRequestValuesFromEvent:n,getCommaDelimitedHeaders:r}=_();t.exports={getRequest:({event:e})=>{let t=n({event:e,method:e.method,path:e.path});return t.headers=r({headersMap:e.headers,lowerCaseKey:!0}),t},getResponse:({statusCode:e,body:t,headers:n,isBase64Encoded:i})=>({statusCode:e,body:t,headers:r({headersMap:n}),isBase64Encoded:i})}})),ee=a(((e,t)=>{let n=v(),r=y(),i=b(),a=x(),o=S(),s=C(),c=w(),l=T(),u=E(),d=D(),f=O(),p=k(),m=A(),h=j(),g=M();function _({eventSourceName:e}){switch(e){case`AWS_API_GATEWAY_V1`:return n;case`AWS_API_GATEWAY_V2`:return r;case`AWS_ALB`:return i;case`AWS_LAMBDA_EDGE`:return a;case`AWS_DYNAMODB`:return c;case`AWS_SNS`:return o;case`AZURE_HTTP_FUNCTION_V3`:return l;case`AZURE_HTTP_FUNCTION_V4`:return u;case`AWS_SQS`:return s;case`AWS_EVENTBRIDGE`:return d;case`AWS_KINESIS_DATA_STREAM`:return f;case`AWS_S3`:return p;case`AWS_STEP_FUNCTIONS`:return m;case`AWS_SELF_MANAGED_KAFKA`:return h;case`AWS_VPC_LATTICE_V2`:return g;default:throw Error(`Couldn't detect valid event source.`)}}t.exports={getEventSource:_}})),N=a(((e,t)=>{async function n({app:e,request:t,response:n}){e.handle(t,n)}t.exports={sendRequest:n}})),P=a(((e,t)=>{async function n({app:e,request:t,response:n}){e.callback()(t,n)}t.exports={sendRequest:n}})),F=a(((e,t)=>{async function n({app:e,request:t,response:n}){e(t,n)}t.exports={sendRequest:n}})),I=a(((e,t)=>{let n=N(),r=P(),i=F();function a({app:e,log:t}){if(typeof e.callback==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:KOA`),r;if(typeof e.handle==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:EXPRESS`),n;if(typeof e.handler==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_HANDLER_FUNCTION`),{sendRequest:({request:t,response:n})=>{e.handler(t,n)}};if(typeof e._onRequest==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_ON_REQUEST_FUNCTION`),{sendRequest:({request:t,response:n})=>{e._onRequest(t,n)}};if(typeof e==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:HAPI`),i;if(e.router&&typeof e.router.route==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_ROUTER_ROUTE_FUNCTION`),{sendRequest:({request:t,response:n})=>{let{url:r,method:i,headers:a,body:o}=t;e.router.route({url:r,method:i,headers:a,body:o},n)}};if(e._core&&typeof e._core._dispatch==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_CORE_DISPATCH_FUNCTION`),{sendRequest:({request:t,response:n})=>e._core._dispatch({app:e})(t,n)};if(typeof e.main==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_MAIN_FUNCTION`),{sendRequest:({request:t,response:n})=>e.main(t,n)};throw Error(`Invalid app supplied. Valid frameworks include: Express, Koa, Hapi`)}t.exports.getFramework=a})),L=a(((e,t)=>{function n({context:e,callback:t,promise:n,resolutionMode:r}){return{succeed:({response:i})=>{if(r===`CONTEXT`)return e.succeed(i);if(r===`CALLBACK`)return t(null,i);if(r===`PROMISE`)return n.resolve(i)},fail:({error:i})=>{if(r===`CONTEXT`)return e.fail(i);if(r===`CALLBACK`)return t(i,null);if(r===`PROMISE`)return n.reject(i)}}}t.exports=n})),R=a(((e,n)=>{let r=t(`http`);n.exports=class extends r.IncomingMessage{constructor({method:e,url:t,headers:n,body:r,remoteAddress:i}){super({encrypted:!0,readable:!0,remoteAddress:i,address:()=>({port:443}),end:Function.prototype,destroy:Function.prototype});let a=Object.entries(n),o=Array(a.length*2);for(let e=0;e<a.length;e++)o[e*2]=a[e][0],o[e*2+1]=a[e][1];this._addHeaderLines(o,o.length),Object.assign(this,{ip:i,complete:!0,httpVersion:`1.1`,httpVersionMajor:`1`,httpVersionMinor:`1`,method:e,body:r,url:t}),this._read=()=>{this.push(r),this.push(null)}}}})),te=a(((e,n)=>{let r=t(`http`),i=Symbol(`Response body`),a=Symbol(`Response headers`);function o(e){if(Buffer.isBuffer(e))return e.toString(`utf8`);if(typeof e==`string`)return e;if(e instanceof Uint8Array)return new TextDecoder().decode(e);throw Error(`response.write() of unexpected type: ${typeof e}`)}function s(e,t){if(Buffer.isBuffer(t)||typeof t==`string`||t instanceof Uint8Array)e[i].push(Buffer.from(t));else throw Error(`response.write() of unexpected type: ${typeof t}`)}n.exports=class e extends r.ServerResponse{static from(t){let n=new e(t);return n.statusCode=t.statusCode,n[a]=t.headers,n[i]=[Buffer.from(t.body)],n.end(),n}static body(e){return Buffer.concat(e[i])}static headers(e){let t=typeof e.getHeaders==`function`?e.getHeaders():e._headers;return Object.assign(t,e[a])}get headers(){return this[a]}setHeader(e,t){this._wroteHeader?this[a][e]=t:super.setHeader(e,t)}writeHead(e,t,n){let r=typeof t==`string`?n:t;for(let e in r)if(this.setHeader(e,r[e]),!this._wroteHeader)break;super.writeHead(e,t,n)}constructor({method:e}){super({method:e}),this[i]=[],this[a]={},this.useChunkedEncodingByDefault=!1,this.chunkedEncoding=!1,this._header=``,this.assignSocket({_writableState:{},writable:!0,on:Function.prototype,removeListener:Function.prototype,destroy:Function.prototype,cork:Function.prototype,uncork:Function.prototype,write:(e,t,n)=>{if(typeof t==`function`&&(n=t,t=null),this._header===``||this._wroteHeader)s(this,e);else{let t=o(e),n=t.indexOf(`\r
1
+ import{a as e,i as t,n,o as r,r as i,t as a}from"./sfnext-server-chunk-DUt5XHAg.mjs";import o from"node:process";import s from"node:os";import c from"node:tty";import l from"path";import u from"node:zlib";import{resolve as d}from"node:path";import{existsSync as f,readFileSync as p}from"node:fs";import{pathToFileURL as m}from"node:url";var h=a(((e,t)=>{let n=e=>typeof e==`function`?e():e,r={debug:[[`debug`,`debug`],[`verbose`,`debug`],[`info`,`info`],[`error`,`error`],[`warn`,`warn`]],verbose:[[`verbose`,`debug`],[`info`,`info`],[`error`,`error`],[`warn`,`warn`]],info:[[`info`,`info`],[`error`,`error`],[`warn`,`warn`]],warn:[[`warn`,`warn`],[`error`,`error`]],error:[[`error`,`error`]],none:[]},i=e=>(t,...r)=>console[e]({message:n(t),...Array.isArray(r)?r.map(n):[]}),a=()=>{};function o({level:e=`error`}={}){let t=r[e],n={error:a,debug:a,info:a,verbose:a,warn:a};if(!t)return n;for(let[e,r]of t)n[e]=i(r);return n}t.exports=o})),g=a(((e,t)=>{let n={};function r(){return n}function i({event:e,context:t}){n.event=e,n.context=t}t.exports={getCurrentInvoke:r,setCurrentInvoke:i}})),_=a(((e,n)=>{let r=t(`url`);function i({event:e,query:t=e.multiValueQueryStringParameters,path:n=e.pathParameters&&e.pathParameters.proxy&&`/${e.pathParameters.proxy}`||e.path,stripBasePath:i=``,replaceRegex:a=RegExp(`^${i}`)}){return r.format({pathname:n.replace(a,``),query:t})}function a({event:e,body:t=e.body,isBase64Encoded:n=e.isBase64Encoded}){return Buffer.from(t,n?`base64`:`utf8`)}function o({event:e,method:t=e.httpMethod,path:n=i({event:e})}){let r={};e.multiValueHeaders?r=l({headersMap:e.multiValueHeaders,lowerCaseKey:!0}):e.headers&&(r=e.headers);let o;if(e.body){o=a({event:e});let{isBase64Encoded:t}=e;r[`content-length`]=Buffer.byteLength(o,t?`base64`:`utf8`)}let s=e&&e.requestContext&&e.requestContext.identity&&e.requestContext.identity.sourceIp||``;return{method:t,headers:r,body:o,remoteAddress:s,path:n}}function s({headers:e}){let t={};return Object.entries(e).forEach(([e,n])=>{let r=Array.isArray(n)?n.map(String):[String(n)];t[e.toLowerCase()]=r}),t}function c({event:e}){if(e.requestContext&&e.requestContext.elb)return`AWS_ALB`;if(e.headers?.[`x-amzn-lattice-network`]&&console.warn(`Lattice event v1 is not supported. Please use Lattice event v2.`),e.requestContext&&e.requestContext.serviceNetworkArn&&e.requestContext.serviceArn)return`AWS_VPC_LATTICE_V2`;if(e.eventSource===`SelfManagedKafka`)return`AWS_SELF_MANAGED_KAFKA`;if(e.Records){let t=e.Records[0]?e.Records[0].EventSource||e.Records[0].eventSource:void 0;return t===`aws:sns`?`AWS_SNS`:t===`aws:dynamodb`?`AWS_DYNAMODB`:t===`aws:sqs`?`AWS_SQS`:t===`aws:kinesis`?`AWS_KINESIS_DATA_STREAM`:t===`aws:s3`?`AWS_S3`:`AWS_LAMBDA_EDGE`}if(e.requestContext)return e.version===`2.0`?`AWS_API_GATEWAY_V2`:`AWS_API_GATEWAY_V1`;if(e.traceContext){let e=process.env.FUNCTIONS_EXTENSION_VERSION;if(!e)console.warn(`The environment variable 'FUNCTIONS_EXTENSION_VERSION' is not set. Only the function runtime '~3' is supported.`);else if(e===`~3`)return`AZURE_HTTP_FUNCTION_V3`;else if(e===`~4`)return`AZURE_HTTP_FUNCTION_V4`;else console.warn(`The function runtime '`+e+`' is not supported. Only '~3' and '~4' are supported.`)}if(e.version&&e.version===`0`&&e.id&&e[`detail-type`]&&e.source&&e.account&&e.time&&e.region&&e.resources&&Array.isArray(e.resources)&&e.detail&&typeof e.detail==`object`&&!Array.isArray(e.detail))return`AWS_EVENTBRIDGE`;if(e.context&&e.context.Execution&&e.context.State&&e.context.StateMachine)return`AWS_STEP_FUNCTIONS`;throw Error(`Unable to determine event source based on event.`)}function l({headersMap:e,separator:t=`,`,lowerCaseKey:n=!1}){let r={};return Object.entries(e).forEach(([e,i])=>{let a=n?e.toLowerCase():e;Array.isArray(i)?r[a]=i.join(t):r[a]=i}),r}n.exports={getPathWithQueryStringParams:i,getRequestValuesFromEvent:o,getMultiValueHeaders:s,getEventSourceNameBasedOnEvent:c,getEventBody:a,getCommaDelimitedHeaders:l,emptyResponseMapper:()=>{},parseCookie:e=>e.split(`;`).map(e=>e.split(`=`)).reduce((e,t)=>(t[1]&&(e[decodeURIComponent(t[0].trim().toLowerCase())]=decodeURIComponent(t[1].trim())),e),{})}})),v=a(((e,t)=>{let{getRequestValuesFromEvent:n,getMultiValueHeaders:r}=_(),i=({event:e})=>n({event:e});function a({statusCode:e,body:t,headers:n,isBase64Encoded:i}){let a=r({headers:n}),o=a[`transfer-encoding`];return o&&o.includes(`chunked`)&&(a[`transfer-encoding`]=o.filter(e=>e!==`chunked`)),{statusCode:e,body:t,multiValueHeaders:a,isBase64Encoded:i}}t.exports={getRequest:i,getResponse:a}})),y=a(((e,n)=>{let r=t(`url`),{getEventBody:i,getCommaDelimitedHeaders:a}=_();function o({event:e}){let{requestContext:t,requestPath:n,rawPath:a,rawQueryString:o,cookies:s}=e,c=t.http.method,l=n||a,u=RegExp(`^`),d=r.format({pathname:l.replace(u,``),search:o}),f={};s&&(f.cookie=s.join(`; `)),Object.entries(e.headers).forEach(([e,t])=>{f[e.toLowerCase()]=t});let p;if(e.body){p=i({event:e});let t=e.isBase64Encoded;f[`content-length`]=Buffer.byteLength(p,t?`base64`:`utf8`)}return{method:c,headers:f,body:p,remoteAddress:t.http.sourceIp,path:d}}function s({statusCode:e,body:t,headers:n={},isBase64Encoded:r=!1,response:i={}}){if(n[`transfer-encoding`]===`chunked`||i.chunkedEncoding)throw Error(`chunked encoding is not supported by API Gateway`);let o={statusCode:e,body:t,isBase64Encoded:r},s=n[`set-cookie`];return s&&(o.cookies=Array.isArray(s)?s:[s],delete n[`set-cookie`]),o.headers=a({headersMap:n}),o}n.exports={getRequest:o,getResponse:s}})),b=a(((e,n)=>{let r=t(`url`),{getRequestValuesFromEvent:i,getMultiValueHeaders:a}=_();function o({event:e,path:t=e.pathParameters&&e.pathParameters.proxy&&`/${e.pathParameters.proxy}`||e.path,stripBasePath:n=``,replaceRegex:i=RegExp(`^${n}`)}){let a={};if(e.multiValueQueryStringParameters)for(let t in e.multiValueQueryStringParameters){let n=s(t);a[n]=e.multiValueQueryStringParameters[t].map(e=>s(e))}else for(let t in e.queryStringParameters){let n=s(t);a[n]=s(e.queryStringParameters[t])}return r.format({pathname:t.replace(i,``),query:a})}function s(e){return decodeURIComponent(e.replace(/\+/g,`%20`))}n.exports={getRequest:({event:e})=>i({event:e,path:o({event:e})}),getResponse:({event:e,statusCode:t,body:n,headers:r,isBase64Encoded:i})=>{let o=e.headers?void 0:a({headers:r});return{statusCode:t,body:n,headers:e.headers?Object.entries(r).reduce((e,[t,n])=>(e[t]=Array.isArray(n)?String(n[0]):String(n),e),{}):void 0,multiValueHeaders:o,isBase64Encoded:i}}}})),x=a(((e,n)=>{let r=t(`url`),{getEventBody:i}=_(),a=[`content-length`];function o({event:e}){let{headers:t,uri:n,method:a,querystring:o,body:s={},clientIp:c}=e.Records[0].cf.request,l=null,u={};if(Object.entries(t).forEach(([e,t])=>{u[e]=t.map(e=>e.value).join(`,`)}),s.data){let e=s.encoding===`base64`;l=i({body:s.data,isBase64Encoded:e}),u[`content-length`]=Buffer.byteLength(l,e?`base64`:`utf8`)}let d=r.format({pathname:n,search:o}),{host:f}=u;return{method:a,path:d,headers:u,body:l,remoteAddress:c,host:f,hostname:f}}function s({statusCode:e,body:t,headers:n,isBase64Encoded:r}){let i={};return Object.entries(n).forEach(([e,t])=>{let n=e.toLowerCase();if(a.includes(n))return;if(i[n]||(i[n]=[]),!Array.isArray(t)){i[n].push({key:n,value:t});return}let r=t.map(e=>({key:n,value:e}));i[n].push(...r)}),{status:e,body:t,headers:i,bodyEncoding:r?`base64`:`text`}}n.exports={getRequest:o,getResponse:s}})),S=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`sns.amazonaws.com`},body:e}),getResponse:n}})),C=a(((e,t)=>{t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`sqs.amazonaws.com`},body:e}),getResponse:({body:e})=>{try{return JSON.parse(e)}catch{}}}})),w=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`dynamodb.amazonaws.com`},body:e}),getResponse:n}})),T=a(((e,n)=>{let r=t(`url`),{getCommaDelimitedHeaders:i,parseCookie:a}=_();function o({event:e}){let t=e.req,n=t.method,i=new r.URL(t.url),a=i.pathname+i.search,o={cookies:t.headers.cookie};Object.entries(t.headers).forEach(([e,t])=>{o[e.toLowerCase()]=t});let s=o[`x-forwarded-for`],c=t.rawBody;return c&&(o[`content-length`]=Buffer.byteLength(c,`utf8`)),{method:n,headers:o,body:c,remoteAddress:s,path:a}}function s({statusCode:e,body:t,headers:n={},isBase64Encoded:r=!1,response:o={}}){let s={statusCode:e,body:t,isBase64Encoded:r};r&&(s.body=Buffer.from(t,`base64`),s.isBase64Encoded=!1);let c=[],l=[].concat(n[`set-cookie`]||[]);if(l.length>0){for(let e of l){let t=a(e),n=e.split(`;`)[0].split(`=`),r={name:n[0],value:n[1]};e.toLowerCase().includes(`httponly`)&&(r.httpOnly=!0),e.toLowerCase().includes(`secure`)&&(r.secure=!0),t[`max-age`]&&(r.maxAge=+t[`max-age`]),t.samesite&&(r.sameSite=t.samesite),t.expires&&typeof t.expires==`string`?r.expires=new Date(t.expires):t.expires&&typeof t.expires==`number`&&(r.expires=t.expires),t.path&&(r.path=t.path),t.domain&&(r.domain=t.domain),c.push(r)}s.cookies=c,delete n[`set-cookie`]}return s.headers=i({headersMap:n}),s}n.exports={getRequest:o,getResponse:s}})),E=a(((e,t)=>{let{getRequest:n,getResponse:r}=T();t.exports={getRequest:n,getResponse:r}})),D=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`events.amazonaws.com`},body:e}),getResponse:n}})),O=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`kinesis.amazonaws.com`},body:e}),getResponse:n}})),k=a(((e,t)=>{t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`s3.amazonaws.com`},body:e}),getResponse:({statusCode:e,body:t,headers:n,isBase64Encoded:r})=>({statusCode:e,headers:n,body:t,isBase64Encoded:r})}})),A=a(((e,t)=>{t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`stepfunctions.amazonaws.com`},body:e}),getResponse:({body:e,isBase64Encoded:t=!1})=>{if(t)throw Error(`base64 encoding is not supported`);return JSON.parse(e)}}})),j=a(((e,t)=>{let{emptyResponseMapper:n}=_();t.exports={getRequest:({event:e})=>({method:`POST`,headers:{host:`self-managed-kafka`},body:e}),getResponse:n}})),M=a(((e,t)=>{let{getRequestValuesFromEvent:n,getCommaDelimitedHeaders:r}=_();t.exports={getRequest:({event:e})=>{let t=n({event:e,method:e.method,path:e.path});return t.headers=r({headersMap:e.headers,lowerCaseKey:!0}),t},getResponse:({statusCode:e,body:t,headers:n,isBase64Encoded:i})=>({statusCode:e,body:t,headers:r({headersMap:n}),isBase64Encoded:i})}})),N=a(((e,t)=>{let n=v(),r=y(),i=b(),a=x(),o=S(),s=C(),c=w(),l=T(),u=E(),d=D(),f=O(),p=k(),m=A(),h=j(),g=M();function _({eventSourceName:e}){switch(e){case`AWS_API_GATEWAY_V1`:return n;case`AWS_API_GATEWAY_V2`:return r;case`AWS_ALB`:return i;case`AWS_LAMBDA_EDGE`:return a;case`AWS_DYNAMODB`:return c;case`AWS_SNS`:return o;case`AZURE_HTTP_FUNCTION_V3`:return l;case`AZURE_HTTP_FUNCTION_V4`:return u;case`AWS_SQS`:return s;case`AWS_EVENTBRIDGE`:return d;case`AWS_KINESIS_DATA_STREAM`:return f;case`AWS_S3`:return p;case`AWS_STEP_FUNCTIONS`:return m;case`AWS_SELF_MANAGED_KAFKA`:return h;case`AWS_VPC_LATTICE_V2`:return g;default:throw Error(`Couldn't detect valid event source.`)}}t.exports={getEventSource:_}})),ee=a(((e,t)=>{async function n({app:e,request:t,response:n}){e.handle(t,n)}t.exports={sendRequest:n}})),P=a(((e,t)=>{async function n({app:e,request:t,response:n}){e.callback()(t,n)}t.exports={sendRequest:n}})),F=a(((e,t)=>{async function n({app:e,request:t,response:n}){e(t,n)}t.exports={sendRequest:n}})),I=a(((e,t)=>{let n=ee(),r=P(),i=F();function a({app:e,log:t}){if(typeof e.callback==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:KOA`),r;if(typeof e.handle==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:EXPRESS`),n;if(typeof e.handler==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_HANDLER_FUNCTION`),{sendRequest:({request:t,response:n})=>{e.handler(t,n)}};if(typeof e._onRequest==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_ON_REQUEST_FUNCTION`),{sendRequest:({request:t,response:n})=>{e._onRequest(t,n)}};if(typeof e==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:HAPI`),i;if(e.router&&typeof e.router.route==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_ROUTER_ROUTE_FUNCTION`),{sendRequest:({request:t,response:n})=>{let{url:r,method:i,headers:a,body:o}=t;e.router.route({url:r,method:i,headers:a,body:o},n)}};if(e._core&&typeof e._core._dispatch==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_CORE_DISPATCH_FUNCTION`),{sendRequest:({request:t,response:n})=>e._core._dispatch({app:e})(t,n)};if(typeof e.main==`function`)return t.debug(`SERVERLESS_EXPRESS:GET_FRAMEWORK:APP_MAIN_FUNCTION`),{sendRequest:({request:t,response:n})=>e.main(t,n)};throw Error(`Invalid app supplied. Valid frameworks include: Express, Koa, Hapi`)}t.exports.getFramework=a})),L=a(((e,t)=>{function n({context:e,callback:t,promise:n,resolutionMode:r}){return{succeed:({response:i})=>{if(r===`CONTEXT`)return e.succeed(i);if(r===`CALLBACK`)return t(null,i);if(r===`PROMISE`)return n.resolve(i)},fail:({error:i})=>{if(r===`CONTEXT`)return e.fail(i);if(r===`CALLBACK`)return t(i,null);if(r===`PROMISE`)return n.reject(i)}}}t.exports=n})),R=a(((e,n)=>{let r=t(`http`);n.exports=class extends r.IncomingMessage{constructor({method:e,url:t,headers:n,body:r,remoteAddress:i}){super({encrypted:!0,readable:!0,remoteAddress:i,address:()=>({port:443}),end:Function.prototype,destroy:Function.prototype});let a=Object.entries(n),o=Array(a.length*2);for(let e=0;e<a.length;e++)o[e*2]=a[e][0],o[e*2+1]=a[e][1];this._addHeaderLines(o,o.length),Object.assign(this,{ip:i,complete:!0,httpVersion:`1.1`,httpVersionMajor:`1`,httpVersionMinor:`1`,method:e,body:r,url:t}),this._read=()=>{this.push(r),this.push(null)}}}})),te=a(((e,n)=>{let r=t(`http`),i=Symbol(`Response body`),a=Symbol(`Response headers`);function o(e){if(Buffer.isBuffer(e))return e.toString(`utf8`);if(typeof e==`string`)return e;if(e instanceof Uint8Array)return new TextDecoder().decode(e);throw Error(`response.write() of unexpected type: ${typeof e}`)}function s(e,t){if(Buffer.isBuffer(t)||typeof t==`string`||t instanceof Uint8Array)e[i].push(Buffer.from(t));else throw Error(`response.write() of unexpected type: ${typeof t}`)}n.exports=class e extends r.ServerResponse{static from(t){let n=new e(t);return n.statusCode=t.statusCode,n[a]=t.headers,n[i]=[Buffer.from(t.body)],n.end(),n}static body(e){return Buffer.concat(e[i])}static headers(e){let t=typeof e.getHeaders==`function`?e.getHeaders():e._headers;return Object.assign(t,e[a])}get headers(){return this[a]}setHeader(e,t){this._wroteHeader?this[a][e]=t:super.setHeader(e,t)}writeHead(e,t,n){let r=typeof t==`string`?n:t;for(let e in r)if(this.setHeader(e,r[e]),!this._wroteHeader)break;super.writeHead(e,t,n)}constructor({method:e}){super({method:e}),this[i]=[],this[a]={},this.useChunkedEncodingByDefault=!1,this.chunkedEncoding=!1,this._header=``,this.assignSocket({_writableState:{},writable:!0,on:Function.prototype,removeListener:Function.prototype,destroy:Function.prototype,cork:Function.prototype,uncork:Function.prototype,write:(e,t,n)=>{if(typeof t==`function`&&(n=t,t=null),this._header===``||this._wroteHeader)s(this,e);else{let t=o(e),n=t.indexOf(`\r
2
2
  \r
3
- `);if(n!==-1){let e=t.slice(n+4);e&&s(this,e),this._wroteHeader=!0}}typeof n==`function`&&n()}})}}})),z=a(((e,t)=>{t.exports.DEFAULT_BINARY_ENCODINGS=[`gzip`,`deflate`,`br`],t.exports.DEFAULT_BINARY_CONTENT_TYPES=[`image/*`]})),B=a(((e,t)=>{let{DEFAULT_BINARY_ENCODINGS:n,DEFAULT_BINARY_CONTENT_TYPES:r}=z();function i({headers:e,binaryEncodingTypes:t}){let n=e[`content-encoding`];return typeof n==`string`?n.split(`,`).some(e=>t.some(t=>e.includes(t))):!1}function a({headers:e}){return(e[`content-type`]||``).split(`;`)[0]}function o({headers:e,binaryContentTypes:t}){if(!t||!Array.isArray(t))return!1;let n=t.map(e=>RegExp(`^${e.replace(/\*/g,`.*`)}$`)),r=a({headers:e});return r?n.some(e=>e.test(r)):!1}t.exports=function({headers:e,binarySettings:t}){if(t.isBinary===!1)return!1;if(typeof t.isBinary==`function`)return t.isBinary({headers:e});let a=t.contentEncodings||n,s=t.contentTypes||r;return i({headers:e,binaryEncodingTypes:a})||o({headers:e,binaryContentTypes:s})}})),V=a(((e,n)=>{let r=t(`util`),i=R(),a=te(),{getEventSource:o}=ee(),s=te(),c=B();function l({binarySettings:e,response:t,resolver:n,eventSource:i,event:a,log:o}){let l=t.statusCode,u=s.headers(t),d=c({headers:u,binarySettings:e}),f=d?`base64`:`utf8`,p=s.body(t).toString(f),m=d?`[BASE64_ENCODED]`:p;o.debug(`SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE_PARAMS`,{statusCode:l,body:m,headers:u,isBase64Encoded:d});let h=i.getResponse({event:a,statusCode:l,body:p,headers:u,isBase64Encoded:d,response:t});o.debug(`SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE`,()=>({successResponse:r.inspect(h,{depth:null}),body:m})),n.succeed({response:h})}function u({error:e,resolver:t,log:n,respondWithErrors:r,eventSourceName:i,eventSource:a}){if(n.error(`SERVERLESS_EXPRESS:RESPOND_TO_EVENT_SOURCE_WITH_ERROR`,e),i!==`AWS_ALB`&&i!==`AWS_LAMBDA_EDGE`&&i!==`AWS_API_GATEWAY_V1`&&i!==`AWS_API_GATEWAY_V2`&&i!==`AZURE_HTTP_FUNCTION_V3`&&i!==`AZURE_HTTP_FUNCTION_V4`){t.fail({error:e});return}let o=r?e.stack:``,s=a.getResponse({statusCode:500,body:o,headers:{},isBase64Encoded:!1});t.succeed({response:s})}async function d({method:e,headers:t,body:n,remoteAddress:r,path:o}){let s=new i({method:e,headers:t,body:n,remoteAddress:r,url:o});return await p(s),{request:s,response:new a(s)}}function f(e){e.complete=!0,e.readable=!1}function p(e){return e.complete||e.writableEnded?e:new Promise((t,n)=>{e.once(`error`,i),e.once(`end`,i),e.once(`finish`,i);let r=!1;function i(a){r||(r=!0,e.removeListener(`error`,i),e.removeListener(`end`,i),e.removeListener(`finish`,i),a?n(a):t(e))}})}async function m({app:e,framework:t,event:n,context:r,resolver:i,eventSourceName:a,binarySettings:s,eventSource:c=o({eventSourceName:a}),eventSourceRoutes:u,log:m}){let h=c.getRequest({event:n,context:r,log:m});!h.path&&u[a]&&(h.path=u[a]),m.debug(`SERVERLESS_EXPRESS:FORWARD_REQUEST_TO_NODE_SERVER:REQUEST_VALUES`,{requestValues:h});let{request:g,response:_}=await d(h);return await t.sendRequest({app:e,request:g,response:_}),f(g),await p(_),m.debug(`SERVERLESS_EXPRESS:FORWARD_REQUEST_TO_NODE_SERVER:RESPONSE`,{response:_}),l({binarySettings:s,response:_,resolver:i,eventSource:c,event:n,log:m}),_}n.exports={forwardResponse:l,respondToEventSourceWithError:u,forwardRequestToNodeServer:m,getRequestResponse:d}})),H=a(((e,n)=>{let r=t(`util`),i=h(),{setCurrentInvoke:a}=g(),{getEventSource:o}=ee(),{getEventSourceNameBasedOnEvent:s}=_(),{getFramework:c}=I(),l=L(),{forwardRequestToNodeServer:u,respondToEventSourceWithError:d}=V(),{DEFAULT_BINARY_ENCODINGS:f,DEFAULT_BINARY_CONTENT_TYPES:p}=z();function m(e){return{contentTypes:e||p,contentEncodings:f}}function v({app:e,logSettings:t,log:n=i(t),framework:f=c({app:e,log:n}),binaryMimeTypes:p,binarySettings:h,resolutionMode:g=`PROMISE`,eventSourceName:_,eventSource:v,eventSourceRoutes:y,respondWithErrors:b=process.env.NODE_ENV===`development`}={}){function x({app:t=e,framework:i=f,event:c={},context:x={},callback:S=null,resolutionMode:C=g,eventSourceName:w=_||s({event:c}),binaryMimeTypes:T=p,binarySettings:E=h||m(T),eventSource:D=v||o({eventSourceName:w}),eventSourceRoutes:O=y||{},log:k=n,respondWithErrors:A=b}){return k.debug(`SERVERLESS_EXPRESS:PROXY`,()=>({event:r.inspect(c,{depth:null}),context:r.inspect(x,{depth:null}),resolutionMode:C,eventSourceName:w,binarySettings:E,respondWithErrors:A})),T&&console.warn(`[DEPRECATION NOTICE] { binaryMimeTypes: [] } is deprecated. base64 encoding is now automatically determined based on response content-type and content-encoding. If you need to manually set binary content types, instead, use { binarySettings: { contentTypes: [] } }`),a({event:c,context:x}),new Promise((e,n)=>{let r=l({context:x,callback:S,promise:{resolve:e,reject:n},resolutionMode:C});try{u({app:t,framework:i,event:c,context:x,resolver:r,eventSourceName:w,binarySettings:E,eventSource:D,eventSourceRoutes:O,log:k})}catch(e){d({error:e,resolver:r,log:k,respondWithErrors:A,eventSourceName:w,eventSource:D})}})}function S(e,t,n){return x({event:e,context:t,callback:n})}return S.handler=(...e)=>(console.warn("[DEPRECATION NOTICE] You're using the deprecated `serverlessExpress({...}).handler({...})` method. This will be removed in a future version of @codegenie/serverless-express. Instead, simply return `serverlessExpress({...})` as your handler."),S(...e)),S.proxy=(...e)=>(console.warn("[DEPRECATION NOTICE] You're using the deprecated `serverlessExpress({...}).proxy({...})` method. This will be removed in a future version of @codegenie/serverless-express. Instead, simply return `serverlessExpress({...})` as your handler."),x(...e)),S.log=n,S}n.exports=v})),ne=a(((e,t)=>{let n=H(),{getCurrentInvoke:r}=g();t.exports=n,t.exports.getCurrentInvoke=r,t.exports.configure=n;function i(e,t,n){if(console.warn(`[DEPRECATION NOTICE] You're using the deprecated createServer method that will be removed in the next major version. See https://github.com/CodeGenieApp/serverless-express/blob/mainline/UPGRADE.md to upgrade.`),t)throw Error(`serverListenCallback is no longer supported.`);return{app:e,binarySettings:{contentTypes:n}}}function a(e,t,r,i,a){return console.warn(`[DEPRECATION NOTICE] You're using the deprecated proxy method that will be removed in the next major version. See https://github.com/CodeGenieApp/serverless-express/blob/mainline/UPGRADE.md to upgrade.`),n({...e,resolutionMode:i})(t,r,a)}t.exports.createServer=i,t.exports.proxy=a})),re=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),U=a(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=re(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),ie=a(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=U()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),ae=i({createSupportsColor:()=>ce,default:()=>de});function W(e,t=globalThis.Deno?globalThis.Deno.args:o.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}function oe(){if(!(`FORCE_COLOR`in le))return;if(le.FORCE_COLOR===`true`)return 1;if(le.FORCE_COLOR===`false`)return 0;if(le.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(le.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function G(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function se(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=oe();r!==void 0&&(K=r);let i=n?K:r;if(i===0)return 0;if(n){if(W(`color=16m`)||W(`color=full`)||W(`color=truecolor`))return 3;if(W(`color=256`))return 2}if(`TF_BUILD`in le&&`AGENT_NAME`in le)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(le.TERM===`dumb`)return a;if(o.platform===`win32`){let e=s.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in le)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in le)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in le)||le.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM===`truecolor`||le.TERM===`xterm-kitty`||le.TERM===`xterm-ghostty`||le.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in le){let e=Number.parseInt((le.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(le.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||`COLORTERM`in le?1:a}function ce(e,t={}){return G(se(e,{streamIsTTY:e&&e.isTTY,...t}))}var le,K,ue,de,fe=n((()=>{({env:le}=o),W(`no-color`)||W(`no-colors`)||W(`color=false`)||W(`color=never`)?K=0:(W(`color`)||W(`colors`)||W(`color=true`)||W(`color=always`))&&(K=1),ue={stdout:ce({isTTY:c.isatty(1)}),stderr:ce({isTTY:c.isatty(2)})},de=ue})),pe=a(((n,r)=>{let i=t(`tty`),a=t(`util`);n.init=f,n.log=l,n.formatArgs=s,n.save=u,n.load=d,n.useColors=o,n.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{let t=(fe(),e(ae));t&&(t.stderr||t).level>=2&&(n.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}n.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function o(){return`colors`in n.inspectOpts?!!n.inspectOpts.colors:i.isatty(process.stderr.fd)}function s(e){let{namespace:t,useColors:n}=this;if(n){let n=this.color,i=`\x1B[3`+(n<8?n:`8;5;`+n),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
3
+ `);if(n!==-1){let e=t.slice(n+4);e&&s(this,e),this._wroteHeader=!0}}typeof n==`function`&&n()}})}}})),z=a(((e,t)=>{t.exports.DEFAULT_BINARY_ENCODINGS=[`gzip`,`deflate`,`br`],t.exports.DEFAULT_BINARY_CONTENT_TYPES=[`image/*`]})),B=a(((e,t)=>{let{DEFAULT_BINARY_ENCODINGS:n,DEFAULT_BINARY_CONTENT_TYPES:r}=z();function i({headers:e,binaryEncodingTypes:t}){let n=e[`content-encoding`];return typeof n==`string`?n.split(`,`).some(e=>t.some(t=>e.includes(t))):!1}function a({headers:e}){return(e[`content-type`]||``).split(`;`)[0]}function o({headers:e,binaryContentTypes:t}){if(!t||!Array.isArray(t))return!1;let n=t.map(e=>RegExp(`^${e.replace(/\*/g,`.*`)}$`)),r=a({headers:e});return r?n.some(e=>e.test(r)):!1}t.exports=function({headers:e,binarySettings:t}){if(t.isBinary===!1)return!1;if(typeof t.isBinary==`function`)return t.isBinary({headers:e});let a=t.contentEncodings||n,s=t.contentTypes||r;return i({headers:e,binaryEncodingTypes:a})||o({headers:e,binaryContentTypes:s})}})),V=a(((e,n)=>{let r=t(`util`),i=R(),a=te(),{getEventSource:o}=N(),s=te(),c=B();function l({binarySettings:e,response:t,resolver:n,eventSource:i,event:a,log:o}){let l=t.statusCode,u=s.headers(t),d=c({headers:u,binarySettings:e}),f=d?`base64`:`utf8`,p=s.body(t).toString(f),m=d?`[BASE64_ENCODED]`:p;o.debug(`SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE_PARAMS`,{statusCode:l,body:m,headers:u,isBase64Encoded:d});let h=i.getResponse({event:a,statusCode:l,body:p,headers:u,isBase64Encoded:d,response:t});o.debug(`SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE`,()=>({successResponse:r.inspect(h,{depth:null}),body:m})),n.succeed({response:h})}function u({error:e,resolver:t,log:n,respondWithErrors:r,eventSourceName:i,eventSource:a}){if(n.error(`SERVERLESS_EXPRESS:RESPOND_TO_EVENT_SOURCE_WITH_ERROR`,e),i!==`AWS_ALB`&&i!==`AWS_LAMBDA_EDGE`&&i!==`AWS_API_GATEWAY_V1`&&i!==`AWS_API_GATEWAY_V2`&&i!==`AZURE_HTTP_FUNCTION_V3`&&i!==`AZURE_HTTP_FUNCTION_V4`){t.fail({error:e});return}let o=r?e.stack:``,s=a.getResponse({statusCode:500,body:o,headers:{},isBase64Encoded:!1});t.succeed({response:s})}async function d({method:e,headers:t,body:n,remoteAddress:r,path:o}){let s=new i({method:e,headers:t,body:n,remoteAddress:r,url:o});return await p(s),{request:s,response:new a(s)}}function f(e){e.complete=!0,e.readable=!1}function p(e){return e.complete||e.writableEnded?e:new Promise((t,n)=>{e.once(`error`,i),e.once(`end`,i),e.once(`finish`,i);let r=!1;function i(a){r||(r=!0,e.removeListener(`error`,i),e.removeListener(`end`,i),e.removeListener(`finish`,i),a?n(a):t(e))}})}async function m({app:e,framework:t,event:n,context:r,resolver:i,eventSourceName:a,binarySettings:s,eventSource:c=o({eventSourceName:a}),eventSourceRoutes:u,log:m}){let h=c.getRequest({event:n,context:r,log:m});!h.path&&u[a]&&(h.path=u[a]),m.debug(`SERVERLESS_EXPRESS:FORWARD_REQUEST_TO_NODE_SERVER:REQUEST_VALUES`,{requestValues:h});let{request:g,response:_}=await d(h);return await t.sendRequest({app:e,request:g,response:_}),f(g),await p(_),m.debug(`SERVERLESS_EXPRESS:FORWARD_REQUEST_TO_NODE_SERVER:RESPONSE`,{response:_}),l({binarySettings:s,response:_,resolver:i,eventSource:c,event:n,log:m}),_}n.exports={forwardResponse:l,respondToEventSourceWithError:u,forwardRequestToNodeServer:m,getRequestResponse:d}})),H=a(((e,n)=>{let r=t(`util`),i=h(),{setCurrentInvoke:a}=g(),{getEventSource:o}=N(),{getEventSourceNameBasedOnEvent:s}=_(),{getFramework:c}=I(),l=L(),{forwardRequestToNodeServer:u,respondToEventSourceWithError:d}=V(),{DEFAULT_BINARY_ENCODINGS:f,DEFAULT_BINARY_CONTENT_TYPES:p}=z();function m(e){return{contentTypes:e||p,contentEncodings:f}}function v({app:e,logSettings:t,log:n=i(t),framework:f=c({app:e,log:n}),binaryMimeTypes:p,binarySettings:h,resolutionMode:g=`PROMISE`,eventSourceName:_,eventSource:v,eventSourceRoutes:y,respondWithErrors:b=process.env.NODE_ENV===`development`}={}){function x({app:t=e,framework:i=f,event:c={},context:x={},callback:S=null,resolutionMode:C=g,eventSourceName:w=_||s({event:c}),binaryMimeTypes:T=p,binarySettings:E=h||m(T),eventSource:D=v||o({eventSourceName:w}),eventSourceRoutes:O=y||{},log:k=n,respondWithErrors:A=b}){return k.debug(`SERVERLESS_EXPRESS:PROXY`,()=>({event:r.inspect(c,{depth:null}),context:r.inspect(x,{depth:null}),resolutionMode:C,eventSourceName:w,binarySettings:E,respondWithErrors:A})),T&&console.warn(`[DEPRECATION NOTICE] { binaryMimeTypes: [] } is deprecated. base64 encoding is now automatically determined based on response content-type and content-encoding. If you need to manually set binary content types, instead, use { binarySettings: { contentTypes: [] } }`),a({event:c,context:x}),new Promise((e,n)=>{let r=l({context:x,callback:S,promise:{resolve:e,reject:n},resolutionMode:C});try{u({app:t,framework:i,event:c,context:x,resolver:r,eventSourceName:w,binarySettings:E,eventSource:D,eventSourceRoutes:O,log:k})}catch(e){d({error:e,resolver:r,log:k,respondWithErrors:A,eventSourceName:w,eventSource:D})}})}function S(e,t,n){return x({event:e,context:t,callback:n})}return S.handler=(...e)=>(console.warn("[DEPRECATION NOTICE] You're using the deprecated `serverlessExpress({...}).handler({...})` method. This will be removed in a future version of @codegenie/serverless-express. Instead, simply return `serverlessExpress({...})` as your handler."),S(...e)),S.proxy=(...e)=>(console.warn("[DEPRECATION NOTICE] You're using the deprecated `serverlessExpress({...}).proxy({...})` method. This will be removed in a future version of @codegenie/serverless-express. Instead, simply return `serverlessExpress({...})` as your handler."),x(...e)),S.log=n,S}n.exports=v})),ne=a(((e,t)=>{let n=H(),{getCurrentInvoke:r}=g();t.exports=n,t.exports.getCurrentInvoke=r,t.exports.configure=n;function i(e,t,n){if(console.warn(`[DEPRECATION NOTICE] You're using the deprecated createServer method that will be removed in the next major version. See https://github.com/CodeGenieApp/serverless-express/blob/mainline/UPGRADE.md to upgrade.`),t)throw Error(`serverListenCallback is no longer supported.`);return{app:e,binarySettings:{contentTypes:n}}}function a(e,t,r,i,a){return console.warn(`[DEPRECATION NOTICE] You're using the deprecated proxy method that will be removed in the next major version. See https://github.com/CodeGenieApp/serverless-express/blob/mainline/UPGRADE.md to upgrade.`),n({...e,resolutionMode:i})(t,r,a)}t.exports.createServer=i,t.exports.proxy=a})),re=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),U=a(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=re(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),ie=a(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=U()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),ae=i({createSupportsColor:()=>ce,default:()=>de});function oe(e,t=globalThis.Deno?globalThis.Deno.args:o.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}function se(){if(!(`FORCE_COLOR`in le))return;if(le.FORCE_COLOR===`true`)return 1;if(le.FORCE_COLOR===`false`)return 0;if(le.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(le.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function W(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function G(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=se();r!==void 0&&(K=r);let i=n?K:r;if(i===0)return 0;if(n){if(oe(`color=16m`)||oe(`color=full`)||oe(`color=truecolor`))return 3;if(oe(`color=256`))return 2}if(`TF_BUILD`in le&&`AGENT_NAME`in le)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(le.TERM===`dumb`)return a;if(o.platform===`win32`){let e=s.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in le)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in le)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in le)||le.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM===`truecolor`||le.TERM===`xterm-kitty`||le.TERM===`xterm-ghostty`||le.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in le){let e=Number.parseInt((le.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(le.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||`COLORTERM`in le?1:a}function ce(e,t={}){return W(G(e,{streamIsTTY:e&&e.isTTY,...t}))}var le,K,ue,de,fe=n((()=>{({env:le}=o),oe(`no-color`)||oe(`no-colors`)||oe(`color=false`)||oe(`color=never`)?K=0:(oe(`color`)||oe(`colors`)||oe(`color=true`)||oe(`color=always`))&&(K=1),ue={stdout:ce({isTTY:c.isatty(1)}),stderr:ce({isTTY:c.isatty(2)})},de=ue})),pe=a(((n,r)=>{let i=t(`tty`),a=t(`util`);n.init=f,n.log=l,n.formatArgs=s,n.save=u,n.load=d,n.useColors=o,n.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{let t=(fe(),e(ae));t&&(t.stderr||t).level>=2&&(n.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}n.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function o(){return`colors`in n.inspectOpts?!!n.inspectOpts.colors:i.isatty(process.stderr.fd)}function s(e){let{namespace:t,useColors:n}=this;if(n){let n=this.color,i=`\x1B[3`+(n<8?n:`8;5;`+n),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
4
4
  `).join(`
5
5
  `+a),e.push(i+`m+`+r.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=c()+t+` `+e[0]}function c(){return n.inspectOpts.hideDate?``:new Date().toISOString()+` `}function l(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+`
6
6
  `)}function u(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function d(){return process.env.DEBUG}function f(e){e.inspectOpts={};let t=Object.keys(n.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=n.inspectOpts[t[r]]}r.exports=U()(n);let{formatters:p}=r.exports;p.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split(`
@@ -29,10 +29,10 @@ return fn.apply(this, arguments)
29
29
  * Copyright(c) 2015-2022 Douglas Christopher Wilson
30
30
  * MIT Licensed
31
31
  */
32
- t.exports=Qe()})),et=a(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},r={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};t.exports=function(e,t=`default`){if(e===`application/octet-stream`)return 0;let[a,o]=e.split(`/`),s=n[o.replace(/(\.|x-).*/,`$1`)]||n.default,c=r[t]||r.default,l=i[a]||i.default,u=1-e.length/100;return s+c+l+u}})),tt=a((e=>{var n=$e(),r=t(`path`).extname,i=et(),a=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=c,e.extension=l,e.extensions=Object.create(null),e.lookup=u,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function s(e){if(!e||typeof e!=`string`)return!1;var t=a.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&o.test(t[1])?`UTF-8`:!1}function c(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function l(t){if(!t||typeof t!=`string`)return!1;var n=a.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function u(t){if(!t||typeof t!=`string`)return!1;var n=r(`x.`+t).toLowerCase().slice(1);return n&&e.types[n]||!1}function d(t,r){Object.keys(n).forEach(function(i){var a=n[i].extensions;if(!(!a||!a.length)){t[i]=a;for(var o=0;o<a.length;o++){var s=a[o];r[s]=f(s,r[s],i);let t=p(s,r[s],i);t!==r[s]&&e._extensionConflicts.push([s,t,r[s]])}}})}function f(e,t,r){return(t?i(t,n[t].source):0)>(r?i(r,n[r].source):0)?t:r}function p(t,r,i){var a=[`nginx`,`apache`,void 0,`iana`],o=r?a.indexOf(n[r].source):0,s=i?a.indexOf(n[i].source):0;return e.types[l]!==`application/octet-stream`&&(o>s||o===s&&e.types[l]?.slice(0,12)===`application/`)||o>s?r:i}})),nt=a((e=>{var t=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,n=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,r=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;e.format=i,e.parse=o,e.test=a;function i(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var r=e.subtype,i=e.suffix,a=e.type;if(!a||!n.test(a))throw TypeError(`invalid type`);if(!r||!t.test(r))throw TypeError(`invalid subtype`);var o=a+`/`+r;if(i){if(!n.test(i))throw TypeError(`invalid suffix`);o+=`+`+i}return o}function a(e){if(!e)throw TypeError(`argument string is required`);if(typeof e!=`string`)throw TypeError(`argument string is required to be a string`);return r.test(e.toLowerCase())}function o(e){if(!e)throw TypeError(`argument string is required`);if(typeof e!=`string`)throw TypeError(`argument string is required to be a string`);var t=r.exec(e.toLowerCase());if(!t)throw TypeError(`invalid media type`);var n=t[1],i=t[2],a,o=i.lastIndexOf(`+`);return o!==-1&&(a=i.substr(o+1),i=i.substr(0,o)),new s(n,i,a)}function s(e,t,n){this.type=e,this.subtype=t,this.suffix=n}})),rt=a(((e,t)=>{var n=Ze(),r=tt(),i=nt();t.exports=s,t.exports.is=a,t.exports.hasBody=o,t.exports.normalize=c,t.exports.match=l;function a(e,t){var n,r=t,i=d(e);if(!i)return!1;if(r&&!Array.isArray(r))for(r=Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];if(!r||!r.length)return i;var a;for(n=0;n<r.length;n++)if(l(c(a=r[n]),i))return a[0]===`+`||a.indexOf(`*`)!==-1?i:a;return!1}function o(e){return e.headers[`transfer-encoding`]!==void 0||!isNaN(e.headers[`content-length`])}function s(e,t){if(!o(e))return null;var n=arguments.length>2?Array.prototype.slice.call(arguments,1):t,r=e.headers[`content-type`];return a(r,n)}function c(e){if(typeof e!=`string`)return!1;switch(e){case`urlencoded`:return`application/x-www-form-urlencoded`;case`multipart`:return`multipart/*`}return e[0]===`+`?`*/*`+e:e.indexOf(`/`)===-1?r.lookup(e):e}function l(e,t){if(e===!1)return!1;var n=t.split(`/`),r=e.split(`/`);return n.length!==2||r.length!==2||r[0]!==`*`&&r[0]!==n[0]?!1:r[1].slice(0,2)===`*+`?r[1].length<=n[1].length+1&&r[1].slice(1)===n[1].slice(1-r[1].length):!(r[1]!==`*`&&r[1]!==n[1])}function u(e){var t=n.parse(e).type;return i.test(t)?t:null}function d(e){try{return e?u(e):null}catch{return null}}})),it=a(((e,t)=>{var n=Ce(),r=Ze(),i=rt();t.exports={getCharset:a,normalizeOptions:s,passthrough:c};function a(e){try{return(r.parse(e).parameters.charset||``).toLowerCase()}catch{return}}function o(e){return function(t){return!!i(t,e)}}function s(e,t){if(!t)throw TypeError(`defaultType must be provided`);var r=e?.inflate!==!1,i=typeof e?.limit==`number`?e?.limit:n.parse(e?.limit||`100kb`),a=e?.type||t,s=e?.verify||!1,c=e?.defaultCharset||`utf-8`;if(s!==!1&&typeof s!=`function`)throw TypeError(`option verify must be function`);return{inflate:r,limit:i,verify:s,defaultCharset:c,shouldParse:typeof a==`function`?a:o(a)}}function c(e){return e}})),at=a(((e,n)=>{var r=Se(),i=Je(),a=Ke(),o=Xe(),s=t(`node:zlib`),c=rt().hasBody,{getCharset:l}=it();n.exports=u;function u(e,t,n,s,u,f){if(o.isFinished(e)){u(`body already parsed`),n();return}if(`body`in e||(e.body=void 0),!c(e)){u(`skip empty body`),n();return}if(u(`content-type %j`,e.headers[`content-type`]),!f.shouldParse(e)){u(`skip parsing`),n();return}var m=null;if(f?.skipCharset!==!0&&(m=l(e)||f.defaultCharset,f?.isValidCharset&&!f.isValidCharset(m))){u(`invalid charset`),n(r(415,`unsupported charset "`+m.toUpperCase()+`"`,{charset:m,type:`charset.unsupported`}));return}var h,g=f,_,v=g.verify;try{_=d(e,u,g.inflate),h=_.length,_.length=void 0}catch(e){return n(e)}if(g.length=h,g.encoding=v?null:m,g.encoding===null&&m!==null&&!a.encodingExists(m))return n(r(415,`unsupported charset "`+m.toUpperCase()+`"`,{charset:m.toLowerCase(),type:`charset.unsupported`}));u(`read body`),i(_,g,function(i,o){if(i){var c=i.type===`encoding.unsupported`?r(415,`unsupported charset "`+m.toUpperCase()+`"`,{charset:m.toLowerCase(),type:`charset.unsupported`}):r(400,i);_!==e&&(e.unpipe(),_.destroy()),p(e,function(){n(r(400,c))});return}if(v)try{u(`verify body`),v(e,t,o,m)}catch(e){n(r(403,e,{body:o,type:e.type||`entity.verify.failed`}));return}var l=o;try{u(`parse body`),l=typeof o!=`string`&&m!==null?a.decode(o,m):o,e.body=s(l,m)}catch(e){n(r(400,e,{body:l,type:e.type||`entity.parse.failed`}));return}n()})}function d(e,t,n){var i=(e.headers[`content-encoding`]||`identity`).toLowerCase(),a=e.headers[`content-length`];if(t(`content-encoding "%s"`,i),n===!1&&i!==`identity`)throw r(415,`content encoding unsupported`,{encoding:i,type:`encoding.unsupported`});if(i===`identity`)return e.length=a,e;var o=f(i,t);return e.pipe(o),o}function f(e,t){switch(e){case`deflate`:return t(`inflate body`),s.createInflate();case`gzip`:return t(`gunzip body`),s.createGunzip();case`br`:return t(`brotli decompress body`),s.createBrotliDecompress();default:throw r(415,`unsupported content encoding "`+e+`"`,{encoding:e,type:`encoding.unsupported`})}}function p(e,t){o.isFinished(e)?t(null):(o(e,t),e.resume())}})),ot=a(((e,t)=>{var n=me()(`body-parser:json`),r=at(),{normalizeOptions:i}=it();t.exports=c;var a=/^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/,o=`#`,s=/#+/g;function c(e){let t=i(e,`application/json`);var a=e?.reviver,o=e?.strict!==!1;function s(e){if(e.length===0)return{};if(o){var t=u(e);if(t!==`{`&&t!==`[`)throw n(`strict violation`),l(e,t)}try{return n(`parse json`),JSON.parse(e,a)}catch(e){throw d(e,{message:e.message,stack:e.stack})}}let c={...t,isValidCharset:e=>e.slice(0,4)===`utf-`};return function(e,t,i){r(e,t,i,s,n,c)}}function l(e,t){var n=e.indexOf(t),r=``;n!==-1&&(r=e.substring(0,n)+o.repeat(e.length-n));try{throw JSON.parse(r),SyntaxError(`strict violation`)}catch(t){return d(t,{message:t.message.replace(s,function(t){return e.substring(n,n+t.length)}),stack:t.stack})}}function u(e){var t=a.exec(e);return t?t[1]:void 0}function d(e,t){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var i=n[r];i!==`stack`&&i!==`message`&&delete e[i]}return e.stack=t.stack.replace(e.message,t.message),e.message=t.message,e}})),st=a(((e,t)=>{var n=me()(`body-parser:raw`),r=at(),{normalizeOptions:i,passthrough:a}=it();t.exports=o;function o(e){let t={...i(e,`application/octet-stream`),skipCharset:!0};return function(e,i,o){r(e,i,o,a,n,t)}}})),ct=a(((e,t)=>{var n=me()(`body-parser:text`),r=at(),{normalizeOptions:i,passthrough:a}=it();t.exports=o;function o(e){let t=i(e,`text/plain`);return function(e,i,o){r(e,i,o,a,n,t)}}})),lt=a(((e,t)=>{t.exports=TypeError})),ut=a(((e,n)=>{n.exports=t(`util`).inspect})),dt=a(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ee(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var N=ut(),P=N.custom,F=ae(P)?P:null,I={__proto__:null,double:`"`,single:`'`},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(G(s,`quoteStyle`)&&!G(I,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(G(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=G(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return he(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?ee(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?ee(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return B(t)?`[Array]`:`[Object]`;var g=xe(s,r);if(o===void 0)o=[];else if(le(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return G(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!H(t)){var x=ce(t),T=Ce(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ae(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?_e(D):D}if(me(t)){for(var P=`<`+b.call(String(t.nodeName)),L=t.attributes||[],z=0;z<L.length;z++)P+=` `+L[z].name+`=`+R(te(L[z].value),`double`,s);return P+=`>`,t.childNodes&&t.childNodes.length&&(P+=`...`),P+=`</`+b.call(String(t.nodeName))+`>`,P}if(B(t)){if(t.length===0)return`[]`;var oe=Ce(t,y);return g&&!be(oe)?`[`+Se(oe,g)+`]`:`[ `+C.call(oe,`, `)+` ]`}if(ne(t)){var ge=Ce(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),ge),`, `)+` }`:ge.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(ge,`, `)+` }`}if(typeof t==`object`&&u){if(F&&typeof t[F]==`function`&&N)return N(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(K(t)){var we=[];return a&&a.call(t,function(e,n){we.push(y(n,t,!0)+` => `+y(e,t))}),ye(`Map`,i.call(t),we,g)}if(fe(t)){var Te=[];return l&&l.call(t,function(e){Te.push(y(e,t))}),ye(`Set`,c.call(t),Te,g)}if(ue(t))return ve(`WeakMap`);if(pe(t))return ve(`WeakSet`);if(de(t))return ve(`WeakRef`);if(U(t))return _e(y(Number(t)));if(W(t))return _e(y(E.call(t)));if(ie(t))return _e(p.call(t));if(re(t))return _e(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!V(t)&&!H(t)){var Ee=Ce(t,y),De=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Oe=t instanceof Object?``:`null prototype`,ke=!De&&A&&Object(t)===t&&A in t?_.call(se(t),8,-1):Oe?`Object`:``,Ae=(De||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(ke||Oe?`[`+C.call(S.call([],ke||[],Oe||[]),`: `)+`] `:``);return Ee.length===0?Ae+`{}`:g?Ae+`{`+Se(Ee,g)+`}`:Ae+`{ `+C.call(Ee,`, `)+` }`}return String(t)};function R(e,t,n){var r=I[n.quoteStyle||t];return r+e+r}function te(e){return v.call(String(e),/"/g,`&quot;`)}function z(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function B(e){return se(e)===`[object Array]`&&z(e)}function V(e){return se(e)===`[object Date]`&&z(e)}function H(e){return se(e)===`[object RegExp]`&&z(e)}function ne(e){return se(e)===`[object Error]`&&z(e)}function re(e){return se(e)===`[object String]`&&z(e)}function U(e){return se(e)===`[object Number]`&&z(e)}function ie(e){return se(e)===`[object Boolean]`&&z(e)}function ae(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function W(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var oe=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return oe.call(e,t)}function se(e){return m.call(e)}function ce(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function le(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ue(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function de(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function fe(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function pe(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function me(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function he(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return he(_.call(e,0,t.maxStringLength),t)+r}var i=L[t.quoteStyle||`single`];return i.lastIndex=0,R(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,ge),`single`,t)}function ge(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function _e(e){return`Object(`+e+`)`}function ve(e){return e+` { ? }`}function ye(e,t,n,r){var i=r?Se(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function be(e){for(var t=0;t<e.length;t++)if(le(e[t],`
32
+ t.exports=Qe()})),et=a(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},r={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};t.exports=function(e,t=`default`){if(e===`application/octet-stream`)return 0;let[a,o]=e.split(`/`),s=n[o.replace(/(\.|x-).*/,`$1`)]||n.default,c=r[t]||r.default,l=i[a]||i.default,u=1-e.length/100;return s+c+l+u}})),tt=a((e=>{var n=$e(),r=t(`path`).extname,i=et(),a=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=c,e.extension=l,e.extensions=Object.create(null),e.lookup=u,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function s(e){if(!e||typeof e!=`string`)return!1;var t=a.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&o.test(t[1])?`UTF-8`:!1}function c(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function l(t){if(!t||typeof t!=`string`)return!1;var n=a.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function u(t){if(!t||typeof t!=`string`)return!1;var n=r(`x.`+t).toLowerCase().slice(1);return n&&e.types[n]||!1}function d(t,r){Object.keys(n).forEach(function(i){var a=n[i].extensions;if(!(!a||!a.length)){t[i]=a;for(var o=0;o<a.length;o++){var s=a[o];r[s]=f(s,r[s],i);let t=p(s,r[s],i);t!==r[s]&&e._extensionConflicts.push([s,t,r[s]])}}})}function f(e,t,r){return(t?i(t,n[t].source):0)>(r?i(r,n[r].source):0)?t:r}function p(t,r,i){var a=[`nginx`,`apache`,void 0,`iana`],o=r?a.indexOf(n[r].source):0,s=i?a.indexOf(n[i].source):0;return e.types[l]!==`application/octet-stream`&&(o>s||o===s&&e.types[l]?.slice(0,12)===`application/`)||o>s?r:i}})),nt=a((e=>{var t=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,n=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,r=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;e.format=i,e.parse=o,e.test=a;function i(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var r=e.subtype,i=e.suffix,a=e.type;if(!a||!n.test(a))throw TypeError(`invalid type`);if(!r||!t.test(r))throw TypeError(`invalid subtype`);var o=a+`/`+r;if(i){if(!n.test(i))throw TypeError(`invalid suffix`);o+=`+`+i}return o}function a(e){if(!e)throw TypeError(`argument string is required`);if(typeof e!=`string`)throw TypeError(`argument string is required to be a string`);return r.test(e.toLowerCase())}function o(e){if(!e)throw TypeError(`argument string is required`);if(typeof e!=`string`)throw TypeError(`argument string is required to be a string`);var t=r.exec(e.toLowerCase());if(!t)throw TypeError(`invalid media type`);var n=t[1],i=t[2],a,o=i.lastIndexOf(`+`);return o!==-1&&(a=i.substr(o+1),i=i.substr(0,o)),new s(n,i,a)}function s(e,t,n){this.type=e,this.subtype=t,this.suffix=n}})),rt=a(((e,t)=>{var n=Ze(),r=tt(),i=nt();t.exports=s,t.exports.is=a,t.exports.hasBody=o,t.exports.normalize=c,t.exports.match=l;function a(e,t){var n,r=t,i=d(e);if(!i)return!1;if(r&&!Array.isArray(r))for(r=Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];if(!r||!r.length)return i;var a;for(n=0;n<r.length;n++)if(l(c(a=r[n]),i))return a[0]===`+`||a.indexOf(`*`)!==-1?i:a;return!1}function o(e){return e.headers[`transfer-encoding`]!==void 0||!isNaN(e.headers[`content-length`])}function s(e,t){if(!o(e))return null;var n=arguments.length>2?Array.prototype.slice.call(arguments,1):t,r=e.headers[`content-type`];return a(r,n)}function c(e){if(typeof e!=`string`)return!1;switch(e){case`urlencoded`:return`application/x-www-form-urlencoded`;case`multipart`:return`multipart/*`}return e[0]===`+`?`*/*`+e:e.indexOf(`/`)===-1?r.lookup(e):e}function l(e,t){if(e===!1)return!1;var n=t.split(`/`),r=e.split(`/`);return n.length!==2||r.length!==2||r[0]!==`*`&&r[0]!==n[0]?!1:r[1].slice(0,2)===`*+`?r[1].length<=n[1].length+1&&r[1].slice(1)===n[1].slice(1-r[1].length):!(r[1]!==`*`&&r[1]!==n[1])}function u(e){var t=n.parse(e).type;return i.test(t)?t:null}function d(e){try{return e?u(e):null}catch{return null}}})),it=a(((e,t)=>{var n=Ce(),r=Ze(),i=rt();t.exports={getCharset:a,normalizeOptions:s,passthrough:c};function a(e){try{return(r.parse(e).parameters.charset||``).toLowerCase()}catch{return}}function o(e){return function(t){return!!i(t,e)}}function s(e,t){if(!t)throw TypeError(`defaultType must be provided`);var r=e?.inflate!==!1,i=typeof e?.limit==`number`?e?.limit:n.parse(e?.limit||`100kb`),a=e?.type||t,s=e?.verify||!1,c=e?.defaultCharset||`utf-8`;if(s!==!1&&typeof s!=`function`)throw TypeError(`option verify must be function`);return{inflate:r,limit:i,verify:s,defaultCharset:c,shouldParse:typeof a==`function`?a:o(a)}}function c(e){return e}})),at=a(((e,n)=>{var r=Se(),i=Je(),a=Ke(),o=Xe(),s=t(`node:zlib`),c=rt().hasBody,{getCharset:l}=it();n.exports=u;function u(e,t,n,s,u,f){if(o.isFinished(e)){u(`body already parsed`),n();return}if(`body`in e||(e.body=void 0),!c(e)){u(`skip empty body`),n();return}if(u(`content-type %j`,e.headers[`content-type`]),!f.shouldParse(e)){u(`skip parsing`),n();return}var m=null;if(f?.skipCharset!==!0&&(m=l(e)||f.defaultCharset,f?.isValidCharset&&!f.isValidCharset(m))){u(`invalid charset`),n(r(415,`unsupported charset "`+m.toUpperCase()+`"`,{charset:m,type:`charset.unsupported`}));return}var h,g=f,_,v=g.verify;try{_=d(e,u,g.inflate),h=_.length,_.length=void 0}catch(e){return n(e)}if(g.length=h,g.encoding=v?null:m,g.encoding===null&&m!==null&&!a.encodingExists(m))return n(r(415,`unsupported charset "`+m.toUpperCase()+`"`,{charset:m.toLowerCase(),type:`charset.unsupported`}));u(`read body`),i(_,g,function(i,o){if(i){var c=i.type===`encoding.unsupported`?r(415,`unsupported charset "`+m.toUpperCase()+`"`,{charset:m.toLowerCase(),type:`charset.unsupported`}):r(400,i);_!==e&&(e.unpipe(),_.destroy()),p(e,function(){n(r(400,c))});return}if(v)try{u(`verify body`),v(e,t,o,m)}catch(e){n(r(403,e,{body:o,type:e.type||`entity.verify.failed`}));return}var l=o;try{u(`parse body`),l=typeof o!=`string`&&m!==null?a.decode(o,m):o,e.body=s(l,m)}catch(e){n(r(400,e,{body:l,type:e.type||`entity.parse.failed`}));return}n()})}function d(e,t,n){var i=(e.headers[`content-encoding`]||`identity`).toLowerCase(),a=e.headers[`content-length`];if(t(`content-encoding "%s"`,i),n===!1&&i!==`identity`)throw r(415,`content encoding unsupported`,{encoding:i,type:`encoding.unsupported`});if(i===`identity`)return e.length=a,e;var o=f(i,t);return e.pipe(o),o}function f(e,t){switch(e){case`deflate`:return t(`inflate body`),s.createInflate();case`gzip`:return t(`gunzip body`),s.createGunzip();case`br`:return t(`brotli decompress body`),s.createBrotliDecompress();default:throw r(415,`unsupported content encoding "`+e+`"`,{encoding:e,type:`encoding.unsupported`})}}function p(e,t){o.isFinished(e)?t(null):(o(e,t),e.resume())}})),ot=a(((e,t)=>{var n=me()(`body-parser:json`),r=at(),{normalizeOptions:i}=it();t.exports=c;var a=/^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/,o=`#`,s=/#+/g;function c(e){let t=i(e,`application/json`);var a=e?.reviver,o=e?.strict!==!1;function s(e){if(e.length===0)return{};if(o){var t=u(e);if(t!==`{`&&t!==`[`)throw n(`strict violation`),l(e,t)}try{return n(`parse json`),JSON.parse(e,a)}catch(e){throw d(e,{message:e.message,stack:e.stack})}}let c={...t,isValidCharset:e=>e.slice(0,4)===`utf-`};return function(e,t,i){r(e,t,i,s,n,c)}}function l(e,t){var n=e.indexOf(t),r=``;n!==-1&&(r=e.substring(0,n)+o.repeat(e.length-n));try{throw JSON.parse(r),SyntaxError(`strict violation`)}catch(t){return d(t,{message:t.message.replace(s,function(t){return e.substring(n,n+t.length)}),stack:t.stack})}}function u(e){var t=a.exec(e);return t?t[1]:void 0}function d(e,t){for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var i=n[r];i!==`stack`&&i!==`message`&&delete e[i]}return e.stack=t.stack.replace(e.message,t.message),e.message=t.message,e}})),st=a(((e,t)=>{var n=me()(`body-parser:raw`),r=at(),{normalizeOptions:i,passthrough:a}=it();t.exports=o;function o(e){let t={...i(e,`application/octet-stream`),skipCharset:!0};return function(e,i,o){r(e,i,o,a,n,t)}}})),ct=a(((e,t)=>{var n=me()(`body-parser:text`),r=at(),{normalizeOptions:i,passthrough:a}=it();t.exports=o;function o(e){let t=i(e,`text/plain`);return function(e,i,o){r(e,i,o,a,n,t)}}})),lt=a(((e,t)=>{t.exports=TypeError})),ut=a(((e,n)=>{n.exports=t(`util`).inspect})),dt=a(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var ee=ut(),P=ee.custom,F=ae(P)?P:null,I={__proto__:null,double:`"`,single:`'`},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(W(s,`quoteStyle`)&&!W(I,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(W(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=W(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return he(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return B(t)?`[Array]`:`[Object]`;var g=xe(s,r);if(o===void 0)o=[];else if(le(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return W(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!H(t)){var x=ce(t),T=Ce(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ae(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?_e(D):D}if(me(t)){for(var P=`<`+b.call(String(t.nodeName)),L=t.attributes||[],z=0;z<L.length;z++)P+=` `+L[z].name+`=`+R(te(L[z].value),`double`,s);return P+=`>`,t.childNodes&&t.childNodes.length&&(P+=`...`),P+=`</`+b.call(String(t.nodeName))+`>`,P}if(B(t)){if(t.length===0)return`[]`;var se=Ce(t,y);return g&&!be(se)?`[`+Se(se,g)+`]`:`[ `+C.call(se,`, `)+` ]`}if(ne(t)){var ge=Ce(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),ge),`, `)+` }`:ge.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(ge,`, `)+` }`}if(typeof t==`object`&&u){if(F&&typeof t[F]==`function`&&ee)return ee(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(K(t)){var we=[];return a&&a.call(t,function(e,n){we.push(y(n,t,!0)+` => `+y(e,t))}),ye(`Map`,i.call(t),we,g)}if(fe(t)){var Te=[];return l&&l.call(t,function(e){Te.push(y(e,t))}),ye(`Set`,c.call(t),Te,g)}if(ue(t))return ve(`WeakMap`);if(pe(t))return ve(`WeakSet`);if(de(t))return ve(`WeakRef`);if(U(t))return _e(y(Number(t)));if(oe(t))return _e(y(E.call(t)));if(ie(t))return _e(p.call(t));if(re(t))return _e(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!V(t)&&!H(t)){var Ee=Ce(t,y),De=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Oe=t instanceof Object?``:`null prototype`,ke=!De&&A&&Object(t)===t&&A in t?_.call(G(t),8,-1):Oe?`Object`:``,Ae=(De||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(ke||Oe?`[`+C.call(S.call([],ke||[],Oe||[]),`: `)+`] `:``);return Ee.length===0?Ae+`{}`:g?Ae+`{`+Se(Ee,g)+`}`:Ae+`{ `+C.call(Ee,`, `)+` }`}return String(t)};function R(e,t,n){var r=I[n.quoteStyle||t];return r+e+r}function te(e){return v.call(String(e),/"/g,`&quot;`)}function z(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function B(e){return G(e)===`[object Array]`&&z(e)}function V(e){return G(e)===`[object Date]`&&z(e)}function H(e){return G(e)===`[object RegExp]`&&z(e)}function ne(e){return G(e)===`[object Error]`&&z(e)}function re(e){return G(e)===`[object String]`&&z(e)}function U(e){return G(e)===`[object Number]`&&z(e)}function ie(e){return G(e)===`[object Boolean]`&&z(e)}function ae(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function oe(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var se=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return se.call(e,t)}function G(e){return m.call(e)}function ce(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function le(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ue(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function de(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function fe(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function pe(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function me(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function he(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return he(_.call(e,0,t.maxStringLength),t)+r}var i=L[t.quoteStyle||`single`];return i.lastIndex=0,R(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,ge),`single`,t)}function ge(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function _e(e){return`Object(`+e+`)`}function ve(e){return e+` { ? }`}function ye(e,t,n,r){var i=r?Se(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function be(e){for(var t=0;t<e.length;t++)if(le(e[t],`
33
33
  `)>=0)return!1;return!0}function xe(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function Se(e,t){if(e.length===0)return``;var n=`
34
34
  `+t.prev+t.base;return n+C.call(e,`,`+n)+`
35
- `+t.prev}function Ce(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=G(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)G(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),ft=a(((e,t)=>{var n=dt(),r=lt(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),pt=a(((e,t)=>{t.exports=Object})),mt=a(((e,t)=>{t.exports=Error})),ht=a(((e,t)=>{t.exports=EvalError})),gt=a(((e,t)=>{t.exports=RangeError})),_t=a(((e,t)=>{t.exports=ReferenceError})),vt=a(((e,t)=>{t.exports=SyntaxError})),yt=a(((e,t)=>{t.exports=URIError})),bt=a(((e,t)=>{t.exports=Math.abs})),xt=a(((e,t)=>{t.exports=Math.floor})),St=a(((e,t)=>{t.exports=Math.max})),Ct=a(((e,t)=>{t.exports=Math.min})),wt=a(((e,t)=>{t.exports=Math.pow})),Tt=a(((e,t)=>{t.exports=Math.round})),Et=a(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Dt=a(((e,t)=>{var n=Et();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Ot=a(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),kt=a(((e,t)=>{var n=Ot();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),At=a(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),jt=a(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Mt=a(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=jt();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Nt=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Pt=a(((e,t)=>{t.exports=pt().getPrototypeOf||null})),Ft=a(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),It=a(((e,t)=>{var n=Ft();t.exports=Function.prototype.bind||n})),Lt=a(((e,t)=>{t.exports=Function.prototype.call})),Rt=a(((e,t)=>{t.exports=Function.prototype.apply})),zt=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Bt=a(((e,t)=>{var n=It(),r=Rt(),i=Lt();t.exports=zt()||n.call(i,r)})),Vt=a(((e,t)=>{var n=It(),r=lt(),i=Lt(),a=Bt();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Ht=a(((e,t)=>{var n=Vt(),r=kt(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Ut=a(((e,t)=>{var n=Nt(),r=Pt(),i=Ht();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Wt=a(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=It().call(n,r)})),Gt=a(((e,t)=>{var n,r=pt(),i=mt(),a=ht(),o=gt(),s=_t(),c=vt(),l=lt(),u=yt(),d=bt(),f=xt(),p=St(),m=Ct(),h=wt(),g=Tt(),_=Dt(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=kt(),x=At(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Mt()(),T=Ut(),E=Pt(),D=Nt(),O=Rt(),k=Lt(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var ee=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},N={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},P=It(),F=Wt(),I=P.call(k,Array.prototype.concat),L=P.call(O,Array.prototype.splice),R=P.call(k,String.prototype.replace),te=P.call(k,String.prototype.slice),z=P.call(k,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,H=function(e){var t=te(e,0,1),n=te(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return R(e,B,function(e,t,n,i){r[r.length]=n?R(i,V,`$1`):t||e}),r},ne=function(e,t){var n=e,r;if(F(N,n)&&(r=N[n],n=`%`+r[0]+`%`),F(M,n)){var i=M[n];if(i===A&&(i=ee(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(z(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=H(e),r=n.length>0?n[0]:``,i=ne(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],L(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=te(p,0,1),h=te(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,F(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Kt=a(((e,t)=>{var n=Gt(),r=Vt(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),qt=a(((e,t)=>{var n=Gt(),r=Kt(),i=dt(),a=lt(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Jt=a(((e,t)=>{var n=Gt(),r=Kt(),i=dt(),a=qt(),o=lt(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),Yt=a(((e,t)=>{var n=lt(),r=dt(),i=ft(),a=qt(),o=Jt()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Xt=a(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),Zt=a(((e,t)=>{var n=Xt(),r=Yt(),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=r(),s=function(e,t){return o.set(e,t),e},c=function(e){return o.has(e)},l=function(e){return o.get(e)},u=function(e,t){o.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),f=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},p=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},m=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(a(t)){var o=t.length;if(r&&typeof r.arrayLimit==`number`&&o>r.arrayLimit)return s(p(t.concat(n),r),o);t[o]=n}else if(t&&typeof t==`object`)if(c(t)){var d=l(t)+1;t[d]=n,u(t,d)}else if(r&&r.strictMerge)return[t,n];else (r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(c(n)){for(var f=Object.keys(n),m=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<f.length;h++){var g=parseInt(f[h],10);m[g+1]=n[f[h]]}return s(m,l(n)+1)}var _=[t].concat(n);return r&&typeof r.arrayLimit==`number`&&_.length>r.arrayLimit?s(p(_,r),_.length-1):_}var v=t;return a(t)&&!a(n)&&(v=p(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(i.call(t,a)){var o=t[a];o&&typeof o==`object`&&n&&typeof n==`object`?t[a]=e(o,n,r):t[t.length]=n}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var o=n[a];if(i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,c(n)&&!c(t)&&s(t,l(n)),c(t)){var d=parseInt(a,10);String(d)===a&&d>=0&&d>l(t)&&u(t,d)}return t},v)},h=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},g=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},_=1024;t.exports={arrayToObject:p,assign:h,combine:function(e,t,n,r){if(c(e)){var i=l(e)+1;return e[i]=t,u(e,i),e}var a=[].concat(e,t);return a.length>n?s(p(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],l=a[c];typeof l==`object`&&l&&n.indexOf(l)===-1&&(t[t.length]={obj:a,prop:c},n[n.length]=l)}return f(t),e},decode:g,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=_){for(var l=o.length>=_?o.slice(c,c+_):o,u=[],f=0;f<l.length;++f){var p=l.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(p===40||p===41)){u[u.length]=l.charAt(f);continue}if(p<128){u[u.length]=d[p];continue}if(p<2048){u[u.length]=d[192|p>>6]+d[128|p&63];continue}if(p<55296||p>=57344){u[u.length]=d[224|p>>12]+d[128|p>>6&63]+d[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|l.charCodeAt(f)&1023),u[u.length]=d[240|p>>18]+d[128|p>>12&63]+d[128|p>>6&63]+d[128|p&63]}s+=u.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:s,maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:m}})),Qt=a(((e,t)=>{var n=Yt(),r=Zt(),i=Xt(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var ee=Object.keys(E);M=v?ee.sort(v):ee}var N=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?N+`[]`:N;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),te=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var z=n();z.set(m,T),l(j,e(L,te,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),$t=a(((e,t)=>{var n=Zt(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);x=n.combine([],x,t.arrayLimit,t.plainObjects)}if(b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,o=i.exec(n),s=o?n.slice(0,o.index):n,c=[];if(s){if(!t.plainObjects&&r.call(Object.prototype,s)&&!t.allowPrototypes)return;c[c.length]=s}for(var l=0;(o=a.exec(n))!==null&&l<t.depth;){l+=1;var u=o[1].slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,u)&&!t.allowPrototypes)return;c[c.length]=o[1]}if(o){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);c[c.length]=`[`+n.slice(o.index)+`]`}return c},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),en=a(((e,t)=>{var n=Qt(),r=$t();t.exports={formats:Xt(),parse:r,stringify:n}})),tn=a(((e,t)=>{var n=Se(),r=me()(`body-parser:urlencoded`),i=at(),a=en(),{normalizeOptions:o}=it();t.exports=s;function s(e){let t=o(e,`application/x-www-form-urlencoded`);if(t.defaultCharset!==`utf-8`&&t.defaultCharset!==`iso-8859-1`)throw TypeError(`option defaultCharset must be either utf-8 or iso-8859-1`);var n=c(e);function a(e,t){return e.length?n(e,t):{}}let s={...t,isValidCharset:e=>e===`utf-8`||e===`iso-8859-1`};return function(e,t,n){i(e,t,n,a,r,s)}}function c(e){var t=!!e?.extended,i=e?.parameterLimit===void 0?1e3:e?.parameterLimit,o=e?.charsetSentinel,s=e?.interpretNumericEntities,c=t?e?.depth===void 0?32:e?.depth:0;if(isNaN(i)||i<1)throw TypeError(`option parameterLimit must be a positive number`);if(isNaN(c)||c<0)throw TypeError(`option depth must be a zero or a positive number`);return isFinite(i)&&(i|=0),function(e,u){var d=l(e,i);if(d===void 0)throw r(`too many parameters`),n(413,`too many parameters`,{type:`parameters.too.many`});var f=t?Math.max(100,d):d;r(`parse `+(t?`extended `:``)+`urlencoding`);try{return a.parse(e,{allowPrototypes:!0,arrayLimit:f,depth:c,charsetSentinel:o,interpretNumericEntities:s,charset:u,parameterLimit:i,strictDepth:!0})}catch(e){throw e instanceof RangeError?n(400,`The input exceeded the depth`,{type:`querystring.parse.rangeError`}):e}}}function l(e,t){let n=0,r=-1;do{if(n++,n>t)return;r=e.indexOf(`&`,r+1)}while(r!==-1);return n}})),nn=a(((e,t)=>{e=t.exports=n,Object.defineProperty(e,`json`,{configurable:!0,enumerable:!0,get:()=>ot()}),Object.defineProperty(e,`raw`,{configurable:!0,enumerable:!0,get:()=>st()}),Object.defineProperty(e,`text`,{configurable:!0,enumerable:!0,get:()=>ct()}),Object.defineProperty(e,`urlencoded`,{configurable:!0,enumerable:!0,get:()=>tn()});function n(){throw Error(`The bodyParser() generic has been split into individual middleware to use instead.`)}})),rn=a(((e,t)=>{function n(e,t,n=!0){if(!e)throw TypeError("The `destination` argument is required.");if(!t)throw TypeError("The `source` argument is required.");for(let r of Object.getOwnPropertyNames(t)){if(!n&&Object.hasOwn(e,r))continue;let i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i)}return e}t.exports=n})),an=a(((e,t)=>{t.exports=a;var n=/(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,r=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,i=`$1�$2`;function a(e){return String(e).replace(r,i).replace(n,encodeURI)}})),on=a(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),sn=a(((e,n)=>{var r=t(`url`),i=r.parse,a=r.Url;n.exports=o,n.exports.original=s;function o(e){var t=e.url;if(t!==void 0){var n=e._parsedUrl;return l(t,n)?n:(n=c(t),n._raw=t,e._parsedUrl=n)}}function s(e){var t=e.originalUrl;if(typeof t!=`string`)return o(e);var n=e._parsedOriginalUrl;return l(t,n)?n:(n=c(t),n._raw=t,e._parsedOriginalUrl=n)}function c(e){if(typeof e!=`string`||e.charCodeAt(0)!==47)return i(e);for(var t=e,n=null,r=null,o=1;o<e.length;o++)switch(e.charCodeAt(o)){case 63:r===null&&(t=e.substring(0,o),n=e.substring(o+1),r=e.substring(o));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return i(e)}var s=a===void 0?{}:new a;return s.path=e,s.href=e,s.pathname=t,r!==null&&(s.query=n,s.search=r),s}function l(e,t){return typeof t==`object`&&!!t&&(a===void 0||t instanceof a)&&t._raw===e}})),cn=a(((e,t)=>{var n=me()(`finalhandler`),r=an(),i=on(),a=Xe(),o=sn(),s=ve(),c=a.isFinished;function l(e){return`<!DOCTYPE html>
35
+ `+t.prev}function Ce(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)W(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),ft=a(((e,t)=>{var n=dt(),r=lt(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),pt=a(((e,t)=>{t.exports=Object})),mt=a(((e,t)=>{t.exports=Error})),ht=a(((e,t)=>{t.exports=EvalError})),gt=a(((e,t)=>{t.exports=RangeError})),_t=a(((e,t)=>{t.exports=ReferenceError})),vt=a(((e,t)=>{t.exports=SyntaxError})),yt=a(((e,t)=>{t.exports=URIError})),bt=a(((e,t)=>{t.exports=Math.abs})),xt=a(((e,t)=>{t.exports=Math.floor})),St=a(((e,t)=>{t.exports=Math.max})),Ct=a(((e,t)=>{t.exports=Math.min})),wt=a(((e,t)=>{t.exports=Math.pow})),Tt=a(((e,t)=>{t.exports=Math.round})),Et=a(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Dt=a(((e,t)=>{var n=Et();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Ot=a(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),kt=a(((e,t)=>{var n=Ot();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),At=a(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),jt=a(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Mt=a(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=jt();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Nt=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Pt=a(((e,t)=>{t.exports=pt().getPrototypeOf||null})),Ft=a(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),It=a(((e,t)=>{var n=Ft();t.exports=Function.prototype.bind||n})),Lt=a(((e,t)=>{t.exports=Function.prototype.call})),Rt=a(((e,t)=>{t.exports=Function.prototype.apply})),zt=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Bt=a(((e,t)=>{var n=It(),r=Rt(),i=Lt();t.exports=zt()||n.call(i,r)})),Vt=a(((e,t)=>{var n=It(),r=lt(),i=Lt(),a=Bt();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Ht=a(((e,t)=>{var n=Vt(),r=kt(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Ut=a(((e,t)=>{var n=Nt(),r=Pt(),i=Ht();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Wt=a(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=It().call(n,r)})),Gt=a(((e,t)=>{var n,r=pt(),i=mt(),a=ht(),o=gt(),s=_t(),c=vt(),l=lt(),u=yt(),d=bt(),f=xt(),p=St(),m=Ct(),h=wt(),g=Tt(),_=Dt(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=kt(),x=At(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Mt()(),T=Ut(),E=Pt(),D=Nt(),O=Rt(),k=Lt(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},P=It(),F=Wt(),I=P.call(k,Array.prototype.concat),L=P.call(O,Array.prototype.splice),R=P.call(k,String.prototype.replace),te=P.call(k,String.prototype.slice),z=P.call(k,RegExp.prototype.exec),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,H=function(e){var t=te(e,0,1),n=te(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return R(e,B,function(e,t,n,i){r[r.length]=n?R(i,V,`$1`):t||e}),r},ne=function(e,t){var n=e,r;if(F(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),F(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(z(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=H(e),r=n.length>0?n[0]:``,i=ne(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],L(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=te(p,0,1),h=te(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,F(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Kt=a(((e,t)=>{var n=Gt(),r=Vt(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),qt=a(((e,t)=>{var n=Gt(),r=Kt(),i=dt(),a=lt(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Jt=a(((e,t)=>{var n=Gt(),r=Kt(),i=dt(),a=qt(),o=lt(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),Yt=a(((e,t)=>{var n=lt(),r=dt(),i=ft(),a=qt(),o=Jt()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Xt=a(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),Zt=a(((e,t)=>{var n=Xt(),r=Yt(),i=Object.prototype.hasOwnProperty,a=Array.isArray,o=r(),s=function(e,t){return o.set(e,t),e},c=function(e){return o.has(e)},l=function(e){return o.get(e)},u=function(e,t){o.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),f=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},p=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},m=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(a(t)){var o=t.length;if(r&&typeof r.arrayLimit==`number`&&o>r.arrayLimit)return s(p(t.concat(n),r),o);t[o]=n}else if(t&&typeof t==`object`)if(c(t)){var d=l(t)+1;t[d]=n,u(t,d)}else if(r&&r.strictMerge)return[t,n];else (r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(c(n)){for(var f=Object.keys(n),m=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<f.length;h++){var g=parseInt(f[h],10);m[g+1]=n[f[h]]}return s(m,l(n)+1)}var _=[t].concat(n);return r&&typeof r.arrayLimit==`number`&&_.length>r.arrayLimit?s(p(_,r),_.length-1):_}var v=t;return a(t)&&!a(n)&&(v=p(t,r)),a(t)&&a(n)?(n.forEach(function(n,a){if(i.call(t,a)){var o=t[a];o&&typeof o==`object`&&n&&typeof n==`object`?t[a]=e(o,n,r):t[t.length]=n}else t[a]=n}),t):Object.keys(n).reduce(function(t,a){var o=n[a];if(i.call(t,a)?t[a]=e(t[a],o,r):t[a]=o,c(n)&&!c(t)&&s(t,l(n)),c(t)){var d=parseInt(a,10);String(d)===a&&d>=0&&d>l(t)&&u(t,d)}return t},v)},h=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},g=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},_=1024;t.exports={arrayToObject:p,assign:h,combine:function(e,t,n,r){if(c(e)){var i=l(e)+1;return e[i]=t,u(e,i),e}var a=[].concat(e,t);return a.length>n?s(p(a,{plainObjects:r}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],l=a[c];typeof l==`object`&&l&&n.indexOf(l)===-1&&(t[t.length]={obj:a,prop:c},n[n.length]=l)}return f(t),e},decode:g,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=_){for(var l=o.length>=_?o.slice(c,c+_):o,u=[],f=0;f<l.length;++f){var p=l.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(p===40||p===41)){u[u.length]=l.charAt(f);continue}if(p<128){u[u.length]=d[p];continue}if(p<2048){u[u.length]=d[192|p>>6]+d[128|p&63];continue}if(p<55296||p>=57344){u[u.length]=d[224|p>>12]+d[128|p>>6&63]+d[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|l.charCodeAt(f)&1023),u[u.length]=d[240|p>>18]+d[128|p>>12&63]+d[128|p>>6&63]+d[128|p&63]}s+=u.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:s,maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:m}})),Qt=a(((e,t)=>{var n=Yt(),r=Zt(),i=Xt(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var ee=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?ee+`[]`:ee;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],L=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&L===null)){var R=y&&h?String(I).replace(/\./g,`%2E`):String(I),te=s(E)?typeof a==`function`?a(P,R):P:P+(y?`.`+R:`[`+R+`]`);T.set(t,O);var z=n();z.set(m,T),l(j,e(L,te,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,z))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),$t=a(((e,t)=>{var n=Zt(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);x=n.combine([],x,t.arrayLimit,t.plainObjects)}if(b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,o=i.exec(n),s=o?n.slice(0,o.index):n,c=[];if(s){if(!t.plainObjects&&r.call(Object.prototype,s)&&!t.allowPrototypes)return;c[c.length]=s}for(var l=0;(o=a.exec(n))!==null&&l<t.depth;){l+=1;var u=o[1].slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,u)&&!t.allowPrototypes)return;c[c.length]=o[1]}if(o){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);c[c.length]=`[`+n.slice(o.index)+`]`}return c},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),en=a(((e,t)=>{var n=Qt(),r=$t();t.exports={formats:Xt(),parse:r,stringify:n}})),tn=a(((e,t)=>{var n=Se(),r=me()(`body-parser:urlencoded`),i=at(),a=en(),{normalizeOptions:o}=it();t.exports=s;function s(e){let t=o(e,`application/x-www-form-urlencoded`);if(t.defaultCharset!==`utf-8`&&t.defaultCharset!==`iso-8859-1`)throw TypeError(`option defaultCharset must be either utf-8 or iso-8859-1`);var n=c(e);function a(e,t){return e.length?n(e,t):{}}let s={...t,isValidCharset:e=>e===`utf-8`||e===`iso-8859-1`};return function(e,t,n){i(e,t,n,a,r,s)}}function c(e){var t=!!e?.extended,i=e?.parameterLimit===void 0?1e3:e?.parameterLimit,o=e?.charsetSentinel,s=e?.interpretNumericEntities,c=t?e?.depth===void 0?32:e?.depth:0;if(isNaN(i)||i<1)throw TypeError(`option parameterLimit must be a positive number`);if(isNaN(c)||c<0)throw TypeError(`option depth must be a zero or a positive number`);return isFinite(i)&&(i|=0),function(e,u){var d=l(e,i);if(d===void 0)throw r(`too many parameters`),n(413,`too many parameters`,{type:`parameters.too.many`});var f=t?Math.max(100,d):d;r(`parse `+(t?`extended `:``)+`urlencoding`);try{return a.parse(e,{allowPrototypes:!0,arrayLimit:f,depth:c,charsetSentinel:o,interpretNumericEntities:s,charset:u,parameterLimit:i,strictDepth:!0})}catch(e){throw e instanceof RangeError?n(400,`The input exceeded the depth`,{type:`querystring.parse.rangeError`}):e}}}function l(e,t){let n=0,r=-1;do{if(n++,n>t)return;r=e.indexOf(`&`,r+1)}while(r!==-1);return n}})),nn=a(((e,t)=>{e=t.exports=n,Object.defineProperty(e,`json`,{configurable:!0,enumerable:!0,get:()=>ot()}),Object.defineProperty(e,`raw`,{configurable:!0,enumerable:!0,get:()=>st()}),Object.defineProperty(e,`text`,{configurable:!0,enumerable:!0,get:()=>ct()}),Object.defineProperty(e,`urlencoded`,{configurable:!0,enumerable:!0,get:()=>tn()});function n(){throw Error(`The bodyParser() generic has been split into individual middleware to use instead.`)}})),rn=a(((e,t)=>{function n(e,t,n=!0){if(!e)throw TypeError("The `destination` argument is required.");if(!t)throw TypeError("The `source` argument is required.");for(let r of Object.getOwnPropertyNames(t)){if(!n&&Object.hasOwn(e,r))continue;let i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i)}return e}t.exports=n})),an=a(((e,t)=>{t.exports=a;var n=/(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,r=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,i=`$1�$2`;function a(e){return String(e).replace(r,i).replace(n,encodeURI)}})),on=a(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),sn=a(((e,n)=>{var r=t(`url`),i=r.parse,a=r.Url;n.exports=o,n.exports.original=s;function o(e){var t=e.url;if(t!==void 0){var n=e._parsedUrl;return l(t,n)?n:(n=c(t),n._raw=t,e._parsedUrl=n)}}function s(e){var t=e.originalUrl;if(typeof t!=`string`)return o(e);var n=e._parsedOriginalUrl;return l(t,n)?n:(n=c(t),n._raw=t,e._parsedOriginalUrl=n)}function c(e){if(typeof e!=`string`||e.charCodeAt(0)!==47)return i(e);for(var t=e,n=null,r=null,o=1;o<e.length;o++)switch(e.charCodeAt(o)){case 63:r===null&&(t=e.substring(0,o),n=e.substring(o+1),r=e.substring(o));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return i(e)}var s=a===void 0?{}:new a;return s.path=e,s.href=e,s.pathname=t,r!==null&&(s.query=n,s.search=r),s}function l(e,t){return typeof t==`object`&&!!t&&(a===void 0||t instanceof a)&&t._raw===e}})),cn=a(((e,t)=>{var n=me()(`finalhandler`),r=an(),i=on(),a=Xe(),o=sn(),s=ve(),c=a.isFinished;function l(e){return`<!DOCTYPE html>
36
36
  <html lang="en">
37
37
  <head>
38
38
  <meta charset="utf-8">
@@ -43,7 +43,7 @@ t.exports=Qe()})),et=a(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,d
43
43
  `,`<br>`).replaceAll(` `,` &nbsp;`)+`</pre>
44
44
  </body>
45
45
  </html>
46
- `}t.exports=u;function u(e,t,i){var a=i||{},o=a.env||process.env.NODE_ENV||`development`,s=a.onerror;return function(i){var a,c,l;if(!i&&t.headersSent){n(`cannot 404 after headers sent`);return}if(i?(l=p(i),l===void 0?l=h(t):a=d(i),c=f(i,l,o)):(l=404,c=`Cannot `+e.method+` `+r(m(e))),n(`default %s`,l),i&&s&&setImmediate(s,i,e,t),t.headersSent){n(`cannot %d after headers sent`,l),e.socket&&e.socket.destroy();return}g(e,t,l,a,c)}}function d(e){if(!(!e.headers||typeof e.headers!=`object`))return{...e.headers}}function f(e,t,n){var r;return n!==`production`&&(r=e.stack,!r&&typeof e.toString==`function`&&(r=e.toString())),r||s.message[t]}function p(e){if(typeof e.status==`number`&&e.status>=400&&e.status<600)return e.status;if(typeof e.statusCode==`number`&&e.statusCode>=400&&e.statusCode<600)return e.statusCode}function m(e){try{return o.original(e).pathname}catch{return`resource`}}function h(e){var t=e.statusCode;return(typeof t!=`number`||t<400||t>599)&&(t=500),t}function g(e,t,n,r,i){function o(){var a=l(i);t.statusCode=n,e.httpVersionMajor<2&&(t.statusMessage=s.message[n]),t.removeHeader(`Content-Encoding`),t.removeHeader(`Content-Language`),t.removeHeader(`Content-Range`);for(let[e,n]of Object.entries(r??{}))t.setHeader(e,n);if(t.setHeader(`Content-Security-Policy`,`default-src 'none'`),t.setHeader(`X-Content-Type-Options`,`nosniff`),t.setHeader(`Content-Type`,`text/html; charset=utf-8`),t.setHeader(`Content-Length`,Buffer.byteLength(a,`utf8`)),e.method===`HEAD`){t.end();return}t.end(a,`utf8`)}if(c(e)){o();return}e.unpipe(),a(e,o),e.resume()}})),ln=a(((e,n)=>{var r=me()(`express:view`),i=t(`node:path`),a=t(`node:fs`),o=i.dirname,s=i.basename,c=i.extname,l=i.join,u=i.resolve;n.exports=d;function d(e,n){var i=n||{};if(this.defaultEngine=i.defaultEngine,this.ext=c(e),this.name=e,this.root=i.root,!this.ext&&!this.defaultEngine)throw Error(`No default engine was specified and no extension was provided.`);var a=e;if(this.ext||(this.ext=this.defaultEngine[0]===`.`?this.defaultEngine:`.`+this.defaultEngine,a+=this.ext),!i.engines[this.ext]){var o=this.ext.slice(1);r(`require "%s"`,o);var s=t(o).__express;if(typeof s!=`function`)throw Error(`Module "`+o+`" does not provide a view engine.`);i.engines[this.ext]=s}this.engine=i.engines[this.ext],this.path=this.lookup(a)}d.prototype.lookup=function(e){var t,n=[].concat(this.root);r(`lookup "%s"`,e);for(var i=0;i<n.length&&!t;i++){var a=n[i],c=u(a,e),l=o(c),d=s(c);t=this.resolve(l,d)}return t},d.prototype.render=function(e,t){var n=!0;r(`render "%s"`,this.path),this.engine(this.path,e,function(){if(!n)return t.apply(this,arguments);for(var e=Array(arguments.length),r=this,i=0;i<arguments.length;i++)e[i]=arguments[i];return process.nextTick(function(){return t.apply(r,e)})}),n=!1},d.prototype.resolve=function(e,t){var n=this.ext,r=l(e,t),i=f(r);if(i&&i.isFile()||(r=l(e,s(t,n),`index`+n),i=f(r),i&&i.isFile()))return r};function f(e){r(`stat "%s"`,e);try{return a.statSync(e)}catch{return}}})),un=a(((e,n)=>{n.exports=s;var r=t(`crypto`),i=t(`fs`).Stats,a=Object.prototype.toString;function o(e){if(e.length===0)return`"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"`;var t=r.createHash(`sha1`).update(e,`utf8`).digest(`base64`).substring(0,27);return`"`+(typeof e==`string`?Buffer.byteLength(e,`utf8`):e.length).toString(16)+`-`+t+`"`}function s(e,t){if(e==null)throw TypeError(`argument entity is required`);var n=c(e),r=t&&typeof t.weak==`boolean`?t.weak:n;if(!n&&typeof e!=`string`&&!Buffer.isBuffer(e))throw TypeError(`argument entity must be string, Buffer, or fs.Stats`);var i=n?l(e):o(e);return r?`W/`+i:i}function c(e){return typeof i==`function`&&e instanceof i?!0:e&&typeof e==`object`&&`ctime`in e&&a.call(e.ctime)===`[object Date]`&&`mtime`in e&&a.call(e.mtime)===`[object Date]`&&`ino`in e&&typeof e.ino==`number`&&`size`in e&&typeof e.size==`number`}function l(e){var t=e.mtime.getTime().toString(16);return`"`+e.size.toString(16)+`-`+t+`"`}})),dn=a(((e,t)=>{t.exports=n;function n(e){if(!e)throw TypeError(`argument req is required`);var t=i(e.headers[`x-forwarded-for`]||``);return[r(e)].concat(t)}function r(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}function i(e){for(var t=e.length,n=[],r=e.length,i=e.length-1;i>=0;i--)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i);break;case 44:r!==t&&n.push(e.substring(r,t)),r=t=i;break;default:r=i;break}return r!==t&&n.push(e.substring(r,t)),n}})),fn=a(((e,t)=>{(function(){var e,n={},r,i,a,o,s,c=this,l;t!=null&&t.exports?t.exports=n:c.ipaddr=n,s=function(e,t,n,r){var i,a;if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);for(i=0;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0},n.subnetMatch=function(e,t,n){var r,i,a,o,s;for(a in n??=`unicast`,t)for(o=t[a],o[0]&&!(o[0]instanceof Array)&&(o=[o]),r=0,i=o.length;r<i;r++)if(s=o[r],e.kind()===s[0].kind()&&e.match.apply(e,s))return a;return n},n.IPv4=(function(){function e(e){var t,n,r;if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);for(t=0,n=e.length;t<n;t++)if(r=e[t],!(0<=r&&r<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.kind=function(){return`ipv4`},e.prototype.toString=function(){return this.octets.join(`.`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.match=function(e,t){var n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return s(this.octets,e.octets,8,t)},e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.range=function(){return n.subnetMatch(this,this.SpecialRanges)},e.prototype.toIPv4MappedAddress=function(){return n.IPv6.parse(`::ffff:`+this.toString())},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,n,r,i,a,o={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=0,i=!1,t=n=3;n>=0;t=n+=-1)if(r=this.octets[t],r in o){if(a=o[r],i&&a!==0)return null;a!==8&&(i=!0),e+=a}else return null;return 32-e},e})(),r=`(0?\\d+|0x[a-f0-9]+)`,i={fourOctet:RegExp(`^`+r+`\\.`+r+`\\.`+r+`\\.`+r+`$`,`i`),longValue:RegExp(`^`+r+`$`,`i`)},n.IPv4.parser=function(e){var t,n=function(e){return e[0]===`0`&&e[1]!==`x`?parseInt(e,8):parseInt(e)},r,a,o;if(t=e.match(i.fourOctet))return(function(){var e,i,a=t.slice(1,6),o=[];for(e=0,i=a.length;e<i;e++)r=a[e],o.push(n(r));return o})();if(t=e.match(i.longValue)){if(o=n(t[1]),o>4294967295||o<0)throw Error(`ipaddr: address outside defined range`);return(function(){var e,t=[];for(a=e=0;e<=24;a=e+=8)t.push(o>>a&255);return t})().reverse()}else return null},n.IPv6=(function(){function e(e,t){var n,r,i,a,o,s;if(e.length===16)for(this.parts=[],n=r=0;r<=14;n=r+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(s=this.parts,i=0,a=s.length;i<a;i++)if(o=s[i],!(0<=o&&o<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.kind=function(){return`ipv6`},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,`::`)},e.prototype.toRFC5952String=function(){var e,t,n,r=/((^|:)(0(:|$)){2,})/g,i=this.toNormalizedString();for(e=0,t=-1;n=r.exec(i);)n[0].length>t&&(e=n.index,t=n[0].length);return t<0?i:i.substring(0,e)+`::`+i.substring(e+t)},e.prototype.toByteArray=function(){var e=[],t,n,r,i=this.parts;for(t=0,n=i.length;t<n;t++)r=i[t],e.push(r>>8),e.push(r&255);return e},e.prototype.toNormalizedString=function(){var e=(function(){var e,n,r=this.parts,i=[];for(e=0,n=r.length;e<n;e++)t=r[e],i.push(t.toString(16));return i}).call(this).join(`:`),t,n=``;return this.zoneId&&(n=`%`+this.zoneId),e+n},e.prototype.toFixedLengthString=function(){var e=(function(){var e,n,r=this.parts,i=[];for(e=0,n=r.length;e<n;e++)t=r[e],i.push(t.toString(16).padStart(4,`0`));return i}).call(this).join(`:`),t,n=``;return this.zoneId&&(n=`%`+this.zoneId),e+n},e.prototype.match=function(e,t){var n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return s(this.parts,e.parts,16,t)},e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.range=function(){return n.subnetMatch(this,this.SpecialRanges)},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.toIPv4Address=function(){var e,t,r;if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);return r=this.parts.slice(-2),e=r[0],t=r[1],new n.IPv4([e>>8,e&255,t>>8,t&255])},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,n,r,i,a,o={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};for(e=0,i=!1,t=n=7;n>=0;t=n+=-1)if(r=this.parts[t],r in o){if(a=o[r],i&&a!==0)return null;a!==16&&(i=!0),e+=a}else return null;return 128-e},e})(),a=`(?:[0-9a-f]+::?)+`,l=`%[0-9a-z]{1,}`,o={zoneIndex:new RegExp(l,`i`),native:RegExp(`^(::)?(`+a+`)?([0-9a-f]+)?(::)?(`+l+`)?$`,`i`),transitional:RegExp(`^((?:`+a+`)|(?:::)(?:`+a+`)?)`+(r+`\\.`+r+`\\.`+r+`\\.`+r)+(`(`+l+`)?$`),`i`)},e=function(e,t){var n,r,i,a,s,c;if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;for(c=(e.match(o.zoneIndex)||[])[0],c&&(c=c.substring(1),e=e.replace(/%.+$/,``)),n=0,r=-1;(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>t)return null;for(s=t-n,a=`:`;s--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){var t,n,r=e.split(`:`),a=[];for(t=0,n=r.length;t<n;t++)i=r[t],a.push(parseInt(i,16));return a})(),{parts:t,zoneId:c}},n.IPv6.parser=function(t){var n,r,i,a,s,c,l;if(o.native.test(t))return e(t,8);if((a=t.match(o.transitional))&&(l=a[6]||``,n=e(a[1].slice(0,-1)+l,6),n.parts)){for(c=[parseInt(a[2]),parseInt(a[3]),parseInt(a[4]),parseInt(a[5])],r=0,i=c.length;r<i;r++)if(s=c[r],!(0<=s&&s<=255))return null;return n.parts.push(c[0]<<8|c[1]),n.parts.push(c[2]<<8|c[3]),{parts:n.parts,zoneId:n.zoneId}}return null},n.IPv4.isIPv4=n.IPv6.isIPv6=function(e){return this.parser(e)!==null},n.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},n.IPv4.isValidFourPartDecimal=function(e){return!!(n.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},n.IPv6.isValid=function(e){var t;if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return t=this.parser(e),new this(t.parts,t.zoneId),!0}catch{return!1}},n.IPv4.parse=function(e){var t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like ip address`);return new this(t)},n.IPv6.parse=function(e){var t=this.parser(e);if(t.parts===null)throw Error(`ipaddr: string is not formatted like ip address`);return new this(t.parts,t.zoneId)},n.IPv4.parseCIDR=function(e){var t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=32))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},n.IPv4.subnetMaskFromPrefixLength=function(e){var t,n,r;if(e=parseInt(e),e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);for(r=[0,0,0,0],n=0,t=Math.floor(e/8);n<t;)r[n]=255,n++;return t<4&&(r[t]=2**(e%8)-1<<8-e%8),new this(r)},n.IPv4.broadcastAddressFromCIDR=function(e){var t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)|parseInt(a[n],10)^255),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},n.IPv4.networkAddressFromCIDR=function(e){var t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},n.IPv6.parseCIDR=function(e){var t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},n.isValid=function(e){return n.IPv6.isValid(e)||n.IPv4.isValid(e)},n.parse=function(e){if(n.IPv6.isValid(e))return n.IPv6.parse(e);if(n.IPv4.isValid(e))return n.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},n.parseCIDR=function(e){try{return n.IPv6.parseCIDR(e)}catch{try{return n.IPv4.parseCIDR(e)}catch{throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`)}}},n.fromByteArray=function(e){var t=e.length;if(t===4)return new n.IPv4(e);if(t===16)return new n.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},n.process=function(e){var t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t}}).call(e)})),pn=a(((e,t)=>{t.exports=m,t.exports.all=c,t.exports.compile=l;var n=dn(),r=fn(),i=/^[0-9]+$/,a=r.isValid,o=r.parse,s={linklocal:[`169.254.0.0/16`,`fe80::/10`],loopback:[`127.0.0.1/8`,`::1/128`],uniquelocal:[`10.0.0.0/8`,`172.16.0.0/12`,`192.168.0.0/16`,`fc00::/7`]};function c(e,t){var r=n(e);if(!t)return r;typeof t!=`function`&&(t=l(t));for(var i=0;i<r.length-1;i++)t(r[i],i)||(r.length=i+1);return r}function l(e){if(!e)throw TypeError(`argument is required`);var t;if(typeof e==`string`)t=[e];else if(Array.isArray(e))t=e.slice();else throw TypeError(`unsupported trust argument`);for(var n=0;n<t.length;n++)e=t[n],Object.prototype.hasOwnProperty.call(s,e)&&(e=s[e],t.splice.apply(t,[n,1].concat(e)),n+=e.length-1);return d(u(t))}function u(e){for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=f(e[n]);return t}function d(e){var t=e.length;return t===0?h:t===1?_(e[0]):g(e)}function f(e){var t=e.lastIndexOf(`/`),n=t===-1?e:e.substring(0,t);if(!a(n))throw TypeError(`invalid IP address: `+n);var r=o(n);t===-1&&r.kind()===`ipv6`&&r.isIPv4MappedAddress()&&(r=r.toIPv4Address());var s=r.kind()===`ipv6`?128:32,c=t===-1?null:e.substring(t+1,e.length);if(c=c===null?s:i.test(c)?parseInt(c,10):r.kind()===`ipv4`&&a(c)?p(c):null,c<=0||c>s)throw TypeError(`invalid range on address: `+e);return[r,c]}function p(e){var t=o(e);return t.kind()===`ipv4`?t.prefixLengthFromSubnetMask():null}function m(e,t){if(!e)throw TypeError(`req argument is required`);if(!t)throw TypeError(`trust argument is required`);var n=c(e,t);return n[n.length-1]}function h(){return!1}function g(e){return function(t){if(!a(t))return!1;for(var n=o(t),r,i=n.kind(),s=0;s<e.length;s++){var c=e[s],l=c[0],u=l.kind(),d=c[1],f=n;if(i!==u){if(u===`ipv4`&&!n.isIPv4MappedAddress())continue;r||=u===`ipv4`?n.toIPv4Address():n.toIPv4MappedAddress(),f=r}if(f.match(l,d))return!0}return!1}}function _(e){var t=e[0],n=t.kind(),r=n===`ipv4`,i=e[1];return function(e){if(!a(e))return!1;var s=o(e);if(s.kind()!==n){if(r&&!s.isIPv4MappedAddress())return!1;s=r?s.toIPv4Address():s.toIPv4MappedAddress()}return s.match(t,i)}}})),mn=a((e=>{var{METHODS:n}=t(`node:http`),r=Ze(),i=un(),a=tt(),o=pn(),s=en(),c=t(`querystring`);e.methods=n.map(e=>e.toLowerCase()),e.etag=u({weak:!1}),e.wetag=u({weak:!0}),e.normalizeType=function(e){return~e.indexOf(`/`)?l(e):{value:a.lookup(e)||`application/octet-stream`,params:{}}},e.normalizeTypes=function(t){return t.map(e.normalizeType)};function l(e){for(var t=e.length,n=e.indexOf(`;`),r=n===-1?t:n,i={value:e.slice(0,r).trim(),quality:1,params:{}};r<t;){var a=e.indexOf(`=`,r);if(a===-1)break;var n=e.indexOf(`;`,r),o=n===-1?t:n;if(a>o){r=e.lastIndexOf(`;`,a-1)+1;continue}var s=e.slice(r,a).trim(),c=e.slice(a+1,o).trim();s===`q`?i.quality=parseFloat(c):i.params[s]=c,r=o+1}return i}e.compileETag=function(t){var n;if(typeof t==`function`)return t;switch(t){case!0:case`weak`:n=e.wetag;break;case!1:break;case`strong`:n=e.etag;break;default:throw TypeError(`unknown value for etag function: `+t)}return n},e.compileQueryParser=function(e){var t;if(typeof e==`function`)return e;switch(e){case!0:case`simple`:t=c.parse;break;case!1:break;case`extended`:t=d;break;default:throw TypeError(`unknown value for query parser function: `+e)}return t},e.compileTrust=function(e){return typeof e==`function`?e:e===!0?function(){return!0}:typeof e==`number`?function(t,n){return n<e}:(typeof e==`string`&&(e=e.split(`,`).map(function(e){return e.trim()})),o.compile(e||[]))},e.setCharset=function(e,t){if(!e||!t)return e;var n=r.parse(e);return n.parameters.charset=t,r.format(n)};function u(e){return function(t,n){return i(Buffer.isBuffer(t)?t:Buffer.from(t,n),e)}}function d(e){return s.parse(e,{allowPrototypes:!0})}})),hn=a(((e,t)=>{t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}})),gn=a(((e,t)=>{var n=hn();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:function(){return i(this)},configurable:!0})});function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}})),_n=a(((e,t)=>{t.exports=n,t.exports.default=n;function n(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}})),vn=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=l,e.compile=u,e.match=p,e.pathToRegexp=m,e.stringify=b;let t=e=>e,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":`{`,"}":`}`,"(":`(`,")":`)`,"[":`[`,"]":`]`,"+":`+`,"?":`?`,"!":`!`};function a(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function o(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var s=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=s;var c=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=c;function l(e,a={}){let{encodePath:o=t}=a,l=[...e],u=[],d=0,f=0;function p(){let t=``;if(n.test(l[d]))do t+=l[d++];while(r.test(l[d]));else if(l[d]===`"`){let n=d;for(;d++<l.length;){if(l[d]===`"`){d++,n=0;break}l[d]===`\\`&&d++,t+=l[d]}if(n)throw new c(`Unterminated quote at index ${n}`,e)}if(!t)throw new c(`Missing parameter name at index ${d}`,e);return t}for(;d<l.length;){let e=l[d],t=i[e];t?u.push({type:t,index:d++,value:e}):e===`\\`?u.push({type:`escape`,index:d++,value:l[d++]}):e===`:`?u.push({type:`param`,index:d++,value:p()}):e===`*`?u.push({type:`wildcard`,index:d++,value:p()}):u.push({type:`char`,index:d++,value:e})}u.push({type:`end`,index:d,value:``});function m(t){let n=[];for(;;){let r=u[f++];if(r.type===t)break;if(r.type===`char`||r.type===`escape`){let e=r.value,t=u[f];for(;t.type===`char`||t.type===`escape`;)e+=t.value,t=u[++f];n.push({type:`text`,value:o(e)});continue}if(r.type===`param`||r.type===`wildcard`){n.push({type:r.type,name:r.value});continue}if(r.type===`{`){n.push({type:`group`,tokens:m(`}`)});continue}throw new c(`Unexpected ${r.type} at index ${r.index}, expected ${t}`,e)}return n}return new s(m(`end`),e)}function u(e,t={}){let{encode:n=encodeURIComponent,delimiter:r=`/`}=t,i=d((typeof e==`object`?e:l(e,t)).tokens,r,n);return function(e={}){let[t,...n]=i(e);if(n.length)throw TypeError(`Missing parameters: ${n.join(`, `)}`);return t}}function d(e,t,n){let r=e.map(e=>f(e,t,n));return e=>{let t=[``];for(let n of r){let[r,...i]=n(e);t[0]+=r,t.push(...i)}return t}}function f(e,n,r){if(e.type===`text`)return()=>[e.value];if(e.type===`group`){let t=d(e.tokens,n,r);return e=>{let[n,...r]=t(e);return r.length?[``]:[n]}}let i=r||t;return e.type===`wildcard`&&r!==!1?t=>{let r=t[e.name];if(r==null)return[``,e.name];if(!Array.isArray(r)||r.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);return[r.map((t,n)=>{if(typeof t!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);return i(t)}).join(n)]}:t=>{let n=t[e.name];if(n==null)return[``,e.name];if(typeof n!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return[i(n)]}}function p(e,n={}){let{decode:r=decodeURIComponent,delimiter:i=`/`}=n,{regexp:a,keys:o}=m(e,n),s=o.map(e=>r===!1?t:e.type===`param`?r:e=>e.split(i).map(r));return function(e){let t=a.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=o[e-1],i=s[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function m(e,t={}){let{delimiter:n=`/`,end:r=!0,sensitive:i=!1,trailing:a=!0}=t,s=[],c=i?``:`i`,u=[];for(let r of h(e,[])){let e=typeof r==`object`?r:l(r,t);for(let t of g(e.tokens,0,[]))u.push(_(t,n,s,e.originalPath))}let d=`^(?:${u.join(`|`)})`;return a&&(d+=`(?:${o(n)}$)?`),d+=r?`$`:`(?=${o(n)}|$)`,{regexp:new RegExp(d,c),keys:s}}function h(e,t){if(Array.isArray(e))for(let n of e)h(n,t);else t.push(e);return t}function*g(e,t,n){if(t===e.length)return yield n;let r=e[t];if(r.type===`group`)for(let i of g(r.tokens,0,n.slice()))yield*g(e,t+1,i);else n.push(r);yield*g(e,t+1,n)}function _(e,t,n,r){let i=``,a=``,s=!0;for(let l of e){if(l.type===`text`){i+=o(l.value),a+=l.value,s||=l.value.includes(t);continue}if(l.type===`param`||l.type===`wildcard`){if(!s&&!a)throw new c(`Missing text before "${l.name}" ${l.type}`,r);l.type===`param`?i+=`(${v(t,s?``:a)}+)`:i+=`([\\s\\S]+)`,n.push(l),a=``,s=!1;continue}}return i}function v(e,t){return t.length<2?e.length<2?`[^${o(e+t)}]`:`(?:(?!${o(e)})[^${o(t)}])`:e.length<2?`(?:(?!${o(t)})[^${o(e)}])`:`(?:(?!${o(t)}|${o(e)})[\\s\\S])`}function y(e){let t=``,n=0;function r(t){return x(t)&&S(e[n])?t:JSON.stringify(t)}for(;n<e.length;){let i=e[n++];if(i.type===`text`){t+=a(i.value);continue}if(i.type===`group`){t+=`{${y(i.tokens)}}`;continue}if(i.type===`param`){t+=`:${r(i.name)}`;continue}if(i.type===`wildcard`){t+=`*${r(i.name)}`;continue}throw TypeError(`Unknown token type: ${i.type}`)}return t}function b(e){return y(e.tokens)}function x(e){let[t,...i]=e;return n.test(t)&&i.every(e=>r.test(e))}function S(e){return e&&e.type===`text`?!r.test(e.value[0]):!0}})),yn=a(((e,t)=>{let n=_n(),r=vn(),i=me()(`router:layer`),a=he()(`router`),o=/\/+$/,s=/\((?:\?<(.*?)>)?(?!\?)/g;t.exports=c;function c(e,t,n){if(!(this instanceof c))return new c(e,t,n);i(`new %o`,e);let a=t||{};this.handle=n,this.keys=[],this.name=n.name||`<anonymous>`,this.params=void 0,this.path=void 0,this.slash=e===`/`&&a.end===!1;function o(e){if(e instanceof RegExp){let t=[],n=0,r;for(;r=s.exec(e.source);)t.push({name:r[1]||n++,offset:r.index});return function(n){let r=e.exec(n);if(!r)return!1;let i={};for(let e=1;e<r.length;e++){let n=t[e-1].name,a=l(r[e]);a!==void 0&&(i[n]=a)}return{params:i,path:r[0]}}}return r.match(a.strict?e:u(e),{sensitive:a.sensitive,end:a.end,trailing:!a.strict,decode:l})}this.matchers=Array.isArray(e)?e.map(o):[o(e)]}c.prototype.handleError=function(e,t,r,i){let o=this.handle;if(o.length!==4)return i(e);try{let s=o(e,t,r,i);n(s)&&(s instanceof Promise||a(`handlers that are Promise-like are deprecated, use a native Promise instead`),s.then(null,function(e){i(e||Error(`Rejected promise`))}))}catch(e){i(e)}},c.prototype.handleRequest=function(e,t,r){let i=this.handle;if(i.length>3)return r();try{let o=i(e,t,r);n(o)&&(o instanceof Promise||a(`handlers that are Promise-like are deprecated, use a native Promise instead`),o.then(null,function(e){r(e||Error(`Rejected promise`))}))}catch(e){r(e)}},c.prototype.match=function(e){let t;if(e!=null){if(this.slash)return this.params={},this.path=``,!0;let n=0;for(;!t&&n<this.matchers.length;)t=this.matchers[n](e),n++}return t?(this.params=t.params,this.path=t.path,this.keys=Object.keys(t.params),!0):(this.params=void 0,this.path=void 0,!1)};function l(e){if(typeof e!=`string`||e.length===0)return e;try{return decodeURIComponent(e)}catch(t){throw t instanceof URIError&&(t.message=`Failed to decode param '`+e+`'`,t.status=400),t}}function u(e){return e instanceof RegExp||e===`/`?e:Array.isArray(e)?e.map(function(e){return u(e)}):String(e).replace(o,``)}})),bn=a(((e,n)=>{let r=me()(`router:route`),i=yn(),{METHODS:a}=t(`node:http`),o=Array.prototype.slice,s=Array.prototype.flat,c=a.map(e=>e.toLowerCase());n.exports=l;function l(e){r(`new %o`,e),this.path=e,this.stack=[],this.methods=Object.create(null)}l.prototype._handlesMethod=function(e){if(this.methods._all)return!0;let t=typeof e==`string`?e.toLowerCase():e;return t===`head`&&!this.methods.head&&(t=`get`),!!this.methods[t]},l.prototype._methods=function(){let e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push(`head`);for(let t=0;t<e.length;t++)e[t]=e[t].toUpperCase();return e},l.prototype.dispatch=function(e,t,n){let r=0,i=this.stack,a=0;if(i.length===0)return n();let o=typeof e.method==`string`?e.method.toLowerCase():e.method;o===`head`&&!this.methods.head&&(o=`get`),e.route=this,s();function s(c){if(c&&c===`route`)return n();if(c&&c===`router`||r>=i.length)return n(c);if(++a>100)return setImmediate(s,c);let l,u;for(;u!==!0&&r<i.length;)l=i[r++],u=!l.method||l.method===o;if(u!==!0)return n(c);c?l.handleError(c,e,t,s):l.handleRequest(e,t,s),a=0}},l.prototype.all=function(e){let t=s.call(o.call(arguments),1/0);if(t.length===0)throw TypeError(`argument handler is required`);for(let e=0;e<t.length;e++){let n=t[e];if(typeof n!=`function`)throw TypeError(`argument handler must be a function`);let r=i(`/`,{},n);r.method=void 0,this.methods._all=!0,this.stack.push(r)}return this},c.forEach(function(e){l.prototype[e]=function(t){let n=s.call(o.call(arguments),1/0);if(n.length===0)throw TypeError(`argument handler is required`);for(let t=0;t<n.length;t++){let a=n[t];if(typeof a!=`function`)throw TypeError(`argument handler must be a function`);r(`%s %s`,e,this.path);let o=i(`/`,{},a);o.method=e,this.methods[e]=!0,this.stack.push(o)}return this}})})),xn=a(((e,n)=>{let r=_n(),i=yn(),{METHODS:a}=t(`node:http`),o=sn(),s=bn(),c=me()(`router`),l=he()(`router`),u=Array.prototype.slice,d=Array.prototype.flat,f=a.map(e=>e.toLowerCase());n.exports=p,n.exports.Route=s;function p(e){if(!(this instanceof p))return new p(e);let t=e||{};function n(e,t,r){n.handle(e,t,r)}return Object.setPrototypeOf(n,this),n.caseSensitive=t.caseSensitive,n.mergeParams=t.mergeParams,n.params={},n.strict=t.strict,n.stack=[],n}p.prototype=function(){},p.prototype.param=function(e,t){if(!e)throw TypeError(`argument name is required`);if(typeof e!=`string`)throw TypeError(`argument name must be a string`);if(!t)throw TypeError(`argument fn is required`);if(typeof t!=`function`)throw TypeError(`argument fn must be a function`);let n=this.params[e];return n||=this.params[e]=[],n.push(t),this},p.prototype.handle=function(e,t,n){if(!n)throw TypeError(`argument callback is required`);c(`dispatching %s %s`,e.method,e.url);let r=0,i,a=g(e.url)||``,o=``,s=this,l=!1,u=0,d={},f=this.stack,p=e.params,x=e.baseUrl||``,S=b(n,e,`baseUrl`,`next`,`params`);e.next=w,e.method===`OPTIONS`&&(i=[],S=C(S,m(t,i))),e.baseUrl=x,e.originalUrl=e.originalUrl||e.url,w();function w(n){let c=n===`route`?null:n;if(l&&=(e.url=e.url.slice(1),!1),o.length!==0&&(e.baseUrl=x,e.url=a+o+e.url.slice(a.length),o=``),c===`router`){setImmediate(S,null);return}if(r>=f.length){setImmediate(S,c);return}if(++u>100)return setImmediate(w,n);let m=h(e);if(m==null)return S(c);let g,b,C;for(;b!==!0&&r<f.length;){if(g=f[r++],b=_(g,m),C=g.route,typeof b!=`boolean`&&(c||=b),b!==!0||!C)continue;if(c){b=!1;continue}let t=e.method,n=C._handlesMethod(t);!n&&t===`OPTIONS`&&i&&i.push.apply(i,C._methods()),!n&&t!==`HEAD`&&(b=!1)}if(b!==!0)return S(c);C&&(e.route=C),e.params=s.mergeParams?v(g.params,p):g.params;let E=g.path;y(s.params,g,d,e,t,function(n){n?w(c||n):C?g.handleRequest(e,t,w):T(g,c,E,m),u=0})}function T(n,r,i,s){if(i.length!==0){if(i!==s.substring(0,i.length)){w(r);return}let t=s[i.length];if(t&&t!==`/`){w(r);return}c(`trim prefix (%s) from url %s`,i,e.url),o=i,e.url=a+e.url.slice(a.length+o.length),!a&&e.url[0]!==`/`&&(e.url=`/`+e.url,l=!0),e.baseUrl=x+(o[o.length-1]===`/`?o.substring(0,o.length-1):o)}c(`%s %s : %s`,n.name,i,e.originalUrl),r?n.handleError(r,e,t,w):n.handleRequest(e,t,w)}},p.prototype.use=function(e){let t=0,n=`/`;if(typeof e!=`function`){let r=e;for(;Array.isArray(r)&&r.length!==0;)r=r[0];typeof r!=`function`&&(t=1,n=e)}let r=d.call(u.call(arguments,t),1/0);if(r.length===0)throw TypeError(`argument handler is required`);for(let e=0;e<r.length;e++){let t=r[e];if(typeof t!=`function`)throw TypeError(`argument handler must be a function`);c(`use %o %s`,n,t.name||`<anonymous>`);let a=new i(n,{sensitive:this.caseSensitive,strict:!1,end:!1},t);a.route=void 0,this.stack.push(a)}return this},p.prototype.route=function(e){let t=new s(e),n=new i(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},r);function r(e,n,r){t.dispatch(e,n,r)}return n.route=t,this.stack.push(n),t},f.concat(`all`).forEach(function(e){p.prototype[e]=function(t){let n=this.route(t);return n[e].apply(n,u.call(arguments,1)),this}});function m(e,t){return function(n,r){if(r||t.length===0)return n(r);S(e,t,n)}}function h(e){try{return o(e).pathname}catch{return}}function g(e){if(typeof e!=`string`||e.length===0||e[0]===`/`)return;let t=e.indexOf(`?`),n=t===-1?e.length:t,r=e.substring(0,n).indexOf(`://`);return r===-1?void 0:e.substring(0,e.indexOf(`/`,3+r))}function _(e,t){try{return e.match(t)}catch(e){return e}}function v(e,t){if(typeof t!=`object`||!t)return e;let n=Object.assign({},t);if(!(0 in e)||!(0 in t))return Object.assign(n,e);let r=0,i=0;for(;r in e;)r++;for(;i in t;)i++;for(r--;r>=0;r--)e[r+i]=e[r],r<i&&delete e[r];return Object.assign(n,e)}function y(e,t,n,i,a,o){let s=t.keys;if(!s||s.length===0)return o();let c=0,u=0,d,f,p,m;function h(t){if(t)return o(t);if(c>=s.length)return o();if(u=0,d=s[c++],f=i.params[d],p=e[d],m=n[d],f===void 0||!p)return h();if(m&&(m.match===f||m.error&&m.error!==`route`))return i.params[d]=m.value,h(m.error);n[d]=m={error:null,match:f,value:f},g()}function g(e){let t=p[u++];if(m.value=i.params[d],e){m.error=e,h(e);return}if(!t)return h();try{let e=t(i,a,g,f,d);r(e)&&(e instanceof Promise||l(`parameters that are Promise-like are deprecated, use a native Promise instead`),e.then(null,function(e){g(e||Error(`Rejected promise`))}))}catch(e){g(e)}}h()}function b(e,t){let n=Array(arguments.length-2),r=Array(arguments.length-2);for(let e=0;e<n.length;e++)n[e]=arguments[e+2],r[e]=t[n[e]];return function(){for(let e=0;e<n.length;e++)t[n[e]]=r[e];return e.apply(this,arguments)}}function x(e,t){let n=Object.create(null);for(let e=0;e<t.length;e++)n[t[e]]=!0;let r=Object.keys(n).sort().join(`, `);e.setHeader(`Allow`,r),e.setHeader(`Content-Length`,Buffer.byteLength(r)),e.setHeader(`Content-Type`,`text/plain`),e.setHeader(`X-Content-Type-Options`,`nosniff`),e.end(r)}function S(e,t,n){try{x(e,t)}catch(e){n(e)}}function C(e,t){return function(){let n=Array(arguments.length+1);n[0]=e;for(let e=0,t=arguments.length;e<t;e++)n[e+1]=arguments[e];t.apply(this,n)}}})),Sn=a(((e,n)=>{var r=cn(),i=me()(`express:application`),a=ln(),o=t(`node:http`),s=mn().methods,c=mn().compileETag,l=mn().compileQueryParser,u=mn().compileTrust,d=t(`node:path`).resolve,f=gn(),p=xn(),m=Array.prototype.slice,h=Array.prototype.flat,g=e=n.exports={},_=`@@symbol:trust_proxy_default`;g.init=function(){var e=null;this.cache=Object.create(null),this.engines=Object.create(null),this.settings=Object.create(null),this.defaultConfiguration(),Object.defineProperty(this,`router`,{configurable:!0,enumerable:!0,get:function(){return e===null&&(e=new p({caseSensitive:this.enabled(`case sensitive routing`),strict:this.enabled(`strict routing`)})),e}})},g.defaultConfiguration=function(){var e=process.env.NODE_ENV||`development`;this.enable(`x-powered-by`),this.set(`etag`,`weak`),this.set(`env`,e),this.set(`query parser`,`simple`),this.set(`subdomain offset`,2),this.set(`trust proxy`,!1),Object.defineProperty(this.settings,_,{configurable:!0,value:!0}),i(`booting in %s mode`,e),this.on(`mount`,function(e){this.settings[_]===!0&&typeof e.settings[`trust proxy fn`]==`function`&&(delete this.settings[`trust proxy`],delete this.settings[`trust proxy fn`]),Object.setPrototypeOf(this.request,e.request),Object.setPrototypeOf(this.response,e.response),Object.setPrototypeOf(this.engines,e.engines),Object.setPrototypeOf(this.settings,e.settings)}),this.locals=Object.create(null),this.mountpath=`/`,this.locals.settings=this.settings,this.set(`view`,a),this.set(`views`,d(`views`)),this.set(`jsonp callback name`,`callback`),e===`production`&&this.enable(`view cache`)},g.handle=function(e,t,n){var i=n||r(e,t,{env:this.get(`env`),onerror:v.bind(this)});this.enabled(`x-powered-by`)&&t.setHeader(`X-Powered-By`,`Express`),e.res=t,t.req=e,Object.setPrototypeOf(e,this.request),Object.setPrototypeOf(t,this.response),t.locals||=Object.create(null),this.router.handle(e,t,i)},g.use=function(e){var t=0,n=`/`;if(typeof e!=`function`){for(var r=e;Array.isArray(r)&&r.length!==0;)r=r[0];typeof r!=`function`&&(t=1,n=e)}var a=h.call(m.call(arguments,t),1/0);if(a.length===0)throw TypeError(`app.use() requires a middleware function`);var o=this.router;return a.forEach(function(e){if(!e||!e.handle||!e.set)return o.use(n,e);i(`.use app under %s`,n),e.mountpath=n,e.parent=this,o.use(n,function(t,n,r){var i=t.app;e.handle(t,n,function(e){Object.setPrototypeOf(t,i.request),Object.setPrototypeOf(n,i.response),r(e)})}),e.emit(`mount`,this)},this),this},g.route=function(e){return this.router.route(e)},g.engine=function(e,t){if(typeof t!=`function`)throw Error(`callback function required`);var n=e[0]===`.`?e:`.`+e;return this.engines[n]=t,this},g.param=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.param(e[n],t);return this}return this.router.param(e,t),this},g.set=function(e,t){if(arguments.length===1)return this.settings[e];switch(i(`set "%s" to %o`,e,t),this.settings[e]=t,e){case`etag`:this.set(`etag fn`,c(t));break;case`query parser`:this.set(`query parser fn`,l(t));break;case`trust proxy`:this.set(`trust proxy fn`,u(t)),Object.defineProperty(this.settings,_,{configurable:!0,value:!1});break}return this},g.path=function(){return this.parent?this.parent.path()+this.mountpath:``},g.enabled=function(e){return!!this.set(e)},g.disabled=function(e){return!this.set(e)},g.enable=function(e){return this.set(e,!0)},g.disable=function(e){return this.set(e,!1)},s.forEach(function(e){g[e]=function(t){if(e===`get`&&arguments.length===1)return this.set(t);var n=this.route(t);return n[e].apply(n,m.call(arguments,1)),this}}),g.all=function(e){for(var t=this.route(e),n=m.call(arguments,1),r=0;r<s.length;r++)t[s[r]].apply(t,n);return this},g.render=function(e,t,n){var r=this.cache,i=n,a=this.engines,o=t,s;typeof t==`function`&&(i=t,o={});var c={...this.locals,...o._locals,...o};if(c.cache??=this.enabled(`view cache`),c.cache&&(s=r[e]),!s){if(s=new(this.get(`view`))(e,{defaultEngine:this.get(`view engine`),root:this.get(`views`),engines:a}),!s.path){var l=Array.isArray(s.root)&&s.root.length>1?`directories "`+s.root.slice(0,-1).join(`", "`)+`" or "`+s.root[s.root.length-1]+`"`:`directory "`+s.root+`"`,u=Error(`Failed to lookup view "`+e+`" in views `+l);return u.view=s,i(u)}c.cache&&(r[e]=s)}y(s,c,i)},g.listen=function(){var e=o.createServer(this),t=Array.prototype.slice.call(arguments);if(typeof t[t.length-1]==`function`){var n=t[t.length-1]=f(t[t.length-1]);e.once(`error`,n)}return e.listen.apply(e,t)};function v(e){this.get(`env`)!==`test`&&console.error(e.stack||e.toString())}function y(e,t,n){try{e.render(t,n)}catch(e){n(e)}}})),Cn=a(((e,t)=>{t.exports=s,t.exports.preferredCharsets=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{charset:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),wn=a(((e,t)=>{t.exports=s,t.exports.preferredEncodings=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=!1,r=1,a=0,s=0;a<t.length;a++){var c=i(t[a].trim(),a);c&&(t[s++]=c,n||=o(`identity`,c),r=Math.min(r,c.q||1))}return n||(t[s++]={encoding:`identity`,q:r,i:a}),t.length=s,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{encoding:i,q:a,i:t}}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),Tn=a(((e,t)=>{t.exports=s,t.exports.preferredLanguages=s;var n=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=r[2],o=i;a&&(o+=`-`+a);var s=1;if(r[3])for(var c=r[3].split(`;`),l=0;l<c.length;l++){var u=c[l].split(`=`);u[0]===`q`&&(s=parseFloat(u[1]))}return{prefix:i,suffix:a,q:s,i:t,full:o}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e);if(!r)return null;var a=0;if(t.full.toLowerCase()===r.full.toLowerCase())a|=4;else if(t.prefix.toLowerCase()===r.full.toLowerCase())a|=2;else if(t.full.toLowerCase()===r.prefix.toLowerCase())a|=1;else if(t.full!==`*`)return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.full}function u(e){return e.q>0}})),En=a(((e,t)=>{t.exports=s,t.exports.preferredMediaTypes=s;var n=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function r(e){for(var t=p(e),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=Object.create(null),a=1,o=r[2],s=r[1];if(r[3])for(var c=m(r[3]).map(f),l=0;l<c.length;l++){var u=c[l],d=u[0].toLowerCase(),p=u[1],h=p&&p[0]===`"`&&p[p.length-1]===`"`?p.slice(1,-1):p;if(d===`q`){a=parseFloat(h);break}i[d]=h}return{type:s,subtype:o,params:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e),a=0;if(!r)return null;if(t.type.toLowerCase()==r.type.toLowerCase())a|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==r.subtype.toLowerCase())a|=2;else if(t.subtype!=`*`)return null;var o=Object.keys(t.params);if(o.length>0)if(o.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(r.params[e]||``).toLowerCase()}))a|=1;else return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*/*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.type+`/`+e.subtype}function u(e){return e.q>0}function d(e){for(var t=0,n=0;(n=e.indexOf(`"`,n))!==-1;)t++,n++;return t}function f(e){var t=e.indexOf(`=`),n,r;return t===-1?n=e:(n=e.slice(0,t),r=e.slice(t+1)),[n,r]}function p(e){for(var t=e.split(`,`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`,`+t[n];return t.length=r+1,t}function m(e){for(var t=e.split(`;`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`;`+t[n];t.length=r+1;for(var n=0;n<t.length;n++)t[n]=t[n].trim();return t}})),Dn=a(((e,t)=>{var n=Cn(),r=wn(),i=Tn(),a=En();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes})),On=a(((e,t)=>{var n=Dn(),r=tt();t.exports=i;function i(e){if(!(this instanceof i))return new i(e);this.headers=e.headers,this.negotiator=new n(e)}i.prototype.type=i.prototype.types=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}if(!t||t.length===0)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var r=t.map(a),i=this.negotiator.mediaTypes(r.filter(o))[0];return i?t[r.indexOf(i)]:!1},i.prototype.encoding=i.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return!t||t.length===0?this.negotiator.encodings():this.negotiator.encodings(t)[0]||!1},i.prototype.charset=i.prototype.charsets=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return!t||t.length===0?this.negotiator.charsets():this.negotiator.charsets(t)[0]||!1},i.prototype.lang=i.prototype.langs=i.prototype.language=i.prototype.languages=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return!t||t.length===0?this.negotiator.languages():this.negotiator.languages(t)[0]||!1};function a(e){return e.indexOf(`/`)===-1?r.lookup(e):e}function o(e){return typeof e==`string`}})),kn=a(((e,t)=>{var n=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;t.exports=r;function r(e,t){var r=e[`if-modified-since`],o=e[`if-none-match`];if(!r&&!o)return!1;var s=e[`cache-control`];if(s&&n.test(s))return!1;if(o){if(o===`*`)return!0;var c=t.etag;if(!c)return!1;for(var l=a(o),u=0;u<l.length;u++){var d=l[u];if(d===c||d===`W/`+c||`W/`+d===c)return!0}return!1}if(r){var f=t[`last-modified`];if(!f||!(i(f)<=i(r)))return!1}return!0}function i(e){var t=e&&Date.parse(e);return typeof t==`number`?t:NaN}function a(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}})),An=a(((e,t)=>{t.exports=n;function n(e,t,n){if(typeof t!=`string`)throw TypeError(`argument str must be a string`);var i=t.indexOf(`=`);if(i===-1)return-2;var a=t.slice(i+1).split(`,`),o=[];o.type=t.slice(0,i);for(var s=0;s<a.length;s++){var c=a[s].split(`-`),l=parseInt(c[0],10),u=parseInt(c[1],10);isNaN(l)?(l=e-u,u=e-1):isNaN(u)&&(u=e-1),u>e-1&&(u=e-1),!(isNaN(l)||isNaN(u)||l>u||l<0)&&o.push({start:l,end:u})}return o.length<1?-1:n&&n.combine?r(o):o}function r(e){for(var t=e.map(i).sort(s),n=0,r=1;r<t.length;r++){var c=t[r],l=t[n];c.start>l.end+1?t[++n]=c:c.end>l.end&&(l.end=c.end,l.index=Math.min(l.index,c.index))}t.length=n+1;var u=t.sort(o).map(a);return u.type=e.type,u}function i(e,t){return{start:e.start,end:e.end,index:t}}function a(e){return{start:e.start,end:e.end}}function o(e,t){return e.index-t.index}function s(e,t){return e.start-t.start}})),jn=a(((e,n)=>{var r=On(),i=t(`node:net`).isIP,a=rt(),o=t(`node:http`),s=kn(),c=An(),l=sn(),u=pn(),d=Object.create(o.IncomingMessage.prototype);n.exports=d,d.get=d.header=function(e){if(!e)throw TypeError(`name argument is required to req.get`);if(typeof e!=`string`)throw TypeError(`name must be a string to req.get`);var t=e.toLowerCase();switch(t){case`referer`:case`referrer`:return this.headers.referrer||this.headers.referer;default:return this.headers[t]}},d.accepts=function(){var e=r(this);return e.types.apply(e,arguments)},d.acceptsEncodings=function(){var e=r(this);return e.encodings.apply(e,arguments)},d.acceptsCharsets=function(){var e=r(this);return e.charsets.apply(e,arguments)},d.acceptsLanguages=function(){var e=r(this);return e.languages.apply(e,arguments)},d.range=function(e,t){var n=this.get(`Range`);if(n)return c(e,n,t)},f(d,`query`,function(){var e=this.app.get(`query parser fn`);if(!e)return Object.create(null);var t=l(this).query;return e(t)}),d.is=function(e){var t=e;if(!Array.isArray(e)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return a(this,t)},f(d,`protocol`,function(){var e=this.connection.encrypted?`https`:`http`;if(!this.app.get(`trust proxy fn`)(this.connection.remoteAddress,0))return e;var t=this.get(`X-Forwarded-Proto`)||e,n=t.indexOf(`,`);return n===-1?t.trim():t.substring(0,n).trim()}),f(d,`secure`,function(){return this.protocol===`https`}),f(d,`ip`,function(){var e=this.app.get(`trust proxy fn`);return u(this,e)}),f(d,`ips`,function(){var e=this.app.get(`trust proxy fn`),t=u.all(this,e);return t.reverse().pop(),t}),f(d,`subdomains`,function(){var e=this.hostname;if(!e)return[];var t=this.app.get(`subdomain offset`);return(i(e)?[e]:e.split(`.`).reverse()).slice(t)}),f(d,`path`,function(){return l(this).pathname}),f(d,`host`,function(){var e=this.app.get(`trust proxy fn`),t=this.get(`X-Forwarded-Host`);return!t||!e(this.connection.remoteAddress,0)?t=this.get(`Host`):t.indexOf(`,`)!==-1&&(t=t.substring(0,t.indexOf(`,`)).trimRight()),t||void 0}),f(d,`hostname`,function(){var e=this.host;if(e){var t=e[0]===`[`?e.indexOf(`]`)+1:0,n=e.indexOf(`:`,t);return n===-1?e:e.substring(0,n)}}),f(d,`fresh`,function(){var e=this.method,t=this.res,n=t.statusCode;return e!==`GET`&&e!==`HEAD`?!1:n>=200&&n<300||n===304?s(this.headers,{etag:t.get(`ETag`),"last-modified":t.get(`Last-Modified`)}):!1}),f(d,`stale`,function(){return!this.fresh}),f(d,`xhr`,function(){return(this.get(`X-Requested-With`)||``).toLowerCase()===`xmlhttprequest`});function f(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:n})}})),Mn=a(((e,n)=>{n.exports=h,n.exports.parse=b;var r=t(`path`).basename,i=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,a=/%[0-9A-Fa-f]{2}/,o=/%([0-9A-Fa-f]{2})/g,s=/[^\x20-\x7e\xa0-\xff]/g,c=/\\([\u0000-\u007f])/g,l=/([\\"])/g,u=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,d=/^[\x20-\x7e\x80-\xff]+$/,f=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,p=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,m=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function h(e,t){var n=t||{};return _(new T(n.type||`attachment`,g(e,n.fallback)))}function g(e,t){if(e!==void 0){var n={};if(typeof e!=`string`)throw TypeError(`filename must be a string`);if(t===void 0&&(t=!0),typeof t!=`string`&&typeof t!=`boolean`)throw TypeError(`fallback must be a string or boolean`);if(typeof t==`string`&&s.test(t))throw TypeError(`fallback must be ISO-8859-1 string`);var i=r(e),o=d.test(i),c=typeof t==`string`?r(t):t&&y(i),l=typeof c==`string`&&c!==i;return(l||!o||a.test(i))&&(n[`filename*`]=i),(o||l)&&(n.filename=l?c:i),n}}function _(e){var t=e.parameters,n=e.type;if(!n||typeof n!=`string`||!f.test(n))throw TypeError(`invalid type`);var r=String(n).toLowerCase();if(t&&typeof t==`object`)for(var i,a=Object.keys(t).sort(),o=0;o<a.length;o++){i=a[o];var s=i.slice(-1)===`*`?w(t[i]):C(t[i]);r+=`; `+i+`=`+s}return r}function v(e){var t=p.exec(e);if(!t)throw TypeError(`invalid extended field value`);var n=t[1].toLowerCase(),r=t[2],i,a=r.replace(o,x);switch(n){case`iso-8859-1`:i=y(a);break;case`utf-8`:case`utf8`:i=Buffer.from(a,`binary`).toString(`utf8`);break;default:throw TypeError(`unsupported charset in extended field`)}return i}function y(e){return String(e).replace(s,`?`)}function b(e){if(!e||typeof e!=`string`)throw TypeError(`argument string is required`);var t=m.exec(e);if(!t)throw TypeError(`invalid type format`);var n=t[0].length,r=t[1].toLowerCase(),i,a=[],o={},s;for(n=u.lastIndex=t[0].slice(-1)===`;`?n-1:n;t=u.exec(e);){if(t.index!==n)throw TypeError(`invalid parameter format`);if(n+=t[0].length,i=t[1].toLowerCase(),s=t[2],a.indexOf(i)!==-1)throw TypeError(`invalid duplicate parameter`);if(a.push(i),i.indexOf(`*`)+1===i.length){i=i.slice(0,-1),s=v(s),o[i]=s;continue}typeof o[i]!=`string`&&(s[0]===`"`&&(s=s.slice(1,-1).replace(c,`$1`)),o[i]=s)}if(n!==-1&&n!==e.length)throw TypeError(`invalid parameter format`);return new T(r,o)}function x(e,t){return String.fromCharCode(parseInt(t,16))}function S(e){return`%`+String(e).charCodeAt(0).toString(16).toUpperCase()}function C(e){return`"`+String(e).replace(l,`\\$1`)+`"`}function w(e){var t=String(e);return`UTF-8''`+encodeURIComponent(t).replace(i,S)}function T(e,t){this.type=e,this.parameters=t}})),Nn=a((e=>{var n=t(`crypto`);e.sign=function(e,t){if(typeof e!=`string`)throw TypeError(`Cookie value must be provided as a string.`);if(t==null)throw TypeError(`Secret key must be provided.`);return e+`.`+n.createHmac(`sha256`,t).update(e).digest(`base64`).replace(/\=+$/,``)},e.unsign=function(t,r){if(typeof t!=`string`)throw TypeError(`Signed cookie string must be provided.`);if(r==null)throw TypeError(`Secret key must be provided.`);var i=t.slice(0,t.lastIndexOf(`.`)),a=e.sign(i,r),o=Buffer.from(a),s=Buffer.from(t);return o.length===s.length&&n.timingSafeEqual(o,s)?i:!1}})),Pn=a((e=>{e.parse=s,e.serialize=u;var t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,i=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function s(e,t){if(typeof e!=`string`)throw TypeError(`argument str must be a string`);var r={},i=e.length;if(i<2)return r;var a=t&&t.decode||d,o=0,s=0,u=0;do{if(s=e.indexOf(`=`,o),s===-1)break;if(u=e.indexOf(`;`,o),u===-1)u=i;else if(s>u){o=e.lastIndexOf(`;`,s-1)+1;continue}var f=c(e,o,s),m=l(e,s,f),h=e.slice(f,m);if(!n.call(r,h)){var g=c(e,s+1,u),_=l(e,u,g);e.charCodeAt(g)===34&&e.charCodeAt(_-1)===34&&(g++,_--),r[h]=p(e.slice(g,_),a)}o=u+1}while(o<i);return r}function c(e,t,n){do{var r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function l(e,t,n){for(;t>n;){var r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function u(e,t,n){var s=n&&n.encode||encodeURIComponent;if(typeof s!=`function`)throw TypeError(`option encode is invalid`);if(!r.test(e))throw TypeError(`argument name is invalid`);var c=s(t);if(!i.test(c))throw TypeError(`argument val is invalid`);var l=e+`=`+c;if(!n)return l;if(n.maxAge!=null){var u=Math.floor(n.maxAge);if(!isFinite(u))throw TypeError(`option maxAge is invalid`);l+=`; Max-Age=`+u}if(n.domain){if(!a.test(n.domain))throw TypeError(`option domain is invalid`);l+=`; Domain=`+n.domain}if(n.path){if(!o.test(n.path))throw TypeError(`option path is invalid`);l+=`; Path=`+n.path}if(n.expires){var d=n.expires;if(!f(d)||isNaN(d.valueOf()))throw TypeError(`option expires is invalid`);l+=`; Expires=`+d.toUTCString()}if(n.httpOnly&&(l+=`; HttpOnly`),n.secure&&(l+=`; Secure`),n.partitioned&&(l+=`; Partitioned`),n.priority)switch(typeof n.priority==`string`?n.priority.toLowerCase():n.priority){case`low`:l+=`; Priority=Low`;break;case`medium`:l+=`; Priority=Medium`;break;case`high`:l+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid`)}if(n.sameSite)switch(typeof n.sameSite==`string`?n.sameSite.toLowerCase():n.sameSite){case!0:l+=`; SameSite=Strict`;break;case`lax`:l+=`; SameSite=Lax`;break;case`strict`:l+=`; SameSite=Strict`;break;case`none`:l+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid`)}return l}function d(e){return e.indexOf(`%`)===-1?e:decodeURIComponent(e)}function f(e){return t.call(e)===`[object Date]`}function p(e,t){try{return t(e)}catch{return e}}})),Fn=a(((e,n)=>{var r=Se(),i=me()(`send`),a=an(),o=on(),s=un(),c=kn(),l=t(`fs`),u=tt(),d=re(),f=Xe(),p=An(),m=t(`path`),h=ve(),g=t(`stream`),_=t(`util`),v=m.extname,y=m.join,b=m.normalize,x=m.resolve,S=m.sep,C=/^ *bytes=/,w=3600*24*365*1e3,T=/(?:^|[\\/])\.\.(?:[\\/]|$)/;n.exports=E;function E(e,t,n){return new D(e,t,n)}function D(e,t,n){g.call(this);var r=n||{};if(this.options=r,this.path=t,this.req=e,this._acceptRanges=r.acceptRanges===void 0?!0:!!r.acceptRanges,this._cacheControl=r.cacheControl===void 0?!0:!!r.cacheControl,this._etag=r.etag===void 0?!0:!!r.etag,this._dotfiles=r.dotfiles===void 0?`ignore`:r.dotfiles,this._dotfiles!==`ignore`&&this._dotfiles!==`allow`&&this._dotfiles!==`deny`)throw TypeError(`dotfiles option must be "allow", "deny", or "ignore"`);this._extensions=r.extensions===void 0?[]:F(r.extensions,`extensions option`),this._immutable=r.immutable===void 0?!1:!!r.immutable,this._index=r.index===void 0?[`index.html`]:F(r.index,`index option`),this._lastModified=r.lastModified===void 0?!0:!!r.lastModified,this._maxage=r.maxAge||r.maxage,this._maxage=typeof this._maxage==`string`?d(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),w),this._root=r.root?x(r.root):null}_.inherits(D,g),D.prototype.error=function(e,t){if(P(this,`error`))return this.emit(`error`,ee(e,t));var n=this.res,r=M(`Error`,o(h.message[e]||String(e)));O(n),t&&t.headers&&R(n,t.headers),n.statusCode=e,n.setHeader(`Content-Type`,`text/html; charset=UTF-8`),n.setHeader(`Content-Length`,Buffer.byteLength(r)),n.setHeader(`Content-Security-Policy`,`default-src 'none'`),n.setHeader(`X-Content-Type-Options`,`nosniff`),n.end(r)},D.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]===`/`},D.prototype.isConditionalGET=function(){return this.req.headers[`if-match`]||this.req.headers[`if-unmodified-since`]||this.req.headers[`if-none-match`]||this.req.headers[`if-modified-since`]},D.prototype.isPreconditionFailure=function(){var e=this.req,t=this.res,n=e.headers[`if-match`];if(n){var r=t.getHeader(`ETag`);return!r||n!==`*`&&L(n).every(function(e){return e!==r&&e!==`W/`+r&&`W/`+e!==r})}var i=I(e.headers[`if-unmodified-since`]);if(!isNaN(i)){var a=I(t.getHeader(`Last-Modified`));return isNaN(a)||a>i}return!1},D.prototype.removeContentHeaderFields=function(){var e=this.res;e.removeHeader(`Content-Encoding`),e.removeHeader(`Content-Language`),e.removeHeader(`Content-Length`),e.removeHeader(`Content-Range`),e.removeHeader(`Content-Type`)},D.prototype.notModified=function(){var e=this.res;i(`not modified`),this.removeContentHeaderFields(),e.statusCode=304,e.end()},D.prototype.headersAlreadySent=function(){var e=Error(`Can't set headers after they are sent.`);i(`headers already sent`),this.error(500,e)},D.prototype.isCachable=function(){var e=this.res.statusCode;return e>=200&&e<300||e===304},D.prototype.onStatError=function(e){switch(e.code){case`ENAMETOOLONG`:case`ENOENT`:case`ENOTDIR`:this.error(404,e);break;default:this.error(500,e);break}},D.prototype.isFresh=function(){return c(this.req.headers,{etag:this.res.getHeader(`ETag`),"last-modified":this.res.getHeader(`Last-Modified`)})},D.prototype.isRangeFresh=function(){var e=this.req.headers[`if-range`];if(!e)return!0;if(e.indexOf(`"`)!==-1){var t=this.res.getHeader(`ETag`);return!!(t&&e.indexOf(t)!==-1)}return I(this.res.getHeader(`Last-Modified`))<=I(e)},D.prototype.redirect=function(e){var t=this.res;if(P(this,`directory`)){this.emit(`directory`,t,e);return}if(this.hasTrailingSlash()){this.error(403);return}var n=a(k(this.path+`/`)),r=M(`Redirecting`,`Redirecting to `+o(n));t.statusCode=301,t.setHeader(`Content-Type`,`text/html; charset=UTF-8`),t.setHeader(`Content-Length`,Buffer.byteLength(r)),t.setHeader(`Content-Security-Policy`,`default-src 'none'`),t.setHeader(`X-Content-Type-Options`,`nosniff`),t.setHeader(`Location`,n),t.end(r)},D.prototype.pipe=function(e){var t=this._root;this.res=e;var n=N(this.path);if(n===-1||~n.indexOf(`\0`))return this.error(400),e;var r;if(t!==null){if(n&&=b(`.`+S+n),T.test(n))return i(`malicious path "%s"`,n),this.error(403),e;r=n.split(S),n=b(y(t,n))}else{if(T.test(n))return i(`malicious path "%s"`,n),this.error(403),e;r=b(n).split(S),n=x(n)}if(A(r))switch(i(`%s dotfile "%s"`,this._dotfiles,n),this._dotfiles){case`allow`:break;case`deny`:return this.error(403),e;case`ignore`:default:return this.error(404),e}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(n),e):(this.sendFile(n),e)},D.prototype.send=function(e,t){var n=t.size,r=this.options,a={},o=this.res,s=this.req,c=s.headers.range,l=r.start||0;if(o.headersSent){this.headersAlreadySent();return}if(i(`pipe "%s"`,e),this.setHeader(e,t),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(n=Math.max(0,n-l),r.end!==void 0){var u=r.end-l+1;n>u&&(n=u)}if(this._acceptRanges&&C.test(c)){if(c=p(n,c,{combine:!0}),this.isRangeFresh()||(i(`range stale`),c=-2),c===-1)return i(`range unsatisfiable`),o.setHeader(`Content-Range`,j(`bytes`,n)),this.error(416,{headers:{"Content-Range":o.getHeader(`Content-Range`)}});c!==-2&&c.length===1&&(i(`range %j`,c),o.statusCode=206,o.setHeader(`Content-Range`,j(`bytes`,n,c[0])),l+=c[0].start,n=c[0].end-c[0].start+1)}for(var d in r)a[d]=r[d];if(a.start=l,a.end=Math.max(l,l+n-1),o.setHeader(`Content-Length`,n),s.method===`HEAD`){o.end();return}this.stream(e,a)},D.prototype.sendFile=function(e){var t=0,n=this;i(`stat "%s"`,e),l.stat(e,function(t,i){var a=e[e.length-1]===S;if(t&&t.code===`ENOENT`&&!v(e)&&!a)return r(t);if(t)return n.onStatError(t);if(i.isDirectory())return n.redirect(e);if(a)return n.error(404);n.emit(`file`,e,i),n.send(e,i)});function r(a){if(n._extensions.length<=t)return a?n.onStatError(a):n.error(404);var o=e+`.`+n._extensions[t++];i(`stat "%s"`,o),l.stat(o,function(e,t){if(e)return r(e);if(t.isDirectory())return r();n.emit(`file`,o,t),n.send(o,t)})}},D.prototype.sendIndex=function(e){var t=-1,n=this;function r(a){if(++t>=n._index.length)return a?n.onStatError(a):n.error(404);var o=y(e,n._index[t]);i(`stat "%s"`,o),l.stat(o,function(e,t){if(e)return r(e);if(t.isDirectory())return r();n.emit(`file`,o,t),n.send(o,t)})}r()},D.prototype.stream=function(e,t){var n=this,r=this.res,i=l.createReadStream(e,t);this.emit(`stream`,i),i.pipe(r);function a(){i.destroy()}f(r,a),i.on(`error`,function(e){a(),n.onStatError(e)}),i.on(`end`,function(){n.emit(`end`)})},D.prototype.type=function(e){var t=this.res;if(!t.getHeader(`Content-Type`)){var n=v(e),r=u.contentType(n)||`application/octet-stream`;i(`content-type %s`,r),t.setHeader(`Content-Type`,r)}},D.prototype.setHeader=function(e,t){var n=this.res;if(this.emit(`headers`,n,e,t),this._acceptRanges&&!n.getHeader(`Accept-Ranges`)&&(i(`accept ranges`),n.setHeader(`Accept-Ranges`,`bytes`)),this._cacheControl&&!n.getHeader(`Cache-Control`)){var r=`public, max-age=`+Math.floor(this._maxage/1e3);this._immutable&&(r+=`, immutable`),i(`cache-control %s`,r),n.setHeader(`Cache-Control`,r)}if(this._lastModified&&!n.getHeader(`Last-Modified`)){var a=t.mtime.toUTCString();i(`modified %s`,a),n.setHeader(`Last-Modified`,a)}if(this._etag&&!n.getHeader(`ETag`)){var o=s(t);i(`etag %s`,o),n.setHeader(`ETag`,o)}};function O(e){for(let t of e.getHeaderNames())e.removeHeader(t)}function k(e){for(var t=0;t<e.length&&e[t]===`/`;t++);return t>1?`/`+e.substr(t):e}function A(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.length>1&&n[0]===`.`)return!0}return!1}function j(e,t,n){return e+` `+(n?n.start+`-`+n.end:`*`)+`/`+t}function M(e,t){return`<!DOCTYPE html>
46
+ `}t.exports=u;function u(e,t,i){var a=i||{},o=a.env||process.env.NODE_ENV||`development`,s=a.onerror;return function(i){var a,c,l;if(!i&&t.headersSent){n(`cannot 404 after headers sent`);return}if(i?(l=p(i),l===void 0?l=h(t):a=d(i),c=f(i,l,o)):(l=404,c=`Cannot `+e.method+` `+r(m(e))),n(`default %s`,l),i&&s&&setImmediate(s,i,e,t),t.headersSent){n(`cannot %d after headers sent`,l),e.socket&&e.socket.destroy();return}g(e,t,l,a,c)}}function d(e){if(!(!e.headers||typeof e.headers!=`object`))return{...e.headers}}function f(e,t,n){var r;return n!==`production`&&(r=e.stack,!r&&typeof e.toString==`function`&&(r=e.toString())),r||s.message[t]}function p(e){if(typeof e.status==`number`&&e.status>=400&&e.status<600)return e.status;if(typeof e.statusCode==`number`&&e.statusCode>=400&&e.statusCode<600)return e.statusCode}function m(e){try{return o.original(e).pathname}catch{return`resource`}}function h(e){var t=e.statusCode;return(typeof t!=`number`||t<400||t>599)&&(t=500),t}function g(e,t,n,r,i){function o(){var a=l(i);t.statusCode=n,e.httpVersionMajor<2&&(t.statusMessage=s.message[n]),t.removeHeader(`Content-Encoding`),t.removeHeader(`Content-Language`),t.removeHeader(`Content-Range`);for(let[e,n]of Object.entries(r??{}))t.setHeader(e,n);if(t.setHeader(`Content-Security-Policy`,`default-src 'none'`),t.setHeader(`X-Content-Type-Options`,`nosniff`),t.setHeader(`Content-Type`,`text/html; charset=utf-8`),t.setHeader(`Content-Length`,Buffer.byteLength(a,`utf8`)),e.method===`HEAD`){t.end();return}t.end(a,`utf8`)}if(c(e)){o();return}e.unpipe(),a(e,o),e.resume()}})),ln=a(((e,n)=>{var r=me()(`express:view`),i=t(`node:path`),a=t(`node:fs`),o=i.dirname,s=i.basename,c=i.extname,l=i.join,u=i.resolve;n.exports=d;function d(e,n){var i=n||{};if(this.defaultEngine=i.defaultEngine,this.ext=c(e),this.name=e,this.root=i.root,!this.ext&&!this.defaultEngine)throw Error(`No default engine was specified and no extension was provided.`);var a=e;if(this.ext||(this.ext=this.defaultEngine[0]===`.`?this.defaultEngine:`.`+this.defaultEngine,a+=this.ext),!i.engines[this.ext]){var o=this.ext.slice(1);r(`require "%s"`,o);var s=t(o).__express;if(typeof s!=`function`)throw Error(`Module "`+o+`" does not provide a view engine.`);i.engines[this.ext]=s}this.engine=i.engines[this.ext],this.path=this.lookup(a)}d.prototype.lookup=function(e){var t,n=[].concat(this.root);r(`lookup "%s"`,e);for(var i=0;i<n.length&&!t;i++){var a=n[i],c=u(a,e),l=o(c),d=s(c);t=this.resolve(l,d)}return t},d.prototype.render=function(e,t){var n=!0;r(`render "%s"`,this.path),this.engine(this.path,e,function(){if(!n)return t.apply(this,arguments);for(var e=Array(arguments.length),r=this,i=0;i<arguments.length;i++)e[i]=arguments[i];return process.nextTick(function(){return t.apply(r,e)})}),n=!1},d.prototype.resolve=function(e,t){var n=this.ext,r=l(e,t),i=f(r);if(i&&i.isFile()||(r=l(e,s(t,n),`index`+n),i=f(r),i&&i.isFile()))return r};function f(e){r(`stat "%s"`,e);try{return a.statSync(e)}catch{return}}})),un=a(((e,n)=>{n.exports=s;var r=t(`crypto`),i=t(`fs`).Stats,a=Object.prototype.toString;function o(e){if(e.length===0)return`"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"`;var t=r.createHash(`sha1`).update(e,`utf8`).digest(`base64`).substring(0,27);return`"`+(typeof e==`string`?Buffer.byteLength(e,`utf8`):e.length).toString(16)+`-`+t+`"`}function s(e,t){if(e==null)throw TypeError(`argument entity is required`);var n=c(e),r=t&&typeof t.weak==`boolean`?t.weak:n;if(!n&&typeof e!=`string`&&!Buffer.isBuffer(e))throw TypeError(`argument entity must be string, Buffer, or fs.Stats`);var i=n?l(e):o(e);return r?`W/`+i:i}function c(e){return typeof i==`function`&&e instanceof i?!0:e&&typeof e==`object`&&`ctime`in e&&a.call(e.ctime)===`[object Date]`&&`mtime`in e&&a.call(e.mtime)===`[object Date]`&&`ino`in e&&typeof e.ino==`number`&&`size`in e&&typeof e.size==`number`}function l(e){var t=e.mtime.getTime().toString(16);return`"`+e.size.toString(16)+`-`+t+`"`}})),dn=a(((e,t)=>{t.exports=n;function n(e){if(!e)throw TypeError(`argument req is required`);var t=i(e.headers[`x-forwarded-for`]||``);return[r(e)].concat(t)}function r(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}function i(e){for(var t=e.length,n=[],r=e.length,i=e.length-1;i>=0;i--)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i);break;case 44:r!==t&&n.push(e.substring(r,t)),r=t=i;break;default:r=i;break}return r!==t&&n.push(e.substring(r,t)),n}})),fn=a(((e,t)=>{(function(){var e,n={},r,i,a,o,s,c=this,l;t!=null&&t.exports?t.exports=n:c.ipaddr=n,s=function(e,t,n,r){var i,a;if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);for(i=0;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0},n.subnetMatch=function(e,t,n){var r,i,a,o,s;for(a in n??=`unicast`,t)for(o=t[a],o[0]&&!(o[0]instanceof Array)&&(o=[o]),r=0,i=o.length;r<i;r++)if(s=o[r],e.kind()===s[0].kind()&&e.match.apply(e,s))return a;return n},n.IPv4=(function(){function e(e){var t,n,r;if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);for(t=0,n=e.length;t<n;t++)if(r=e[t],!(0<=r&&r<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.kind=function(){return`ipv4`},e.prototype.toString=function(){return this.octets.join(`.`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.match=function(e,t){var n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return s(this.octets,e.octets,8,t)},e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.range=function(){return n.subnetMatch(this,this.SpecialRanges)},e.prototype.toIPv4MappedAddress=function(){return n.IPv6.parse(`::ffff:`+this.toString())},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,n,r,i,a,o={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=0,i=!1,t=n=3;n>=0;t=n+=-1)if(r=this.octets[t],r in o){if(a=o[r],i&&a!==0)return null;a!==8&&(i=!0),e+=a}else return null;return 32-e},e})(),r=`(0?\\d+|0x[a-f0-9]+)`,i={fourOctet:RegExp(`^`+r+`\\.`+r+`\\.`+r+`\\.`+r+`$`,`i`),longValue:RegExp(`^`+r+`$`,`i`)},n.IPv4.parser=function(e){var t,n=function(e){return e[0]===`0`&&e[1]!==`x`?parseInt(e,8):parseInt(e)},r,a,o;if(t=e.match(i.fourOctet))return(function(){var e,i,a=t.slice(1,6),o=[];for(e=0,i=a.length;e<i;e++)r=a[e],o.push(n(r));return o})();if(t=e.match(i.longValue)){if(o=n(t[1]),o>4294967295||o<0)throw Error(`ipaddr: address outside defined range`);return(function(){var e,t=[];for(a=e=0;e<=24;a=e+=8)t.push(o>>a&255);return t})().reverse()}else return null},n.IPv6=(function(){function e(e,t){var n,r,i,a,o,s;if(e.length===16)for(this.parts=[],n=r=0;r<=14;n=r+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(s=this.parts,i=0,a=s.length;i<a;i++)if(o=s[i],!(0<=o&&o<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.kind=function(){return`ipv6`},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,`::`)},e.prototype.toRFC5952String=function(){var e,t,n,r=/((^|:)(0(:|$)){2,})/g,i=this.toNormalizedString();for(e=0,t=-1;n=r.exec(i);)n[0].length>t&&(e=n.index,t=n[0].length);return t<0?i:i.substring(0,e)+`::`+i.substring(e+t)},e.prototype.toByteArray=function(){var e=[],t,n,r,i=this.parts;for(t=0,n=i.length;t<n;t++)r=i[t],e.push(r>>8),e.push(r&255);return e},e.prototype.toNormalizedString=function(){var e=(function(){var e,n,r=this.parts,i=[];for(e=0,n=r.length;e<n;e++)t=r[e],i.push(t.toString(16));return i}).call(this).join(`:`),t,n=``;return this.zoneId&&(n=`%`+this.zoneId),e+n},e.prototype.toFixedLengthString=function(){var e=(function(){var e,n,r=this.parts,i=[];for(e=0,n=r.length;e<n;e++)t=r[e],i.push(t.toString(16).padStart(4,`0`));return i}).call(this).join(`:`),t,n=``;return this.zoneId&&(n=`%`+this.zoneId),e+n},e.prototype.match=function(e,t){var n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return s(this.parts,e.parts,16,t)},e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.range=function(){return n.subnetMatch(this,this.SpecialRanges)},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.toIPv4Address=function(){var e,t,r;if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);return r=this.parts.slice(-2),e=r[0],t=r[1],new n.IPv4([e>>8,e&255,t>>8,t&255])},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,n,r,i,a,o={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};for(e=0,i=!1,t=n=7;n>=0;t=n+=-1)if(r=this.parts[t],r in o){if(a=o[r],i&&a!==0)return null;a!==16&&(i=!0),e+=a}else return null;return 128-e},e})(),a=`(?:[0-9a-f]+::?)+`,l=`%[0-9a-z]{1,}`,o={zoneIndex:new RegExp(l,`i`),native:RegExp(`^(::)?(`+a+`)?([0-9a-f]+)?(::)?(`+l+`)?$`,`i`),transitional:RegExp(`^((?:`+a+`)|(?:::)(?:`+a+`)?)`+(r+`\\.`+r+`\\.`+r+`\\.`+r)+(`(`+l+`)?$`),`i`)},e=function(e,t){var n,r,i,a,s,c;if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;for(c=(e.match(o.zoneIndex)||[])[0],c&&(c=c.substring(1),e=e.replace(/%.+$/,``)),n=0,r=-1;(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>t)return null;for(s=t-n,a=`:`;s--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){var t,n,r=e.split(`:`),a=[];for(t=0,n=r.length;t<n;t++)i=r[t],a.push(parseInt(i,16));return a})(),{parts:t,zoneId:c}},n.IPv6.parser=function(t){var n,r,i,a,s,c,l;if(o.native.test(t))return e(t,8);if((a=t.match(o.transitional))&&(l=a[6]||``,n=e(a[1].slice(0,-1)+l,6),n.parts)){for(c=[parseInt(a[2]),parseInt(a[3]),parseInt(a[4]),parseInt(a[5])],r=0,i=c.length;r<i;r++)if(s=c[r],!(0<=s&&s<=255))return null;return n.parts.push(c[0]<<8|c[1]),n.parts.push(c[2]<<8|c[3]),{parts:n.parts,zoneId:n.zoneId}}return null},n.IPv4.isIPv4=n.IPv6.isIPv6=function(e){return this.parser(e)!==null},n.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},n.IPv4.isValidFourPartDecimal=function(e){return!!(n.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},n.IPv6.isValid=function(e){var t;if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return t=this.parser(e),new this(t.parts,t.zoneId),!0}catch{return!1}},n.IPv4.parse=function(e){var t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like ip address`);return new this(t)},n.IPv6.parse=function(e){var t=this.parser(e);if(t.parts===null)throw Error(`ipaddr: string is not formatted like ip address`);return new this(t.parts,t.zoneId)},n.IPv4.parseCIDR=function(e){var t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=32))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},n.IPv4.subnetMaskFromPrefixLength=function(e){var t,n,r;if(e=parseInt(e),e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);for(r=[0,0,0,0],n=0,t=Math.floor(e/8);n<t;)r[n]=255,n++;return t<4&&(r[t]=2**(e%8)-1<<8-e%8),new this(r)},n.IPv4.broadcastAddressFromCIDR=function(e){var t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)|parseInt(a[n],10)^255),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},n.IPv4.networkAddressFromCIDR=function(e){var t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},n.IPv6.parseCIDR=function(e){var t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},n.isValid=function(e){return n.IPv6.isValid(e)||n.IPv4.isValid(e)},n.parse=function(e){if(n.IPv6.isValid(e))return n.IPv6.parse(e);if(n.IPv4.isValid(e))return n.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},n.parseCIDR=function(e){try{return n.IPv6.parseCIDR(e)}catch{try{return n.IPv4.parseCIDR(e)}catch{throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`)}}},n.fromByteArray=function(e){var t=e.length;if(t===4)return new n.IPv4(e);if(t===16)return new n.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},n.process=function(e){var t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t}}).call(e)})),pn=a(((e,t)=>{t.exports=m,t.exports.all=c,t.exports.compile=l;var n=dn(),r=fn(),i=/^[0-9]+$/,a=r.isValid,o=r.parse,s={linklocal:[`169.254.0.0/16`,`fe80::/10`],loopback:[`127.0.0.1/8`,`::1/128`],uniquelocal:[`10.0.0.0/8`,`172.16.0.0/12`,`192.168.0.0/16`,`fc00::/7`]};function c(e,t){var r=n(e);if(!t)return r;typeof t!=`function`&&(t=l(t));for(var i=0;i<r.length-1;i++)t(r[i],i)||(r.length=i+1);return r}function l(e){if(!e)throw TypeError(`argument is required`);var t;if(typeof e==`string`)t=[e];else if(Array.isArray(e))t=e.slice();else throw TypeError(`unsupported trust argument`);for(var n=0;n<t.length;n++)e=t[n],Object.prototype.hasOwnProperty.call(s,e)&&(e=s[e],t.splice.apply(t,[n,1].concat(e)),n+=e.length-1);return d(u(t))}function u(e){for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=f(e[n]);return t}function d(e){var t=e.length;return t===0?h:t===1?_(e[0]):g(e)}function f(e){var t=e.lastIndexOf(`/`),n=t===-1?e:e.substring(0,t);if(!a(n))throw TypeError(`invalid IP address: `+n);var r=o(n);t===-1&&r.kind()===`ipv6`&&r.isIPv4MappedAddress()&&(r=r.toIPv4Address());var s=r.kind()===`ipv6`?128:32,c=t===-1?null:e.substring(t+1,e.length);if(c=c===null?s:i.test(c)?parseInt(c,10):r.kind()===`ipv4`&&a(c)?p(c):null,c<=0||c>s)throw TypeError(`invalid range on address: `+e);return[r,c]}function p(e){var t=o(e);return t.kind()===`ipv4`?t.prefixLengthFromSubnetMask():null}function m(e,t){if(!e)throw TypeError(`req argument is required`);if(!t)throw TypeError(`trust argument is required`);var n=c(e,t);return n[n.length-1]}function h(){return!1}function g(e){return function(t){if(!a(t))return!1;for(var n=o(t),r,i=n.kind(),s=0;s<e.length;s++){var c=e[s],l=c[0],u=l.kind(),d=c[1],f=n;if(i!==u){if(u===`ipv4`&&!n.isIPv4MappedAddress())continue;r||=u===`ipv4`?n.toIPv4Address():n.toIPv4MappedAddress(),f=r}if(f.match(l,d))return!0}return!1}}function _(e){var t=e[0],n=t.kind(),r=n===`ipv4`,i=e[1];return function(e){if(!a(e))return!1;var s=o(e);if(s.kind()!==n){if(r&&!s.isIPv4MappedAddress())return!1;s=r?s.toIPv4Address():s.toIPv4MappedAddress()}return s.match(t,i)}}})),mn=a((e=>{var{METHODS:n}=t(`node:http`),r=Ze(),i=un(),a=tt(),o=pn(),s=en(),c=t(`querystring`);e.methods=n.map(e=>e.toLowerCase()),e.etag=u({weak:!1}),e.wetag=u({weak:!0}),e.normalizeType=function(e){return~e.indexOf(`/`)?l(e):{value:a.lookup(e)||`application/octet-stream`,params:{}}},e.normalizeTypes=function(t){return t.map(e.normalizeType)};function l(e){for(var t=e.length,n=e.indexOf(`;`),r=n===-1?t:n,i={value:e.slice(0,r).trim(),quality:1,params:{}};r<t;){var a=e.indexOf(`=`,r);if(a===-1)break;var n=e.indexOf(`;`,r),o=n===-1?t:n;if(a>o){r=e.lastIndexOf(`;`,a-1)+1;continue}var s=e.slice(r,a).trim(),c=e.slice(a+1,o).trim();s===`q`?i.quality=parseFloat(c):i.params[s]=c,r=o+1}return i}e.compileETag=function(t){var n;if(typeof t==`function`)return t;switch(t){case!0:case`weak`:n=e.wetag;break;case!1:break;case`strong`:n=e.etag;break;default:throw TypeError(`unknown value for etag function: `+t)}return n},e.compileQueryParser=function(e){var t;if(typeof e==`function`)return e;switch(e){case!0:case`simple`:t=c.parse;break;case!1:break;case`extended`:t=d;break;default:throw TypeError(`unknown value for query parser function: `+e)}return t},e.compileTrust=function(e){return typeof e==`function`?e:e===!0?function(){return!0}:typeof e==`number`?function(t,n){return n<e}:(typeof e==`string`&&(e=e.split(`,`).map(function(e){return e.trim()})),o.compile(e||[]))},e.setCharset=function(e,t){if(!e||!t)return e;var n=r.parse(e);return n.parameters.charset=t,r.format(n)};function u(e){return function(t,n){return i(Buffer.isBuffer(t)?t:Buffer.from(t,n),e)}}function d(e){return s.parse(e,{allowPrototypes:!0})}})),hn=a(((e,t)=>{t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}})),gn=a(((e,t)=>{var n=hn();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:function(){return i(this)},configurable:!0})});function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}})),_n=a(((e,t)=>{t.exports=n,t.exports.default=n;function n(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}})),vn=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=l,e.compile=u,e.match=p,e.pathToRegexp=m,e.stringify=y;let t=e=>e,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,i=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function a(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function o(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var s=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=s;var c=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=c;function l(e,i={}){let{encodePath:a=t}=i,o=[...e],l=0;function u(t){let i=[],s=``;function d(){s&&=(i.push({type:`text`,value:a(s)}),``)}for(;l<o.length;){let a=o[l++];if(a===t)return d(),i;if(a===`\\`){if(l===o.length)throw new c(`Unexpected end after \\ at index ${l}`,e);s+=o[l++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,s=``;if(n.test(o[l]))do s+=o[l++];while(r.test(o[l]));else if(o[l]===`"`){let t=l;for(;l<o.length;){if(o[++l]===`"`){l++,t=0;break}o[l]===`\\`&&l++,s+=o[l]}if(t)throw new c(`Unterminated quote at index ${t}`,e)}if(!s)throw new c(`Missing parameter name at index ${l}`,e);d(),i.push({type:t,name:s});continue}if(a===`{`){d(),i.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new c(`Unexpected ${a} at index ${l-1}`,e);s+=a}if(t)throw new c(`Unexpected end at index ${l}, expected ${t}`,e);return d(),i}return new s(u(``),e)}function u(e,t={}){let{encode:n=encodeURIComponent,delimiter:r=`/`}=t,i=d((typeof e==`object`?e:l(e,t)).tokens,r,n);return function(e={}){let t=[],n=i(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function d(e,t,n){let r=e.map(e=>f(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function f(e,n,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let t=d(e.tokens,n,r);return(e,n)=>{let r=n.length,i=t(e,n);return n.length===r?i:(n.length=r,``)}}let i=r||t;return e.type===`wildcard`&&r!==!1?(t,r)=>{let a=t[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let t=0;t<a.length;t++){if(typeof a[t]!=`string`)throw TypeError(`Expected "${e.name}/${t}" to be a string`);t>0&&(o+=n),o+=i(a[t])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function p(e,n={}){let{decode:r=decodeURIComponent,delimiter:i=`/`}=n,{regexp:a,keys:o}=m(e,n),s=o.map(e=>r===!1?t:e.type===`param`?r:e=>e.split(i).map(r));return function(e){let t=a.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=o[e-1],i=s[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function m(e,t={}){let{delimiter:n=`/`,end:r=!0,sensitive:i=!1,trailing:a=!0}=t,s=[],u=``,d=0;function f(e){if(Array.isArray(e)){for(let t of e)f(t);return}let r=typeof e==`object`?e:l(e,t);h(r.tokens,0,[],e=>{if(d>=256)throw new c(`Too many path combinations`,r.originalPath);d>0&&(u+=`|`),u+=g(e,n,s,r.originalPath),d++})}f(e);let p=`^(?:${u})`;return a&&(p+=`(?:`+o(n)+`$)?`),p+=r?`$`:`(?=`+o(n)+`|$)`,{regexp:new RegExp(p,i?``:`i`),keys:s}}function h(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;h(i.tokens,0,n,n=>h(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function g(e,t,n,r){let i=``,a=``,s=``,l=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=o(m.value),a+=m.value,l===2&&(s+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(l&&!a)throw new c(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${_(t,a)}+)`:f(d,`wildcard`)?`(${_(t,p(d))}+)`:u&1?`(${_(t,a)}+|${o(a)})`:`(${_(t,``)}+)`,u|=l=1):(i+=u&2?`(${_(a,``)}+)`:s?`(${_(s,``)}+|${_(t,``)}+)`:`([^]+)`,s=``,u|=l=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function _(e,t){return t.length>e.length?_(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${o(e)}|${o(t)})[^])`:e.length>1?`(?:(?!${o(e)})[^${o(t)}])`:`[^${o(e+t)}]`)}function v(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=a(r.value);continue}if(r.type===`group`){n+=`{`+v(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+b(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+b(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function y(e){return v(e.tokens,0)}function b(e,t){return!i.test(e)||t?.type===`text`&&r.test(t.value[0])?JSON.stringify(e):e}})),yn=a(((e,t)=>{let n=_n(),r=vn(),i=me()(`router:layer`),a=he()(`router`),o=/\/+$/,s=/\((?:\?<(.*?)>)?(?!\?)/g;t.exports=c;function c(e,t,n){if(!(this instanceof c))return new c(e,t,n);i(`new %o`,e);let a=t||{};this.handle=n,this.keys=[],this.name=n.name||`<anonymous>`,this.params=void 0,this.path=void 0,this.slash=e===`/`&&a.end===!1;function o(e){if(e instanceof RegExp){let t=[],n=0,r;for(;r=s.exec(e.source);)t.push({name:r[1]||n++,offset:r.index});return function(n){let r=e.exec(n);if(!r)return!1;let i={};for(let e=1;e<r.length;e++){let n=t[e-1].name,a=l(r[e]);a!==void 0&&(i[n]=a)}return{params:i,path:r[0]}}}return r.match(a.strict?e:u(e),{sensitive:a.sensitive,end:a.end,trailing:!a.strict,decode:l})}this.matchers=Array.isArray(e)?e.map(o):[o(e)]}c.prototype.handleError=function(e,t,r,i){let o=this.handle;if(o.length!==4)return i(e);try{let s=o(e,t,r,i);n(s)&&(s instanceof Promise||a(`handlers that are Promise-like are deprecated, use a native Promise instead`),s.then(null,function(e){i(e||Error(`Rejected promise`))}))}catch(e){i(e)}},c.prototype.handleRequest=function(e,t,r){let i=this.handle;if(i.length>3)return r();try{let o=i(e,t,r);n(o)&&(o instanceof Promise||a(`handlers that are Promise-like are deprecated, use a native Promise instead`),o.then(null,function(e){r(e||Error(`Rejected promise`))}))}catch(e){r(e)}},c.prototype.match=function(e){let t;if(e!=null){if(this.slash)return this.params={},this.path=``,!0;let n=0;for(;!t&&n<this.matchers.length;)t=this.matchers[n](e),n++}return t?(this.params=t.params,this.path=t.path,this.keys=Object.keys(t.params),!0):(this.params=void 0,this.path=void 0,!1)};function l(e){if(typeof e!=`string`||e.length===0)return e;try{return decodeURIComponent(e)}catch(t){throw t instanceof URIError&&(t.message=`Failed to decode param '`+e+`'`,t.status=400),t}}function u(e){return e instanceof RegExp||e===`/`?e:Array.isArray(e)?e.map(function(e){return u(e)}):String(e).replace(o,``)}})),bn=a(((e,n)=>{let r=me()(`router:route`),i=yn(),{METHODS:a}=t(`node:http`),o=Array.prototype.slice,s=Array.prototype.flat,c=a.map(e=>e.toLowerCase());n.exports=l;function l(e){r(`new %o`,e),this.path=e,this.stack=[],this.methods=Object.create(null)}l.prototype._handlesMethod=function(e){if(this.methods._all)return!0;let t=typeof e==`string`?e.toLowerCase():e;return t===`head`&&!this.methods.head&&(t=`get`),!!this.methods[t]},l.prototype._methods=function(){let e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push(`head`);for(let t=0;t<e.length;t++)e[t]=e[t].toUpperCase();return e},l.prototype.dispatch=function(e,t,n){let r=0,i=this.stack,a=0;if(i.length===0)return n();let o=typeof e.method==`string`?e.method.toLowerCase():e.method;o===`head`&&!this.methods.head&&(o=`get`),e.route=this,s();function s(c){if(c&&c===`route`)return n();if(c&&c===`router`||r>=i.length)return n(c);if(++a>100)return setImmediate(s,c);let l,u;for(;u!==!0&&r<i.length;)l=i[r++],u=!l.method||l.method===o;if(u!==!0)return n(c);c?l.handleError(c,e,t,s):l.handleRequest(e,t,s),a=0}},l.prototype.all=function(e){let t=s.call(o.call(arguments),1/0);if(t.length===0)throw TypeError(`argument handler is required`);for(let e=0;e<t.length;e++){let n=t[e];if(typeof n!=`function`)throw TypeError(`argument handler must be a function`);let r=i(`/`,{},n);r.method=void 0,this.methods._all=!0,this.stack.push(r)}return this},c.forEach(function(e){l.prototype[e]=function(t){let n=s.call(o.call(arguments),1/0);if(n.length===0)throw TypeError(`argument handler is required`);for(let t=0;t<n.length;t++){let a=n[t];if(typeof a!=`function`)throw TypeError(`argument handler must be a function`);r(`%s %s`,e,this.path);let o=i(`/`,{},a);o.method=e,this.methods[e]=!0,this.stack.push(o)}return this}})})),xn=a(((e,n)=>{let r=_n(),i=yn(),{METHODS:a}=t(`node:http`),o=sn(),s=bn(),c=me()(`router`),l=he()(`router`),u=Array.prototype.slice,d=Array.prototype.flat,f=a.map(e=>e.toLowerCase());n.exports=p,n.exports.Route=s;function p(e){if(!(this instanceof p))return new p(e);let t=e||{};function n(e,t,r){n.handle(e,t,r)}return Object.setPrototypeOf(n,this),n.caseSensitive=t.caseSensitive,n.mergeParams=t.mergeParams,n.params={},n.strict=t.strict,n.stack=[],n}p.prototype=function(){},p.prototype.param=function(e,t){if(!e)throw TypeError(`argument name is required`);if(typeof e!=`string`)throw TypeError(`argument name must be a string`);if(!t)throw TypeError(`argument fn is required`);if(typeof t!=`function`)throw TypeError(`argument fn must be a function`);let n=this.params[e];return n||=this.params[e]=[],n.push(t),this},p.prototype.handle=function(e,t,n){if(!n)throw TypeError(`argument callback is required`);c(`dispatching %s %s`,e.method,e.url);let r=0,i,a=g(e.url)||``,o=``,s=this,l=!1,u=0,d={},f=this.stack,p=e.params,x=e.baseUrl||``,S=b(n,e,`baseUrl`,`next`,`params`);e.next=w,e.method===`OPTIONS`&&(i=[],S=C(S,m(t,i))),e.baseUrl=x,e.originalUrl=e.originalUrl||e.url,w();function w(n){let c=n===`route`?null:n;if(l&&=(e.url=e.url.slice(1),!1),o.length!==0&&(e.baseUrl=x,e.url=a+o+e.url.slice(a.length),o=``),c===`router`){setImmediate(S,null);return}if(r>=f.length){setImmediate(S,c);return}if(++u>100)return setImmediate(w,n);let m=h(e);if(m==null)return S(c);let g,b,C;for(;b!==!0&&r<f.length;){if(g=f[r++],b=_(g,m),C=g.route,typeof b!=`boolean`&&(c||=b),b!==!0||!C)continue;if(c){b=!1;continue}let t=e.method,n=C._handlesMethod(t);!n&&t===`OPTIONS`&&i&&i.push.apply(i,C._methods()),!n&&t!==`HEAD`&&(b=!1)}if(b!==!0)return S(c);C&&(e.route=C),e.params=s.mergeParams?v(g.params,p):g.params;let E=g.path;y(s.params,g,d,e,t,function(n){n?w(c||n):C?g.handleRequest(e,t,w):T(g,c,E,m),u=0})}function T(n,r,i,s){if(i.length!==0){if(i!==s.substring(0,i.length)){w(r);return}let t=s[i.length];if(t&&t!==`/`){w(r);return}c(`trim prefix (%s) from url %s`,i,e.url),o=i,e.url=a+e.url.slice(a.length+o.length),!a&&e.url[0]!==`/`&&(e.url=`/`+e.url,l=!0),e.baseUrl=x+(o[o.length-1]===`/`?o.substring(0,o.length-1):o)}c(`%s %s : %s`,n.name,i,e.originalUrl),r?n.handleError(r,e,t,w):n.handleRequest(e,t,w)}},p.prototype.use=function(e){let t=0,n=`/`;if(typeof e!=`function`){let r=e;for(;Array.isArray(r)&&r.length!==0;)r=r[0];typeof r!=`function`&&(t=1,n=e)}let r=d.call(u.call(arguments,t),1/0);if(r.length===0)throw TypeError(`argument handler is required`);for(let e=0;e<r.length;e++){let t=r[e];if(typeof t!=`function`)throw TypeError(`argument handler must be a function`);c(`use %o %s`,n,t.name||`<anonymous>`);let a=new i(n,{sensitive:this.caseSensitive,strict:!1,end:!1},t);a.route=void 0,this.stack.push(a)}return this},p.prototype.route=function(e){let t=new s(e),n=new i(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},r);function r(e,n,r){t.dispatch(e,n,r)}return n.route=t,this.stack.push(n),t},f.concat(`all`).forEach(function(e){p.prototype[e]=function(t){let n=this.route(t);return n[e].apply(n,u.call(arguments,1)),this}});function m(e,t){return function(n,r){if(r||t.length===0)return n(r);S(e,t,n)}}function h(e){try{return o(e).pathname}catch{return}}function g(e){if(typeof e!=`string`||e.length===0||e[0]===`/`)return;let t=e.indexOf(`?`),n=t===-1?e.length:t,r=e.substring(0,n).indexOf(`://`);return r===-1?void 0:e.substring(0,e.indexOf(`/`,3+r))}function _(e,t){try{return e.match(t)}catch(e){return e}}function v(e,t){if(typeof t!=`object`||!t)return e;let n=Object.assign({},t);if(!(0 in e)||!(0 in t))return Object.assign(n,e);let r=0,i=0;for(;r in e;)r++;for(;i in t;)i++;for(r--;r>=0;r--)e[r+i]=e[r],r<i&&delete e[r];return Object.assign(n,e)}function y(e,t,n,i,a,o){let s=t.keys;if(!s||s.length===0)return o();let c=0,u=0,d,f,p,m;function h(t){if(t)return o(t);if(c>=s.length)return o();if(u=0,d=s[c++],f=i.params[d],p=e[d],m=n[d],f===void 0||!p)return h();if(m&&(m.match===f||m.error&&m.error!==`route`))return i.params[d]=m.value,h(m.error);n[d]=m={error:null,match:f,value:f},g()}function g(e){let t=p[u++];if(m.value=i.params[d],e){m.error=e,h(e);return}if(!t)return h();try{let e=t(i,a,g,f,d);r(e)&&(e instanceof Promise||l(`parameters that are Promise-like are deprecated, use a native Promise instead`),e.then(null,function(e){g(e||Error(`Rejected promise`))}))}catch(e){g(e)}}h()}function b(e,t){let n=Array(arguments.length-2),r=Array(arguments.length-2);for(let e=0;e<n.length;e++)n[e]=arguments[e+2],r[e]=t[n[e]];return function(){for(let e=0;e<n.length;e++)t[n[e]]=r[e];return e.apply(this,arguments)}}function x(e,t){let n=Object.create(null);for(let e=0;e<t.length;e++)n[t[e]]=!0;let r=Object.keys(n).sort().join(`, `);e.setHeader(`Allow`,r),e.setHeader(`Content-Length`,Buffer.byteLength(r)),e.setHeader(`Content-Type`,`text/plain`),e.setHeader(`X-Content-Type-Options`,`nosniff`),e.end(r)}function S(e,t,n){try{x(e,t)}catch(e){n(e)}}function C(e,t){return function(){let n=Array(arguments.length+1);n[0]=e;for(let e=0,t=arguments.length;e<t;e++)n[e+1]=arguments[e];t.apply(this,n)}}})),Sn=a(((e,n)=>{var r=cn(),i=me()(`express:application`),a=ln(),o=t(`node:http`),s=mn().methods,c=mn().compileETag,l=mn().compileQueryParser,u=mn().compileTrust,d=t(`node:path`).resolve,f=gn(),p=xn(),m=Array.prototype.slice,h=Array.prototype.flat,g=e=n.exports={},_=`@@symbol:trust_proxy_default`;g.init=function(){var e=null;this.cache=Object.create(null),this.engines=Object.create(null),this.settings=Object.create(null),this.defaultConfiguration(),Object.defineProperty(this,`router`,{configurable:!0,enumerable:!0,get:function(){return e===null&&(e=new p({caseSensitive:this.enabled(`case sensitive routing`),strict:this.enabled(`strict routing`)})),e}})},g.defaultConfiguration=function(){var e=process.env.NODE_ENV||`development`;this.enable(`x-powered-by`),this.set(`etag`,`weak`),this.set(`env`,e),this.set(`query parser`,`simple`),this.set(`subdomain offset`,2),this.set(`trust proxy`,!1),Object.defineProperty(this.settings,_,{configurable:!0,value:!0}),i(`booting in %s mode`,e),this.on(`mount`,function(e){this.settings[_]===!0&&typeof e.settings[`trust proxy fn`]==`function`&&(delete this.settings[`trust proxy`],delete this.settings[`trust proxy fn`]),Object.setPrototypeOf(this.request,e.request),Object.setPrototypeOf(this.response,e.response),Object.setPrototypeOf(this.engines,e.engines),Object.setPrototypeOf(this.settings,e.settings)}),this.locals=Object.create(null),this.mountpath=`/`,this.locals.settings=this.settings,this.set(`view`,a),this.set(`views`,d(`views`)),this.set(`jsonp callback name`,`callback`),e===`production`&&this.enable(`view cache`)},g.handle=function(e,t,n){var i=n||r(e,t,{env:this.get(`env`),onerror:v.bind(this)});this.enabled(`x-powered-by`)&&t.setHeader(`X-Powered-By`,`Express`),e.res=t,t.req=e,Object.setPrototypeOf(e,this.request),Object.setPrototypeOf(t,this.response),t.locals||=Object.create(null),this.router.handle(e,t,i)},g.use=function(e){var t=0,n=`/`;if(typeof e!=`function`){for(var r=e;Array.isArray(r)&&r.length!==0;)r=r[0];typeof r!=`function`&&(t=1,n=e)}var a=h.call(m.call(arguments,t),1/0);if(a.length===0)throw TypeError(`app.use() requires a middleware function`);var o=this.router;return a.forEach(function(e){if(!e||!e.handle||!e.set)return o.use(n,e);i(`.use app under %s`,n),e.mountpath=n,e.parent=this,o.use(n,function(t,n,r){var i=t.app;e.handle(t,n,function(e){Object.setPrototypeOf(t,i.request),Object.setPrototypeOf(n,i.response),r(e)})}),e.emit(`mount`,this)},this),this},g.route=function(e){return this.router.route(e)},g.engine=function(e,t){if(typeof t!=`function`)throw Error(`callback function required`);var n=e[0]===`.`?e:`.`+e;return this.engines[n]=t,this},g.param=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.param(e[n],t);return this}return this.router.param(e,t),this},g.set=function(e,t){if(arguments.length===1)return this.settings[e];switch(i(`set "%s" to %o`,e,t),this.settings[e]=t,e){case`etag`:this.set(`etag fn`,c(t));break;case`query parser`:this.set(`query parser fn`,l(t));break;case`trust proxy`:this.set(`trust proxy fn`,u(t)),Object.defineProperty(this.settings,_,{configurable:!0,value:!1});break}return this},g.path=function(){return this.parent?this.parent.path()+this.mountpath:``},g.enabled=function(e){return!!this.set(e)},g.disabled=function(e){return!this.set(e)},g.enable=function(e){return this.set(e,!0)},g.disable=function(e){return this.set(e,!1)},s.forEach(function(e){g[e]=function(t){if(e===`get`&&arguments.length===1)return this.set(t);var n=this.route(t);return n[e].apply(n,m.call(arguments,1)),this}}),g.all=function(e){for(var t=this.route(e),n=m.call(arguments,1),r=0;r<s.length;r++)t[s[r]].apply(t,n);return this},g.render=function(e,t,n){var r=this.cache,i=n,a=this.engines,o=t,s;typeof t==`function`&&(i=t,o={});var c={...this.locals,...o._locals,...o};if(c.cache??=this.enabled(`view cache`),c.cache&&(s=r[e]),!s){if(s=new(this.get(`view`))(e,{defaultEngine:this.get(`view engine`),root:this.get(`views`),engines:a}),!s.path){var l=Array.isArray(s.root)&&s.root.length>1?`directories "`+s.root.slice(0,-1).join(`", "`)+`" or "`+s.root[s.root.length-1]+`"`:`directory "`+s.root+`"`,u=Error(`Failed to lookup view "`+e+`" in views `+l);return u.view=s,i(u)}c.cache&&(r[e]=s)}y(s,c,i)},g.listen=function(){var e=o.createServer(this),t=Array.prototype.slice.call(arguments);if(typeof t[t.length-1]==`function`){var n=t[t.length-1]=f(t[t.length-1]);e.once(`error`,n)}return e.listen.apply(e,t)};function v(e){this.get(`env`)!==`test`&&console.error(e.stack||e.toString())}function y(e,t,n){try{e.render(t,n)}catch(e){n(e)}}})),Cn=a(((e,t)=>{t.exports=s,t.exports.preferredCharsets=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{charset:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),wn=a(((e,t)=>{t.exports=s,t.exports.preferredEncodings=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=!1,r=1,a=0,s=0;a<t.length;a++){var c=i(t[a].trim(),a);c&&(t[s++]=c,n||=o(`identity`,c),r=Math.min(r,c.q||1))}return n||(t[s++]={encoding:`identity`,q:r,i:a}),t.length=s,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{encoding:i,q:a,i:t}}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),Tn=a(((e,t)=>{t.exports=s,t.exports.preferredLanguages=s;var n=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=r[2],o=i;a&&(o+=`-`+a);var s=1;if(r[3])for(var c=r[3].split(`;`),l=0;l<c.length;l++){var u=c[l].split(`=`);u[0]===`q`&&(s=parseFloat(u[1]))}return{prefix:i,suffix:a,q:s,i:t,full:o}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e);if(!r)return null;var a=0;if(t.full.toLowerCase()===r.full.toLowerCase())a|=4;else if(t.prefix.toLowerCase()===r.full.toLowerCase())a|=2;else if(t.full.toLowerCase()===r.prefix.toLowerCase())a|=1;else if(t.full!==`*`)return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.full}function u(e){return e.q>0}})),En=a(((e,t)=>{t.exports=s,t.exports.preferredMediaTypes=s;var n=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function r(e){for(var t=p(e),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=Object.create(null),a=1,o=r[2],s=r[1];if(r[3])for(var c=m(r[3]).map(f),l=0;l<c.length;l++){var u=c[l],d=u[0].toLowerCase(),p=u[1],h=p&&p[0]===`"`&&p[p.length-1]===`"`?p.slice(1,-1):p;if(d===`q`){a=parseFloat(h);break}i[d]=h}return{type:s,subtype:o,params:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e),a=0;if(!r)return null;if(t.type.toLowerCase()==r.type.toLowerCase())a|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==r.subtype.toLowerCase())a|=2;else if(t.subtype!=`*`)return null;var o=Object.keys(t.params);if(o.length>0)if(o.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(r.params[e]||``).toLowerCase()}))a|=1;else return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*/*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.type+`/`+e.subtype}function u(e){return e.q>0}function d(e){for(var t=0,n=0;(n=e.indexOf(`"`,n))!==-1;)t++,n++;return t}function f(e){var t=e.indexOf(`=`),n,r;return t===-1?n=e:(n=e.slice(0,t),r=e.slice(t+1)),[n,r]}function p(e){for(var t=e.split(`,`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`,`+t[n];return t.length=r+1,t}function m(e){for(var t=e.split(`;`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`;`+t[n];t.length=r+1;for(var n=0;n<t.length;n++)t[n]=t[n].trim();return t}})),Dn=a(((e,t)=>{var n=Cn(),r=wn(),i=Tn(),a=En();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes})),On=a(((e,t)=>{var n=Dn(),r=tt();t.exports=i;function i(e){if(!(this instanceof i))return new i(e);this.headers=e.headers,this.negotiator=new n(e)}i.prototype.type=i.prototype.types=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}if(!t||t.length===0)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var r=t.map(a),i=this.negotiator.mediaTypes(r.filter(o))[0];return i?t[r.indexOf(i)]:!1},i.prototype.encoding=i.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return!t||t.length===0?this.negotiator.encodings():this.negotiator.encodings(t)[0]||!1},i.prototype.charset=i.prototype.charsets=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return!t||t.length===0?this.negotiator.charsets():this.negotiator.charsets(t)[0]||!1},i.prototype.lang=i.prototype.langs=i.prototype.language=i.prototype.languages=function(e){var t=e;if(t&&!Array.isArray(t)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return!t||t.length===0?this.negotiator.languages():this.negotiator.languages(t)[0]||!1};function a(e){return e.indexOf(`/`)===-1?r.lookup(e):e}function o(e){return typeof e==`string`}})),kn=a(((e,t)=>{var n=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;t.exports=r;function r(e,t){var r=e[`if-modified-since`],o=e[`if-none-match`];if(!r&&!o)return!1;var s=e[`cache-control`];if(s&&n.test(s))return!1;if(o){if(o===`*`)return!0;var c=t.etag;if(!c)return!1;for(var l=a(o),u=0;u<l.length;u++){var d=l[u];if(d===c||d===`W/`+c||`W/`+d===c)return!0}return!1}if(r){var f=t[`last-modified`];if(!f||!(i(f)<=i(r)))return!1}return!0}function i(e){var t=e&&Date.parse(e);return typeof t==`number`?t:NaN}function a(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}})),An=a(((e,t)=>{t.exports=n;function n(e,t,n){if(typeof t!=`string`)throw TypeError(`argument str must be a string`);var i=t.indexOf(`=`);if(i===-1)return-2;var a=t.slice(i+1).split(`,`),o=[];o.type=t.slice(0,i);for(var s=0;s<a.length;s++){var c=a[s].split(`-`),l=parseInt(c[0],10),u=parseInt(c[1],10);isNaN(l)?(l=e-u,u=e-1):isNaN(u)&&(u=e-1),u>e-1&&(u=e-1),!(isNaN(l)||isNaN(u)||l>u||l<0)&&o.push({start:l,end:u})}return o.length<1?-1:n&&n.combine?r(o):o}function r(e){for(var t=e.map(i).sort(s),n=0,r=1;r<t.length;r++){var c=t[r],l=t[n];c.start>l.end+1?t[++n]=c:c.end>l.end&&(l.end=c.end,l.index=Math.min(l.index,c.index))}t.length=n+1;var u=t.sort(o).map(a);return u.type=e.type,u}function i(e,t){return{start:e.start,end:e.end,index:t}}function a(e){return{start:e.start,end:e.end}}function o(e,t){return e.index-t.index}function s(e,t){return e.start-t.start}})),jn=a(((e,n)=>{var r=On(),i=t(`node:net`).isIP,a=rt(),o=t(`node:http`),s=kn(),c=An(),l=sn(),u=pn(),d=Object.create(o.IncomingMessage.prototype);n.exports=d,d.get=d.header=function(e){if(!e)throw TypeError(`name argument is required to req.get`);if(typeof e!=`string`)throw TypeError(`name must be a string to req.get`);var t=e.toLowerCase();switch(t){case`referer`:case`referrer`:return this.headers.referrer||this.headers.referer;default:return this.headers[t]}},d.accepts=function(){var e=r(this);return e.types.apply(e,arguments)},d.acceptsEncodings=function(){var e=r(this);return e.encodings.apply(e,arguments)},d.acceptsCharsets=function(){var e=r(this);return e.charsets.apply(e,arguments)},d.acceptsLanguages=function(){var e=r(this);return e.languages.apply(e,arguments)},d.range=function(e,t){var n=this.get(`Range`);if(n)return c(e,n,t)},f(d,`query`,function(){var e=this.app.get(`query parser fn`);if(!e)return Object.create(null);var t=l(this).query;return e(t)}),d.is=function(e){var t=e;if(!Array.isArray(e)){t=Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return a(this,t)},f(d,`protocol`,function(){var e=this.connection.encrypted?`https`:`http`;if(!this.app.get(`trust proxy fn`)(this.connection.remoteAddress,0))return e;var t=this.get(`X-Forwarded-Proto`)||e,n=t.indexOf(`,`);return n===-1?t.trim():t.substring(0,n).trim()}),f(d,`secure`,function(){return this.protocol===`https`}),f(d,`ip`,function(){var e=this.app.get(`trust proxy fn`);return u(this,e)}),f(d,`ips`,function(){var e=this.app.get(`trust proxy fn`),t=u.all(this,e);return t.reverse().pop(),t}),f(d,`subdomains`,function(){var e=this.hostname;if(!e)return[];var t=this.app.get(`subdomain offset`);return(i(e)?[e]:e.split(`.`).reverse()).slice(t)}),f(d,`path`,function(){return l(this).pathname}),f(d,`host`,function(){var e=this.app.get(`trust proxy fn`),t=this.get(`X-Forwarded-Host`);return!t||!e(this.connection.remoteAddress,0)?t=this.get(`Host`):t.indexOf(`,`)!==-1&&(t=t.substring(0,t.indexOf(`,`)).trimRight()),t||void 0}),f(d,`hostname`,function(){var e=this.host;if(e){var t=e[0]===`[`?e.indexOf(`]`)+1:0,n=e.indexOf(`:`,t);return n===-1?e:e.substring(0,n)}}),f(d,`fresh`,function(){var e=this.method,t=this.res,n=t.statusCode;return e!==`GET`&&e!==`HEAD`?!1:n>=200&&n<300||n===304?s(this.headers,{etag:t.get(`ETag`),"last-modified":t.get(`Last-Modified`)}):!1}),f(d,`stale`,function(){return!this.fresh}),f(d,`xhr`,function(){return(this.get(`X-Requested-With`)||``).toLowerCase()===`xmlhttprequest`});function f(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:n})}})),Mn=a(((e,n)=>{n.exports=h,n.exports.parse=b;var r=t(`path`).basename,i=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,a=/%[0-9A-Fa-f]{2}/,o=/%([0-9A-Fa-f]{2})/g,s=/[^\x20-\x7e\xa0-\xff]/g,c=/\\([\u0000-\u007f])/g,l=/([\\"])/g,u=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,d=/^[\x20-\x7e\x80-\xff]+$/,f=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,p=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,m=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function h(e,t){var n=t||{};return _(new T(n.type||`attachment`,g(e,n.fallback)))}function g(e,t){if(e!==void 0){var n={};if(typeof e!=`string`)throw TypeError(`filename must be a string`);if(t===void 0&&(t=!0),typeof t!=`string`&&typeof t!=`boolean`)throw TypeError(`fallback must be a string or boolean`);if(typeof t==`string`&&s.test(t))throw TypeError(`fallback must be ISO-8859-1 string`);var i=r(e),o=d.test(i),c=typeof t==`string`?r(t):t&&y(i),l=typeof c==`string`&&c!==i;return(l||!o||a.test(i))&&(n[`filename*`]=i),(o||l)&&(n.filename=l?c:i),n}}function _(e){var t=e.parameters,n=e.type;if(!n||typeof n!=`string`||!f.test(n))throw TypeError(`invalid type`);var r=String(n).toLowerCase();if(t&&typeof t==`object`)for(var i,a=Object.keys(t).sort(),o=0;o<a.length;o++){i=a[o];var s=i.slice(-1)===`*`?w(t[i]):C(t[i]);r+=`; `+i+`=`+s}return r}function v(e){var t=p.exec(e);if(!t)throw TypeError(`invalid extended field value`);var n=t[1].toLowerCase(),r=t[2],i,a=r.replace(o,x);switch(n){case`iso-8859-1`:i=y(a);break;case`utf-8`:case`utf8`:i=Buffer.from(a,`binary`).toString(`utf8`);break;default:throw TypeError(`unsupported charset in extended field`)}return i}function y(e){return String(e).replace(s,`?`)}function b(e){if(!e||typeof e!=`string`)throw TypeError(`argument string is required`);var t=m.exec(e);if(!t)throw TypeError(`invalid type format`);var n=t[0].length,r=t[1].toLowerCase(),i,a=[],o={},s;for(n=u.lastIndex=t[0].slice(-1)===`;`?n-1:n;t=u.exec(e);){if(t.index!==n)throw TypeError(`invalid parameter format`);if(n+=t[0].length,i=t[1].toLowerCase(),s=t[2],a.indexOf(i)!==-1)throw TypeError(`invalid duplicate parameter`);if(a.push(i),i.indexOf(`*`)+1===i.length){i=i.slice(0,-1),s=v(s),o[i]=s;continue}typeof o[i]!=`string`&&(s[0]===`"`&&(s=s.slice(1,-1).replace(c,`$1`)),o[i]=s)}if(n!==-1&&n!==e.length)throw TypeError(`invalid parameter format`);return new T(r,o)}function x(e,t){return String.fromCharCode(parseInt(t,16))}function S(e){return`%`+String(e).charCodeAt(0).toString(16).toUpperCase()}function C(e){return`"`+String(e).replace(l,`\\$1`)+`"`}function w(e){var t=String(e);return`UTF-8''`+encodeURIComponent(t).replace(i,S)}function T(e,t){this.type=e,this.parameters=t}})),Nn=a((e=>{var n=t(`crypto`);e.sign=function(e,t){if(typeof e!=`string`)throw TypeError(`Cookie value must be provided as a string.`);if(t==null)throw TypeError(`Secret key must be provided.`);return e+`.`+n.createHmac(`sha256`,t).update(e).digest(`base64`).replace(/\=+$/,``)},e.unsign=function(t,r){if(typeof t!=`string`)throw TypeError(`Signed cookie string must be provided.`);if(r==null)throw TypeError(`Secret key must be provided.`);var i=t.slice(0,t.lastIndexOf(`.`)),a=e.sign(i,r),o=Buffer.from(a),s=Buffer.from(t);return o.length===s.length&&n.timingSafeEqual(o,s)?i:!1}})),Pn=a((e=>{e.parse=s,e.serialize=u;var t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,i=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function s(e,t){if(typeof e!=`string`)throw TypeError(`argument str must be a string`);var r={},i=e.length;if(i<2)return r;var a=t&&t.decode||d,o=0,s=0,u=0;do{if(s=e.indexOf(`=`,o),s===-1)break;if(u=e.indexOf(`;`,o),u===-1)u=i;else if(s>u){o=e.lastIndexOf(`;`,s-1)+1;continue}var f=c(e,o,s),m=l(e,s,f),h=e.slice(f,m);if(!n.call(r,h)){var g=c(e,s+1,u),_=l(e,u,g);e.charCodeAt(g)===34&&e.charCodeAt(_-1)===34&&(g++,_--),r[h]=p(e.slice(g,_),a)}o=u+1}while(o<i);return r}function c(e,t,n){do{var r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function l(e,t,n){for(;t>n;){var r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function u(e,t,n){var s=n&&n.encode||encodeURIComponent;if(typeof s!=`function`)throw TypeError(`option encode is invalid`);if(!r.test(e))throw TypeError(`argument name is invalid`);var c=s(t);if(!i.test(c))throw TypeError(`argument val is invalid`);var l=e+`=`+c;if(!n)return l;if(n.maxAge!=null){var u=Math.floor(n.maxAge);if(!isFinite(u))throw TypeError(`option maxAge is invalid`);l+=`; Max-Age=`+u}if(n.domain){if(!a.test(n.domain))throw TypeError(`option domain is invalid`);l+=`; Domain=`+n.domain}if(n.path){if(!o.test(n.path))throw TypeError(`option path is invalid`);l+=`; Path=`+n.path}if(n.expires){var d=n.expires;if(!f(d)||isNaN(d.valueOf()))throw TypeError(`option expires is invalid`);l+=`; Expires=`+d.toUTCString()}if(n.httpOnly&&(l+=`; HttpOnly`),n.secure&&(l+=`; Secure`),n.partitioned&&(l+=`; Partitioned`),n.priority)switch(typeof n.priority==`string`?n.priority.toLowerCase():n.priority){case`low`:l+=`; Priority=Low`;break;case`medium`:l+=`; Priority=Medium`;break;case`high`:l+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid`)}if(n.sameSite)switch(typeof n.sameSite==`string`?n.sameSite.toLowerCase():n.sameSite){case!0:l+=`; SameSite=Strict`;break;case`lax`:l+=`; SameSite=Lax`;break;case`strict`:l+=`; SameSite=Strict`;break;case`none`:l+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid`)}return l}function d(e){return e.indexOf(`%`)===-1?e:decodeURIComponent(e)}function f(e){return t.call(e)===`[object Date]`}function p(e,t){try{return t(e)}catch{return e}}})),Fn=a(((e,n)=>{var r=Se(),i=me()(`send`),a=an(),o=on(),s=un(),c=kn(),l=t(`fs`),u=tt(),d=re(),f=Xe(),p=An(),m=t(`path`),h=ve(),g=t(`stream`),_=t(`util`),v=m.extname,y=m.join,b=m.normalize,x=m.resolve,S=m.sep,C=/^ *bytes=/,w=3600*24*365*1e3,T=/(?:^|[\\/])\.\.(?:[\\/]|$)/;n.exports=E;function E(e,t,n){return new D(e,t,n)}function D(e,t,n){g.call(this);var r=n||{};if(this.options=r,this.path=t,this.req=e,this._acceptRanges=r.acceptRanges===void 0?!0:!!r.acceptRanges,this._cacheControl=r.cacheControl===void 0?!0:!!r.cacheControl,this._etag=r.etag===void 0?!0:!!r.etag,this._dotfiles=r.dotfiles===void 0?`ignore`:r.dotfiles,this._dotfiles!==`ignore`&&this._dotfiles!==`allow`&&this._dotfiles!==`deny`)throw TypeError(`dotfiles option must be "allow", "deny", or "ignore"`);this._extensions=r.extensions===void 0?[]:F(r.extensions,`extensions option`),this._immutable=r.immutable===void 0?!1:!!r.immutable,this._index=r.index===void 0?[`index.html`]:F(r.index,`index option`),this._lastModified=r.lastModified===void 0?!0:!!r.lastModified,this._maxage=r.maxAge||r.maxage,this._maxage=typeof this._maxage==`string`?d(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),w),this._root=r.root?x(r.root):null}_.inherits(D,g),D.prototype.error=function(e,t){if(P(this,`error`))return this.emit(`error`,N(e,t));var n=this.res,r=M(`Error`,o(h.message[e]||String(e)));O(n),t&&t.headers&&R(n,t.headers),n.statusCode=e,n.setHeader(`Content-Type`,`text/html; charset=UTF-8`),n.setHeader(`Content-Length`,Buffer.byteLength(r)),n.setHeader(`Content-Security-Policy`,`default-src 'none'`),n.setHeader(`X-Content-Type-Options`,`nosniff`),n.end(r)},D.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]===`/`},D.prototype.isConditionalGET=function(){return this.req.headers[`if-match`]||this.req.headers[`if-unmodified-since`]||this.req.headers[`if-none-match`]||this.req.headers[`if-modified-since`]},D.prototype.isPreconditionFailure=function(){var e=this.req,t=this.res,n=e.headers[`if-match`];if(n){var r=t.getHeader(`ETag`);return!r||n!==`*`&&L(n).every(function(e){return e!==r&&e!==`W/`+r&&`W/`+e!==r})}var i=I(e.headers[`if-unmodified-since`]);if(!isNaN(i)){var a=I(t.getHeader(`Last-Modified`));return isNaN(a)||a>i}return!1},D.prototype.removeContentHeaderFields=function(){var e=this.res;e.removeHeader(`Content-Encoding`),e.removeHeader(`Content-Language`),e.removeHeader(`Content-Length`),e.removeHeader(`Content-Range`),e.removeHeader(`Content-Type`)},D.prototype.notModified=function(){var e=this.res;i(`not modified`),this.removeContentHeaderFields(),e.statusCode=304,e.end()},D.prototype.headersAlreadySent=function(){var e=Error(`Can't set headers after they are sent.`);i(`headers already sent`),this.error(500,e)},D.prototype.isCachable=function(){var e=this.res.statusCode;return e>=200&&e<300||e===304},D.prototype.onStatError=function(e){switch(e.code){case`ENAMETOOLONG`:case`ENOENT`:case`ENOTDIR`:this.error(404,e);break;default:this.error(500,e);break}},D.prototype.isFresh=function(){return c(this.req.headers,{etag:this.res.getHeader(`ETag`),"last-modified":this.res.getHeader(`Last-Modified`)})},D.prototype.isRangeFresh=function(){var e=this.req.headers[`if-range`];if(!e)return!0;if(e.indexOf(`"`)!==-1){var t=this.res.getHeader(`ETag`);return!!(t&&e.indexOf(t)!==-1)}return I(this.res.getHeader(`Last-Modified`))<=I(e)},D.prototype.redirect=function(e){var t=this.res;if(P(this,`directory`)){this.emit(`directory`,t,e);return}if(this.hasTrailingSlash()){this.error(403);return}var n=a(k(this.path+`/`)),r=M(`Redirecting`,`Redirecting to `+o(n));t.statusCode=301,t.setHeader(`Content-Type`,`text/html; charset=UTF-8`),t.setHeader(`Content-Length`,Buffer.byteLength(r)),t.setHeader(`Content-Security-Policy`,`default-src 'none'`),t.setHeader(`X-Content-Type-Options`,`nosniff`),t.setHeader(`Location`,n),t.end(r)},D.prototype.pipe=function(e){var t=this._root;this.res=e;var n=ee(this.path);if(n===-1||~n.indexOf(`\0`))return this.error(400),e;var r;if(t!==null){if(n&&=b(`.`+S+n),T.test(n))return i(`malicious path "%s"`,n),this.error(403),e;r=n.split(S),n=b(y(t,n))}else{if(T.test(n))return i(`malicious path "%s"`,n),this.error(403),e;r=b(n).split(S),n=x(n)}if(A(r))switch(i(`%s dotfile "%s"`,this._dotfiles,n),this._dotfiles){case`allow`:break;case`deny`:return this.error(403),e;case`ignore`:default:return this.error(404),e}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(n),e):(this.sendFile(n),e)},D.prototype.send=function(e,t){var n=t.size,r=this.options,a={},o=this.res,s=this.req,c=s.headers.range,l=r.start||0;if(o.headersSent){this.headersAlreadySent();return}if(i(`pipe "%s"`,e),this.setHeader(e,t),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(n=Math.max(0,n-l),r.end!==void 0){var u=r.end-l+1;n>u&&(n=u)}if(this._acceptRanges&&C.test(c)){if(c=p(n,c,{combine:!0}),this.isRangeFresh()||(i(`range stale`),c=-2),c===-1)return i(`range unsatisfiable`),o.setHeader(`Content-Range`,j(`bytes`,n)),this.error(416,{headers:{"Content-Range":o.getHeader(`Content-Range`)}});c!==-2&&c.length===1&&(i(`range %j`,c),o.statusCode=206,o.setHeader(`Content-Range`,j(`bytes`,n,c[0])),l+=c[0].start,n=c[0].end-c[0].start+1)}for(var d in r)a[d]=r[d];if(a.start=l,a.end=Math.max(l,l+n-1),o.setHeader(`Content-Length`,n),s.method===`HEAD`){o.end();return}this.stream(e,a)},D.prototype.sendFile=function(e){var t=0,n=this;i(`stat "%s"`,e),l.stat(e,function(t,i){var a=e[e.length-1]===S;if(t&&t.code===`ENOENT`&&!v(e)&&!a)return r(t);if(t)return n.onStatError(t);if(i.isDirectory())return n.redirect(e);if(a)return n.error(404);n.emit(`file`,e,i),n.send(e,i)});function r(a){if(n._extensions.length<=t)return a?n.onStatError(a):n.error(404);var o=e+`.`+n._extensions[t++];i(`stat "%s"`,o),l.stat(o,function(e,t){if(e)return r(e);if(t.isDirectory())return r();n.emit(`file`,o,t),n.send(o,t)})}},D.prototype.sendIndex=function(e){var t=-1,n=this;function r(a){if(++t>=n._index.length)return a?n.onStatError(a):n.error(404);var o=y(e,n._index[t]);i(`stat "%s"`,o),l.stat(o,function(e,t){if(e)return r(e);if(t.isDirectory())return r();n.emit(`file`,o,t),n.send(o,t)})}r()},D.prototype.stream=function(e,t){var n=this,r=this.res,i=l.createReadStream(e,t);this.emit(`stream`,i),i.pipe(r);function a(){i.destroy()}f(r,a),i.on(`error`,function(e){a(),n.onStatError(e)}),i.on(`end`,function(){n.emit(`end`)})},D.prototype.type=function(e){var t=this.res;if(!t.getHeader(`Content-Type`)){var n=v(e),r=u.contentType(n)||`application/octet-stream`;i(`content-type %s`,r),t.setHeader(`Content-Type`,r)}},D.prototype.setHeader=function(e,t){var n=this.res;if(this.emit(`headers`,n,e,t),this._acceptRanges&&!n.getHeader(`Accept-Ranges`)&&(i(`accept ranges`),n.setHeader(`Accept-Ranges`,`bytes`)),this._cacheControl&&!n.getHeader(`Cache-Control`)){var r=`public, max-age=`+Math.floor(this._maxage/1e3);this._immutable&&(r+=`, immutable`),i(`cache-control %s`,r),n.setHeader(`Cache-Control`,r)}if(this._lastModified&&!n.getHeader(`Last-Modified`)){var a=t.mtime.toUTCString();i(`modified %s`,a),n.setHeader(`Last-Modified`,a)}if(this._etag&&!n.getHeader(`ETag`)){var o=s(t);i(`etag %s`,o),n.setHeader(`ETag`,o)}};function O(e){for(let t of e.getHeaderNames())e.removeHeader(t)}function k(e){for(var t=0;t<e.length&&e[t]===`/`;t++);return t>1?`/`+e.substr(t):e}function A(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.length>1&&n[0]===`.`)return!0}return!1}function j(e,t,n){return e+` `+(n?n.start+`-`+n.end:`*`)+`/`+t}function M(e,t){return`<!DOCTYPE html>
47
47
  <html lang="en">
48
48
  <head>
49
49
  <meta charset="utf-8">
@@ -53,7 +53,7 @@ t.exports=Qe()})),et=a(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,d
53
53
  <pre>`+t+`</pre>
54
54
  </body>
55
55
  </html>
56
- `}function ee(e,t){return t?t instanceof Error?r(e,t,{expose:!1}):r(e,t):r(e)}function N(e){try{return decodeURIComponent(e)}catch{return-1}}function P(e,t){return(typeof e.listenerCount==`function`?e.listenerCount(t):e.listeners(t).length)>0}function F(e,t){for(var n=[].concat(e||[]),r=0;r<n.length;r++)if(typeof n[r]!=`string`)throw TypeError(t+` must be array of strings or false`);return n}function I(e){var t=e&&Date.parse(e);return typeof t==`number`?t:NaN}function L(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:r!==t&&n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return r!==t&&n.push(e.substring(r,t)),n}function R(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];e.setHeader(i,t[i])}}})),In=a(((e,t)=>{t.exports=a,t.exports.append=r;var n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,t){if(typeof e!=`string`)throw TypeError(`header argument is required`);if(!t)throw TypeError(`field argument is required`);for(var r=Array.isArray(t)?t:i(String(t)),a=0;a<r.length;a++)if(!n.test(r[a]))throw TypeError(`field argument contains an invalid header name`);if(e===`*`)return e;var o=e,s=i(e.toLowerCase());if(r.indexOf(`*`)!==-1||s.indexOf(`*`)!==-1)return`*`;for(var c=0;c<r.length;c++){var l=r[c].toLowerCase();s.indexOf(l)===-1&&(s.push(l),o=o?o+`, `+r[c]:r[c])}return o}function i(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}function a(e,t){if(!e||!e.getHeader||!e.setHeader)throw TypeError(`res argument is required`);var n=e.getHeader(`Vary`)||``;(n=r(Array.isArray(n)?n.join(`, `):String(n),t))&&e.setHeader(`Vary`,n)}})),Ln=a(((e,n)=>{var r=Mn(),i=Se(),a=an(),o=on(),s=t(`node:http`),c=Xe(),l=tt(),u=t(`node:path`),d=t(`node:path`).isAbsolute,f=ve(),p=Nn().sign,m=mn().normalizeType,h=mn().normalizeTypes,g=mn().setCharset,_=Pn(),v=Fn(),y=u.extname,b=u.resolve,x=In(),S=Object.create(s.ServerResponse.prototype);n.exports=S,S.status=function(e){if(!Number.isInteger(e))throw TypeError(`Invalid status code: ${JSON.stringify(e)}. Status code must be an integer.`);if(e<100||e>999)throw RangeError(`Invalid status code: ${JSON.stringify(e)}. Status code must be greater than 99 and less than 1000.`);return this.statusCode=e,this},S.links=function(e){var t=this.get(`Link`)||``;return t&&(t+=`, `),this.set(`Link`,t+Object.keys(e).map(function(t){return Array.isArray(e[t])?e[t].map(function(e){return`<${e}>; rel="${t}"`}).join(`, `):`<${e[t]}>; rel="${t}"`}).join(`, `))},S.send=function(e){var t=e,n,r=this.req,i,a=this.app;switch(typeof t){case`string`:this.get(`Content-Type`)||this.type(`html`);break;case`boolean`:case`number`:case`object`:if(t===null)t=``;else if(ArrayBuffer.isView(t))this.get(`Content-Type`)||this.type(`bin`);else return this.json(t);break}typeof t==`string`&&(n=`utf8`,i=this.get(`Content-Type`),typeof i==`string`&&this.set(`Content-Type`,g(i,`utf-8`)));var o=a.get(`etag fn`),s=!this.get(`ETag`)&&typeof o==`function`,c;t!==void 0&&(Buffer.isBuffer(t)?c=t.length:!s&&t.length<1e3?c=Buffer.byteLength(t,n):(t=Buffer.from(t,n),n=void 0,c=t.length),this.set(`Content-Length`,c));var l;return s&&c!==void 0&&(l=o(t,n))&&this.set(`ETag`,l),r.fresh&&this.status(304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader(`Content-Type`),this.removeHeader(`Content-Length`),this.removeHeader(`Transfer-Encoding`),t=``),this.statusCode===205&&(this.set(`Content-Length`,`0`),this.removeHeader(`Transfer-Encoding`),t=``),r.method===`HEAD`?this.end():this.end(t,n),this},S.json=function(e){var t=this.app,n=t.get(`json escape`),r=w(e,t.get(`json replacer`),t.get(`json spaces`),n);return this.get(`Content-Type`)||this.set(`Content-Type`,`application/json`),this.send(r)},S.jsonp=function(e){var t=this.app,n=t.get(`json escape`),r=w(e,t.get(`json replacer`),t.get(`json spaces`),n),i=this.req.query[t.get(`jsonp callback name`)];return this.get(`Content-Type`)||(this.set(`X-Content-Type-Options`,`nosniff`),this.set(`Content-Type`,`application/json`)),Array.isArray(i)&&(i=i[0]),typeof i==`string`&&i.length!==0&&(this.set(`X-Content-Type-Options`,`nosniff`),this.set(`Content-Type`,`text/javascript`),i=i.replace(/[^\[\]\w$.]/g,``),r===void 0?r=``:typeof r==`string`&&(r=r.replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)),r=`/**/ typeof `+i+` === 'function' && `+i+`(`+r+`);`),this.send(r)},S.sendStatus=function(e){var t=f.message[e]||String(e);return this.status(e),this.type(`txt`),this.send(t)},S.sendFile=function(e,t,n){var r=n,i=this.req,a=this,o=i.next,s=t||{};if(!e)throw TypeError(`path argument is required to res.sendFile`);if(typeof e!=`string`)throw TypeError(`path must be a string to res.sendFile`);if(typeof t==`function`&&(r=t,s={}),!s.root&&!d(e))throw TypeError(`path must be absolute or specify root to res.sendFile`);var c=encodeURI(e);s.etag=this.app.enabled(`etag`),C(a,v(i,c,s),s,function(e){if(r)return r(e);if(e&&e.code===`EISDIR`)return o();e&&e.code!==`ECONNABORTED`&&e.syscall!==`write`&&o(e)})},S.download=function(e,t,n,i){var a=i,o=t,s=n||null;typeof t==`function`?(a=t,o=null,s=null):typeof n==`function`&&(a=n,s=null),typeof t==`object`&&(typeof n==`function`||n===void 0)&&(o=null,s=t);var c={"Content-Disposition":r(o||e)};if(s&&s.headers)for(var l=Object.keys(s.headers),u=0;u<l.length;u++){var d=l[u];d.toLowerCase()!==`content-disposition`&&(c[d]=s.headers[d])}s=Object.create(s),s.headers=c;var f=s.root?e:b(e);return this.sendFile(f,s,a)},S.contentType=S.type=function(e){var t=e.indexOf(`/`)===-1?l.contentType(e)||`application/octet-stream`:e;return this.set(`Content-Type`,t)},S.format=function(e){var t=this.req,n=t.next,r=Object.keys(e).filter(function(e){return e!==`default`}),a=r.length>0?t.accepts(r):!1;return this.vary(`Accept`),a?(this.set(`Content-Type`,m(a).value),e[a](t,this,n)):e.default?e.default(t,this,n):n(i(406,{types:h(r).map(function(e){return e.value})})),this},S.attachment=function(e){return e&&this.type(y(e)),this.set(`Content-Disposition`,r(e)),this},S.append=function(e,t){var n=this.get(e),r=t;return n&&(r=Array.isArray(n)?n.concat(t):Array.isArray(t)?[n].concat(t):[n,t]),this.set(e,r)},S.set=S.header=function(e,t){if(arguments.length===2){var n=Array.isArray(t)?t.map(String):String(t);if(e.toLowerCase()===`content-type`){if(Array.isArray(n))throw TypeError(`Content-Type cannot be set to an Array`);n=l.contentType(n)}this.setHeader(e,n)}else for(var r in e)this.set(r,e[r]);return this},S.get=function(e){return this.getHeader(e)},S.clearCookie=function(e,t){let n={path:`/`,...t,expires:new Date(1)};return delete n.maxAge,this.cookie(e,``,n)},S.cookie=function(e,t,n){var r={...n},i=this.req.secret,a=r.signed;if(a&&!i)throw Error(`cookieParser("secret") required for signed cookies`);var o=typeof t==`object`?`j:`+JSON.stringify(t):String(t);if(a&&(o=`s:`+p(o,i)),r.maxAge!=null){var s=r.maxAge-0;isNaN(s)||(r.expires=new Date(Date.now()+s),r.maxAge=Math.floor(s/1e3))}return r.path??=`/`,this.append(`Set-Cookie`,_.serialize(e,String(o),r)),this},S.location=function(e){return this.set(`Location`,a(e))},S.redirect=function(e){var t=e,n,r=302;arguments.length===2&&(r=arguments[0],t=arguments[1]),t=this.location(t).get(`Location`),this.format({text:function(){n=f.message[r]+`. Redirecting to `+t},html:function(){var e=o(t);n=`<p>`+f.message[r]+`. Redirecting to `+e+`</p>`},default:function(){n=``}}),this.status(r),this.set(`Content-Length`,Buffer.byteLength(n)),this.req.method===`HEAD`?this.end():this.end(n)},S.vary=function(e){return x(this,e),this},S.render=function(e,t,n){var r=this.req.app,i=n,a=t||{},o=this.req,s=this;typeof t==`function`&&(i=t,a={}),a._locals=s.locals,i||=function(e,t){if(e)return o.next(e);s.send(t)},r.render(e,a,i)};function C(e,t,n,r){var i=!1,a;function o(){if(!i){i=!0;var e=Error(`Request aborted`);e.code=`ECONNABORTED`,r(e)}}function s(){if(!i){i=!0;var e=Error(`EISDIR, read`);e.code=`EISDIR`,r(e)}}function l(e){i||(i=!0,r(e))}function u(){i||(i=!0,r())}function d(){a=!1}function f(e){if(e&&e.code===`ECONNRESET`)return o();if(e)return l(e);i||setImmediate(function(){if(a!==!1&&!i){o();return}i||(i=!0,r())})}function p(){a=!0}t.on(`directory`,s),t.on(`end`,u),t.on(`error`,l),t.on(`file`,d),t.on(`stream`,p),c(e,f),n.headers&&t.on(`headers`,function(e){for(var t=n.headers,r=Object.keys(t),i=0;i<r.length;i++){var a=r[i];e.setHeader(a,t[a])}}),t.pipe(e)}function w(e,t,n,r){var i=t||n?JSON.stringify(e,t,n):JSON.stringify(e);return r&&typeof i==`string`&&(i=i.replace(/[<>&]/g,function(e){switch(e.charCodeAt(0)){case 60:return`\\u003c`;case 62:return`\\u003e`;case 38:return`\\u0026`;default:return e}})),i}})),Rn=a(((e,n)=>{var r=an(),i=on(),a=sn(),o=t(`path`).resolve,s=Fn(),c=t(`url`);n.exports=l;function l(e,t){if(!e)throw TypeError(`root path required`);if(typeof e!=`string`)throw TypeError(`root path must be a string`);var n=Object.create(t||null),r=n.fallthrough!==!1,i=n.redirect!==!1,c=n.setHeaders;if(c&&typeof c!=`function`)throw TypeError(`option setHeaders must be function`);n.maxage=n.maxage||n.maxAge||0,n.root=o(e);var l=i?p():f();return function(e,t,i){if(e.method!==`GET`&&e.method!==`HEAD`){if(r)return i();t.statusCode=405,t.setHeader(`Allow`,`GET, HEAD`),t.setHeader(`Content-Length`,`0`),t.end();return}var o=!r,u=a.original(e),d=a(e).pathname;d===`/`&&u.pathname.substr(-1)!==`/`&&(d=``);var f=s(e,d,n);f.on(`directory`,l),c&&f.on(`headers`,c),r&&f.on(`file`,function(){o=!0}),f.on(`error`,function(e){if(o||!(e.statusCode<500)){i(e);return}i()}),f.pipe(t)}}function u(e){for(var t=0;t<e.length&&e.charCodeAt(t)===47;t++);return t>1?`/`+e.substr(t):e}function d(e,t){return`<!DOCTYPE html>
56
+ `}function N(e,t){return t?t instanceof Error?r(e,t,{expose:!1}):r(e,t):r(e)}function ee(e){try{return decodeURIComponent(e)}catch{return-1}}function P(e,t){return(typeof e.listenerCount==`function`?e.listenerCount(t):e.listeners(t).length)>0}function F(e,t){for(var n=[].concat(e||[]),r=0;r<n.length;r++)if(typeof n[r]!=`string`)throw TypeError(t+` must be array of strings or false`);return n}function I(e){var t=e&&Date.parse(e);return typeof t==`number`?t:NaN}function L(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:r!==t&&n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return r!==t&&n.push(e.substring(r,t)),n}function R(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];e.setHeader(i,t[i])}}})),In=a(((e,t)=>{t.exports=a,t.exports.append=r;var n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,t){if(typeof e!=`string`)throw TypeError(`header argument is required`);if(!t)throw TypeError(`field argument is required`);for(var r=Array.isArray(t)?t:i(String(t)),a=0;a<r.length;a++)if(!n.test(r[a]))throw TypeError(`field argument contains an invalid header name`);if(e===`*`)return e;var o=e,s=i(e.toLowerCase());if(r.indexOf(`*`)!==-1||s.indexOf(`*`)!==-1)return`*`;for(var c=0;c<r.length;c++){var l=r[c].toLowerCase();s.indexOf(l)===-1&&(s.push(l),o=o?o+`, `+r[c]:r[c])}return o}function i(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}function a(e,t){if(!e||!e.getHeader||!e.setHeader)throw TypeError(`res argument is required`);var n=e.getHeader(`Vary`)||``;(n=r(Array.isArray(n)?n.join(`, `):String(n),t))&&e.setHeader(`Vary`,n)}})),Ln=a(((e,n)=>{var r=Mn(),i=Se(),a=an(),o=on(),s=t(`node:http`),c=Xe(),l=tt(),u=t(`node:path`),d=t(`node:path`).isAbsolute,f=ve(),p=Nn().sign,m=mn().normalizeType,h=mn().normalizeTypes,g=mn().setCharset,_=Pn(),v=Fn(),y=u.extname,b=u.resolve,x=In(),S=Object.create(s.ServerResponse.prototype);n.exports=S,S.status=function(e){if(!Number.isInteger(e))throw TypeError(`Invalid status code: ${JSON.stringify(e)}. Status code must be an integer.`);if(e<100||e>999)throw RangeError(`Invalid status code: ${JSON.stringify(e)}. Status code must be greater than 99 and less than 1000.`);return this.statusCode=e,this},S.links=function(e){var t=this.get(`Link`)||``;return t&&(t+=`, `),this.set(`Link`,t+Object.keys(e).map(function(t){return Array.isArray(e[t])?e[t].map(function(e){return`<${e}>; rel="${t}"`}).join(`, `):`<${e[t]}>; rel="${t}"`}).join(`, `))},S.send=function(e){var t=e,n,r=this.req,i,a=this.app;switch(typeof t){case`string`:this.get(`Content-Type`)||this.type(`html`);break;case`boolean`:case`number`:case`object`:if(t===null)t=``;else if(ArrayBuffer.isView(t))this.get(`Content-Type`)||this.type(`bin`);else return this.json(t);break}typeof t==`string`&&(n=`utf8`,i=this.get(`Content-Type`),typeof i==`string`&&this.set(`Content-Type`,g(i,`utf-8`)));var o=a.get(`etag fn`),s=!this.get(`ETag`)&&typeof o==`function`,c;t!==void 0&&(Buffer.isBuffer(t)?c=t.length:!s&&t.length<1e3?c=Buffer.byteLength(t,n):(t=Buffer.from(t,n),n=void 0,c=t.length),this.set(`Content-Length`,c));var l;return s&&c!==void 0&&(l=o(t,n))&&this.set(`ETag`,l),r.fresh&&this.status(304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader(`Content-Type`),this.removeHeader(`Content-Length`),this.removeHeader(`Transfer-Encoding`),t=``),this.statusCode===205&&(this.set(`Content-Length`,`0`),this.removeHeader(`Transfer-Encoding`),t=``),r.method===`HEAD`?this.end():this.end(t,n),this},S.json=function(e){var t=this.app,n=t.get(`json escape`),r=w(e,t.get(`json replacer`),t.get(`json spaces`),n);return this.get(`Content-Type`)||this.set(`Content-Type`,`application/json`),this.send(r)},S.jsonp=function(e){var t=this.app,n=t.get(`json escape`),r=w(e,t.get(`json replacer`),t.get(`json spaces`),n),i=this.req.query[t.get(`jsonp callback name`)];return this.get(`Content-Type`)||(this.set(`X-Content-Type-Options`,`nosniff`),this.set(`Content-Type`,`application/json`)),Array.isArray(i)&&(i=i[0]),typeof i==`string`&&i.length!==0&&(this.set(`X-Content-Type-Options`,`nosniff`),this.set(`Content-Type`,`text/javascript`),i=i.replace(/[^\[\]\w$.]/g,``),r===void 0?r=``:typeof r==`string`&&(r=r.replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)),r=`/**/ typeof `+i+` === 'function' && `+i+`(`+r+`);`),this.send(r)},S.sendStatus=function(e){var t=f.message[e]||String(e);return this.status(e),this.type(`txt`),this.send(t)},S.sendFile=function(e,t,n){var r=n,i=this.req,a=this,o=i.next,s=t||{};if(!e)throw TypeError(`path argument is required to res.sendFile`);if(typeof e!=`string`)throw TypeError(`path must be a string to res.sendFile`);if(typeof t==`function`&&(r=t,s={}),!s.root&&!d(e))throw TypeError(`path must be absolute or specify root to res.sendFile`);var c=encodeURI(e);s.etag=this.app.enabled(`etag`),C(a,v(i,c,s),s,function(e){if(r)return r(e);if(e&&e.code===`EISDIR`)return o();e&&e.code!==`ECONNABORTED`&&e.syscall!==`write`&&o(e)})},S.download=function(e,t,n,i){var a=i,o=t,s=n||null;typeof t==`function`?(a=t,o=null,s=null):typeof n==`function`&&(a=n,s=null),typeof t==`object`&&(typeof n==`function`||n===void 0)&&(o=null,s=t);var c={"Content-Disposition":r(o||e)};if(s&&s.headers)for(var l=Object.keys(s.headers),u=0;u<l.length;u++){var d=l[u];d.toLowerCase()!==`content-disposition`&&(c[d]=s.headers[d])}s=Object.create(s),s.headers=c;var f=s.root?e:b(e);return this.sendFile(f,s,a)},S.contentType=S.type=function(e){var t=e.indexOf(`/`)===-1?l.contentType(e)||`application/octet-stream`:e;return this.set(`Content-Type`,t)},S.format=function(e){var t=this.req,n=t.next,r=Object.keys(e).filter(function(e){return e!==`default`}),a=r.length>0?t.accepts(r):!1;return this.vary(`Accept`),a?(this.set(`Content-Type`,m(a).value),e[a](t,this,n)):e.default?e.default(t,this,n):n(i(406,{types:h(r).map(function(e){return e.value})})),this},S.attachment=function(e){return e&&this.type(y(e)),this.set(`Content-Disposition`,r(e)),this},S.append=function(e,t){var n=this.get(e),r=t;return n&&(r=Array.isArray(n)?n.concat(t):Array.isArray(t)?[n].concat(t):[n,t]),this.set(e,r)},S.set=S.header=function(e,t){if(arguments.length===2){var n=Array.isArray(t)?t.map(String):String(t);if(e.toLowerCase()===`content-type`){if(Array.isArray(n))throw TypeError(`Content-Type cannot be set to an Array`);n=l.contentType(n)}this.setHeader(e,n)}else for(var r in e)this.set(r,e[r]);return this},S.get=function(e){return this.getHeader(e)},S.clearCookie=function(e,t){let n={path:`/`,...t,expires:new Date(1)};return delete n.maxAge,this.cookie(e,``,n)},S.cookie=function(e,t,n){var r={...n},i=this.req.secret,a=r.signed;if(a&&!i)throw Error(`cookieParser("secret") required for signed cookies`);var o=typeof t==`object`?`j:`+JSON.stringify(t):String(t);if(a&&(o=`s:`+p(o,i)),r.maxAge!=null){var s=r.maxAge-0;isNaN(s)||(r.expires=new Date(Date.now()+s),r.maxAge=Math.floor(s/1e3))}return r.path??=`/`,this.append(`Set-Cookie`,_.serialize(e,String(o),r)),this},S.location=function(e){return this.set(`Location`,a(e))},S.redirect=function(e){var t=e,n,r=302;arguments.length===2&&(r=arguments[0],t=arguments[1]),t=this.location(t).get(`Location`),this.format({text:function(){n=f.message[r]+`. Redirecting to `+t},html:function(){var e=o(t);n=`<p>`+f.message[r]+`. Redirecting to `+e+`</p>`},default:function(){n=``}}),this.status(r),this.set(`Content-Length`,Buffer.byteLength(n)),this.req.method===`HEAD`?this.end():this.end(n)},S.vary=function(e){return x(this,e),this},S.render=function(e,t,n){var r=this.req.app,i=n,a=t||{},o=this.req,s=this;typeof t==`function`&&(i=t,a={}),a._locals=s.locals,i||=function(e,t){if(e)return o.next(e);s.send(t)},r.render(e,a,i)};function C(e,t,n,r){var i=!1,a;function o(){if(!i){i=!0;var e=Error(`Request aborted`);e.code=`ECONNABORTED`,r(e)}}function s(){if(!i){i=!0;var e=Error(`EISDIR, read`);e.code=`EISDIR`,r(e)}}function l(e){i||(i=!0,r(e))}function u(){i||(i=!0,r())}function d(){a=!1}function f(e){if(e&&e.code===`ECONNRESET`)return o();if(e)return l(e);i||setImmediate(function(){if(a!==!1&&!i){o();return}i||(i=!0,r())})}function p(){a=!0}t.on(`directory`,s),t.on(`end`,u),t.on(`error`,l),t.on(`file`,d),t.on(`stream`,p),c(e,f),n.headers&&t.on(`headers`,function(e){for(var t=n.headers,r=Object.keys(t),i=0;i<r.length;i++){var a=r[i];e.setHeader(a,t[a])}}),t.pipe(e)}function w(e,t,n,r){var i=t||n?JSON.stringify(e,t,n):JSON.stringify(e);return r&&typeof i==`string`&&(i=i.replace(/[<>&]/g,function(e){switch(e.charCodeAt(0)){case 60:return`\\u003c`;case 62:return`\\u003e`;case 38:return`\\u0026`;default:return e}})),i}})),Rn=a(((e,n)=>{var r=an(),i=on(),a=sn(),o=t(`path`).resolve,s=Fn(),c=t(`url`);n.exports=l;function l(e,t){if(!e)throw TypeError(`root path required`);if(typeof e!=`string`)throw TypeError(`root path must be a string`);var n=Object.create(t||null),r=n.fallthrough!==!1,i=n.redirect!==!1,c=n.setHeaders;if(c&&typeof c!=`function`)throw TypeError(`option setHeaders must be function`);n.maxage=n.maxage||n.maxAge||0,n.root=o(e);var l=i?p():f();return function(e,t,i){if(e.method!==`GET`&&e.method!==`HEAD`){if(r)return i();t.statusCode=405,t.setHeader(`Allow`,`GET, HEAD`),t.setHeader(`Content-Length`,`0`),t.end();return}var o=!r,u=a.original(e),d=a(e).pathname;d===`/`&&u.pathname.substr(-1)!==`/`&&(d=``);var f=s(e,d,n);f.on(`directory`,l),c&&f.on(`headers`,c),r&&f.on(`file`,function(){o=!0}),f.on(`error`,function(e){if(o||!(e.statusCode<500)){i(e);return}i()}),f.pipe(t)}}function u(e){for(var t=0;t<e.length&&e.charCodeAt(t)===47;t++);return t>1?`/`+e.substr(t):e}function d(e,t){return`<!DOCTYPE html>
57
57
  <html lang="en">
58
58
  <head>
59
59
  <meta charset="utf-8">
@@ -63,7 +63,7 @@ t.exports=Qe()})),et=a(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,d
63
63
  <pre>`+t+`</pre>
64
64
  </body>
65
65
  </html>
66
- `}function f(){return function(){this.error(404)}}function p(){return function(e){if(this.hasTrailingSlash()){this.error(404);return}var t=a.original(this.req);t.path=null,t.pathname=u(t.pathname+`/`);var n=r(c.format(t)),o=d(`Redirecting`,`Redirecting to `+i(n));e.statusCode=301,e.setHeader(`Content-Type`,`text/html; charset=UTF-8`),e.setHeader(`Content-Length`,Buffer.byteLength(o)),e.setHeader(`Content-Security-Policy`,`default-src 'none'`),e.setHeader(`X-Content-Type-Options`,`nosniff`),e.setHeader(`Location`,n),e.end(o)}}})),zn=a(((e,n)=>{var r=nn(),i=t(`node:events`).EventEmitter,a=rn(),o=Sn(),s=xn(),c=jn(),l=Ln();e=n.exports=u;function u(){var e=function(t,n,r){e.handle(t,n,r)};return a(e,i.prototype,!1),a(e,o,!1),e.request=Object.create(c,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(l,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}e.application=o,e.request=c,e.response=l,e.Route=s.Route,e.Router=s,e.json=r.json,e.raw=r.raw,e.static=Rn(),e.text=r.text,e.urlencoded=r.urlencoded})),Bn=a(((e,t)=>{t.exports=zn()})),Vn=a((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.memo`),l=Symbol.for(`react.lazy`),u=Symbol.iterator;function d(e){return typeof e!=`object`||!e?null:(e=u&&e[u]||e[`@@iterator`],typeof e==`function`?e:null)}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function g(){}g.prototype=h.prototype;function _(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}var v=_.prototype=new g;v.constructor=_,p(v,h.prototype),v.isPureReactComponent=!0;var y=Array.isArray;function b(){}var x={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function C(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function w(e,t){return C(e.type,t,e.props)}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function O(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(b,b):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case l:return c=e._init,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+O(e,0):a,y(o)?(i=``,c!=null&&(i=c.replace(D,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(D,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var u=a===``?`.`:a+`:`;if(y(e))for(var f=0;f<e.length;f++)a=e[f],s=u+O(a,f),c+=A(a,r,i,s,o);else if(f=d(e),typeof f==`function`)for(e=f.call(e),f=0;!(a=e.next()).done;)a=a.value,s=u+O(a,f++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(k(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function j(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}var M=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};e.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=h,e.Fragment=r,e.Suspense=s,e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=p({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!S.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return C(e.type,i,r)},e.createContext=function(e){return e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:i,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)S.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return C(e,a,i)},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.memo=function(e,t){return{$$typeof:c,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),i=x.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(b,M)}catch(e){M(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),x.T=t}},e.use=function(e){return x.H.use(e)},e.useCallback=function(e,t){return x.H.useCallback(e,t)},e.useContext=function(e){return x.H.useContext(e)},e.useEffect=function(e,t){return x.H.useEffect(e,t)},e.useId=function(){return x.H.useId()},e.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return x.H.useMemo(e,t)},e.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},e.useRef=function(e){return x.H.useRef(e)},e.useState=function(e){return x.H.useState(e)}})),Hn=a(((e,t)=>{process.env.NODE_ENV!==`production`&&(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;ae[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),ae[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=G,this.updater=n||W}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=G,this.updater=n||W}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case I:return`Fragment`;case R:return`Profiler`;case L:return`StrictMode`;case V:return`Suspense`;case H:return`SuspenseList`;case U:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case F:return`Portal`;case z:return e.displayName||`Context`;case te:return(e._context.displayName||`Context`)+`.Consumer`;case B:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===I)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===re)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=K.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(ue.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){fe||(fe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function _(){var e=d(this.type);return me[e]||(me[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:P,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===re&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===P}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case P:case F:s=!0;break;case re:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return ce(a)?(n=``,c!=null&&(n=c.replace(ve,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(ve,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,ce(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(_e||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),_e=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
66
+ `}function f(){return function(){this.error(404)}}function p(){return function(e){if(this.hasTrailingSlash()){this.error(404);return}var t=a.original(this.req);t.path=null,t.pathname=u(t.pathname+`/`);var n=r(c.format(t)),o=d(`Redirecting`,`Redirecting to `+i(n));e.statusCode=301,e.setHeader(`Content-Type`,`text/html; charset=UTF-8`),e.setHeader(`Content-Length`,Buffer.byteLength(o)),e.setHeader(`Content-Security-Policy`,`default-src 'none'`),e.setHeader(`X-Content-Type-Options`,`nosniff`),e.setHeader(`Location`,n),e.end(o)}}})),zn=a(((e,n)=>{var r=nn(),i=t(`node:events`).EventEmitter,a=rn(),o=Sn(),s=xn(),c=jn(),l=Ln();e=n.exports=u;function u(){var e=function(t,n,r){e.handle(t,n,r)};return a(e,i.prototype,!1),a(e,o,!1),e.request=Object.create(c,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(l,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}e.application=o,e.request=c,e.response=l,e.Route=s.Route,e.Router=s,e.json=r.json,e.raw=r.raw,e.static=Rn(),e.text=r.text,e.urlencoded=r.urlencoded})),Bn=a(((e,t)=>{t.exports=zn()})),Vn=a((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.memo`),l=Symbol.for(`react.lazy`),u=Symbol.iterator;function d(e){return typeof e!=`object`||!e?null:(e=u&&e[u]||e[`@@iterator`],typeof e==`function`?e:null)}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function g(){}g.prototype=h.prototype;function _(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}var v=_.prototype=new g;v.constructor=_,p(v,h.prototype),v.isPureReactComponent=!0;var y=Array.isArray;function b(){}var x={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function C(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function w(e,t){return C(e.type,t,e.props)}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function O(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(b,b):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case l:return c=e._init,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+O(e,0):a,y(o)?(i=``,c!=null&&(i=c.replace(D,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(D,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var u=a===``?`.`:a+`:`;if(y(e))for(var f=0;f<e.length;f++)a=e[f],s=u+O(a,f),c+=A(a,r,i,s,o);else if(f=d(e),typeof f==`function`)for(e=f.call(e),f=0;!(a=e.next()).done;)a=a.value,s=u+O(a,f++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(k(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function j(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}var M=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};e.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=h,e.Fragment=r,e.Suspense=s,e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=p({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!S.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return C(e.type,i,r)},e.createContext=function(e){return e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:i,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)S.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return C(e,a,i)},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.memo=function(e,t){return{$$typeof:c,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),i=x.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(b,M)}catch(e){M(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),x.T=t}},e.use=function(e){return x.H.use(e)},e.useCallback=function(e,t){return x.H.useCallback(e,t)},e.useContext=function(e){return x.H.useContext(e)},e.useEffect=function(e,t){return x.H.useEffect(e,t)},e.useId=function(){return x.H.useId()},e.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return x.H.useMemo(e,t)},e.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},e.useRef=function(e){return x.H.useRef(e)},e.useState=function(e){return x.H.useState(e)}})),Hn=a(((e,t)=>{process.env.NODE_ENV!==`production`&&(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;ae[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),ae[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||oe}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||oe}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case I:return`Fragment`;case R:return`Profiler`;case L:return`StrictMode`;case V:return`Suspense`;case H:return`SuspenseList`;case U:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case F:return`Portal`;case z:return e.displayName||`Context`;case te:return(e._context.displayName||`Context`)+`.Consumer`;case B:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===I)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===re)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=K.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(ue.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){fe||(fe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function _(){var e=d(this.type);return me[e]||(me[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:P,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===re&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===P}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case P:case F:s=!0;break;case re:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return ce(a)?(n=``,c!=null&&(n=c.replace(ve,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(ve,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,ce(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(_e||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),_e=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
67
67
 
68
68
  Your code should look like:
69
69
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -75,49 +75,49 @@ Your code should look like:
75
75
  1. You might have mismatching versions of React and the renderer (such as React DOM)
76
76
  2. You might be breaking the Rules of Hooks
77
77
  3. You might have more than one copy of React in the same app
78
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){K.asyncTransitions--}function A(e){if(xe===null)try{var n=(`require`+Math.random()).slice(0,7);xe=(t&&t[n]).call(t,`timers`).setImmediate}catch{xe=function(e){!1===be&&(be=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return xe(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function M(e,t){t!==Se-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Se=t}function ee(e,t,n){var r=K.actQueue;if(r!==null)if(r.length!==0)try{N(r),A(function(){return ee(e,t,n)});return}catch(e){K.thrownErrors.push(e)}else K.actQueue=null;0<K.thrownErrors.length?(r=j(K.thrownErrors),K.thrownErrors.length=0,n(r)):t(e)}function N(e){if(!we){we=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{K.didUsePromise=!1;var r=n(!1);if(r!==null){if(K.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),K.thrownErrors.push(n)}finally{we=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=Symbol.for(`react.transitional.element`),F=Symbol.for(`react.portal`),I=Symbol.for(`react.fragment`),L=Symbol.for(`react.strict_mode`),R=Symbol.for(`react.profiler`),te=Symbol.for(`react.consumer`),z=Symbol.for(`react.context`),B=Symbol.for(`react.forward_ref`),V=Symbol.for(`react.suspense`),H=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),U=Symbol.for(`react.activity`),ie=Symbol.iterator,ae={},W={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},oe=Object.assign,G={};Object.freeze(G),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var se={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(Ee in se)se.hasOwnProperty(Ee)&&n(Ee,se[Ee]);o.prototype=a.prototype,se=s.prototype=new o,se.constructor=s,oe(se,a.prototype),se.isPureReactComponent=!0;var ce=Array.isArray,le=Symbol.for(`react.client.reference`),K={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ue=Object.prototype.hasOwnProperty,de=console.createTask?console.createTask:function(){return null};se={react_stack_bottom_frame:function(e){return e()}};var fe,pe,me={},he=se.react_stack_bottom_frame.bind(se,m)(),ge=de(f(m)),_e=!1,ve=/\/+/g,ye=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},be=!1,xe=null,Se=0,Ce=!1,we=!1,Te=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;se=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var Ee={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=U,e.Children=Ee,e.Component=a,e.Fragment=I,e.Profiler=R,e.PureComponent=s,e.StrictMode=L,e.Suspense=V,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,e.__COMPILER_RUNTIME=se,e.act=function(e){var t=K.actQueue,n=Se;Se++;var r=K.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){K.thrownErrors.push(e)}if(0<K.thrownErrors.length)throw M(t,n),e=j(K.thrownErrors),K.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Te(function(){i||Ce||(Ce=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(M(t,n),n===0){try{N(r),A(function(){return ee(i,e,a)})}catch(e){K.thrownErrors.push(e)}if(0<K.thrownErrors.length){var o=j(K.thrownErrors);K.thrownErrors.length=0,a(o)}}else e(i)},function(e){M(t,n),0<K.thrownErrors.length?(e=j(K.thrownErrors),K.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(M(t,n),n===0&&(N(r),r.length!==0&&Te(function(){i||Ce||(Ce=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),K.actQueue=null),0<K.thrownErrors.length)throw e=j(K.thrownErrors),K.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(K.actQueue=r,A(function(){return ee(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=K.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=oe({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(ue.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!ue.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:te,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in pe||!(`__self`in t)||`key`in t||(pe=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)ue.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>K.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):he,c?de(f(e)):ge)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ne?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:B,render:e},n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:re,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ne,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=K.T,n={};n._updatedFibers=new Set,K.T=n;try{var r=e(),i=K.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(K.asyncTransitions++,r.then(k,k),r.then(c,ye))}catch(e){ye(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),K.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===te&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.3`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),Un=a(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Vn():t.exports=Hn()}));function Wn(e={}){let{initialEntries:t=[`/`],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>u(e,typeof e==`string`?null:e.state,t===0?`default`:void 0));let a=c(n??i.length-1),o=`POP`,s=null;function c(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function u(e,t=null,n){let r=Xn(i?l().pathname:`/`,e,t,n);return qn(r.pathname.charAt(0)===`/`,`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),r}function d(e){return typeof e==`string`?e:Zn(e)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(e){return new URL(d(e),`http://localhost`)},encodeLocation(e){let t=typeof e==`string`?Qn(e):e;return{pathname:t.pathname||``,search:t.search||``,hash:t.hash||``}},push(e,t){o=`PUSH`;let n=u(e,t);a+=1,i.splice(a,i.length,n),r&&s&&s({action:o,location:n,delta:1})},replace(e,t){o=`REPLACE`;let n=u(e,t);i[a]=n,r&&s&&s({action:o,location:n,delta:0})},go(e){o=`POP`;let t=c(a+e),n=i[t];a=t,s&&s({action:o,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function Gn(e={}){function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return Xn(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:Zn(t)}return $n(t,n,null,e)}function Kn(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=Qn(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),Xn(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:Zn(t))}function r(e,t){qn(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return $n(t,n,r,e)}function q(e,t){if(e===!1||e==null)throw Error(t)}function qn(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Jn(){return Math.random().toString(36).substring(2,10)}function Yn(e,t){return{usr:e.state,key:e.key,idx:t}}function Xn(e,t,n=null,r){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Qn(t):t,state:n,key:t&&t.key||r||Jn()}}function Zn({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Qn(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function $n(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Xn(h.location,e,t);n&&n(r,e),l=u()+1;let d=Yn(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Xn(h.location,e,t);n&&n(r,e),l=u();let i=Yn(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return er(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Gc,d),c=e,()=>{i.removeEventListener(Gc,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function er(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),q(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:Zn(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function tr(e){return{defaultValue:e}}function nr(e){return Jc.has(e)}function rr(e){return Yc.has(e)}function ir(e){return e.index===!0}function ar(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(q(e.index!==!0||!e.children,`Cannot specify children on an index route`),q(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ir(e)){let n={...e,id:s};return r[s]=or(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=or(n,t(n)),e.children&&(n.children=ar(e.children,t,o,r,i)),n}})}function or(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function sr(e,t,n=`/`){return cr(e,t,n,!1)}function cr(e,t,n,r){let i=br((typeof t==`string`?Qn(t):t).pathname||`/`,n);if(i==null)return null;let a=ur(e);fr(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=yr(i);o=hr(a[e],t,r)}return o}function lr(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ur(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;q(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=al([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(q(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ur(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:pr(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of dr(e.path))a(e,t,!0,n)}),t}function dr(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=dr(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function fr(e){e.sort((e,t)=>e.score===t.score?mr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}function pr(e,t){let n=e.split(`/`),r=n.length;return n.some(nl)&&(r+=tl),t&&(r+=Qc),n.filter(e=>!nl(e)).reduce((e,t)=>e+(Xc.test(t)?Zc:t===``?$c:el),r)}function mr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function hr(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=_r({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=_r({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:al([a,u.pathname]),pathnameBase:ol(al([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=al([a,u.pathnameBase]))}return o}function gr(e,t={}){let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(qn(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,`/*`)}".`),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)(.*)/);if(a){let[,e,n,r]=a,o=t[e];return q(n===`?`||o!=null,`Missing ":${e}" param`),encodeURIComponent(i(o))+r}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function _r(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=vr(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function vr(e,t=!1,n=!0){qn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`)).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function yr(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return qn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function br(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function xr({basename:e,pathname:t}){return t===`/`?e:al([e,t])}function Sr(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Qn(e):e,a;if(n)if(il(n))a=n;else{if(n.includes(`//`)){let e=n;n=n.replace(/\/\/+/g,`/`),qn(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}a=n.startsWith(`/`)?Cr(n.substring(1),`/`):Cr(n,t)}else a=t;return{pathname:a,search:sl(r),hash:cl(i)}}function Cr(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function wr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tr(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Er(e){let t=Tr(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Dr(e,t,n,r=!1){let i;typeof e==`string`?i=Qn(e):(i={...e},q(!i.pathname||!i.pathname.includes(`?`),wr(`?`,`pathname`,`search`,i)),q(!i.pathname||!i.pathname.includes(`#`),wr(`#`,`pathname`,`hash`,i)),q(!i.search||!i.search.includes(`#`),wr(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Sr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}function Or(e,t){return new ll(e,typeof t==`number`?{status:t}:t)}function kr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ar(e){return e.map(e=>e.route.path).filter(Boolean).join(`/`).replace(/\/\/*/g,`/`)||`/`}function jr(e,t){let n=e;if(typeof n!=`string`||!rl.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ml)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=br(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{qn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}function Mr(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Fr(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Fr(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[hl]??i,a=Fr(n[e],t,(...e)=>Lr(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[hl]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[hl]??e,r=Fr(n.middleware,t,(...e)=>Lr(e[0]));return r?(r[hl]=t,r):e})),r}function Nr(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[hl]??e.navigate,r=Fr(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Zn(n):`.`,...Rr(e,r??{})}});r&&(r[hl]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[hl]??e.fetch,r=Fr(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Rr(e,i??{})}});r&&(r[hl]=t,e.fetch=r)}return e}function Pr(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=Fr(n.request,e,(...e)=>{let[t,n]=e;return{request:zr(t),context:n==null?n:Br(n)}})),r}function Fr(e,t,n){return e.length===0?null:async(...r)=>{let i=await Ir(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Ir(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=Ir(e,t,n,r-1),a=await o,q(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Lr(e){let{request:t,context:n,params:r,unstable_pattern:i}=e;return{request:zr(t),params:{...r},unstable_pattern:i,context:Br(n)}}function Rr(e,t){return{currentUrl:Zn(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function zr(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Br(e){if(Vr(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}function Vr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===gl}function Hr(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;q(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||El,a=i;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...i(e),...Mr(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=ar(e.routes,a,void 0,o),c,l=e.basename||`/`;l.startsWith(`/`)||(l=`/${l}`);let u=e.dataStrategy||si,d={...e.future},f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=sr(s,e.history.location,l),y=!1,b=null,x;if(v==null&&!e.patchRoutesOnNavigation){let t=Ai(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ki(s);x=!0,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&Ie(v,s,e.history.location.pathname).active&&(v=null),v)if(v.some(e=>e.route.lazy))x=!1;else if(!v.some(e=>Xr(e.route)))x=!0;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);x=v.slice(0,e+1).every(e=>!Zr(e.route,t,n))}else x=v.every(e=>!Zr(e.route,t,n))}else{x=!1,v=[];let t=Ie(null,s,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}let S,C={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,navigation:Cl,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},w=`POP`,T=null,E=!1,D,O=!1,k=new Map,A=null,j=!1,M=!1,ee=new Set,N=new Map,P=0,F=-1,I=new Map,L=new Set,R=new Map,te=new Map,z=new Set,B=new Map,V,H=null;function ne(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(V){V(),V=void 0;return}qn(B.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ae({currentLocation:C.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{V=e});e.history.go(r*-1),ke(i,{state:`blocked`,location:n,proceed(){ke(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(C.blockers);e.set(i,Tl),ie({blockers:e})}}),T?.resolve(),T=null;return}return G(t,n)}),n){ta(t,k);let e=()=>na(t,k);t.addEventListener(`pagehide`,e),A=()=>t.removeEventListener(`pagehide`,e)}return C.initialized||G(`POP`,C.location,{initialHydration:!0}),S}function re(){f&&f(),A&&A(),p.clear(),D&&D.abort(),C.fetchers.forEach((e,t)=>xe(t)),C.blockers.forEach((e,t)=>Oe(t))}function U(e){return p.add(e),()=>p.delete(e)}function ie(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),C={...C,...e};let n=[],r=[];C.fetchers.forEach((e,t)=>{e.state===`idle`&&(z.has(t)?n.push(t):r.push(t))}),z.forEach(e=>{!C.fetchers.has(e)&&!N.has(e)&&n.push(e)}),[...p].forEach(r=>r(C,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>xe(e)),r.forEach(e=>C.fetchers.delete(e))}function ae(t,n,{flushSync:r}={}){let i=C.actionData!=null&&C.navigation.formMethod!=null&&Ki(C.navigation.formMethod)&&C.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?C.actionData:null;let o=n.loaderData?Ei(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,l=C.blockers;l.size>0&&(l=new Map(l),l.forEach((e,t)=>l.set(t,Tl)));let u=j?!1:Fe(t,n.matches||C.matches),d=E===!0||C.navigation.formMethod!=null&&Ki(C.navigation.formMethod)&&t.state?._isRedirect!==!0;c&&=(s=c,void 0),j||w===`POP`||(w===`PUSH`?e.history.push(t,t.state):w===`REPLACE`&&e.history.replace(t,t.state));let f;if(w===`POP`){let e=k.get(C.location.pathname);e&&e.has(t.pathname)?f={currentLocation:C.location,nextLocation:t}:k.has(t.pathname)&&(f={currentLocation:t,nextLocation:C.location})}else if(O){let e=k.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),k.set(C.location.pathname,e)),f={currentLocation:C.location,nextLocation:t}}ie({...n,actionData:a,loaderData:o,historyAction:w,location:t,initialized:!0,navigation:Cl,revalidation:`idle`,restoreScrollPosition:u,preventScrollReset:d,blockers:l},{viewTransitionOpts:f,flushSync:r===!0}),w=`POP`,E=!1,O=!1,j=!1,M=!1,T?.resolve(),T=null,H?.resolve(),H=null}async function W(t,n){if(T?.resolve(),T=null,typeof t==`number`){T||=ra();let n=T.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Jr(!1,qr(C.location,C.matches,l,t,n?.fromRouteId,n?.relative),n),o=C.location,s=Xn(C.location,r,n&&n.state);s={...s,...e.history.encodeLocation(s)};let c=n&&n.replace!=null?n.replace:void 0,u=`PUSH`;c===!0?u=`REPLACE`:c===!1||i!=null&&Ki(i.formMethod)&&i.formAction===C.location.pathname+C.location.search&&(u=`REPLACE`);let d=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,f=(n&&n.flushSync)===!0,p=Ae({currentLocation:o,nextLocation:s,historyAction:u});if(p){ke(p,{state:`blocked`,location:s,proceed(){ke(p,{state:`proceeding`,proceed:void 0,reset:void 0,location:s}),W(t,n)},reset(){let e=new Map(C.blockers);e.set(p,Tl),ie({blockers:e})}});return}await G(u,s,{submission:i,pendingError:a,preventScrollReset:d,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:f,callSiteDefaultShouldRevalidate:n&&n.unstable_defaultShouldRevalidate})}function oe(){H||=ra(),ge(),ie({revalidation:`loading`});let e=H.promise;return C.navigation.state===`submitting`?e:C.navigation.state===`idle`?(G(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),e):(G(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:O===!0}),e)}async function G(t,n,r){D&&D.abort(),D=null,w=t,j=(r&&r.startUninterruptedRevalidation)===!0,Pe(C.location,C.matches),E=(r&&r.preventScrollReset)===!0,O=(r&&r.enableViewTransition)===!0;let i=c||s,a=r&&r.overrideNavigation,o=r?.initialHydration&&C.matches&&C.matches.length>0&&!y?C.matches:sr(i,n,l),u=(r&&r.flushSync)===!0;if(o&&C.initialized&&!M&&Ni(C.location,n)&&!(r&&r.submission&&Ki(r.submission.formMethod))){ae(n,{matches:o},{flushSync:u});return}let d=Ie(o,i,n.pathname);if(d.active&&d.matches&&(o=d.matches),!o){let{error:e,notFoundMatches:t,route:r}=je(n.pathname);ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u});return}D=new AbortController;let f=xi(e.history,n,D.signal,r&&r.submission),p=e.getContext?await e.getContext():new qc,m;if(r&&r.pendingError)m=[Oi(o).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Ki(r.submission.formMethod)){let t=await se(f,n,r.submission,o,p,d.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(zi(r)&&kr(r.error)&&r.error.status===404){D=null,ae(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}o=t.matches||o,m=t.pendingActionResult,a=Xi(n,r.submission),u=!1,d.active=!1,f=xi(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:_,errors:v}=await ce(f,n,o,p,d.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,u,m,r&&r.callSiteDefaultShouldRevalidate);h||(D=null,ae(n,{matches:g||o,...Di(m),loaderData:_,errors:v}))}async function se(t,n,i,c,u,d,f,p={}){if(ge(),ie({navigation:Zi(n,i)},{flushSync:p.flushSync===!0}),d){let e=await Le(c,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=ki(s);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Oi(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)c=e.matches;else{let{notFoundMatches:e,error:t,route:r}=je(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let m,h=Ji(c,n);if(!h.route.action&&!h.route.lazy)m={type:`error`,error:Ai(405,{method:t.method,pathname:n.pathname,routeId:h.route.id})};else{let e=await me(t,mi(a,o,t,c,h,f?[]:r,u),u,null);if(m=e[h.route.id],!m){for(let t of c)if(e[t.route.id]){m=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Bi(m)){let n;return n=p&&p.replace!=null?p.replace:bi(m.response.headers.get(`Location`),new URL(t.url),l,e.history)===C.location.pathname+C.location.search,await pe(t,m,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(zi(m)){let e=Oi(c,h.route.id);return(p&&p.replace)!==!0&&(w=`PUSH`),{matches:c,pendingActionResult:[e.route.id,m,h.route.id]}}return{matches:c,pendingActionResult:[h.route.id,m]}}async function ce(t,n,i,u,d,f,p,m,h,g,_,v,y){let b=f||Xi(n,p),x=p||m||Yi(b),S=!j&&!g;if(d){if(S){let e=le(v);ie({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Le(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=ki(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Oi(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=je(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let w=c||s,{dsMatches:T,revalidatingFetchers:E}=Yr(t,u,a,o,e.history,C,i,x,n,g?[]:r,g===!0,M,ee,z,R,L,w,l,e.patchRoutesOnNavigation!=null,v,y);if(F=++P,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=Te();return ae(n,{matches:i,loaderData:{},errors:v&&zi(v[1])?{[v[0]]:v[1].error}:null,...Di(v),...e?{fetchers:new Map(C.fetchers)}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=le(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=K(E)),ie(e,{flushSync:_})}E.forEach(e=>{Ce(e.key),e.controller&&N.set(e.key,e.controller)});let O=()=>E.forEach(e=>Ce(e.key));D&&D.signal.addEventListener(`abort`,O);let{loaderResults:k,fetcherResults:A}=await he(T,E,t,u);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener(`abort`,O),E.forEach(e=>N.delete(e.key));let I=ji(k);if(I)return await pe(t,I.result,!0,{replace:h}),{shortCircuited:!0};if(I=ji(A),I)return L.add(I.key),await pe(t,I.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:te,errors:B}=Ti(C,i,k,v,E,A);g&&C.errors&&(B={...C.errors,...B});let V=Te(),H=Ee(F),ne=V||H||E.length>0;return{matches:i,loaderData:te,errors:B,...ne?{fetchers:new Map(C.fetchers)}:{}}}function le(e){if(e&&!zi(e[1]))return{[e[0]]:e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function K(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Qi(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}async function ue(t,n,r,i){Ce(t);let a=(i&&i.flushSync)===!0,o=c||s,u=qr(C.location,C.matches,l,r,n,i?.relative),d=sr(o,u,l),f=Ie(d,o,u);if(f.active&&f.matches&&(d=f.matches),!d){ve(t,n,Ai(404,{pathname:u}),{flushSync:a});return}let{path:p,submission:m,error:h}=Jr(!0,u,i);if(h){ve(t,n,h,{flushSync:a});return}let g=e.getContext?await e.getContext():new qc,_=(i&&i.preventScrollReset)===!0;if(m&&Ki(m.formMethod)){await de(t,n,p,d,g,f.active,a,_,m,i&&i.unstable_defaultShouldRevalidate);return}R.set(t,{routeId:n,path:p}),await fe(t,n,p,d,g,f.active,a,_,m)}async function de(t,n,i,u,d,f,p,m,h,g){ge(),R.delete(t),_e(t,$i(h,C.fetchers.get(t)),{flushSync:p});let _=new AbortController,v=xi(e.history,i,_.signal,h);if(f){let e=await Le(u,new URL(v.url).pathname,v.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ve(t,n,e.error,{flushSync:p});return}else if(e.matches)u=e.matches;else{ve(t,n,Ai(404,{pathname:i}),{flushSync:p});return}}let y=Ji(u,i);if(!y.route.action&&!y.route.lazy){ve(t,n,Ai(405,{method:h.formMethod,pathname:i,routeId:n}),{flushSync:p});return}N.set(t,_);let b=P,x=mi(a,o,v,u,y,r,d),S=await me(v,x,d,t),T=S[y.route.id];if(!T){for(let e of x)if(S[e.route.id]){T=S[e.route.id];break}}if(v.signal.aborted){N.get(t)===_&&N.delete(t);return}if(z.has(t)){if(Bi(T)||zi(T)){_e(t,ea(void 0));return}}else{if(Bi(T))if(N.delete(t),F>b){_e(t,ea(void 0));return}else return L.add(t),_e(t,Qi(h)),pe(v,T,!1,{fetcherSubmission:h,preventScrollReset:m});if(zi(T)){ve(t,n,T.error);return}}let E=C.navigation.location||C.location,O=xi(e.history,E,_.signal),k=c||s,A=C.navigation.state===`idle`?C.matches:sr(k,C.navigation.location,l);q(A,`Didn't find any matches after fetcher action`);let j=++P;I.set(t,j);let te=Qi(h,T.data);C.fetchers.set(t,te);let{dsMatches:B,revalidatingFetchers:V}=Yr(O,d,a,o,e.history,C,A,h,E,r,!1,M,ee,z,R,L,k,l,e.patchRoutesOnNavigation!=null,[y.route.id,T],g);V.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),r=Qi(void 0,n?n.data:void 0);C.fetchers.set(t,r),Ce(t),e.controller&&N.set(t,e.controller)}),ie({fetchers:new Map(C.fetchers)});let H=()=>V.forEach(e=>Ce(e.key));_.signal.addEventListener(`abort`,H);let{loaderResults:ne,fetcherResults:re}=await he(B,V,O,d);if(_.signal.aborted)return;if(_.signal.removeEventListener(`abort`,H),I.delete(t),N.delete(t),V.forEach(e=>N.delete(e.key)),C.fetchers.has(t)){let e=ea(T.data);C.fetchers.set(t,e)}let U=ji(ne);if(U)return pe(O,U.result,!1,{preventScrollReset:m});if(U=ji(re),U)return L.add(U.key),pe(O,U.result,!1,{preventScrollReset:m});let{loaderData:W,errors:oe}=Ti(C,A,ne,void 0,V,re);Ee(j),C.navigation.state===`loading`&&j>F?(q(w,`Expected pending action`),D&&D.abort(),ae(C.navigation.location,{matches:A,loaderData:W,errors:oe,fetchers:new Map(C.fetchers)})):(ie({errors:oe,loaderData:Ei(C.loaderData,W,A,oe),fetchers:new Map(C.fetchers)}),M=!1)}async function fe(t,n,i,s,c,l,u,d,f){let p=C.fetchers.get(t);_e(t,Qi(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=xi(e.history,i,m.signal);if(l){let e=await Le(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ve(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{ve(t,n,Ai(404,{pathname:i}),{flushSync:u});return}}let g=Ji(s,i);N.set(t,m);let _=P,v=(await me(h,mi(a,o,h,s,g,r,c),c,t))[g.route.id];if(N.get(t)===m&&N.delete(t),!h.signal.aborted){if(z.has(t)){_e(t,ea(void 0));return}if(Bi(v))if(F>_){_e(t,ea(void 0));return}else{L.add(t),await pe(h,v,!1,{preventScrollReset:d});return}if(zi(v)){ve(t,n,v.error);return}_e(t,ea(v.data))}}async function pe(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:c,replace:u}={}){a||(T?.resolve(),T=null),i.response.headers.has(`X-Remix-Revalidate`)&&(M=!0);let d=i.response.headers.get(`Location`);q(d,`Expected a Location header on the redirect Response`),d=bi(d,new URL(r.url),l,e.history);let f=Xn(C.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(il(d)){let n=er(d,!0);e=n.origin!==t.location.origin||br(n.pathname,l)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}D=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=C.navigation;!o&&!s&&m&&h&&g&&(o=Yi(C.navigation));let _=o||s;Sl.has(i.response.status)&&_&&Ki(_.formMethod)?await G(p,f,{submission:{..._,formAction:d},preventScrollReset:c||E,enableViewTransition:a?O:void 0}):await G(p,f,{overrideNavigation:Xi(f,o),fetcherSubmission:s,preventScrollReset:c||E,enableViewTransition:a?O:void 0})}async function me(e,t,n,r){let i,a={};try{i=await hi(u,e,t,r,n,!1)}catch(e){return t.filter(e=>e.shouldLoad).forEach(t=>{a[t.route.id]={type:`error`,error:e}}),a}if(e.signal.aborted)return a;if(!Ki(e.method))for(let e of t){if(i[e.route.id]?.type===`error`)break;!i.hasOwnProperty(e.route.id)&&!C.loaderData.hasOwnProperty(e.route.id)&&(!C.errors||!C.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(i[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(i))if(Ri(r)){let i=r.result;a[n]={type:`redirect`,response:yi(i,e,n,t,l)}}else a[n]=await vi(r);return a}async function he(e,t,n,r){let i=me(n,e,r,null),a=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await me(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:Ai(404,{pathname:e.path})}})}));return{loaderResults:await i,fetcherResults:(await a).reduce((e,t)=>Object.assign(e,t),{})}}function ge(){M=!0,R.forEach((e,t)=>{N.has(t)&&ee.add(t),Ce(t)})}function _e(e,t,n={}){C.fetchers.set(e,t),ie({fetchers:new Map(C.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function ve(e,t,n,r={}){let i=Oi(C.matches,t);xe(e),ie({errors:{[i.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function ye(e){return te.set(e,(te.get(e)||0)+1),z.has(e)&&z.delete(e),C.fetchers.get(e)||wl}function be(e,t){Ce(e,t?.reason),_e(e,ea(null))}function xe(e){let t=C.fetchers.get(e);N.has(e)&&!(t&&t.state===`loading`&&I.has(e))&&Ce(e),R.delete(e),I.delete(e),L.delete(e),z.delete(e),ee.delete(e),C.fetchers.delete(e)}function Se(e){let t=(te.get(e)||0)-1;t<=0?(te.delete(e),z.add(e)):te.set(e,t),ie({fetchers:new Map(C.fetchers)})}function Ce(e,t){let n=N.get(e);n&&(n.abort(t),N.delete(e))}function we(e){for(let t of e){let e=ea(ye(t).data);C.fetchers.set(t,e)}}function Te(){let e=[],t=!1;for(let n of L){let r=C.fetchers.get(n);q(r,`Expected fetcher: ${n}`),r.state===`loading`&&(L.delete(n),e.push(n),t=!0)}return we(e),t}function Ee(e){let t=[];for(let[n,r]of I)if(r<e){let e=C.fetchers.get(n);q(e,`Expected fetcher: ${n}`),e.state===`loading`&&(Ce(n),I.delete(n),t.push(n))}return we(t),t.length>0}function De(e,t){let n=C.blockers.get(e)||Tl;return B.get(e)!==t&&B.set(e,t),n}function Oe(e){C.blockers.delete(e),B.delete(e)}function ke(e,t){let n=C.blockers.get(e)||Tl;q(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(C.blockers);r.set(e,t),ie({blockers:r})}function Ae({currentLocation:e,nextLocation:t,historyAction:n}){if(B.size===0)return;B.size>1&&qn(!1,`A router only supports one blocker at a time`);let r=Array.from(B.entries()),[i,a]=r[r.length-1],o=C.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function je(e){let t=Ai(404,{pathname:e}),{matches:n,route:r}=ki(c||s);return{notFoundMatches:n,route:r,error:t}}function Me(e,t,n){if(m=e,g=t,h=n||null,!_&&C.navigation===Cl){_=!0;let e=Fe(C.location,C.matches);e!=null&&ie({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Ne(e,t){return h&&h(e,t.map(e=>lr(e,C.loaderData)))||e.key}function Pe(e,t){if(m&&g){let n=Ne(e,t);m[n]=g()}}function Fe(e,t){if(m){let n=Ne(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Ie(t,n,r){if(e.patchRoutesOnNavigation)if(t){if(Object.keys(t[0].params).length>0)return{active:!0,matches:cr(n,r,l,!0)}}else return{active:!0,matches:cr(n,r,l,!0)||[]};return{active:!1,matches:null}}async function Le(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let u=t;for(;;){let t=c==null,d=c||s,f=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:i,patch:(e,t)=>{r.aborted||ti(e,t,d,f,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:`aborted`};let p=sr(d,n,l),m=null;if(p&&(Object.keys(p[0].params).length===0||(m=cr(d,n,l,!0),!(m&&u.length<m.length&&Re(u,m.slice(0,u.length))))))return{type:`success`,matches:p};if(m||=cr(d,n,l,!0),!m||Re(u,m))return{type:`success`,matches:null};u=m}}function Re(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function ze(e){o={},c=ar(e,a,void 0,o)}function Be(e,t,n=!1){let r=c==null;ti(e,t,c||s,o,a,n),r&&(s=[...s],ie({}))}return S={get basename(){return l},get future(){return d},get state(){return C},get routes(){return s},get window(){return t},initialize:ne,subscribe:U,enableScrollRestoration:Me,navigate:W,fetch:ue,revalidate:oe,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ye,resetFetcher:be,deleteFetcher:Se,dispose:re,getBlocker:De,deleteBlocker:Oe,patchRoutes:Be,_internalFetchControllers:N,_internalSetRoutes:ze,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ie(e)}},e.unstable_instrumentations&&(S=Nr(S,e.unstable_instrumentations.map(e=>e.router).filter(Boolean))),S}function Ur(e,t){q(e.length>0,`You must provide a non-empty routes array to createStaticHandler`);let n={},r=(t?t.basename:null)||`/`,i=t?.mapRouteProperties||El,a=i;if(t?.unstable_instrumentations){let e=t.unstable_instrumentations;a=t=>({...i(t),...Mr(e.map(e=>e.route).filter(Boolean),t)})}let o=ar(e,a,void 0,n);async function s(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:s,skipRevalidation:c,dataStrategy:u,generateMiddlewareResponse:d}={}){let f=new URL(e.url),p=e.method,m=Xn(``,Zn(f),null,`default`),h=sr(o,m,r);if(t??=new qc,!Gi(p)&&p!==`HEAD`){let e=Ai(405,{method:p}),{matches:t,route:n}=ki(o),i={basename:r,location:m,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(i)):i}else if(!h){let e=Ai(404,{pathname:m.pathname}),{matches:t,route:n}=ki(o),i={basename:r,location:m,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(i)):i}if(d){q(t instanceof qc,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{await ai(h,n,a);let f,p=await ci({request:e,unstable_pattern:Ar(h),matches:h,params:h[0].params,context:t},async()=>await d(async(e,n={})=>{let a=await l(e,m,h,t,u||null,s===!0,null,`filterMatchesToLoad`in n?n.filterMatchesToLoad??null:i??null,c===!0);return Hi(a)?a:(f={location:m,basename:r,...a},f)}),async(e,t)=>{if(Wi(e))return e;if(Hi(e))try{e=new pl(e.status,e.statusText,await _i(e))}catch(t){e=t}if(Vi(e)&&(e=Fi(e)),f){t in f.loaderData&&(f.loaderData[t]=void 0);let n=Wr(o,f,e,s?t:Oi(h,t).route.id);return d(()=>Promise.resolve(n))}else{let n={matches:h,location:m,basename:r,loaderData:{},actionData:null,errors:{[s?t:Oi(h,h.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id]:e},statusCode:kr(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return d(()=>Promise.resolve(n))}});return q(Hi(p),`Expected a response in query()`),p}catch(e){if(Hi(e))return e;throw e}}let g=await l(e,m,h,t,u||null,s===!0,null,i||null,c===!0);return Hi(g)?g:{location:m,basename:r,...g}}async function c(e,{routeId:t,requestContext:i,dataStrategy:s,generateMiddlewareResponse:c}={}){let u=new URL(e.url),d=e.method,f=Xn(``,Zn(u),null,`default`),p=sr(o,f,r);if(i??=new qc,!Gi(d)&&d!==`HEAD`&&d!==`OPTIONS`)throw Ai(405,{method:d});if(!p)throw Ai(404,{pathname:f.pathname});let m=t?p.find(e=>e.route.id===t):Ji(p,f);if(t&&!m)throw Ai(403,{pathname:f.pathname,routeId:t});if(!m)throw Ai(404,{pathname:f.pathname});if(c)return q(i instanceof qc,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await ai(p,n,a),await ci({request:e,unstable_pattern:Ar(p),matches:p,params:p[0].params,context:i},async()=>await c(async e=>{let t=h(await l(e,f,p,i,s||null,!1,m,null,!1));return Hi(t)?t:typeof t==`string`?new Response(t):Response.json(t)}),e=>{if(Vi(e))return Promise.resolve(Pi(e));if(Hi(e))return Promise.resolve(e);throw e});return h(await l(e,f,p,i,s||null,!1,m,null,!1));function h(e){if(Hi(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(t!==void 0)throw t;if(e.actionData)return Object.values(e.actionData)[0];if(e.loaderData)return Object.values(e.loaderData)[0]}}async function l(e,t,n,r,i,a,o,s,c){q(e.signal,`query()/queryRoute() requests must contain an AbortController signal`);try{if(Ki(e.method))return await u(e,n,o||Ji(n,t),r,i,a,o!=null,s,c);let l=await d(e,n,r,i,a,o,s);return Hi(l)?l:{...l,actionData:null,actionHeaders:{}}}catch(e){if(Li(e)&&Hi(e.result)){if(e.type===`error`)throw e.result;return e.result}if(Wi(e))return e;throw e}}async function u(e,t,r,i,o,s,c,l,u){let p;if(!r.route.action&&!r.route.lazy){let t=Ai(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:r.route.id});if(c)throw t;p={type:`error`,error:t}}else p=(await f(e,mi(a,n,e,t,r,[],i),c,i,o))[r.route.id],e.signal.aborted&&Gr(e,c);if(Bi(p))throw new Response(null,{status:p.response.status,headers:{Location:p.response.headers.get(`Location`)}});if(c){if(zi(p))throw p.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:p.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(u)if(zi(p)){let e=s?r:Oi(t,r.route.id);return{statusCode:kr(p.error)?p.error.status:p.statusCode==null?500:p.statusCode,actionData:null,actionHeaders:{...p.headers?{[r.route.id]:p.headers}:{}},matches:t,loaderData:{},errors:{[e.route.id]:p.error},loaderHeaders:{}}}else return{actionData:{[r.route.id]:p.data},actionHeaders:p.headers?{[r.route.id]:p.headers}:{},matches:t,loaderData:{},errors:null,statusCode:p.statusCode||200,loaderHeaders:{}};let m=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});return zi(p)?{...await d(m,t,i,o,s,null,l,[(s?r:Oi(t,r.route.id)).route.id,p]),statusCode:kr(p.error)?p.error.status:p.statusCode==null?500:p.statusCode,actionData:null,actionHeaders:{...p.headers?{[r.route.id]:p.headers}:{}}}:{...await d(m,t,i,o,s,null,l),actionData:{[r.route.id]:p.data},...p.statusCode?{statusCode:p.statusCode}:{},actionHeaders:p.headers?{[r.route.id]:p.headers}:{}}}async function d(e,t,r,i,o,s,c,l){let u=s!=null;if(u&&!s?.route.loader&&!s?.route.lazy)throw Ai(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:s?.route.id});let d;if(s)d=mi(a,n,e,t,s,[],r);else{let i=l&&zi(l[1])?t.findIndex(e=>e.route.id===l[0])-1:void 0,o=Ar(t);d=t.map((t,s)=>i!=null&&s>i?pi(a,n,e,o,t,[],r,!1):pi(a,n,e,o,t,[],r,(t.route.loader||t.route.lazy)!=null&&(!c||c(t))))}if(!i&&!d.some(e=>e.shouldLoad))return{matches:t,loaderData:{},errors:l&&zi(l[1])?{[l[0]]:l[1].error}:null,statusCode:200,loaderHeaders:{}};let p=await f(e,d,u,r,i);return e.signal.aborted&&Gr(e,u),{...wi(t,p,l,!0,o),matches:t}}async function f(e,t,n,i,a){let o=await hi(a||oi,e,t,null,i,!0),s={};return await Promise.all(t.map(async i=>{if(!(i.route.id in o))return;let a=o[i.route.id];if(Ri(a)){let n=a.result;throw yi(n,e,i.route.id,t,r)}if(n){if(Hi(a.result))throw a;if(Vi(a.result))throw Pi(a.result)}s[i.route.id]=await vi(a)})),s}return{dataRoutes:o,query:s,queryRoute:c}}function Wr(e,t,n,r){let i=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:kr(n)?n.status:500,errors:{[i]:n}}}function Gr(e,t){if(e.signal.reason!==void 0)throw e.signal.reason;let n=t?`queryRoute`:`query`;throw Error(`${n}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function Kr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function qr(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Dr(r||`.`,Er(o),br(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=qi(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=xr({basename:n,pathname:c.pathname})),Zn(c)}function Jr(e,t,n){if(!n||!Kr(n))return{path:t};if(n.formMethod&&!Gi(n.formMethod))return{path:t,error:Ai(405,{method:n.formMethod})};let r=()=>({path:t,error:Ai(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Mi(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Ki(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
79
- `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Ki(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}q(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Si(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Si(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Ci(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Ci(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Ki(c.formMethod))return{path:t,submission:c};let l=Qn(t);return e&&l.search&&qi(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:Zn(l),submission:c}}function Yr(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b){let x=y?zi(y[1])?y[1].error:y[1].data:void 0,S=i.createURL(a.location),C=i.createURL(c),w;if(u&&a.errors){let e=Object.keys(a.errors)[0];w=o.findIndex(t=>t.route.id===e)}else if(y&&zi(y[1])){let e=y[0];w=o.findIndex(t=>t.route.id===e)-1}let T=y?y[1].statusCode:void 0,E=T&&T>=400,D={currentUrl:S,currentParams:a.matches[0]?.params||{},nextUrl:C,nextParams:o[0].params,...s,actionResult:x,actionStatus:T},O=Ar(o),k=o.map((i,o)=>{let{route:s}=i,c=null;if(w!=null&&o>w?c=!1:s.lazy?c=!0:Xr(s)?u?c=Zr(s,a.loaderData,a.errors):Qr(a.loaderData,a.matches[o],i)&&(c=!0):c=!1,c!==null)return pi(n,r,e,O,i,l,t,c);let f=!1;typeof b==`boolean`?f=b:E?f=!1:d||S.pathname+S.search===C.pathname+C.search?f=!0:S.search===C.search?$r(a.matches[o],i)&&(f=!0):f=!0;let p={...D,defaultShouldRevalidate:f};return pi(n,r,e,O,i,l,t,ei(i,p),p,b)}),A=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,y=sr(g,e.path,_);if(!y){if(v&&m)return;A.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let x=Ji(y,e.path),S=new AbortController,C=xi(i,e.path,S.signal),w=null;if(f.has(s))f.delete(s),w=mi(n,r,C,y,x,l,t);else if(m)d&&(w=mi(n,r,C,y,x,l,t));else{let e;e=typeof b==`boolean`?b:E?!1:d;let i={...D,defaultShouldRevalidate:e};ei(x,i)&&(w=mi(n,r,C,y,x,l,t,i))}w&&A.push({key:s,routeId:e.routeId,path:e.path,matches:w,match:x,request:C,controller:S})}),{dsMatches:k,revalidatingFetchers:A}}function Xr(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Zr(e,t,n){if(e.lazy)return!0;if(!Xr(e))return!1;let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader==`function`&&e.loader.hydrate===!0?!0:!r&&!i}function Qr(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function $r(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function ei(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function ti(e,t,n,r,i,a){let o;if(e){let t=r[e];q(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>ni(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=ar(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=ar([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function ni(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((e,n)=>t.children?.some(t=>ni(e,t))):!1}function ri(e,t,n,r,i){let a=n[e.id];if(q(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=jl.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{q(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=rr(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?qn(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?qn(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return jl.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Al({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}function ii(e){return e!==void 0}function ai(e,t,n){let r=e.map(({route:e})=>{if(!(typeof e.lazy!=`object`||!e.lazy.middleware))return Al({key:`middleware`,route:e,manifest:t,mapRouteProperties:n})}).filter(ii);return r.length>0?Promise.all(r):void 0}async function oi(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function si(e){return e.matches.some(e=>e.route.middleware)?li(e,()=>oi(e)):oi(e)}function ci(e,t,n){return ui(e,t,r,Hi,n);function r(e){return Vi(e)?Pi(e):e}}function li(e,t){return ui(e,t,e=>{if(Wi(e))throw e;return e},Ii,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=Oi(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function ui(e,t,n,r,i){let{matches:a,request:o,params:s,context:c,unstable_pattern:l}=e,u=a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await di({request:o,params:s,context:c,unstable_pattern:l},u,t,n,r,i)}async function di(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await di(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function fi(e,t,n,r,i){let a=Al({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=ri(r.route,Ki(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function pi(e,t,n,r,i,a,o,s,c=null,l){let u=!1,d=fi(e,t,n,i,a);return{...i,_lazyPromises:d,shouldLoad:s,shouldRevalidateArgs:c,shouldCallHandler(e){return u=!0,c?typeof l==`boolean`?ei(i,{...c,defaultShouldRevalidate:l}):typeof e==`boolean`?ei(i,{...c,defaultShouldRevalidate:e}):ei(i,c):s},resolve(e){let{lazy:t,loader:a,middleware:c}=i.route,l=u||s||e&&!Ki(n.method)&&(t||a),f=c&&c.length>0&&!a&&!t;return l&&(Ki(n.method)||!f)?gi({request:n,unstable_pattern:r,match:i,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:o}):Promise.resolve({type:`data`,result:void 0})}}}function mi(e,t,n,r,i,a,o,s=null){return r.map(c=>c.route.id===i.route.id?pi(e,t,n,Ar(r),c,a,o,!0,s):{...c,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:fi(e,t,n,c,a),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function hi(e,t,n,r,i,a){n.some(e=>e._lazyPromises?.middleware)&&await Promise.all(n.map(e=>e._lazyPromises?.middleware));let o={request:t,unstable_pattern:Ar(n),params:n[0].params,context:i,matches:n},s=a?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=o;return li(t,()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},c=await e({...o,fetcherKey:r,runClientMiddleware:s});try{await Promise.all(n.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return c}async function gi({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:a,scopedContext:o}){let s,c,l=Ki(e.method),u=l?`action`:`loader`,d=r=>{let i,s=new Promise((e,t)=>i=t);c=()=>i(),e.signal.addEventListener(`abort`,c);let l=i=>typeof r==`function`?r({request:e,unstable_pattern:t,params:n.params,context:o},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)),d=(async()=>{try{return{type:`data`,result:await(a?a(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([d,s])};try{let t=l?n.route.action:n.route.loader;if(r||i)if(t){let e,[n]=await Promise.all([d(t).catch(t=>{e=t}),r,i]);if(e!==void 0)throw e;s=n}else{await r;let t=l?n.route.action:n.route.loader;if(t)[s]=await Promise.all([d(t),i]);else if(u===`action`){let t=new URL(e.url),r=t.pathname+t.search;throw Ai(405,{method:e.method,pathname:r,routeId:n.route.id})}else return{type:`data`,result:void 0}}else if(t)s=await d(t);else{let t=new URL(e.url);throw Ai(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{c&&e.signal.removeEventListener(`abort`,c)}return s}async function _i(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function vi(e){let{result:t,type:n}=e;if(Hi(t)){let e;try{e=await _i(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new pl(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Vi(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Fi(t),statusCode:kr(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:kr(t)?t.status:void 0}:Vi(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function yi(e,t,n,r,i){let a=e.headers.get(`Location`);if(q(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!il(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=qr(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}function bi(e,t,n,r){let i=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];if(il(e)){let r=e,a=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(i.includes(a.protocol))throw Error(`Invalid redirect location`);let o=br(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(i.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function xi(e,t,n,r){let i=e.createURL(Mi(t)).toString(),a={signal:n};if(r&&Ki(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Si(r.formData):a.body=r.formData}return new Request(i,a)}function Si(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Ci(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function wi(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&zi(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(q(!Bi(f),`Cannot handle redirect results in processLoaderData`),zi(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Oi(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Ol),c||(c=!0,s=kr(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Ti(e,t,n,r,i,a){let{loaderData:o,errors:s}=wi(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let o=a[n];if(q(o,`Did not find corresponding fetcher result`),zi(o)){let t=Oi(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:o.error}),e.fetchers.delete(n)}else if(Bi(o))q(!1,`Unhandled fetcher revalidation redirect`);else{let t=ea(o.data);e.fetchers.set(n,t)}}),{loaderData:o,errors:s}}function Ei(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Ol).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Di(e){return e?zi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Oi(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function ki(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Ai(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new pl(e||500,o,Error(s),!0)}function ji(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Bi(r))return{key:n,result:r}}}function Mi(e){return Zn({...typeof e==`string`?Qn(e):e,hash:``})}function Ni(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function Pi(e){return Response.json(e.data,e.init??void 0)}function Fi(e){return new pl(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Ii(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Li(t))}function Li(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Ri(e){return Hi(e.result)&&xl.has(e.result.status)}function zi(e){return e.type===`error`}function Bi(e){return(e&&e.type)===`redirect`}function Vi(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Hi(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Ui(e){return xl.has(e)}function Wi(e){return Hi(e)&&Ui(e.status)&&e.headers.has(`Location`)}function Gi(e){return bl.has(e.toUpperCase())}function Ki(e){return vl.has(e.toUpperCase())}function qi(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Ji(e,t){let n=typeof t==`string`?Qn(t).search:t.search;if(e[e.length-1].route.index&&qi(n||``))return e[e.length-1];let r=Tr(e);return r[r.length-1]}function Yi(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Xi(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Zi(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Qi(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $i(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ea(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ta(e,t){try{let n=e.sessionStorage.getItem(Dl);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function na(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Dl,JSON.stringify(n))}catch(e){qn(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function ra(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}function ia(){return Nc.useContext(Pl)}function aa(e){if(e.startsWith(`${Wl}:${Gl}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function oa(e){if(e.startsWith(`${Wl}:${Kl}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new pl(t.status,t.statusText,t.data)}catch{}}function sa(e,{relative:t}={}){q(ca(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=J.useContext(zl),{hash:i,pathname:a,search:o}=va(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:al([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ca(){return J.useContext(Bl)!=null}function la(){return q(ca(),`useLocation() may be used only in the context of a <Router> component.`),J.useContext(Bl).location}function ua(){return J.useContext(Bl).navigationType}function da(e){q(ca(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=la();return J.useMemo(()=>_r(e,yr(t)),[t,e])}function fa(e){J.useContext(zl).static||J.useLayoutEffect(e)}function pa(){let{isDataRoute:e}=J.useContext(Vl);return e?Va():ma()}function ma(){q(ca(),`useNavigate() may be used only in the context of a <Router> component.`);let e=J.useContext(Ml),{basename:t,navigator:n}=J.useContext(zl),{matches:r}=J.useContext(Vl),{pathname:i}=la(),a=JSON.stringify(Er(r)),o=J.useRef(!1);return fa(()=>{o.current=!0}),J.useCallback((r,s={})=>{if(qn(o.current,ql),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Dr(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:al([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function ha(){return J.useContext(Jl)}function ga(e){let t=J.useContext(Vl).outlet;return J.useMemo(()=>t&&J.createElement(Jl.Provider,{value:e},t),[t,e])}function _a(){let{matches:e}=J.useContext(Vl),t=e[e.length-1];return t?t.params:{}}function va(e,{relative:t}={}){let{matches:n}=J.useContext(Vl),{pathname:r}=la(),i=JSON.stringify(Er(n));return J.useMemo(()=>Dr(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function ya(e,t){return ba(e,t)}function ba(e,t,n,r,i){q(ca(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:a}=J.useContext(zl),{matches:o}=J.useContext(Vl),s=o[o.length-1],c=s?s.params:{},l=s?s.pathname:`/`,u=s?s.pathnameBase:`/`,d=s&&s.route;if(Ul){let e=d&&d.path||``;Ha(l,!d||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
78
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){K.asyncTransitions--}function A(e){if(xe===null)try{var n=(`require`+Math.random()).slice(0,7);xe=(t&&t[n]).call(t,`timers`).setImmediate}catch{xe=function(e){!1===be&&(be=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return xe(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function M(e,t){t!==Se-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Se=t}function N(e,t,n){var r=K.actQueue;if(r!==null)if(r.length!==0)try{ee(r),A(function(){return N(e,t,n)});return}catch(e){K.thrownErrors.push(e)}else K.actQueue=null;0<K.thrownErrors.length?(r=j(K.thrownErrors),K.thrownErrors.length=0,n(r)):t(e)}function ee(e){if(!we){we=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{K.didUsePromise=!1;var r=n(!1);if(r!==null){if(K.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),K.thrownErrors.push(n)}finally{we=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=Symbol.for(`react.transitional.element`),F=Symbol.for(`react.portal`),I=Symbol.for(`react.fragment`),L=Symbol.for(`react.strict_mode`),R=Symbol.for(`react.profiler`),te=Symbol.for(`react.consumer`),z=Symbol.for(`react.context`),B=Symbol.for(`react.forward_ref`),V=Symbol.for(`react.suspense`),H=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),U=Symbol.for(`react.activity`),ie=Symbol.iterator,ae={},oe={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},se=Object.assign,W={};Object.freeze(W),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var G={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(Ee in G)G.hasOwnProperty(Ee)&&n(Ee,G[Ee]);o.prototype=a.prototype,G=s.prototype=new o,G.constructor=s,se(G,a.prototype),G.isPureReactComponent=!0;var ce=Array.isArray,le=Symbol.for(`react.client.reference`),K={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ue=Object.prototype.hasOwnProperty,de=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(e){return e()}};var fe,pe,me={},he=G.react_stack_bottom_frame.bind(G,m)(),ge=de(f(m)),_e=!1,ve=/\/+/g,ye=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},be=!1,xe=null,Se=0,Ce=!1,we=!1,Te=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;G=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var Ee={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=U,e.Children=Ee,e.Component=a,e.Fragment=I,e.Profiler=R,e.PureComponent=s,e.StrictMode=L,e.Suspense=V,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,e.__COMPILER_RUNTIME=G,e.act=function(e){var t=K.actQueue,n=Se;Se++;var r=K.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){K.thrownErrors.push(e)}if(0<K.thrownErrors.length)throw M(t,n),e=j(K.thrownErrors),K.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Te(function(){i||Ce||(Ce=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(M(t,n),n===0){try{ee(r),A(function(){return N(i,e,a)})}catch(e){K.thrownErrors.push(e)}if(0<K.thrownErrors.length){var o=j(K.thrownErrors);K.thrownErrors.length=0,a(o)}}else e(i)},function(e){M(t,n),0<K.thrownErrors.length?(e=j(K.thrownErrors),K.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(M(t,n),n===0&&(ee(r),r.length!==0&&Te(function(){i||Ce||(Ce=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),K.actQueue=null),0<K.thrownErrors.length)throw e=j(K.thrownErrors),K.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(K.actQueue=r,A(function(){return N(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=K.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=se({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(ue.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!ue.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:te,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in pe||!(`__self`in t)||`key`in t||(pe=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)ue.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>K.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):he,c?de(f(e)):ge)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ne?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:B,render:e},n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:re,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ne,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=K.T,n={};n._updatedFibers=new Set,K.T=n;try{var r=e(),i=K.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(K.asyncTransitions++,r.then(k,k),r.then(c,ye))}catch(e){ye(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),K.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===te&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.3`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),Un=a(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Vn():t.exports=Hn()}));function Wn(e,t){return t+e.replace(/\\/g,`/`)}function Gn(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Kn(e={}){let{initialEntries:t=[`/`],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>u(e,typeof e==`string`?null:e.state,t===0?`default`:void 0,typeof e==`string`?void 0:e.mask));let a=c(n??i.length-1),o=`POP`,s=null;function c(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function u(e,t=null,n,r){let a=Qn(i?l().pathname:`/`,e,t,n,r);return Yn(a.pathname.charAt(0)===`/`,`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return typeof e==`string`?e:$n(e)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(e){return new URL(d(e),`http://localhost`)},encodeLocation(e){let t=typeof e==`string`?er(e):e;return{pathname:t.pathname||``,search:t.search||``,hash:t.hash||``}},push(e,t){o=`PUSH`;let n=Gn(e)?e:u(e,t);a+=1,i.splice(a,i.length,n),r&&s&&s({action:o,location:n,delta:1})},replace(e,t){o=`REPLACE`;let n=Gn(e)?e:u(e,t);i[a]=n,r&&s&&s({action:o,location:n,delta:0})},go(e){o=`POP`;let t=c(a+e),n=i[t];a=t,s&&s({action:o,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function qn(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Qn(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:$n(t)}return tr(t,n,null,e)}function Jn(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=er(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),Qn(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:$n(t))}function r(e,t){Yn(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return tr(t,n,r,e)}function q(e,t){if(e===!1||e==null)throw Error(t)}function Yn(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Xn(){return Math.random().toString(36).substring(2,10)}function Zn(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Qn(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?er(t):t,state:n,key:t&&t.key||r||Xn(),mask:i}}function $n({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function er(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function tr(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Gn(e)?e:Qn(h.location,e,t);n&&n(r,e),l=u()+1;let d=Zn(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Gn(e)?e:Qn(h.location,e,t);n&&n(r,e),l=u();let i=Zn(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return nr(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(rl,d),c=e,()=>{i.removeEventListener(rl,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function nr(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),q(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:$n(t);return i=i.replace(/ $/,`%20`),!n&&tl.test(i)&&(i=r+i),new URL(i,r)}function rr(e){return{defaultValue:e}}function ir(e){return ol.has(e)}function ar(e){return sl.has(e)}function or(e){return e.index===!0}function sr(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(q(e.index!==!0||!e.children,`Cannot specify children on an index route`),q(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),or(e)){let n={...e,id:s};return r[s]=cr(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=cr(n,t(n)),e.children&&(n.children=sr(e.children,t,o,r,i)),n}})}function cr(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function lr(e,t,n=`/`){return ur(e,t,n,!1)}function ur(e,t,n,r,i){let a=wr((typeof t==`string`?er(t):t).pathname||`/`,n);if(a==null)return null;let o=i??fr(e),s=null,c=Cr(a);for(let e=0;s==null&&e<o.length;++e)s=vr(o[e],c,r);return s}function dr(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function fr(e){let t=pr(e);return hr(t),t}function pr(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;q(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=_l([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(q(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),pr(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:gr(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Sr(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of mr(e.path))a(e,t,!0,n)}),t}function mr(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=mr(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function hr(e){e.sort((e,t)=>e.score===t.score?_r(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}function gr(e,t){let n=e.split(`/`),r=n.length;return n.some(ml)&&(r+=pl),t&&(r+=ul),n.filter(e=>!ml(e)).reduce((e,t)=>e+(cl.test(t)?ll:t===``?dl:fl),r)}function _r(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function vr(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?xr(u,l,s.matcher,s.compiledParams):br(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=br({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:_l([a,d.pathname]),pathnameBase:yl(_l([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=_l([a,d.pathnameBase]))}return o}function yr(e,t={}){let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(Yn(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,`/*`)}".`),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)(.*)/);if(a){let[,e,n,r]=a,o=t[e];return q(n===`?`||o!=null,`Missing ":${e}" param`),encodeURIComponent(i(o))+r}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function br(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Sr(e.path,e.caseSensitive,e.end);return xr(e,t,n,r)}function xr(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Sr(e,t=!1,n=!0){Yn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Cr(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Yn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wr(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Tr({basename:e,pathname:t}){return t===`/`?e:_l([e,t])}function Er(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?er(e):e,a;return n?(n=gl(n),a=n.startsWith(`/`)?Dr(n.substring(1),`/`):Dr(n,t)):a=t,{pathname:a,search:bl(r),hash:xl(i)}}function Dr(e,t){let n=vl(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Or(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kr(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ar(e){let t=kr(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function jr(e,t,n,r=!1){let i;typeof e==`string`?i=er(e):(i={...e},q(!i.pathname||!i.pathname.includes(`?`),Or(`?`,`pathname`,`search`,i)),q(!i.pathname||!i.pathname.includes(`#`),Or(`#`,`pathname`,`hash`,i)),q(!i.search||!i.search.includes(`#`),Or(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Er(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}function Mr(e,t){return new Sl(e,typeof t==`number`?{status:t}:t)}function Nr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Pr(e){return _l(e.map(e=>e.route.path).filter(Boolean))||`/`}function Fr(e,t){let n=e;if(typeof n!=`string`||!el.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ol)try{let e=new URL(window.location.href),r=tl.test(n)?new URL(Wn(n,e.protocol)):new URL(n),a=wr(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Yn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}function Ir(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=zr(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=zr(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[kl]??i,a=zr(n[e],t,(...e)=>Vr(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[kl]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[kl]??e,r=zr(n.middleware,t,(...e)=>Vr(e[0]));return r?(r[kl]=t,r):e})),r}function Lr(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[kl]??e.navigate,r=zr(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?$n(n):`.`,...Hr(e,r??{})}});r&&(r[kl]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[kl]??e.fetch,r=zr(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Hr(e,i??{})}});r&&(r[kl]=t,e.fetch=r)}return e}function Rr(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=zr(n.request,e,(...e)=>{let[t,n]=e;return{request:Ur(t),context:n==null?n:Wr(n)}})),r}function zr(e,t,n){return e.length===0?null:async(...r)=>{let i=await Br(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Br(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=Br(e,t,n,r-1),a=await o,q(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Vr(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Ur(t),params:{...r},pattern:i,context:Wr(n)}}function Hr(e,t){return{currentUrl:$n(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Ur(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Wr(e){if(Gr(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}function Gr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Al}function Kr(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;q(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||Bl,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Ir(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new ql(sr(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||fi,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=ur(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Li(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ii(s.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&Le(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),v)if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>ti(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=ni(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}else{x=!1,S=!x,v=[];let t=Le(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:Ll,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=null,D=!1,O,k=!1,A=new Map,j=null,M=!1,N=!1,ee=new Set,P=new Map,F=0,I=-1,L=new Map,R=new Set,te=new Map,z=new Map,B=new Set,V=new Map,H,ne=null;function re(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(H){H(),H=void 0;return}Yn(V.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=je({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{H=e});e.history.go(r*-1),Ae(i,{state:`blocked`,location:n,proceed(){Ae(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,zl),ae({blockers:e})}}),E?.resolve(),E=null;return}return G(t,n)}),n){ca(t,A);let e=()=>la(t,A);t.addEventListener(`pagehide`,e),j=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||G(`POP`,w.location,{initialHydration:!0}),C}function U(){d&&d(),j&&j(),f.clear(),O&&O.abort(),w.fetchers.forEach((e,t)=>Se(w.fetchers,t)),w.blockers.forEach((e,t)=>ke(t))}function ie(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(w,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function ae(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let n=[],r=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?n.push(t):r.push(t))}),B.forEach(e=>{!w.fetchers.has(e)&&!P.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(w,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Se(w.fetchers,e)),r.forEach(e=>w.fetchers.delete(e))}function oe(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&$i(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?Ni(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=w.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,zl)));let l=M?!1:Ie(t,n.matches||w.matches),u=D===!0||w.navigation.formMethod!=null&&$i(w.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),M||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`){let e=A.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:A.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(k){let e=A.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),A.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}ae({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:Ll,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),T=`POP`,D=!1,k=!1,M=!1,N=!1,E?.resolve(),E=null,ne?.resolve(),ne=null}async function se(t,n){if(E?.resolve(),E=null,typeof t==`number`){E||=ua();let n=E.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=$r(!1,Qr(w.location,w.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?er(n.mask):{...w.location.mask,...n.mask}});let s=w.location,l=Qn(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&$i(i.formMethod)&&i.formAction===w.location.pathname+w.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=je({currentLocation:s,nextLocation:l,historyAction:d});if(m){Ae(m,{state:`blocked`,location:l,proceed(){Ae(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),se(t,n)},reset(){let e=new Map(w.blockers);e.set(m,zl),ae({blockers:e})}});return}await G(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function W(){ne||=ua(),_e(),ae({revalidation:`loading`});let e=ne.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(G(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),e):(G(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),e)}async function G(t,n,r){O&&O.abort(),O=null,T=t,M=(r&&r.startUninterruptedRevalidation)===!0,Fe(w.location,w.matches),D=(r&&r.preventScrollReset)===!0,k=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:ur(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&w.initialized&&!N&&Bi(w.location,n)&&!(r&&r.submission&&$i(r.submission.formMethod))){oe(n,{matches:a},{flushSync:o});return}let l=Le(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=Me(n.pathname);oe(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;O=new AbortController;let d=Di(e.history,n,O.signal,r&&r.submission),f=e.getContext?await e.getContext():new al,p;if(r&&r.pendingError)p=[Fi(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&$i(r.submission.formMethod)){let i=await ce(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Ki(t)&&Nr(t.error)&&t.error.status===404){O=null,oe(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=ra(n,a,t,r.submission),o=!1,l.active=!1,d=Di(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await le(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(O=null,oe(n,{matches:h||a,...Pi(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function ce(t,n,i,l,u,d,f,p,m={}){if(_e(),ae({navigation:ia(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await Re(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Ii(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Fi(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Me(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=ta(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:Li(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await he(t,n,yi(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(qi(h)){let n;return n=m&&m.replace!=null?m.replace:Ei(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===w.location.pathname+w.location.search,await me(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Ki(h)){let e=Fi(l,g.route.id);return(m&&m.replace)!==!0&&(T=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function le(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||ra(n,i,l,p),x=p||m||na(b),S=!M&&!g;if(d){if(S){let e=K(v);ae({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Re(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Ii(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Fi(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Me(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:T,revalidatingFetchers:E}=ei(t,u,a,o,e.history,w,i,x,n,g?[]:r,g===!0,N,ee,B,te,R,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(I=++F,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(w.fetchers),t=Ee(e);return oe(n,{matches:i,loaderData:{},errors:v&&Ki(v[1])?{[v[0]]:v[1].error}:null,...Pi(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=K(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=ue(E)),ae(e,{flushSync:_})}E.forEach(e=>{we(e.key),e.controller&&P.set(e.key,e.controller)});let D=()=>E.forEach(e=>we(e.key));O&&O.signal.addEventListener(`abort`,D);let{loaderResults:k,fetcherResults:A}=await ge(T,E,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener(`abort`,D),E.forEach(e=>P.delete(e.key));let j=Ri(k);if(j)return await me(t,j.result,!0,{replace:h}),{shortCircuited:!0};if(j=Ri(A),j)return R.add(j.key),await me(t,j.result,!0,{replace:h}),{shortCircuited:!0};let L=new Map(w.fetchers),{loaderData:z,errors:V}=Mi(w,i,k,v,E,A,L);g&&w.errors&&(V={...w.errors,...V});let H=Ee(L),ne=De(I,L),re=H||ne||E.length>0;return{matches:i,loaderData:z,errors:V,...re?{workingFetchers:L}:{}}}function K(e){if(e&&!Ki(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function ue(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=aa(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function de(t,n,r,i){we(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=Qr(w.location,w.matches,c,r,n,i?.relative),u=ur(o,l,c,!1,s.branches),d=Le(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){ye(t,n,Li(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=$r(!0,l,i);if(m){ye(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new al,g=(i&&i.preventScrollReset)===!0;if(p&&$i(p.formMethod)){await fe(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}te.set(t,{routeId:n,path:f}),await pe(t,n,f,u,h,d.active,a,g,p)}async function fe(t,n,i,l,u,d,f,p,m,h){_e(),te.delete(t),ve(t,oa(m,w.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=Di(e.history,i,g.signal,m);if(d){let e=await Re(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ye(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{ye(t,n,Li(404,{pathname:i}),{flushSync:f});return}}let v=ta(l,i);if(!v.route.action&&!v.route.lazy){ye(t,n,Li(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}P.set(t,g);let y=F,b=yi(a,o,_,i,l,v,r,u),x=await he(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){P.get(t)===g&&P.delete(t);return}if(B.has(t)){if(qi(S)||Ki(S)){ve(t,sa(void 0));return}}else{if(qi(S))if(P.delete(t),I>y){ve(t,sa(void 0));return}else return R.add(t),ve(t,aa(m)),me(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(Ki(S)){ye(t,n,S.error);return}}let C=w.navigation.location||w.location,E=Di(e.history,C,g.signal),D=s.activeRoutes,k=w.navigation.state===`idle`?w.matches:ur(D,w.navigation.location,c,!1,s.branches);q(k,`Didn't find any matches after fetcher action`);let A=++F;L.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=ei(E,u,a,o,e.history,w,k,m,C,r,!1,N,ee,B,te,R,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),z=aa(m,S.data),V=new Map(w.fetchers);V.set(t,z),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=V.get(t),r=aa(void 0,n?n.data:void 0);V.set(t,r),we(t),e.controller&&P.set(t,e.controller)}),ae({fetchers:V});let H=()=>M.forEach(e=>we(e.key));g.signal.addEventListener(`abort`,H);let{loaderResults:ne,fetcherResults:re}=await ge(j,M,E,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,H),L.delete(t),P.delete(t),M.forEach(e=>P.delete(e.key));let U=w.fetchers.has(t),ie=e=>{if(!U)return e;let n=new Map(e.fetchers);return n.set(t,sa(S.data)),{...e,fetchers:n}},se=Ri(ne);if(se)return w=ie(w),me(E,se.result,!1,{preventScrollReset:p});if(se=Ri(re),se)return R.add(se.key),w=ie(w),me(E,se.result,!1,{preventScrollReset:p});let W=new Map(w.fetchers);U&&W.set(t,sa(S.data));let{loaderData:G,errors:ce}=Mi(w,k,ne,void 0,M,re,W);De(A,W),w.navigation.state===`loading`&&A>I?(q(T,`Expected pending action`),O&&O.abort(),oe(w.navigation.location,{matches:k,loaderData:G,errors:ce,fetchers:W})):(ae({errors:ce,loaderData:Ni(w.loaderData,G,k,ce),fetchers:W}),N=!1)}async function pe(t,n,i,s,c,l,u,d,f){let p=w.fetchers.get(t);ve(t,aa(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Di(e.history,i,m.signal);if(l){let e=await Re(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ye(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{ye(t,n,Li(404,{pathname:i}),{flushSync:u});return}}let g=ta(s,i);P.set(t,m);let _=F,v=await he(h,i,yi(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(P.get(t)===m&&P.delete(t),!h.signal.aborted){if(B.has(t)){ve(t,sa(void 0));return}if(qi(y))if(I>_){ve(t,sa(void 0));return}else{R.add(t),await me(h,y,!1,{preventScrollReset:d});return}if(Ki(y)){ye(t,n,y.error);return}ve(t,sa(y.data))}}async function me(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(E?.resolve(),E=null),i.response.headers.has(`X-Remix-Revalidate`)&&(N=!0);let d=i.response.headers.get(`Location`);q(d,`Expected a Location header on the redirect Response`),d=Ei(d,new URL(r.url),c,e.history);let f=Qn(w.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(hl(d)){let n=nr(t,d,!0);e=n.origin!==t.location.origin||wr(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}O=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=w.navigation;!o&&!s&&m&&h&&g&&(o=na(w.navigation));let _=o||s;Il.has(i.response.status)&&_&&$i(_.formMethod)?await G(p,f,{submission:{..._,formAction:d},preventScrollReset:l||D,enableViewTransition:a?k:void 0}):await G(p,f,{overrideNavigation:ra(f,[],p,o),fetcherSubmission:s,preventScrollReset:l||D,enableViewTransition:a?k:void 0})}async function he(e,t,n,r,i){let a,o={};try{a=await bi(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!$i(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!w.loaderData.hasOwnProperty(e.route.id)&&(!w.errors||!w.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Gi(r)){let i=r.result;o[t]={type:`redirect`,response:wi(i,e,t,n,c)}}else o[t]=await Ci(r);return o}async function ge(e,t,n,r,i){let a=he(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await he(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:Li(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function _e(){N=!0,te.forEach((e,t)=>{P.has(t)&&ee.add(t),we(t)})}function ve(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),ae({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function ye(e,t,n,r={}){let i=Fi(w.matches,t),a=new Map(w.fetchers);Se(a,e),ae({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function be(e){return z.set(e,(z.get(e)||0)+1),B.has(e)&&B.delete(e),w.fetchers.get(e)||Rl}function xe(e,t){we(e,t?.reason),ve(e,sa(null))}function Se(e,t){let n=w.fetchers.get(t);P.has(t)&&!(n&&n.state===`loading`&&L.has(t))&&we(t),te.delete(t),L.delete(t),R.delete(t),B.delete(t),ee.delete(t),e.delete(t)}function Ce(e){let t=(z.get(e)||0)-1;t<=0?(z.delete(e),B.add(e)):z.set(e,t),ae({fetchers:new Map(w.fetchers)})}function we(e,t){let n=P.get(e);n&&(n.abort(t),P.delete(e))}function Te(e,t){for(let n of e){let e=t.get(n);q(e,`Expected fetcher: ${n}`);let r=sa(e.data);t.set(n,r)}}function Ee(e){let t=[],n=!1;for(let r of R){let i=e.get(r);q(i,`Expected fetcher: ${r}`),i.state===`loading`&&(R.delete(r),t.push(r),n=!0)}return Te(t,e),n}function De(e,t){let n=[];for(let[r,i]of L)if(i<e){let e=t.get(r);q(e,`Expected fetcher: ${r}`),e.state===`loading`&&(we(r),L.delete(r),n.push(r))}return Te(n,t),n.length>0}function Oe(e,t){let n=w.blockers.get(e)||zl;return V.get(e)!==t&&V.set(e,t),n}function ke(e){w.blockers.delete(e),V.delete(e)}function Ae(e,t){let n=w.blockers.get(e)||zl;q(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),ae({blockers:r})}function je({currentLocation:e,nextLocation:t,historyAction:n}){if(V.size===0)return;V.size>1&&Yn(!1,`A router only supports one blocker at a time`);let r=Array.from(V.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Me(e){let t=Li(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=Ii(n);return{notFoundMatches:r,route:i,error:t}}function Ne(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===Ll){_=!0;let e=Ie(w.location,w.matches);e!=null&&ae({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Pe(e,t){return h&&h(e,t.map(e=>dr(e,w.loaderData)))||e.key}function Fe(e,t){if(m&&g){let n=Pe(e,t);m[n]=g()}}function Ie(e,t){if(m){let n=Pe(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Le(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(t){if(Object.keys(t[0].params).length>0)return{active:!0,matches:ur(n,r,c,!0,e)}}else return{active:!0,matches:ur(n,r,c,!0,e)||[]}}return{active:!1,matches:null}}async function Re(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||oi(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=ur(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=ur(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&ze(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=ur(s.activeRoutes,n,c,!0,u),!f||ze(l,f))return{type:`success`,matches:null};l=f}}function ze(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Be(e){o={},s.setHmrRoutes(sr(e,a,void 0,o))}function Ve(e,t,n=!1){oi(e,t,s,o,a,n),s.hasHMRRoutes||ae({})}return C={get basename(){return c},get future(){return u},get state(){return w},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:re,subscribe:ie,enableScrollRestoration:Ne,navigate:se,fetch:de,revalidate:W,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:be,resetFetcher:xe,deleteFetcher:Ce,dispose:U,getBlocker:Oe,deleteBlocker:ke,patchRoutes:Ve,_internalFetchControllers:P,_internalSetRoutes:Be,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ae(e)}},e.instrumentations&&(C=Lr(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function qr(e,t){q(e.length>0,`You must provide a non-empty routes array to createStaticHandler`);let n={},r=(t?t.basename:null)||`/`,i=t?.mapRouteProperties||Bl,a=i;if({...t?.future},t?.instrumentations){let e=t.instrumentations;a=t=>({...i(t),...Ir(e.map(e=>e.route).filter(Boolean),t)})}let o=sr(e,a,void 0,n),s=fr(o);async function c(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:c,skipRevalidation:l,dataStrategy:d,generateMiddlewareResponse:f,normalizePath:p}={}){let m=p||Zr,h=e.method,g=Qn(``,m(e),null,`default`),_=ur(o,g,r,!1,s);if(t??=new al,!Qi(h)&&h!==`HEAD`){let e=Li(405,{method:h}),{matches:t,route:n}=Ii(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}else if(!_){let e=Li(404,{pathname:g.pathname}),{matches:t,route:n}=Ii(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}if(f){q(t instanceof al,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{await ui(_,n,a);let s,p=await pi({request:e,url:Oi(e,g),pattern:Pr(_),matches:_,params:_[0].params,context:t},async()=>await f(async(e,n={})=>{let a=await u(e,g,_,t,d||null,c===!0,null,`filterMatchesToLoad`in n?n.filterMatchesToLoad??null:i??null,l===!0);return Yi(a)?a:(s={location:g,basename:r,...a},s)}),async(e,t)=>{if(Zi(e))return e;if(Yi(e))try{e=new Dl(e.status,e.statusText,await Si(e))}catch(t){e=t}if(Ji(e)&&(e=Hi(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let n=Jr(o,s,e,c?t:Fi(_,t).route.id);return f(()=>Promise.resolve(n))}else{let n={matches:_,location:g,basename:r,loaderData:{},actionData:null,errors:{[c?t:Fi(_,_.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id]:e},statusCode:Nr(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return f(()=>Promise.resolve(n))}});return q(Yi(p),`Expected a response in query()`),p}catch(e){if(Yi(e))return e;throw e}}let v=await u(e,g,_,t,d||null,c===!0,null,i||null,l===!0);return Yi(v)?v:{location:g,basename:r,...v}}async function l(e,{routeId:t,requestContext:i,dataStrategy:c,generateMiddlewareResponse:l,normalizePath:d}={}){let f=d||Zr,p=e.method,m=Qn(``,f(e),null,`default`),h=ur(o,m,r,!1,s);if(i??=new al,!Qi(p)&&p!==`HEAD`&&p!==`OPTIONS`)throw Li(405,{method:p});if(!h)throw Li(404,{pathname:m.pathname});let g=t?h.find(e=>e.route.id===t):ta(h,m);if(t&&!g)throw Li(403,{pathname:m.pathname,routeId:t});if(!g)throw Li(404,{pathname:m.pathname});if(l)return q(i instanceof al,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await ui(h,n,a),await pi({request:e,url:Oi(e,m),pattern:Pr(h),matches:h,params:h[0].params,context:i},async()=>await l(async e=>{let t=_(await u(e,m,h,i,c||null,!1,g,null,!1));return Yi(t)?t:typeof t==`string`?new Response(t):Response.json(t)}),e=>{if(Ji(e))return Promise.resolve(Vi(e));if(Yi(e))return Promise.resolve(e);throw e});return _(await u(e,m,h,i,c||null,!1,g,null,!1));function _(e){if(Yi(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(t!==void 0)throw t;if(e.actionData)return Object.values(e.actionData)[0];if(e.loaderData)return Object.values(e.loaderData)[0]}}async function u(e,t,n,r,i,a,o,s,c){q(e.signal,`query()/queryRoute() requests must contain an AbortController signal`);try{if($i(e.method))return await d(e,t,n,o||ta(n,t),r,i,a,o!=null,s,c);let l=await f(e,t,n,r,i,a,o,s);return Yi(l)?l:{...l,actionData:null,actionHeaders:{}}}catch(e){if(Wi(e)&&Yi(e.result)){if(e.type===`error`)throw e.result;return e.result}if(Zi(e))return e;throw e}}async function d(e,t,r,i,o,s,c,l,u,d){let m;if(!i.route.action&&!i.route.lazy){let t=Li(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(l)throw t;m={type:`error`,error:t}}else m=(await p(e,t,yi(a,n,e,t,r,i,[],o),l,o,s))[i.route.id],e.signal.aborted&&Yr(e,l);if(qi(m))throw new Response(null,{status:m.response.status,headers:{Location:m.response.headers.get(`Location`)}});if(l){if(Ki(m))throw m.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:m.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(d)if(Ki(m)){let e=c?i:Fi(r,i.route.id);return{statusCode:Nr(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}},matches:r,loaderData:{},errors:{[e.route.id]:m.error},loaderHeaders:{}}}else return{actionData:{[i.route.id]:m.data},actionHeaders:m.headers?{[i.route.id]:m.headers}:{},matches:r,loaderData:{},errors:null,statusCode:m.statusCode||200,loaderHeaders:{}};let h=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});return Ki(m)?{...await f(h,t,r,o,s,c,null,u,[(c?i:Fi(r,i.route.id)).route.id,m]),statusCode:Nr(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}}}:{...await f(h,t,r,o,s,c,null,u),actionData:{[i.route.id]:m.data},...m.statusCode?{statusCode:m.statusCode}:{},actionHeaders:m.headers?{[i.route.id]:m.headers}:{}}}async function f(e,t,r,i,o,s,c,l,u){let d=c!=null;if(d&&!c?.route.loader&&!c?.route.lazy)throw Li(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:c?.route.id});let f;if(c)f=yi(a,n,e,t,r,c,[],i);else{let o=u&&Ki(u[1])?r.findIndex(e=>e.route.id===u[0])-1:void 0,s=Pr(r);f=r.map((r,c)=>o!=null&&c>o?vi(a,n,e,t,s,r,[],i,!1):vi(a,n,e,t,s,r,[],i,(r.route.loader||r.route.lazy)!=null&&(!l||l(r))))}if(!o&&!f.some(e=>e.shouldLoad))return{matches:r,loaderData:{},errors:u&&Ki(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{}};let m=await p(e,t,f,d,i,o);return e.signal.aborted&&Yr(e,d),{...ji(r,m,u,!0,s),matches:r}}async function p(e,t,n,i,a,o){let s=await bi(o||di,e,t,n,null,a,!0),c={};return await Promise.all(n.map(async t=>{if(!(t.route.id in s))return;let a=s[t.route.id];if(Gi(a)){let i=a.result;throw wi(i,e,t.route.id,n,r)}if(i){if(Yi(a.result))throw a;if(Ji(a.result))throw Vi(a.result)}c[t.route.id]=await Ci(a)})),c}return{dataRoutes:o,_internalRouteBranches:s,query:c,queryRoute:l}}function Jr(e,t,n,r){let i=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:Nr(n)?n.status:500,errors:{[i]:n}}}function Yr(e,t){if(e.signal.reason!==void 0)throw e.signal.reason;let n=t?`queryRoute`:`query`;throw Error(`${n}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function Xr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Zr(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function Qr(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=jr(r||`.`,Ar(o),wr(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=ea(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=Tr({basename:n,pathname:c.pathname})),$n(c)}function $r(e,t,n){if(!n||!Xr(n))return{path:t};if(n.formMethod&&!Qi(n.formMethod))return{path:t,error:Li(405,{method:n.formMethod})};let r=()=>({path:t,error:Li(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=zi(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!$i(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
79
+ `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!$i(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}q(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ki(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ki(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Ai(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Ai(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if($i(c.formMethod))return{path:t,submission:c};let l=er(t);return e&&l.search&&ea(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:$n(l),submission:c}}function ei(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Ki(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Ki(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=Pr(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!ti(s))f=!1;else if(u){let{shouldLoad:e}=ni(s,a.loaderData,a.errors);f=e}else ri(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return vi(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?ii(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p};return vi(n,r,e,c,k,i,l,t,ai(i,m),m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=ur(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=ta(b,e.path),C=new AbortController,w=Di(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=yi(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=yi(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:D?!1:d;let a={...O,defaultShouldRevalidate:i};ai(S,a)&&(T=yi(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function ti(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ni(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!ti(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function ri(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function ii(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function ai(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function oi(e,t,n,r,i,a){let o;if(e){let t=r[e];q(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>si(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=sr(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=sr([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function si(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>si(e,t)))??!1:!1}function ci(e,t,n,r,i){let a=n[e.id];if(q(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Xl.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{q(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=ar(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?Yn(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?Yn(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Xl.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Yl({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}function li(e){return e!==void 0}function ui(e,t,n){let r=e.map(({route:e})=>{if(!(typeof e.lazy!=`object`||!e.lazy.middleware))return Yl({key:`middleware`,route:e,manifest:t,mapRouteProperties:n})}).filter(li);return r.length>0?Promise.all(r):void 0}async function di(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function fi(e){return e.matches.some(e=>e.route.middleware)?mi(e,()=>di(e)):di(e)}function pi(e,t,n){return hi(e,t,r,Yi,n);function r(e){return Ji(e)?Vi(e):e}}function mi(e,t){return hi(e,t,e=>{if(Zi(e))throw e;return e},Ui,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=Fi(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function hi(e,t,n,r,i){let{matches:a,...o}=e;return await gi(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function gi(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await gi(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function _i(e,t,n,r,i){let a=Yl({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=ci(r.route,$i(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function vi(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=_i(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?ai(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?ai(a,{...l,defaultShouldRevalidate:e}):ai(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!$i(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&($i(n.method)||!p)?xi({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function yi(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?vi(e,t,n,r,Pr(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:_i(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function bi(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Oi(t,n),pattern:Pr(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return mi(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function xi({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=$i(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Oi(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Li(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Li(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Si(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Ci(e){let{result:t,type:n}=e;if(Yi(t)){let e;try{e=await Si(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Dl(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Ji(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Hi(t),statusCode:Nr(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Nr(t)?t.status:void 0}:Ji(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function wi(e,t,n,r,i){let a=e.headers.get(`Location`);if(q(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!hl(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Qr(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}function Ti(e){try{return Zl.includes(new URL(e).protocol)}catch{return!1}}function Ei(e,t,n,r){if(hl(e)){let r=e,i=tl.test(r)?new URL(Wn(r,t.protocol)):new URL(r);if(Ti(i.toString()))throw Error(`Invalid redirect location`);let a=wr(i.pathname,n)!=null;if(i.origin===t.origin&&a)return gl(i.pathname)+i.search+i.hash}try{if(Ti(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Di(e,t,n,r){let i=e.createURL(zi(t)).toString(),a={signal:n};if(r&&$i(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=ki(r.formData):a.body=r.formData}return new Request(i,a)}function Oi(e,t){let n=new URL(e.url),r=typeof t==`string`?er(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function ki(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Ai(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ji(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Ki(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(q(!qi(f),`Cannot handle redirect results in processLoaderData`),Ki(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Fi(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Hl),c||(c=!0,s=Nr(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Mi(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=ji(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(q(s,`Did not find corresponding fetcher result`),Ki(s)){let t=Fi(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(qi(s))q(!1,`Unhandled fetcher revalidation redirect`);else{let e=sa(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Ni(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Hl).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Pi(e){return e?Ki(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Fi(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Ii(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Li(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Dl(e||500,o,Error(s),!0)}function Ri(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(qi(r))return{key:n,result:r}}}function zi(e){return $n({...typeof e==`string`?er(e):e,hash:``})}function Bi(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function Vi(e){return Response.json(e.data,e.init??void 0)}function Hi(e){return new Dl(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Ui(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Wi(t))}function Wi(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Gi(e){return Yi(e.result)&&Fl.has(e.result.status)}function Ki(e){return e.type===`error`}function qi(e){return(e&&e.type)===`redirect`}function Ji(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Yi(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Xi(e){return Fl.has(e)}function Zi(e){return Yi(e)&&Xi(e.status)&&e.headers.has(`Location`)}function Qi(e){return Pl.has(e.toUpperCase())}function $i(e){return Ml.has(e.toUpperCase())}function ea(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function ta(e,t){let n=typeof t==`string`?er(t).search:t.search;if(e[e.length-1].route.index&&ea(n||``))return e[e.length-1];let r=kr(e);return r[r.length-1]}function na(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ra(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ia(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function aa(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function oa(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sa(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ca(e,t){try{let n=e.sessionStorage.getItem(Vl);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function la(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Vl,JSON.stringify(n))}catch(e){Yn(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function ua(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}function da(){return Hc.useContext(eu)}function fa(e){if(e.startsWith(`${uu}:${du}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function pa(e){if(e.startsWith(`${uu}:${fu}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Dl(t.status,t.statusText,t.data)}catch{}}function ma(e,{relative:t}={}){q(ha(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=J.useContext(au),{hash:i,pathname:a,search:o}=Ta(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:_l([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ha(){return J.useContext(ou)!=null}function ga(){return q(ha(),`useLocation() may be used only in the context of a <Router> component.`),J.useContext(ou).location}function _a(){return J.useContext(ou).navigationType}function va(e){q(ha(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=ga();return J.useMemo(()=>br(e,Cr(t)),[t,e])}function ya(e){J.useContext(au).static||J.useLayoutEffect(e)}function ba(){let{isDataRoute:e}=J.useContext(su);return e?Ja():xa()}function xa(){q(ha(),`useNavigate() may be used only in the context of a <Router> component.`);let e=J.useContext(Ql),{basename:t,navigator:n}=J.useContext(au),{matches:r}=J.useContext(su),{pathname:i}=ga(),a=JSON.stringify(Ar(r)),o=J.useRef(!1);return ya(()=>{o.current=!0}),J.useCallback((r,s={})=>{if(Yn(o.current,pu),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=jr(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:_l([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function Sa(){return J.useContext(mu)}function Ca(e){let t=J.useContext(su).outlet;return J.useMemo(()=>t&&J.createElement(mu.Provider,{value:e},t),[t,e])}function wa(){let{matches:e}=J.useContext(su);return e[e.length-1]?.params??{}}function Ta(e,{relative:t}={}){let{matches:n}=J.useContext(su),{pathname:r}=ga(),i=JSON.stringify(Ar(n));return J.useMemo(()=>jr(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Ea(e,t){return Da(e,t)}function Da(e,t,n){q(ha(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=J.useContext(au),{matches:i}=J.useContext(su),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;if(lu){let e=l&&l.path||``;Ya(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
80
80
 
81
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let f=la(),p;if(t){let e=typeof t==`string`?Qn(t):t;q(u===`/`||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=f;let m=p.pathname||`/`,h=m;if(u!==`/`){let e=u.replace(/^\//,``).split(`/`);h=`/`+m.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let g=sr(e,{pathname:h});Ul&&(qn(d||g!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),qn(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let _=wa(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:al([u,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?u:al([u,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),o,n,r,i);return t&&_?J.createElement(Bl.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,...p},navigationType:`POP`}},_):_}function xa(){let e=La(),t=kr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return Ul&&(console.error(`Error handled by React Router default ErrorBoundary:`,e),o=J.createElement(J.Fragment,null,J.createElement(`p`,null,`💿 Hey developer 👋`),J.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,J.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,J.createElement(`code`,{style:a},`errorElement`),` prop on your route.`))),J.createElement(J.Fragment,null,J.createElement(`h2`,null,`Unexpected Application Error!`),J.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?J.createElement(`pre`,{style:i},n):null,o)}function Sa({children:e,error:t}){let{basename:n}=J.useContext(zl);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=aa(t.digest);if(e){let r=Zl.get(t);if(r)throw r;let i=jr(e.location,n);if(ml&&!Zl.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Zl.set(t,n),n}return J.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ca({routeContext:e,match:t,children:n}){let r=J.useContext(Ml);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),J.createElement(Vl.Provider,{value:e},n)}function wa(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);q(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}let l=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Ar(n.matches),errorInfo:t})}:void 0;return a.reduceRight((e,r,i)=>{let u,d=!1,f=null,p=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,f=r.route.errorElement||Yl,s&&(c<0&&i===0?(Ha(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):c===i&&(d=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,i+1)),h=()=>{let t;return t=u?f:d?p:r.route.Component?J.createElement(r.route.Component,null):r.route.element?r.route.element:e,J.createElement(Ca,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?J.createElement(Xl,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ta(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ea(e){let t=J.useContext(Ml);return q(t,Ta(e)),t}function Da(e){let t=J.useContext(Nl);return q(t,Ta(e)),t}function Oa(e){let t=J.useContext(Vl);return q(t,Ta(e)),t}function ka(e){let t=Oa(e),n=t.matches[t.matches.length-1];return q(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Aa(){return ka(`useRouteId`)}function ja(){return Da(`useNavigation`).navigation}function Ma(){let e=Ea(`useRevalidator`),t=Da(`useRevalidator`),n=J.useCallback(async()=>{await e.router.revalidate()},[e.router]);return J.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function Na(){let{matches:e,loaderData:t}=Da(`useMatches`);return J.useMemo(()=>e.map(e=>lr(e,t)),[e,t])}function Pa(){let e=Da(`useLoaderData`),t=ka(`useLoaderData`);return e.loaderData[t]}function Fa(e){return Da(`useRouteLoaderData`).loaderData[e]}function Ia(){let e=Da(`useActionData`),t=ka(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function La(){let e=J.useContext(Hl),t=Da(`useRouteError`),n=ka(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ra(){return J.useContext(Ll)?._data}function za(){return J.useContext(Ll)?._error}function Ba(e){let{router:t,basename:n}=Ea(`useBlocker`),r=Da(`useBlocker`),[i,a]=J.useState(``),o=J.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:br(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:br(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return J.useEffect(()=>{let e=String(++Ql);return a(e),()=>t.deleteBlocker(e)},[t]),J.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):Tl}function Va(){let{router:e}=Ea(`useNavigate`),t=ka(`useNavigate`),n=J.useRef(!1);return fa(()=>{n.current=!0}),J.useCallback(async(r,i={})=>{qn(n.current,ql),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}function Ha(e,t,n){!t&&!$l[e]&&($l[e]=!0,qn(!1,n))}function Ua(...e){let t=ka(`useRoute`),n=e[0]??t,r=Da(`useRoute`),i=r.matches.find(({route:e})=>e.id===n);if(i!==void 0)return{handle:i.route.handle,loaderData:r.loaderData[n],actionData:r.actionData?.[n]}}function Wa(e,t){!e&&!eu[t]&&(eu[t]=!0,console.warn(t))}function Ga(e){return tu?tu(e):[e,nu]}function Ka(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(Ul&&e.element&&qn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:Y.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(Ul&&e.hydrateFallbackElement&&qn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:Y.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(Ul&&e.errorElement&&qn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:Y.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function qa(e,t){return Hr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Wn({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:ru,mapRouteProperties:Ka,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function Ja({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=ia()||r;let[i,a]=Y.useState(e.state),[o,s]=Ga(i),[c,l]=Y.useState(),[u,d]=Y.useState({isTransitioning:!1}),[f,p]=Y.useState(),[m,h]=Y.useState(),[g,_]=Y.useState(),v=Y.useRef(new Map),y=Y.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},unstable_pattern:Ar(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Wa(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Wa(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):Y.startTransition(()=>{r===!0&&s(e=>Ya(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);Y.useLayoutEffect(()=>e.subscribe(y),[e,y]),Y.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new iu)},[u]),Y.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):Y.startTransition(()=>{r===!0&&s(e=>Ya(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),Y.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),Y.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=Y.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=Y.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return Y.createElement(Y.Fragment,null,Y.createElement(Ml.Provider,{value:S},Y.createElement(Nl.Provider,{value:o},Y.createElement(Il.Provider,{value:v.current},Y.createElement(Fl.Provider,{value:u},Y.createElement(to,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,unstable_useTransitions:r},Y.createElement(au,{routes:e.routes,future:e.future,state:o,onError:n})))))),null)}function Ya(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}function Xa({routes:e,future:t,state:n,onError:r}){return ba(e,void 0,n,r,t)}function Za({basename:e,children:t,initialEntries:n,initialIndex:r,unstable_useTransitions:i}){let a=Y.useRef();a.current??=Wn({initialEntries:n,initialIndex:r,v5Compat:!0});let o=a.current,[s,c]=Y.useState({action:o.action,location:o.location}),l=Y.useCallback(e=>{i===!1?c(e):Y.startTransition(()=>c(e))},[i]);return Y.useLayoutEffect(()=>o.listen(l),[o,l]),Y.createElement(to,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,unstable_useTransitions:i})}function Qa({to:e,replace:t,state:n,relative:r}){q(ca(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=Y.useContext(zl);qn(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=Y.useContext(Vl),{pathname:o}=la(),s=pa(),c=Dr(e,Er(a),o,r===`path`),l=JSON.stringify(c);return Y.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function $a(e){return ga(e.context)}function eo(e){q(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function to({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,unstable_useTransitions:o}){q(!ca(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=Y.useMemo(()=>({basename:s,navigator:i,static:a,unstable_useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Qn(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`}=n,m=Y.useMemo(()=>{let e=br(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}},[s,l,u,d,f,p,r]);return qn(m!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:Y.createElement(zl.Provider,{value:c},Y.createElement(Bl.Provider,{children:t,value:m}))}function no({children:e,location:t}){return ya(ao(e),t)}function ro({children:e,errorElement:t,resolve:n}){let r=Y.useContext(Ml),i=Y.useContext(Nl),a=Y.useCallback((e,t)=>{r&&r.onError&&i&&r.onError(e,{location:i.location,params:i.matches[0]?.params||{},unstable_pattern:Ar(i.matches),errorInfo:t})},[r,i]);return Y.createElement(ou,{resolve:n,errorElement:t,onError:a},Y.createElement(io,null,e))}function io({children:e}){let t=Ra(),n=typeof e==`function`?e(t):e;return Y.createElement(Y.Fragment,null,n)}function ao(e,t=[]){let n=[];return Y.Children.forEach(e,(e,r)=>{if(!Y.isValidElement(e))return;let i=[...t,r];if(e.type===Y.Fragment){n.push.apply(n,ao(e.props.children,i));return}q(e.type===eo,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),q(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ao(e.props.children,i)),n.push(a)}),n}function oo(e){return wa(e)}function so(){return{params:_a(),loaderData:Pa(),actionData:Ia(),matches:Na()}}function co({children:e}){let t=so();return Y.cloneElement(e,t)}function lo(e){return function(){let t=so();return Y.createElement(e,t)}}function uo(){return{params:_a(),loaderData:Pa(),actionData:Ia()}}function fo({children:e}){let t=uo();return Y.cloneElement(e,t)}function po(e){return function(){let t=uo();return Y.createElement(e,t)}}function mo(){return{params:_a(),loaderData:Pa(),actionData:Ia(),error:La()}}function ho({children:e}){let t=mo();return Y.cloneElement(e,t)}function go(e){return function(){let t=mo();return Y.createElement(e,t)}}function _o(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function vo(e){return _o(e)&&e.tagName.toLowerCase()===`button`}function yo(e){return _o(e)&&e.tagName.toLowerCase()===`form`}function bo(e){return _o(e)&&e.tagName.toLowerCase()===`input`}function xo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function So(e,t){return e.button===0&&(!t||t===`_self`)&&!xo(e)}function Co(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function wo(e,t){let n=Co(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}function To(){if(uu===null)try{new FormData(document.createElement(`form`),0),uu=!1}catch{uu=!0}return uu}function Eo(e){return e!=null&&!du.has(e)?(qn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lu}"`),null):e}function Do(e,t){let n,r,i,a,o;if(yo(e)){let o=e.getAttribute(`action`);r=o?br(o,t):null,n=e.getAttribute(`method`)||cu,i=Eo(e.getAttribute(`enctype`))||lu,a=new FormData(e)}else if(vo(e)||bo(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?br(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||cu,i=Eo(e.getAttribute(`formenctype`))||Eo(o.getAttribute(`enctype`))||lu,a=new FormData(o,e),!To()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(_o(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=cu,r=null,i=lu,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Oo(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
82
- `);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}function ko(e){let{indices:t}=this,n=t.get(e);if(n)return[n];if(e===void 0)return vu;if(e===null)return gu;if(Number.isNaN(e))return pu;if(e===1/0)return _u;if(e===-1/0)return mu;if(e===0&&1/e<0)return hu;let r=this.index++;return t.set(e,r),Ao.call(this,e,r),r}function Ao(e,t){let{deferred:n,plugins:r,postPlugins:i}=this,a=this.stringified,o=[[e,t]];for(;o.length>0;){let[e,t]=o.pop(),s=e=>Object.keys(e).map(t=>`"_${ko.call(this,t)}":${ko.call(this,e[t])}`).join(`,`),c=null;switch(typeof e){case`boolean`:case`number`:case`string`:a[t]=JSON.stringify(e);break;case`bigint`:a[t]=`["${yu}","${e}"]`;break;case`symbol`:{let n=Symbol.keyFor(e);n?a[t]=`["${Du}",${JSON.stringify(n)}]`:c=Error(`Cannot encode symbol unless created with Symbol.for()`);break}case`object`:{if(!e){a[t]=`${gu}`;break}let i=Array.isArray(e),o=!1;if(!i&&r)for(let n of r){let r=n(e);if(Array.isArray(r)){o=!0;let[e,...n]=r;a[t]=`[${JSON.stringify(e)}`,n.length>0&&(a[t]+=`,${n.map(e=>ko.call(this,e)).join(`,`)}`),a[t]+=`]`;break}}if(!o){let r=i?`[`:`{`;if(i){for(let t=0;t<e.length;t++)r+=(t?`,`:``)+(t in e?ko.call(this,e[t]):fu);a[t]=`${r}]`}else if(e instanceof Date){let n=e.getTime();a[t]=`["${bu}",${Number.isNaN(n)?JSON.stringify(`invalid`):n}]`}else e instanceof URL?a[t]=`["${Ou}",${JSON.stringify(e.href)}]`:e instanceof RegExp?a[t]=`["${Tu}",${JSON.stringify(e.source)},${JSON.stringify(e.flags)}]`:e instanceof Set?e.size>0?a[t]=`["${Eu}",${[...e].map(e=>ko.call(this,e)).join(`,`)}]`:a[t]=`["${Eu}"]`:e instanceof Map?e.size>0?a[t]=`["${Su}",${[...e].flatMap(([e,t])=>[ko.call(this,e),ko.call(this,t)]).join(`,`)}]`:a[t]=`["${Su}"]`:e instanceof Promise?(a[t]=`["${wu}",${t}]`,n[t]=e):e instanceof Error?(a[t]=`["${xu}",${JSON.stringify(e.message)}`,e.name!==`Error`&&(a[t]+=`,${JSON.stringify(e.name)}`),a[t]+=`]`):Object.getPrototypeOf(e)===null?a[t]=`["${Cu}",{${s(e)}}]`:jo(e)?a[t]=`{${s(e)}}`:c=Error(`Cannot encode object with prototype`)}break}default:{let n=Array.isArray(e),i=!1;if(!n&&r)for(let n of r){let r=n(e);if(Array.isArray(r)){i=!0;let[e,...n]=r;a[t]=`[${JSON.stringify(e)}`,n.length>0&&(a[t]+=`,${n.map(e=>ko.call(this,e)).join(`,`)}`),a[t]+=`]`;break}}i||(c=Error(`Cannot encode function or unexpected type`))}}if(c){let n=!1;if(i)for(let r of i){let i=r(e);if(Array.isArray(i)){n=!0;let[e,...r]=i;a[t]=`[${JSON.stringify(e)}`,r.length>0&&(a[t]+=`,${r.map(e=>ko.call(this,e)).join(`,`)}`),a[t]+=`]`;break}}if(!n)throw c}}}function jo(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===ju}function Mo(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return No.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,No.call(this,r)}function No(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case vu:a(void 0);continue;case gu:a(null);continue;case pu:a(NaN);continue;case _u:a(1/0);continue;case mu:a(-1/0);continue;case hu:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c))if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case bu:a(t[e]=new Date(l));continue;case Ou:a(t[e]=new URL(l));continue;case yu:a(t[e]=BigInt(l));continue;case Tu:a(t[e]=new RegExp(l,u));continue;case Du:a(t[e]=Symbol.for(l));continue;case Eu:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case Su:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case Cu:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case wu:if(t[l])a(t[e]=t[l]);else{let n=new Au;r[l]=n,a(t[e]=n.promise)}continue;case xu:let[,p,m]=c,h=m&&Mu&&Mu[m]?new Mu[m](p):Error(p);t[e]=h,a(h);continue;case ku:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==fu&&o.push([t,t=>{n[e]=t}])}a(n);continue}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function Po(e,t){let{plugins:n}=t??{},r=new Au,i=e.pipeThrough(Oo()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await Fo.call(a,i),s=r.promise;return o.done?r.resolve():s=Io.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function Fo(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:Mo.call(this,n)}}async function Io(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case wu:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=Mo.call(this,a);r.resolve(o);break}case xu:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=Mo.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}function Lo(e,t){let{plugins:n,postPlugins:r,signal:i}=t??{},a={deferred:{},index:0,indices:new Map,stringified:[],plugins:n,postPlugins:r,signal:i},o=new TextEncoder,s=0;return new ReadableStream({async start(t){let n=ko.call(a,e);if(Array.isArray(n))throw Error(`This should never happen`);n<0?t.enqueue(o.encode(`${n}
83
- `)):(t.enqueue(o.encode(`[${a.stringified.join(`,`)}]
84
- `)),s=a.stringified.length-1);let r=new WeakSet;if(Object.keys(a.deferred).length){let e,n=new Promise((t,n)=>{if(e=t,i){let e=()=>n(i.reason||Error(`Signal was aborted.`));i.aborted?e():i.addEventListener(`abort`,t=>{e()})}});for(;Object.keys(a.deferred).length>0;){for(let[e,i]of Object.entries(a.deferred))r.has(i)||r.add(a.deferred[Number(e)]=Promise.race([n,i]).then(n=>{let r=ko.call(a,n);if(Array.isArray(r))t.enqueue(o.encode(`${wu}${e}:[["${ku}",${r[0]}]]
85
- `)),a.index++,s++;else if(r<0)t.enqueue(o.encode(`${wu}${e}:${r}
86
- `));else{let n=a.stringified.slice(s+1).join(`,`);t.enqueue(o.encode(`${wu}${e}:[${n}]
87
- `)),s=a.stringified.length-1}},n=>{(!n||typeof n!=`object`||!(n instanceof Error))&&(n=Error(`An unknown error occurred`));let r=ko.call(a,n);if(Array.isArray(r))t.enqueue(o.encode(`${xu}${e}:[["${ku}",${r[0]}]]
88
- `)),a.index++,s++;else if(r<0)t.enqueue(o.encode(`${xu}${e}:${r}
89
- `));else{let n=a.stringified.slice(s+1).join(`,`);t.enqueue(o.encode(`${xu}${e}:[${n}]
90
- `)),s=a.stringified.length-1}}).finally(()=>{delete a.deferred[Number(e)]}));await Promise.race(Object.values(a.deferred))}e()}await Promise.all(Object.values(a.deferred)),t.close()}})}async function Ro(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}function zo(e){return e.replace(Pu,e=>Nu[e])}function Bo(e,t){if(e===!1||e==null)throw Error(t)}function Vo({context:e,identifier:t,reader:n,textDecoder:r,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,o=a[t];if(o||=a[t]=n.read().then(e=>{a[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e}),o.error)throw o.error;if(o.result===void 0)throw o;let{done:s,value:c}=o.result,l=c?Pc.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${zo(JSON.stringify(c))});`}}):null;return s?Pc.createElement(Pc.Fragment,null,l,Pc.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.close();`}})):Pc.createElement(Pc.Fragment,null,l,Pc.createElement(Pc.Suspense,null,Pc.createElement(Vo,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:i})))}function Ho(e,t,n,r,i,a){let o=Uo(e,e=>{let r=t.routes[e.route.id];Bo(r,`Route not found in manifest`);let i=n[e.route.id];return{hasLoader:r.hasLoader,hasClientLoader:r.hasClientLoader,hasShouldRevalidate:!!i?.shouldRevalidate}},Zo,r,i,a);return async e=>e.runClientMiddleware(o)}function Uo(e,t,n,r,i,a,o=()=>!0){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if(c.method!==`GET`)return Wo(s,n,i,a);let f=l.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!f?Go(s,t,n,i,a):u?Jo(s,n,i,a):Ko(s,d,t,n,r,i,a,o)}}async function Wo(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());Bo(i,`No action match found`);let a,o=await i.resolve(async o=>await o(async()=>{let{data:o,status:s}=await t(e,n,r,[i.route.id]);return a=s,$o(o,i.route.id)}));return Hi(o.result)||kr(o.result)||Vi(o.result)?{[i.route.id]:o}:{[i.route.id]:{type:o.type,result:Or(o.result,a)}}}async function Go(e,t,n,r,i){let a=e.matches.filter(e=>e.shouldCallHandler()),o={};return await Promise.all(a.map(a=>a.resolve(async s=>{try{let{hasClientLoader:c}=t(a),l=a.route.id,u=c?await s(async()=>{let{data:t}=await n(e,r,i,[l]);return $o(t,l)}):await s();o[a.route.id]={type:`data`,result:u}}catch(e){o[a.route.id]={type:`error`,result:e}}}))),o}async function Ko(e,t,n,r,i,a,o,s=()=>!0){let c=new Set,l=!1,u=e.matches.map(()=>es()),d=es(),f={},p=Promise.all(e.matches.map(async(t,i)=>t.resolve(async p=>{u[i].resolve();let m=t.route.id,{hasLoader:h,hasClientLoader:g,hasShouldRevalidate:_}=n(t),v=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(v)){l||=t.shouldRevalidateArgs!=null&&h&&_===!0;return}if(s(t)&&g){h&&(l=!0);try{f[m]={type:`data`,result:await p(async()=>{let{data:t}=await r(e,a,o,[m]);return $o(t,m)})}}catch(e){f[m]={type:`error`,result:e}}return}h&&c.add(m);try{f[m]={type:`data`,result:await p(async()=>$o(await d.promise,m))}}catch(e){f[m]={type:`error`,result:e}}})));if(await Promise.all(u.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||c.size===0)&&!window.__reactRouterHdrActive)d.resolve({routes:{}});else{let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let n=await r(e,a,o,t);d.resolve(n.data)}catch(e){d.reject(e)}}return await p,await qo(d.promise,e.matches,c,f),f}async function qo(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof Iu&&(r[e].result=i)})}catch{}}async function Jo(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());Bo(i,`No fetcher match found`);let a=i.route.id,o=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,n,r,[a]);return $o(i,a)}));return{[i.route.id]:o}}function Yo(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function Xo(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&br(i.pathname,t)===`/`?i.pathname=`${t.replace(/\/$/,``)}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,``)}.${r}`,i}async function Zo(e,t,n,r){let{request:i}=e,a=Xo(i.url,t,n,`data`);i.method===`GET`&&(a=Yo(a),r&&a.searchParams.set(`_routes`,r.join(`,`)));let o=await fetch(a,await Ro(i));if(o.status>=400&&!o.headers.has(`X-Remix-Response`))throw new pl(o.status,o.statusText,await o.text());if(o.status===204&&o.headers.has(`X-Remix-Redirect`))return{status:Lu,data:{redirect:{redirect:o.headers.get(`X-Remix-Redirect`),status:Number(o.headers.get(`X-Remix-Status`)||`302`),revalidate:o.headers.get(`X-Remix-Revalidate`)===`true`,reload:o.headers.get(`X-Remix-Reload-Document`)===`true`,replace:o.headers.get(`X-Remix-Replace`)===`true`}}};if(Ru.has(o.status)){let e={};return r&&i.method!==`GET`&&(e[r[0]]={data:void 0}),{status:o.status,data:{routes:e}}}Bo(o.body,`No response body to decode`);try{let e=await Qo(o.body,window),t;if(i.method===`GET`){let n=e.value;t=Fu in n?{redirect:n[Fu]}:{routes:n}}else{let n=e.value,i=r?.[0];Bo(i,`No routeId found for single fetch call decoding`),t=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:o.status,data:t}}catch{throw Error(`Unable to decode turbo-stream response`)}}function Qo(e,t){return Po(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new pl(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[Fu]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function $o(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw ul(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new Iu(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function es(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}async function ts(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){if(console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&import.meta.hot)throw t;return window.location.reload(),new Promise(()=>{})}}function ns(e,t,n){return ms(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),ds(e,n))}function rs(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function is(e){if(!e.css)return;let t=rs(e);await Promise.all(t.map(os))}async function as(e,t){if(!e.css&&!t.links||!hs())return;let n=[];if(e.css&&n.push(...rs(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!ss(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(os))}async function os(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function ss(e){return e!=null&&typeof e.page==`string`}function cs(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ls(e,t,n){return ms((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ts(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(cs).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function us(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function ds(e,t,{includeHydrateFallback:n}={}){return fs(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function fs(e){return[...new Set(e)]}function ps(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ms(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!ss(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(ps(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function hs(){if(zu!==void 0)return zu;let e=document.createElement(`link`);return zu=e.relList.supports(`preload`),e=null,zu}function gs(){return Rc.createElement(ec,{title:`Loading...`,renderScripts:!0},Ul?Rc.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
81
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ga(),d;if(t){let e=typeof t==`string`?er(t):t;q(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):lr(e,{pathname:p});lu&&(Yn(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Yn(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let h=ja(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:_l([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:_l([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?J.createElement(ou.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Oa(){let e=Wa(),t=Nr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return lu&&(console.error(`Error handled by React Router default ErrorBoundary:`,e),o=J.createElement(J.Fragment,null,J.createElement(`p`,null,`💿 Hey developer 👋`),J.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,J.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,J.createElement(`code`,{style:a},`errorElement`),` prop on your route.`))),J.createElement(J.Fragment,null,J.createElement(`h2`,null,`Unexpected Application Error!`),J.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?J.createElement(`pre`,{style:i},n):null,o)}function ka({children:e,error:t}){let{basename:n}=J.useContext(au);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=fa(t.digest);if(e){let r=_u.get(t);if(r)throw r;let i=Fr(e.location,n),a=i.absoluteURL||i.to;if(Ti(a))throw Error(`Invalid redirect location`);if(Ol&&!_u.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw _u.set(t,n),n}return J.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Aa({routeContext:e,match:t,children:n}){let r=J.useContext(Ql);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),J.createElement(su.Provider,{value:e},n)}function ja(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);q(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Pr(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||hu,o&&(s<0&&c===0?(Ya(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?J.createElement(n.route.Component,null):n.route.element?n.route.element:e,J.createElement(Aa,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?J.createElement(gu,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ma(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Na(e){let t=J.useContext(Ql);return q(t,Ma(e)),t}function Pa(e){let t=J.useContext($l);return q(t,Ma(e)),t}function Fa(e){let t=J.useContext(su);return q(t,Ma(e)),t}function Ia(e){let t=Fa(e),n=t.matches[t.matches.length-1];return q(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function La(){return Ia(`useRouteId`)}function Ra(){let e=Pa(`useNavigation`);return J.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function za(){let e=Na(`useRevalidator`),t=Pa(`useRevalidator`),n=J.useCallback(async()=>{await e.router.revalidate()},[e.router]);return J.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function Ba(){let{matches:e,loaderData:t}=Pa(`useMatches`);return J.useMemo(()=>e.map(e=>dr(e,t)),[e,t])}function Va(){let e=Pa(`useLoaderData`),t=Ia(`useLoaderData`);return e.loaderData[t]}function Ha(e){return Pa(`useRouteLoaderData`).loaderData[e]}function Ua(){let e=Pa(`useActionData`),t=Ia(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function Wa(){let e=J.useContext(cu),t=Pa(`useRouteError`),n=Ia(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ga(){return J.useContext(ru)?._data}function Ka(){return J.useContext(ru)?._error}function qa(e){let{router:t,basename:n}=Na(`useBlocker`),r=Pa(`useBlocker`),[i,a]=J.useState(``),o=J.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:wr(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:wr(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return J.useEffect(()=>{let e=String(++vu);return a(e),()=>t.deleteBlocker(e)},[t]),J.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):zl}function Ja(){let{router:e}=Na(`useNavigate`),t=Ia(`useNavigate`),n=J.useRef(!1);return ya(()=>{n.current=!0}),J.useCallback(async(r,i={})=>{Yn(n.current,pu),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}function Ya(e,t,n){!t&&!yu[e]&&(yu[e]=!0,Yn(!1,n))}function Xa(...e){let t=Ia(`useRoute`),n=e[0]??t,r=Pa(`useRoute`),i=r.matches.find(({route:e})=>e.id===n);if(i!==void 0)return{handle:i.route.handle,loaderData:r.loaderData[n],actionData:r.actionData?.[n]}}function Za(e){return{id:e.route.id,pathname:e.pathname,params:e.params,handle:e.route.handle}}function Qa(){let{location:e,historyAction:t,matches:n,navigation:r}=Pa(`unstable_useRouterState`),i=J.useMemo(()=>({type:t,location:e,searchParams:new URLSearchParams(e.search),params:n[n.length-1]?.params??{},matches:n.map(e=>Za(e))}),[e,n,t]),a=J.useMemo(()=>{if(r.state===`idle`)return null;let e={type:r.historyAction,location:r.location,searchParams:new URLSearchParams(r.location.search),params:r.matches[r.matches.length-1]?.params??{},matches:r.matches.map(e=>Za(e))};return r.state===`loading`?{...e,state:`loading`,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{...e,state:`submitting`,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}},[r]);return J.useMemo(()=>({active:i,pending:a}),[i,a])}function $a(e,t){!e&&!bu[t]&&(bu[t]=!0,console.warn(t))}function eo(e){return xu?xu(e):[e,Su]}function to(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(lu&&e.element&&Yn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:Y.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(lu&&e.hydrateFallbackElement&&Yn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:Y.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(lu&&e.errorElement&&Yn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:Y.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function no(e,t){return Kr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Kn({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Cu,mapRouteProperties:to,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}function ro({router:e,flushSync:t,onError:n,useTransitions:r}){r=da()||r;let[i,a]=Y.useState(e.state),[o,s]=eo(i),[c,l]=Y.useState(),[u,d]=Y.useState({isTransitioning:!1}),[f,p]=Y.useState(),[m,h]=Y.useState(),[g,_]=Y.useState(),v=Y.useRef(new Map),y=Y.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Pr(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),$a(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if($a(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):Y.startTransition(()=>{r===!0&&s(e=>io(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);Y.useLayoutEffect(()=>e.subscribe(y),[e,y]),Y.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new wu)},[u]),Y.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):Y.startTransition(()=>{r===!0&&s(e=>io(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),Y.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),Y.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=Y.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=Y.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return Y.createElement(Y.Fragment,null,Y.createElement(Ql.Provider,{value:S},Y.createElement($l.Provider,{value:o},Y.createElement(nu.Provider,{value:v.current},Y.createElement(tu.Provider,{value:u},Y.createElement(uo,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},Y.createElement(Tu,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function io(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}function ao({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Da(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function oo({basename:e,children:t,initialEntries:n,initialIndex:r,useTransitions:i}){let a=Y.useRef();a.current??=Kn({initialEntries:n,initialIndex:r,v5Compat:!0});let o=a.current,[s,c]=Y.useState({action:o.action,location:o.location}),l=Y.useCallback(e=>{i===!1?c(e):Y.startTransition(()=>c(e))},[i]);return Y.useLayoutEffect(()=>o.listen(l),[o,l]),Y.createElement(uo,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:i})}function so({to:e,replace:t,state:n,relative:r}){q(ha(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=Y.useContext(au);Yn(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=Y.useContext(su),{pathname:o}=ga(),s=ba(),c=jr(e,Ar(a),o,r===`path`),l=JSON.stringify(c);return Y.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function co(e){return Ca(e.context)}function lo(e){q(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function uo({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){q(!ha(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=Y.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=er(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=Y.useMemo(()=>{let e=wr(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return Yn(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:Y.createElement(au.Provider,{value:c},Y.createElement(ou.Provider,{children:t,value:h}))}function fo({children:e,location:t}){return Ea(ho(e),t)}function po({children:e,errorElement:t,resolve:n}){let r=Y.useContext(Ql),i=Y.useContext($l),a=Y.useCallback((e,t)=>{r&&r.onError&&i&&r.onError(e,{location:i.location,params:i.matches[0]?.params||{},pattern:Pr(i.matches),errorInfo:t})},[r,i]);return Y.createElement(Eu,{resolve:n,errorElement:t,onError:a},Y.createElement(mo,null,e))}function mo({children:e}){let t=Ga(),n=typeof e==`function`?e(t):e;return Y.createElement(Y.Fragment,null,n)}function ho(e,t=[]){let n=[];return Y.Children.forEach(e,(e,r)=>{if(!Y.isValidElement(e))return;let i=[...t,r];if(e.type===Y.Fragment){n.push.apply(n,ho(e.props.children,i));return}q(e.type===lo,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),q(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ho(e.props.children,i)),n.push(a)}),n}function go(e){return ja(e)}function _o(){return{params:wa(),loaderData:Va(),actionData:Ua(),matches:Ba()}}function vo({children:e}){let t=_o();return Y.cloneElement(e,t)}function yo(e){return function(){let t=_o();return Y.createElement(e,t)}}function bo(){return{params:wa(),loaderData:Va(),actionData:Ua()}}function xo({children:e}){let t=bo();return Y.cloneElement(e,t)}function So(e){return function(){let t=bo();return Y.createElement(e,t)}}function Co(){return{params:wa(),loaderData:Va(),actionData:Ua(),error:Wa()}}function wo({children:e}){let t=Co();return Y.cloneElement(e,t)}function To(e){return function(){let t=Co();return Y.createElement(e,t)}}function Eo(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Do(e){return Eo(e)&&e.tagName.toLowerCase()===`button`}function Oo(e){return Eo(e)&&e.tagName.toLowerCase()===`form`}function ko(e){return Eo(e)&&e.tagName.toLowerCase()===`input`}function Ao(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jo(e,t){return e.button===0&&(!t||t===`_self`)&&!Ao(e)}function Mo(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function No(e,t){let n=Mo(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}function Po(){if(Au===null)try{new FormData(document.createElement(`form`),0),Au=!1}catch{Au=!0}return Au}function Fo(e){return e!=null&&!ju.has(e)?(Yn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ku}"`),null):e}function Io(e,t){let n,r,i,a,o;if(Oo(e)){let o=e.getAttribute(`action`);r=o?wr(o,t):null,n=e.getAttribute(`method`)||Ou,i=Fo(e.getAttribute(`enctype`))||ku,a=new FormData(e)}else if(Do(e)||ko(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?wr(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Ou,i=Fo(e.getAttribute(`formenctype`))||Fo(o.getAttribute(`enctype`))||ku,a=new FormData(o,e),!Po()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Eo(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Ou,r=null,i=ku,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Lo(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
82
+ `);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}async function Ro(e){let{indices:t}=this,n=t.get(e);if(n)return[n];if(e===void 0)return Ru;if(e===null)return Iu;if(Number.isNaN(e))return Nu;if(e===1/0)return Lu;if(e===-1/0)return Pu;if(e===0&&1/e<0)return Fu;let r=this.index++;t.set(e,r);let i=[[e,r]];return await zo.call(this,i),r}async function zo(e){let{deferred:t,indices:n,plugins:r,postPlugins:i}=this,a=this.stringified,o=Qu(),s=t=>{let r=n.get(t);if(r)return[r];if(t===void 0)return Ru;if(t===null)return Iu;if(Number.isNaN(t))return Nu;if(t===1/0)return Lu;if(t===-1/0)return Pu;if(t===0&&1/t<0)return Fu;let i=this.index++;return n.set(t,i),e.push([t,i]),i},c=0;for(;e.length>0;){let n=Qu();++c%6e3==0&&n-o>=Zu&&(await $u(),o=Qu());let[l,u]=e.pop(),d=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(`,`),f=null;switch(typeof l){case`boolean`:case`number`:case`string`:a[u]=JSON.stringify(l);break;case`bigint`:a[u]=`["${zu}","${l}"]`;break;case`symbol`:{let e=Symbol.keyFor(l);e?a[u]=`["${qu}",${JSON.stringify(e)}]`:f=Error(`Cannot encode symbol unless created with Symbol.for()`);break}case`object`:{if(!l){a[u]=`${Iu}`;break}let e=Array.isArray(l),n=!1;if(!e&&r)for(let e of r){let t=e(l);if(Array.isArray(t)){n=!0;let[e,...r]=t;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!n){let n=e?`[`:`{`;if(e){for(let e=0;e<l.length;e++)n+=(e?`,`:``)+(e in l?s(l[e]):Mu);a[u]=`${n}]`}else if(l instanceof Date){let e=l.getTime();a[u]=`["${Bu}",${Number.isNaN(e)?JSON.stringify(`invalid`):e}]`}else l instanceof URL?a[u]=`["${Ju}",${JSON.stringify(l.href)}]`:l instanceof RegExp?a[u]=`["${Gu}",${JSON.stringify(l.source)},${JSON.stringify(l.flags)}]`:l instanceof Set?l.size>0?a[u]=`["${Ku}",${[...l].map(e=>s(e)).join(`,`)}]`:a[u]=`["${Ku}"]`:l instanceof Map?l.size>0?a[u]=`["${Hu}",${[...l].flatMap(([e,t])=>[s(e),s(t)]).join(`,`)}]`:a[u]=`["${Hu}"]`:l instanceof Promise?(a[u]=`["${Wu}",${u}]`,t[u]=l):l instanceof Error?(a[u]=`["${Vu}",${JSON.stringify(l.message)}`,l.name!==`Error`&&(a[u]+=`,${JSON.stringify(l.name)}`),a[u]+=`]`):Object.getPrototypeOf(l)===null?a[u]=`["${Uu}",{${d(l)}}]`:Bo(l)?a[u]=`{${d(l)}}`:f=Error(`Cannot encode object with prototype`)}break}default:{let e=Array.isArray(l),t=!1;if(!e&&r)for(let e of r){let n=e(l);if(Array.isArray(n)){t=!0;let[e,...r]=n;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}t||(f=Error(`Cannot encode function or unexpected type`))}}if(f){let e=!1;if(i)for(let t of i){let n=t(l);if(Array.isArray(n)){e=!0;let[t,...r]=n;a[u]=`[${JSON.stringify(t)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!e)throw f}}}function Bo(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===ed}function Vo(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return Ho.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,Ho.call(this,r)}function Ho(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case Ru:a(void 0);continue;case Iu:a(null);continue;case Nu:a(NaN);continue;case Lu:a(1/0);continue;case Pu:a(-1/0);continue;case Fu:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c))if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case Bu:a(t[e]=new Date(l));continue;case Ju:a(t[e]=new URL(l));continue;case zu:a(t[e]=BigInt(l));continue;case Gu:a(t[e]=new RegExp(l,u));continue;case qu:a(t[e]=Symbol.for(l));continue;case Ku:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case Hu:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case Uu:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case Wu:if(t[l])a(t[e]=t[l]);else{let n=new Xu;r[l]=n,a(t[e]=n.promise)}continue;case Vu:let[,p,m]=c,h=m&&td&&El.includes(m)&&m in td&&typeof td[m]==`function`?new td[m](p):Error(p);t[e]=h,a(h);continue;case Yu:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==Mu&&o.push([t,t=>{n[e]=t}])}a(n);continue}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function Uo(e,t){let{plugins:n}=t??{},r=new Xu,i=e.pipeThrough(Lo()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await Wo.call(a,i),s=r.promise;return o.done?r.resolve():s=Go.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function Wo(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:Vo.call(this,n)}}async function Go(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case Wu:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=Vo.call(this,a);r.resolve(o);break}case Vu:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=Vo.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}function Ko(e,t){let{onComplete:n,plugins:r,postPlugins:i,signal:a}=t??{},o={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:i,signal:a},s=new TextEncoder,c=0;return new ReadableStream({async start(t){let r=await Ro.call(o,e);if(Array.isArray(r))throw Error(`This should never happen`);r<0?t.enqueue(s.encode(`${r}
83
+ `)):(t.enqueue(s.encode(`[${o.stringified.join(`,`)}]
84
+ `)),c=o.stringified.length-1);let i=new WeakSet,l=Promise.resolve();if(Object.keys(o.deferred).length){let e,n=new Promise((t,n)=>{if(e=t,a){let e=()=>n(a.reason||Error(`Signal was aborted.`));a.aborted?e():a.addEventListener(`abort`,t=>{e()})}});for(;Object.keys(o.deferred).length>0;){for(let[e,r]of Object.entries(o.deferred))i.has(r)||i.add(o.deferred[Number(e)]=Promise.race([n,r]).then(n=>(l=l.then(async()=>{let r=await Ro.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Wu}${e}:[["${Yu}",${r[0]}]]
85
+ `)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Wu}${e}:${r}
86
+ `));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Wu}${e}:[${n}]
87
+ `)),c=o.stringified.length-1}}),l),n=>(l=l.then(async()=>{(!n||typeof n!=`object`||!(n instanceof Error))&&(n=Error(`An unknown error occurred`));let r=await Ro.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Vu}${e}:[["${Yu}",${r[0]}]]
88
+ `)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Vu}${e}:${r}
89
+ `));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Vu}${e}:[${n}]
90
+ `)),c=o.stringified.length-1}}),l)).finally(()=>{delete o.deferred[Number(e)]}));await Promise.race(Object.values(o.deferred))}e()}await Promise.all(Object.values(o.deferred)),await l,t.close(),n?.()}})}async function qo(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}function Jo(e){return e.replace(rd,e=>nd[e])}function Yo(e,t){if(e===!1||e==null)throw Error(t)}function Xo({context:e,identifier:t,reader:n,textDecoder:r,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,o=a[t];if(o||=a[t]=n.read().then(e=>{a[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e}),o.error)throw o.error;if(o.result===void 0)throw o;let{done:s,value:c}=o.result,l=c?Uc.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${Jo(JSON.stringify(c))});`}}):null;return s?Uc.createElement(Uc.Fragment,null,l,Uc.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.close();`}})):Uc.createElement(Uc.Fragment,null,l,Uc.createElement(Uc.Suspense,null,Uc.createElement(Xo,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:i})))}function Zo(e,t,n,r,i,a){let o=Qo(e,e=>{let n=t.routes[e.route.id];return Yo(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader}},os,r,i,a);return async e=>e.runClientMiddleware(o)}function Qo(e,t,n,r,i,a,o=()=>!0){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if(c.method!==`GET`)return $o(s,n,i,a);let f=l.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!f?es(s,t,n,i,a):u?rs(s,n,i,a):ts(s,d,t,n,r,i,a,o)}}async function $o(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());Yo(i,`No action match found`);let a,o=await i.resolve(async o=>await o(async()=>{let{data:o,status:s}=await t(e,n,r,[i.route.id]);return a=s,cs(o,i.route.id)}));return Yi(o.result)||Nr(o.result)||Ji(o.result)?{[i.route.id]:o}:{[i.route.id]:{type:o.type,result:Mr(o.result,a)}}}async function es(e,t,n,r,i){let a=e.matches.filter(e=>e.shouldCallHandler()),o={};return await Promise.all(a.map(a=>a.resolve(async s=>{try{let{hasClientLoader:c}=t(a),l=a.route.id,u=c?await s(async()=>{let{data:t}=await n(e,r,i,[l]);return cs(t,l)}):await s();o[a.route.id]={type:`data`,result:u}}catch(e){o[a.route.id]={type:`error`,result:e}}}))),o}async function ts(e,t,n,r,i,a,o,s=()=>!0){let c=new Set,l=!1,u=e.matches.map(()=>ls()),d=ls(),f={},p=Promise.all(e.matches.map(async(t,i)=>t.resolve(async p=>{u[i].resolve();let m=t.route.id,{hasLoader:h,hasClientLoader:g}=n(t),_=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(_)){l||=t.shouldRevalidateArgs!=null&&h;return}if(s(t)&&g){h&&(l=!0);try{f[m]={type:`data`,result:await p(async()=>{let{data:t}=await r(e,a,o,[m]);return cs(t,m)})}}catch(e){f[m]={type:`error`,result:e}}return}h&&c.add(m);try{f[m]={type:`data`,result:await p(async()=>cs(await d.promise,m))}}catch(e){f[m]={type:`error`,result:e}}})));if(await Promise.all(u.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||c.size===0)&&!window.__reactRouterHdrActive)d.resolve({routes:{}});else{let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let n=await r(e,a,o,t);d.resolve(n.data)}catch(e){d.reject(e)}}return await p,await ns(d.promise,e.matches,c,f),f}async function ns(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof ad&&(r[e].result=i)})}catch{}}async function rs(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());Yo(i,`No fetcher match found`);let a=i.route.id,o=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,n,r,[a]);return cs(i,a)}));return{[i.route.id]:o}}function is(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function as(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&wr(i.pathname,t)===`/`?i.pathname=`${vl(t)}/_root.${r}`:i.pathname=`${vl(i.pathname)}.${r}`,i}async function os(e,t,n,r){let{request:i}=e,a=as(i.url,t,n,`data`);i.method===`GET`&&(a=is(a),r&&a.searchParams.set(`_routes`,r.join(`,`)));let o=await fetch(a,await qo(i));if(o.status>=400&&!o.headers.has(`X-Remix-Response`))throw new Dl(o.status,o.statusText,await o.text());if(o.status===204&&o.headers.has(`X-Remix-Redirect`))return{status:od,data:{redirect:{redirect:o.headers.get(`X-Remix-Redirect`),status:Number(o.headers.get(`X-Remix-Status`)||`302`),revalidate:o.headers.get(`X-Remix-Revalidate`)===`true`,reload:o.headers.get(`X-Remix-Reload-Document`)===`true`,replace:o.headers.get(`X-Remix-Replace`)===`true`}}};if(sd.has(o.status)){let e={};return r&&i.method!==`GET`&&(e[r[0]]={data:void 0}),{status:o.status,data:{routes:e}}}Yo(o.body,`No response body to decode`);try{let e=await ss(o.body,window),t;if(i.method===`GET`){let n=e.value;t=id in n?{redirect:n[id]}:{routes:n}}else{let n=e.value,i=r?.[0];Yo(i,`No routeId found for single fetch call decoding`),t=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:o.status,data:t}}catch{throw Error(`Unable to decode turbo-stream response`)}}function ss(e,t){return Uo(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&El.includes(e)&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new Dl(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[id]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function cs(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw Cl(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new ad(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function ls(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}async function us(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){if(console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&import.meta.hot)throw t;return window.location.reload(),new Promise(()=>{})}}function ds(e,t,n){return Cs(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),bs(e,n))}function fs(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function ps(e){if(!e.css)return;let t=fs(e);await Promise.all(t.map(hs))}async function ms(e,t){if(!e.css&&!t.links||!ws())return;let n=[];if(e.css&&n.push(...fs(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!gs(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(hs))}async function hs(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function gs(e){return e!=null&&typeof e.page==`string`}function _s(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function vs(e,t,n){return Cs((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await us(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_s).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function ys(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function bs(e,t,{includeHydrateFallback:n}={}){return xs(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function xs(e){return[...new Set(e)]}function Ss(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Cs(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!gs(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ss(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function ws(){if(cd!==void 0)return cd;let e=document.createElement(`link`);return cd=e.relList.supports(`preload`),e=null,cd}function Ts(){let{nonce:e}=Ys();return qc.createElement(uc,{title:`Loading...`,renderScripts:!0},lu?qc.createElement(`script`,{nonce:e,dangerouslySetInnerHTML:{__html:`
91
91
  console.log(
92
92
  "💿 Hey developer 👋. You can provide a way better UX than this " +
93
93
  "when your app is loading JS modules and/or running \`clientLoader\` " +
94
94
  "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
95
95
  "for more information."
96
96
  );
97
- `}}):null)}function _s(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function vs(e,t,n){let r=Ds(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?gs:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>Lc.createElement($s,{error:La()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:Lc.createElement(t.Layout,null,Lc.createElement(r,null))}:{Component:r},...a?{errorElement:Lc.createElement(t.Layout,null,Lc.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:Lc.createElement(t.Layout,null,Lc.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function ys(e,t,n,r,i=``,a=_s(e),o=Promise.resolve({Component:()=>null})){return(a[i]||[]).map(i=>{let s=t[i.id];Bo(s,"No `routeModule` available to create server routes");let c={...vs(i,s,r),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:r?()=>o:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=ys(e,t,n,r,i.id,a,o);return l.length>0&&(c.children=l),c})}function bs(e,t,n,r,i,a){return Cs(t,n,r,i,a,``,_s(t),e)}function xs(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new pl(400,`Bad Request`,Error(n),!0)}}function Ss(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new pl(405,`Method Not Allowed`,Error(r),!0)}function Cs(e,t,n,r,i,a=``,o=_s(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return Bo(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw Ss(`action`,a.id);return l(e)}function f(e){import(e)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?as(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...vs(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:ws(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,unstable_pattern:s},d)=>{try{return await m(async()=>(Bo(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,unstable_pattern:s,async serverLoader(){if(xs(`loader`,a),f){if(e)return t;if(o)throw l}return u(d)}}):u(d)))}finally{f=!1}},h.loader.hydrate=Os(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,unstable_pattern:r},o)=>m(async()=>{if(Bo(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw Ss(`clientAction`,a.id);return d(o)}return c.clientAction({request:e,params:t,context:n,unstable_pattern:r,async serverAction(){return xs(`action`,a),d(o)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw Ss(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=Es(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await import(a.clientLoaderModule):await n();return Bo(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return xs(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?import(a.clientActionModule):n();p(a);let{clientAction:t}=await e;return Bo(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return xs(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await import(a.clientMiddlewareModule):await n();return Bo(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return ws(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=Cs(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function ws(e,t,n,r,i){if(i)return Ts(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?vr(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}else return e=>r(e)}return t.shouldRevalidate}function Ts(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function Es(e,t){let n=ts(e,t),r=is(e),i=await n;return await Promise.all([r,as(e,i)]),{Component:Ds(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function Ds(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function Os(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}function ks(e,t){return e.mode===`lazy`&&t===!0}function As({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=sr(n.routes,e,n.basename);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function js(e,t,n,r,i,a){if(ks(r,n))return async({path:o,patch:s,signal:c,fetcherKey:l})=>{Hu.has(o)||await Ps([o],l?window.location.href:o,e,t,n,i,a,r.manifestPath,s,c)}}function Ms(e,t,n,r,i,a){Ic.useEffect(()=>{if(!ks(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;Hu.has(n)||Bu.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(Bu.keys()).filter(e=>Hu.has(e)?(Bu.delete(e),!1):!0);if(s.length!==0)try{await Ps(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=Is(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Ns(e,t){let n=e||`/__manifest`;return t==null?n:`${t}${n}`.replace(/\/+/g,`/`)}async function Ps(e,t,n,r,i,a,o,s,c,l){let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Ns(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>Uu){Bu.clear();return}let f;try{let e=await fetch(d,{signal:l});if(e.ok){if(e.status===204&&e.headers.has(`X-Remix-Reload-Document`)){if(!t){console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.`);return}try{if(sessionStorage.getItem(Wu)===n.version){console.error(`Unable to discover routes due to manifest version mismatch.`);return}sessionStorage.setItem(Wu,n.version)}catch{}window.location.href=t,console.warn(`Detected manifest version mismatch, reloading...`),await new Promise(()=>{})}else if(e.status>=400)throw Error(await e.text())}else throw Error(`${e.status} ${e.statusText}`);try{sessionStorage.removeItem(Wu)}catch{}f=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Fs(e,Hu));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,Cs(m,r,null,i,a,e)))}function Fs(e,t){if(t.size>=Vu){let e=t.values().next().value;t.delete(e)}t.add(e)}function Is(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Ls(){let e=X.useContext(Ml);return Bo(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Rs(){let e=X.useContext(Nl);return Bo(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}function zs(){let e=X.useContext(Gu);return Bo(e,`You must render this element inside a <HydratedRouter> element`),e}function Bs(e,t){let n=X.useContext(Gu),[r,i]=X.useState(!1),[a,o]=X.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=X.useRef(null);X.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),X.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Vs(s,p),onBlur:Vs(c,m),onMouseEnter:Vs(l,p),onMouseLeave:Vs(u,m),onTouchStart:Vs(d,p)}]:[a,f,{}]:[!1,f,{}]}function Vs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Hs(e,t,n){if(n&&!qu)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}function Us({nonce:e}){let{isSpaMode:t,manifest:n,routeModules:r,criticalCss:i}=zs(),{errors:a,matches:o}=Rs(),s=Hs(o,a,t),c=X.useMemo(()=>ns(s,r,n),[s,r,n]);return X.createElement(X.Fragment,null,typeof i==`string`?X.createElement(`style`,{[Ku]:``,dangerouslySetInnerHTML:{__html:i}}):null,typeof i==`object`?X.createElement(`link`,{[Ku]:``,rel:`stylesheet`,href:i.href,nonce:e}):null,c.map(({key:t,link:n})=>ss(n)?X.createElement(Ws,{key:t,nonce:e,...n}):X.createElement(`link`,{key:t,nonce:e,...n})))}function Ws({page:e,...t}){let{router:n}=Ls(),r=X.useMemo(()=>sr(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?X.createElement(Ks,{page:e,matches:r,...t}):null}function Gs(e){let{manifest:t,routeModules:n}=zs(),[r,i]=X.useState([]);return X.useEffect(()=>{let r=!1;return ls(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ks({page:e,matches:t,...n}){let r=la(),{future:i,manifest:a,routeModules:o}=zs(),{basename:s}=Ls(),{loaderData:c,matches:l}=Rs(),u=X.useMemo(()=>us(e,t,l,a,r,`data`),[e,t,l,a,r]),d=X.useMemo(()=>us(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=X.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Xo(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=X.useMemo(()=>ds(d,a),[d,a]),m=Gs(d);return X.createElement(X.Fragment,null,f.map(e=>X.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>X.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>X.createElement(`link`,{key:e,nonce:n.nonce,...t})))}function qs(){let{isSpaMode:e,routeModules:t}=zs(),{errors:n,matches:r,loaderData:i}=Rs(),a=la(),o=Hs(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,data:d,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({data:d,loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
97
+ `}}):null)}function Es(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function Ds(e,t,n){let r=Is(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?Ts:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>Kc.createElement(lc,{error:Wa()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:Kc.createElement(t.Layout,null,Kc.createElement(r,null))}:{Component:r},...a?{errorElement:Kc.createElement(t.Layout,null,Kc.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:Kc.createElement(t.Layout,null,Kc.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function Os(e,t,n,r,i=``,a=Es(e),o=Promise.resolve({Component:()=>null})){return(a[i]||[]).map(i=>{let s=t[i.id];Yo(s,"No `routeModule` available to create server routes");let c={...Ds(i,s,r),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:r?()=>o:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=Os(e,t,n,r,i.id,a,o);return l.length>0&&(c.children=l),c})}function ks(e,t,n,r,i,a){return Ms(t,n,r,i,a,``,Es(t),e)}function As(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new Dl(400,`Bad Request`,Error(n),!0)}}function js(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new Dl(405,`Method Not Allowed`,Error(r),!0)}function Ms(e,t,n,r,i,a=``,o=Es(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return Yo(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw js(`action`,a.id);return l(e)}function f(e){import(e)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?ms(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...Ds(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:Ns(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,pattern:s,url:d},p)=>{let h=f;return f=!1,await m(async()=>(Yo(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,pattern:s,url:d,async serverLoader(){if(As(`loader`,a),h){if(e)return t;if(o)throw l}return u(p)}}):u(p)))},h.loader.hydrate=Ls(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>m(async()=>{if(Yo(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw js(`clientAction`,a.id);return d(s)}return c.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return As(`action`,a),d(s)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw js(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=Fs(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await import(a.clientLoaderModule):await n();return Yo(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return As(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?import(a.clientActionModule):n();p(a);let{clientAction:t}=await e;return Yo(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return As(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await import(a.clientMiddlewareModule):await n();return Yo(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return Ns(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=Ms(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function Ns(e,t,n,r,i){if(i)return Ps(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?Sr(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}else return e=>r(e)}return t.shouldRevalidate}function Ps(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function Fs(e,t){let n=us(e,t),r=ps(e),i=await n;return await Promise.all([r,ms(e,i)]),{Component:Is(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function Is(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function Ls(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}function Rs(e){let t=new Set;return e.forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);for(let n=1;n<e.length;n++)e[n]===`/`&&t.add(e.slice(0,n));t.add(e)}),Array.from(t)}function zs(e,t){return e.mode===`lazy`&&t===!0}function Bs({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=ur(n.routes,e,n.basename||`/`,!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function Vs(e,t,n,r,i,a,o){if(zs(i,r))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(dd.has(s))return;let{state:d}=e();await Ws([s],u?window.location.href:$n(d.navigation.location||d.location),t,n,r,a,o,i.manifestPath,c,l)}}function Hs(e,t,n,r,i,a){Gc.useEffect(()=>{if(!zs(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;dd.has(n)||ld.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(ld.keys()).filter(e=>dd.has(e)?(ld.delete(e),!1):!0);if(s.length!==0)try{await Ws(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=Ks(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Us(e,t){let n=e||`/__manifest`;return t==null?n:_l([t,n])}async function Ws(e,t,n,r,i,a,o,s,c,l){e=Rs(e);let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Us(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>fd){ld.clear();return}let f;try{let e=await fetch(d,{signal:l});if(e.ok){if(e.status===204&&e.headers.has(`X-Remix-Reload-Document`)){if(!t){console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.`);return}try{if(sessionStorage.getItem(pd)===n.version){console.error(`Unable to discover routes due to manifest version mismatch.`);return}sessionStorage.setItem(pd,n.version)}catch{}window.location.href=t,console.warn(`Detected manifest version mismatch, reloading...`),await new Promise(()=>{})}else if(e.status>=400)throw Error(await e.text())}else throw Error(`${e.status} ${e.statusText}`);try{sessionStorage.removeItem(pd)}catch{}f=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Gs(e,dd));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,Ms(m,r,null,i,a,e)))}function Gs(e,t){if(t.size>=ud){let e=t.values().next().value;t.delete(e)}t.add(e)}function Ks(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function qs(){let e=X.useContext(Ql);return Yo(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Js(){let e=X.useContext($l);return Yo(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}function Ys(){let e=X.useContext(md);return Yo(e,`You must render this element inside a <HydratedRouter> element`),e}function Xs(e,t){let n=X.useContext(md),[r,i]=X.useState(!1),[a,o]=X.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=X.useRef(null);X.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),X.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Zs(s,p),onBlur:Zs(c,m),onMouseEnter:Zs(l,p),onMouseLeave:Zs(u,m),onTouchStart:Zs(d,p)}]:[a,f,{}]:[!1,f,{}]}function Zs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Qs(e,t,n){if(n&&!gd)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}function $s({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a,nonce:o}=Ys(),{errors:s,matches:c}=Js(),l=Qs(c,s,n),u=X.useMemo(()=>ds(l,i,r),[l,i,r]);return e==null&&o&&(e=o),X.createElement(X.Fragment,null,typeof a==`string`?X.createElement(`style`,{[hd]:``,nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?X.createElement(`link`,{[hd]:``,rel:`stylesheet`,href:a.href,nonce:e,crossOrigin:t}):null,u.map(({key:n,link:r})=>gs(r)?X.createElement(ec,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):X.createElement(`link`,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t})))}function ec({page:e,...t}){let n=da(),{nonce:r}=Ys(),{router:i}=qs(),a=X.useMemo(()=>lr(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?X.createElement(nc,{page:e,matches:a,...t}):X.createElement(rc,{page:e,matches:a,...t})):null}function tc(e){let{manifest:t,routeModules:n}=Ys(),[r,i]=X.useState([]);return X.useEffect(()=>{let r=!1;return vs(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function nc({page:e,matches:t,...n}){let r=ga(),{future:i}=Ys(),{basename:a}=qs(),o=X.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=as(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return X.createElement(X.Fragment,null,o.map(e=>X.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function rc({page:e,matches:t,...n}){let r=ga(),{future:i,manifest:a,routeModules:o}=Ys(),{basename:s}=qs(),{loaderData:c,matches:l}=Js(),u=X.useMemo(()=>ys(e,t,l,a,r,`data`),[e,t,l,a,r]),d=X.useMemo(()=>ys(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=X.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=as(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=X.useMemo(()=>bs(d,a),[d,a]),m=tc(d);return X.createElement(X.Fragment,null,f.map(e=>X.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>X.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>X.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function ic(){let{isSpaMode:e,routeModules:t}=Ys(),{errors:n,matches:r,loaderData:i}=Js(),a=ga(),o=Qs(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,data:d,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({data:d,loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
98
98
 
99
- To reference the meta function API, see https://remix.run/route/meta`);h.meta=m,u[e]=h,c=[...m],l=c}return X.createElement(X.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!Js(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return X.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return X.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?X.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return X.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:zo(t)}})}catch{return null}return X.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function Js(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}function Ys(){qu=!0}function Xs(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o}=zs(),{router:s,static:c,staticContext:l}=Ls(),{matches:u}=Rs(),d=ia(),f=ks(a,o);i&&(i.didRenderScripts=!0);let p=Hs(u,null,r);X.useEffect(()=>{Ys()},[]);let m=X.useMemo(()=>{if(d)return null;let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${f?``:`import ${JSON.stringify(t.url)}`};
100
- ${p.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];Bo(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
99
+ To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return X.createElement(X.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!ac(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return X.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return X.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?X.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return X.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:Jo(t)}})}catch{return null}return X.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function ac(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}function oc(){gd=!0}function sc(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o,nonce:s}=Ys(),{router:c,static:l,staticContext:u}=qs(),{matches:d}=Js(),f=da(),p=zs(a,o);e.nonce==null&&s&&(e={...e,nonce:s}),i&&(i.didRenderScripts=!0);let m=Qs(d,null,r);X.useEffect(()=>{oc()},[]);let h=X.useMemo(()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${p?``:`import ${JSON.stringify(t.url)}`};
100
+ ${m.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];Yo(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
101
101
  `),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
102
102
  `)}).join(`
103
103
  `)}
104
- ${f?`window.__reactRouterManifest = ${JSON.stringify(As(t,s),null,2)};`:``}
105
- window.__reactRouterRouteModules = {${p.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
104
+ ${p?`window.__reactRouterManifest = ${JSON.stringify(Bs(t,c),null,2)};`:``}
105
+ window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
106
106
 
107
- import(${JSON.stringify(t.entry.module)});`:` `;return X.createElement(X.Fragment,null,X.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),X.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),h=qu||d?[]:Zs(t.entry.imports.concat(ds(p,t,{includeHydrateFallback:!0}))),g=typeof t.sri==`object`?t.sri:{};return Wa(!d,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),qu||d?null:X.createElement(X.Fragment,null,typeof t.sri==`object`?X.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,f?null:X.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],suppressHydrationWarning:!0}),X.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],suppressHydrationWarning:!0}),h.map(t=>X.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:g[t],suppressHydrationWarning:!0})),m)}function Zs(e){return[...new Set(e)]}function Qs(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}function $s({error:e,isOutsideRemixApp:t}){console.error(e);let n=Fc.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
107
+ import(${JSON.stringify(t.entry.module)});`:` `;return X.createElement(X.Fragment,null,X.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),X.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),g=gd||f?[]:[...new Set(t.entry.imports.concat(bs(m,t,{includeHydrateFallback:!0})))],_=typeof t.sri==`object`?t.sri:{};return $a(!f,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),gd||f?null:X.createElement(X.Fragment,null,typeof t.sri==`object`?X.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}}):null,p?null:X.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:_[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),X.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:_[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),g.map(t=>X.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:_[t],nonce:e.nonce,suppressHydrationWarning:!0})),h)}function cc(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}function lc({error:e,isOutsideRemixApp:t}){let{nonce:n}=Ys();console.error(e);let r=Wc.createElement(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:`
108
108
  console.log(
109
109
  "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
110
110
  );
111
- `}});if(kr(e))return Fc.createElement(ec,{title:`Unhandled Thrown Response!`},Fc.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),Ul?n:null);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return Fc.createElement(ec,{title:`Application Error!`,isOutsideRemixApp:t},Fc.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),Fc.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function ec({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=zs();return i.root?.Layout&&!n?r:Fc.createElement(`html`,{lang:`en`},Fc.createElement(`head`,null,Fc.createElement(`meta`,{charSet:`utf-8`}),Fc.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),Fc.createElement(`title`,null,e)),Fc.createElement(`body`,null,Fc.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?Fc.createElement(Xs,null):null)))}function tc(e,t){return Hr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Gn({window:t?.window}),hydrationData:t?.hydrationData||rc(),routes:e,mapRouteProperties:Ka,hydrationRouteProperties:ru,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function nc(e,t){return Hr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Kn({window:t?.window}),hydrationData:t?.hydrationData||rc(),routes:e,mapRouteProperties:Ka,hydrationRouteProperties:ru,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function rc(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ic(e.errors)}),e}function ic(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new pl(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function ac({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=Z.useRef();i.current??=Gn({window:r,v5Compat:!0});let a=i.current,[o,s]=Z.useState({action:a.action,location:a.location}),c=Z.useCallback(e=>{n===!1?s(e):Z.startTransition(()=>s(e))},[n]);return Z.useLayoutEffect(()=>a.listen(c),[a,c]),Z.createElement(to,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,unstable_useTransitions:n})}function oc({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=Z.useRef();i.current??=Kn({window:r,v5Compat:!0});let a=i.current,[o,s]=Z.useState({action:a.action,location:a.location}),c=Z.useCallback(e=>{n===!1?s(e):Z.startTransition(()=>s(e))},[n]);return Z.useLayoutEffect(()=>a.listen(c),[a,c]),Z.createElement(to,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,unstable_useTransitions:n})}function sc({basename:e,children:t,history:n,unstable_useTransitions:r}){let[i,a]=Z.useState({action:n.action,location:n.location}),o=Z.useCallback(e=>{r===!1?a(e):Z.startTransition(()=>a(e))},[r]);return Z.useLayoutEffect(()=>n.listen(o),[n,o]),Z.createElement(to,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,unstable_useTransitions:r})}function cc({getKey:e,storageKey:t,...n}){let r=Z.useContext(Gu),{basename:i}=Z.useContext(zl),a=la(),o=Na();yc({getKey:e,storageKey:t});let s=Z.useMemo(()=>{if(!r||!e)return null;let t=vc(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return Z.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${zo(JSON.stringify(t||nd))}, ${zo(JSON.stringify(s))})`}})}function lc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uc(e){let t=Z.useContext(Ml);return q(t,lc(e)),t}function dc(e){let t=Z.useContext(Nl);return q(t,lc(e)),t}function fc(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:c}={}){let l=pa(),u=la(),d=va(e,{relative:a});return Z.useCallback(f=>{if(So(f,t)){f.preventDefault();let t=n===void 0?Zn(u)===Zn(d):n,p=()=>l(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:o,unstable_defaultShouldRevalidate:s});c?Z.startTransition(()=>p()):p()}},[u,l,d,n,r,t,e,i,a,o,s,c])}function pc(e){qn(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Z.useRef(Co(e)),n=Z.useRef(!1),r=la(),i=Z.useMemo(()=>wo(r.search,n.current?null:t.current),[r.search]),a=pa();return[i,Z.useCallback((e,t)=>{let r=Co(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}function mc(){let{router:e}=uc(`useSubmit`),{basename:t}=Z.useContext(zl),n=Aa(),r=e.fetch,i=e.navigate;return Z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Do(e,t);a.navigate===!1?await r(a.fetcherKey||td(),n,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function hc(e,{relative:t}={}){let{basename:n}=Z.useContext(zl),r=Z.useContext(Vl);q(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...va(e||`.`,{relative:t})},o=la();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:al([n,a.pathname])),Zn(a)}function gc({key:e}={}){let{router:t}=uc(`useFetcher`),n=dc(`useFetcher`),r=Z.useContext(Il),i=Z.useContext(Vl),a=i.matches[i.matches.length-1]?.route.id;q(r,`useFetcher must be used inside a FetchersContext`),q(i,`useFetcher must be used inside a RouteContext`),q(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=Z.useId(),[s,c]=Z.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:u,resetFetcher:d,fetch:f}=t;Z.useEffect(()=>(u(s),()=>l(s)),[l,u,s]);let p=Z.useCallback(async(e,t)=>{q(a,`No routeId available for fetcher.load()`),await f(s,a,e,t)},[s,a,f]),m=mc(),h=Z.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:s})},[s,m]),g=Z.useCallback(e=>d(s,e),[d,s]),_=Z.useMemo(()=>{let e=Z.forwardRef((e,t)=>Z.createElement($u,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),v=n.fetchers.get(s)||wl,y=r.get(s);return Z.useMemo(()=>({Form:_,submit:h,load:p,reset:g,...v,data:y}),[_,h,p,g,v,y])}function _c(){let e=dc(`useFetchers`);return Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e}))}function vc(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:br(e.pathname,n)||e.pathname},t)),i??=e.key,i}function yc({getKey:e,storageKey:t}={}){let{router:n}=uc(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=dc(`useScrollRestoration`),{basename:a}=Z.useContext(zl),o=la(),s=Na(),c=ja();Z.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),xc(Z.useCallback(()=>{if(c.state===`idle`){let t=vc(o,s,a,e);rd[t]=window.scrollY}try{sessionStorage.setItem(t||nd,JSON.stringify(rd))}catch(e){qn(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(Z.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||nd);e&&(rd=JSON.parse(e))}catch{}},[t]),Z.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(rd,()=>window.scrollY,e?(t,n)=>vc(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),Z.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{qn(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function bc(e,t){let{capture:n}=t||{};Z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function xc(e,t){let{capture:n}=t||{};Z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Sc({when:e,message:t}){let n=Ba(e);Z.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),Z.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function Cc(e,{relative:t}={}){let n=Z.useContext(Fl);q(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=uc(`useViewTransitionState`),i=va(e,{relative:t});if(!n.isTransitioning)return!1;let a=br(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=br(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _r(i.pathname,o)!=null||_r(i.pathname,a)!=null}function wc({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=Qn(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`},i=Oc();return zc.createElement(to,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,unstable_useTransitions:!1})}function Tc({context:e,router:t,hydrate:n=!0,nonce:r}){q(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:Oc(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Dc(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${zo(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return zc.createElement(zc.Fragment,null,zc.createElement(Ml.Provider,{value:i},zc.createElement(Nl.Provider,{value:s},zc.createElement(Il.Provider,{value:a},zc.createElement(Fl.Provider,{value:{isTransitioning:!1}},zc.createElement(to,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,unstable_useTransitions:!1},zc.createElement(Ec,{routes:t.routes,future:t.future,state:s})))))),o?zc.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function Ec({routes:e,future:t,state:n}){return ba(e,void 0,n,void 0,t)}function Dc(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)kr(r)?n[e]={...r,__type:`RouteErrorResponse`}:r instanceof Error?n[e]={message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:n[e]=r;return n}function Oc(){return{createHref:jc,encodeLocation:Mc,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function kc(e,t){return Ur(e,{...t,mapRouteProperties:Ka})}function Ac(e,t,n={}){let r={},i=ar(e,Ka,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,navigation:Cl,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:jc,encodeLocation:Mc,getFetcher(){return wl},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return Tl},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function jc(e){return typeof e==`string`?e:Zn(e)}function Mc(e){let t=typeof e==`string`?e:Zn(e);t=t.replace(/ $/,`%20`);let n=id.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var Nc,J,Y,Pc,Fc,X,Ic,Lc,Rc,Z,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad=n((()=>{Nc=r(Un(),1),J=r(Un(),1),Y=r(Un(),1),Pc=r(Un(),1),Fc=r(Un(),1),X=r(Un(),1),Ic=r(Un(),1),Lc=r(Un(),1),Rc=r(Un(),1),Z=r(Un(),1),zc=r(Un(),1),Bc=e=>{throw TypeError(e)},Vc=(e,t,n)=>t.has(e)||Bc(`Cannot `+n),Hc=(e,t,n)=>(Vc(e,t,`read from private field`),n?n.call(e):t.get(e)),Uc=(e,t,n)=>t.has(e)?Bc(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Wc=(e=>(e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`,e))(Wc||{}),Gc=`popstate`,qc=class{constructor(e){if(Uc(this,Kc,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Hc(this,Kc).has(e))return Hc(this,Kc).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){Hc(this,Kc).set(e,t)}},Kc=new WeakMap,Jc=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]),Yc=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]),Xc=/^:[\w-]+$/,Zc=3,Qc=2,$c=1,el=10,tl=-2,nl=e=>e===`*`,rl=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,il=e=>rl.test(e),al=e=>e.join(`/`).replace(/\/\/+/g,`/`),ol=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),sl=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,cl=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,ll=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}},ul=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},dl=(e,t)=>{let n=ul(e,t);return n.headers.set(`X-Remix-Reload-Document`,`true`),n},fl=(e,t)=>{let n=ul(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},pl=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}},ml=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,hl=Symbol(`Uninstrumented`),gl=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),_l=[`POST`,`PUT`,`PATCH`,`DELETE`],vl=new Set(_l),yl=[`GET`,..._l],bl=new Set(yl),xl=new Set([301,302,303,307,308]),Sl=new Set([307,308]),Cl={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wl={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},El=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Dl=`remix-router-transitions`,Ol=Symbol(`ResetLoaderData`),kl=new WeakMap,Al=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(q(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=kl.get(i);o||(o={},kl.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=nr(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)qn(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)qn(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},jl=new WeakMap,Ml=Nc.createContext(null),Ml.displayName=`DataRouter`,Nl=Nc.createContext(null),Nl.displayName=`DataRouterState`,Pl=Nc.createContext(!1),Fl=Nc.createContext({isTransitioning:!1}),Fl.displayName=`ViewTransition`,Il=Nc.createContext(new Map),Il.displayName=`Fetchers`,Ll=Nc.createContext(null),Ll.displayName=`Await`,Rl=e=>Nc.createElement(Ll.Provider,e),zl=Nc.createContext(null),zl.displayName=`Navigation`,Bl=Nc.createContext(null),Bl.displayName=`Location`,Vl=Nc.createContext({outlet:null,matches:[],isDataRoute:!1}),Vl.displayName=`Route`,Hl=Nc.createContext(null),Hl.displayName=`RouteError`,Ul=!0,Wl=`REACT_ROUTER_ERROR`,Gl=`REDIRECT`,Kl=`ROUTE_ERROR_RESPONSE`,ql=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`,Jl=J.createContext(null),Yl=J.createElement(xa,null),Xl=class extends J.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=oa(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:J.createElement(Vl.Provider,{value:this.props.routeContext},J.createElement(Hl.Provider,{value:e,children:this.props.component}));return this.context?J.createElement(Sa,{error:e},t):t}},Xl.contextType=Pl,Zl=new WeakMap,Ql=0,$l={},eu={},tu=Y.useOptimistic,nu=()=>void 0,ru=[`HydrateFallback`,`hydrateFallbackElement`],iu=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}},au=Y.memo(Xa),ou=class extends Y.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`<Await> caught the following error during render`,e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=0;if(!(n instanceof Promise))i=1,r=Promise.resolve(),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_data`,{get:()=>n});else if(this.state.error){i=2;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_error`,{get:()=>e})}else n._tracked?(r=n,i=`_error`in r?2:`_data`in r?1:0):(i=0,Object.defineProperty(n,`_tracked`,{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,`_data`,{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(n,`_error`,{get:()=>e})}));if(i===2&&!t)throw r._error;if(i===2)return Y.createElement(Ll.Provider,{value:r,children:t});if(i===1)return Y.createElement(Ll.Provider,{value:r,children:e});throw r}},su=ao,cu=`get`,lu=`application/x-www-form-urlencoded`,uu=null,du=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),fu=-1,pu=-2,mu=-3,hu=-4,gu=-5,_u=-6,vu=-7,yu=`B`,bu=`D`,xu=`E`,Su=`M`,Cu=`N`,wu=`P`,Tu=`R`,Eu=`S`,Du=`Y`,Ou=`U`,ku=`Z`,Au=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},ju=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),Mu=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0,Nu={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Pu=/[&><\u2028\u2029]/g,Fu=Symbol(`SingleFetchRedirect`),Iu=class extends Error{},Lu=202,Ru=new Set([100,101,204,205]),Bu=new Set,Vu=1e3,Hu=new Set,Uu=7680,Wu=`react-router-manifest-version`,Gu=X.createContext(void 0),Gu.displayName=`FrameworkContext`,Ku=`data-react-router-critical-css`,qu=!1,Ju=class extends Fc.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?Fc.createElement($s,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}},Yu=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Yu&&(window.__reactRouterVersion=`7.12.0`)}catch{}sc.displayName=`unstable_HistoryRouter`,Xu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zu=Z.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u,unstable_defaultShouldRevalidate:d,...f},p){let{basename:m,unstable_useTransitions:h}=Z.useContext(zl),g=typeof c==`string`&&Xu.test(c),_=jr(c,m);c=_.to;let v=sa(c,{relative:r}),[y,b,x]=Bs(n,f),S=fc(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h});function C(t){e&&e(t),t.defaultPrevented||S(t)}let w=Z.createElement(`a`,{...f,...x,href:_.absoluteURL||v,onClick:_.isExternal||i?e:C,ref:Qs(p,b),target:s,"data-discover":!g&&t===`render`?`true`:void 0});return y&&!g?Z.createElement(Z.Fragment,null,w,Z.createElement(Ws,{page:v})):w}),Zu.displayName=`Link`,Qu=Z.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=va(a,{relative:c.relative}),d=la(),f=Z.useContext(Nl),{navigator:p,basename:m}=Z.useContext(zl),h=f!=null&&Cc(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=br(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return Z.createElement(Zu,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)}),Qu.displayName=`NavLink`,$u=Z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=cu,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},m)=>{let{unstable_useTransitions:h}=Z.useContext(zl),g=mc(),_=hc(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Xu.test(s);return Z.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});h&&n!==!1?Z.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})}),$u.displayName=`Form`,cc.displayName=`ScrollRestoration`,ed=0,td=()=>`__${String(++ed)}__`,nd=`react-router-scroll-positions`,rd={},id=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i})),od=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=s,e.stringifySetCookie=c,e.serialize=c,e.stringifySetCookie=c,e.serialize=c;let t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||f,a=0;do{let t=u(e,a,r);if(t===-1)break;let o=l(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=d(e,a,t);n[s]===void 0&&(n[s]=i(d(e,t+1,o))),a=o+1}while(a<r);return n}function c(e,a,o){let s=typeof e==`object`?e:{...o,name:e,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!t.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!n.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!r.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!i.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!p(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function l(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function u(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function d(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function f(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function p(e){return a.call(e)===`[object Date]`}})),sd=a(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e!=`string`||e in{}}function i(){return Object.create(null)}function a(e){return typeof e==`string`&&!!e.trim()}function o(e,t){var o=e.split(`;`).filter(a),c=s(o.shift()),l=c.name,u=c.value;if(t=t?Object.assign({},n,t):n,r(l))return null;try{u=t.decodeValues?decodeURIComponent(u):u}catch(e){console.error(`set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.`,e)}var d=i();return d.name=l,d.value=u,o.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join(`=`);if(n===`expires`)d.expires=new Date(i);else if(n===`max-age`){var a=parseInt(i,10);Number.isNaN(a)||(d.maxAge=a)}else n===`secure`?d.secure=!0:n===`httponly`?d.httpOnly=!0:n===`samesite`?d.sameSite=i:n===`partitioned`?d.partitioned=!0:n&&(d[n]=i)}}),d}function s(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function c(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?i():[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var s=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!s&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=s}if(Array.isArray(e)||(e=[e]),t.map){var c=i();return e.filter(a).reduce(function(e,n){var i=o(n,t);return i&&!r(i.name)&&(e[i.name]=i),e},c)}else return e.filter(a).map(function(e){return o(e,t)}).filter(Boolean)}function l(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=c,t.exports.parse=c,t.exports.parseString=o,t.exports.splitCookiesString=l}));function cd({context:e,url:t,nonce:n}){typeof t==`string`&&(t=new URL(t));let{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o}=e,s=ys(r.routes,i,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,r=i[n],a=e.manifest.routes[n];r&&a&&Os(n,r.clientLoader,a.hasLoader,e.isSpaMode)&&(r.HydrateFallback||!a.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let c=Ac(s,e.staticHandlerContext);return kf.createElement(kf.Fragment,null,kf.createElement(Gu.Provider,{value:{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,serializeError:e.serializeError,renderMeta:e.renderMeta}},kf.createElement(Ju,{location:c.state.location},kf.createElement(Tc,{router:c,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?kf.createElement(kf.Suspense,null,kf.createElement(Vo,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function ld(e,t){return function({initialEntries:n,initialIndex:r,hydrationData:i,future:a}){let o=Af.useRef(),s=Af.useRef();return o.current??=(s.current={future:{unstable_subResourceIntegrity:a?.unstable_subResourceIntegrity===!0,v8_middleware:a?.v8_middleware===!0,unstable_trailingSlashAwareDataRequests:a?.unstable_trailingSlashAwareDataRequests===!0},manifest:{routes:{},entry:{imports:[],module:``},url:``,version:``},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:`lazy`,manifestPath:`/__manifest`}},qa(ud(ar(e,e=>e),t===void 0?a?.v8_middleware?new qc:{}:t,s.current.manifest,s.current.routeModules),{initialEntries:n,initialIndex:r,hydrationData:i})),Af.createElement(Gu.Provider,{value:s.current},Af.createElement(Ja,{router:o.current}))}}function ud(e,t,n,r,i){return e.map(e=>{if(!e.id)throw Error(`Expected a route.id in react-router processRoutes() function`);let a={id:e.id,path:e.path,index:e.index,Component:e.Component?lo(e.Component):void 0,HydrateFallback:e.HydrateFallback?po(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?go(e.ErrorBoundary):void 0,action:e.action?n=>e.action({...n,context:t}):void 0,loader:e.loader?n=>e.loader({...n,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...n)=>e({...n[0],context:t},n[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},o={id:e.id,path:e.path,index:e.index,parentId:i,hasAction:e.action!=null,hasLoader:e.loader!=null,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:e.ErrorBoundary!=null,module:`build/stub-path-to-module.js`,clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return n.routes[a.id]=o,r[e.id]={default:a.Component||$a,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=ud(e.children,t,n,r,a.id)),a})}function dd(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}async function fd(e,t){let n=md(e);return t.length>0&&(n=await If(n,t[0])),n}async function pd(e,t){if(t.length>0){for(let n of t){let t=await Lf(e,n);if(t!==!1)return hd(t)}return null}return hd(e)}function md(e){return btoa(vd(encodeURIComponent(JSON.stringify(e))))}function hd(e){try{return JSON.parse(decodeURIComponent(gd(atob(e))))}catch{return{}}}function gd(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;)i=t.charAt(r++),/[\w*+\-./@]/.exec(i)?n+=i:(a=i.charCodeAt(0),a<256?n+=`%`+_d(a,2):n+=`%u`+_d(a,4).toUpperCase());return n}function _d(e,t){let n=e.toString(16);for(;n.length<t;)n=`0`+n;return n}function vd(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;){if(i=t.charAt(r++),i===`%`){if(t.charAt(r)===`u`){if(a=t.slice(r+1,r+5),/^[\da-f]{4}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=5;continue}}else if(a=t.slice(r,r+2),/^[\da-f]{2}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=2;continue}}n+=i}return n}function yd(e,t){Wa(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}function bd(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}function xd(e){return e===`development`||e===`production`||e===`test`}function Sd(e,t){if(e instanceof Error&&t!==`development`){let e=Error(`Unexpected Server Error`);return e.stack=void 0,e}return e}function Cd(e,t){return Object.entries(e).reduce((e,[n,r])=>Object.assign(e,{[n]:Sd(r,t)}),{})}function wd(e,t){let n=Sd(e,t);return{message:n.message,stack:n.stack}}function Td(e,t){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(kr(i))r[e]={...i,__type:`RouteErrorResponse`};else if(i instanceof Error){let n=Sd(i,t);r[e]={message:n.message,stack:n.stack,__type:`Error`,...n.name===`Error`?{}:{__subType:n.name}}}else r[e]=i;return r}function Ed(e,t,n){let r=sr(e,t,n);return r?r.map(e=>({params:e.params,pathname:e.pathname,route:e.route})):null}async function Dd(e,t){let n=await e({request:kd(Od(t.request)),params:t.params,context:t.context,unstable_pattern:t.unstable_pattern});if(Vi(n)&&n.init&&n.init.status&&Ui(n.init.status))throw new Response(null,n.init);return n}function Od(e){let t=new URL(e.url),n=t.searchParams.getAll(`index`);t.searchParams.delete(`index`);let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append(`index`,e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex=`half`),new Request(t.href,i)}function kd(e){let t=new URL(e.url);t.searchParams.delete(`_routes`);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex=`half`),new Request(t.href,n)}function Ad(e,t){if(e===!1||e==null)throw console.error(`The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose`),Error(t)}function jd(e){globalThis[Hf]=e}function Md(){return globalThis[Hf]}function Nd(e,t){if(typeof process<`u`)try{if(process.env?.IS_RR_BUILD_REQUEST===`yes`)return e.headers.get(t)}catch{}return null}function Pd(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function Fd(e,t=``,n=Pd(e)){return(n[t]||[]).map(t=>({...t,children:Fd(e,t.id,n)}))}function Id(e,t,n=``,r=Pd(e)){return(r[n]||[]).map(n=>{let i={hasErrorBoundary:n.id===`root`||n.module.ErrorBoundary!=null,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let t=Nd(e.request,`X-React-Router-Prerender-Data`);if(t!=null){let e=t&&decodeURI(t);Ad(e,`Missing prerendered data for route`);let r=new TextEncoder().encode(e),i=(await Qo(new ReadableStream({start(e){e.enqueue(r),e.close()}}),global)).value;if(i&&Fu in i){let e=i[Fu],t={status:e.status};throw e.reload?dl(e.redirect,t):e.replace?fl(e.redirect,t):ul(e.redirect,t)}else{Ad(i&&n.id in i,`Unable to decode prerendered data`);let e=i[n.id];return Ad(`data`in e,`Unable to process prerendered data`),e.data}}return await Dd(n.module.loader,e)}:void 0,action:n.module.action?e=>Dd(n.module.action,e):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:Id(e,t,n.id,r),...i}})}function Ld(e){return zo(JSON.stringify(e))}function Rd(e,t){return zd(e,e=>{let n=t.routes[e.route.id];return Ad(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function zd(e,t,n){let r=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=r>=0?e.matches.slice(0,r+1):e.matches,a;if(r>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:o}=e;e.matches.slice(r).some(e=>{let r=e.route.id;return t[r]&&(!n||!n.hasOwnProperty(r))?a=t[r]:i[r]&&!o.hasOwnProperty(r)&&(a=i[r]),a!=null})}let o=new Headers(n);return i.reduce((n,r,o)=>{let{id:s}=r.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=a!=null&&o===i.length-1,d=u&&a!==c&&a!==l,f=t(r);if(f==null){let e=new Headers(n);return d&&Bd(a,e),Bd(l,e),Bd(c,e),e}let p=new Headers(typeof f==`function`?f({loaderHeaders:c,parentHeaders:n,actionHeaders:l,errorHeaders:u?a:void 0}):f);return d&&Bd(a,p),Bd(l,p),Bd(c,p),Bd(n,p),p},new Headers(o))}function Bd(e,t){let n=e.get(`Set-Cookie`);if(n){let e=(0,Mf.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append(`Set-Cookie`,e)})}}function Vd(e,t){let n=e.get(`origin`),r=typeof n==`string`&&n!==`null`?new URL(n).host:n,i=Wd(e);if(r&&(!i||r!==i.value)&&!Ud(r,t))throw i?Error(`${i.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`):Error("`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action.")}function Hd(e,t){let n=e.split(`.`),r=t.split(`.`);if(r.length<1||n.length<r.length||r.length===1&&(r[0]===`*`||r[0]===`**`))return!1;for(;r.length;){let e=r.pop(),t=n.pop();switch(e){case``:return!1;case`*`:if(t)continue;return!1;case`**`:return r.length>0?!1:t!==void 0;case void 0:default:if(t!==e)return!1}}return n.length===0}function Ud(e,t=[]){return t.some(t=>t&&(t===e||Hd(e,t)))}function Wd(e){let t=e.get(`x-forwarded-host`)?.split(`,`)[0]?.trim(),n=e.get(`host`);return t?{type:`x-forwarded-host`,value:t}:n?{type:`host`,value:n}:void 0}async function Gd(e,t,n,r,i,a,o){try{Vd(r.headers,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[]);let t=new Request(i,{method:r.method,body:r.body,headers:r.headers,signal:r.signal,...r.body?{duplex:`half`}:void 0});return s(await n.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return s(await e(t))}catch(e){return c(e)}}:void 0}))}catch(e){return c(e)}function s(e){return Hi(e)?e:l(e)}function c(n){return o(n),qd(r,e,t,{result:{error:n},headers:new Headers,status:500})}function l(n){let i=Rd(n,e);if(Ui(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!kr(e)||e.error)&&o(e)}),Cd(n.errors,t));let a;return a=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]},qd(r,e,t,{result:a,headers:i,status:n.statusCode})}}async function Kd(e,t,n,r,i,a,o){let s=new URL(r.url).searchParams.get(`_routes`),c=s?new Set(s.split(`,`)):null;try{let t=new Request(i,{headers:r.headers,signal:r.signal});return l(await n.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return u(e)}}:void 0}))}catch(e){return u(e)}function l(e){return Hi(e)?e:d(e)}function u(n){return o(n),qd(r,e,t,{result:{error:n},headers:new Headers,status:500})}function d(n){let i=Rd(n,e);if(Ui(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!kr(e)||e.error)&&o(e)}),Cd(n.errors,t));let a={},s=new Set(n.matches.filter(e=>c?c.has(e.route.id):e.route.loader!=null).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&s.has(e)&&(a[e]={data:t});return qd(r,e,t,{result:a,headers:i,status:n.statusCode})}}function qd(e,t,n,{result:r,headers:i,status:a}){let o=new Headers(i);return o.set(`X-Remix-Response`,`yes`),Uf.has(a)?new Response(null,{status:a,headers:o}):(o.set(`Content-Type`,`text/x-script`),o.delete(`Content-Length`),new Response(Xd(r,e.signal,t.entry.module.streamTimeout,n),{status:a||200,headers:o}))}function Jd(e,t,n,r){let i=Yd(e.status,e.headers,n.basename),a=new Headers(e.headers);return a.delete(`Location`),a.set(`Content-Type`,`text/x-script`),qd(t,n,r,{result:t.method===`GET`?{[Fu]:i}:i,headers:a,status:Lu})}function Yd(e,t,n){let r=t.get(`Location`);return n&&(r=br(r,n)||r),{redirect:r,status:e,revalidate:t.has(`X-Remix-Revalidate`)||t.has(`Set-Cookie`),reload:t.has(`X-Remix-Reload-Document`),replace:t.has(`X-Remix-Replace`)}}function Xd(e,t,n,r){let i=new AbortController,a=setTimeout(()=>i.abort(Error(`Server Timeout`)),typeof n==`number`?n:4950);return t.addEventListener(`abort`,()=>clearTimeout(a)),Lo(e,{signal:i.signal,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:i}=r===`production`?Sd(e,r):e;return[`SanitizedError`,t,n,i]}if(e instanceof pl){let{data:t,status:n,statusText:r}=e;return[`ErrorResponse`,t,n,r]}if(e&&typeof e==`object`&&Fu in e)return[`SingleFetchRedirect`,e[Fu]]}],postPlugins:[e=>{if(e&&typeof e==`object`)return[`SingleFetchClassInstance`,Object.fromEntries(Object.entries(e))]},()=>[`SingleFetchFallback`]]})}function Zd(e,t){let n=Fd(e.routes),r=Id(e.routes,e.future),i=xd(t)?t:`production`,a=Ur(r,{basename:e.basename,unstable_instrumentations:e.entry.module.unstable_instrumentations}),o=e.entry.module.handleError||((e,{request:t})=>{i!==`test`&&!t.signal.aborted&&console.error(kr(e)&&e.error?e.error:e)}),s=async(r,s)=>{let c={},l,u=e=>{t===`development`&&Md()?.processRequestError?.(e),o(e,{context:l,params:c,request:r})};if(e.future.v8_middleware){if(s&&!(s instanceof qc)){let e=Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return u(e),rf(e,i)}l=s||new qc}else l=s||{};let d=new URL(r.url),f=e.basename||`/`,p=d.pathname;e.future.unstable_trailingSlashAwareDataRequests?p=p.endsWith(`/_.data`)?p.replace(/_.data$/,``):p.replace(/\.data$/,``):(br(p,f)===`/_root.data`?p=f:p.endsWith(`.data`)&&(p=p.replace(/\.data$/,``)),br(p,f)!==`/`&&p.endsWith(`/`)&&(p=p.slice(0,-1)));let m=Nd(r,`X-React-Router-SPA-Mode`)===`yes`;if(!e.ssr){let t=decodeURI(p);if(f!==`/`){let e=br(t,f);if(e==null)return o(new pl(404,`Not Found`,`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${f}\``),{context:l,params:c,request:r}),new Response(`Not Found`,{status:404,statusText:`Not Found`});t=e}if(e.prerender.length===0)m=!0;else if(!e.prerender.includes(t)&&!e.prerender.includes(t+`/`)){if(d.pathname.endsWith(`.data`))return o(new pl(404,`Not Found`,`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:l,params:c,request:r}),new Response(`Not Found`,{status:404,statusText:`Not Found`});m=!0}}let h=Ns(e.routeDiscovery.manifestPath,f);if(d.pathname===h)try{return await Qd(e,n,d)}catch(e){return u(e),new Response(`Unknown Server Error`,{status:500})}let g=Ed(n,p,e.basename);g&&g.length>0&&Object.assign(c,g[0].params);let _;if(d.pathname.endsWith(`.data`)){let t=new URL(r.url);t.pathname=p;let o=Ed(n,t.pathname,e.basename);_=await $d(i,e,a,r,t,l,u),Wi(_)&&(_=Jd(_,r,e,i)),e.entry.module.handleDataRequest&&(_=await e.entry.module.handleDataRequest(_,{context:l,params:o?o[0].params:{},request:r}),Wi(_)&&(_=Jd(_,r,e,i)))}else if(!m&&g&&g[g.length-1].route.module.default==null&&g[g.length-1].route.module.ErrorBoundary==null)_=await tf(i,e,a,g.slice(-1)[0].route.id,r,l,u);else{let{pathname:n}=d,o;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:n}):t===`development`&&Md()?.getCriticalCss&&(o=await Md()?.getCriticalCss?.(n)),_=await ef(i,e,a,r,l,u,m,o)}return r.method===`HEAD`?new Response(null,{headers:_.headers,status:_.status,statusText:_.statusText}):_};return e.entry.module.unstable_instrumentations&&(s=Pr(s,e.entry.module.unstable_instrumentations.map(e=>e.handler).filter(Boolean))),{routes:n,dataRoutes:r,serverMode:i,staticHandler:a,errorHandler:o,requestHandler:s}}async function Qd(e,t,n){if(e.assets.version!==n.searchParams.get(`version`))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":`true`}});let r={};if(n.searchParams.has(`paths`)){let i=new Set;(n.searchParams.get(`paths`)||``).split(`,`).filter(Boolean).forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);let t=e.split(`/`).slice(1);t.forEach((e,n)=>{let r=t.slice(0,n+1).join(`/`);i.add(`/${r}`)})});for(let n of i){let i=Ed(t,n,e.basename);if(i)for(let t of i){let n=t.route.id,i=e.assets.routes[n];i&&(r[n]=i)}}return Response.json(r,{headers:{"Cache-Control":`public, max-age=31536000, immutable`}})}return new Response(`Invalid Request`,{status:400})}async function $d(e,t,n,r,i,a,o){return r.method===`GET`?await Kd(t,e,n,r,i,a,o):await Gd(t,e,n,r,i,a,o)}async function ef(e,t,n,r,i,a,o,s){try{r.method===`POST`&&Vd(r.headers,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[]);let e=await n.query(r,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(r);return Hi(t)||(t=await c(t,o)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0});return Hi(e)||(e=await c(e,o)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(o,c){let l=Rd(o,t);if(Uf.has(o.statusCode))return new Response(null,{status:o.statusCode,headers:l});o.errors&&=(Object.values(o.errors).forEach(e=>{(!kr(e)||e.error)&&a(e)}),Cd(o.errors,e));let u={loaderData:o.loaderData,actionData:o.actionData,errors:Td(o.errors,e)},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},f={manifest:t.assets,routeModules:bd(t.routes),staticHandlerContext:o,criticalCss:s,serverHandoffString:Ld({...d,criticalCss:s}),serverHandoffStream:Xd(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>wd(t,e)},p=t.entry.module.default;try{return await p(r,o.statusCode,l,f,i)}catch(s){a(s);let c=s;if(Hi(s))try{let e=await af(s);c=new pl(s.status,s.statusText,e)}catch{}o=Wr(n.dataRoutes,o,c),o.errors&&=Cd(o.errors,e);let u={loaderData:o.loaderData,actionData:o.actionData,errors:Td(o.errors,e)};f={...f,staticHandlerContext:o,serverHandoffString:Ld(d),serverHandoffStream:Xd(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await p(r,o.statusCode,l,f,i)}catch(t){return a(t),rf(t,e)}}}}async function tf(e,t,n,r,i,a,o){try{return s(await n.queryRoute(i,{routeId:r,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return s(await e(i))}catch(e){return c(e)}}:void 0}))}catch(e){return c(e)}function s(e){return Hi(e)?e:typeof e==`string`?new Response(e):Response.json(e)}function c(t){if(Hi(t))return t;if(kr(t))return o(t),nf(t,e);if(t instanceof Error&&t.message===`Expected a response from queryRoute`){let t=Error(`Expected a Response to be returned from resource route handler`);return o(t),rf(t,e)}return o(t),rf(t,e)}}function nf(e,t){return Response.json(wd(e.error||Error(`Unexpected Server Error`),t),{status:e.status,statusText:e.statusText})}function rf(e,t){let n=`Unexpected Server Error`;return t!==`production`&&(n+=`
111
+ `}});if(Nr(e))return Wc.createElement(uc,{title:`Unhandled Thrown Response!`},Wc.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),lu?r:null);let i;if(e instanceof Error)i=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);i=Error(t)}return Wc.createElement(uc,{title:`Application Error!`,isOutsideRemixApp:t},Wc.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),Wc.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},i.stack),r)}function uc({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=Ys();return i.root?.Layout&&!n?r:Wc.createElement(`html`,{lang:`en`},Wc.createElement(`head`,null,Wc.createElement(`meta`,{charSet:`utf-8`}),Wc.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),Wc.createElement(`title`,null,e)),Wc.createElement(`body`,null,Wc.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?Wc.createElement(sc,null):null)))}function dc(e,t){return Kr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:qn({window:t?.window}),hydrationData:t?.hydrationData||pc(),routes:e,mapRouteProperties:to,hydrationRouteProperties:Cu,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function fc(e,t){return Kr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Jn({window:t?.window}),hydrationData:t?.hydrationData||pc(),routes:e,mapRouteProperties:to,hydrationRouteProperties:Cu,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function pc(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:mc(e.errors)}),e}function mc(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Dl(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&El.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function hc({basename:e,children:t,useTransitions:n,window:r}){let i=Z.useRef();i.current??=qn({window:r,v5Compat:!0});let a=i.current,[o,s]=Z.useState({action:a.action,location:a.location}),c=Z.useCallback(e=>{n===!1?s(e):Z.startTransition(()=>s(e))},[n]);return Z.useLayoutEffect(()=>a.listen(c),[a,c]),Z.createElement(uo,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function gc({basename:e,children:t,useTransitions:n,window:r}){let i=Z.useRef();i.current??=Jn({window:r,v5Compat:!0});let a=i.current,[o,s]=Z.useState({action:a.action,location:a.location}),c=Z.useCallback(e=>{n===!1?s(e):Z.startTransition(()=>s(e))},[n]);return Z.useLayoutEffect(()=>a.listen(c),[a,c]),Z.createElement(uo,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function _c({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=Z.useState({action:n.action,location:n.location}),o=Z.useCallback(e=>{r===!1?a(e):Z.startTransition(()=>a(e))},[r]);return Z.useLayoutEffect(()=>n.listen(o),[n,o]),Z.createElement(uo,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}function vc({getKey:e,storageKey:t,...n}){let r=Z.useContext(md),{basename:i}=Z.useContext(au),a=ga(),o=Ba();kc({getKey:e,storageKey:t});let s=Z.useMemo(()=>{if(!r||!e)return null;let t=Oc(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),Z.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Jo(JSON.stringify(t||wd))}, ${Jo(JSON.stringify(s))})`}})}function yc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bc(e){let t=Z.useContext(Ql);return q(t,yc(e)),t}function xc(e){let t=Z.useContext($l);return q(t,yc(e)),t}function Sc(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=ba(),d=ga(),f=Ta(e,{relative:o});return Z.useCallback(p=>{if(jo(p,t)){p.preventDefault();let t=n===void 0?$n(d)===$n(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?Z.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Cc(e){Yn(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Z.useRef(Mo(e)),n=Z.useRef(!1),r=ga(),i=Z.useMemo(()=>No(r.search,n.current?null:t.current),[r.search]),a=ba();return[i,Z.useCallback((e,t)=>{let r=Mo(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}function wc(){let{router:e}=bc(`useSubmit`),{basename:t}=Z.useContext(au),n=La(),r=e.fetch,i=e.navigate;return Z.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Io(e,t);a.navigate===!1?await r(a.fetcherKey||Cd(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Tc(e,{relative:t}={}){let{basename:n}=Z.useContext(au),r=Z.useContext(su);q(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ta(e||`.`,{relative:t})},o=ga();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:_l([n,a.pathname])),$n(a)}function Ec({key:e}={}){let{router:t}=bc(`useFetcher`),n=xc(`useFetcher`),r=Z.useContext(nu),i=Z.useContext(su),a=i.matches[i.matches.length-1]?.route.id;q(r,`useFetcher must be used inside a FetchersContext`),q(i,`useFetcher must be used inside a RouteContext`),q(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=Z.useId(),[s,c]=Z.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:u,resetFetcher:d,fetch:f}=t;Z.useEffect(()=>(u(s),()=>l(s)),[l,u,s]);let p=Z.useCallback(async(e,t)=>{q(a,`No routeId available for fetcher.load()`),await f(s,a,e,t)},[s,a,f]),m=wc(),h=Z.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:s})},[s,m]),g=Z.useCallback(e=>d(s,e),[d,s]),_=Z.useMemo(()=>{let e=Z.forwardRef((e,t)=>Z.createElement(xd,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),v=n.fetchers.get(s)||Rl,y=r.get(s);return Z.useMemo(()=>({Form:_,submit:h,load:p,reset:g,...v,data:y}),[_,h,p,g,v,y])}function Dc(){let e=xc(`useFetchers`);return Z.useMemo(()=>Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e})),[e.fetchers])}function Oc(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:wr(e.pathname,n)||e.pathname},t)),i??=e.key,i}function kc({getKey:e,storageKey:t}={}){let{router:n}=bc(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=xc(`useScrollRestoration`),{basename:a}=Z.useContext(au),o=ga(),s=Ba(),c=Ra();Z.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),jc(Z.useCallback(()=>{if(c.state===`idle`){let t=Oc(o,s,a,e);Td[t]=window.scrollY}try{sessionStorage.setItem(t||wd,JSON.stringify(Td))}catch(e){Yn(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(Z.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||wd);e&&(Td=JSON.parse(e))}catch{}},[t]),Z.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Td,()=>window.scrollY,e?(t,n)=>Oc(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),Z.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{Yn(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Ac(e,t){let{capture:n}=t||{};Z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function jc(e,t){let{capture:n}=t||{};Z.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Mc({when:e,message:t}){let n=qa(e);Z.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),Z.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function Nc(e,{relative:t}={}){let n=Z.useContext(tu);q(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bc(`useViewTransitionState`),i=Ta(e,{relative:t});if(!n.isTransitioning)return!1;let a=wr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=wr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return br(i.pathname,o)!=null||br(i.pathname,a)!=null}function Pc({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=er(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`,mask:void 0},i=Lc();return Jc.createElement(uo,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,useTransitions:!1})}function Fc({context:e,router:t,hydrate:n=!0,nonce:r}){q(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:Lc(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Ic(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${Jo(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return Jc.createElement(Jc.Fragment,null,Jc.createElement(Ql.Provider,{value:i},Jc.createElement($l.Provider,{value:s},Jc.createElement(nu.Provider,{value:a},Jc.createElement(tu.Provider,{value:{isTransitioning:!1}},Jc.createElement(uo,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},Jc.createElement(ao,{manifest:t.manifest,routes:t.routes,future:t.future,state:s,isStatic:!0})))))),o?Jc.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function Ic(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)Nr(r)?n[e]={...r,__type:`RouteErrorResponse`}:r instanceof Error?n[e]={message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:n[e]=r;return n}function Lc(){return{createHref:Bc,encodeLocation:Vc,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function Rc(e,t){return qr(e,{...t,mapRouteProperties:to})}function zc(e,t,n={}){let r={},i=sr(e,to,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,v8_trailingSlashAwareDataRequests:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:Ll,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return n.branches},get manifest(){return r},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:Bc,encodeLocation:Vc,getFetcher(){return Rl},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return zl},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function Bc(e){return typeof e==`string`?e:$n(e)}function Vc(e){let t=typeof e==`string`?e:$n(e);t=t.replace(/ $/,`%20`);let n=el.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var Hc,J,Y,Uc,Wc,X,Gc,Kc,qc,Z,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fu,pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed=n((()=>{Hc=r(Un(),1),J=r(Un(),1),Y=r(Un(),1),Uc=r(Un(),1),Wc=r(Un(),1),X=r(Un(),1),Gc=r(Un(),1),Kc=r(Un(),1),qc=r(Un(),1),Z=r(Un(),1),Jc=r(Un(),1),Yc=e=>{throw TypeError(e)},Xc=(e,t,n)=>t.has(e)||Yc(`Cannot `+n),Zc=(e,t,n)=>(Xc(e,t,`read from private field`),n?n.call(e):t.get(e)),Qc=(e,t,n)=>t.has(e)?Yc(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),$c=(e,t,n,r)=>(Xc(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),el=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,tl=/^[\\/]{2}/,nl=(e=>(e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`,e))(nl||{}),rl=`popstate`,al=class{constructor(e){if(Qc(this,il,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Zc(this,il).has(e))return Zc(this,il).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){Zc(this,il).set(e,t)}},il=new WeakMap,ol=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]),sl=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]),cl=/^:[\w-]+$/,ll=3,ul=2,dl=1,fl=10,pl=-2,ml=e=>e===`*`,hl=e=>el.test(e),gl=e=>e.replace(/[\\/]{2,}/g,`/`),_l=e=>gl(e.join(`/`)),vl=e=>e.replace(/\/+$/,``),yl=e=>vl(e).replace(/^\/*/,`/`),bl=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xl=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Sl=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}},Cl=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},wl=(e,t)=>{let n=Cl(e,t);return n.headers.set(`X-Remix-Reload-Document`,`true`),n},Tl=(e,t)=>{let n=Cl(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},El=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Dl=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}},Ol=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,kl=Symbol(`Uninstrumented`),Al=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),jl=[`POST`,`PUT`,`PATCH`,`DELETE`],Ml=new Set(jl),Nl=[`GET`,...jl],Pl=new Set(Nl),Fl=new Set([301,302,303,307,308]),Il=new Set([307,308]),Ll={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rl={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zl={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Bl=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Vl=`remix-router-transitions`,Hl=Symbol(`ResetLoaderData`),ql=class{constructor(e){Qc(this,Ul),Qc(this,Wl),Qc(this,Gl),Qc(this,Kl),$c(this,Ul,e),$c(this,Wl,fr(e))}get stableRoutes(){return Zc(this,Ul)}get activeRoutes(){return Zc(this,Gl)??Zc(this,Ul)}get branches(){return Zc(this,Kl)??Zc(this,Wl)}get hasHMRRoutes(){return Zc(this,Gl)!=null}setRoutes(e){$c(this,Ul,e),$c(this,Wl,fr(e))}setHmrRoutes(e){$c(this,Gl,e),$c(this,Kl,fr(e))}commitHmrRoutes(){Zc(this,Gl)&&($c(this,Ul,Zc(this,Gl)),$c(this,Wl,Zc(this,Kl)),$c(this,Gl,void 0),$c(this,Kl,void 0))}},Ul=new WeakMap,Wl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap,Jl=new WeakMap,Yl=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(q(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Jl.get(i);o||(o={},Jl.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=ir(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)Yn(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)Yn(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Xl=new WeakMap,Zl=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`],Ql=Hc.createContext(null),Ql.displayName=`DataRouter`,$l=Hc.createContext(null),$l.displayName=`DataRouterState`,eu=Hc.createContext(!1),tu=Hc.createContext({isTransitioning:!1}),tu.displayName=`ViewTransition`,nu=Hc.createContext(new Map),nu.displayName=`Fetchers`,ru=Hc.createContext(null),ru.displayName=`Await`,iu=e=>Hc.createElement(ru.Provider,e),au=Hc.createContext(null),au.displayName=`Navigation`,ou=Hc.createContext(null),ou.displayName=`Location`,su=Hc.createContext({outlet:null,matches:[],isDataRoute:!1}),su.displayName=`Route`,cu=Hc.createContext(null),cu.displayName=`RouteError`,lu=!0,uu=`REACT_ROUTER_ERROR`,du=`REDIRECT`,fu=`ROUTE_ERROR_RESPONSE`,pu=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`,mu=J.createContext(null),hu=J.createElement(Oa,null),gu=class extends J.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=pa(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:J.createElement(su.Provider,{value:this.props.routeContext},J.createElement(cu.Provider,{value:e,children:this.props.component}));return this.context?J.createElement(ka,{error:e},t):t}},gu.contextType=eu,_u=new WeakMap,vu=0,yu={},bu={},xu=Y.useOptimistic,Su=()=>void 0,Cu=[`HydrateFallback`,`hydrateFallbackElement`],wu=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}},Tu=Y.memo(ao),Eu=class extends Y.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`<Await> caught the following error during render`,e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=0;if(!(n instanceof Promise))i=1,r=Promise.resolve(),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_data`,{get:()=>n});else if(this.state.error){i=2;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_error`,{get:()=>e})}else n._tracked?(r=n,i=`_error`in r?2:`_data`in r?1:0):(i=0,Object.defineProperty(n,`_tracked`,{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,`_data`,{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(n,`_error`,{get:()=>e})}));if(i===2&&!t)throw r._error;if(i===2)return Y.createElement(ru.Provider,{value:r,children:t});if(i===1)return Y.createElement(ru.Provider,{value:r,children:e});throw r}},Du=ho,Ou=`get`,ku=`application/x-www-form-urlencoded`,Au=null,ju=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),Mu=-1,Nu=-2,Pu=-3,Fu=-4,Iu=-5,Lu=-6,Ru=-7,zu=`B`,Bu=`D`,Vu=`E`,Hu=`M`,Uu=`N`,Wu=`P`,Gu=`R`,Ku=`S`,qu=`Y`,Ju=`U`,Yu=`Z`,Xu=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},Zu=1,Qu=()=>Date.now(),$u=()=>new Promise(e=>setTimeout(e,0)),ed=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),td=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0,nd={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},rd=/[&><\u2028\u2029]/g,id=Symbol(`SingleFetchRedirect`),ad=class extends Error{},od=202,sd=new Set([100,101,204,205]),ld=new Set,ud=1e3,dd=new Set,fd=7680,pd=`react-router-manifest-version`,md=X.createContext(void 0),md.displayName=`FrameworkContext`,hd=`data-react-router-critical-css`,gd=!1,_d=class extends Wc.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?Wc.createElement(lc,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}},vd=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{vd&&(window.__reactRouterVersion=`7.18.0`)}catch{}_c.displayName=`unstable_HistoryRouter`,yd=Z.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=Z.useContext(au),v=typeof l==`string`&&el.test(l),y=Fr(l,h);l=y.to;let b=ma(l,{relative:r}),x=ga(),S=null;if(o){let e=jr(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:_l([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Xs(n,p),E=Sc(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=Z.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:cc(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?Z.createElement(Z.Fragment,null,k,Z.createElement(ec,{page:b})):k}),yd.displayName=`Link`,bd=Z.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Ta(a,{relative:c.relative}),d=ga(),f=Z.useContext($l),{navigator:p,basename:m}=Z.useContext(au),h=f!=null&&Nc(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=wr(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return Z.createElement(yd,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)}),bd.displayName=`NavLink`,xd=Z.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Ou,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=Z.useContext(au),g=wc(),_=Tc(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&el.test(s);return Z.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?Z.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})}),xd.displayName=`Form`,vc.displayName=`ScrollRestoration`,Sd=0,Cd=()=>`__${String(++Sd)}__`,wd=`react-router-scroll-positions`,Td={}})),Dd=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parse=s,e.stringifySetCookie=c,e.serialize=c,e.stringifySetCookie=c,e.serialize=c;let t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||f,a=0;do{let t=u(e,a,r);if(t===-1)break;let o=l(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=d(e,a,t);n[s]===void 0&&(n[s]=i(d(e,t+1,o))),a=o+1}while(a<r);return n}function c(e,a,o){let s=typeof e==`object`?e:{...o,name:e,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!t.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!n.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!r.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!i.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!p(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function l(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function u(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function d(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function f(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function p(e){return a.call(e)===`[object Date]`}})),Od=a(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e!=`string`||e in{}}function i(){return Object.create(null)}function a(e){return typeof e==`string`&&!!e.trim()}function o(e,t){var o=e.split(`;`).filter(a),c=s(o.shift()),l=c.name,u=c.value;if(t=t?Object.assign({},n,t):n,r(l))return null;try{u=t.decodeValues?decodeURIComponent(u):u}catch(e){console.error(`set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.`,e)}var d=i();return d.name=l,d.value=u,o.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join(`=`);if(n===`expires`)d.expires=new Date(i);else if(n===`max-age`){var a=parseInt(i,10);Number.isNaN(a)||(d.maxAge=a)}else n===`secure`?d.secure=!0:n===`httponly`?d.httpOnly=!0:n===`samesite`?d.sameSite=i:n===`partitioned`?d.partitioned=!0:n&&(d[n]=i)}}),d}function s(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function c(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?i():[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var s=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!s&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=s}if(Array.isArray(e)||(e=[e]),t.map){var c=i();return e.filter(a).reduce(function(e,n){var i=o(n,t);return i&&!r(i.name)&&(e[i.name]=i),e},c)}else return e.filter(a).map(function(e){return o(e,t)}).filter(Boolean)}function l(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=c,t.exports.parse=c,t.exports.parseString=o,t.exports.splitCookiesString=l}));function kd({context:e,url:t,nonce:n}){typeof t==`string`&&(t=new URL(t));let{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o}=e,s=Os(r.routes,i,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,r=i[n],a=e.manifest.routes[n];r&&a&&Ls(n,r.clientLoader,a.hasLoader,e.isSpaMode)&&(r.HydrateFallback||!a.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let c=zc(s,e.staticHandlerContext,{branches:e.branches});return qf.createElement(qf.Fragment,null,qf.createElement(md.Provider,{value:{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,nonce:n,serializeError:e.serializeError,renderMeta:e.renderMeta}},qf.createElement(_d,{location:c.state.location},qf.createElement(Fc,{router:c,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?qf.createElement(qf.Suspense,null,qf.createElement(Xo,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function Ad(e,t){return function({initialEntries:n,initialIndex:r,hydrationData:i,future:a}){let o=Jf.useRef(),s=Jf.useRef();return o.current??=(s.current={future:{v8_passThroughRequests:a?.v8_passThroughRequests===!0,v8_middleware:a?.v8_middleware===!0,v8_trailingSlashAwareDataRequests:a?.v8_trailingSlashAwareDataRequests===!0},manifest:{routes:{},entry:{imports:[],module:``},url:``,version:``},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:`lazy`,manifestPath:`/__manifest`}},no(jd(sr(e,e=>e),t===void 0?a?.v8_middleware?new al:{}:t,s.current.manifest,s.current.routeModules),{initialEntries:n,initialIndex:r,hydrationData:i})),Jf.createElement(md.Provider,{value:s.current},Jf.createElement(ro,{router:o.current}))}}function jd(e,t,n,r,i){return e.map(e=>{if(!e.id)throw Error(`Expected a route.id in react-router processRoutes() function`);let a={id:e.id,path:e.path,index:e.index,Component:e.Component?yo(e.Component):void 0,HydrateFallback:e.HydrateFallback?So(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?To(e.ErrorBoundary):void 0,action:e.action?n=>e.action({...n,context:t}):void 0,loader:e.loader?n=>e.loader({...n,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...n)=>e({...n[0],context:t},n[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},o={id:e.id,path:e.path,index:e.index,parentId:i,hasAction:e.action!=null,hasLoader:e.loader!=null,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:e.ErrorBoundary!=null,module:`build/stub-path-to-module.js`,clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return n.routes[a.id]=o,r[e.id]={default:a.Component||co,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=jd(e.children,t,n,r,a.id)),a})}function Md(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}async function Nd(e,t){let n=Fd(e);return t.length>0&&(n=await ep(n,t[0])),n}async function Pd(e,t){if(t.length>0){for(let n of t){let t=await tp(e,n);if(t!==!1)return Id(t)}return null}return Id(e)}function Fd(e){return btoa(zd(encodeURIComponent(JSON.stringify(e))))}function Id(e){try{return JSON.parse(decodeURIComponent(Ld(atob(e))))}catch{return{}}}function Ld(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;)i=t.charAt(r++),/[\w*+\-./@]/.exec(i)?n+=i:(a=i.charCodeAt(0),a<256?n+=`%`+Rd(a,2):n+=`%u`+Rd(a,4).toUpperCase());return n}function Rd(e,t){let n=e.toString(16);for(;n.length<t;)n=`0`+n;return n}function zd(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;){if(i=t.charAt(r++),i===`%`){if(t.charAt(r)===`u`){if(a=t.slice(r+1,r+5),/^[\da-f]{4}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=5;continue}}else if(a=t.slice(r,r+2),/^[\da-f]{2}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=2;continue}}n+=i}return n}function Bd(e,t){$a(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}function Vd(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}function Hd(e){return e===`development`||e===`production`||e===`test`}function Ud(e,t){if(e instanceof Error&&t!==`development`){let e=Error(`Unexpected Server Error`);return e.stack=void 0,e}return e}function Wd(e,t){return Object.entries(e).reduce((e,[n,r])=>Object.assign(e,{[n]:Ud(r,t)}),{})}function Gd(e,t){let n=Ud(e,t);return{message:n.message,stack:n.stack}}function Kd(e,t){if(e===!1||e==null)throw console.error(`The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose`),Error(t)}function qd(e,t,n,r,i){let a=ur(t,r,i??`/`,!1,n);return a?a.map(t=>{let n=e[t.route.id];return Kd(n,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:n}}):null}async function Jd(e,t,n){let r=await e({request:n.v8_passThroughRequests?t.request:Xd(Yd(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if(Ji(r)&&r.init&&r.init.status&&Xi(r.init.status))throw new Response(null,r.init);return r}function Yd(e){let t=new URL(e.url),n=t.searchParams.getAll(`index`);t.searchParams.delete(`index`);let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append(`index`,e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex=`half`),new Request(t.href,i)}function Xd(e){let t=new URL(e.url);t.searchParams.delete(`_routes`);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex=`half`),new Request(t.href,n)}function Zd(e){globalThis[op]=e}function Qd(){return globalThis[op]}function $d(e,t){if(typeof process<`u`)try{if(process.env.hasOwnProperty(`IS_RR_BUILD_REQUEST`)&&process.env.IS_RR_BUILD_REQUEST===`yes`)return e.headers.get(t)}catch{}return null}function ef(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function tf(e,t,n=``,r=ef(e)){return(r[n]||[]).map(n=>{let i={hasErrorBoundary:n.id===`root`||n.module.ErrorBoundary!=null,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let r=$d(e.request,`X-React-Router-Prerender-Data`);if(r!=null){let e=r&&decodeURI(r);Kd(e,`Missing prerendered data for route`);let t=new TextEncoder().encode(e),i=(await ss(new ReadableStream({start(e){e.enqueue(t),e.close()}}),global)).value;if(i&&id in i){let e=i[id],t={status:e.status};throw e.reload?wl(e.redirect,t):e.replace?Tl(e.redirect,t):Cl(e.redirect,t)}else{Kd(i&&n.id in i,`Unable to decode prerendered data`);let e=i[n.id];return Kd(`data`in e,`Unable to process prerendered data`),e.data}}return await Jd(n.module.loader,e,t)}:void 0,action:n.module.action?e=>Jd(n.module.action,e,t):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:tf(e,t,n.id,r),...i}})}function nf(e){return Jo(JSON.stringify(e))}function rf(e,t){return af(e,e=>{let n=t.routes[e.route.id];return Kd(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function af(e,t,n){let r=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=r>=0?e.matches.slice(0,r+1):e.matches,a;if(r>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:o}=e;e.matches.slice(r).some(e=>{let r=e.route.id;return t[r]&&(!n||!n.hasOwnProperty(r))?a=t[r]:i[r]&&!o.hasOwnProperty(r)&&(a=i[r]),a!=null})}let o=new Headers(n);return i.reduce((n,r,o)=>{let{id:s}=r.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=a!=null&&o===i.length-1,d=u&&a!==c&&a!==l,f=t(r);if(f==null){let e=new Headers(n);return d&&of(a,e),of(l,e),of(c,e),e}let p=new Headers(typeof f==`function`?f({loaderHeaders:c,parentHeaders:n,actionHeaders:l,errorHeaders:u?a:void 0}):f);return d&&of(a,p),of(l,p),of(c,p),of(n,p),p},new Headers(o))}function of(e,t){let n=e.get(`Set-Cookie`);if(n){let e=(0,Xf.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append(`Set-Cookie`,e)})}}function sf(e,t){let n=e.headers.get(`origin`),r=null;try{r=typeof n==`string`&&n!==`null`?new URL(n).host:n}catch{throw Error("`origin` header is not a valid URL. Aborting the action.")}let i=new URL(e.url).host;if(r&&r!==i&&!lf(r,t))throw Error("The `request.url` host does not match `origin` header from a forwarded action request. Aborting the action.")}function cf(e,t){let n=e.split(`.`),r=t.split(`.`);if(r.length<1||n.length<r.length)return!1;for(;r.length;){let e=r.pop(),t=n.pop();switch(e){case``:return!1;case`*`:if(t)continue;return!1;case`**`:return r.length>0?!1:t!==void 0;case void 0:default:if(t!==e)return!1}}return n.length===0}function lf(e,t=[]){return t.some(t=>t&&(t===e||cf(e,t)))}function uf(e,t,n){t||=`/`;let r=new URL(e.url),i=r.pathname;n?.v8_trailingSlashAwareDataRequests?i=i.endsWith(`/_.data`)?i.replace(/_\.data$/,``):i.replace(/\.data$/,``):(wr(i,t)===`/_root.data`?i=t:i.endsWith(`.data`)&&(i=i.replace(/\.data$/,``)),wr(i,t)!==`/`&&i.endsWith(`/`)&&(i=i.slice(0,-1)));let a=new URLSearchParams(r.search);a.delete(`_routes`);let o=a.toString();return o&&=`?${o}`,{pathname:i,search:o,hash:``}}async function df(e,t,n,r,i,a,o){try{try{sf(r,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch{return c(Error(`Bad Request`),400)}let t=e.future.v8_passThroughRequests?r:new Request(i,{method:r.method,body:r.body,headers:r.headers,signal:r.signal,...r.body?{duplex:`half`}:void 0});return s(await n.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return s(await e(t))}catch(e){return c(e)}}:void 0,normalizePath:t=>uf(t,e.basename,e.future)}))}catch(e){return c(e)}function s(e){return Yi(e)?e:l(e)}function c(n,i=500){return o(n),pf(r,e,t,{result:{error:n},headers:new Headers,status:i})}function l(n){let i=rf(n,e);if(Xi(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!Nr(e)||e.error)&&o(e)}),Wd(n.errors,t));let a;return a=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]},pf(r,e,t,{result:a,headers:i,status:n.statusCode})}}async function ff(e,t,n,r,i,a,o){let s=new URL(r.url).searchParams.get(`_routes`),c=s?new Set(s.split(`,`)):null;try{let t=e.future.v8_passThroughRequests?r:new Request(i,{headers:r.headers,signal:r.signal});return l(await n.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return u(e)}}:void 0,normalizePath:t=>uf(t,e.basename,e.future)}))}catch(e){return u(e)}function l(e){return Yi(e)?e:d(e)}function u(n){return o(n),pf(r,e,t,{result:{error:n},headers:new Headers,status:500})}function d(n){let i=rf(n,e);if(Xi(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!Nr(e)||e.error)&&o(e)}),Wd(n.errors,t));let a={},s=new Set(n.matches.filter(e=>c?c.has(e.route.id):e.route.loader!=null).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&s.has(e)&&(a[e]={data:t});return pf(r,e,t,{result:a,headers:i,status:n.statusCode})}}function pf(e,t,n,{result:r,headers:i,status:a}){let o=new Headers(i);return o.set(`X-Remix-Response`,`yes`),sp.has(a)?new Response(null,{status:a,headers:o}):(o.set(`Content-Type`,`text/x-script`),o.delete(`Content-Length`),new Response(gf(r,e.signal,t.entry.module.streamTimeout,n),{status:a||200,headers:o}))}function mf(e,t,n,r){let i=hf(e.status,e.headers,n.basename),a=new Headers(e.headers);return a.delete(`Location`),a.set(`Content-Type`,`text/x-script`),pf(t,n,r,{result:t.method===`GET`?{[id]:i}:i,headers:a,status:od})}function hf(e,t,n){let r=t.get(`Location`);return n&&(r=wr(r,n)||r),{redirect:r,status:e,revalidate:t.has(`X-Remix-Revalidate`)||t.has(`Set-Cookie`),reload:t.has(`X-Remix-Reload-Document`),replace:t.has(`X-Remix-Replace`)}}function gf(e,t,n,r){let i=new AbortController,a=setTimeout(()=>{i.abort(Error(`Server Timeout`)),s()},typeof n==`number`?n:4950),o=()=>{i.abort(t.reason),s()};t.addEventListener(`abort`,o);let s=()=>{clearTimeout(a),t.removeEventListener(`abort`,o)};return Ko(e,{signal:i.signal,onComplete:s,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:i}=r===`production`?Ud(e,r):e;return[`SanitizedError`,t,n,i]}if(e instanceof Dl){let{data:t,status:n,statusText:r}=e;return[`ErrorResponse`,t,n,r]}if(e&&typeof e==`object`&&id in e)return[`SingleFetchRedirect`,e[id]]}],postPlugins:[e=>{if(e&&typeof e==`object`)return[`SingleFetchClassInstance`,Object.fromEntries(Object.entries(e))]},()=>[`SingleFetchFallback`]]})}function _f(e,t){let n=tf(e.routes,e.future),r=Hd(t)?t:`production`,i=qr(n,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),a=e.entry.module.handleError||((e,{request:t})=>{r!==`test`&&!t.signal.aborted&&console.error(Nr(e)&&e.error?e.error:e)}),o=async(n,o)=>{let s={},c,l=e=>{t===`development`&&Qd()?.processRequestError?.(e),a(e,{context:c,params:s,request:n})};if(e.future.v8_middleware){if(o&&!(o instanceof al)){let e=Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return l(e),Cf(e,r)}c=o||new al}else c=o||{};let u=new URL(n.url),d=uf(n,e.basename,e.future).pathname,f=$d(n,`X-React-Router-SPA-Mode`)===`yes`;if(!e.ssr){let t=decodeURI(d);if(e.basename&&e.basename!==`/`){let r=wr(t,e.basename);if(r==null)return a(new Dl(404,`Not Found`,`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${e.basename}\``),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});t=r}if(e.prerender.length===0)f=!0;else if(!e.prerender.includes(t.replace(/\/$/,``))&&!e.prerender.includes(t.replace(/[^/]$/,`/`))){if(u.pathname.endsWith(`.data`))return a(new Dl(404,`Not Found`,`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});f=!0}}let p=Us(e.routeDiscovery.manifestPath,e.basename);if(e.routeDiscovery.mode===`lazy`&&u.pathname===p)try{return await vf(e,i.dataRoutes,i._internalRouteBranches,u)}catch(e){return l(e),new Response(`Unknown Server Error`,{status:500})}let m=qd(e.routes,i.dataRoutes,i._internalRouteBranches,d,e.basename);m&&m.length>0&&Object.assign(s,m[0].params);let h;if(u.pathname.endsWith(`.data`))h=await yf(r,e,i,n,d,c,l),Zi(h)&&(h=mf(h,n,e,r)),e.entry.module.handleDataRequest&&(h=await e.entry.module.handleDataRequest(h,{context:c,params:m?m[0].params:{},request:n}),Zi(h)&&(h=mf(h,n,e,r)));else if(!f&&m&&m[m.length-1].route.module.default==null&&m[m.length-1].route.module.ErrorBoundary==null)h=await xf(r,e,i,m.slice(-1)[0].route.id,n,c,l);else{let{pathname:a}=u,o;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:a}):t===`development`&&Qd()?.getCriticalCss&&(o=await Qd()?.getCriticalCss?.(a)),h=await bf(r,e,i,n,c,l,f,o)}return n.method===`HEAD`?new Response(null,{headers:h.headers,status:h.status,statusText:h.statusText}):h};return e.entry.module.instrumentations&&(o=Rr(o,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:r,staticHandler:i,errorHandler:a,requestHandler:o}}async function vf(e,t,n,r){if(r.toString().length>fd)return new Response(null,{statusText:`Bad Request`,status:400});if(e.assets.version!==r.searchParams.get(`version`))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":`true`}});let i={};if(r.searchParams.has(`paths`)){let a=r.searchParams.get(`paths`)||``,o=new Set(a.split(`,`).filter(Boolean));for(let r of o){r.startsWith(`/`)||(r=`/${r}`);let a=qd(e.routes,t,n,r,e.basename);if(a)for(let t of a){let n=t.route.id,r=e.assets.routes[n];r&&(i[n]=r)}}return Response.json(i,{headers:{"Cache-Control":`public, max-age=31536000, immutable`}})}return new Response(`Invalid Request`,{status:400})}async function yf(e,t,n,r,i,a,o){let s=new URL(r.url);return s.pathname=i,$i(r.method)?await df(t,e,n,r,s,a,o):await ff(t,e,n,r,s,a,o)}async function bf(e,t,n,r,i,a,o,s){try{if($i(r.method))try{sf(r,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response(`Bad Request`,{status:400})}let e=await n.query(r,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(r);return Yi(t)||(t=await c(t,o)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>uf(e,t.basename,t.future)});return Yi(e)||(e=await c(e,o)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(o,c){let l=rf(o,t);if(sp.has(o.statusCode))return new Response(null,{status:o.statusCode,headers:l});o.errors&&=(Object.values(o.errors).forEach(e=>{(!Nr(e)||e.error)&&a(e)}),Wd(o.errors,e));let u={loaderData:o.loaderData,actionData:o.actionData,errors:o.errors},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},f={manifest:t.assets,branches:n._internalRouteBranches,routeModules:Vd(t.routes),staticHandlerContext:o,criticalCss:s,serverHandoffString:nf({...d,criticalCss:s}),serverHandoffStream:gf(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>Gd(t,e)},p=t.entry.module.default;try{return await p(r,o.statusCode,l,f,i)}catch(s){a(s);let c=s;if(Yi(s))try{let e=await wf(s);c=new Dl(s.status,s.statusText,e)}catch{}o=Jr(n.dataRoutes,o,c),o.errors&&=Wd(o.errors,e);let u={loaderData:o.loaderData,actionData:o.actionData,errors:o.errors};f={...f,staticHandlerContext:o,serverHandoffString:nf(d),serverHandoffStream:gf(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await p(r,o.statusCode,l,f,i)}catch(t){return a(t),Cf(t,e)}}}}async function xf(e,t,n,r,i,a,o){try{return s(await n.queryRoute(i,{routeId:r,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return s(await e(i))}catch(e){return c(e)}}:void 0,normalizePath:e=>uf(e,t.basename,t.future)}))}catch(e){return c(e)}function s(e){return Yi(e)?e:typeof e==`string`?new Response(e):Response.json(e)}function c(t){if(Yi(t))return t;if(Nr(t))return o(t),Sf(t,e);if(t instanceof Error&&t.message===`Expected a response from queryRoute`){let t=Error(`Expected a Response to be returned from resource route handler`);return o(t),Cf(t,e)}return o(t),Cf(t,e)}}function Sf(e,t){return Response.json(Gd(e.error||Error(`Unexpected Server Error`),t),{status:e.status,statusText:e.statusText})}function Cf(e,t){let n=`Unexpected Server Error`;return t!==`production`&&(n+=`
112
112
 
113
- ${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":`text/plain`}})}function af(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function of(e){return`__flash_${e}__`}function sf({cookie:e,createData:t,readData:n,updateData:r,deleteData:i}){let a=Bf(e)?e:zf(e?.name||`__session`,e);return cf(a),{async getSession(e,t){let r=e&&await a.parse(e,t);return Gf(r&&await n(r)||{},r||``)},async commitSession(e,n){let{id:i,data:o}=e,s=n?.maxAge==null?n?.expires==null?a.expires:n.expires:new Date(Date.now()+n.maxAge*1e3);return i?await r(i,o,s):i=await t(o,s),a.serialize(i,n)},async destroySession(e,t){return await i(e.id),a.serialize(``,{...t,maxAge:void 0,expires:new Date(0)})}}}function cf(e){Wa(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function lf({cookie:e}={}){let t=Bf(e)?e:zf(e?.name||`__session`,e);return cf(t),{async getSession(e,n){return Gf(e&&await t.parse(e,n)||{})},async commitSession(e,n){let r=await t.serialize(e.data,n);if(r.length>4096)throw Error(`Cookie length will exceed browser maximum. Length: `+r.length);return r},async destroySession(e,n){return t.serialize(``,{...n,maxAge:void 0,expires:new Date(0)})}}}function uf({cookie:e}={}){let t=new Map;return sf({cookie:e,async createData(e,n){let r=Math.random().toString(36).substring(2,10);return t.set(r,{data:e,expires:n}),r},async readData(e){if(t.has(e)){let{data:n,expires:r}=t.get(e);if(!r||r>new Date)return n;r&&t.delete(e)}return null},async updateData(e,n,r){t.set(e,{data:n,expires:r})},async deleteData(e){t.delete(e)}})}function df(e,...t){let n=t[0],r=ff(e).replace(/\/:([\w-]+)(\?)?/g,(t,r,i)=>{let a=i===void 0,o=n?.[r];if(a&&o===void 0)throw Error(`Path '${e}' requires param '${r}' but it was not provided`);return o===void 0?``:`/`+o});if(e.endsWith(`*`)){let e=n?.[`*`];e!==void 0&&(r+=`/`+e)}return r||`/`}function ff(e){let t=e.length-1,n=e[t];if(n!==`*`&&n!==`/`)return e;for(t--;t>=0&&e[t]===`/`;t--);return e.slice(0,t+1)}function pf(e){let t=new TextDecoder,n,r=new Promise(e=>n=e),i=!1,a=[],o=null;function s(e){for(let n of a){let r=t.decode(n,{stream:!0});r.endsWith(Jf)&&(r=r.slice(0,-Jf.length)),e.enqueue(qf.encode(r))}a.length=0,o=null}return new TransformStream({transform(t,r){a.push(t),!o&&(o=setTimeout(async()=>{s(r),i||(i=!0,mf(e,r).catch(e=>r.error(e)).then(n))},0))},async flush(e){await r,o&&(clearTimeout(o),s(e)),e.enqueue(qf.encode(`</body></html>`))}})}async function mf(e,t){let n=new TextDecoder(`utf-8`,{fatal:!0}),r=e.getReader();try{let e;for(;(e=await r.read())&&!e.done;){let r=e.value;try{hf(JSON.stringify(n.decode(r,{stream:!0})),t)}catch{hf(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...r)))}), m => m.codePointAt(0))`,t)}}}finally{r.releaseLock()}let i=n.decode();i.length&&hf(JSON.stringify(i),t)}function hf(e,t){t.enqueue(qf.encode(`<script>${gf(`(self.__FLIGHT_DATA||=[]).push(${e})`)}<\/script>`))}function gf(e){return e.replace(/<!--/g,`<\\!--`).replace(/<\/(script)/gi,`</\\$1`)}function _f({renderAppShell:e,title:t,children:n}){return e?Pf.createElement(`html`,{lang:`en`},Pf.createElement(`head`,null,Pf.createElement(`meta`,{charSet:`utf-8`}),Pf.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),Pf.createElement(`title`,null,t)),Pf.createElement(`body`,null,Pf.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},n))):n}function vf({error:e,renderAppShell:t}){console.error(e);let n=Pf.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
113
+ ${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":`text/plain`}})}function wf(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function Tf(e){return`__flash_${e}__`}function Ef({cookie:e,createData:t,readData:n,updateData:r,deleteData:i}){let a=ip(e)?e:rp(e?.name||`__session`,e);return Df(a),{async getSession(e,t){let r=e&&await a.parse(e,t);return lp(r&&await n(r)||{},r||``)},async commitSession(e,n){let{id:i,data:o}=e,s=n?.maxAge==null?n?.expires==null?a.expires:n.expires:new Date(Date.now()+n.maxAge*1e3);return i?await r(i,o,s):i=await t(o,s),a.serialize(i,n)},async destroySession(e,t){return await i(e.id),a.serialize(``,{...t,maxAge:void 0,expires:new Date(0)})}}}function Df(e){$a(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Of({cookie:e}={}){let t=ip(e)?e:rp(e?.name||`__session`,e);return Df(t),{async getSession(e,n){return lp(e&&await t.parse(e,n)||{})},async commitSession(e,n){let r=await t.serialize(e.data,n);if(r.length>4096)throw Error(`Cookie length will exceed browser maximum. Length: `+r.length);return r},async destroySession(e,n){return t.serialize(``,{...n,maxAge:void 0,expires:new Date(0)})}}}function kf({cookie:e}={}){let t=new Map;return Ef({cookie:e,async createData(e,n){let r=Math.random().toString(36).substring(2,10);return t.set(r,{data:e,expires:n}),r},async readData(e){if(t.has(e)){let{data:n,expires:r}=t.get(e);if(!r||r>new Date)return n;r&&t.delete(e)}return null},async updateData(e,n,r){t.set(e,{data:n,expires:r})},async deleteData(e){t.delete(e)}})}function Af(e,...t){let n=t[0],r=jf(e).replace(/\/:([\w-]+)(\?)?/g,(t,r,i)=>{let a=i===void 0,o=n?.[r];if(a&&o===void 0)throw Error(`Path '${e}' requires param '${r}' but it was not provided`);return o===void 0?``:`/`+o});if(e.endsWith(`*`)){let e=n?.[`*`];e!==void 0&&(r+=`/`+e)}return r||`/`}function jf(e){let t=e.length-1,n=e[t];if(n!==`*`&&n!==`/`)return e;for(t--;t>=0&&e[t]===`/`;t--);return e.slice(0,t+1)}function Mf(e){let t=new TextDecoder,n,r=new Promise(e=>n=e),i=!1,a=[],o=null;function s(e){for(let n of a){let r=t.decode(n,{stream:!0});r.endsWith(fp)&&(r=r.slice(0,-fp.length)),e.enqueue(dp.encode(r))}a.length=0,o=null}return new TransformStream({transform(t,r){a.push(t),!o&&(o=setTimeout(async()=>{s(r),i||(i=!0,Nf(e,r).catch(e=>r.error(e)).then(n))},0))},async flush(e){await r,o&&(clearTimeout(o),s(e)),e.enqueue(dp.encode(`</body></html>`))}})}async function Nf(e,t){let n=new TextDecoder(`utf-8`,{fatal:!0}),r=e.getReader();try{let e;for(;(e=await r.read())&&!e.done;){let r=e.value;try{Pf(JSON.stringify(n.decode(r,{stream:!0})),t)}catch{Pf(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...r)))}), m => m.codePointAt(0))`,t)}}}finally{r.releaseLock()}let i=n.decode();i.length&&Pf(JSON.stringify(i),t)}function Pf(e,t){t.enqueue(dp.encode(`<script>${Ff(`(self.__FLIGHT_DATA||=[]).push(${e})`)}<\/script>`))}function Ff(e){return e.replace(/<!--/g,`<\\!--`).replace(/<\/(script)/gi,`</\\$1`)}function If({renderAppShell:e,title:t,children:n}){return e?Qf.createElement(`html`,{lang:`en`},Qf.createElement(`head`,null,Qf.createElement(`meta`,{charSet:`utf-8`}),Qf.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),Qf.createElement(`title`,null,t)),Qf.createElement(`body`,null,Qf.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},n))):n}function Lf({error:e,renderAppShell:t}){console.error(e);let n=Qf.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
114
114
  console.log(
115
115
  "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
116
116
  );
117
- `}});if(kr(e))return Pf.createElement(_f,{renderAppShell:t,title:`Unhandled Thrown Response!`},Pf.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),Ul?n:null);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return Pf.createElement(_f,{renderAppShell:t,title:`Application Error!`},Pf.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),Pf.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function yf({hasRootLayout:e}){let t=La();if(e===void 0)throw Error(`Missing 'hasRootLayout' prop`);return Pf.createElement(vf,{renderAppShell:!e,error:t})}function bf(e){let t={};for(let n of e.matches)xf(t,n);return t}function xf(e,t){t=Array.isArray(t)?t:[t];for(let n of t)e[n.id]={links:n.links,meta:n.meta,default:Xf}}function Sf(e){if(Zf)return Zf(e);throw Error(`React Router v7 requires React 19+ for RSC features.`)}async function Cf({request:e,serverResponse:t,createFromReadableStream:n,renderHTML:r,hydrate:i=!0}){let a=new URL(e.url);if(Tf(a)||Ef(a)||e.headers.has(`rsc-action-id`)||t.headers.get(`React-Router-Resource`)===`true`)return t;if(!t.body)throw Error(`Missing body in server response`);let o=t.clone(),s=null;i&&(s=t.clone());let c=t.body,l,u=[],d=()=>l?new ReadableStream({start(e){l.forEach(t=>e.enqueue(t)),u.push(e)}}):(l=[],c.pipeThrough(new TransformStream({transform(e,t){l.push(e),t.enqueue(e),u.forEach(t=>t.enqueue(e))},flush(){u.forEach(e=>e.close()),u=[]}}))),f=null,p=()=>{let e=Promise.resolve(n(d()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return e.then(e=>e.type===`render`?e.formState:void 0)}}})},m,h;try{if(!o.body)throw Error(`Failed to clone server response`);let e=await n(o.body);if(t.status===Lu&&e.type===`redirect`){let n=new Headers(t.headers);return n.delete(`Content-Encoding`),n.delete(`Content-Length`),n.delete(`Content-Type`),n.delete(`X-Remix-Response`),n.set(`Location`,e.location),new Response(s?.body||``,{headers:n,status:e.status,statusText:t.statusText})}let a=new Headers,c=t.status,l=t.statusText,u=await r(p,{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(m=aa(e.digest),m)return e.digest;let t=oa(e.digest);if(t)return h=t,c=t.status,l=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)a.append(t,n)}}),d=new Headers(a);for(let[e,n]of t.headers)d.append(e,n);if(d.set(`Content-Type`,`text/html; charset=utf-8`),m)return d.set(`Location`,m.location),new Response(u,{status:m.status,headers:d});let f=new TransformStream({flush(e){m&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${zo(m.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(f),{status:c,statusText:l,headers:d});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(pf(s.body)).pipeThrough(f);return new Response(g,{status:c,statusText:l,headers:d})}catch(e){if(e instanceof Response)return e;if(m)return new Response(`Redirect: ${m.location}`,{status:m.status,headers:{Location:m.location}});try{e=h??e;let[a,o]=kr(e)?[e.status,e.statusText]:[500,``],c,l=new Headers,u=await r(()=>{let t=Promise.resolve(n(d())).then(t=>Object.assign(t,{status:a,errors:f?{[f]:e}:{}}));return Object.defineProperties(t,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return t.then(e=>e.type===`render`?e.formState:void 0)}}})},{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(c=aa(e.digest),c)return e.digest;let t=oa(e.digest);if(t)return a=t.status,o=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)l.append(t,n)}}),p=new Headers(l);for(let[e,n]of t.headers)p.append(e,n);if(p.set(`Content-Type`,`text/html; charset=utf-8`),c)return p.set(`Location`,c.location),new Response(u,{status:c.status,headers:p});let m=new TransformStream({flush(e){c&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${zo(c.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(m),{status:a,statusText:o,headers:p});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(pf(s.body)).pipeThrough(m);return new Response(g,{status:a,statusText:o,headers:p})}catch{}throw e}}function wf({getPayload:e}){let t=e(),n=Sf(t);if(n.type===`redirect`)throw new Response(null,{status:n.status,headers:{Location:n.location}});if(n.type!==`render`)return null;let r={...n.loaderData};for(let e of n.matches)Os(e.id,e.clientLoader,e.hasLoader,!1)&&(e.hydrateFallbackElement||!e.hasLoader)&&delete r[e.id];let i={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:n.actionData,actionHeaders:{},basename:n.basename,errors:n.errors,loaderData:r,loaderHeaders:{},location:n.location,statusCode:200,matches:n.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},a=Ac(n.matches.reduceRight((e,t)=>{let n={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(n.children=e),[n]},[]),i),o={future:{v8_middleware:!1,unstable_subResourceIntegrity:!1,unstable_trailingSlashAwareDataRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:{mode:`lazy`,manifestPath:`/__manifest`},routeModules:bf(n)};return Nf.createElement(Pl.Provider,{value:!0},Nf.createElement(Yf,{location:n.location},Nf.createElement(Gu.Provider,{value:o},Nf.createElement(Tc,{context:i,router:a,hydrate:!1,nonce:n.nonce}))))}function Tf(e){return e.pathname.endsWith(`.rsc`)}function Ef(e){return e.pathname.endsWith(`.manifest`)}function Df(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new pl(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=r.stack,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=r.stack,n[e]=t}}else n[e]=r;return n}function Of({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},s=sr(t,r,i);if(s)for(let e of s){let t=e.route.id,r=n(t);Os(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf=n((()=>{ad(),kf=r(Un(),1),Af=r(Un(),1),jf=r(od(),1),Mf=r(sd(),1),Nf=r(Un(),1),Pf=r(Un(),1),Ff=new TextEncoder,If=async(e,t)=>{let n=Ff.encode(e),r=await Rf(t,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n),a=btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,``);return e+`.`+a},Lf=async(e,t)=>{let n=e.lastIndexOf(`.`),r=e.slice(0,n),i=e.slice(n+1),a=Ff.encode(r),o=await Rf(t,[`verify`]);try{let e=dd(atob(i));return await crypto.subtle.verify(`HMAC`,o,e,a)?r:!1}catch{return!1}},Rf=async(e,t)=>crypto.subtle.importKey(`raw`,Ff.encode(e),{name:`HMAC`,hash:`SHA-256`},!1,t),zf=(e,t={})=>{let{secrets:n=[],...r}={path:`/`,sameSite:`lax`,...t};return yd(e,r.expires),{get name(){return e},get isSigned(){return n.length>0},get expires(){return r.maxAge===void 0?r.expires:new Date(Date.now()+r.maxAge*1e3)},async parse(t,i){if(!t)return null;let a=(0,jf.parse)(t,{...r,...i});if(e in a){let t=a[e];return typeof t==`string`&&t!==``?await pd(t,n):``}else return null},async serialize(t,i){return(0,jf.serialize)(e,t===``?``:await fd(t,n),{...r,...i})}}},Bf=e=>e!=null&&typeof e.name==`string`&&typeof e.isSigned==`boolean`&&typeof e.parse==`function`&&typeof e.serialize==`function`,Vf=(e=>(e.Development=`development`,e.Production=`production`,e.Test=`test`,e))(Vf||{}),Hf=`__reactRouterDevServerHooks`,Uf=new Set([...Ru,304]),Wf=(e,t)=>{let n,r,i,a,o,s;return async function(c,l){if(n=typeof e==`function`?await e():e,typeof e==`function`){let e=Zd(n,t);r=e.routes,i=e.serverMode,a=e.staticHandler,o=e.errorHandler,s=e.requestHandler}else if(!r||!i||!a||!o||!s){let e=Zd(n,t);r=e.routes,i=e.serverMode,a=e.staticHandler,o=e.errorHandler,s=e.requestHandler}return s(c,l)}},Gf=(e={},t=``)=>{let n=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(n)},has(e){return n.has(e)||n.has(of(e))},get(e){if(n.has(e))return n.get(e);let t=of(e);if(n.has(t)){let e=n.get(t);return n.delete(t),e}},set(e,t){n.set(e,t)},flash(e,t){n.set(of(e),t)},unset(e){n.delete(e)}}},Kf=e=>e!=null&&typeof e.id==`string`&&e.data!==void 0&&typeof e.has==`function`&&typeof e.get==`function`&&typeof e.set==`function`&&typeof e.flash==`function`&&typeof e.unset==`function`,qf=new TextEncoder,Jf=`</body></html>`,Yf=class extends Pf.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:t.error,location:t.location}:{error:null,location:e.location}}render(){return this.state.error?Pf.createElement(vf,{error:this.state.error,renderAppShell:!0}):this.props.children}},Xf=()=>null,Zf=Nf.use})),$f=i({Await:()=>ro,BrowserRouter:()=>ac,Form:()=>$u,HashRouter:()=>oc,IDLE_BLOCKER:()=>Tl,IDLE_FETCHER:()=>wl,IDLE_NAVIGATION:()=>Cl,Link:()=>Zu,Links:()=>Us,MemoryRouter:()=>Za,Meta:()=>qs,NavLink:()=>Qu,Navigate:()=>Qa,NavigationType:()=>Wc,Outlet:()=>$a,PrefetchPageLinks:()=>Ws,Route:()=>eo,Router:()=>to,RouterContextProvider:()=>qc,RouterProvider:()=>Ja,Routes:()=>no,Scripts:()=>Xs,ScrollRestoration:()=>cc,ServerRouter:()=>cd,StaticRouter:()=>wc,StaticRouterProvider:()=>Tc,UNSAFE_AwaitContextProvider:()=>Rl,UNSAFE_DataRouterContext:()=>Ml,UNSAFE_DataRouterStateContext:()=>Nl,UNSAFE_ErrorResponseImpl:()=>pl,UNSAFE_FetchersContext:()=>Il,UNSAFE_FrameworkContext:()=>Gu,UNSAFE_LocationContext:()=>Bl,UNSAFE_NavigationContext:()=>zl,UNSAFE_RSCDefaultRootErrorBoundary:()=>yf,UNSAFE_RemixErrorBoundary:()=>Ju,UNSAFE_RouteContext:()=>Vl,UNSAFE_ServerMode:()=>Vf,UNSAFE_SingleFetchRedirectSymbol:()=>Fu,UNSAFE_ViewTransitionContext:()=>Fl,UNSAFE_WithComponentProps:()=>co,UNSAFE_WithErrorBoundaryProps:()=>ho,UNSAFE_WithHydrateFallbackProps:()=>fo,UNSAFE_createBrowserHistory:()=>Gn,UNSAFE_createClientRoutes:()=>Cs,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>bs,UNSAFE_createHashHistory:()=>Kn,UNSAFE_createMemoryHistory:()=>Wn,UNSAFE_createRouter:()=>Hr,UNSAFE_decodeViaTurboStream:()=>Qo,UNSAFE_deserializeErrors:()=>Df,UNSAFE_getHydrationData:()=>Of,UNSAFE_getPatchRoutesOnNavigationFunction:()=>js,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Ho,UNSAFE_hydrationRouteProperties:()=>ru,UNSAFE_invariant:()=>q,UNSAFE_mapRouteProperties:()=>Ka,UNSAFE_shouldHydrateRouteLoader:()=>Os,UNSAFE_useFogOFWarDiscovery:()=>Ms,UNSAFE_useScrollRestoration:()=>yc,UNSAFE_withComponentProps:()=>lo,UNSAFE_withErrorBoundaryProps:()=>go,UNSAFE_withHydrateFallbackProps:()=>po,createBrowserRouter:()=>tc,createContext:()=>tr,createCookie:()=>zf,createCookieSessionStorage:()=>lf,createHashRouter:()=>nc,createMemoryRouter:()=>qa,createMemorySessionStorage:()=>uf,createPath:()=>Zn,createRequestHandler:()=>Wf,createRoutesFromChildren:()=>ao,createRoutesFromElements:()=>su,createRoutesStub:()=>ld,createSearchParams:()=>Co,createSession:()=>Gf,createSessionStorage:()=>sf,createStaticHandler:()=>kc,createStaticRouter:()=>Ac,data:()=>Or,generatePath:()=>gr,href:()=>df,isCookie:()=>Bf,isRouteErrorResponse:()=>kr,isSession:()=>Kf,matchPath:()=>_r,matchRoutes:()=>sr,parsePath:()=>Qn,redirect:()=>ul,redirectDocument:()=>dl,renderMatches:()=>oo,replace:()=>fl,resolvePath:()=>Sr,unstable_HistoryRouter:()=>sc,unstable_RSCStaticRouter:()=>wf,unstable_routeRSCServerRequest:()=>Cf,unstable_setDevServerHooks:()=>jd,unstable_usePrompt:()=>Sc,unstable_useRoute:()=>Ua,useActionData:()=>Ia,useAsyncError:()=>za,useAsyncValue:()=>Ra,useBeforeUnload:()=>bc,useBlocker:()=>Ba,useFetcher:()=>gc,useFetchers:()=>_c,useFormAction:()=>hc,useHref:()=>sa,useInRouterContext:()=>ca,useLinkClickHandler:()=>fc,useLoaderData:()=>Pa,useLocation:()=>la,useMatch:()=>da,useMatches:()=>Na,useNavigate:()=>pa,useNavigation:()=>ja,useNavigationType:()=>ua,useOutlet:()=>ga,useOutletContext:()=>ha,useParams:()=>_a,useResolvedPath:()=>va,useRevalidator:()=>Ma,useRouteError:()=>La,useRouteLoaderData:()=>Fa,useRoutes:()=>ya,useSearchParams:()=>pc,useSubmit:()=>mc,useViewTransitionState:()=>Cc}),ep=n((()=>{Qf(),ad()})),tp=a(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{createRequestListener:()=>u}),t.exports=c(l);function u(e,t){let n=t?.onError??d;return async(r,i)=>{let a=new AbortController;i.on(`close`,()=>{a.abort()});let o=p(r,a.signal,t),s={address:r.socket.remoteAddress,family:r.socket.remoteFamily,port:r.socket.remotePort},c;try{c=await e(o,s)}catch(e){try{c=await n(e)??f()}catch(e){console.error(`There was an error in the error handler: ${e}`),c=f()}}let l=[];for(let[e,t]of c.headers)l.push(e,t);if(i.writeHead(c.status,l),c.body!=null&&r.method!==`HEAD`)for await(let e of c.body)i.write(e);i.end()}}function d(e){return console.error(e),f()}function f(){return new Response(new Uint8Array([73,110,116,101,114,110,97,108,32,83,101,114,118,101,114,32,69,114,114,111,114]),{status:500,headers:{"Content-Type":`text/plain`}})}function p(e,t,n){let r=e.method??`GET`,i=m(e.rawHeaders),a=n?.protocol??(`encrypted`in e.socket&&e.socket.encrypted?`https:`:`http:`),o=n?.host??i.get(`host`)??`localhost`,s=new URL(e.url,`${a}//${o}`),c={method:r,headers:i,signal:t};return r!==`GET`&&r!==`HEAD`&&(c.body=new ReadableStream({start(t){e.on(`data`,e=>{t.enqueue(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}),e.on(`end`,()=>{t.close()})}}),c.duplex=`half`),new Request(s,c)}function m(e){let t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}})),np=a(((n,r)=>{var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of s(t))!l.call(e,i)&&i!==n&&a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e)),p=e=>d(a({},`__esModule`,{value:!0}),e),m={};u(m,{createFileSessionStorage:()=>x,createReadableStreamFromReadable:()=>D,createRequestListener:()=>_,readableStreamToString:()=>E,writeAsyncIterableToWritable:()=>T,writeReadableStreamToWritable:()=>w}),r.exports=p(m);var h=(ep(),e($f)),g=tp();function _(e){let t=(0,h.createRequestHandler)(e.build,e.mode);return(0,g.createRequestListener)(async(n,r)=>t(n,await e.getLoadContext?.(n,r)))}var v=t(`fs`),y=f(t(`path`)),b=(ep(),e($f));function x({cookie:e,dir:t}){return(0,b.createSessionStorage)({cookie:e,async createData(e,n){let r=JSON.stringify({data:e,expires:n});for(;;){let e=crypto.getRandomValues(new Uint8Array(8)),n=Buffer.from(e).toString(`hex`);try{let e=S(t,n);if(!e)throw Error(`Error generating session`);return await v.promises.mkdir(y.dirname(e),{recursive:!0}),await v.promises.writeFile(e,r,{encoding:`utf-8`,flag:`wx`}),n}catch(e){if(e.code!==`EEXIST`)throw e}}},async readData(e){try{let n=S(t,e);if(!n)return null;let r=JSON.parse(await v.promises.readFile(n,`utf-8`)),i=r.data,a=typeof r.expires==`string`?new Date(r.expires):null;return!a||a>new Date?i:(a&&await v.promises.unlink(n),null)}catch(e){if(e.code!==`ENOENT`)throw e;return null}},async updateData(e,n,r){let i=JSON.stringify({data:n,expires:r}),a=S(t,e);a&&(await v.promises.mkdir(y.dirname(a),{recursive:!0}),await v.promises.writeFile(a,i,`utf-8`))},async deleteData(e){if(!e)return;let n=S(t,e);if(n)try{await v.promises.unlink(n)}catch(e){if(e.code!==`ENOENT`)throw e}}})}function S(e,t){return/^[0-9a-f]{16}$/i.test(t)?y.join(e,t.slice(0,4),t.slice(4)):null}var C=t(`stream`);async function w(e,t){let n=e.getReader(),r=t;try{for(;;){let{done:e,value:i}=await n.read();if(e){t.end();break}t.write(i),typeof r.flush==`function`&&r.flush()}}catch(e){throw t.destroy(e),e}}async function T(e,t){try{for await(let n of e)t.write(n);t.end()}catch(e){throw t.destroy(e),e}}async function E(e,t){let n=e.getReader(),r=[];for(;;){let{done:e,value:t}=await n.read();if(e)break;t&&r.push(t)}return Buffer.concat(r).toString(t)}var D=e=>{let t=new O(e);return new ReadableStream(t,t)},O=class{highWaterMark;accumulatedSize;stream;controller;constructor(e){this.highWaterMark=e.readableHighWaterMark||new C.Stream.Readable().readableHighWaterMark,this.accumulatedSize=0,this.stream=e,this.enqueue=this.enqueue.bind(this),this.error=this.error.bind(this),this.close=this.close.bind(this)}size(e){return e?.byteLength||0}start(e){this.controller=e,this.stream.on(`data`,this.enqueue),this.stream.once(`error`,this.error),this.stream.once(`end`,this.close),this.stream.once(`close`,this.close)}pull(){this.resume()}cancel(e){this.stream.destroy&&this.stream.destroy(e),this.stream.off(`data`,this.enqueue),this.stream.off(`error`,this.error),this.stream.off(`end`,this.close),this.stream.off(`close`,this.close)}enqueue(e){if(this.controller)try{let t=e instanceof Uint8Array?e:Buffer.from(e),n=(this.controller.desiredSize||0)-t.byteLength;this.controller.enqueue(t),n<=0&&this.pause()}catch{this.controller.error(Error(`Could not create Buffer, chunk must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object`)),this.cancel()}}pause(){this.stream.pause&&this.stream.pause()}resume(){this.stream.readable&&this.stream.resume&&this.stream.resume()}close(){this.controller&&(this.controller.close(),delete this.controller)}error(e){this.controller&&(this.controller.error(e),delete this.controller)}}})),rp=r(a(((t,n)=>{var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!o.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e},l=e=>c(r({},`__esModule`,{value:!0}),e),u={};s(u,{createRequestHandler:()=>p}),n.exports=l(u);var d=(ep(),e($f)),f=np();function p({build:e,getLoadContext:t,mode:n=process.env.NODE_ENV}){let r=(0,d.createRequestHandler)(e,n);return async(e,n,i)=>{try{await g(n,await r(h(e,n),await t?.(e,n)))}catch(e){i(e)}}}function m(e){let t=new Headers;for(let[n,r]of Object.entries(e))if(r)if(Array.isArray(r))for(let e of r)t.append(n,e);else t.set(n,r);return t}function h(e,t){let[,n]=e.get(`X-Forwarded-Host`)?.split(`:`)??[],[,r]=e.get(`host`)?.split(`:`)??[],i=Number.parseInt(n,10),a=Number.parseInt(r,10),o=Number.isSafeInteger(i)?i:Number.isSafeInteger(a)?a:``,s=`${e.hostname}${o?`:${o}`:``}`,c=new URL(`${e.protocol}://${s}${e.originalUrl}`),l=new AbortController,u={method:e.method,headers:m(e.headers),signal:l.signal};return t.on(`finish`,()=>l=null),t.on(`close`,()=>l?.abort()),e.method!==`GET`&&e.method!==`HEAD`&&(u.body=(0,f.createReadableStreamFromReadable)(e),u.duplex=`half`),new Request(c.href,u)}async function g(e,t){e.statusMessage=t.statusText,e.status(t.status);for(let[n,r]of t.headers.entries())e.append(n,r);t.headers.get(`Content-Type`)?.match(/text\/event-stream/i)&&e.flushHeaders(),t.body?await(0,f.writeReadableStreamToWritable)(t.body,e):e.end()}}))(),1),ip=r(Bn(),1),ap=r(ne(),1);function op(e,t){let n={};if(!f(e))return n;try{let r=p(e,`utf-8`),i=JSON.parse(r),a=i.compilerOptions?.paths,o=i.compilerOptions?.baseUrl||`.`;if(a){for(let[e,r]of Object.entries(a))if(r&&r.length>0){let i=e.replace(/\/\*$/,`/`);n[i]=d(t,o,r[0].replace(/\/\*$/,`/`).replace(/^\.\//,``))}}}catch{}let r={};return Object.keys(n).sort((e,t)=>t.length-e.length).forEach(e=>{r[e]=n[e]}),r}async function sp(e,t){let{projectDirectory:n,tsconfigPath:r=d(n,`tsconfig.json`)}=t,{createJiti:i}=await import(`./sfnext-server-jiti-DjnmHo-6.mjs`),a=op(r,n);return i(import.meta.url,{fsCache:!1,interopDefault:!0,alias:a}).import(e)}function cp(){let e=process.env.PUBLIC__app__commerce__api__shortCode,t=process.env.PUBLIC__app__commerce__api__organizationId,n=process.env.PUBLIC__app__commerce__api__clientId,r=process.env.PUBLIC__app__commerce__api__proxy||`/mobify/proxy/api`,i=process.env.SCAPI_PROXY_HOST;if(!e&&!i)throw Error(`Missing PUBLIC__app__commerce__api__shortCode environment variable.
117
+ `}});if(Nr(e))return Qf.createElement(If,{renderAppShell:t,title:`Unhandled Thrown Response!`},Qf.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),lu?n:null);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return Qf.createElement(If,{renderAppShell:t,title:`Application Error!`},Qf.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),Qf.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function Rf({hasRootLayout:e}){let t=Wa();if(e===void 0)throw Error(`Missing 'hasRootLayout' prop`);return Qf.createElement(Lf,{renderAppShell:!e,error:t})}function zf(e){let t={};for(let n of e.matches)Bf(t,n);return t}function Bf(e,t){t=Array.isArray(t)?t:[t];for(let n of t)e[n.id]={links:n.links,meta:n.meta,default:mp}}function Vf(e){if(gp)return gp(e);throw Error(`React Router v7 requires React 19+ for RSC features.`)}async function Hf({request:e,serverResponse:t,createFromReadableStream:n,renderHTML:r,hydrate:i=!0}){let a=new URL(e.url);if(Wf(a)||Gf(a)||e.headers.has(`rsc-action-id`)||t.headers.get(`React-Router-Resource`)===`true`)return t;if(!t.body)throw Error(`Missing body in server response`);let o=t.clone(),s=null;i&&(s=t.clone());let c=t.body,l,u=[],d=()=>l?new ReadableStream({start(e){l.forEach(t=>e.enqueue(t)),u.push(e)}}):(l=[],c.pipeThrough(new TransformStream({transform(e,t){l.push(e),t.enqueue(e),u.forEach(t=>t.enqueue(e))},flush(){u.forEach(e=>e.close()),u=[]}}))),f=null,p=()=>{let e=Promise.resolve(n(d()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return e.then(e=>e.type===`render`?e.formState:void 0)}}})},m,h;try{if(!o.body)throw Error(`Failed to clone server response`);let e=await n(o.body);if(t.status===od&&e.type===`redirect`){if(Ti(e.location))throw Error(`Invalid redirect location`);let n=new Headers(t.headers);return n.delete(`Content-Encoding`),n.delete(`Content-Length`),n.delete(`Content-Type`),n.delete(`X-Remix-Response`),n.set(`Location`,e.location),new Response(s?.body||``,{headers:n,status:e.status,statusText:t.statusText})}let a=new Headers,c=t.status,l=t.statusText,u=await r(p,{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(m=fa(e.digest),m)return e.digest;let t=pa(e.digest);if(t)return h=t,c=t.status,l=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)a.append(t,n)}}),d=new Headers(a);for(let[e,n]of t.headers)d.append(e,n);if(d.set(`Content-Type`,`text/html; charset=utf-8`),m){if(Ti(m.location))throw Error(`Invalid redirect location`);return d.set(`Location`,m.location),new Response(u,{status:m.status,headers:d})}let f=new TransformStream({flush(e){if(m){if(Ti(m.location))return;e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${Jo(m.location)}"/>`))}}});if(!i)return new Response(u.pipeThrough(f),{status:c,statusText:l,headers:d});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(Mf(s.body)).pipeThrough(f);return new Response(g,{status:c,statusText:l,headers:d})}catch(e){if(e instanceof Response)return e;if(m){if(Ti(m.location))throw Error(`Invalid redirect location`);return new Response(`Redirect: ${m.location}`,{status:m.status,headers:{Location:m.location}})}try{let a=h??e,[o,c]=Nr(a)?[a.status,a.statusText]:[500,``],l,u=new Headers,p=await r(()=>{let e=Promise.resolve(n(d())).then(e=>Object.assign(e,{status:o,errors:f?{[f]:a}:{}}));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return e.then(e=>e.type===`render`?e.formState:void 0)}}})},{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(l=fa(e.digest),l)return e.digest;let t=pa(e.digest);if(t)return o=t.status,c=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)u.append(t,n)}}),m=new Headers(u);for(let[e,n]of t.headers)m.append(e,n);if(m.set(`Content-Type`,`text/html; charset=utf-8`),l){if(Ti(l.location))throw Error(`Invalid redirect location`);return m.set(`Location`,l.location),new Response(p,{status:l.status,headers:m})}let g=new TransformStream({flush(e){if(l){if(Ti(l.location))return;e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${Jo(l.location)}"/>`))}}});if(!i)return new Response(p.pipeThrough(g),{status:o,statusText:c,headers:m});if(!s?.body)throw Error(`Failed to clone server response`);let _=p.pipeThrough(Mf(s.body)).pipeThrough(g);return new Response(_,{status:o,statusText:c,headers:m})}catch{}throw e}}function Uf({getPayload:e}){let t=e(),n=Vf(t);if(n.type===`redirect`)throw Ti(n.location)?Error(`Invalid redirect location`):new Response(null,{status:n.status,headers:{Location:n.location}});if(n.type!==`render`)return null;let r={...n.loaderData};for(let e of n.matches)Ls(e.id,e.clientLoader,e.hasLoader,!1)&&(e.hydrateFallbackElement||!e.hasLoader)&&delete r[e.id];let i={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:n.actionData,actionHeaders:{},basename:n.basename,errors:n.errors,loaderData:r,loaderHeaders:{},location:n.location,statusCode:200,matches:n.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},a=zc(n.matches.reduceRight((e,t)=>{let n={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(n.children=e),[n]},[]),i),o={future:{v8_middleware:!1,v8_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:hp}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||hp},routeModules:zf(n)};return Zf.createElement(eu.Provider,{value:!0},Zf.createElement(pp,{location:n.location},Zf.createElement(md.Provider,{value:o},Zf.createElement(Fc,{context:i,router:a,hydrate:!1,nonce:n.nonce}))))}function Wf(e){return e.pathname.endsWith(`.rsc`)}function Gf(e){return e.pathname.endsWith(`.manifest`)}function Kf({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},s=lr(t,r,i);if(s)for(let e of s){let t=e.route.id,r=n(t);Ls(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p=n((()=>{Ed(),qf=r(Un(),1),Jf=r(Un(),1),Yf=r(Dd(),1),Xf=r(Od(),1),Zf=r(Un(),1),Qf=r(Un(),1),$f=new TextEncoder,ep=async(e,t)=>{let n=$f.encode(e),r=await np(t,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n),a=btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,``);return e+`.`+a},tp=async(e,t)=>{let n=e.lastIndexOf(`.`),r=e.slice(0,n),i=e.slice(n+1),a=$f.encode(r),o=await np(t,[`verify`]);try{let e=Md(atob(i));return await crypto.subtle.verify(`HMAC`,o,e,a)?r:!1}catch{return!1}},np=async(e,t)=>crypto.subtle.importKey(`raw`,$f.encode(e),{name:`HMAC`,hash:`SHA-256`},!1,t),rp=(e,t={})=>{let{secrets:n=[],...r}={path:`/`,sameSite:`lax`,...t};return Bd(e,r.expires),{get name(){return e},get isSigned(){return n.length>0},get expires(){return r.maxAge===void 0?r.expires:new Date(Date.now()+r.maxAge*1e3)},async parse(t,i){if(!t)return null;let a=(0,Yf.parse)(t,{...r,...i});if(e in a){let t=a[e];return typeof t==`string`&&t!==``?await Pd(t,n):``}else return null},async serialize(t,i){return(0,Yf.serialize)(e,t===``?``:await Nd(t,n),{...r,...i})}}},ip=e=>e!=null&&typeof e.name==`string`&&typeof e.isSigned==`boolean`&&typeof e.parse==`function`&&typeof e.serialize==`function`,ap=(e=>(e.Development=`development`,e.Production=`production`,e.Test=`test`,e))(ap||{}),op=`__reactRouterDevServerHooks`,sp=new Set([...sd,304]),cp=(e,t)=>{let n,r,i,a,o;return async function(s,c){if(n=typeof e==`function`?await e():e,typeof e==`function`){let e=_f(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}else if(!r||!i||!a||!o){let e=_f(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}return o(s,c)}},lp=(e={},t=``)=>{let n=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(n)},has(e){return n.has(e)||n.has(Tf(e))},get(e){if(n.has(e))return n.get(e);let t=Tf(e);if(n.has(t)){let e=n.get(t);return n.delete(t),e}},set(e,t){n.set(e,t)},flash(e,t){n.set(Tf(e),t)},unset(e){n.delete(e)}}},up=e=>e!=null&&typeof e.id==`string`&&e.data!==void 0&&typeof e.has==`function`&&typeof e.get==`function`&&typeof e.set==`function`&&typeof e.flash==`function`&&typeof e.unset==`function`,dp=new TextEncoder,fp=`</body></html>`,pp=class extends Qf.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:t.error,location:t.location}:{error:null,location:e.location}}render(){return this.state.error?Qf.createElement(Lf,{error:this.state.error,renderAppShell:!0}):this.props.children}},mp=()=>null,hp=`/__manifest`,gp=Zf.use})),vp=i({Await:()=>po,BrowserRouter:()=>hc,Form:()=>xd,HashRouter:()=>gc,IDLE_BLOCKER:()=>zl,IDLE_FETCHER:()=>Rl,IDLE_NAVIGATION:()=>Ll,Link:()=>yd,Links:()=>$s,MemoryRouter:()=>oo,Meta:()=>ic,NavLink:()=>bd,Navigate:()=>so,NavigationType:()=>nl,Outlet:()=>co,PrefetchPageLinks:()=>ec,Route:()=>lo,Router:()=>uo,RouterContextProvider:()=>al,RouterProvider:()=>ro,Routes:()=>fo,Scripts:()=>sc,ScrollRestoration:()=>vc,ServerRouter:()=>kd,StaticRouter:()=>Pc,StaticRouterProvider:()=>Fc,UNSAFE_AwaitContextProvider:()=>iu,UNSAFE_DataRouterContext:()=>Ql,UNSAFE_DataRouterStateContext:()=>$l,UNSAFE_ErrorResponseImpl:()=>Dl,UNSAFE_FetchersContext:()=>nu,UNSAFE_FrameworkContext:()=>md,UNSAFE_LocationContext:()=>ou,UNSAFE_NavigationContext:()=>au,UNSAFE_RSCDefaultRootErrorBoundary:()=>Rf,UNSAFE_RemixErrorBoundary:()=>_d,UNSAFE_RouteContext:()=>su,UNSAFE_ServerMode:()=>ap,UNSAFE_SingleFetchRedirectSymbol:()=>id,UNSAFE_ViewTransitionContext:()=>tu,UNSAFE_WithComponentProps:()=>vo,UNSAFE_WithErrorBoundaryProps:()=>wo,UNSAFE_WithHydrateFallbackProps:()=>xo,UNSAFE_createBrowserHistory:()=>qn,UNSAFE_createClientRoutes:()=>Ms,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>ks,UNSAFE_createHashHistory:()=>Jn,UNSAFE_createMemoryHistory:()=>Kn,UNSAFE_createRouter:()=>Kr,UNSAFE_decodeViaTurboStream:()=>ss,UNSAFE_getHydrationData:()=>Kf,UNSAFE_getPatchRoutesOnNavigationFunction:()=>Vs,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Zo,UNSAFE_hydrationRouteProperties:()=>Cu,UNSAFE_invariant:()=>q,UNSAFE_mapRouteProperties:()=>to,UNSAFE_shouldHydrateRouteLoader:()=>Ls,UNSAFE_useFogOFWarDiscovery:()=>Hs,UNSAFE_useScrollRestoration:()=>kc,UNSAFE_withComponentProps:()=>yo,UNSAFE_withErrorBoundaryProps:()=>To,UNSAFE_withHydrateFallbackProps:()=>So,createBrowserRouter:()=>dc,createContext:()=>rr,createCookie:()=>rp,createCookieSessionStorage:()=>Of,createHashRouter:()=>fc,createMemoryRouter:()=>no,createMemorySessionStorage:()=>kf,createPath:()=>$n,createRequestHandler:()=>cp,createRoutesFromChildren:()=>ho,createRoutesFromElements:()=>Du,createRoutesStub:()=>Ad,createSearchParams:()=>Mo,createSession:()=>lp,createSessionStorage:()=>Ef,createStaticHandler:()=>Rc,createStaticRouter:()=>zc,data:()=>Mr,generatePath:()=>yr,href:()=>Af,isCookie:()=>ip,isRouteErrorResponse:()=>Nr,isSession:()=>up,matchPath:()=>br,matchRoutes:()=>lr,parsePath:()=>er,redirect:()=>Cl,redirectDocument:()=>wl,renderMatches:()=>go,replace:()=>Tl,resolvePath:()=>Er,unstable_HistoryRouter:()=>_c,unstable_RSCStaticRouter:()=>Uf,unstable_routeRSCServerRequest:()=>Hf,unstable_setDevServerHooks:()=>Zd,unstable_usePrompt:()=>Mc,unstable_useRoute:()=>Xa,unstable_useRouterState:()=>Qa,useActionData:()=>Ua,useAsyncError:()=>Ka,useAsyncValue:()=>Ga,useBeforeUnload:()=>Ac,useBlocker:()=>qa,useFetcher:()=>Ec,useFetchers:()=>Dc,useFormAction:()=>Tc,useHref:()=>ma,useInRouterContext:()=>ha,useLinkClickHandler:()=>Sc,useLoaderData:()=>Va,useLocation:()=>ga,useMatch:()=>va,useMatches:()=>Ba,useNavigate:()=>ba,useNavigation:()=>Ra,useNavigationType:()=>_a,useOutlet:()=>Ca,useOutletContext:()=>Sa,useParams:()=>wa,useResolvedPath:()=>Ta,useRevalidator:()=>za,useRouteError:()=>Wa,useRouteLoaderData:()=>Ha,useRoutes:()=>Ea,useSearchParams:()=>Cc,useSubmit:()=>wc,useViewTransitionState:()=>Nc}),yp=n((()=>{_p(),Ed()})),bp=a(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{createRequestListener:()=>u}),t.exports=c(l);function u(e,t){let n=t?.onError??d;return async(r,i)=>{let a=new AbortController;i.on(`close`,()=>{a.abort()});let o=p(r,a.signal,t),s={address:r.socket.remoteAddress,family:r.socket.remoteFamily,port:r.socket.remotePort},c;try{c=await e(o,s)}catch(e){try{c=await n(e)??f()}catch(e){console.error(`There was an error in the error handler: ${e}`),c=f()}}let l=[];for(let[e,t]of c.headers)l.push(e,t);if(i.writeHead(c.status,l),c.body!=null&&r.method!==`HEAD`)for await(let e of c.body)i.write(e);i.end()}}function d(e){return console.error(e),f()}function f(){return new Response(new Uint8Array([73,110,116,101,114,110,97,108,32,83,101,114,118,101,114,32,69,114,114,111,114]),{status:500,headers:{"Content-Type":`text/plain`}})}function p(e,t,n){let r=e.method??`GET`,i=m(e.rawHeaders),a=n?.protocol??(`encrypted`in e.socket&&e.socket.encrypted?`https:`:`http:`),o=n?.host??i.get(`host`)??`localhost`,s=new URL(e.url,`${a}//${o}`),c={method:r,headers:i,signal:t};return r!==`GET`&&r!==`HEAD`&&(c.body=new ReadableStream({start(t){e.on(`data`,e=>{t.enqueue(new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}),e.on(`end`,()=>{t.close()})}}),c.duplex=`half`),new Request(s,c)}function m(e){let t=new Headers;for(let n=0;n<e.length;n+=2)t.append(e[n],e[n+1]);return t}})),xp=a(((n,r)=>{var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of s(t))!l.call(e,i)&&i!==n&&a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e)),p=e=>d(a({},`__esModule`,{value:!0}),e),m={};u(m,{createFileSessionStorage:()=>x,createReadableStreamFromReadable:()=>k,createRequestListener:()=>_,readableStreamToString:()=>O,writeAsyncIterableToWritable:()=>D,writeReadableStreamToWritable:()=>w}),r.exports=p(m);var h=(yp(),e(vp)),g=bp();function _(e){let t=(0,h.createRequestHandler)(e.build,e.mode);return(0,g.createRequestListener)(async(n,r)=>t(n,await e.getLoadContext?.(n,r)))}var v=t(`fs`),y=f(t(`path`)),b=(yp(),e(vp));function x({cookie:e,dir:t}){return(0,b.createSessionStorage)({cookie:e,async createData(e,n){let r=JSON.stringify({data:e,expires:n});for(;;){let e=crypto.getRandomValues(new Uint8Array(8)),n=Buffer.from(e).toString(`hex`);try{let e=S(t,n);if(!e)throw Error(`Error generating session`);return await v.promises.mkdir(y.dirname(e),{recursive:!0}),await v.promises.writeFile(e,r,{encoding:`utf-8`,flag:`wx`}),n}catch(e){if(e.code!==`EEXIST`)throw e}}},async readData(e){try{let n=S(t,e);if(!n)return null;let r=JSON.parse(await v.promises.readFile(n,`utf-8`)),i=r.data,a=typeof r.expires==`string`?new Date(r.expires):null;return!a||a>new Date?i:(a&&await v.promises.unlink(n),null)}catch(e){if(e.code!==`ENOENT`)throw e;return null}},async updateData(e,n,r){let i=JSON.stringify({data:n,expires:r}),a=S(t,e);a&&(await v.promises.mkdir(y.dirname(a),{recursive:!0}),await v.promises.writeFile(a,i,`utf-8`))},async deleteData(e){if(!e)return;let n=S(t,e);if(n)try{await v.promises.unlink(n)}catch(e){if(e.code!==`ENOENT`)throw e}}})}function S(e,t){return/^[0-9a-f]{16}$/i.test(t)?y.join(e,t.slice(0,4),t.slice(4)):null}var C=t(`stream`);async function w(e,t){let n=e.getReader(),r=t,i=T(t);try{for(;;){i.throwIfClosed();let{done:e,value:a}=await i.race(n.read());if(e){t.end();break}i.throwIfClosed();let o=t.write(a);typeof r.flush==`function`&&r.flush(),o||await E(t,i)}}catch(e){try{n.cancel(e).catch(()=>{})}catch{}throw t.destroy(e),e}finally{i.cleanup();try{n.releaseLock()}catch{}}}function T(e){let t=!1,n,r,i=new Promise((e,t)=>{r=t});i.catch(()=>{});function a(){e.off(`error`,s),e.off(`close`,c)}function o(e){t||(t=!0,n=e,a(),r(e))}function s(e){o(e)}function c(){o(Error(`Writable closed before stream finished`))}return e.once(`error`,s),e.once(`close`,c),{cleanup:a,race(e){return Promise.race([e,i])},throwIfClosed(){if(n)throw n;if(e.destroyed||e.writableEnded)throw Error(`Cannot write to a destroyed or ended writable stream`)}}}function E(e,t){let n=()=>{},r=new Promise(t=>{function r(){n(),t()}n=function(){e.off(`drain`,r)},e.once(`drain`,r)});return t.race(r).finally(n)}async function D(e,t){let n=T(t),r=e[Symbol.asyncIterator](),i=!1;try{for(;;){n.throwIfClosed();let{done:e,value:a}=await n.race(r.next());if(e){i=!0;break}n.throwIfClosed(),t.write(a)||await E(t,n)}t.end()}catch(e){if(!i)try{Promise.resolve(r.return?.()).catch(()=>{})}catch{}throw t.destroy(e),e}finally{n.cleanup()}}async function O(e,t){let n=e.getReader(),r=[];for(;;){let{done:e,value:t}=await n.read();if(e)break;t&&r.push(t)}return Buffer.concat(r).toString(t)}var k=e=>{let t=new A(e);return new ReadableStream(t,t)},A=class{highWaterMark;accumulatedSize;stream;controller;constructor(e){this.highWaterMark=e.readableHighWaterMark||new C.Stream.Readable().readableHighWaterMark,this.accumulatedSize=0,this.stream=e,this.enqueue=this.enqueue.bind(this),this.error=this.error.bind(this),this.close=this.close.bind(this)}size(e){return e?.byteLength||0}start(e){this.controller=e,this.stream.on(`data`,this.enqueue),this.stream.once(`error`,this.error),this.stream.once(`end`,this.close),this.stream.once(`close`,this.close)}pull(){this.resume()}cancel(e){this.stream.destroy&&this.stream.destroy(e),this.stream.off(`data`,this.enqueue),this.stream.off(`error`,this.error),this.stream.off(`end`,this.close),this.stream.off(`close`,this.close)}enqueue(e){if(this.controller)try{let t=e instanceof Uint8Array?e:Buffer.from(e),n=(this.controller.desiredSize||0)-t.byteLength;this.controller.enqueue(t),n<=0&&this.pause()}catch{this.controller.error(Error(`Could not create Buffer, chunk must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object`)),this.cancel()}}pause(){this.stream.pause&&this.stream.pause()}resume(){this.stream.readable&&this.stream.resume&&this.stream.resume()}close(){this.controller&&(this.controller.close(),delete this.controller)}error(e){this.controller&&(this.controller.error(e),delete this.controller)}}})),Sp=r(a(((t,n)=>{var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!o.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(s=i(t,c))||s.enumerable});return e},l=e=>c(r({},`__esModule`,{value:!0}),e),u={};s(u,{createRequestHandler:()=>p}),n.exports=l(u);var d=(yp(),e(vp)),f=xp();function p({build:e,getLoadContext:t,mode:n=process.env.NODE_ENV}){let r=(0,d.createRequestHandler)(e,n);return async(e,n,i)=>{try{await g(n,await r(h(e,n),await t?.(e,n)))}catch(e){i(e)}}}function m(e){let t=new Headers;for(let[n,r]of Object.entries(e))if(r)if(Array.isArray(r))for(let e of r)t.append(n,e);else t.set(n,r);return t}function h(e,t){let[,n]=e.app?.enabled(`trust proxy`)?e.get(`X-Forwarded-Host`)?.split(`:`)??[]:[],[,r]=e.get(`host`)?.split(`:`)??[],i=Number.parseInt(n,10),a=Number.parseInt(r,10),o=Number.isSafeInteger(i)?i:Number.isSafeInteger(a)?a:``,s=`${e.hostname.split(/[\\/?#@]/)[0]||`localhost`}${o?`:${o}`:``}`,c=new URL(`${e.protocol}://${s}${e.originalUrl}`),l=new AbortController,u={method:e.method,headers:m(e.headers),signal:l.signal};return t.on(`finish`,()=>l=null),t.on(`close`,()=>l?.abort()),e.method!==`GET`&&e.method!==`HEAD`&&(u.body=(0,f.createReadableStreamFromReadable)(e),u.duplex=`half`),new Request(c.href,u)}async function g(e,t){if(_(e)){await t.body?.cancel();return}e.statusMessage=t.statusText,e.status(t.status);for(let[n,r]of t.headers.entries())e.append(n,r);if(t.headers.get(`Content-Type`)?.match(/text\/event-stream/i)&&e.flushHeaders(),t.body)try{await(0,f.writeReadableStreamToWritable)(t.body,e)}catch(t){if(_(e))return;throw t}else e.end()}function _(e){return e.destroyed||e.writableEnded}}))(),1),Cp=r(Bn(),1),wp=r(ne(),1);function Tp(e,t){let n={};if(!f(e))return n;try{let r=p(e,`utf-8`),i=JSON.parse(r),a=i.compilerOptions?.paths,o=i.compilerOptions?.baseUrl||`.`;if(a){for(let[e,r]of Object.entries(a))if(r&&r.length>0){let i=e.replace(/\/\*$/,`/`);n[i]=d(t,o,r[0].replace(/\/\*$/,`/`).replace(/^\.\//,``))}}}catch{}let r={};return Object.keys(n).sort((e,t)=>t.length-e.length).forEach(e=>{r[e]=n[e]}),r}async function Ep(e,t){let{projectDirectory:n,tsconfigPath:r=d(n,`tsconfig.json`)}=t,{createJiti:i}=await import(`./sfnext-server-jiti-DjnmHo-6.mjs`),a=Tp(r,n);return i(import.meta.url,{fsCache:!1,interopDefault:!0,alias:a}).import(e)}function Dp(){let e=process.env.PUBLIC__app__commerce__api__shortCode,t=process.env.PUBLIC__app__commerce__api__organizationId,n=process.env.PUBLIC__app__commerce__api__clientId,r=process.env.PUBLIC__app__commerce__api__proxy||`/mobify/proxy/api`,i=process.env.SCAPI_PROXY_HOST;if(!e&&!i)throw Error(`Missing PUBLIC__app__commerce__api__shortCode environment variable.
118
118
  Please set it in your .env file or environment.`);if(!t)throw Error(`Missing PUBLIC__app__commerce__api__organizationId environment variable.
119
119
  Please set it in your .env file or environment.`);if(!n)throw Error(`Missing PUBLIC__app__commerce__api__clientId environment variable.
120
- Please set it in your .env file or environment.`);return{commerce:{api:{shortCode:e||``,organizationId:t,clientId:n,proxy:r,proxyHost:i}}}}function lp(e){if(!e.headers||!e.multiValueHeaders)return e;let t={...e.multiValueHeaders};for(let[n,r]of Object.entries(e.headers))!Object.keys(t).find(e=>e.toLowerCase()===n.toLowerCase())&&r!==void 0&&(t[n]=[r]);return{...e,multiValueHeaders:t}}var up=a(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),dp=a(((e,t)=>{t.exports=function(e,t){if(t=t.split(`:`)[0],e=+e,!e)return!1;switch(t){case`http`:case`ws`:return e!==80;case`https`:case`wss`:return e!==443;case`ftp`:return e!==21;case`gopher`:return e!==70;case`file`:return!1}return e!==0}})),fp=a((e=>{var n=e,r=t(`url`),i=t(`util`)._extend,a=dp(),o=/(^|,)\s*upgrade\s*($|,)/i,s=/^https|wss/;n.isSSL=s,n.setupOutgoing=function(e,t,l,u){e.port=t[u||`target`].port||(s.test(t[u||`target`].protocol)?443:80),[`host`,`hostname`,`socketPath`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`secureProtocol`].forEach(function(n){e[n]=t[u||`target`][n]}),e.method=t.method||l.method,e.headers=i({},l.headers),t.headers&&i(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),s.test(t[u||`target`].protocol)&&(e.rejectUnauthorized=t.secure===void 0?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!=`string`||!o.test(e.headers.connection))&&(e.headers.connection=`close`));var d=t[u||`target`],f=d&&t.prependPath!==!1&&d.path||``,p=t.toProxy?l.url:r.parse(l.url).path||``;return p=t.ignorePath?``:p,e.path=n.urlJoin(f,p),t.changeOrigin&&(e.headers.host=a(e.port,t[u||`target`].protocol)&&!c(e.host)?e.host+`:`+e.port:e.host),e},n.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e},n.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):``;return t?t[1]:n.hasEncryptedConnection(e)?`443`:`80`},n.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)},n.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=e.length-1,n=e[t].split(`?`),r;return e[t]=n.shift(),r=[e.filter(Boolean).join(`/`).replace(/\/+/g,`/`).replace(`http:/`,`http://`).replace(`https:/`,`https://`)],r.push.apply(r,n),r.join(`?`)},n.rewriteCookieProperty=function e(t,n,r){return Array.isArray(t)?t.map(function(t){return e(t,n,r)}):t.replace(RegExp(`(;\\s*`+r+`=)([^;]+)`,`i`),function(e,t,r){var i;if(r in n)i=n[r];else if(`*`in n)i=n[`*`];else return e;return i?t+i:``})};function c(e){return!!~e.indexOf(`:`)}})),pp=a(((e,n)=>{var r=t(`url`),i=fp(),a=/^201|30(1|2|7|8)$/;
120
+ Please set it in your .env file or environment.`);return{commerce:{api:{shortCode:e||``,organizationId:t,clientId:n,proxy:r,proxyHost:i}}}}function Op(e){if(!e.headers||!e.multiValueHeaders)return e;let t={...e.multiValueHeaders};for(let[n,r]of Object.entries(e.headers))!Object.keys(t).find(e=>e.toLowerCase()===n.toLowerCase())&&r!==void 0&&(t[n]=[r]);return{...e,multiValueHeaders:t}}var kp=a(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),Ap=a(((e,t)=>{t.exports=function(e,t){if(t=t.split(`:`)[0],e=+e,!e)return!1;switch(t){case`http`:case`ws`:return e!==80;case`https`:case`wss`:return e!==443;case`ftp`:return e!==21;case`gopher`:return e!==70;case`file`:return!1}return e!==0}})),jp=a((e=>{var n=e,r=t(`url`),i=t(`util`)._extend,a=Ap(),o=/(^|,)\s*upgrade\s*($|,)/i,s=/^https|wss/;n.isSSL=s,n.setupOutgoing=function(e,t,l,u){e.port=t[u||`target`].port||(s.test(t[u||`target`].protocol)?443:80),[`host`,`hostname`,`socketPath`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`secureProtocol`].forEach(function(n){e[n]=t[u||`target`][n]}),e.method=t.method||l.method,e.headers=i({},l.headers),t.headers&&i(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),s.test(t[u||`target`].protocol)&&(e.rejectUnauthorized=t.secure===void 0?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!=`string`||!o.test(e.headers.connection))&&(e.headers.connection=`close`));var d=t[u||`target`],f=d&&t.prependPath!==!1&&d.path||``,p=t.toProxy?l.url:r.parse(l.url).path||``;return p=t.ignorePath?``:p,e.path=n.urlJoin(f,p),t.changeOrigin&&(e.headers.host=a(e.port,t[u||`target`].protocol)&&!c(e.host)?e.host+`:`+e.port:e.host),e},n.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e},n.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):``;return t?t[1]:n.hasEncryptedConnection(e)?`443`:`80`},n.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)},n.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=e.length-1,n=e[t].split(`?`),r;return e[t]=n.shift(),r=[e.filter(Boolean).join(`/`).replace(/\/+/g,`/`).replace(`http:/`,`http://`).replace(`https:/`,`https://`)],r.push.apply(r,n),r.join(`?`)},n.rewriteCookieProperty=function e(t,n,r){return Array.isArray(t)?t.map(function(t){return e(t,n,r)}):t.replace(RegExp(`(;\\s*`+r+`=)([^;]+)`,`i`),function(e,t,r){var i;if(r in n)i=n[r];else if(`*`in n)i=n[`*`];else return e;return i?t+i:``})};function c(e){return!!~e.indexOf(`:`)}})),Mp=a(((e,n)=>{var r=t(`url`),i=jp(),a=/^201|30(1|2|7|8)$/;
121
121
  /*!
122
122
  * Array of passes.
123
123
  *
@@ -125,7 +125,7 @@ Please set it in your .env file or environment.`);return{commerce:{api:{shortCod
125
125
  * so that you can easily add new checks while still keeping the base
126
126
  * flexible.
127
127
  */
128
- n.exports={removeChunked:function(e,t,n){e.httpVersion===`1.0`&&delete n.headers[`transfer-encoding`]},setConnection:function(e,t,n){e.httpVersion===`1.0`?n.headers.connection=e.headers.connection||`close`:e.httpVersion!==`2.0`&&!n.headers.connection&&(n.headers.connection=e.headers.connection||`keep-alive`)},setRedirectHostRewrite:function(e,t,n,i){if((i.hostRewrite||i.autoRewrite||i.protocolRewrite)&&n.headers.location&&a.test(n.statusCode)){var o=r.parse(i.target),s=r.parse(n.headers.location);if(o.host!=s.host)return;i.hostRewrite?s.host=i.hostRewrite:i.autoRewrite&&(s.host=e.headers.host),i.protocolRewrite&&(s.protocol=i.protocolRewrite),n.headers.location=s.format()}},writeHeaders:function(e,t,n,r){var a=r.cookieDomainRewrite,o=r.cookiePathRewrite,s=r.preserveHeaderKeyCase,c,l=function(e,n){n!=null&&(a&&e.toLowerCase()===`set-cookie`&&(n=i.rewriteCookieProperty(n,a,`domain`)),o&&e.toLowerCase()===`set-cookie`&&(n=i.rewriteCookieProperty(n,o,`path`)),t.setHeader(String(e).trim(),n))};if(typeof a==`string`&&(a={"*":a}),typeof o==`string`&&(o={"*":o}),s&&n.rawHeaders!=null){c={};for(var u=0;u<n.rawHeaders.length;u+=2){var d=n.rawHeaders[u];c[d.toLowerCase()]=d}}Object.keys(n.headers).forEach(function(e){var t=n.headers[e];s&&c&&(e=c[e]||e),l(e,t)})},writeStatusCode:function(e,t,n){n.statusMessage?(t.statusCode=n.statusCode,t.statusMessage=n.statusMessage):t.statusCode=n.statusCode}}})),mp=a(((e,t)=>{var n;t.exports=function(){if(!n){try{n=me()(`follow-redirects`)}catch{}typeof n!=`function`&&(n=function(){})}n.apply(null,arguments)}})),hp=a(((e,n)=>{var r=t(`url`),i=r.URL,a=t(`http`),o=t(`https`),s=t(`stream`).Writable,c=t(`assert`),l=mp();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=M(Error.captureStackTrace);!e&&(t||!n)&&console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var u=!1;try{c(new i(``))}catch(e){u=e.code===`ERR_INVALID_URL`}var d=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],f=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],p=Object.create(null);f.forEach(function(e){p[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var m=O(`ERR_INVALID_URL`,`Invalid URL`,TypeError),h=O(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),g=O(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,h),_=O(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),v=O(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),y=s.prototype.destroy||S;function b(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on(`response`,t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof h?e:new h({cause:e}))}},this._performRequest()}b.prototype=Object.create(s.prototype),b.prototype.abort=function(){k(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},b.prototype.destroy=function(e){return k(this._currentRequest,e),y.call(this,e),this},b.prototype.write=function(e,t,n){if(this._ending)throw new v;if(!j(e)&&!ee(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);if(M(t)&&(n=t,t=null),e.length===0){n&&n();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new _),this.abort())},b.prototype.end=function(e,t,n){if(M(e)?(n=e,e=t=null):M(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},b.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},b.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},b.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){b.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(b.prototype,e,{get:function(){return this._currentRequest[e]}})}),b.prototype._sanitizeOptions=function(e){if(e.headers||={},e.host&&(e.hostname||=e.host,delete e.host),!e.pathname&&e.path){var t=e.path.indexOf(`?`);t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},b.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of f)i.on(a,p[a]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest)if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()})()}},b.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];return}if(k(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method===`POST`||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method=`GET`,this._requestBodyBuffers=[],D(/^content-/i,this._options.headers));var s=D(/^host$/i,this._options.headers),c=C(this._currentUrl),u=s||c.host,d=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(c,{host:u})),f=w(n,d);if(l(`redirecting to`,f.href),this._isRedirect=!0,E(f,this._options),(f.protocol!==c.protocol&&f.protocol!==`https:`||f.host!==u&&!A(f.host,u))&&D(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),M(a)){var p={headers:e.headers,statusCode:t},m={url:d,method:o,headers:i};a(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function x(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function s(e,r,a){return N(e)?e=E(e):j(e)?e=E(C(e)):(a=r,r=T(e),e={protocol:i}),M(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!j(r.host)&&!j(r.hostname)&&(r.hostname=`::1`),c.equal(r.protocol,i,`protocol mismatch`),l(`options`,r),new b(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function S(){}function C(e){var t;if(u)t=new i(e);else if(t=T(r.parse(e)),!j(t.protocol))throw new m({input:e});return t}function w(e,t){return u?new i(e,t):C(r.resolve(t,e))}function T(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new m({input:e.href||e});return e}function E(e,t){var n=t||{};for(var r of d)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function D(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function O(e,t,n){function r(n){M(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function k(e,t){for(var n of f)e.removeListener(n,p[n]);e.on(`error`,S),e.destroy(t)}function A(e,t){c(j(e)&&j(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function j(e){return typeof e==`string`||e instanceof String}function M(e){return typeof e==`function`}function ee(e){return typeof e==`object`&&`length`in e}function N(e){return i&&e instanceof i}n.exports=x({http:a,https:o}),n.exports.wrap=x})),gp=a(((e,n)=>{var r=t(`http`),i=t(`https`),a=pp(),o=fp(),s=hp();a=Object.keys(a).map(function(e){return a[e]});var c={http:r,https:i};
128
+ n.exports={removeChunked:function(e,t,n){e.httpVersion===`1.0`&&delete n.headers[`transfer-encoding`]},setConnection:function(e,t,n){e.httpVersion===`1.0`?n.headers.connection=e.headers.connection||`close`:e.httpVersion!==`2.0`&&!n.headers.connection&&(n.headers.connection=e.headers.connection||`keep-alive`)},setRedirectHostRewrite:function(e,t,n,i){if((i.hostRewrite||i.autoRewrite||i.protocolRewrite)&&n.headers.location&&a.test(n.statusCode)){var o=r.parse(i.target),s=r.parse(n.headers.location);if(o.host!=s.host)return;i.hostRewrite?s.host=i.hostRewrite:i.autoRewrite&&(s.host=e.headers.host),i.protocolRewrite&&(s.protocol=i.protocolRewrite),n.headers.location=s.format()}},writeHeaders:function(e,t,n,r){var a=r.cookieDomainRewrite,o=r.cookiePathRewrite,s=r.preserveHeaderKeyCase,c,l=function(e,n){n!=null&&(a&&e.toLowerCase()===`set-cookie`&&(n=i.rewriteCookieProperty(n,a,`domain`)),o&&e.toLowerCase()===`set-cookie`&&(n=i.rewriteCookieProperty(n,o,`path`)),t.setHeader(String(e).trim(),n))};if(typeof a==`string`&&(a={"*":a}),typeof o==`string`&&(o={"*":o}),s&&n.rawHeaders!=null){c={};for(var u=0;u<n.rawHeaders.length;u+=2){var d=n.rawHeaders[u];c[d.toLowerCase()]=d}}Object.keys(n.headers).forEach(function(e){var t=n.headers[e];s&&c&&(e=c[e]||e),l(e,t)})},writeStatusCode:function(e,t,n){n.statusMessage?(t.statusCode=n.statusCode,t.statusMessage=n.statusMessage):t.statusCode=n.statusCode}}})),Np=a(((e,t)=>{var n;t.exports=function(){if(!n){try{n=me()(`follow-redirects`)}catch{}typeof n!=`function`&&(n=function(){})}n.apply(null,arguments)}})),Pp=a(((e,n)=>{var r=t(`url`),i=r.URL,a=t(`http`),o=t(`https`),s=t(`stream`).Writable,c=t(`assert`),l=Np();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=ee(Error.captureStackTrace);!e&&(t||!n)&&console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var u=!1;try{c(new i(``))}catch(e){u=e.code===`ERR_INVALID_URL`}var d=[`Authorization`,`Proxy-Authorization`,`Cookie`],f=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],p=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],m=Object.create(null);p.forEach(function(e){m[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var h=k(`ERR_INVALID_URL`,`Invalid URL`,TypeError),g=k(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),_=k(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,g),v=k(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),y=k(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),b=s.prototype.destroy||C;function x(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on(`response`,t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof g?e:new g({cause:e}))}},this._headerFilter=RegExp(`^(?:`+d.concat(e.sensitiveHeaders).map(I).join(`|`)+`)$`,`i`),this._performRequest()}x.prototype=Object.create(s.prototype),x.prototype.abort=function(){A(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},x.prototype.destroy=function(e){return A(this._currentRequest,e),b.call(this,e),this},x.prototype.write=function(e,t,n){if(this._ending)throw new y;if(!N(e)&&!P(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);if(ee(t)&&(n=t,t=null),e.length===0){n&&n();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new v),this.abort())},x.prototype.end=function(e,t,n){if(ee(e)?(n=e,e=t=null):ee(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},x.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},x.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},x.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){x.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(x.prototype,e,{get:function(){return this._currentRequest[e]}})}),x.prototype._sanitizeOptions=function(e){if(e.headers||={},M(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||=e.host,delete e.host),!e.pathname&&e.path){var t=e.path.indexOf(`?`);t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},x.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of p)i.on(a,m[a]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest)if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()})()}},x.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];return}if(A(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new _;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method===`POST`||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method=`GET`,this._requestBodyBuffers=[],O(/^content-/i,this._options.headers));var s=O(/^host$/i,this._options.headers),c=w(this._currentUrl),u=s||c.host,d=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(c,{host:u})),f=T(n,d);if(l(`redirecting to`,f.href),this._isRedirect=!0,D(f,this._options),(f.protocol!==c.protocol&&f.protocol!==`https:`||f.host!==u&&!j(f.host,u))&&O(this._headerFilter,this._options.headers),ee(a)){var p={headers:e.headers,statusCode:t},m={url:d,method:o,headers:i};a(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function S(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function s(e,r,a){return F(e)?e=D(e):N(e)?e=D(w(e)):(a=r,r=E(e),e={protocol:i}),ee(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!N(r.host)&&!N(r.hostname)&&(r.hostname=`::1`),c.equal(r.protocol,i,`protocol mismatch`),l(`options`,r),new x(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function C(){}function w(e){var t;if(u)t=new i(e);else if(t=E(r.parse(e)),!N(t.protocol))throw new h({input:e});return t}function T(e,t){return u?new i(e,t):w(r.resolve(t,e))}function E(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new h({input:e.href||e});return e}function D(e,t){var n=t||{};for(var r of f)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function O(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function k(e,t,n){function r(n){ee(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function A(e,t){for(var n of p)e.removeListener(n,m[n]);e.on(`error`,C),e.destroy(t)}function j(e,t){c(N(e)&&N(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function M(e){return e instanceof Array}function N(e){return typeof e==`string`||e instanceof String}function ee(e){return typeof e==`function`}function P(e){return typeof e==`object`&&`length`in e}function F(e){return i&&e instanceof i}function I(e){return e.replace(/[\]\\/()*+?.$]/g,`\\$&`)}n.exports=S({http:a,https:o}),n.exports.wrap=S})),Fp=a(((e,n)=>{var r=t(`http`),i=t(`https`),a=Mp(),o=jp(),s=Pp();a=Object.keys(a).map(function(e){return a[e]});var c={http:r,https:i};
129
129
  /*!
130
130
  * Array of passes.
131
131
  *
@@ -133,7 +133,7 @@ n.exports={removeChunked:function(e,t,n){e.httpVersion===`1.0`&&delete n.headers
133
133
  * so that you can easily add new checks while still keeping the base
134
134
  * flexible.
135
135
  */
136
- n.exports={deleteLength:function(e,t,n){(e.method===`DELETE`||e.method===`OPTIONS`)&&!e.headers[`content-length`]&&(e.headers[`content-length`]=`0`,delete e.headers[`transfer-encoding`])},timeout:function(e,t,n){n.timeout&&e.socket.setTimeout(n.timeout)},XHeaders:function(e,t,n){if(n.xfwd){var r=e.isSpdy||o.hasEncryptedConnection(e),i={for:e.connection.remoteAddress||e.socket.remoteAddress,port:o.getPort(e),proto:r?`https`:`http`};[`for`,`port`,`proto`].forEach(function(t){e.headers[`x-forwarded-`+t]=(e.headers[`x-forwarded-`+t]||``)+(e.headers[`x-forwarded-`+t]?`,`:``)+i[t]}),e.headers[`x-forwarded-host`]=e.headers[`x-forwarded-host`]||e.headers.host||``}},stream:function(e,t,n,r,i,l){i.emit(`start`,e,t,n.target||n.forward);var u=n.followRedirects?s:c,d=u.http,f=u.https;if(n.forward){var p=(n.forward.protocol===`https:`?f:d).request(o.setupOutgoing(n.ssl||{},n,e,`forward`)),m=_(p,n.forward);if(e.on(`error`,m),p.on(`error`,m),(n.buffer||e).pipe(p),!n.target)return t.end()}var h=(n.target.protocol===`https:`?f:d).request(o.setupOutgoing(n.ssl||{},n,e));h.on(`socket`,function(r){i&&!h.getHeader(`expect`)&&i.emit(`proxyReq`,h,e,t,n)}),n.proxyTimeout&&h.setTimeout(n.proxyTimeout,function(){h.abort()}),e.on(`aborted`,function(){h.abort()});var g=_(h,n.target);e.on(`error`,g),h.on(`error`,g);function _(n,r){return function(a){if(e.socket.destroyed&&a.code===`ECONNRESET`)return i.emit(`econnreset`,a,e,t,r),n.abort();l?l(a,e,t,r):i.emit(`error`,a,e,t,r)}}(n.buffer||e).pipe(h),h.on(`response`,function(r){if(i&&i.emit(`proxyRes`,r,e,t),!t.headersSent&&!n.selfHandleResponse)for(var o=0;o<a.length&&!a[o](e,t,r,n);o++);t.finished?i&&i.emit(`end`,e,t,r):(r.on(`end`,function(){i&&i.emit(`end`,e,t,r)}),n.selfHandleResponse||r.pipe(t))})}}})),_p=a(((e,n)=>{var r=t(`http`),i=t(`https`),a=fp();
136
+ n.exports={deleteLength:function(e,t,n){(e.method===`DELETE`||e.method===`OPTIONS`)&&!e.headers[`content-length`]&&(e.headers[`content-length`]=`0`,delete e.headers[`transfer-encoding`])},timeout:function(e,t,n){n.timeout&&e.socket.setTimeout(n.timeout)},XHeaders:function(e,t,n){if(n.xfwd){var r=e.isSpdy||o.hasEncryptedConnection(e),i={for:e.connection.remoteAddress||e.socket.remoteAddress,port:o.getPort(e),proto:r?`https`:`http`};[`for`,`port`,`proto`].forEach(function(t){e.headers[`x-forwarded-`+t]=(e.headers[`x-forwarded-`+t]||``)+(e.headers[`x-forwarded-`+t]?`,`:``)+i[t]}),e.headers[`x-forwarded-host`]=e.headers[`x-forwarded-host`]||e.headers.host||``}},stream:function(e,t,n,r,i,l){i.emit(`start`,e,t,n.target||n.forward);var u=n.followRedirects?s:c,d=u.http,f=u.https;if(n.forward){var p=(n.forward.protocol===`https:`?f:d).request(o.setupOutgoing(n.ssl||{},n,e,`forward`)),m=_(p,n.forward);if(e.on(`error`,m),p.on(`error`,m),(n.buffer||e).pipe(p),!n.target)return t.end()}var h=(n.target.protocol===`https:`?f:d).request(o.setupOutgoing(n.ssl||{},n,e));h.on(`socket`,function(r){i&&!h.getHeader(`expect`)&&i.emit(`proxyReq`,h,e,t,n)}),n.proxyTimeout&&h.setTimeout(n.proxyTimeout,function(){h.abort()}),e.on(`aborted`,function(){h.abort()});var g=_(h,n.target);e.on(`error`,g),h.on(`error`,g);function _(n,r){return function(a){if(e.socket.destroyed&&a.code===`ECONNRESET`)return i.emit(`econnreset`,a,e,t,r),n.abort();l?l(a,e,t,r):i.emit(`error`,a,e,t,r)}}(n.buffer||e).pipe(h),h.on(`response`,function(r){if(i&&i.emit(`proxyRes`,r,e,t),!t.headersSent&&!n.selfHandleResponse)for(var o=0;o<a.length&&!a[o](e,t,r,n);o++);t.finished?i&&i.emit(`end`,e,t,r):(r.on(`end`,function(){i&&i.emit(`end`,e,t,r)}),n.selfHandleResponse||r.pipe(t))})}}})),Ip=a(((e,n)=>{var r=t(`http`),i=t(`https`),a=jp();
137
137
  /*!
138
138
  * Array of passes.
139
139
  *
@@ -144,7 +144,7 @@ n.exports={deleteLength:function(e,t,n){(e.method===`DELETE`||e.method===`OPTION
144
144
  n.exports={checkMethodAndHeader:function(e,t){if(e.method!==`GET`||!e.headers.upgrade||e.headers.upgrade.toLowerCase()!==`websocket`)return t.destroy(),!0},XHeaders:function(e,t,n){if(n.xfwd){var r={for:e.connection.remoteAddress||e.socket.remoteAddress,port:a.getPort(e),proto:a.hasEncryptedConnection(e)?`wss`:`ws`};[`for`,`port`,`proto`].forEach(function(t){e.headers[`x-forwarded-`+t]=(e.headers[`x-forwarded-`+t]||``)+(e.headers[`x-forwarded-`+t]?`,`:``)+r[t]})}},stream:function(e,t,n,o,s,c){var l=function(e,t){return Object.keys(t).reduce(function(e,n){var r=t[n];if(!Array.isArray(r))return e.push(n+`: `+r),e;for(var i=0;i<r.length;i++)e.push(n+`: `+r[i]);return e},[e]).join(`\r
145
145
  `)+`\r
146
146
  \r
147
- `};a.setupSocket(t),o&&o.length&&t.unshift(o);var u=(a.isSSL.test(n.target.protocol)?i:r).request(a.setupOutgoing(n.ssl||{},n,e));return s&&s.emit(`proxyReqWs`,u,e,t,n,o),u.on(`error`,d),u.on(`response`,function(e){e.upgrade||(t.write(l(`HTTP/`+e.httpVersion+` `+e.statusCode+` `+e.statusMessage,e.headers)),e.pipe(t))}),u.on(`upgrade`,function(e,n,r){n.on(`error`,d),n.on(`end`,function(){s.emit(`close`,e,n,r)}),t.on(`error`,function(){n.end()}),a.setupSocket(n),r&&r.length&&n.unshift(r),t.write(l(`HTTP/1.1 101 Switching Protocols`,e.headers)),n.pipe(t).pipe(n),s.emit(`open`,n),s.emit(`proxySocket`,n)}),u.end();function d(n){c?c(n,e,t):s.emit(`error`,n,e,t),t.end()}}}})),vp=a(((e,n)=>{var r=n.exports,i=t(`util`)._extend,a=t(`url`).parse,o=up(),s=t(`http`),c=t(`https`),l=gp(),u=_p();r.Server=f;function d(e){return function(t){return function(n,r){var o=e===`ws`?this.wsPasses:this.webPasses,s=[].slice.call(arguments),c=s.length-1,l,u;typeof s[c]==`function`&&(u=s[c],c--);var d=t;if(!(s[c]instanceof Buffer)&&s[c]!==r&&(d=i({},t),i(d,s[c]),c--),s[c]instanceof Buffer&&(l=s[c]),[`target`,`forward`].forEach(function(e){typeof d[e]==`string`&&(d[e]=a(d[e]))}),!d.target&&!d.forward)return this.emit(`error`,Error(`Must provide a proper URL as target`));for(var f=0;f<o.length&&!o[f](n,r,d,l,this,u);f++);}}}r.createRightProxy=d;function f(e){o.call(this),e||={},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=d(`web`)(e),this.ws=this.proxyWebsocketRequest=d(`ws`)(e),this.options=e,this.webPasses=Object.keys(l).map(function(e){return l[e]}),this.wsPasses=Object.keys(u).map(function(e){return u[e]}),this.on(`error`,this.onError,this)}t(`util`).inherits(f,o),f.prototype.onError=function(e){if(this.listeners(`error`).length===1)throw e},f.prototype.listen=function(e,t){var n=this,r=function(e,t){n.web(e,t)};return this._server=this.options.ssl?c.createServer(this.options.ssl,r):s.createServer(r),this.options.ws&&this._server.on(`upgrade`,function(e,t,r){n.ws(e,t,r)}),this._server.listen(e,t),this},f.prototype.close=function(e){var t=this;this._server&&this._server.close(n);function n(){t._server=null,e&&e.apply(null,arguments)}},f.prototype.before=function(e,t,n){if(e!==`ws`&&e!==`web`)throw Error("type must be `web` or `ws`");var r=e===`ws`?this.wsPasses:this.webPasses,i=!1;if(r.forEach(function(e,n){e.name===t&&(i=n)}),i===!1)throw Error(`No such pass`);r.splice(i,0,n)},f.prototype.after=function(e,t,n){if(e!==`ws`&&e!==`web`)throw Error("type must be `web` or `ws`");var r=e===`ws`?this.wsPasses:this.webPasses,i=!1;if(r.forEach(function(e,n){e.name===t&&(i=n)}),i===!1)throw Error(`No such pass`);r.splice(i++,0,n)}})),yp=a(((e,t)=>{var n=vp().Server;function r(e){return new n(e)}n.createProxyServer=r,n.createServer=r,n.createProxy=r,t.exports=n})),bp=a(((e,t)=>{
147
+ `};a.setupSocket(t),o&&o.length&&t.unshift(o);var u=(a.isSSL.test(n.target.protocol)?i:r).request(a.setupOutgoing(n.ssl||{},n,e));return s&&s.emit(`proxyReqWs`,u,e,t,n,o),u.on(`error`,d),u.on(`response`,function(e){e.upgrade||(t.write(l(`HTTP/`+e.httpVersion+` `+e.statusCode+` `+e.statusMessage,e.headers)),e.pipe(t))}),u.on(`upgrade`,function(e,n,r){n.on(`error`,d),n.on(`end`,function(){s.emit(`close`,e,n,r)}),t.on(`error`,function(){n.end()}),a.setupSocket(n),r&&r.length&&n.unshift(r),t.write(l(`HTTP/1.1 101 Switching Protocols`,e.headers)),n.pipe(t).pipe(n),s.emit(`open`,n),s.emit(`proxySocket`,n)}),u.end();function d(n){c?c(n,e,t):s.emit(`error`,n,e,t),t.end()}}}})),Lp=a(((e,n)=>{var r=n.exports,i=t(`util`)._extend,a=t(`url`).parse,o=kp(),s=t(`http`),c=t(`https`),l=Fp(),u=Ip();r.Server=f;function d(e){return function(t){return function(n,r){var o=e===`ws`?this.wsPasses:this.webPasses,s=[].slice.call(arguments),c=s.length-1,l,u;typeof s[c]==`function`&&(u=s[c],c--);var d=t;if(!(s[c]instanceof Buffer)&&s[c]!==r&&(d=i({},t),i(d,s[c]),c--),s[c]instanceof Buffer&&(l=s[c]),[`target`,`forward`].forEach(function(e){typeof d[e]==`string`&&(d[e]=a(d[e]))}),!d.target&&!d.forward)return this.emit(`error`,Error(`Must provide a proper URL as target`));for(var f=0;f<o.length&&!o[f](n,r,d,l,this,u);f++);}}}r.createRightProxy=d;function f(e){o.call(this),e||={},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=d(`web`)(e),this.ws=this.proxyWebsocketRequest=d(`ws`)(e),this.options=e,this.webPasses=Object.keys(l).map(function(e){return l[e]}),this.wsPasses=Object.keys(u).map(function(e){return u[e]}),this.on(`error`,this.onError,this)}t(`util`).inherits(f,o),f.prototype.onError=function(e){if(this.listeners(`error`).length===1)throw e},f.prototype.listen=function(e,t){var n=this,r=function(e,t){n.web(e,t)};return this._server=this.options.ssl?c.createServer(this.options.ssl,r):s.createServer(r),this.options.ws&&this._server.on(`upgrade`,function(e,t,r){n.ws(e,t,r)}),this._server.listen(e,t),this},f.prototype.close=function(e){var t=this;this._server&&this._server.close(n);function n(){t._server=null,e&&e.apply(null,arguments)}},f.prototype.before=function(e,t,n){if(e!==`ws`&&e!==`web`)throw Error("type must be `web` or `ws`");var r=e===`ws`?this.wsPasses:this.webPasses,i=!1;if(r.forEach(function(e,n){e.name===t&&(i=n)}),i===!1)throw Error(`No such pass`);r.splice(i,0,n)},f.prototype.after=function(e,t,n){if(e!==`ws`&&e!==`web`)throw Error("type must be `web` or `ws`");var r=e===`ws`?this.wsPasses:this.webPasses,i=!1;if(r.forEach(function(e,n){e.name===t&&(i=n)}),i===!1)throw Error(`No such pass`);r.splice(i++,0,n)}})),Rp=a(((e,t)=>{var n=Lp().Server;function r(e){return new n(e)}n.createProxyServer=r,n.createServer=r,n.createProxy=r,t.exports=n})),zp=a(((e,t)=>{
148
148
  /*!
149
149
  * Caron dimonio, con occhi di bragia
150
150
  * loro accennando, tutte le raccoglie;
@@ -156,35 +156,35 @@ n.exports={checkMethodAndHeader:function(e,t){if(e.method!==`GET`||!e.headers.up
156
156
  *
157
157
  * Dante - The Divine Comedy (Canto III)
158
158
  */
159
- t.exports=yp()})),xp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ERRORS=void 0;var t;(function(e){e.ERR_CONFIG_FACTORY_TARGET_MISSING=`[HPM] Missing "target" option. Example: {target: "http://www.example.org"}`,e.ERR_CONTEXT_MATCHER_GENERIC=`[HPM] Invalid pathFilter. Expecting something like: "/api" or ["/api", "/ajax"]`,e.ERR_CONTEXT_MATCHER_INVALID_ARRAY=`[HPM] Invalid pathFilter. Plain paths (e.g. "/api") can not be mixed with globs (e.g. "/api/**"). Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"].`,e.ERR_PATH_REWRITER_CONFIG=`[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function`})(t||(e.ERRORS=t={}))})),Sp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.verifyConfig=n;let t=xp();function n(e){if(!e.target&&!e.router)throw Error(t.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING)}})),Cp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Debug=void 0,e.Debug=me()(`http-proxy-middleware`)})),wp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debugProxyErrorsPlugin=void 0;let t=Cp().Debug.extend(`debug-proxy-errors-plugin`);e.debugProxyErrorsPlugin=e=>{e.on(`error`,(e,n,r,i)=>{t(`http-proxy error event:
159
+ t.exports=Rp()})),Bp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ERRORS=void 0;var t;(function(e){e.ERR_CONFIG_FACTORY_TARGET_MISSING=`[HPM] Missing "target" option. Example: {target: "http://www.example.org"}`,e.ERR_CONTEXT_MATCHER_GENERIC=`[HPM] Invalid pathFilter. Expecting something like: "/api" or ["/api", "/ajax"]`,e.ERR_CONTEXT_MATCHER_INVALID_ARRAY=`[HPM] Invalid pathFilter. Plain paths (e.g. "/api") can not be mixed with globs (e.g. "/api/**"). Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"].`,e.ERR_PATH_REWRITER_CONFIG=`[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function`})(t||(e.ERRORS=t={}))})),Vp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.verifyConfig=n;let t=Bp();function n(e){if(!e.target&&!e.router)throw Error(t.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING)}})),Hp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Debug=void 0,e.Debug=me()(`http-proxy-middleware`)})),Up=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debugProxyErrorsPlugin=void 0;let t=Hp().Debug.extend(`debug-proxy-errors-plugin`);e.debugProxyErrorsPlugin=e=>{e.on(`error`,(e,n,r,i)=>{t(`http-proxy error event:
160
160
  %O`,e)}),e.on(`proxyReq`,(e,n,r)=>{r.on(`error`,e=>{t(`Socket error in proxyReq event:
161
161
  %O`,e)})}),e.on(`proxyRes`,(e,n,r)=>{r.on(`close`,()=>{r.writableEnded||(t(`Destroying proxyRes in proxyRes close event`),e.destroy())})}),e.on(`proxyReqWs`,(e,n,r)=>{r.on(`error`,e=>{t(`Socket error in proxyReqWs event:
162
162
  %O`,e)})}),e.on(`open`,e=>{e.on(`error`,e=>{t(`Socket error in open event:
163
163
  %O`,e)})}),e.on(`close`,(e,n,r)=>{n.on(`error`,e=>{t(`Socket error in close event:
164
164
  %O`,e)})}),e.on(`econnreset`,(e,n,r,i)=>{t(`http-proxy econnreset event:
165
- %O`,e)})}})),Tp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getStatusCode=t;function t(e){let t;if(/HPE_INVALID/.test(e))t=502;else switch(e){case`ECONNRESET`:case`ENOTFOUND`:case`ECONNREFUSED`:case`ETIMEDOUT`:t=504;break;default:t=500;break}return t}})),Ep=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.errorResponsePlugin=void 0;let t=Tp();function n(e){return e&&typeof e.writeHead==`function`}function r(e){return e&&typeof e.write==`function`&&!(`writeHead`in e)}e.errorResponsePlugin=(e,i)=>{e.on(`error`,(e,i,a,o)=>{if(!i&&!a)throw e;if(n(a)){if(!a.headersSent){let n=(0,t.getStatusCode)(e.code);a.writeHead(n)}let n=i.headers&&i.headers.host;a.end(`Error occurred while trying to proxy: ${n}${i.url}`)}else r(a)&&a.destroy()})}})),Dp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getLogger=n;let t={info:()=>{},warn:()=>{},error:()=>{}};function n(e){return e.logger||t}})),Op=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getPort=t;function t(e){return Object.keys(e||{})?.[0]?.split(`:`)[1]}})),kp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loggerPlugin=void 0;let n=t(`url`),r=Dp(),i=Op();e.loggerPlugin=(e,t)=>{let a=(0,r.getLogger)(t);e.on(`error`,(e,t,n,r)=>{let i=`${t?.headers?.host}${t?.url}`,o=`${r?.href}`;a.error(`[HPM] Error occurred while proxying request %s to %s [%s] (%s)`,i,o,e.code||e,`https://nodejs.org/api/errors.html#errors_common_system_errors`)}),e.on(`proxyRes`,(e,r,o)=>{let s=r.originalUrl??`${r.baseUrl||``}${r.url}`,c;try{let t=(0,i.getPort)(e.req?.agent?.sockets),r={protocol:e.req.protocol,host:e.req.host,pathname:e.req.path};c=new n.URL(`${r.protocol}//${r.host}${r.pathname}`),t&&(c.port=t)}catch{c=new n.URL(t.target),c.pathname=e.req.path}let l=c.toString(),u=`[HPM] ${r.method} ${s} -> ${l} [${e.statusCode}]`;a.info(u)}),e.on(`open`,e=>{a.info(`[HPM] Client connected: %o`,e.address())}),e.on(`close`,(e,t,n)=>{a.info(`[HPM] Client disconnected: %o`,t.address())})}})),Ap=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getFunctionName=t;function t(e){return e.name||`[anonymous Function]`}})),jp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.proxyEventsPlugin=void 0;let t=Cp(),n=Ap(),r=t.Debug.extend(`proxy-events-plugin`);e.proxyEventsPlugin=(e,t)=>{Object.entries(t.on||{}).forEach(([t,i])=>{r(`register event handler: "${t}" -> "${(0,n.getFunctionName)(i)}"`),e.on(t,i)})}})),Mp=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(wp(),e),n(Ep(),e),n(kp(),e),n(jp(),e)})),Np=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getPlugins=n;let t=Mp();function n(e){let n=e.on?.error?[]:[t.errorResponsePlugin],r=e.ejectPlugins?[]:[t.debugProxyErrorsPlugin,t.proxyEventsPlugin,t.loggerPlugin,...n],i=e.plugins??[];return[...r,...i]}})),Pp=a(((e,t)=>{
165
+ %O`,e)})}})),Wp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getStatusCode=t;function t(e){let t;if(/HPE_INVALID/.test(e))t=502;else switch(e){case`ECONNRESET`:case`ENOTFOUND`:case`ECONNREFUSED`:case`ETIMEDOUT`:t=504;break;default:t=500;break}return t}})),Gp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.errorResponsePlugin=void 0;let t=Wp();function n(e){return e&&typeof e.writeHead==`function`}function r(e){return e&&typeof e.write==`function`&&!(`writeHead`in e)}e.errorResponsePlugin=(e,i)=>{e.on(`error`,(e,i,a,o)=>{if(!i&&!a)throw e;if(n(a)){if(!a.headersSent){let n=(0,t.getStatusCode)(e.code);a.writeHead(n)}let n=i.headers&&i.headers.host;a.end(`Error occurred while trying to proxy: ${n}${i.url}`)}else r(a)&&a.destroy()})}})),Kp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getLogger=n;let t={info:()=>{},warn:()=>{},error:()=>{}};function n(e){return e.logger||t}})),qp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getPort=t;function t(e){return Object.keys(e||{})?.[0]?.split(`:`)[1]}})),Jp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loggerPlugin=void 0;let n=t(`url`),r=Kp(),i=qp();e.loggerPlugin=(e,t)=>{let a=(0,r.getLogger)(t);e.on(`error`,(e,t,n,r)=>{let i=`${t?.headers?.host}${t?.url}`,o=`${r?.href}`;a.error(`[HPM] Error occurred while proxying request %s to %s [%s] (%s)`,i,o,e.code||e,`https://nodejs.org/api/errors.html#errors_common_system_errors`)}),e.on(`proxyRes`,(e,r,o)=>{let s=r.originalUrl??`${r.baseUrl||``}${r.url}`,c;try{let t=(0,i.getPort)(e.req?.agent?.sockets),r={protocol:e.req.protocol,host:e.req.host,pathname:e.req.path};c=new n.URL(`${r.protocol}//${r.host}${r.pathname}`),t&&(c.port=t)}catch{c=new n.URL(t.target),c.pathname=e.req.path}let l=c.toString(),u=`[HPM] ${r.method} ${s} -> ${l} [${e.statusCode}]`;a.info(u)}),e.on(`open`,e=>{a.info(`[HPM] Client connected: %o`,e.address())}),e.on(`close`,(e,t,n)=>{a.info(`[HPM] Client disconnected: %o`,t.address())})}})),Yp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getFunctionName=t;function t(e){return e.name||`[anonymous Function]`}})),Xp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.proxyEventsPlugin=void 0;let t=Hp(),n=Yp(),r=t.Debug.extend(`proxy-events-plugin`);e.proxyEventsPlugin=(e,t)=>{Object.entries(t.on||{}).forEach(([t,i])=>{r(`register event handler: "${t}" -> "${(0,n.getFunctionName)(i)}"`),e.on(t,i)})}})),Zp=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Up(),e),n(Gp(),e),n(Jp(),e),n(Xp(),e)})),Qp=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getPlugins=n;let t=Zp();function n(e){let n=e.on?.error?[]:[t.errorResponsePlugin],r=e.ejectPlugins?[]:[t.debugProxyErrorsPlugin,t.proxyEventsPlugin,t.loggerPlugin,...n],i=e.plugins??[];return[...r,...i]}})),$p=a(((e,t)=>{
166
166
  /*!
167
167
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
168
168
  *
169
169
  * Copyright (c) 2014-2016, Jon Schlinkert.
170
170
  * Licensed under the MIT License.
171
171
  */
172
- t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),Fp=a(((e,t)=>{
172
+ t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),em=a(((e,t)=>{
173
173
  /*!
174
174
  * is-glob <https://github.com/jonschlinkert/is-glob>
175
175
  *
176
176
  * Copyright (c) 2014-2017, Jon Schlinkert.
177
177
  * Released under the MIT License.
178
178
  */
179
- var n=Pp(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;t<e.length;){if(e[t]===`*`||e[t+1]===`?`&&/[\].+)]/.test(e[t])||i!==-1&&e[t]===`[`&&e[t+1]!==`]`&&(i<t&&(i=e.indexOf(`]`,t)),i>t&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(n<t&&(n=e.indexOf(`|`,t)),n!==-1&&e[n+1]!==`)`&&(o=e.indexOf(`)`,n),o>n&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]===`\\`){var n=e[t+1];t+=2;var i=r[n];if(i){var a=e.indexOf(i,t);a!==-1&&(t=a+1)}if(e[t]===`!`)return!0}else t++}return!1};t.exports=function(e,t){if(typeof e!=`string`||e===``)return!1;if(n(e))return!0;var r=i;return t&&t.strict===!1&&(r=a),r(e)}})),Ip=a((e=>{e.isInteger=e=>typeof e==`number`?Number.isInteger(e):typeof e==`string`&&e.trim()!==``?Number.isInteger(Number(e)):!1,e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,r=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(r)>=i,e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type===`open`||r.type===`close`)&&r.escaped!==!0&&(r.value=`\\`+r.value,r.escaped=!0)},e.encloseBrace=e=>e.type===`brace`?e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0):!1,e.isInvalidBrace=e=>e.type===`brace`?e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1:!1,e.isOpenOrClose=e=>e.type===`open`||e.type===`close`?!0:e.open===!0||e.close===!0,e.reduce=e=>e.reduce((e,t)=>(t.type===`text`&&e.push(t.value),t.type===`range`&&(t.type=`text`),e),[]),e.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];if(Array.isArray(i)){n(i);continue}i!==void 0&&t.push(i)}return t};return n(e),t}})),Lp=a(((e,t)=>{let n=Ip();t.exports=(e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i),o=e.invalid===!0&&t.escapeInvalid===!0,s=``;if(e.value)return(a||o)&&n.isOpenOrClose(e)?`\\`+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)s+=r(t);return s};return r(e)}})),Rp=a(((e,t)=>{t.exports=function(e){return typeof e==`number`?e-e===0:typeof e==`string`&&e.trim()!==``?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}})),zp=a(((e,t)=>{let n=Rp(),r=(e,t,a)=>{if(n(e)===!1)throw TypeError(`toRegexRange: expected the first argument to be a number`);if(t===void 0||e===t)return String(e);if(n(t)===!1)throw TypeError(`toRegexRange: expected the second argument to be a number.`);let o={relaxZeros:!0,...a};typeof o.strictZeros==`boolean`&&(o.relaxZeros=o.strictZeros===!1);let c=String(o.relaxZeros),l=String(o.shorthand),u=String(o.capture),d=String(o.wrap),f=e+`:`+t+`=`+c+l+u+d;if(r.cache.hasOwnProperty(f))return r.cache[f].result;let p=Math.min(e,t),m=Math.max(e,t);if(Math.abs(p-m)===1){let n=e+`|`+t;return o.capture?`(${n})`:o.wrap===!1?n:`(?:${n})`}let h=g(e)||g(t),_={min:e,max:t,a:p,b:m},v=[],y=[];return h&&(_.isPadded=h,_.maxLen=String(_.max).length),p<0&&(y=s(m<0?Math.abs(m):1,Math.abs(p),_,o),p=_.a=0),m>=0&&(v=s(p,m,_,o)),_.negatives=y,_.positives=v,_.result=i(y,v,o),o.capture===!0?_.result=`(${_.result})`:o.wrap!==!1&&v.length+y.length>1&&(_.result=`(?:${_.result})`),r.cache[f]=_,_.result};function i(e,t,n){let r=c(e,t,`-`,!1,n)||[],i=c(t,e,``,!1,n)||[],a=c(e,t,`-?`,!0,n)||[];return r.concat(a).concat(i).join(`|`)}function a(e,t){let n=1,r=1,i=f(e,n),a=new Set([t]);for(;e<=i&&i<=t;)a.add(i),n+=1,i=f(e,n);for(i=p(t+1,r)-1;e<i&&i<=t;)a.add(i),r+=1,i=p(t+1,r)-1;return a=[...a],a.sort(u),a}function o(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=l(e,t),i=r.length,a=``,o=0;for(let e=0;e<i;e++){let[t,i]=r[e];t===i?a+=t:t!==`0`||i!==`9`?a+=h(t,i,n):o++}return o&&(a+=n.shorthand===!0?`\\d`:`[0-9]`),{pattern:a,count:[o],digits:i}}function s(e,t,n,r){let i=a(e,t),s=[],c=e,l;for(let e=0;e<i.length;e++){let t=i[e],a=o(String(c),String(t),r),u=``;if(!n.isPadded&&l&&l.pattern===a.pattern){l.count.length>1&&l.count.pop(),l.count.push(a.count[0]),l.string=l.pattern+m(l.count),c=t+1;continue}n.isPadded&&(u=_(t,n,r)),a.string=u+a.pattern+m(a.count),s.push(a),c=t+1,l=a}return s}function c(e,t,n,r,i){let a=[];for(let i of e){let{string:e}=i;!r&&!d(t,`string`,e)&&a.push(n+e),r&&d(t,`string`,e)&&a.push(n+e)}return a}function l(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function u(e,t){return e>t?1:t>e?-1:0}function d(e,t,n){return e.some(e=>e[t]===n)}function f(e,t){return Number(String(e).slice(0,-t)+`9`.repeat(t))}function p(e,t){return e-e%10**t}function m(e){let[t=0,n=``]=e;return n||t>1?`{${t+(n?`,`+n:``)}}`:``}function h(e,t,n){return`[${e}${t-e===1?``:`-`}${t}]`}function g(e){return/^-?(0+)\d/.test(e)}function _(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return``;case 1:return i?`0?`:`0`;case 2:return i?`0{0,2}`:`00`;default:return i?`0{0,${r}}`:`0{${r}}`}}r.cache={},r.clearCache=()=>r.cache={},t.exports=r})),Bp=a(((e,n)=>{let r=t(`util`),i=zp(),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=e=>t=>e===!0?Number(t):String(t),s=e=>typeof e==`number`||typeof e==`string`&&e!==``,c=e=>Number.isInteger(+e),l=e=>{let t=`${e}`,n=-1;if(t[0]===`-`&&(t=t.slice(1)),t===`0`)return!1;for(;t[++n]===`0`;);return n>0},u=(e,t,n)=>typeof e==`string`||typeof t==`string`?!0:n.stringify===!0,d=(e,t,n)=>{if(t>0){let n=e[0]===`-`?`-`:``;n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,`0`)}return n===!1?String(e):e},f=(e,t)=>{let n=e[0]===`-`?`-`:``;for(n&&(e=e.slice(1),t--);e.length<t;)e=`0`+e;return n?`-`+e:e},p=(e,t,n)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let r=t.capture?``:`?:`,i=``,a=``,o;return e.positives.length&&(i=e.positives.map(e=>f(String(e),n)).join(`|`)),e.negatives.length&&(a=`-(${r}${e.negatives.map(e=>f(String(e),n)).join(`|`)})`),o=i&&a?`${i}|${a}`:i||a,t.wrap?`(${r}${o})`:o},m=(e,t,n,r)=>{if(n)return i(e,t,{wrap:!1,...r});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},h=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===!0,r=n.capture?``:`?:`;return t?`(${r}${e.join(`|`)})`:e.join(`|`)}return i(e,t,n)},g=(...e)=>RangeError(`Invalid range arguments: `+r.inspect(...e)),_=(e,t,n)=>{if(n.strictRanges===!0)throw g([e,t]);return[]},v=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},y=(e,t,n=1,r={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(r.strictRanges===!0)throw g([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let s=i>a,c=String(e),_=String(t),v=String(n);n=Math.max(Math.abs(n),1);let y=l(c)||l(_)||l(v),b=y?Math.max(c.length,_.length,v.length):0,x=y===!1&&u(e,t,r)===!1,S=r.transform||o(x);if(r.toRegex&&n===1)return m(f(e,b),f(t,b),!0,r);let C={negatives:[],positives:[]},w=e=>C[e<0?`negatives`:`positives`].push(Math.abs(e)),T=[],E=0;for(;s?i>=a:i<=a;)r.toRegex===!0&&n>1?w(i):T.push(d(S(i,E),b,x)),i=s?i-n:i+n,E++;return r.toRegex===!0?n>1?p(C,r,b):h(T,null,{wrap:!1,...r}):T},b=(e,t,n=1,r={})=>{if(!c(e)&&e.length>1||!c(t)&&t.length>1)return _(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,l=Math.min(a,o),u=Math.max(a,o);if(r.toRegex&&n===1)return m(l,u,!1,r);let d=[],f=0;for(;s?a>=o:a<=o;)d.push(i(a,f)),a=s?a-n:a+n,f++;return r.toRegex===!0?h(d,null,{wrap:!1,options:r}):d},x=(e,t,n,r={})=>{if(t==null&&s(e))return[e];if(!s(e)||!s(t))return _(e,t,r);if(typeof n==`function`)return x(e,t,1,{transform:n});if(a(n))return x(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,c(n)?c(e)&&c(t)?y(e,t,n,i):b(e,t,Math.max(Math.abs(n),1),i):n!=null&&!a(n)?v(n,i):x(e,t,1,n)};n.exports=x})),Vp=a(((e,t)=>{let n=Bp(),r=Ip();t.exports=(e,t={})=>{let i=(e,a={})=>{let o=r.isInvalidBrace(a),s=e.invalid===!0&&t.escapeInvalid===!0,c=o===!0||s===!0,l=t.escapeInvalid===!0?`\\`:``,u=``;if(e.isOpen===!0)return l+e.value;if(e.isClose===!0)return console.log(`node.isClose`,l,e.value),l+e.value;if(e.type===`open`)return c?l+e.value:`(`;if(e.type===`close`)return c?l+e.value:`)`;if(e.type===`comma`)return e.prev.type===`comma`?``:c?e.value:`|`;if(e.value)return e.value;if(e.nodes&&e.ranges>0){let i=r.reduce(e.nodes),a=n(...i,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(a.length!==0)return i.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)u+=i(t,e);return u};return i(e)}})),Hp=a(((e,t)=>{let n=Bp(),r=Lp(),i=Ip(),a=(e=``,t=``,n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?i.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)n===!0&&typeof e==`string`&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return i.flatten(r)};t.exports=(e,t={})=>{let o=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;l.type!==`brace`&&l.type!==`root`&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar){u.push(a(u.pop(),r(e,t)));return}if(e.type===`brace`&&e.invalid!==!0&&e.nodes.length===2){u.push(a(u.pop(),[`{}`]));return}if(e.nodes&&e.ranges>0){let s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,o))throw RangeError(`expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.`);let c=n(...s,t);c.length===0&&(c=r(e,t)),u.push(a(u.pop(),c)),e.nodes=[];return}let d=i.encloseBrace(e),f=e.queue,p=e;for(;p.type!==`brace`&&p.type!==`root`&&p.parent;)p=p.parent,f=p.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];if(n.type===`comma`&&e.type===`brace`){t===1&&f.push(``),f.push(``);continue}if(n.type===`close`){u.push(a(u.pop(),f,d));continue}if(n.value&&n.type!==`open`){f.push(a(f.pop(),n.value));continue}n.nodes&&s(n,e)}return f};return i.flatten(s(e))}})),Up=a(((e,t)=>{t.exports={MAX_LENGTH:1e4,CHAR_0:`0`,CHAR_9:`9`,CHAR_UPPERCASE_A:`A`,CHAR_LOWERCASE_A:`a`,CHAR_UPPERCASE_Z:`Z`,CHAR_LOWERCASE_Z:`z`,CHAR_LEFT_PARENTHESES:`(`,CHAR_RIGHT_PARENTHESES:`)`,CHAR_ASTERISK:`*`,CHAR_AMPERSAND:`&`,CHAR_AT:`@`,CHAR_BACKSLASH:`\\`,CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:`\r`,CHAR_CIRCUMFLEX_ACCENT:`^`,CHAR_COLON:`:`,CHAR_COMMA:`,`,CHAR_DOLLAR:`$`,CHAR_DOT:`.`,CHAR_DOUBLE_QUOTE:`"`,CHAR_EQUAL:`=`,CHAR_EXCLAMATION_MARK:`!`,CHAR_FORM_FEED:`\f`,CHAR_FORWARD_SLASH:`/`,CHAR_HASH:`#`,CHAR_HYPHEN_MINUS:`-`,CHAR_LEFT_ANGLE_BRACKET:`<`,CHAR_LEFT_CURLY_BRACE:`{`,CHAR_LEFT_SQUARE_BRACKET:`[`,CHAR_LINE_FEED:`
180
- `,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:` `,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),Wp=a(((e,t)=>{let n=Lp(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=Up();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,D=0,O,k=()=>e[E++],A=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`){C.value+=e.value;return}return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(A({type:`bos`});E<T;)if(S=x[x.length-1],O=k(),!(O===_||O===g)){if(O===i){A({type:`text`,value:(t.keepEscaping?O:``)+k()});continue}if(O===p){A({type:`text`,value:`\\`+O});continue}if(O===f){w++;let e;for(;E<T&&(e=k());){if(O+=e,e===f){w++;continue}if(e===i){O+=k();continue}if(e===p&&(w--,w===0))break}A({type:`text`,value:O});continue}if(O===c){S=A({type:`paren`,nodes:[]}),x.push(S),A({type:`text`,value:O});continue}if(O===l){if(S.type!==`paren`){A({type:`text`,value:O});continue}S=x.pop(),A({type:`text`,value:O}),S=x[x.length-1];continue}if(O===m||O===h||O===a){let e=O,n;for(t.keepQuotes!==!0&&(O=``);E<T&&(n=k());){if(n===i){O+=n+k();continue}if(n===e){t.keepQuotes===!0&&(O+=n);break}O+=n}A({type:`text`,value:O});continue}if(O===u){D++,S=A({type:`brace`,open:!0,close:!1,dollar:C.value&&C.value.slice(-1)===`$`||S.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]}),x.push(S),A({type:`open`,value:O});continue}if(O===d){if(S.type!==`brace`){A({type:`text`,value:O});continue}S=x.pop(),S.close=!0,A({type:`close`,value:O}),D--,S=x[x.length-1];continue}if(O===o&&D>0){S.ranges>0&&(S.ranges=0,S.nodes=[S.nodes.shift(),{type:`text`,value:n(S)}]),A({type:`comma`,value:O}),S.commas++;continue}if(O===s&&D>0&&S.commas===0){let e=S.nodes;if(D===0||e.length===0){A({type:`text`,value:O});continue}if(C.type===`dot`){if(S.range=[],C.value+=O,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+O,C=t,S.ranges--;continue}A({type:`dot`,value:O});continue}A({type:`text`,value:O})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return A({type:`eos`}),b}})),Gp=a(((e,t)=>{let n=Lp(),r=Vp(),i=Hp(),a=Wp(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),Kp=a(((e,n)=>{let r=t(`path`),i=`[^\\\\/]`,a=`[^/]`,o=`(?:\\/|$)`,s=`(?:^|\\/)`,c=`\\.{1,2}${o}`,l={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:a,END_ANCHOR:o,DOTS_SLASH:c,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${s}${c})`,NO_DOT_SLASH:`(?!\\.{0,1}${o})`,NO_DOTS_SLASH:`(?!${c})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${a}*?`,START_ANCHOR:s},u={...l,SLASH_LITERAL:`[\\\\/]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`};n.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?u:l}}})),qp=a((e=>{let n=t(`path`),r=process.platform===`win32`,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=Kp();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>o.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(s,`\\$1`),e.toPosixSlashes=e=>e.replace(i,`/`),e.removeBackslashes=e=>e.replace(a,e=>e===`\\`?``:e),e.supportsLookbehinds=()=>{let e=process.version.slice(1).split(`.`).map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10},e.isWindows=e=>e&&typeof e.windows==`boolean`?e.windows:r===!0||n.sep===`\\`,e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r}})),Jp=a(((e,t)=>{let n=qp(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=Kp(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,j=!1,M=!1,ee=!1,N=!1,P=!1,F=!1,I=!1,L=!1,R=!1,te=0,z,B,V={value:``,depth:0,isGlob:!1},H=()=>D>=x,ne=()=>E.charCodeAt(D+1),re=()=>(z=B,E.charCodeAt(++D));for(;D<x;){B=re();let e;if(B===a){F=V.backslashes=!0,B=re(),B===u&&(P=!0);continue}if(P===!0||B===u){for(te++;H()!==!0&&(B=re());){if(B===a){F=V.backslashes=!0,re();continue}if(B===u){te++;continue}if(P!==!0&&B===s&&(B=re())===s){if(A=V.isBrace=!0,M=V.isGlob=!0,R=!0,S===!0)continue;break}if(P!==!0&&B===o){if(A=V.isBrace=!0,M=V.isGlob=!0,R=!0,S===!0)continue;break}if(B===h&&(te--,te===0)){P=!1,A=V.isBrace=!0,R=!0;break}}if(S===!0)continue;break}if(B===l){if(C.push(D),w.push(V),V={value:``,depth:0,isGlob:!1},R===!0)continue;if(z===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(B===p||B===i||B===r||B===m||B===c)&&ne()===d){if(M=V.isGlob=!0,ee=V.isExtglob=!0,R=!0,B===c&&D===O&&(L=!0),S===!0){for(;H()!==!0&&(B=re());){if(B===a){F=V.backslashes=!0,B=re();continue}if(B===g){M=V.isGlob=!0,R=!0;break}}continue}break}if(B===r){if(z===r&&(N=V.isGlobstar=!0),M=V.isGlob=!0,R=!0,S===!0)continue;break}if(B===m){if(M=V.isGlob=!0,R=!0,S===!0)continue;break}if(B===f){for(;H()!==!0&&(e=re());){if(e===a){F=V.backslashes=!0,re();continue}if(e===_){j=V.isBracket=!0,M=V.isGlob=!0,R=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&B===c&&D===O){I=V.negated=!0,O++;continue}if(b.noparen!==!0&&B===d){if(M=V.isGlob=!0,S===!0){for(;H()!==!0&&(B=re());){if(B===d){F=V.backslashes=!0,B=re();continue}if(B===g){R=!0;break}}continue}break}if(M===!0){if(R=!0,S===!0)continue;break}}b.noext===!0&&(ee=!1,M=!1);let U=E,ie=``,ae=``;O>0&&(ie=E.slice(0,O),E=E.slice(O),k-=O),U&&M===!0&&k>0?(U=E.slice(0,k),ae=E.slice(k)):M===!0?(U=``,ae=E):U=E,U&&U!==``&&U!==`/`&&U!==E&&v(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),b.unescape===!0&&(ae&&=n.removeBackslashes(ae),U&&F===!0&&(U=n.removeBackslashes(U)));let W={prefix:ie,input:e,start:O,base:U,glob:ae,isBrace:A,isBracket:j,isGlob:M,isExtglob:ee,isGlobstar:N,negated:I,negatedExtglob:L};if(b.tokens===!0&&(W.maxDepth=0,v(B)||w.push(V),W.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=ie):w[n].value=a,y(w[n]),W.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),W.maxDepth+=w[w.length-1].depth)}W.slashes=C,W.parts=T}return W}})),Yp=a(((e,t)=>{let n=Kp(),r=qp(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let f={...t},p=typeof f.maxLength==`number`?Math.min(i,f.maxLength):i,m=e.length;if(m>p)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);let h={type:`bos`,value:``,output:f.prepend||``},g=[h],_=f.capture?``:`?:`,v=r.isWindows(t),y=n.globChars(v),b=n.extglobChars(y),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:j,START_ANCHOR:M}=y,ee=e=>`(${_}(?:(?!${M}${e.dot?T:x}).)*?)`,N=f.dot?``:E,P=f.dot?k:A,F=f.bash===!0?ee(f):j;f.capture&&(F=`(${F})`),typeof f.noext==`boolean`&&(f.noextglob=f.noext);let I={input:e,index:-1,start:0,dot:f.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=r.removePrefix(e,I),m=e.length;let L=[],R=[],te=[],z=h,B,V=()=>I.index===m-1,H=I.peek=(t=1)=>e[I.index+t],ne=I.advance=()=>e[++I.index]||``,re=()=>e.slice(I.index+1),U=(e=``,t=0)=>{I.consumed+=e,I.index+=t},ie=e=>{I.output+=e.output==null?e.value:e.output,U(e.value)},ae=()=>{let e=1;for(;H()===`!`&&(H(2)!==`(`||H(3)===`?`);)ne(),I.start++,e++;return e%2==0?!1:(I.negated=!0,I.start++,!0)},W=e=>{I[e]++,te.push(e)},oe=e=>{I[e]--,te.pop()},G=e=>{if(z.type===`globstar`){let t=I.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||L.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(I.output=I.output.slice(0,-z.output.length),z.type=`star`,z.value=`*`,z.output=F,I.output+=z.output)}if(L.length&&e.type!==`paren`&&(L[L.length-1].inner+=e.value),(e.value||e.output)&&ie(e),z&&z.type===`text`&&e.type===`text`){z.value+=e.value,z.output=(z.output||``)+e.value;return}e.prev=z,g.push(e),z=e},se=(e,t)=>{let n={...b[t],conditions:1,inner:``};n.prev=z,n.parens=I.parens,n.output=I.output;let r=(f.capture?`(`:``)+n.open;W(`parens`),G({type:e,value:t,output:I.output?``:w}),G({type:`paren`,extglob:!0,value:ne(),output:r}),L.push(n)},ce=e=>{let n=e.close+(f.capture?`)`:``),r;if(e.type===`negate`){let i=F;e.inner&&e.inner.length>1&&e.inner.includes(`/`)&&(i=ee(f)),(i!==F||V()||/^\)+$/.test(re()))&&(n=e.close=`)$))${i}`),e.inner.includes(`*`)&&(r=re())&&/^\.[^\\/.]+$/.test(r)&&(n=e.close=`)${d(r,{...t,fastpaths:!1}).output})${i})`),e.prev.type===`bos`&&(I.negatedExtglob=!0)}G({type:`paren`,extglob:!0,value:B,output:n}),oe(`parens`)};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?P+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?F:``):F:t?e:`\\${e}`);return n===!0&&(i=f.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&f.contains===!0?(I.output=e,I):(I.output=r.wrapOutput(i,I,t),I)}for(;!V();){if(B=ne(),B===`\0`)continue;if(B===`\\`){let e=H();if(e===`/`&&f.bash!==!0||e===`.`||e===`;`)continue;if(!e){B+=`\\`,G({type:`text`,value:B});continue}let t=/^\\+/.exec(re()),n=0;if(t&&t[0].length>2&&(n=t[0].length,I.index+=n,n%2!=0&&(B+=`\\`)),f.unescape===!0?B=ne():B+=ne(),I.brackets===0){G({type:`text`,value:B});continue}}if(I.brackets>0&&(B!==`]`||z.value===`[`||z.value===`[^`)){if(f.posix!==!1&&B===`:`){let e=z.value.slice(1);if(e.includes(`[`)&&(z.posix=!0,e.includes(`:`))){let e=z.value.lastIndexOf(`[`),t=z.value.slice(0,e),n=a[z.value.slice(e+2)];if(n){z.value=t+n,I.backtrack=!0,ne(),!h.output&&g.indexOf(z)===1&&(h.output=w);continue}}}(B===`[`&&H()!==`:`||B===`-`&&H()===`]`)&&(B=`\\${B}`),B===`]`&&(z.value===`[`||z.value===`[^`)&&(B=`\\${B}`),f.posix===!0&&B===`!`&&z.value===`[`&&(B=`^`),z.value+=B,ie({value:B});continue}if(I.quotes===1&&B!==`"`){B=r.escapeRegex(B),z.value+=B,ie({value:B});continue}if(B===`"`){I.quotes=I.quotes===1?0:1,f.keepQuotes===!0&&G({type:`text`,value:B});continue}if(B===`(`){W(`parens`),G({type:`paren`,value:B});continue}if(B===`)`){if(I.parens===0&&f.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=L[L.length-1];if(e&&I.parens===e.parens+1){ce(L.pop());continue}G({type:`paren`,value:B,output:I.parens?`)`:`\\)`}),oe(`parens`);continue}if(B===`[`){if(f.nobracket===!0||!re().includes(`]`)){if(f.nobracket!==!0&&f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));B=`\\${B}`}else W(`brackets`);G({type:`bracket`,value:B});continue}if(B===`]`){if(f.nobracket===!0||z&&z.type===`bracket`&&z.value.length===1){G({type:`text`,value:B,output:`\\${B}`});continue}if(I.brackets===0){if(f.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));G({type:`text`,value:B,output:`\\${B}`});continue}oe(`brackets`);let e=z.value.slice(1);if(z.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(B=`/${B}`),z.value+=B,ie({value:B}),f.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(z.value);if(I.output=I.output.slice(0,-z.value.length),f.literalBrackets===!0){I.output+=t,z.value=t;continue}z.value=`(${_}${t}|${z.value})`,I.output+=z.value;continue}if(B===`{`&&f.nobrace!==!0){W(`braces`);let e={type:`brace`,value:B,output:`(`,outputIndex:I.output.length,tokensIndex:I.tokens.length};R.push(e),G(e);continue}if(B===`}`){let e=R[R.length-1];if(f.nobrace===!0||!e){G({type:`text`,value:B,output:B});continue}let t=`)`;if(e.dots===!0){let e=g.slice(),n=[];for(let t=e.length-1;t>=0&&(g.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,f),I.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=I.output.slice(0,e.outputIndex),r=I.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,B=t=`\\}`,I.output=n;for(let e of r)I.output+=e.output||e.value}G({type:`brace`,value:B,output:t}),oe(`braces`),R.pop();continue}if(B===`|`){L.length>0&&L[L.length-1].conditions++,G({type:`text`,value:B});continue}if(B===`,`){let e=B,t=R[R.length-1];t&&te[te.length-1]===`braces`&&(t.comma=!0,e=`|`),G({type:`comma`,value:B,output:e});continue}if(B===`/`){if(z.type===`dot`&&I.index===I.start+1){I.start=I.index+1,I.consumed=``,I.output=``,g.pop(),z=h;continue}G({type:`slash`,value:B,output:C});continue}if(B===`.`){if(I.braces>0&&z.type===`dot`){z.value===`.`&&(z.output=x);let e=R[R.length-1];z.type=`dots`,z.output+=B,z.value+=B,e.dots=!0;continue}if(I.braces+I.parens===0&&z.type!==`bos`&&z.type!==`slash`){G({type:`text`,value:B,output:x});continue}G({type:`dot`,value:B,output:x});continue}if(B===`?`){if(!(z&&z.value===`(`)&&f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){se(`qmark`,B);continue}if(z&&z.type===`paren`){let e=H(),t=B;if(e===`<`&&!r.supportsLookbehinds())throw Error(`Node.js v10 or higher is required for regex lookbehinds`);(z.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(re()))&&(t=`\\${B}`),G({type:`text`,value:B,output:t});continue}if(f.dot!==!0&&(z.type===`slash`||z.type===`bos`)){G({type:`qmark`,value:B,output:A});continue}G({type:`qmark`,value:B,output:k});continue}if(B===`!`){if(f.noextglob!==!0&&H()===`(`&&(H(2)!==`?`||!/[!=<:]/.test(H(3)))){se(`negate`,B);continue}if(f.nonegate!==!0&&I.index===0){ae();continue}}if(B===`+`){if(f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){se(`plus`,B);continue}if(z&&z.value===`(`||f.regex===!1){G({type:`plus`,value:B,output:S});continue}if(z&&(z.type===`bracket`||z.type===`paren`||z.type===`brace`)||I.parens>0){G({type:`plus`,value:B});continue}G({type:`plus`,value:S});continue}if(B===`@`){if(f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){G({type:`at`,extglob:!0,value:B,output:``});continue}G({type:`text`,value:B});continue}if(B!==`*`){(B===`$`||B===`^`)&&(B=`\\${B}`);let e=o.exec(re());e&&(B+=e[0],I.index+=e[0].length),G({type:`text`,value:B});continue}if(z&&(z.type===`globstar`||z.star===!0)){z.type=`star`,z.star=!0,z.value+=B,z.output=F,I.backtrack=!0,I.globstar=!0,U(B);continue}let t=re();if(f.noextglob!==!0&&/^\([^?]/.test(t)){se(`star`,B);continue}if(z.type===`star`){if(f.noglobstar===!0){U(B);continue}let n=z.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(f.bash===!0&&(!i||t[0]&&t[0]!==`/`)){G({type:`star`,value:B,output:``});continue}let o=I.braces>0&&(n.type===`comma`||n.type===`brace`),s=L.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){G({type:`star`,value:B,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[I.index+4];if(n&&n!==`/`)break;t=t.slice(3),U(`/**`,3)}if(n.type===`bos`&&V()){z.type=`globstar`,z.value+=B,z.output=ee(f),I.output=z.output,I.globstar=!0,U(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&V()){I.output=I.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=ee(f)+(f.strictSlashes?`)`:`|$)`),z.value+=B,I.globstar=!0,I.output+=n.output+z.output,U(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;I.output=I.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=`${ee(f)}${C}|${C}${e})`,z.value+=B,I.output+=n.output+z.output,I.globstar=!0,U(B+ne()),G({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){z.type=`globstar`,z.value+=B,z.output=`(?:^|${C}|${ee(f)}${C})`,I.output=z.output,I.globstar=!0,U(B+ne()),G({type:`slash`,value:`/`,output:``});continue}I.output=I.output.slice(0,-z.output.length),z.type=`globstar`,z.output=ee(f),z.value+=B,I.output+=z.output,I.globstar=!0,U(B);continue}let n={type:`star`,value:B,output:F};if(f.bash===!0){n.output=`.*?`,(z.type===`bos`||z.type===`slash`)&&(n.output=N+n.output),G(n);continue}if(z&&(z.type===`bracket`||z.type===`paren`)&&f.regex===!0){n.output=B,G(n);continue}(I.index===I.start||z.type===`slash`||z.type===`dot`)&&(z.type===`dot`?(I.output+=D,z.output+=D):f.dot===!0?(I.output+=O,z.output+=O):(I.output+=N,z.output+=N),H()!==`*`&&(I.output+=w,z.output+=w)),G(n)}for(;I.brackets>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));I.output=r.escapeLast(I.output,`[`),oe(`brackets`)}for(;I.parens>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));I.output=r.escapeLast(I.output,`(`),oe(`parens`)}for(;I.braces>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));I.output=r.escapeLast(I.output,`{`),oe(`braces`)}if(f.strictSlashes!==!0&&(z.type===`star`||z.type===`bracket`)&&G({type:`maybe_slash`,value:``,output:`${C}?`}),I.backtrack===!0){I.output=``;for(let e of I.tokens)I.output+=e.output==null?e.value:e.output,e.suffix&&(I.output+=e.suffix)}return I};d.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let l=r.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:_,START_ANCHOR:v}=n.globChars(l),y=a.dot?h:m,b=a.dot?g:m,x=a.capture?``:`?:`,S={negated:!1,prefix:``},C=a.bash===!0?`.*?`:_;a.capture&&(C=`(${C})`);let w=e=>e.noglobstar===!0?C:`(${x}(?:(?!${v}${e.dot?p:u}).)*?)`,T=e=>{switch(e){case`*`:return`${y}${f}${C}`;case`.*`:return`${u}${f}${C}`;case`*.*`:return`${y}${C}${u}${f}${C}`;case`*/*`:return`${y}${C}${d}${f}${b}${C}`;case`**`:return y+w(a);case`**/*`:return`(?:${y}${w(a)}${d})?${b}${f}${C}`;case`**/*.*`:return`(?:${y}${w(a)}${d})?${b}${C}${u}${f}${C}`;case`**/.*`:return`(?:${y}${w(a)}${d})?${u}${f}${C}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=T(t[1]);return n?n+u+t[2]:void 0}}},E=T(r.removePrefix(e,S));return E&&a.strictSlashes!==!0&&(E+=`${d}?`),E},t.exports=d})),Xp=a(((e,n)=>{let r=t(`path`),i=Jp(),a=Yp(),o=qp(),s=Kp(),c=e=>e&&typeof e==`object`&&!Array.isArray(e),l=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>l(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=c(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=o.isWindows(t),s=r?l.compileRe(e,t):l.makeRe(e,t,!1,!0),u=s.state;delete s.state;let d=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};d=l(i.ignore,e,n)}let f=(n,r=!1)=>{let{isMatch:o,match:c,output:f}=l.test(n,s,t,{glob:e,posix:a}),p={glob:e,state:u,regex:s,posix:a,input:n,output:f,match:c,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):d(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(f.state=u),f};l.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let a=n||{},s=a.format||(i?o.toPosixSlashes:null),c=e===r,u=c&&s?s(e):e;return c===!1&&(u=s?s(e):e,c=u===r),(c===!1||a.capture===!0)&&(c=a.matchBase===!0||a.basename===!0?l.matchBase(e,t,n,i):t.exec(u)),{isMatch:!!c,match:c,output:u}},l.matchBase=(e,t,n,i=o.isWindows(n))=>(t instanceof RegExp?t:l.makeRe(t,n)).test(r.basename(e)),l.isMatch=(e,t,n)=>l(t,n)(e),l.parse=(e,t)=>Array.isArray(e)?e.map(e=>l.parse(e,t)):a(e,{...t,fastpaths:!1}),l.scan=(e,t)=>i(e,t),l.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,s=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=l.toRegex(s,t);return r===!0&&(c.state=e),c},l.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(i.output=a.fastpaths(e,t)),i.output||(i=a(e,t)),l.compileRe(i,t,n,r)},l.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},l.constants=s,n.exports=l})),Zp=a(((e,t)=>{t.exports=Xp()})),Qp=a(((e,n)=>{let r=t(`util`),i=Gp(),a=Zp(),o=qp(),s=e=>e===``||e===`./`,c=e=>{let t=e.indexOf(`{`);return t>-1&&e.indexOf(`}`,t)>-1},l=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,o=new Set,s=0,c=e=>{o.add(e.output),n&&n.onResult&&n.onResult(e)};for(let o=0;o<t.length;o++){let l=a(String(t[o]),{...n,onResult:c},!0),u=l.state.negated||l.state.negatedExtglob;u&&s++;for(let t of e){let e=l(t,!0);(u?!e.isMatch:e.isMatch)&&(u?r.add(e.output):(r.delete(e.output),i.add(e.output)))}}let l=(s===t.length?[...o]:[...i]).filter(e=>!r.has(e));if(n&&l.length===0){if(n.failglob===!0)throw Error(`No matches found for "${t.join(`, `)}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(e=>e.replace(/\\/g,``)):t}return l};l.match=l,l.matcher=(e,t)=>a(e,t),l.isMatch=(e,t,n)=>a(t,n)(e),l.any=l.isMatch,l.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],a=e=>{n.onResult&&n.onResult(e),i.push(e.output)},o=new Set(l(e,t,{...n,onResult:a}));for(let e of i)o.has(e)||r.add(e);return[...r]},l.contains=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${r.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>l.contains(e,t,n));if(typeof t==`string`){if(s(e)||s(t))return!1;if(e.includes(t)||e.startsWith(`./`)&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...n,contains:!0})},l.matchKeys=(e,t,n)=>{if(!o.isObject(e))throw TypeError(`Expected the first argument to be an object`);let r=l(Object.keys(e),t,n),i={};for(let t of r)i[t]=e[t];return i},l.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(r.some(e=>t(e)))return!0}return!1},l.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(!r.every(e=>t(e)))return!1}return!0},l.all=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${r.inspect(e)}"`);return[].concat(t).every(t=>a(t,n)(e))},l.capture=(e,t,n)=>{let r=o.isWindows(n),i=a.makeRe(String(e),{...n,capture:!0}).exec(r?o.toPosixSlashes(t):t);if(i)return i.slice(1).map(e=>e===void 0?``:e)},l.makeRe=(...e)=>a.makeRe(...e),l.scan=(...e)=>a.scan(...e),l.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of i(String(r),t))n.push(a.parse(e,t));return n},l.braces=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return t&&t.nobrace===!0||!c(e)?[e]:i(e,t)},l.braceExpand=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return l.braces(e,{...t,expand:!0})},l.hasBraces=c,n.exports=l})),$p=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchPathFilter=o;let n=Fp(),r=Qp(),i=t(`url`),a=xp();function o(e=`/`,t,n){if(f(e))return s(e,t);if(p(e))return c(e,t);if(Array.isArray(e)){if(e.every(f))return u(e,t);if(e.every(p))return l(e,t);throw Error(a.ERRORS.ERR_CONTEXT_MATCHER_INVALID_ARRAY)}if(typeof e==`function`)return e(d(t),n);throw Error(a.ERRORS.ERR_CONTEXT_MATCHER_GENERIC)}function s(e,t){return d(t)?.indexOf(e)===0}function c(e,t){let n=r([d(t)],e);return n&&n.length>0}function l(e,t){return c(e,t)}function u(e,t){let n=!1;for(let r of e)if(s(r,t)){n=!0;break}return n}function d(e){return e&&i.parse(e).pathname}function f(e){return typeof e==`string`&&!n(e)}function p(e){return n(e)}})),em=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});
179
+ var n=$p(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;t<e.length;){if(e[t]===`*`||e[t+1]===`?`&&/[\].+)]/.test(e[t])||i!==-1&&e[t]===`[`&&e[t+1]!==`]`&&(i<t&&(i=e.indexOf(`]`,t)),i>t&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(n<t&&(n=e.indexOf(`|`,t)),n!==-1&&e[n+1]!==`)`&&(o=e.indexOf(`)`,n),o>n&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]===`\\`){var n=e[t+1];t+=2;var i=r[n];if(i){var a=e.indexOf(i,t);a!==-1&&(t=a+1)}if(e[t]===`!`)return!0}else t++}return!1};t.exports=function(e,t){if(typeof e!=`string`||e===``)return!1;if(n(e))return!0;var r=i;return t&&t.strict===!1&&(r=a),r(e)}})),tm=a((e=>{e.isInteger=e=>typeof e==`number`?Number.isInteger(e):typeof e==`string`&&e.trim()!==``?Number.isInteger(Number(e)):!1,e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,r=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(r)>=i,e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type===`open`||r.type===`close`)&&r.escaped!==!0&&(r.value=`\\`+r.value,r.escaped=!0)},e.encloseBrace=e=>e.type===`brace`?e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0):!1,e.isInvalidBrace=e=>e.type===`brace`?e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1:!1,e.isOpenOrClose=e=>e.type===`open`||e.type===`close`?!0:e.open===!0||e.close===!0,e.reduce=e=>e.reduce((e,t)=>(t.type===`text`&&e.push(t.value),t.type===`range`&&(t.type=`text`),e),[]),e.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];if(Array.isArray(i)){n(i);continue}i!==void 0&&t.push(i)}return t};return n(e),t}})),nm=a(((e,t)=>{let n=tm();t.exports=(e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i),o=e.invalid===!0&&t.escapeInvalid===!0,s=``;if(e.value)return(a||o)&&n.isOpenOrClose(e)?`\\`+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)s+=r(t);return s};return r(e)}})),rm=a(((e,t)=>{t.exports=function(e){return typeof e==`number`?e-e===0:typeof e==`string`&&e.trim()!==``?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}})),im=a(((e,t)=>{let n=rm(),r=(e,t,a)=>{if(n(e)===!1)throw TypeError(`toRegexRange: expected the first argument to be a number`);if(t===void 0||e===t)return String(e);if(n(t)===!1)throw TypeError(`toRegexRange: expected the second argument to be a number.`);let o={relaxZeros:!0,...a};typeof o.strictZeros==`boolean`&&(o.relaxZeros=o.strictZeros===!1);let c=String(o.relaxZeros),l=String(o.shorthand),u=String(o.capture),d=String(o.wrap),f=e+`:`+t+`=`+c+l+u+d;if(r.cache.hasOwnProperty(f))return r.cache[f].result;let p=Math.min(e,t),m=Math.max(e,t);if(Math.abs(p-m)===1){let n=e+`|`+t;return o.capture?`(${n})`:o.wrap===!1?n:`(?:${n})`}let h=g(e)||g(t),_={min:e,max:t,a:p,b:m},v=[],y=[];return h&&(_.isPadded=h,_.maxLen=String(_.max).length),p<0&&(y=s(m<0?Math.abs(m):1,Math.abs(p),_,o),p=_.a=0),m>=0&&(v=s(p,m,_,o)),_.negatives=y,_.positives=v,_.result=i(y,v,o),o.capture===!0?_.result=`(${_.result})`:o.wrap!==!1&&v.length+y.length>1&&(_.result=`(?:${_.result})`),r.cache[f]=_,_.result};function i(e,t,n){let r=c(e,t,`-`,!1,n)||[],i=c(t,e,``,!1,n)||[],a=c(e,t,`-?`,!0,n)||[];return r.concat(a).concat(i).join(`|`)}function a(e,t){let n=1,r=1,i=f(e,n),a=new Set([t]);for(;e<=i&&i<=t;)a.add(i),n+=1,i=f(e,n);for(i=p(t+1,r)-1;e<i&&i<=t;)a.add(i),r+=1,i=p(t+1,r)-1;return a=[...a],a.sort(u),a}function o(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=l(e,t),i=r.length,a=``,o=0;for(let e=0;e<i;e++){let[t,i]=r[e];t===i?a+=t:t!==`0`||i!==`9`?a+=h(t,i,n):o++}return o&&(a+=n.shorthand===!0?`\\d`:`[0-9]`),{pattern:a,count:[o],digits:i}}function s(e,t,n,r){let i=a(e,t),s=[],c=e,l;for(let e=0;e<i.length;e++){let t=i[e],a=o(String(c),String(t),r),u=``;if(!n.isPadded&&l&&l.pattern===a.pattern){l.count.length>1&&l.count.pop(),l.count.push(a.count[0]),l.string=l.pattern+m(l.count),c=t+1;continue}n.isPadded&&(u=_(t,n,r)),a.string=u+a.pattern+m(a.count),s.push(a),c=t+1,l=a}return s}function c(e,t,n,r,i){let a=[];for(let i of e){let{string:e}=i;!r&&!d(t,`string`,e)&&a.push(n+e),r&&d(t,`string`,e)&&a.push(n+e)}return a}function l(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function u(e,t){return e>t?1:t>e?-1:0}function d(e,t,n){return e.some(e=>e[t]===n)}function f(e,t){return Number(String(e).slice(0,-t)+`9`.repeat(t))}function p(e,t){return e-e%10**t}function m(e){let[t=0,n=``]=e;return n||t>1?`{${t+(n?`,`+n:``)}}`:``}function h(e,t,n){return`[${e}${t-e===1?``:`-`}${t}]`}function g(e){return/^-?(0+)\d/.test(e)}function _(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return``;case 1:return i?`0?`:`0`;case 2:return i?`0{0,2}`:`00`;default:return i?`0{0,${r}}`:`0{${r}}`}}r.cache={},r.clearCache=()=>r.cache={},t.exports=r})),am=a(((e,n)=>{let r=t(`util`),i=im(),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=e=>t=>e===!0?Number(t):String(t),s=e=>typeof e==`number`||typeof e==`string`&&e!==``,c=e=>Number.isInteger(+e),l=e=>{let t=`${e}`,n=-1;if(t[0]===`-`&&(t=t.slice(1)),t===`0`)return!1;for(;t[++n]===`0`;);return n>0},u=(e,t,n)=>typeof e==`string`||typeof t==`string`?!0:n.stringify===!0,d=(e,t,n)=>{if(t>0){let n=e[0]===`-`?`-`:``;n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,`0`)}return n===!1?String(e):e},f=(e,t)=>{let n=e[0]===`-`?`-`:``;for(n&&(e=e.slice(1),t--);e.length<t;)e=`0`+e;return n?`-`+e:e},p=(e,t,n)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let r=t.capture?``:`?:`,i=``,a=``,o;return e.positives.length&&(i=e.positives.map(e=>f(String(e),n)).join(`|`)),e.negatives.length&&(a=`-(${r}${e.negatives.map(e=>f(String(e),n)).join(`|`)})`),o=i&&a?`${i}|${a}`:i||a,t.wrap?`(${r}${o})`:o},m=(e,t,n,r)=>{if(n)return i(e,t,{wrap:!1,...r});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},h=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===!0,r=n.capture?``:`?:`;return t?`(${r}${e.join(`|`)})`:e.join(`|`)}return i(e,t,n)},g=(...e)=>RangeError(`Invalid range arguments: `+r.inspect(...e)),_=(e,t,n)=>{if(n.strictRanges===!0)throw g([e,t]);return[]},v=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},y=(e,t,n=1,r={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(r.strictRanges===!0)throw g([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let s=i>a,c=String(e),_=String(t),v=String(n);n=Math.max(Math.abs(n),1);let y=l(c)||l(_)||l(v),b=y?Math.max(c.length,_.length,v.length):0,x=y===!1&&u(e,t,r)===!1,S=r.transform||o(x);if(r.toRegex&&n===1)return m(f(e,b),f(t,b),!0,r);let C={negatives:[],positives:[]},w=e=>C[e<0?`negatives`:`positives`].push(Math.abs(e)),T=[],E=0;for(;s?i>=a:i<=a;)r.toRegex===!0&&n>1?w(i):T.push(d(S(i,E),b,x)),i=s?i-n:i+n,E++;return r.toRegex===!0?n>1?p(C,r,b):h(T,null,{wrap:!1,...r}):T},b=(e,t,n=1,r={})=>{if(!c(e)&&e.length>1||!c(t)&&t.length>1)return _(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,l=Math.min(a,o),u=Math.max(a,o);if(r.toRegex&&n===1)return m(l,u,!1,r);let d=[],f=0;for(;s?a>=o:a<=o;)d.push(i(a,f)),a=s?a-n:a+n,f++;return r.toRegex===!0?h(d,null,{wrap:!1,options:r}):d},x=(e,t,n,r={})=>{if(t==null&&s(e))return[e];if(!s(e)||!s(t))return _(e,t,r);if(typeof n==`function`)return x(e,t,1,{transform:n});if(a(n))return x(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,c(n)?c(e)&&c(t)?y(e,t,n,i):b(e,t,Math.max(Math.abs(n),1),i):n!=null&&!a(n)?v(n,i):x(e,t,1,n)};n.exports=x})),om=a(((e,t)=>{let n=am(),r=tm();t.exports=(e,t={})=>{let i=(e,a={})=>{let o=r.isInvalidBrace(a),s=e.invalid===!0&&t.escapeInvalid===!0,c=o===!0||s===!0,l=t.escapeInvalid===!0?`\\`:``,u=``;if(e.isOpen===!0)return l+e.value;if(e.isClose===!0)return console.log(`node.isClose`,l,e.value),l+e.value;if(e.type===`open`)return c?l+e.value:`(`;if(e.type===`close`)return c?l+e.value:`)`;if(e.type===`comma`)return e.prev.type===`comma`?``:c?e.value:`|`;if(e.value)return e.value;if(e.nodes&&e.ranges>0){let i=r.reduce(e.nodes),a=n(...i,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(a.length!==0)return i.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)u+=i(t,e);return u};return i(e)}})),sm=a(((e,t)=>{let n=am(),r=nm(),i=tm(),a=(e=``,t=``,n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?i.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)n===!0&&typeof e==`string`&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return i.flatten(r)};t.exports=(e,t={})=>{let o=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;l.type!==`brace`&&l.type!==`root`&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar){u.push(a(u.pop(),r(e,t)));return}if(e.type===`brace`&&e.invalid!==!0&&e.nodes.length===2){u.push(a(u.pop(),[`{}`]));return}if(e.nodes&&e.ranges>0){let s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,o))throw RangeError(`expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.`);let c=n(...s,t);c.length===0&&(c=r(e,t)),u.push(a(u.pop(),c)),e.nodes=[];return}let d=i.encloseBrace(e),f=e.queue,p=e;for(;p.type!==`brace`&&p.type!==`root`&&p.parent;)p=p.parent,f=p.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];if(n.type===`comma`&&e.type===`brace`){t===1&&f.push(``),f.push(``);continue}if(n.type===`close`){u.push(a(u.pop(),f,d));continue}if(n.value&&n.type!==`open`){f.push(a(f.pop(),n.value));continue}n.nodes&&s(n,e)}return f};return i.flatten(s(e))}})),cm=a(((e,t)=>{t.exports={MAX_LENGTH:1e4,CHAR_0:`0`,CHAR_9:`9`,CHAR_UPPERCASE_A:`A`,CHAR_LOWERCASE_A:`a`,CHAR_UPPERCASE_Z:`Z`,CHAR_LOWERCASE_Z:`z`,CHAR_LEFT_PARENTHESES:`(`,CHAR_RIGHT_PARENTHESES:`)`,CHAR_ASTERISK:`*`,CHAR_AMPERSAND:`&`,CHAR_AT:`@`,CHAR_BACKSLASH:`\\`,CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:`\r`,CHAR_CIRCUMFLEX_ACCENT:`^`,CHAR_COLON:`:`,CHAR_COMMA:`,`,CHAR_DOLLAR:`$`,CHAR_DOT:`.`,CHAR_DOUBLE_QUOTE:`"`,CHAR_EQUAL:`=`,CHAR_EXCLAMATION_MARK:`!`,CHAR_FORM_FEED:`\f`,CHAR_FORWARD_SLASH:`/`,CHAR_HASH:`#`,CHAR_HYPHEN_MINUS:`-`,CHAR_LEFT_ANGLE_BRACKET:`<`,CHAR_LEFT_CURLY_BRACE:`{`,CHAR_LEFT_SQUARE_BRACKET:`[`,CHAR_LINE_FEED:`
180
+ `,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:` `,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),lm=a(((e,t)=>{let n=nm(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=cm();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,D=0,O,k=()=>e[E++],A=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`){C.value+=e.value;return}return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(A({type:`bos`});E<T;)if(S=x[x.length-1],O=k(),!(O===_||O===g)){if(O===i){A({type:`text`,value:(t.keepEscaping?O:``)+k()});continue}if(O===p){A({type:`text`,value:`\\`+O});continue}if(O===f){w++;let e;for(;E<T&&(e=k());){if(O+=e,e===f){w++;continue}if(e===i){O+=k();continue}if(e===p&&(w--,w===0))break}A({type:`text`,value:O});continue}if(O===c){S=A({type:`paren`,nodes:[]}),x.push(S),A({type:`text`,value:O});continue}if(O===l){if(S.type!==`paren`){A({type:`text`,value:O});continue}S=x.pop(),A({type:`text`,value:O}),S=x[x.length-1];continue}if(O===m||O===h||O===a){let e=O,n;for(t.keepQuotes!==!0&&(O=``);E<T&&(n=k());){if(n===i){O+=n+k();continue}if(n===e){t.keepQuotes===!0&&(O+=n);break}O+=n}A({type:`text`,value:O});continue}if(O===u){D++,S=A({type:`brace`,open:!0,close:!1,dollar:C.value&&C.value.slice(-1)===`$`||S.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]}),x.push(S),A({type:`open`,value:O});continue}if(O===d){if(S.type!==`brace`){A({type:`text`,value:O});continue}S=x.pop(),S.close=!0,A({type:`close`,value:O}),D--,S=x[x.length-1];continue}if(O===o&&D>0){S.ranges>0&&(S.ranges=0,S.nodes=[S.nodes.shift(),{type:`text`,value:n(S)}]),A({type:`comma`,value:O}),S.commas++;continue}if(O===s&&D>0&&S.commas===0){let e=S.nodes;if(D===0||e.length===0){A({type:`text`,value:O});continue}if(C.type===`dot`){if(S.range=[],C.value+=O,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+O,C=t,S.ranges--;continue}A({type:`dot`,value:O});continue}A({type:`text`,value:O})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return A({type:`eos`}),b}})),um=a(((e,t)=>{let n=nm(),r=om(),i=sm(),a=lm(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),dm=a(((e,n)=>{let r=t(`path`),i=`[^\\\\/]`,a=`[^/]`,o=`(?:\\/|$)`,s=`(?:^|\\/)`,c=`\\.{1,2}${o}`,l={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:a,END_ANCHOR:o,DOTS_SLASH:c,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${s}${c})`,NO_DOT_SLASH:`(?!\\.{0,1}${o})`,NO_DOTS_SLASH:`(?!${c})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${a}*?`,START_ANCHOR:s},u={...l,SLASH_LITERAL:`[\\\\/]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`};n.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?u:l}}})),fm=a((e=>{let n=t(`path`),r=process.platform===`win32`,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=dm();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>o.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(s,`\\$1`),e.toPosixSlashes=e=>e.replace(i,`/`),e.removeBackslashes=e=>e.replace(a,e=>e===`\\`?``:e),e.supportsLookbehinds=()=>{let e=process.version.slice(1).split(`.`).map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10},e.isWindows=e=>e&&typeof e.windows==`boolean`?e.windows:r===!0||n.sep===`\\`,e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r}})),pm=a(((e,t)=>{let n=fm(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=dm(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,j=!1,M=!1,N=!1,ee=!1,P=!1,F=!1,I=!1,L=!1,R=!1,te=0,z,B,V={value:``,depth:0,isGlob:!1},H=()=>D>=x,ne=()=>E.charCodeAt(D+1),re=()=>(z=B,E.charCodeAt(++D));for(;D<x;){B=re();let e;if(B===a){F=V.backslashes=!0,B=re(),B===u&&(P=!0);continue}if(P===!0||B===u){for(te++;H()!==!0&&(B=re());){if(B===a){F=V.backslashes=!0,re();continue}if(B===u){te++;continue}if(P!==!0&&B===s&&(B=re())===s){if(A=V.isBrace=!0,M=V.isGlob=!0,R=!0,S===!0)continue;break}if(P!==!0&&B===o){if(A=V.isBrace=!0,M=V.isGlob=!0,R=!0,S===!0)continue;break}if(B===h&&(te--,te===0)){P=!1,A=V.isBrace=!0,R=!0;break}}if(S===!0)continue;break}if(B===l){if(C.push(D),w.push(V),V={value:``,depth:0,isGlob:!1},R===!0)continue;if(z===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(B===p||B===i||B===r||B===m||B===c)&&ne()===d){if(M=V.isGlob=!0,N=V.isExtglob=!0,R=!0,B===c&&D===O&&(L=!0),S===!0){for(;H()!==!0&&(B=re());){if(B===a){F=V.backslashes=!0,B=re();continue}if(B===g){M=V.isGlob=!0,R=!0;break}}continue}break}if(B===r){if(z===r&&(ee=V.isGlobstar=!0),M=V.isGlob=!0,R=!0,S===!0)continue;break}if(B===m){if(M=V.isGlob=!0,R=!0,S===!0)continue;break}if(B===f){for(;H()!==!0&&(e=re());){if(e===a){F=V.backslashes=!0,re();continue}if(e===_){j=V.isBracket=!0,M=V.isGlob=!0,R=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&B===c&&D===O){I=V.negated=!0,O++;continue}if(b.noparen!==!0&&B===d){if(M=V.isGlob=!0,S===!0){for(;H()!==!0&&(B=re());){if(B===d){F=V.backslashes=!0,B=re();continue}if(B===g){R=!0;break}}continue}break}if(M===!0){if(R=!0,S===!0)continue;break}}b.noext===!0&&(N=!1,M=!1);let U=E,ie=``,ae=``;O>0&&(ie=E.slice(0,O),E=E.slice(O),k-=O),U&&M===!0&&k>0?(U=E.slice(0,k),ae=E.slice(k)):M===!0?(U=``,ae=E):U=E,U&&U!==``&&U!==`/`&&U!==E&&v(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),b.unescape===!0&&(ae&&=n.removeBackslashes(ae),U&&F===!0&&(U=n.removeBackslashes(U)));let oe={prefix:ie,input:e,start:O,base:U,glob:ae,isBrace:A,isBracket:j,isGlob:M,isExtglob:N,isGlobstar:ee,negated:I,negatedExtglob:L};if(b.tokens===!0&&(oe.maxDepth=0,v(B)||w.push(V),oe.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=ie):w[n].value=a,y(w[n]),oe.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),oe.maxDepth+=w[w.length-1].depth)}oe.slashes=C,oe.parts=T}return oe}})),mm=a(((e,t)=>{let n=dm(),r=fm(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch{return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let f={...t},p=typeof f.maxLength==`number`?Math.min(i,f.maxLength):i,m=e.length;if(m>p)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${p}`);let h={type:`bos`,value:``,output:f.prepend||``},g=[h],_=f.capture?``:`?:`,v=r.isWindows(t),y=n.globChars(v),b=n.extglobChars(y),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:j,START_ANCHOR:M}=y,N=e=>`(${_}(?:(?!${M}${e.dot?T:x}).)*?)`,ee=f.dot?``:E,P=f.dot?k:A,F=f.bash===!0?N(f):j;f.capture&&(F=`(${F})`),typeof f.noext==`boolean`&&(f.noextglob=f.noext);let I={input:e,index:-1,start:0,dot:f.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};e=r.removePrefix(e,I),m=e.length;let L=[],R=[],te=[],z=h,B,V=()=>I.index===m-1,H=I.peek=(t=1)=>e[I.index+t],ne=I.advance=()=>e[++I.index]||``,re=()=>e.slice(I.index+1),U=(e=``,t=0)=>{I.consumed+=e,I.index+=t},ie=e=>{I.output+=e.output==null?e.value:e.output,U(e.value)},ae=()=>{let e=1;for(;H()===`!`&&(H(2)!==`(`||H(3)===`?`);)ne(),I.start++,e++;return e%2==0?!1:(I.negated=!0,I.start++,!0)},oe=e=>{I[e]++,te.push(e)},se=e=>{I[e]--,te.pop()},W=e=>{if(z.type===`globstar`){let t=I.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||L.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(I.output=I.output.slice(0,-z.output.length),z.type=`star`,z.value=`*`,z.output=F,I.output+=z.output)}if(L.length&&e.type!==`paren`&&(L[L.length-1].inner+=e.value),(e.value||e.output)&&ie(e),z&&z.type===`text`&&e.type===`text`){z.value+=e.value,z.output=(z.output||``)+e.value;return}e.prev=z,g.push(e),z=e},G=(e,t)=>{let n={...b[t],conditions:1,inner:``};n.prev=z,n.parens=I.parens,n.output=I.output;let r=(f.capture?`(`:``)+n.open;oe(`parens`),W({type:e,value:t,output:I.output?``:w}),W({type:`paren`,extglob:!0,value:ne(),output:r}),L.push(n)},ce=e=>{let n=e.close+(f.capture?`)`:``),r;if(e.type===`negate`){let i=F;e.inner&&e.inner.length>1&&e.inner.includes(`/`)&&(i=N(f)),(i!==F||V()||/^\)+$/.test(re()))&&(n=e.close=`)$))${i}`),e.inner.includes(`*`)&&(r=re())&&/^\.[^\\/.]+$/.test(r)&&(n=e.close=`)${d(r,{...t,fastpaths:!1}).output})${i})`),e.prev.type===`bos`&&(I.negatedExtglob=!0)}W({type:`paren`,extglob:!0,value:B,output:n}),se(`parens`)};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?P+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?F:``):F:t?e:`\\${e}`);return n===!0&&(i=f.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&f.contains===!0?(I.output=e,I):(I.output=r.wrapOutput(i,I,t),I)}for(;!V();){if(B=ne(),B===`\0`)continue;if(B===`\\`){let e=H();if(e===`/`&&f.bash!==!0||e===`.`||e===`;`)continue;if(!e){B+=`\\`,W({type:`text`,value:B});continue}let t=/^\\+/.exec(re()),n=0;if(t&&t[0].length>2&&(n=t[0].length,I.index+=n,n%2!=0&&(B+=`\\`)),f.unescape===!0?B=ne():B+=ne(),I.brackets===0){W({type:`text`,value:B});continue}}if(I.brackets>0&&(B!==`]`||z.value===`[`||z.value===`[^`)){if(f.posix!==!1&&B===`:`){let e=z.value.slice(1);if(e.includes(`[`)&&(z.posix=!0,e.includes(`:`))){let e=z.value.lastIndexOf(`[`),t=z.value.slice(0,e),n=a[z.value.slice(e+2)];if(n){z.value=t+n,I.backtrack=!0,ne(),!h.output&&g.indexOf(z)===1&&(h.output=w);continue}}}(B===`[`&&H()!==`:`||B===`-`&&H()===`]`)&&(B=`\\${B}`),B===`]`&&(z.value===`[`||z.value===`[^`)&&(B=`\\${B}`),f.posix===!0&&B===`!`&&z.value===`[`&&(B=`^`),z.value+=B,ie({value:B});continue}if(I.quotes===1&&B!==`"`){B=r.escapeRegex(B),z.value+=B,ie({value:B});continue}if(B===`"`){I.quotes=I.quotes===1?0:1,f.keepQuotes===!0&&W({type:`text`,value:B});continue}if(B===`(`){oe(`parens`),W({type:`paren`,value:B});continue}if(B===`)`){if(I.parens===0&&f.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=L[L.length-1];if(e&&I.parens===e.parens+1){ce(L.pop());continue}W({type:`paren`,value:B,output:I.parens?`)`:`\\)`}),se(`parens`);continue}if(B===`[`){if(f.nobracket===!0||!re().includes(`]`)){if(f.nobracket!==!0&&f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));B=`\\${B}`}else oe(`brackets`);W({type:`bracket`,value:B});continue}if(B===`]`){if(f.nobracket===!0||z&&z.type===`bracket`&&z.value.length===1){W({type:`text`,value:B,output:`\\${B}`});continue}if(I.brackets===0){if(f.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));W({type:`text`,value:B,output:`\\${B}`});continue}se(`brackets`);let e=z.value.slice(1);if(z.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(B=`/${B}`),z.value+=B,ie({value:B}),f.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(z.value);if(I.output=I.output.slice(0,-z.value.length),f.literalBrackets===!0){I.output+=t,z.value=t;continue}z.value=`(${_}${t}|${z.value})`,I.output+=z.value;continue}if(B===`{`&&f.nobrace!==!0){oe(`braces`);let e={type:`brace`,value:B,output:`(`,outputIndex:I.output.length,tokensIndex:I.tokens.length};R.push(e),W(e);continue}if(B===`}`){let e=R[R.length-1];if(f.nobrace===!0||!e){W({type:`text`,value:B,output:B});continue}let t=`)`;if(e.dots===!0){let e=g.slice(),n=[];for(let t=e.length-1;t>=0&&(g.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,f),I.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=I.output.slice(0,e.outputIndex),r=I.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,B=t=`\\}`,I.output=n;for(let e of r)I.output+=e.output||e.value}W({type:`brace`,value:B,output:t}),se(`braces`),R.pop();continue}if(B===`|`){L.length>0&&L[L.length-1].conditions++,W({type:`text`,value:B});continue}if(B===`,`){let e=B,t=R[R.length-1];t&&te[te.length-1]===`braces`&&(t.comma=!0,e=`|`),W({type:`comma`,value:B,output:e});continue}if(B===`/`){if(z.type===`dot`&&I.index===I.start+1){I.start=I.index+1,I.consumed=``,I.output=``,g.pop(),z=h;continue}W({type:`slash`,value:B,output:C});continue}if(B===`.`){if(I.braces>0&&z.type===`dot`){z.value===`.`&&(z.output=x);let e=R[R.length-1];z.type=`dots`,z.output+=B,z.value+=B,e.dots=!0;continue}if(I.braces+I.parens===0&&z.type!==`bos`&&z.type!==`slash`){W({type:`text`,value:B,output:x});continue}W({type:`dot`,value:B,output:x});continue}if(B===`?`){if(!(z&&z.value===`(`)&&f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){G(`qmark`,B);continue}if(z&&z.type===`paren`){let e=H(),t=B;if(e===`<`&&!r.supportsLookbehinds())throw Error(`Node.js v10 or higher is required for regex lookbehinds`);(z.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(re()))&&(t=`\\${B}`),W({type:`text`,value:B,output:t});continue}if(f.dot!==!0&&(z.type===`slash`||z.type===`bos`)){W({type:`qmark`,value:B,output:A});continue}W({type:`qmark`,value:B,output:k});continue}if(B===`!`){if(f.noextglob!==!0&&H()===`(`&&(H(2)!==`?`||!/[!=<:]/.test(H(3)))){G(`negate`,B);continue}if(f.nonegate!==!0&&I.index===0){ae();continue}}if(B===`+`){if(f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){G(`plus`,B);continue}if(z&&z.value===`(`||f.regex===!1){W({type:`plus`,value:B,output:S});continue}if(z&&(z.type===`bracket`||z.type===`paren`||z.type===`brace`)||I.parens>0){W({type:`plus`,value:B});continue}W({type:`plus`,value:S});continue}if(B===`@`){if(f.noextglob!==!0&&H()===`(`&&H(2)!==`?`){W({type:`at`,extglob:!0,value:B,output:``});continue}W({type:`text`,value:B});continue}if(B!==`*`){(B===`$`||B===`^`)&&(B=`\\${B}`);let e=o.exec(re());e&&(B+=e[0],I.index+=e[0].length),W({type:`text`,value:B});continue}if(z&&(z.type===`globstar`||z.star===!0)){z.type=`star`,z.star=!0,z.value+=B,z.output=F,I.backtrack=!0,I.globstar=!0,U(B);continue}let t=re();if(f.noextglob!==!0&&/^\([^?]/.test(t)){G(`star`,B);continue}if(z.type===`star`){if(f.noglobstar===!0){U(B);continue}let n=z.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(f.bash===!0&&(!i||t[0]&&t[0]!==`/`)){W({type:`star`,value:B,output:``});continue}let o=I.braces>0&&(n.type===`comma`||n.type===`brace`),s=L.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){W({type:`star`,value:B,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[I.index+4];if(n&&n!==`/`)break;t=t.slice(3),U(`/**`,3)}if(n.type===`bos`&&V()){z.type=`globstar`,z.value+=B,z.output=N(f),I.output=z.output,I.globstar=!0,U(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&V()){I.output=I.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=N(f)+(f.strictSlashes?`)`:`|$)`),z.value+=B,I.globstar=!0,I.output+=n.output+z.output,U(B);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;I.output=I.output.slice(0,-(n.output+z.output).length),n.output=`(?:${n.output}`,z.type=`globstar`,z.output=`${N(f)}${C}|${C}${e})`,z.value+=B,I.output+=n.output+z.output,I.globstar=!0,U(B+ne()),W({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){z.type=`globstar`,z.value+=B,z.output=`(?:^|${C}|${N(f)}${C})`,I.output=z.output,I.globstar=!0,U(B+ne()),W({type:`slash`,value:`/`,output:``});continue}I.output=I.output.slice(0,-z.output.length),z.type=`globstar`,z.output=N(f),z.value+=B,I.output+=z.output,I.globstar=!0,U(B);continue}let n={type:`star`,value:B,output:F};if(f.bash===!0){n.output=`.*?`,(z.type===`bos`||z.type===`slash`)&&(n.output=ee+n.output),W(n);continue}if(z&&(z.type===`bracket`||z.type===`paren`)&&f.regex===!0){n.output=B,W(n);continue}(I.index===I.start||z.type===`slash`||z.type===`dot`)&&(z.type===`dot`?(I.output+=D,z.output+=D):f.dot===!0?(I.output+=O,z.output+=O):(I.output+=ee,z.output+=ee),H()!==`*`&&(I.output+=w,z.output+=w)),W(n)}for(;I.brackets>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));I.output=r.escapeLast(I.output,`[`),se(`brackets`)}for(;I.parens>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));I.output=r.escapeLast(I.output,`(`),se(`parens`)}for(;I.braces>0;){if(f.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));I.output=r.escapeLast(I.output,`{`),se(`braces`)}if(f.strictSlashes!==!0&&(z.type===`star`||z.type===`bracket`)&&W({type:`maybe_slash`,value:``,output:`${C}?`}),I.backtrack===!0){I.output=``;for(let e of I.tokens)I.output+=e.output==null?e.value:e.output,e.suffix&&(I.output+=e.suffix)}return I};d.fastpaths=(e,t)=>{let a={...t},o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let l=r.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:_,START_ANCHOR:v}=n.globChars(l),y=a.dot?h:m,b=a.dot?g:m,x=a.capture?``:`?:`,S={negated:!1,prefix:``},C=a.bash===!0?`.*?`:_;a.capture&&(C=`(${C})`);let w=e=>e.noglobstar===!0?C:`(${x}(?:(?!${v}${e.dot?p:u}).)*?)`,T=e=>{switch(e){case`*`:return`${y}${f}${C}`;case`.*`:return`${u}${f}${C}`;case`*.*`:return`${y}${C}${u}${f}${C}`;case`*/*`:return`${y}${C}${d}${f}${b}${C}`;case`**`:return y+w(a);case`**/*`:return`(?:${y}${w(a)}${d})?${b}${f}${C}`;case`**/*.*`:return`(?:${y}${w(a)}${d})?${b}${C}${u}${f}${C}`;case`**/.*`:return`(?:${y}${w(a)}${d})?${u}${f}${C}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=T(t[1]);return n?n+u+t[2]:void 0}}},E=T(r.removePrefix(e,S));return E&&a.strictSlashes!==!0&&(E+=`${d}?`),E},t.exports=d})),hm=a(((e,n)=>{let r=t(`path`),i=pm(),a=mm(),o=fm(),s=dm(),c=e=>e&&typeof e==`object`&&!Array.isArray(e),l=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>l(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=c(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=o.isWindows(t),s=r?l.compileRe(e,t):l.makeRe(e,t,!1,!0),u=s.state;delete s.state;let d=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};d=l(i.ignore,e,n)}let f=(n,r=!1)=>{let{isMatch:o,match:c,output:f}=l.test(n,s,t,{glob:e,posix:a}),p={glob:e,state:u,regex:s,posix:a,input:n,output:f,match:c,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):d(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(f.state=u),f};l.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let a=n||{},s=a.format||(i?o.toPosixSlashes:null),c=e===r,u=c&&s?s(e):e;return c===!1&&(u=s?s(e):e,c=u===r),(c===!1||a.capture===!0)&&(c=a.matchBase===!0||a.basename===!0?l.matchBase(e,t,n,i):t.exec(u)),{isMatch:!!c,match:c,output:u}},l.matchBase=(e,t,n,i=o.isWindows(n))=>(t instanceof RegExp?t:l.makeRe(t,n)).test(r.basename(e)),l.isMatch=(e,t,n)=>l(t,n)(e),l.parse=(e,t)=>Array.isArray(e)?e.map(e=>l.parse(e,t)):a(e,{...t,fastpaths:!1}),l.scan=(e,t)=>i(e,t),l.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,s=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let c=l.toRegex(s,t);return r===!0&&(c.state=e),c},l.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(i.output=a.fastpaths(e,t)),i.output||(i=a(e,t)),l.compileRe(i,t,n,r)},l.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},l.constants=s,n.exports=l})),gm=a(((e,t)=>{t.exports=hm()})),_m=a(((e,n)=>{let r=t(`util`),i=um(),a=gm(),o=fm(),s=e=>e===``||e===`./`,c=e=>{let t=e.indexOf(`{`);return t>-1&&e.indexOf(`}`,t)>-1},l=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,o=new Set,s=0,c=e=>{o.add(e.output),n&&n.onResult&&n.onResult(e)};for(let o=0;o<t.length;o++){let l=a(String(t[o]),{...n,onResult:c},!0),u=l.state.negated||l.state.negatedExtglob;u&&s++;for(let t of e){let e=l(t,!0);(u?!e.isMatch:e.isMatch)&&(u?r.add(e.output):(r.delete(e.output),i.add(e.output)))}}let l=(s===t.length?[...o]:[...i]).filter(e=>!r.has(e));if(n&&l.length===0){if(n.failglob===!0)throw Error(`No matches found for "${t.join(`, `)}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(e=>e.replace(/\\/g,``)):t}return l};l.match=l,l.matcher=(e,t)=>a(e,t),l.isMatch=(e,t,n)=>a(t,n)(e),l.any=l.isMatch,l.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],a=e=>{n.onResult&&n.onResult(e),i.push(e.output)},o=new Set(l(e,t,{...n,onResult:a}));for(let e of i)o.has(e)||r.add(e);return[...r]},l.contains=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${r.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>l.contains(e,t,n));if(typeof t==`string`){if(s(e)||s(t))return!1;if(e.includes(t)||e.startsWith(`./`)&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...n,contains:!0})},l.matchKeys=(e,t,n)=>{if(!o.isObject(e))throw TypeError(`Expected the first argument to be an object`);let r=l(Object.keys(e),t,n),i={};for(let t of r)i[t]=e[t];return i},l.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(r.some(e=>t(e)))return!0}return!1},l.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),n);if(!r.every(e=>t(e)))return!1}return!0},l.all=(e,t,n)=>{if(typeof e!=`string`)throw TypeError(`Expected a string: "${r.inspect(e)}"`);return[].concat(t).every(t=>a(t,n)(e))},l.capture=(e,t,n)=>{let r=o.isWindows(n),i=a.makeRe(String(e),{...n,capture:!0}).exec(r?o.toPosixSlashes(t):t);if(i)return i.slice(1).map(e=>e===void 0?``:e)},l.makeRe=(...e)=>a.makeRe(...e),l.scan=(...e)=>a.scan(...e),l.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of i(String(r),t))n.push(a.parse(e,t));return n},l.braces=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return t&&t.nobrace===!0||!c(e)?[e]:i(e,t)},l.braceExpand=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return l.braces(e,{...t,expand:!0})},l.hasBraces=c,n.exports=l})),vm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchPathFilter=o;let n=em(),r=_m(),i=t(`url`),a=Bp();function o(e=`/`,t,n){if(f(e))return s(e,t);if(p(e))return c(e,t);if(Array.isArray(e)){if(e.every(f))return u(e,t);if(e.every(p))return l(e,t);throw Error(a.ERRORS.ERR_CONTEXT_MATCHER_INVALID_ARRAY)}if(typeof e==`function`)return e(d(t),n);throw Error(a.ERRORS.ERR_CONTEXT_MATCHER_GENERIC)}function s(e,t){return d(t)?.indexOf(e)===0}function c(e,t){let n=r([d(t)],e);return n&&n.length>0}function l(e,t){return c(e,t)}function u(e,t){let n=!1;for(let r of e)if(s(r,t)){n=!0;break}return n}function d(e){return e&&i.parse(e).pathname}function f(e){return typeof e==`string`&&!n(e)}function p(e){return n(e)}})),ym=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});
181
181
  /*!
182
182
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
183
183
  *
184
184
  * Copyright (c) 2014-2017, Jon Schlinkert.
185
185
  * Released under the MIT License.
186
186
  */
187
- function t(e){return Object.prototype.toString.call(e)===`[object Object]`}function n(e){var n,r;return t(e)===!1?!1:(n=e.constructor,n===void 0?!0:(r=n.prototype,!(t(r)===!1||r.hasOwnProperty(`isPrototypeOf`)===!1)))}e.isPlainObject=n})),tm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createPathRewriter=i;let t=em(),n=xp(),r=Cp().Debug.extend(`path-rewriter`);function i(e){let t;if(!a(e))return;if(typeof e==`function`)return e;return t=o(e),n;function n(e){let n=e;for(let i of t)if(i.regex.test(e)){n=n.replace(i.regex,i.value),r(`rewriting path from "%s" to "%s"`,e,n);break}return n}}function a(e){if(typeof e==`function`)return!0;if((0,t.isPlainObject)(e))return Object.keys(e).length!==0;if(e==null)return!1;throw Error(n.ERRORS.ERR_PATH_REWRITER_CONFIG)}function o(e){let n=[];if((0,t.isPlainObject)(e))for(let[t,i]of Object.entries(e))n.push({regex:new RegExp(t),value:i}),r(`rewrite rule created: "%s" ~> "%s"`,t,i);return n}})),nm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTarget=r;let t=em(),n=Cp().Debug.extend(`router`);async function r(e,n){let r,a=n.router;return(0,t.isPlainObject)(a)?r=i(e,a):typeof a==`function`&&(r=await a(e)),r}function i(e,t){let r,i=e.headers.host,o=i+e.url;for(let[e,s]of Object.entries(t))if(a(e)){if(o.indexOf(e)>-1){r=s,n(`match: "%s" -> "%s"`,e,r);break}}else if(e===i){r=s,n(`match: "%s" -> "%s"`,i,r);break}return r}function a(e){return e.indexOf(`/`)>-1}})),rm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyMiddleware=void 0;let t=bp(),n=Sp(),r=Np(),i=$p(),a=tm(),o=nm(),s=Cp(),c=Ap(),l=Dp();e.HttpProxyMiddleware=class{constructor(e){this.wsInternalSubscribed=!1,this.serverOnCloseSubscribed=!1,this.middleware=(async(e,t,n)=>{if(this.shouldProxy(this.proxyOptions.pathFilter,e))try{let n=await this.prepareProxyRequest(e);(0,s.Debug)(`proxy request to target: %O`,n.target),this.proxy.web(e,t,n)}catch(e){n?.(e)}else n?.();let r=(e.socket??e.connection)?.server;r&&!this.serverOnCloseSubscribed&&(r.on(`close`,()=>{(0,s.Debug)(`server close signal received: closing proxy server`),this.proxy.close()}),this.serverOnCloseSubscribed=!0),this.proxyOptions.ws===!0&&this.catchUpgradeRequest(r)}),this.catchUpgradeRequest=e=>{this.wsInternalSubscribed||=((0,s.Debug)(`subscribing to server upgrade event`),e.on(`upgrade`,this.handleUpgrade),!0)},this.handleUpgrade=async(e,t,n)=>{try{if(this.shouldProxy(this.proxyOptions.pathFilter,e)){let r=await this.prepareProxyRequest(e);this.proxy.ws(e,t,n,r),(0,s.Debug)(`server upgrade event received. Proxying WebSocket`)}}catch(n){this.proxy.emit(`error`,n,e,t)}},this.shouldProxy=(e,t)=>{try{return(0,i.matchPathFilter)(e,t.url,t)}catch(e){return(0,s.Debug)(`Error: matchPathFilter() called with request url: `,`"${t.url}"`),this.logger.error(e),!1}},this.prepareProxyRequest=async e=>{this.middleware.__LEGACY_HTTP_PROXY_MIDDLEWARE__&&(e.url=e.originalUrl||e.url);let t=Object.assign({},this.proxyOptions);return await this.applyRouter(e,t),await this.applyPathRewrite(e,this.pathRewriter),t},this.applyRouter=async(e,t)=>{let n;t.router&&(n=await o.getTarget(e,t),n&&((0,s.Debug)(`router new target: "%s"`,n),t.target=n))},this.applyPathRewrite=async(e,t)=>{if(t){let n=await t(e.url,e);typeof n==`string`?((0,s.Debug)(`pathRewrite new path: %s`,e.url),e.url=n):(0,s.Debug)(`pathRewrite: no rewritten path found: %s`,e.url)}},(0,n.verifyConfig)(e),this.proxyOptions=e,this.logger=(0,l.getLogger)(e),(0,s.Debug)(`create proxy server`),this.proxy=t.createProxyServer({}),this.registerPlugins(this.proxy,this.proxyOptions),this.pathRewriter=a.createPathRewriter(this.proxyOptions.pathRewrite),this.middleware.upgrade=(e,t,n)=>{this.wsInternalSubscribed||this.handleUpgrade(e,t,n)}}registerPlugins(e,t){(0,r.getPlugins)(t).forEach(n=>{(0,s.Debug)(`register plugin: "${(0,c.getFunctionName)(n)}"`),n(e,t)})}}})),im=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createProxyMiddleware=n;let t=rm();function n(e){let{middleware:n}=new t.HttpProxyMiddleware(e);return n}})),am=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.responseInterceptor=o;let n=t(`zlib`),r=Cp(),i=Ap(),a=r.Debug.extend(`response-interceptor`);function o(e){return async function(t,n,r){a(`intercept proxy response`);let o=t,l=Buffer.from(``,`utf8`),u=s(t,t.headers[`content-encoding`]);u.on(`data`,e=>l=Buffer.concat([l,e])),u.on(`end`,async()=>{c(t,r),a(`call interceptor function: %s`,(0,i.getFunctionName)(e));let s=Buffer.from(await e(l,o,n,r));a(`set content-length: %s`,Buffer.byteLength(s,`utf8`)),r.setHeader(`content-length`,Buffer.byteLength(s,`utf8`)),a(`write intercepted response`),r.write(s),r.end()}),u.on(`error`,e=>{r.end(`Error fetching proxied request: ${e.message}`)})}}function s(e,t){let r=e,i;switch(t){case`gzip`:i=n.createGunzip();break;case`br`:i=n.createBrotliDecompress();break;case`deflate`:i=n.createInflate();break;default:break}return i&&(a(`decompress proxy response with 'content-encoding': %s`,t),r.pipe(i),r=i),r}function c(e,t){if(a(`copy original response headers`),t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.setHeader){let n=Object.keys(e.headers);n=n.filter(e=>![`content-encoding`,`transfer-encoding`].includes(e)),n.forEach(n=>{let r=e.headers[n];n===`set-cookie`&&(r=Array.isArray(r)?r:[r],r=r.map(e=>e.replace(/Domain=[^;]+?/i,``))),t.setHeader(n,r)})}else t.headers=e.headers}})),om=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fixRequestBody=r;let n=t(`querystring`);function r(e,t){if(t.readableLength!==0)return;let r=t.body;if(!r)return;let a=e.getHeader(`Content-Type`);if(!a)return;let o=t=>{e.setHeader(`Content-Length`,Buffer.byteLength(t)),e.write(t)};a.includes(`application/json`)||a.includes(`+json`)?o(JSON.stringify(r)):a.includes(`application/x-www-form-urlencoded`)?o(n.stringify(r)):a.includes(`multipart/form-data`)&&o(i(a,r))}function i(e,t){let n=e.replace(/^.*boundary=(.*)$/,`$1`),r=``;for(let[e,i]of Object.entries(t))r+=`--${n}\r\nContent-Disposition: form-data; name="${e}"\r\n\r\n${i}\r\n`;return r}})),sm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fixRequestBody=e.responseInterceptor=void 0;var t=am();Object.defineProperty(e,`responseInterceptor`,{enumerable:!0,get:function(){return t.responseInterceptor}});var n=om();Object.defineProperty(e,`fixRequestBody`,{enumerable:!0,get:function(){return n.fixRequestBody}})})),cm=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(sm(),e)})),lm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacyOptionsAdapter=s;let n=t(`url`),r=Cp(),i=Dp(),a=r.Debug.extend(`legacy-options-adapter`),o={onError:`error`,onProxyReq:`proxyReq`,onProxyRes:`proxyRes`,onProxyReqWs:`proxyReqWs`,onOpen:`open`,onClose:`close`};function s(e,t){let r={},i;if(typeof e==`string`&&n.parse(e).host)throw Error(`Shorthand syntax is removed from legacyCreateProxyMiddleware().
187
+ function t(e){return Object.prototype.toString.call(e)===`[object Object]`}function n(e){var n,r;return t(e)===!1?!1:(n=e.constructor,n===void 0?!0:(r=n.prototype,!(t(r)===!1||r.hasOwnProperty(`isPrototypeOf`)===!1)))}e.isPlainObject=n})),bm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createPathRewriter=i;let t=ym(),n=Bp(),r=Hp().Debug.extend(`path-rewriter`);function i(e){let t;if(!a(e))return;if(typeof e==`function`)return e;return t=o(e),n;function n(e){let n=e;for(let i of t)if(i.regex.test(e)){n=n.replace(i.regex,i.value),r(`rewriting path from "%s" to "%s"`,e,n);break}return n}}function a(e){if(typeof e==`function`)return!0;if((0,t.isPlainObject)(e))return Object.keys(e).length!==0;if(e==null)return!1;throw Error(n.ERRORS.ERR_PATH_REWRITER_CONFIG)}function o(e){let n=[];if((0,t.isPlainObject)(e))for(let[t,i]of Object.entries(e))n.push({regex:new RegExp(t),value:i}),r(`rewrite rule created: "%s" ~> "%s"`,t,i);return n}})),xm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTarget=r;let t=ym(),n=Hp().Debug.extend(`router`);async function r(e,n){let r,a=n.router;return(0,t.isPlainObject)(a)?r=i(e,a):typeof a==`function`&&(r=await a(e)),r}function i(e,t){let r,i=e.headers.host,o=i+e.url;for(let[e,s]of Object.entries(t))if(a(e)){if(o.indexOf(e)>-1){r=s,n(`match: "%s" -> "%s"`,e,r);break}}else if(e===i){r=s,n(`match: "%s" -> "%s"`,i,r);break}return r}function a(e){return e.indexOf(`/`)>-1}})),Sm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpProxyMiddleware=void 0;let t=zp(),n=Vp(),r=Qp(),i=vm(),a=bm(),o=xm(),s=Hp(),c=Yp(),l=Kp();e.HttpProxyMiddleware=class{constructor(e){this.wsInternalSubscribed=!1,this.serverOnCloseSubscribed=!1,this.middleware=(async(e,t,n)=>{if(this.shouldProxy(this.proxyOptions.pathFilter,e))try{let n=await this.prepareProxyRequest(e);(0,s.Debug)(`proxy request to target: %O`,n.target),this.proxy.web(e,t,n)}catch(e){n?.(e)}else n?.();let r=(e.socket??e.connection)?.server;r&&!this.serverOnCloseSubscribed&&(r.on(`close`,()=>{(0,s.Debug)(`server close signal received: closing proxy server`),this.proxy.close()}),this.serverOnCloseSubscribed=!0),this.proxyOptions.ws===!0&&this.catchUpgradeRequest(r)}),this.catchUpgradeRequest=e=>{this.wsInternalSubscribed||=((0,s.Debug)(`subscribing to server upgrade event`),e.on(`upgrade`,this.handleUpgrade),!0)},this.handleUpgrade=async(e,t,n)=>{try{if(this.shouldProxy(this.proxyOptions.pathFilter,e)){let r=await this.prepareProxyRequest(e);this.proxy.ws(e,t,n,r),(0,s.Debug)(`server upgrade event received. Proxying WebSocket`)}}catch(n){this.proxy.emit(`error`,n,e,t)}},this.shouldProxy=(e,t)=>{try{return(0,i.matchPathFilter)(e,t.url,t)}catch(e){return(0,s.Debug)(`Error: matchPathFilter() called with request url: `,`"${t.url}"`),this.logger.error(e),!1}},this.prepareProxyRequest=async e=>{this.middleware.__LEGACY_HTTP_PROXY_MIDDLEWARE__&&(e.url=e.originalUrl||e.url);let t=Object.assign({},this.proxyOptions);return await this.applyRouter(e,t),await this.applyPathRewrite(e,this.pathRewriter),t},this.applyRouter=async(e,t)=>{let n;t.router&&(n=await o.getTarget(e,t),n&&((0,s.Debug)(`router new target: "%s"`,n),t.target=n))},this.applyPathRewrite=async(e,t)=>{if(t){let n=await t(e.url,e);typeof n==`string`?((0,s.Debug)(`pathRewrite new path: %s`,e.url),e.url=n):(0,s.Debug)(`pathRewrite: no rewritten path found: %s`,e.url)}},(0,n.verifyConfig)(e),this.proxyOptions=e,this.logger=(0,l.getLogger)(e),(0,s.Debug)(`create proxy server`),this.proxy=t.createProxyServer({}),this.registerPlugins(this.proxy,this.proxyOptions),this.pathRewriter=a.createPathRewriter(this.proxyOptions.pathRewrite),this.middleware.upgrade=(e,t,n)=>{this.wsInternalSubscribed||this.handleUpgrade(e,t,n)}}registerPlugins(e,t){(0,r.getPlugins)(t).forEach(n=>{(0,s.Debug)(`register plugin: "${(0,c.getFunctionName)(n)}"`),n(e,t)})}}})),Cm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createProxyMiddleware=n;let t=Sm();function n(e){let{middleware:n}=new t.HttpProxyMiddleware(e);return n}})),wm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.responseInterceptor=o;let n=t(`zlib`),r=Hp(),i=Yp(),a=r.Debug.extend(`response-interceptor`);function o(e){return async function(t,n,r){a(`intercept proxy response`);let o=t,l=Buffer.from(``,`utf8`),u=s(t,t.headers[`content-encoding`]);u.on(`data`,e=>l=Buffer.concat([l,e])),u.on(`end`,async()=>{c(t,r),a(`call interceptor function: %s`,(0,i.getFunctionName)(e));let s=Buffer.from(await e(l,o,n,r));a(`set content-length: %s`,Buffer.byteLength(s,`utf8`)),r.setHeader(`content-length`,Buffer.byteLength(s,`utf8`)),a(`write intercepted response`),r.write(s),r.end()}),u.on(`error`,e=>{r.end(`Error fetching proxied request: ${e.message}`)})}}function s(e,t){let r=e,i;switch(t){case`gzip`:i=n.createGunzip();break;case`br`:i=n.createBrotliDecompress();break;case`deflate`:i=n.createInflate();break;default:break}return i&&(a(`decompress proxy response with 'content-encoding': %s`,t),r.pipe(i),r=i),r}function c(e,t){if(a(`copy original response headers`),t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.setHeader){let n=Object.keys(e.headers);n=n.filter(e=>![`content-encoding`,`transfer-encoding`].includes(e)),n.forEach(n=>{let r=e.headers[n];n===`set-cookie`&&(r=Array.isArray(r)?r:[r],r=r.map(e=>e.replace(/Domain=[^;]+?/i,``))),t.setHeader(n,r)})}else t.headers=e.headers}})),Tm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fixRequestBody=r;let n=t(`querystring`);function r(e,t){if(t.readableLength!==0)return;let r=t.body;if(!r)return;let a=e.getHeader(`Content-Type`);if(!a)return;let o=t=>{e.setHeader(`Content-Length`,Buffer.byteLength(t)),e.write(t)};a.includes(`application/json`)||a.includes(`+json`)?o(JSON.stringify(r)):a.includes(`application/x-www-form-urlencoded`)?o(n.stringify(r)):a.includes(`multipart/form-data`)&&o(i(a,r))}function i(e,t){let n=e.replace(/^.*boundary=(.*)$/,`$1`),r=``;for(let[e,i]of Object.entries(t))r+=`--${n}\r\nContent-Disposition: form-data; name="${e}"\r\n\r\n${i}\r\n`;return r}})),Em=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fixRequestBody=e.responseInterceptor=void 0;var t=wm();Object.defineProperty(e,`responseInterceptor`,{enumerable:!0,get:function(){return t.responseInterceptor}});var n=Tm();Object.defineProperty(e,`fixRequestBody`,{enumerable:!0,get:function(){return n.fixRequestBody}})})),Dm=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Em(),e)})),Om=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacyOptionsAdapter=s;let n=t(`url`),r=Hp(),i=Kp(),a=r.Debug.extend(`legacy-options-adapter`),o={onError:`error`,onProxyReq:`proxyReq`,onProxyRes:`proxyRes`,onProxyReqWs:`proxyReqWs`,onOpen:`open`,onClose:`close`};function s(e,t){let r={},i;if(typeof e==`string`&&n.parse(e).host)throw Error(`Shorthand syntax is removed from legacyCreateProxyMiddleware().
188
188
  Please use "legacyCreateProxyMiddleware({ target: 'http://www.example.org' })" instead.
189
189
 
190
190
  More details: https://github.com/chimurai/http-proxy-middleware/blob/master/MIGRATION.md#removed-shorthand-usage
@@ -211,24 +211,24 @@ function t(e){return Object.prototype.toString.call(e)===`[object Object]`}funct
211
211
  }
212
212
 
213
213
  More details: https://github.com/chimurai/http-proxy-middleware/blob/master/MIGRATION.md#removed-logprovider-and-loglevel-options
214
- `)),r}function c(e){let t=e.logProvider&&e.logProvider();return t&&(e.logger=t),(0,i.getLogger)(e)}})),um=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacyCreateProxyMiddleware=a;let t=im(),n=Cp(),r=lm(),i=n.Debug.extend(`legacy-create-proxy-middleware`);function a(e,n){i(`init`);let a=(0,r.legacyOptionsAdapter)(e,n),o=(0,t.createProxyMiddleware)(a);return i(`add marker for patching req.url (old behavior)`),o.__LEGACY_HTTP_PROXY_MIDDLEWARE__=!0,o}})),dm=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacyCreateProxyMiddleware=void 0;var t=um();Object.defineProperty(e,`legacyCreateProxyMiddleware`,{enumerable:!0,get:function(){return t.legacyCreateProxyMiddleware}})})),fm=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(dm(),e)})),pm=r(a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(im(),e),n(cm(),e),n(Mp(),e),n(fm(),e)}))(),1);function mm(e,t){return t||`https://${e}.api.commercecloud.salesforce.com`}function hm(){let e=process.env.MRT_ENV_BASE_PATH?.trim();if(!e)return``;if(!/^\/[a-zA-Z0-9_.+$~"'@:-]{1,63}$/.test(e))throw Error(`Invalid base path: "${e}". Base path must be a single segment starting with '/' (e.g., '/site-a'), contain only URL-safe characters, and be at most 63 characters after the leading slash.`);return e}function gm(e){return`${hm()}/mobify/bundle/${e}/client/`}function _m(e){return(0,pm.createProxyMiddleware)({target:mm(e.commerce.api.shortCode,e.commerce.api.proxyHost),changeOrigin:!0,secure:!e.commerce.api.proxyHost})}const vm=(e=0)=>t=>`\u001B[${t+e}m`,ym=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,bm=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,xm={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(xm.modifier);const Sm=Object.keys(xm.color),Cm=Object.keys(xm.bgColor);[...Sm,...Cm];function wm(){let e=new Map;for(let[t,n]of Object.entries(xm)){for(let[t,r]of Object.entries(n))xm[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=xm[t],e.set(r[0],r[1]);Object.defineProperty(xm,t,{value:n,enumerable:!1})}return Object.defineProperty(xm,`codes`,{value:e,enumerable:!1}),xm.color.close=`\x1B[39m`,xm.bgColor.close=`\x1B[49m`,xm.color.ansi=vm(),xm.color.ansi256=ym(),xm.color.ansi16m=bm(),xm.bgColor.ansi=vm(10),xm.bgColor.ansi256=ym(10),xm.bgColor.ansi16m=bm(10),Object.defineProperties(xm,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>xm.rgbToAnsi256(...xm.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>xm.ansi256ToAnsi(xm.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>xm.ansi256ToAnsi(xm.hexToAnsi256(e)),enumerable:!1}}),xm}var Tm=wm();function Em(e,t=globalThis.Deno?globalThis.Deno.args:o.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}const{env:Dm}=o;let Om;Em(`no-color`)||Em(`no-colors`)||Em(`color=false`)||Em(`color=never`)?Om=0:(Em(`color`)||Em(`colors`)||Em(`color=true`)||Em(`color=always`))&&(Om=1);function km(){if(`FORCE_COLOR`in Dm)return Dm.FORCE_COLOR===`true`?1:Dm.FORCE_COLOR===`false`?0:Dm.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Dm.FORCE_COLOR,10),3)}function Am(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function jm(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=km();r!==void 0&&(Om=r);let i=n?Om:r;if(i===0)return 0;if(n){if(Em(`color=16m`)||Em(`color=full`)||Em(`color=truecolor`))return 3;if(Em(`color=256`))return 2}if(`TF_BUILD`in Dm&&`AGENT_NAME`in Dm)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(Dm.TERM===`dumb`)return a;if(o.platform===`win32`){let e=s.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in Dm)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in Dm)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in Dm)||Dm.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in Dm)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Dm.TEAMCITY_VERSION)?1:0;if(Dm.COLORTERM===`truecolor`||Dm.TERM===`xterm-kitty`||Dm.TERM===`xterm-ghostty`||Dm.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in Dm){let e=Number.parseInt((Dm.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(Dm.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(Dm.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Dm.TERM)||`COLORTERM`in Dm?1:a}function Mm(e,t={}){return Am(jm(e,{streamIsTTY:e&&e.isTTY,...t}))}var Nm={stdout:Mm({isTTY:c.isatty(1)}),stderr:Mm({isTTY:c.isatty(2)})};function Pm(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function Fm(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
214
+ `)),r}function c(e){let t=e.logProvider&&e.logProvider();return t&&(e.logger=t),(0,i.getLogger)(e)}})),km=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacyCreateProxyMiddleware=a;let t=Cm(),n=Hp(),r=Om(),i=n.Debug.extend(`legacy-create-proxy-middleware`);function a(e,n){i(`init`);let a=(0,r.legacyOptionsAdapter)(e,n),o=(0,t.createProxyMiddleware)(a);return i(`add marker for patching req.url (old behavior)`),o.__LEGACY_HTTP_PROXY_MIDDLEWARE__=!0,o}})),Am=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.legacyCreateProxyMiddleware=void 0;var t=km();Object.defineProperty(e,`legacyCreateProxyMiddleware`,{enumerable:!0,get:function(){return t.legacyCreateProxyMiddleware}})})),jm=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Am(),e)})),Mm=r(a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Cm(),e),n(Dm(),e),n(Zp(),e),n(jm(),e)}))(),1);function Nm(e,t){return t||`https://${e}.api.commercecloud.salesforce.com`}function Pm(){let e=process.env.MRT_ENV_BASE_PATH?.trim();if(!e)return``;if(!/^\/[a-zA-Z0-9_.+$~"'@:-]{1,63}$/.test(e))throw Error(`Invalid base path: "${e}". Base path must be a single segment starting with '/' (e.g., '/site-a'), contain only URL-safe characters, and be at most 63 characters after the leading slash.`);return e}function Fm(e){return`${Pm()}/mobify/bundle/${e}/client/`}function Im(e){return(0,Mm.createProxyMiddleware)({target:Nm(e.commerce.api.shortCode,e.commerce.api.proxyHost),changeOrigin:!0,secure:!e.commerce.api.proxyHost})}const Lm=(e=0)=>t=>`\u001B[${t+e}m`,Rm=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,zm=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,Bm={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Bm.modifier);const Vm=Object.keys(Bm.color),Hm=Object.keys(Bm.bgColor);[...Vm,...Hm];function Um(){let e=new Map;for(let[t,n]of Object.entries(Bm)){for(let[t,r]of Object.entries(n))Bm[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=Bm[t],e.set(r[0],r[1]);Object.defineProperty(Bm,t,{value:n,enumerable:!1})}return Object.defineProperty(Bm,`codes`,{value:e,enumerable:!1}),Bm.color.close=`\x1B[39m`,Bm.bgColor.close=`\x1B[49m`,Bm.color.ansi=Lm(),Bm.color.ansi256=Rm(),Bm.color.ansi16m=zm(),Bm.bgColor.ansi=Lm(10),Bm.bgColor.ansi256=Rm(10),Bm.bgColor.ansi16m=zm(10),Object.defineProperties(Bm,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>Bm.rgbToAnsi256(...Bm.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>Bm.ansi256ToAnsi(Bm.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>Bm.ansi256ToAnsi(Bm.hexToAnsi256(e)),enumerable:!1}}),Bm}var Wm=Um();function Gm(e,t=globalThis.Deno?globalThis.Deno.args:o.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}const{env:Km}=o;let qm;Gm(`no-color`)||Gm(`no-colors`)||Gm(`color=false`)||Gm(`color=never`)?qm=0:(Gm(`color`)||Gm(`colors`)||Gm(`color=true`)||Gm(`color=always`))&&(qm=1);function Jm(){if(`FORCE_COLOR`in Km)return Km.FORCE_COLOR===`true`?1:Km.FORCE_COLOR===`false`?0:Km.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Km.FORCE_COLOR,10),3)}function Ym(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Xm(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Jm();r!==void 0&&(qm=r);let i=n?qm:r;if(i===0)return 0;if(n){if(Gm(`color=16m`)||Gm(`color=full`)||Gm(`color=truecolor`))return 3;if(Gm(`color=256`))return 2}if(`TF_BUILD`in Km&&`AGENT_NAME`in Km)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(Km.TERM===`dumb`)return a;if(o.platform===`win32`){let e=s.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in Km)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in Km)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in Km)||Km.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in Km)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Km.TEAMCITY_VERSION)?1:0;if(Km.COLORTERM===`truecolor`||Km.TERM===`xterm-kitty`||Km.TERM===`xterm-ghostty`||Km.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in Km){let e=Number.parseInt((Km.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(Km.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(Km.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Km.TERM)||`COLORTERM`in Km?1:a}function Zm(e,t={}){return Ym(Xm(e,{streamIsTTY:e&&e.isTTY,...t}))}var Qm={stdout:Zm({isTTY:c.isatty(1)}),stderr:Zm({isTTY:c.isatty(2)})};function $m(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function eh(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
215
215
  `:`
216
216
  `)+n,i=r+1,r=e.indexOf(`
217
- `,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:Im,stderr:Lm}=Nm,Rm=Symbol(`GENERATOR`),zm=Symbol(`STYLER`),Bm=Symbol(`IS_EMPTY`),Vm=[`ansi`,`ansi`,`ansi256`,`ansi16m`],Hm=Object.create(null),Um=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=Im?Im.level:0;e.level=t.level===void 0?n:t.level},Wm=e=>{let t=(...e)=>e.join(` `);return Um(t,e),Object.setPrototypeOf(t,Gm.prototype),t};function Gm(e){return Wm(e)}Object.setPrototypeOf(Gm.prototype,Function.prototype);for(let[e,t]of Object.entries(Tm))Hm[e]={get(){let n=Ym(this,Jm(t.open,t.close,this[zm]),this[Bm]);return Object.defineProperty(this,e,{value:n}),n}};Hm.visible={get(){let e=Ym(this,this[zm],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};const Km=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?Tm[n].ansi16m(...r):t===`ansi256`?Tm[n].ansi256(Tm.rgbToAnsi256(...r)):Tm[n].ansi(Tm.rgbToAnsi(...r)):e===`hex`?Km(`rgb`,t,n,...Tm.hexToRgb(...r)):Tm[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){Hm[e]={get(){let{level:t}=this;return function(...n){let r=Jm(Km(e,Vm[t],`color`,...n),Tm.color.close,this[zm]);return Ym(this,r,this[Bm])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);Hm[t]={get(){let{level:t}=this;return function(...n){let r=Jm(Km(e,Vm[t],`bgColor`,...n),Tm.bgColor.close,this[zm]);return Ym(this,r,this[Bm])}}}}const qm=Object.defineProperties(()=>{},{...Hm,level:{enumerable:!0,get(){return this[Rm].level},set(e){this[Rm].level=e}}}),Jm=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},Ym=(e,t,n)=>{let r=(...e)=>Xm(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,qm),r[Rm]=e,r[zm]=t,r[Bm]=n,r},Xm=(e,t)=>{if(e.level<=0||!t)return e[Bm]?``:t;let n=e[zm];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=Pm(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
218
- `);return a!==-1&&(t=Fm(t,i,r,a)),r+t+i};Object.defineProperties(Gm.prototype,Hm);const Zm=Gm();Gm({level:Lm?Lm.level:0});var Qm=Zm;const $m={error:0,warn:1,info:2,debug:3};let eh;function th(){let e=process.env.DEBUG?.trim();if(!e)return!1;let t=e.toLowerCase();return[`1`,`true`,`yes`,`on`].includes(t)?!0:e.split(`,`).some(e=>{let t=e.trim();return t===`*`||t===`sfnext`||t===`sfnext:*`})}function nh(){if(eh)return eh;let e=process.env.MRT_LOG_LEVEL??process.env.SFCC_LOG_LEVEL;return e&&e in $m?e:th()?`debug`:process.env.NODE_ENV===`production`?`warn`:`info`}function rh(e){return $m[e]<=$m[nh()]}const ih={error(e,...t){rh(`error`)&&console.error(Qm.red(`[sfnext:error]`),e,...t)},warn(e,...t){rh(`warn`)&&console.warn(Qm.yellow(`[sfnext:warn]`),e,...t)},info(e,...t){rh(`info`)&&console.log(Qm.cyan(`[sfnext:info]`),e,...t)},debug(e,...t){rh(`debug`)&&console.log(Qm.gray(`[sfnext:debug]`),e,...t)},setLevel(e){eh=e},getLevel(){return nh()}};function ah(e,t){let n=gm(e),r=l.join(t,`build`,`client`);return ih.info(`Serving static assets from ${r} at ${n}`),ip.static(r,{setHeaders:e=>{e.setHeader(`Cache-Control`,`public, max-age=31536000, immutable`),e.setHeader(`x-local-static-cache-control`,`1`)}})}var oh=a(((e,t)=>{t.exports=s,t.exports.preferredCharsets=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{charset:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),sh=a(((e,t)=>{t.exports=s,t.exports.preferredEncodings=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=!1,r=1,a=0,s=0;a<t.length;a++){var c=i(t[a].trim(),a);c&&(t[s++]=c,n||=o(`identity`,c),r=Math.min(r,c.q||1))}return n||(t[s++]={encoding:`identity`,q:r,i:a}),t.length=s,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{encoding:i,q:a,i:t}}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),ch=a(((e,t)=>{t.exports=s,t.exports.preferredLanguages=s;var n=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=r[2],o=i;a&&(o+=`-`+a);var s=1;if(r[3])for(var c=r[3].split(`;`),l=0;l<c.length;l++){var u=c[l].split(`=`);u[0]===`q`&&(s=parseFloat(u[1]))}return{prefix:i,suffix:a,q:s,i:t,full:o}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e);if(!r)return null;var a=0;if(t.full.toLowerCase()===r.full.toLowerCase())a|=4;else if(t.prefix.toLowerCase()===r.full.toLowerCase())a|=2;else if(t.full.toLowerCase()===r.prefix.toLowerCase())a|=1;else if(t.full!==`*`)return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.full}function u(e){return e.q>0}})),lh=a(((e,t)=>{t.exports=s,t.exports.preferredMediaTypes=s;var n=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function r(e){for(var t=p(e),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=Object.create(null),a=1,o=r[2],s=r[1];if(r[3])for(var c=m(r[3]).map(f),l=0;l<c.length;l++){var u=c[l],d=u[0].toLowerCase(),p=u[1],h=p&&p[0]===`"`&&p[p.length-1]===`"`?p.slice(1,-1):p;if(d===`q`){a=parseFloat(h);break}i[d]=h}return{type:s,subtype:o,params:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e),a=0;if(!r)return null;if(t.type.toLowerCase()==r.type.toLowerCase())a|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==r.subtype.toLowerCase())a|=2;else if(t.subtype!=`*`)return null;var o=Object.keys(t.params);if(o.length>0)if(o.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(r.params[e]||``).toLowerCase()}))a|=1;else return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*/*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.type+`/`+e.subtype}function u(e){return e.q>0}function d(e){for(var t=0,n=0;(n=e.indexOf(`"`,n))!==-1;)t++,n++;return t}function f(e){var t=e.indexOf(`=`),n,r;return t===-1?n=e:(n=e.slice(0,t),r=e.slice(t+1)),[n,r]}function p(e){for(var t=e.split(`,`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`,`+t[n];return t.length=r+1,t}function m(e){for(var t=e.split(`;`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`;`+t[n];t.length=r+1;for(var n=0;n<t.length;n++)t[n]=t[n].trim();return t}})),uh=a(((e,t)=>{var n=oh(),r=sh(),i=ch(),a=lh();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){return r(this.request.headers[`accept-encoding`],e,t)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes})),dh=a(((e,n)=>{
217
+ `,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:th,stderr:nh}=Qm,rh=Symbol(`GENERATOR`),ih=Symbol(`STYLER`),ah=Symbol(`IS_EMPTY`),oh=[`ansi`,`ansi`,`ansi256`,`ansi16m`],sh=Object.create(null),ch=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=th?th.level:0;e.level=t.level===void 0?n:t.level},lh=e=>{let t=(...e)=>e.join(` `);return ch(t,e),Object.setPrototypeOf(t,uh.prototype),t};function uh(e){return lh(e)}Object.setPrototypeOf(uh.prototype,Function.prototype);for(let[e,t]of Object.entries(Wm))sh[e]={get(){let n=mh(this,ph(t.open,t.close,this[ih]),this[ah]);return Object.defineProperty(this,e,{value:n}),n}};sh.visible={get(){let e=mh(this,this[ih],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};const dh=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?Wm[n].ansi16m(...r):t===`ansi256`?Wm[n].ansi256(Wm.rgbToAnsi256(...r)):Wm[n].ansi(Wm.rgbToAnsi(...r)):e===`hex`?dh(`rgb`,t,n,...Wm.hexToRgb(...r)):Wm[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){sh[e]={get(){let{level:t}=this;return function(...n){let r=ph(dh(e,oh[t],`color`,...n),Wm.color.close,this[ih]);return mh(this,r,this[ah])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);sh[t]={get(){let{level:t}=this;return function(...n){let r=ph(dh(e,oh[t],`bgColor`,...n),Wm.bgColor.close,this[ih]);return mh(this,r,this[ah])}}}}const fh=Object.defineProperties(()=>{},{...sh,level:{enumerable:!0,get(){return this[rh].level},set(e){this[rh].level=e}}}),ph=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},mh=(e,t,n)=>{let r=(...e)=>hh(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,fh),r[rh]=e,r[ih]=t,r[ah]=n,r},hh=(e,t)=>{if(e.level<=0||!t)return e[ah]?``:t;let n=e[ih];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=$m(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
218
+ `);return a!==-1&&(t=eh(t,i,r,a)),r+t+i};Object.defineProperties(uh.prototype,sh);const gh=uh();uh({level:nh?nh.level:0});var _h=gh;const vh={error:0,warn:1,info:2,debug:3};let yh;function bh(){let e=process.env.DEBUG?.trim();if(!e)return!1;let t=e.toLowerCase();return[`1`,`true`,`yes`,`on`].includes(t)?!0:e.split(`,`).some(e=>{let t=e.trim();return t===`*`||t===`sfnext`||t===`sfnext:*`})}function xh(){if(yh)return yh;let e=process.env.MRT_LOG_LEVEL??process.env.SFCC_LOG_LEVEL;return e&&e in vh?e:bh()?`debug`:process.env.NODE_ENV===`production`?`warn`:`info`}function Sh(e){return vh[e]<=vh[xh()]}const Ch={error(e,...t){Sh(`error`)&&console.error(_h.red(`[sfnext:error]`),e,...t)},warn(e,...t){Sh(`warn`)&&console.warn(_h.yellow(`[sfnext:warn]`),e,...t)},info(e,...t){Sh(`info`)&&console.log(_h.cyan(`[sfnext:info]`),e,...t)},debug(e,...t){Sh(`debug`)&&console.log(_h.gray(`[sfnext:debug]`),e,...t)},setLevel(e){yh=e},getLevel(){return xh()}};function wh(e,t){let n=Fm(e),r=l.join(t,`build`,`client`);return Ch.info(`Serving static assets from ${r} at ${n}`),Cp.static(r,{setHeaders:e=>{e.setHeader(`Cache-Control`,`public, max-age=31536000, immutable`),e.setHeader(`x-local-static-cache-control`,`1`)}})}var Th=a(((e,t)=>{t.exports=s,t.exports.preferredCharsets=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{charset:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),Eh=a(((e,t)=>{t.exports=s,t.exports.preferredEncodings=s;var n=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=!1,r=1,a=0,s=0;a<t.length;a++){var c=i(t[a].trim(),a);c&&(t[s++]=c,n||=o(`identity`,c),r=Math.min(r,c.q||1))}return n||(t[s++]={encoding:`identity`,q:r,i:a}),t.length=s,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=1;if(r[2])for(var o=r[2].split(`;`),s=0;s<o.length;s++){var c=o[s].trim().split(`=`);if(c[0]===`q`){a=parseFloat(c[1]);break}}return{encoding:i,q:a,i:t}}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),Dh=a(((e,t)=>{t.exports=s,t.exports.preferredLanguages=s;var n=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function r(e){for(var t=e.split(`,`),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=r[1],a=r[2],o=i;a&&(o+=`-`+a);var s=1;if(r[3])for(var c=r[3].split(`;`),l=0;l<c.length;l++){var u=c[l].split(`=`);u[0]===`q`&&(s=parseFloat(u[1]))}return{prefix:i,suffix:a,q:s,i:t,full:o}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e);if(!r)return null;var a=0;if(t.full.toLowerCase()===r.full.toLowerCase())a|=4;else if(t.prefix.toLowerCase()===r.full.toLowerCase())a|=2;else if(t.full.toLowerCase()===r.prefix.toLowerCase())a|=1;else if(t.full!==`*`)return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.full}function u(e){return e.q>0}})),Oh=a(((e,t)=>{t.exports=s,t.exports.preferredMediaTypes=s;var n=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function r(e){for(var t=p(e),n=0,r=0;n<t.length;n++){var a=i(t[n].trim(),n);a&&(t[r++]=a)}return t.length=r,t}function i(e,t){var r=n.exec(e);if(!r)return null;var i=Object.create(null),a=1,o=r[2],s=r[1];if(r[3])for(var c=m(r[3]).map(f),l=0;l<c.length;l++){var u=c[l],d=u[0].toLowerCase(),p=u[1],h=p&&p[0]===`"`&&p[p.length-1]===`"`?p.slice(1,-1):p;if(d===`q`){a=parseFloat(h);break}i[d]=h}return{type:s,subtype:o,params:i,q:a,i:t}}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=i(e),a=0;if(!r)return null;if(t.type.toLowerCase()==r.type.toLowerCase())a|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==r.subtype.toLowerCase())a|=2;else if(t.subtype!=`*`)return null;var o=Object.keys(t.params);if(o.length>0)if(o.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(r.params[e]||``).toLowerCase()}))a|=1;else return null;return{i:n,o:t.i,q:t.q,s:a}}function s(e,t){var n=r(e===void 0?`*/*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.type+`/`+e.subtype}function u(e){return e.q>0}function d(e){for(var t=0,n=0;(n=e.indexOf(`"`,n))!==-1;)t++,n++;return t}function f(e){var t=e.indexOf(`=`),n,r;return t===-1?n=e:(n=e.slice(0,t),r=e.slice(t+1)),[n,r]}function p(e){for(var t=e.split(`,`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`,`+t[n];return t.length=r+1,t}function m(e){for(var t=e.split(`;`),n=1,r=0;n<t.length;n++)d(t[r])%2==0?t[++r]=t[n]:t[r]+=`;`+t[n];t.length=r+1;for(var n=0;n<t.length;n++)t[n]=t[n].trim();return t}})),kh=a(((e,t)=>{var n=Th(),r=Eh(),i=Dh(),a=Oh();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){return r(this.request.headers[`accept-encoding`],e,t)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes})),Ah=a(((e,n)=>{
219
219
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
220
- var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),fh=a(((e,t)=>{var n=$e(),r=/^text\/|\+(?:json|text|xml)$/i,i=/^\s*([^;\s]*)(?:;|\s|$)/;t.exports=a;function a(e){if(!e||typeof e!=`string`)return!1;var t=i.exec(e),a=t&&t[1].toLowerCase(),o=n[a];return o&&o.compressible!==void 0?o.compressible:r.test(a)||void 0}})),ph=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return s(e);if(n===`number`&&isNaN(e)===!1)return t.long?l(e):c(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function s(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return s*o;case`days`:case`day`:case`d`:return s*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return s*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return s*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return s*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return s;default:return}}}}function c(e){return e>=a?Math.round(e/a)+`d`:e>=i?Math.round(e/i)+`h`:e>=r?Math.round(e/r)+`m`:e>=n?Math.round(e/n)+`s`:e+`ms`}function l(e){return u(e,a,`day`)||u(e,i,`hour`)||u(e,r,`minute`)||u(e,n,`second`)||e+` ms`}function u(e,t,n){if(!(e<t))return e<t*1.5?Math.floor(e/t)+` `+n:Math.ceil(e/t)+` `+n+`s`}})),mh=a(((e,t)=>{e=t.exports=i.debug=i.default=i,e.coerce=c,e.disable=o,e.enable=a,e.enabled=s,e.humanize=ph(),e.names=[],e.skips=[],e.formatters={};var n;function r(t){var n=0,r;for(r in t)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]}function i(t){function i(){if(i.enabled){var t=i,r=+new Date;t.diff=r-(n||r),t.prev=n,t.curr=r,n=r;for(var a=Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];a[0]=e.coerce(a[0]),typeof a[0]!=`string`&&a.unshift(`%O`);var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if(n===`%%`)return n;s++;var i=e.formatters[r];if(typeof i==`function`){var o=a[s];n=i.call(t,o),a.splice(s,1),s--}return n}),e.formatArgs.call(t,a),(i.log||e.log||console.log.bind(console)).apply(t,a)}}return i.namespace=t,i.enabled=e.enabled(t),i.useColors=e.useColors(),i.color=r(t),typeof e.init==`function`&&e.init(i),i}function a(t){e.save(t),e.names=[],e.skips=[];for(var n=(typeof t==`string`?t:``).split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&(t=n[i].replace(/\*/g,`.*?`),t[0]===`-`?e.skips.push(RegExp(`^`+t.substr(1)+`$`)):e.names.push(RegExp(`^`+t+`$`)))}function o(){e.enable(``)}function s(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}})),hh=a(((e,t)=>{e=t.exports=mh(),e.log=i,e.formatArgs=r,e.save=a,e.load=o,e.useColors=n,e.storage=typeof chrome<`u`&&chrome.storage!==void 0?chrome.storage.local:s(),e.colors=[`lightseagreen`,`forestgreen`,`goldenrod`,`dodgerblue`,`darkorchid`,`crimson`];function n(){return typeof window<`u`&&window.process&&window.process.type===`renderer`?!0:typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}};function r(t){var n=this.useColors;if(t[0]=(n?`%c`:``)+this.namespace+(n?` %c`:` `)+t[0]+(n?`%c `:` `)+`+`+e.humanize(this.diff),n){var r=`color: `+this.color;t.splice(1,0,r,`color: inherit`);var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,function(e){e!==`%%`&&(i++,e===`%c`&&(a=i))}),t.splice(a,0,r)}}function i(){return typeof console==`object`&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{t==null?e.storage.removeItem(`debug`):e.storage.debug=t}catch{}}function o(){var t;try{t=e.storage.debug}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}e.enable(o());function s(){try{return window.localStorage}catch{}}})),gh=a(((e,n)=>{var r=t(`tty`),i=t(`util`);e=n.exports=mh(),e.init=p,e.log=l,e.formatArgs=c,e.save=u,e.load=d,e.useColors=s,e.colors=[6,2,3,4,5,1],e.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});var a=parseInt(process.env.DEBUG_FD,10)||2;a!==1&&a!==2&&i.deprecate(function(){},`except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)`)();var o=a===1?process.stdout:a===2?process.stderr:f(a);function s(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(a)}e.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
220
+ var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),jh=a(((e,t)=>{var n=$e(),r=/^text\/|\+(?:json|text|xml)$/i,i=/^\s*([^;\s]*)(?:;|\s|$)/;t.exports=a;function a(e){if(!e||typeof e!=`string`)return!1;var t=i.exec(e),a=t&&t[1].toLowerCase(),o=n[a];return o&&o.compressible!==void 0?o.compressible:r.test(a)||void 0}})),Mh=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return s(e);if(n===`number`&&isNaN(e)===!1)return t.long?l(e):c(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function s(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return s*o;case`days`:case`day`:case`d`:return s*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return s*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return s*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return s*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return s;default:return}}}}function c(e){return e>=a?Math.round(e/a)+`d`:e>=i?Math.round(e/i)+`h`:e>=r?Math.round(e/r)+`m`:e>=n?Math.round(e/n)+`s`:e+`ms`}function l(e){return u(e,a,`day`)||u(e,i,`hour`)||u(e,r,`minute`)||u(e,n,`second`)||e+` ms`}function u(e,t,n){if(!(e<t))return e<t*1.5?Math.floor(e/t)+` `+n:Math.ceil(e/t)+` `+n+`s`}})),Nh=a(((e,t)=>{e=t.exports=i.debug=i.default=i,e.coerce=c,e.disable=o,e.enable=a,e.enabled=s,e.humanize=Mh(),e.names=[],e.skips=[],e.formatters={};var n;function r(t){var n=0,r;for(r in t)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]}function i(t){function i(){if(i.enabled){var t=i,r=+new Date;t.diff=r-(n||r),t.prev=n,t.curr=r,n=r;for(var a=Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];a[0]=e.coerce(a[0]),typeof a[0]!=`string`&&a.unshift(`%O`);var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if(n===`%%`)return n;s++;var i=e.formatters[r];if(typeof i==`function`){var o=a[s];n=i.call(t,o),a.splice(s,1),s--}return n}),e.formatArgs.call(t,a),(i.log||e.log||console.log.bind(console)).apply(t,a)}}return i.namespace=t,i.enabled=e.enabled(t),i.useColors=e.useColors(),i.color=r(t),typeof e.init==`function`&&e.init(i),i}function a(t){e.save(t),e.names=[],e.skips=[];for(var n=(typeof t==`string`?t:``).split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&(t=n[i].replace(/\*/g,`.*?`),t[0]===`-`?e.skips.push(RegExp(`^`+t.substr(1)+`$`)):e.names.push(RegExp(`^`+t+`$`)))}function o(){e.enable(``)}function s(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}})),Ph=a(((e,t)=>{e=t.exports=Nh(),e.log=i,e.formatArgs=r,e.save=a,e.load=o,e.useColors=n,e.storage=typeof chrome<`u`&&chrome.storage!==void 0?chrome.storage.local:s(),e.colors=[`lightseagreen`,`forestgreen`,`goldenrod`,`dodgerblue`,`darkorchid`,`crimson`];function n(){return typeof window<`u`&&window.process&&window.process.type===`renderer`?!0:typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}};function r(t){var n=this.useColors;if(t[0]=(n?`%c`:``)+this.namespace+(n?` %c`:` `)+t[0]+(n?`%c `:` `)+`+`+e.humanize(this.diff),n){var r=`color: `+this.color;t.splice(1,0,r,`color: inherit`);var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,function(e){e!==`%%`&&(i++,e===`%c`&&(a=i))}),t.splice(a,0,r)}}function i(){return typeof console==`object`&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{t==null?e.storage.removeItem(`debug`):e.storage.debug=t}catch{}}function o(){var t;try{t=e.storage.debug}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}e.enable(o());function s(){try{return window.localStorage}catch{}}})),Fh=a(((e,n)=>{var r=t(`tty`),i=t(`util`);e=n.exports=Nh(),e.init=p,e.log=l,e.formatArgs=c,e.save=u,e.load=d,e.useColors=s,e.colors=[6,2,3,4,5,1],e.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});var a=parseInt(process.env.DEBUG_FD,10)||2;a!==1&&a!==2&&i.deprecate(function(){},`except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)`)();var o=a===1?process.stdout:a===2?process.stderr:f(a);function s(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(a)}e.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
221
221
  `).map(function(e){return e.trim()}).join(` `)},e.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)};function c(t){var n=this.namespace;if(this.useColors){var r=this.color,i=` \x1B[3`+r+`;1m`+n+` \x1B[0m`;t[0]=i+t[0].split(`
222
222
  `).join(`
223
223
  `+i),t.push(`\x1B[3`+r+`m+`+e.humanize(this.diff)+`\x1B[0m`)}else t[0]=new Date().toUTCString()+` `+n+` `+t[0]}function l(){return o.write(i.format.apply(i,arguments)+`
224
- `)}function u(e){e==null?delete process.env.DEBUG:process.env.DEBUG=e}function d(){return process.env.DEBUG}function f(e){var n;switch(process.binding(`tty_wrap`).guessHandleType(e)){case`TTY`:n=new r.WriteStream(e),n._type=`tty`,n._handle&&n._handle.unref&&n._handle.unref();break;case`FILE`:n=new(t(`fs`)).SyncWriteStream(e,{autoClose:!1}),n._type=`fs`;break;case`PIPE`:case`TCP`:n=new(t(`net`)).Socket({fd:e,readable:!1,writable:!0}),n.readable=!1,n.read=null,n._type=`pipe`,n._handle&&n._handle.unref&&n._handle.unref();break;default:throw Error(`Implement me. Unknown stream file type!`)}return n.fd=e,n._isStdio=!0,n}function p(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}e.enable(d())})),_h=a(((e,t)=>{typeof process<`u`&&process.type===`renderer`?t.exports=hh():t.exports=gh()})),vh=a(((e,n)=>{n.exports=a;var r=typeof t(`http`).ServerResponse.prototype.appendHeader==`function`?u:d;function i(e,t){var n=!1;return function(r){var i=c.apply(this,arguments);return n||(n=!0,t.call(this),typeof i[0]==`number`&&this.statusCode!==i[0]&&(i[0]=this.statusCode,i.length=1)),e.apply(this,i)}}function a(e,t){if(!e)throw TypeError(`argument res is required`);if(typeof t!=`function`)throw TypeError(`argument listener must be a function`);e.writeHead=i(e.writeHead,t)}function o(e,t){if(t.length&&Array.isArray(t[0]))l(e,t);else{if(t.length%2!=0)throw TypeError(`headers array is malformed`);r(e,t)}}function s(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];i&&e.setHeader(i,t[i])}}function c(e){var t=arguments.length,n=t>1&&typeof arguments[1]==`string`?2:1,r=t>=n+1?arguments[n]:void 0;this.statusCode=e,Array.isArray(r)?o(this,r):r&&s(this,r);for(var i=Array(Math.min(t,n)),a=0;a<i.length;a++)i[a]=arguments[a];return i}function l(e,t){for(var n,r=0;r<t.length;r++)n=t[r][0],n&&e.setHeader(n,t[r][1])}function u(e,t){for(var n=0;n<t.length;n+=2)e.removeHeader(t[n]);for(var r,i=0;i<t.length;i+=2)r=t[i],r&&e.appendHeader(r,t[i+1])}function d(e,t){for(var n,r=0;r<t.length;r+=2)n=t[r],n&&e.setHeader(n,t[r+1])}})),yh=r(a(((e,n)=>{var r=uh(),i=dh().Buffer,a=Ce(),o=fh(),s=_h()(`compression`),c=vh(),l=In(),u=t(`zlib`);n.exports=g,n.exports.filter=y;var d=`createBrotliCompress`in u,f=/(?:^|,)\s*?no-transform\s*?(?:,|$)/,p=d?[`br`,`gzip`,`deflate`,`identity`]:[`gzip`,`deflate`,`identity`],m=d?[`br`,`gzip`]:[`gzip`],h=[`gzip`,`deflate`,`identity`,`br`];function g(e){var t=e||{},n={};if(d){Object.assign(n,t.brotli);var i={};i[u.constants.BROTLI_PARAM_QUALITY]=4,n.params=Object.assign(i,n.params)}var o=t.filter||y,f=a.parse(t.threshold),g=t.enforceEncoding||`identity`;return f??=1024,function(e,i,a){var d=!1,y,C=[],w,T=i.end,E=i.on,D=i.write;i.flush=function(){w&&w.flush()},i.write=function(e,t){return d?!1:(S(i)||this.writeHead(this.statusCode),w?w.write(x(e,t)):D.call(this,e,t))},i.end=function(e,t){return d?!1:(S(i)||(this.getHeader(`Content-Length`)||(y=v(e,t)),this.writeHead(this.statusCode)),w?(d=!0,e?w.end(x(e,t)):w.end()):T.call(this,e,t))},i.on=function(e,t){return!C||e!==`drain`?E.call(this,e,t):w?w.on(e,t):(C.push([e,t]),this)};function O(e){s(`no compression: %s`,e),_(i,E,C),C=null}c(i,function(){if(!o(e,i)){O(`filtered`);return}if(!b(e,i)){O(`no transform`);return}if(l(i,`Accept-Encoding`),Number(i.getHeader(`Content-Length`))<f||y<f){O(`size below threshold`);return}if((i.getHeader(`Content-Encoding`)||`identity`)!==`identity`){O(`already encoded`);return}if(e.method===`HEAD`){O(`HEAD request`);return}var a=new r(e).encoding(p,m);if(!e.headers[`accept-encoding`]&&h.indexOf(g)!==-1&&(a=g),!a||a===`identity`){O(`not acceptable`);return}s(`%s compression`,a),w=a===`gzip`?u.createGzip(t):a===`br`?u.createBrotliCompress(n):u.createDeflate(t),_(w,w.on,C),i.setHeader(`Content-Encoding`,a),i.removeHeader(`Content-Length`),w.on(`data`,function(e){D.call(i,e)===!1&&w.pause()}),w.on(`end`,function(){T.call(i)}),E.call(i,`drain`,function(){w.resume()})}),a()}}function _(e,t,n){for(var r=0;r<n.length;r++)t.apply(e,n[r])}function v(e,t){return e?i.isBuffer(e)?e.length:i.byteLength(e,t):0}function y(e,t){var n=t.getHeader(`Content-Type`);return n===void 0||!o(n)?(s(`%s not compressible`,n),!1):!0}function b(e,t){var n=t.getHeader(`Cache-Control`);return!n||!f.test(n)}function x(e,t){return i.isBuffer(e)?e:i.from(e,t)}function S(e){return typeof e.headersSent==`boolean`?e.headersSent:!!e._header}}))(),1);function bh(){let e=process.env.COMPRESSION_LEVEL,t=u.constants.Z_DEFAULT_COMPRESSION;if(e==null||e.trim()===``)return t;let n=Number(e);return Number.isInteger(n)&&n>=0&&n<=9?n:(ih.warn(`[compression] Invalid COMPRESSION_LEVEL="${e}". Using default (${t}).`),t)}function xh(){return(0,yh.default)({filter:(e,t)=>e.headers[`x-no-compression`]?!1:yh.default.filter(e,t),level:bh()})}var Sh=a(((e,n)=>{var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),Ch=a(((e,t)=>{var n=Sh().Buffer;t.exports=a,t.exports.parse=c;var r=/^ *(?:[Bb][Aa][Ss][Ii][Cc]) +([A-Za-z0-9._~+/-]+=*) *$/,i=/^([^:]*):(.*)$/;function a(e){if(!e)throw TypeError(`argument req is required`);if(typeof e!=`object`)throw TypeError(`argument req is required to be an object`);return c(s(e))}function o(e){return n.from(e,`base64`).toString()}function s(e){if(!e.headers||typeof e.headers!=`object`)throw TypeError(`argument req is required to have headers property`);return e.headers.authorization}function c(e){if(typeof e==`string`){var t=r.exec(e);if(t){var n=i.exec(o(t[1]));if(n)return new l(n[1],n[2])}}}function l(e,t){this.name=e,this.pass=t}})),wh=a(((e,t)=>{t.exports=i,t.exports.isFinished=a;var n=Ye(),r=typeof setImmediate==`function`?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function i(e,t){return a(e)===!1?(s(e,t),e):(r(t,null,e),e)}function a(e){var t=e.socket;if(typeof e.finished==`boolean`)return!!(e.finished||t&&!t.writable);if(typeof e.complete==`boolean`)return!!(e.upgrade||!t||!t.readable||e.complete&&!e.readable)}function o(e,t){var r,i,a=!1;function o(e){r.cancel(),i.cancel(),a=!0,t(e)}r=i=n([[e,`end`,`finish`]],o);function s(t){e.removeListener(`socket`,s),!a&&r===i&&(i=n([[t,`error`,`close`]],o))}if(e.socket){s(e.socket);return}e.on(`socket`,s),e.socket===void 0&&l(e,s)}function s(e,t){var n=e.__onFinished;(!n||!n.queue)&&(n=e.__onFinished=c(e),o(e,n)),n.queue.push(t)}function c(e){function t(n){if(e.__onFinished===t&&(e.__onFinished=null),t.queue){var r=t.queue;t.queue=null;for(var i=0;i<r.length;i++)r[i](n,e)}}return t.queue=[],t}function l(e,t){var n=e.assignSocket;typeof n==`function`&&(e.assignSocket=function(e){n.call(this,e),t(e)})}})),Th=r(a(((e,t)=>{t.exports=l,t.exports.compile=d,t.exports.format=p,t.exports.token=y;var n=Ch(),r=_h()(`morgan`),i=he()(`morgan`),a=wh(),o=vh(),s=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],c=1e3;function l(e,t){var n=e,s=t||{};e&&typeof e==`object`&&(s=e,n=s.format||`default`,i(`morgan(options): use morgan(`+(typeof n==`string`?JSON.stringify(n):`format`)+`, options) instead`)),n===void 0&&i(`undefined format: specify a format`);var u=s.immediate,d=s.skip||!1,p=typeof n==`function`?n:m(n),g=s.buffer,_=s.stream||process.stdout;return g&&(i(`buffer option`),_=f(_,typeof g==`number`?g:c)),function(e,t,n){e._startAt=void 0,e._startTime=void 0,e._remoteAddress=h(e),t._startAt=void 0,t._startTime=void 0,v.call(e);function i(){if(d!==!1&&d(e,t)){r(`skip request`);return}var n=p(l,e,t);if(n==null){r(`skip line`);return}r(`log request`),_.write(n+`
224
+ `)}function u(e){e==null?delete process.env.DEBUG:process.env.DEBUG=e}function d(){return process.env.DEBUG}function f(e){var n;switch(process.binding(`tty_wrap`).guessHandleType(e)){case`TTY`:n=new r.WriteStream(e),n._type=`tty`,n._handle&&n._handle.unref&&n._handle.unref();break;case`FILE`:n=new(t(`fs`)).SyncWriteStream(e,{autoClose:!1}),n._type=`fs`;break;case`PIPE`:case`TCP`:n=new(t(`net`)).Socket({fd:e,readable:!1,writable:!0}),n.readable=!1,n.read=null,n._type=`pipe`,n._handle&&n._handle.unref&&n._handle.unref();break;default:throw Error(`Implement me. Unknown stream file type!`)}return n.fd=e,n._isStdio=!0,n}function p(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}e.enable(d())})),Ih=a(((e,t)=>{typeof process<`u`&&process.type===`renderer`?t.exports=Ph():t.exports=Fh()})),Lh=a(((e,n)=>{n.exports=a;var r=typeof t(`http`).ServerResponse.prototype.appendHeader==`function`?u:d;function i(e,t){var n=!1;return function(r){var i=c.apply(this,arguments);return n||(n=!0,t.call(this),typeof i[0]==`number`&&this.statusCode!==i[0]&&(i[0]=this.statusCode,i.length=1)),e.apply(this,i)}}function a(e,t){if(!e)throw TypeError(`argument res is required`);if(typeof t!=`function`)throw TypeError(`argument listener must be a function`);e.writeHead=i(e.writeHead,t)}function o(e,t){if(t.length&&Array.isArray(t[0]))l(e,t);else{if(t.length%2!=0)throw TypeError(`headers array is malformed`);r(e,t)}}function s(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];i&&e.setHeader(i,t[i])}}function c(e){var t=arguments.length,n=t>1&&typeof arguments[1]==`string`?2:1,r=t>=n+1?arguments[n]:void 0;this.statusCode=e,Array.isArray(r)?o(this,r):r&&s(this,r);for(var i=Array(Math.min(t,n)),a=0;a<i.length;a++)i[a]=arguments[a];return i}function l(e,t){for(var n,r=0;r<t.length;r++)n=t[r][0],n&&e.setHeader(n,t[r][1])}function u(e,t){for(var n=0;n<t.length;n+=2)e.removeHeader(t[n]);for(var r,i=0;i<t.length;i+=2)r=t[i],r&&e.appendHeader(r,t[i+1])}function d(e,t){for(var n,r=0;r<t.length;r+=2)n=t[r],n&&e.setHeader(n,t[r+1])}})),Rh=r(a(((e,n)=>{var r=kh(),i=Ah().Buffer,a=Ce(),o=jh(),s=Ih()(`compression`),c=Lh(),l=In(),u=t(`zlib`);n.exports=g,n.exports.filter=y;var d=`createBrotliCompress`in u,f=/(?:^|,)\s*?no-transform\s*?(?:,|$)/,p=d?[`br`,`gzip`,`deflate`,`identity`]:[`gzip`,`deflate`,`identity`],m=d?[`br`,`gzip`]:[`gzip`],h=[`gzip`,`deflate`,`identity`,`br`];function g(e){var t=e||{},n={};if(d){Object.assign(n,t.brotli);var i={};i[u.constants.BROTLI_PARAM_QUALITY]=4,n.params=Object.assign(i,n.params)}var o=t.filter||y,f=a.parse(t.threshold),g=t.enforceEncoding||`identity`;return f??=1024,function(e,i,a){var d=!1,y,C=[],w,T=i.end,E=i.on,D=i.write;i.flush=function(){w&&w.flush()},i.write=function(e,t){return d?!1:(S(i)||this.writeHead(this.statusCode),w?w.write(x(e,t)):D.call(this,e,t))},i.end=function(e,t){return d?!1:(S(i)||(this.getHeader(`Content-Length`)||(y=v(e,t)),this.writeHead(this.statusCode)),w?(d=!0,e?w.end(x(e,t)):w.end()):T.call(this,e,t))},i.on=function(e,t){return!C||e!==`drain`?E.call(this,e,t):w?w.on(e,t):(C.push([e,t]),this)};function O(e){s(`no compression: %s`,e),_(i,E,C),C=null}c(i,function(){if(!o(e,i)){O(`filtered`);return}if(!b(e,i)){O(`no transform`);return}if(l(i,`Accept-Encoding`),Number(i.getHeader(`Content-Length`))<f||y<f){O(`size below threshold`);return}if((i.getHeader(`Content-Encoding`)||`identity`)!==`identity`){O(`already encoded`);return}if(e.method===`HEAD`){O(`HEAD request`);return}var a=new r(e).encoding(p,m);if(!e.headers[`accept-encoding`]&&h.indexOf(g)!==-1&&(a=g),!a||a===`identity`){O(`not acceptable`);return}s(`%s compression`,a),w=a===`gzip`?u.createGzip(t):a===`br`?u.createBrotliCompress(n):u.createDeflate(t),_(w,w.on,C),i.setHeader(`Content-Encoding`,a),i.removeHeader(`Content-Length`),w.on(`data`,function(e){D.call(i,e)===!1&&w.pause()}),w.on(`end`,function(){T.call(i)}),E.call(i,`drain`,function(){w.resume()})}),a()}}function _(e,t,n){for(var r=0;r<n.length;r++)t.apply(e,n[r])}function v(e,t){return e?i.isBuffer(e)?e.length:i.byteLength(e,t):0}function y(e,t){var n=t.getHeader(`Content-Type`);return n===void 0||!o(n)?(s(`%s not compressible`,n),!1):!0}function b(e,t){var n=t.getHeader(`Cache-Control`);return!n||!f.test(n)}function x(e,t){return i.isBuffer(e)?e:i.from(e,t)}function S(e){return typeof e.headersSent==`boolean`?e.headersSent:!!e._header}}))(),1);function zh(){let e=process.env.COMPRESSION_LEVEL,t=u.constants.Z_DEFAULT_COMPRESSION;if(e==null||e.trim()===``)return t;let n=Number(e);return Number.isInteger(n)&&n>=0&&n<=9?n:(Ch.warn(`[compression] Invalid COMPRESSION_LEVEL="${e}". Using default (${t}).`),t)}function Bh(){return(0,Rh.default)({filter:(e,t)=>e.headers[`x-no-compression`]?!1:Rh.default.filter(e,t),level:zh()})}var Vh=a(((e,n)=>{var r=t(`buffer`),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?n.exports=r:(a(r,e),e.Buffer=o);function o(e,t,n){return i(e,t,n)}a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}})),Hh=a(((e,t)=>{var n=Vh().Buffer;t.exports=a,t.exports.parse=c;var r=/^ *(?:[Bb][Aa][Ss][Ii][Cc]) +([A-Za-z0-9._~+/-]+=*) *$/,i=/^([^:]*):(.*)$/;function a(e){if(!e)throw TypeError(`argument req is required`);if(typeof e!=`object`)throw TypeError(`argument req is required to be an object`);return c(s(e))}function o(e){return n.from(e,`base64`).toString()}function s(e){if(!e.headers||typeof e.headers!=`object`)throw TypeError(`argument req is required to have headers property`);return e.headers.authorization}function c(e){if(typeof e==`string`){var t=r.exec(e);if(t){var n=i.exec(o(t[1]));if(n)return new l(n[1],n[2])}}}function l(e,t){this.name=e,this.pass=t}})),Uh=a(((e,t)=>{t.exports=i,t.exports.isFinished=a;var n=Ye(),r=typeof setImmediate==`function`?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function i(e,t){return a(e)===!1?(s(e,t),e):(r(t,null,e),e)}function a(e){var t=e.socket;if(typeof e.finished==`boolean`)return!!(e.finished||t&&!t.writable);if(typeof e.complete==`boolean`)return!!(e.upgrade||!t||!t.readable||e.complete&&!e.readable)}function o(e,t){var r,i,a=!1;function o(e){r.cancel(),i.cancel(),a=!0,t(e)}r=i=n([[e,`end`,`finish`]],o);function s(t){e.removeListener(`socket`,s),!a&&r===i&&(i=n([[t,`error`,`close`]],o))}if(e.socket){s(e.socket);return}e.on(`socket`,s),e.socket===void 0&&l(e,s)}function s(e,t){var n=e.__onFinished;(!n||!n.queue)&&(n=e.__onFinished=c(e),o(e,n)),n.queue.push(t)}function c(e){function t(n){if(e.__onFinished===t&&(e.__onFinished=null),t.queue){var r=t.queue;t.queue=null;for(var i=0;i<r.length;i++)r[i](n,e)}}return t.queue=[],t}function l(e,t){var n=e.assignSocket;typeof n==`function`&&(e.assignSocket=function(e){n.call(this,e),t(e)})}})),Wh=r(a(((e,t)=>{t.exports=l,t.exports.compile=d,t.exports.format=p,t.exports.token=y;var n=Hh(),r=Ih()(`morgan`),i=he()(`morgan`),a=Uh(),o=Lh(),s=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],c=1e3;function l(e,t){var n=e,s=t||{};e&&typeof e==`object`&&(s=e,n=s.format||`default`,i(`morgan(options): use morgan(`+(typeof n==`string`?JSON.stringify(n):`format`)+`, options) instead`)),n===void 0&&i(`undefined format: specify a format`);var u=s.immediate,d=s.skip||!1,p=typeof n==`function`?n:m(n),g=s.buffer,_=s.stream||process.stdout;return g&&(i(`buffer option`),_=f(_,typeof g==`number`?g:c)),function(e,t,n){e._startAt=void 0,e._startTime=void 0,e._remoteAddress=h(e),t._startAt=void 0,t._startTime=void 0,v.call(e);function i(){if(d!==!1&&d(e,t)){r(`skip request`);return}var n=p(l,e,t);if(n==null){r(`skip line`);return}r(`log request`),_.write(n+`
225
225
  `)}u?i():(o(t,v),a(t,i)),n()}}l.format(`combined`,`:remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer" ":user-agent"`),l.format(`common`,`:remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length]`),l.format(`default`,`:remote-addr - :remote-user [:date] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer" ":user-agent"`),i.property(l,`default`,`default format: use combined format`),l.format(`short`,`:remote-addr :remote-user :method :url HTTP/:http-version :status :res[content-length] - :response-time ms`),l.format(`tiny`,`:method :url :status :res[content-length] - :response-time ms`),l.format(`dev`,function e(t,n,r){var i=g(r)?r.statusCode:void 0,a=i>=500?31:i>=400?33:i>=300?36:i>=200?32:0,o=e[a];return o||=e[a]=d(`\x1B[0m:method :url \x1B[`+a+`m:status\x1B[0m :response-time ms - :res[content-length]\x1B[0m`),o(t,n,r)}),l.token(`url`,function(e){return e.originalUrl||e.url}),l.token(`method`,function(e){return e.method}),l.token(`response-time`,function(e,t,n){if(!(!e._startAt||!t._startAt))return((t._startAt[0]-e._startAt[0])*1e3+(t._startAt[1]-e._startAt[1])*1e-6).toFixed(n===void 0?3:n)}),l.token(`total-time`,function(e,t,n){if(!(!e._startAt||!t._startAt)){var r=process.hrtime(e._startAt);return(r[0]*1e3+r[1]*1e-6).toFixed(n===void 0?3:n)}}),l.token(`date`,function(e,t,n){var r=new Date;switch(n||`web`){case`clf`:return u(r);case`iso`:return r.toISOString();case`web`:return r.toUTCString()}}),l.token(`status`,function(e,t){return g(t)?String(t.statusCode):void 0}),l.token(`referrer`,function(e){return e.headers.referer||e.headers.referrer}),l.token(`remote-addr`,h),l.token(`remote-user`,function(e){var t=n(e);return t?t.name:void 0}),l.token(`http-version`,function(e){return e.httpVersionMajor+`.`+e.httpVersionMinor}),l.token(`user-agent`,function(e){return e.headers[`user-agent`]}),l.token(`req`,function(e,t,n){var r=e.headers[n.toLowerCase()];return Array.isArray(r)?r.join(`, `):r}),l.token(`res`,function(e,t,n){if(g(t)){var r=t.getHeader(n);return Array.isArray(r)?r.join(`, `):r}});function u(e){var t=e.getUTCDate(),n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCFullYear(),o=s[e.getUTCMonth()];return _(t)+`/`+o+`/`+a+`:`+_(n)+`:`+_(r)+`:`+_(i)+` +0000`}function d(e){if(typeof e!=`string`)throw TypeError(`argument format must be a string`);var t=` "use strict"
226
226
  return `+String(JSON.stringify(e)).replace(/:([-\w]{2,})(?:\[([^\]]+)\])?/g,function(e,t,n){var r=`req, res`,i=`tokens[`+String(JSON.stringify(t))+`]`;return n!==void 0&&(r+=`, `+String(JSON.stringify(n))),`" +
227
- (`+i+`(`+r+`) || "-") + "`});return Function(`tokens, req, res`,t)}function f(e,t){var n=[],r=null;function i(){r=null,e.write(n.join(``)),n.length=0}function a(e){r===null&&(r=setTimeout(i,t)),n.push(e)}return{write:a}}function p(e,t){return l[e]=t,this}function m(e){var t=l[e]||e||l.default;return typeof t==`function`?t:d(t)}function h(e){return e.ip||e._remoteAddress||e.connection&&e.connection.remoteAddress||void 0}function g(e){return typeof e.headersSent==`boolean`?e.headersSent:!!e._header}function _(e){var t=String(e);return(t.length===1?`0`:``)+t}function v(){this._startAt=process.hrtime(),this._startTime=new Date}function y(e,t){return l[e]=t,this}}))(),1);const Eh=(e,t,n)=>{let r=e instanceof RegExp?Dh(e,n):e,i=t instanceof RegExp?Dh(t,n):t,a=r!==null&&i!=null&&Oh(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},Dh=(e,t)=>{let n=t.match(e);return n?n[0]:null},Oh=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},kh=`\0SLASH`+Math.random()+`\0`,Ah=`\0OPEN`+Math.random()+`\0`,jh=`\0CLOSE`+Math.random()+`\0`,Mh=`\0COMMA`+Math.random()+`\0`,Nh=`\0PERIOD`+Math.random()+`\0`,Ph=new RegExp(kh,`g`),Fh=new RegExp(Ah,`g`),Ih=new RegExp(jh,`g`),Lh=new RegExp(Mh,`g`),Rh=new RegExp(Nh,`g`),zh=/\\\\/g,Bh=/\\{/g,Vh=/\\}/g,Hh=/\\,/g,Uh=/\\./g;function Wh(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Gh(e){return e.replace(zh,kh).replace(Bh,Ah).replace(Vh,jh).replace(Hh,Mh).replace(Uh,Nh)}function Kh(e){return e.replace(Ph,`\\`).replace(Fh,`{`).replace(Ih,`}`).replace(Lh,`,`).replace(Rh,`.`)}function qh(e){if(!e)return[``];let t=[],n=Eh(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=qh(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function Jh(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),$h(Gh(e),n,!0).map(Kh)}function Yh(e){return`{`+e+`}`}function Xh(e){return/^-?0\d/.test(e)}function Zh(e,t){return e<=t}function Qh(e,t){return e>=t}function $h(e,t,n){let r=[],i=Eh(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?$h(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<o.length&&e<t;e++){let t=a+`{`+i.body+`}`+o[e];r.push(t)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=s||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+jh+i.post,$h(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=qh(i.body),d.length===1&&d[0]!==void 0&&(d=$h(d[0],t,!1).map(Yh),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=Wh(d[0]),t=Wh(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.abs(Wh(d[2])):1,i=Zh;t<e&&(r*=-1,i=Qh);let a=d.some(Xh);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,$h(d[e],t,!1))}for(let e=0;e<f.length;e++)for(let i=0;i<o.length&&r.length<t;i++){let t=a+f[e]+o[i];(!n||l||t)&&r.push(t)}}return r}const eg=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},tg={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},ng=e=>e.replace(/[[\]\\-]/g,`\\$&`),rg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),ig=e=>e.join(``),ag=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(tg))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(ng(d)+`-`+ng(t)):t===d&&r.push(ng(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(ng(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(ng(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[rg(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+ig(r)+`]`,p=`[`+(l?``:`^`)+ig(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},og=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`):t?e.replace(/\[([^\/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,`$1$2`).replace(/\\([^\/{}])/g,`$1`),sg=new Set([`!`,`?`,`+`,`*`,`@`]),cg=e=>sg.has(e),lg=`(?!\\.)`,ug=new Set([`[`,`.`]),dg=new Set([`..`,`.`]),fg=new Set(`().*{}+?[]^$\\!`),pg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),mg=`[^/]`,hg=mg+`*?`,gg=mg+`+?`;var _g=class e{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...t){for(let n of t)if(n!==``){if(typeof n!=`string`&&!(n instanceof e&&n.#i===this))throw Error(`invalid part: `+n);this.#r.push(n)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let t=this.#i;for(let n=0;n<this.#a;n++){let r=t.#r[n];if(!(r instanceof e&&r.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(t){let n=new e(this.type,t);for(let e of this.#r)n.copyIn(e);return n}static#f(t,n,r,i){let a=!1,o=!1,s=-1,c=!1;if(n.type===null){let l=r,u=``;for(;l<t.length;){let r=t.charAt(l++);if(a||r===`\\`){a=!a,u+=r;continue}if(o){l===s+1?(r===`^`||r===`!`)&&(c=!0):r===`]`&&!(l===s+2&&c)&&(o=!1),u+=r;continue}else if(r===`[`){o=!0,s=l,c=!1,u+=r;continue}if(!i.noext&&cg(r)&&t.charAt(l)===`(`){n.push(u),u=``;let a=new e(r,n);l=e.#f(t,a,l,i),n.push(a);continue}u+=r}return n.push(u),l}let l=r+1,u=new e(null,n),d=[],f=``;for(;l<t.length;){let r=t.charAt(l++);if(a||r===`\\`){a=!a,f+=r;continue}if(o){l===s+1?(r===`^`||r===`!`)&&(c=!0):r===`]`&&!(l===s+2&&c)&&(o=!1),f+=r;continue}else if(r===`[`){o=!0,s=l,c=!1,f+=r;continue}if(cg(r)&&t.charAt(l)===`(`){u.push(f),f=``;let n=new e(r,u);u.push(n),l=e.#f(t,n,l,i);continue}if(r===`|`){u.push(f),f=``,d.push(u),u=new e(null,n);continue}if(r===`)`)return f===``&&n.#r.length===0&&(n.#u=!0),u.push(f),f=``,n.push(...d,u),l;f+=r}return n.type=null,n.#t=void 0,n.#r=[t.substring(r-1)],l}static fromGlob(t,n={}){let r=new e(null,void 0,n);return e.#f(t,r,0,n),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(t){let n=t??!!this.#c.dot;if(this.#e===this&&this.#d(),!this.type){let r=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),i=this.#r.map(n=>{let[i,a,o,s]=typeof n==`string`?e.#m(n,this.#t,r):n.toRegExpSource(t);return this.#t=this.#t||o,this.#n=this.#n||s,i}).join(``),a=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&dg.has(this.#r[0]))){let e=ug,r=n&&e.has(i.charAt(0))||i.startsWith(`\\.`)&&e.has(i.charAt(2))||i.startsWith(`\\.\\.`)&&e.has(i.charAt(4)),o=!n&&!t&&e.has(i.charAt(0));a=r?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?lg:``}let o=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(o=`(?:$|\\/)`),[a+i+o,og(i),this.#t=!!this.#t,this.#n]}let r=this.type===`*`||this.type===`+`,i=this.type===`!`?`(?:(?!(?:`:`(?:`,a=this.#p(n);if(this.isStart()&&this.isEnd()&&!a&&this.type!==`!`){let e=this.toString();return this.#r=[e],this.type=null,this.#t=void 0,[e,og(this.toString()),!1,!1]}let o=!r||t||n?``:this.#p(!0);o===a&&(o=``),o&&(a=`(?:${a})(?:${o})*?`);let s=``;if(this.type===`!`&&this.#u)s=(this.isStart()&&!n?lg:``)+gg;else{let e=this.type===`!`?`))`+(this.isStart()&&!n&&!t?lg:``)+hg+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&o?`)`:this.type===`*`&&o?`)?`:`)${this.type}`;s=i+a+e}return[s,og(a),this.#t=!!this.#t,this.#n]}#p(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#m(e,t,n=!1){let r=!1,i=``,a=!1;for(let o=0;o<e.length;o++){let s=e.charAt(o);if(r){r=!1,i+=(fg.has(s)?`\\`:``)+s;continue}if(s===`\\`){o===e.length-1?i+=`\\\\`:r=!0;continue}if(s===`[`){let[n,r,s,c]=ag(e,o);if(s){i+=n,a||=r,o+=s-1,t||=c;continue}}if(s===`*`){i+=n&&e===`*`?gg:hg,t=!0;continue}if(s===`?`){i+=mg,t=!0;continue}i+=pg(s)}return[i,og(e),!!t,a]}};const vg=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),yg=(e,t,n={})=>(eg(t),!n.nocomment&&t.charAt(0)===`#`?!1:new qg(t,n).match(e)),bg=/^\*+([^+@!?\*\[\(]*)$/,xg=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),Sg=e=>t=>t.endsWith(e),Cg=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),wg=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Tg=/^\*+\.\*+$/,Eg=e=>!e.startsWith(`.`)&&e.includes(`.`),Dg=e=>e!==`.`&&e!==`..`&&e.includes(`.`),Og=/^\.\*+$/,kg=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),Ag=/^\*+$/,jg=e=>e.length!==0&&!e.startsWith(`.`),Mg=e=>e.length!==0&&e!==`.`&&e!==`..`,Ng=/^\?+([^+@!?\*\[\(]*)?$/,Pg=([e,t=``])=>{let n=Rg([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Fg=([e,t=``])=>{let n=zg([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Ig=([e,t=``])=>{let n=zg([e]);return t?e=>n(e)&&e.endsWith(t):n},Lg=([e,t=``])=>{let n=Rg([e]);return t?e=>n(e)&&e.endsWith(t):n},Rg=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},zg=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},Bg=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,Vg={win32:{sep:`\\`},posix:{sep:`/`}};yg.sep=Bg===`win32`?Vg.win32.sep:Vg.posix.sep;const Hg=Symbol(`globstar **`);yg.GLOBSTAR=Hg,yg.filter=(e,t={})=>n=>yg(n,e,t);const Ug=(e,t={})=>Object.assign({},e,t);yg.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return yg;let t=yg;return Object.assign((n,r,i={})=>t(n,r,Ug(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,Ug(e,n))}static defaults(n){return t.defaults(Ug(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,Ug(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,Ug(e,r))}},unescape:(n,r={})=>t.unescape(n,Ug(e,r)),escape:(n,r={})=>t.escape(n,Ug(e,r)),filter:(n,r={})=>t.filter(n,Ug(e,r)),defaults:n=>t.defaults(Ug(e,n)),makeRe:(n,r={})=>t.makeRe(n,Ug(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,Ug(e,r)),match:(n,r,i={})=>t.match(n,r,Ug(e,i)),sep:t.sep,GLOBSTAR:Hg})};const Wg=(e,t={})=>(eg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Jh(e));yg.braceExpand=Wg,yg.makeRe=(e,t={})=>new qg(e,t).makeRe(),yg.match=(e,t,n={})=>{let r=new qg(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const Gg=/[?*]|[+@!]\(.*?\)|\[|\]/,Kg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var qg=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){eg(e),t||={},this.options=t,this.pattern=e,this.platform=t.platform||Bg,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!Gg.test(e[2]))&&!Gg.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=this.options;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),r=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),i=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),a=!i&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),o=r?3:n?0:void 0,s=a?3:i?0:void 0;if(typeof o==`number`&&typeof s==`number`){let[n,r]=[e[o],t[s]];n.toLowerCase()===r.toLowerCase()&&(t[s]=n,s>o?t=t.slice(s):o>s&&(e=e.slice(o)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug(`matchOne`,this,{file:e,pattern:t}),this.debug(`matchOne`,e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug(`matchOne loop`);var l=t[o],u=e[a];if(this.debug(t,l,u),l===!1)return!1;if(l===Hg){this.debug(`GLOBSTAR`,[t,l,u]);var d=a,f=o+1;if(f===c){for(this.debug(`** at the end`);a<s;a++)if(e[a]===`.`||e[a]===`..`||!r.dot&&e[a].charAt(0)===`.`)return!1;return!0}for(;d<s;){var p=e[d];if(this.debug(`
227
+ (`+i+`(`+r+`) || "-") + "`});return Function(`tokens, req, res`,t)}function f(e,t){var n=[],r=null;function i(){r=null,e.write(n.join(``)),n.length=0}function a(e){r===null&&(r=setTimeout(i,t)),n.push(e)}return{write:a}}function p(e,t){return l[e]=t,this}function m(e){var t=l[e]||e||l.default;return typeof t==`function`?t:d(t)}function h(e){return e.ip||e._remoteAddress||e.connection&&e.connection.remoteAddress||void 0}function g(e){return typeof e.headersSent==`boolean`?e.headersSent:!!e._header}function _(e){var t=String(e);return(t.length===1?`0`:``)+t}function v(){this._startAt=process.hrtime(),this._startTime=new Date}function y(e,t){return l[e]=t,this}}))(),1);const Gh=(e,t,n)=>{let r=e instanceof RegExp?Kh(e,n):e,i=t instanceof RegExp?Kh(t,n):t,a=r!==null&&i!=null&&qh(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},Kh=(e,t)=>{let n=t.match(e);return n?n[0]:null},qh=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},Jh=`\0SLASH`+Math.random()+`\0`,Yh=`\0OPEN`+Math.random()+`\0`,Xh=`\0CLOSE`+Math.random()+`\0`,Zh=`\0COMMA`+Math.random()+`\0`,Qh=`\0PERIOD`+Math.random()+`\0`,$h=new RegExp(Jh,`g`),eg=new RegExp(Yh,`g`),tg=new RegExp(Xh,`g`),ng=new RegExp(Zh,`g`),rg=new RegExp(Qh,`g`),ig=/\\\\/g,ag=/\\{/g,og=/\\}/g,sg=/\\,/g,cg=/\\./g;function lg(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ug(e){return e.replace(ig,Jh).replace(ag,Yh).replace(og,Xh).replace(sg,Zh).replace(cg,Qh)}function dg(e){return e.replace($h,`\\`).replace(eg,`{`).replace(tg,`}`).replace(ng,`,`).replace(rg,`.`)}function fg(e){if(!e)return[``];let t=[],n=Gh(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=fg(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function pg(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),vg(ug(e),n,!0).map(dg)}function mg(e){return`{`+e+`}`}function hg(e){return/^-?0\d/.test(e)}function gg(e,t){return e<=t}function _g(e,t){return e>=t}function vg(e,t,n){let r=[],i=Gh(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?vg(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<o.length&&e<t;e++){let t=a+`{`+i.body+`}`+o[e];r.push(t)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=s||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+Xh+i.post,vg(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=fg(i.body),d.length===1&&d[0]!==void 0&&(d=vg(d[0],t,!1).map(mg),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=lg(d[0]),t=lg(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.abs(lg(d[2])):1,i=gg;t<e&&(r*=-1,i=_g);let a=d.some(hg);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,vg(d[e],t,!1))}for(let e=0;e<f.length;e++)for(let i=0;i<o.length&&r.length<t;i++){let t=a+f[e]+o[i];(!n||l||t)&&r.push(t)}}return r}const yg=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},bg={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},xg=e=>e.replace(/[[\]\\-]/g,`\\$&`),Sg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),Cg=e=>e.join(``),wg=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(bg))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(xg(d)+`-`+xg(t)):t===d&&r.push(xg(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(xg(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(xg(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[Sg(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+Cg(r)+`]`,p=`[`+(l?``:`^`)+Cg(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},Tg=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`):t?e.replace(/\[([^\/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,`$1$2`).replace(/\\([^\/{}])/g,`$1`),Eg=new Set([`!`,`?`,`+`,`*`,`@`]),Dg=e=>Eg.has(e),Og=`(?!\\.)`,kg=new Set([`[`,`.`]),Ag=new Set([`..`,`.`]),jg=new Set(`().*{}+?[]^$\\!`),Mg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),Ng=`[^/]`,Pg=Ng+`*?`,Fg=Ng+`+?`;var Ig=class e{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...t){for(let n of t)if(n!==``){if(typeof n!=`string`&&!(n instanceof e&&n.#i===this))throw Error(`invalid part: `+n);this.#r.push(n)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let t=this.#i;for(let n=0;n<this.#a;n++){let r=t.#r[n];if(!(r instanceof e&&r.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(t){let n=new e(this.type,t);for(let e of this.#r)n.copyIn(e);return n}static#f(t,n,r,i){let a=!1,o=!1,s=-1,c=!1;if(n.type===null){let l=r,u=``;for(;l<t.length;){let r=t.charAt(l++);if(a||r===`\\`){a=!a,u+=r;continue}if(o){l===s+1?(r===`^`||r===`!`)&&(c=!0):r===`]`&&!(l===s+2&&c)&&(o=!1),u+=r;continue}else if(r===`[`){o=!0,s=l,c=!1,u+=r;continue}if(!i.noext&&Dg(r)&&t.charAt(l)===`(`){n.push(u),u=``;let a=new e(r,n);l=e.#f(t,a,l,i),n.push(a);continue}u+=r}return n.push(u),l}let l=r+1,u=new e(null,n),d=[],f=``;for(;l<t.length;){let r=t.charAt(l++);if(a||r===`\\`){a=!a,f+=r;continue}if(o){l===s+1?(r===`^`||r===`!`)&&(c=!0):r===`]`&&!(l===s+2&&c)&&(o=!1),f+=r;continue}else if(r===`[`){o=!0,s=l,c=!1,f+=r;continue}if(Dg(r)&&t.charAt(l)===`(`){u.push(f),f=``;let n=new e(r,u);u.push(n),l=e.#f(t,n,l,i);continue}if(r===`|`){u.push(f),f=``,d.push(u),u=new e(null,n);continue}if(r===`)`)return f===``&&n.#r.length===0&&(n.#u=!0),u.push(f),f=``,n.push(...d,u),l;f+=r}return n.type=null,n.#t=void 0,n.#r=[t.substring(r-1)],l}static fromGlob(t,n={}){let r=new e(null,void 0,n);return e.#f(t,r,0,n),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(t){let n=t??!!this.#c.dot;if(this.#e===this&&this.#d(),!this.type){let r=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),i=this.#r.map(n=>{let[i,a,o,s]=typeof n==`string`?e.#m(n,this.#t,r):n.toRegExpSource(t);return this.#t=this.#t||o,this.#n=this.#n||s,i}).join(``),a=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&Ag.has(this.#r[0]))){let e=kg,r=n&&e.has(i.charAt(0))||i.startsWith(`\\.`)&&e.has(i.charAt(2))||i.startsWith(`\\.\\.`)&&e.has(i.charAt(4)),o=!n&&!t&&e.has(i.charAt(0));a=r?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?Og:``}let o=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(o=`(?:$|\\/)`),[a+i+o,Tg(i),this.#t=!!this.#t,this.#n]}let r=this.type===`*`||this.type===`+`,i=this.type===`!`?`(?:(?!(?:`:`(?:`,a=this.#p(n);if(this.isStart()&&this.isEnd()&&!a&&this.type!==`!`){let e=this.toString();return this.#r=[e],this.type=null,this.#t=void 0,[e,Tg(this.toString()),!1,!1]}let o=!r||t||n?``:this.#p(!0);o===a&&(o=``),o&&(a=`(?:${a})(?:${o})*?`);let s=``;if(this.type===`!`&&this.#u)s=(this.isStart()&&!n?Og:``)+Fg;else{let e=this.type===`!`?`))`+(this.isStart()&&!n&&!t?Og:``)+Pg+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&o?`)`:this.type===`*`&&o?`)?`:`)${this.type}`;s=i+a+e}return[s,Tg(a),this.#t=!!this.#t,this.#n]}#p(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#m(e,t,n=!1){let r=!1,i=``,a=!1;for(let o=0;o<e.length;o++){let s=e.charAt(o);if(r){r=!1,i+=(jg.has(s)?`\\`:``)+s;continue}if(s===`\\`){o===e.length-1?i+=`\\\\`:r=!0;continue}if(s===`[`){let[n,r,s,c]=wg(e,o);if(s){i+=n,a||=r,o+=s-1,t||=c;continue}}if(s===`*`){i+=n&&e===`*`?Fg:Pg,t=!0;continue}if(s===`?`){i+=Ng,t=!0;continue}i+=Mg(s)}return[i,Tg(e),!!t,a]}};const Lg=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),Rg=(e,t,n={})=>(yg(t),!n.nocomment&&t.charAt(0)===`#`?!1:new f_(t,n).match(e)),zg=/^\*+([^+@!?\*\[\(]*)$/,Bg=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),Vg=e=>t=>t.endsWith(e),Hg=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),Ug=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Wg=/^\*+\.\*+$/,Gg=e=>!e.startsWith(`.`)&&e.includes(`.`),Kg=e=>e!==`.`&&e!==`..`&&e.includes(`.`),qg=/^\.\*+$/,Jg=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),Yg=/^\*+$/,Xg=e=>e.length!==0&&!e.startsWith(`.`),Zg=e=>e.length!==0&&e!==`.`&&e!==`..`,Qg=/^\?+([^+@!?\*\[\(]*)?$/,$g=([e,t=``])=>{let n=r_([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},e_=([e,t=``])=>{let n=i_([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},t_=([e,t=``])=>{let n=i_([e]);return t?e=>n(e)&&e.endsWith(t):n},n_=([e,t=``])=>{let n=r_([e]);return t?e=>n(e)&&e.endsWith(t):n},r_=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},i_=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},a_=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,o_={win32:{sep:`\\`},posix:{sep:`/`}};Rg.sep=a_===`win32`?o_.win32.sep:o_.posix.sep;const s_=Symbol(`globstar **`);Rg.GLOBSTAR=s_,Rg.filter=(e,t={})=>n=>Rg(n,e,t);const c_=(e,t={})=>Object.assign({},e,t);Rg.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return Rg;let t=Rg;return Object.assign((n,r,i={})=>t(n,r,c_(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,c_(e,n))}static defaults(n){return t.defaults(c_(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,c_(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,c_(e,r))}},unescape:(n,r={})=>t.unescape(n,c_(e,r)),escape:(n,r={})=>t.escape(n,c_(e,r)),filter:(n,r={})=>t.filter(n,c_(e,r)),defaults:n=>t.defaults(c_(e,n)),makeRe:(n,r={})=>t.makeRe(n,c_(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,c_(e,r)),match:(n,r,i={})=>t.match(n,r,c_(e,i)),sep:t.sep,GLOBSTAR:s_})};const l_=(e,t={})=>(yg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:pg(e));Rg.braceExpand=l_,Rg.makeRe=(e,t={})=>new f_(e,t).makeRe(),Rg.match=(e,t,n={})=>{let r=new f_(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const u_=/[?*]|[+@!]\(.*?\)|\[|\]/,d_=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var f_=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){yg(e),t||={},this.options=t,this.pattern=e,this.platform=t.platform||a_,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!u_.test(e[2]))&&!u_.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=this.options;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),r=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),i=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),a=!i&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),o=r?3:n?0:void 0,s=a?3:i?0:void 0;if(typeof o==`number`&&typeof s==`number`){let[n,r]=[e[o],t[s]];n.toLowerCase()===r.toLowerCase()&&(t[s]=n,s>o?t=t.slice(s):o>s&&(e=e.slice(o)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug(`matchOne`,this,{file:e,pattern:t}),this.debug(`matchOne`,e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug(`matchOne loop`);var l=t[o],u=e[a];if(this.debug(t,l,u),l===!1)return!1;if(l===s_){this.debug(`GLOBSTAR`,[t,l,u]);var d=a,f=o+1;if(f===c){for(this.debug(`** at the end`);a<s;a++)if(e[a]===`.`||e[a]===`..`||!r.dot&&e[a].charAt(0)===`.`)return!1;return!0}for(;d<s;){var p=e[d];if(this.debug(`
228
228
  globstar while`,e,d,t,f,p),this.matchOne(e.slice(d),t.slice(f),n))return this.debug(`globstar found match!`,d,s,p),!0;if(p===`.`||p===`..`||!r.dot&&p.charAt(0)===`.`){this.debug(`dot detected!`,e,d,t,f);break}this.debug(`globstar swallow a segment, and continue`),d++}return!!(n&&(this.debug(`
229
- >>> no match, partial?`,e,d,t,f),d===s))}let i;if(typeof l==`string`?(i=u===l,this.debug(`string match`,l,u,i)):(i=l.test(u),this.debug(`pattern match`,l,u,i)),!i)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Wg(this.pattern,this.options)}parse(e){eg(e);let t=this.options;if(e===`**`)return Hg;if(e===``)return``;let n,r=null;(n=e.match(Ag))?r=t.dot?Mg:jg:(n=e.match(bg))?r=(t.nocase?t.dot?wg:Cg:t.dot?Sg:xg)(n[1]):(n=e.match(Ng))?r=(t.nocase?t.dot?Fg:Pg:t.dot?Ig:Lg)(n):(n=e.match(Tg))?r=t.dot?Dg:Eg:(n=e.match(Og))&&(r=kg);let i=_g.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Kg(e):e===Hg?Hg:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Hg||a===Hg||(a===void 0?i!==void 0&&i!==Hg?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Hg&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Hg))});let i=t.filter(e=>e!==Hg);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return yg.defaults(e).Minimatch}};yg.AST=_g,yg.Minimatch=qg,yg.escape=vg,yg.unescape=og;const Jg=[`/@vite/**`,`/@id/**`,`/@fs/**`,`/@react-router/**`,`/src/**`,`/node_modules/**`,`**/*.js`,`**/*.css`,`**/*.ts`,`**/*.tsx`,`**/*.js.map`,`**/*.css.map`];function Yg(){return Th.default.token(`status-colored`,(e,t)=>{let n=t.statusCode,r=Qm.green;return n>=500?r=Qm.red:n>=400?r=Qm.yellow:n>=300&&(r=Qm.cyan),r(String(n))}),Th.default.token(`method-colored`,e=>{let t=e.method,n={GET:Qm.green,POST:Qm.blue,PUT:Qm.yellow,DELETE:Qm.red,PATCH:Qm.magenta};return(t&&n[t]||Qm.white)(t)}),(0,Th.default)((e,t,n)=>[e[`method-colored`](t,n),e.url(t,n),`-`,e[`status-colored`](t,n),Qm.gray(`(${e[`response-time`](t,n)}ms)`)].join(` `),{skip:e=>Jg.some(t=>yg(e.url,t,{dot:!0}))})}function Xg(){return(e,t,n)=>{!e.get(`x-forwarded-host`)&&process.env.EXTERNAL_DOMAIN_NAME&&(e.headers[`x-forwarded-host`]=process.env.EXTERNAL_DOMAIN_NAME),n()}}function Zg(e,t){let n=gm(t),r=hm(),i=JSON.stringify(e.assets).replace(/"\/assets\//g,`"${n}assets/`),a=JSON.parse(i);return Object.assign({},e,{publicPath:n,assets:a,...r&&{basename:r}})}const Qg={development:{enableProxy:!0,enableStaticServing:!1,enableCompression:!1,enableLogging:!0,enableAssetUrlPatching:!1},preview:{enableProxy:!0,enableStaticServing:!0,enableCompression:!0,enableLogging:!0,enableAssetUrlPatching:!0},production:{enableProxy:!1,enableStaticServing:!1,enableCompression:!0,enableLogging:!0,enableAssetUrlPatching:!0}};var $g,e_=n((()=>{$g=typeof globalThis==`object`?globalThis:global})),t_=n((()=>{e_()})),n_=n((()=>{t_()})),r_,i_=n((()=>{r_=`1.9.0`}));function a_(e){var t=new Set([e]),n=new Set,r=e.match(o_);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(o_);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var o_,s_,c_=n((()=>{i_(),o_=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s_=a_(r_)}));function l_(e,t,n,r){r===void 0&&(r=!1);var i=m_[p_]=m_[p_]??{version:r_};if(!r&&i[e]){var a=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(a.stack||a.message),!1}if(i.version!==r_){var a=Error(`@opentelemetry/api: Registration of version v`+i.version+` for `+e+` does not match previously registered API v`+r_);return n.error(a.stack||a.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+r_+`.`),!0}function u_(e){var t=m_[p_]?.version;if(!(!t||!s_(t)))return m_[p_]?.[e]}function d_(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+r_+`.`);var n=m_[p_];n&&delete n[e]}var f_,p_,m_,h_=n((()=>{n_(),i_(),c_(),f_=r_.split(`.`)[0],p_=Symbol.for(`opentelemetry.js.api.`+f_),m_=$g}));function g_(e,t,n){var r=u_(`diag`);if(r)return n.unshift(t),r[e].apply(r,v_([],__(n),!1))}var __,v_,y_,b_=n((()=>{h_(),__=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},v_=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},y_=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){var e=[...arguments];return g_(`debug`,this._namespace,e)},e.prototype.error=function(){var e=[...arguments];return g_(`error`,this._namespace,e)},e.prototype.info=function(){var e=[...arguments];return g_(`info`,this._namespace,e)},e.prototype.warn=function(){var e=[...arguments];return g_(`warn`,this._namespace,e)},e.prototype.verbose=function(){var e=[...arguments];return g_(`verbose`,this._namespace,e)},e}()})),x_,S_=n((()=>{(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`})(x_||={})}));function C_(e,t){e<x_.NONE?e=x_.NONE:e>x_.ALL&&(e=x_.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,x_.ERROR),warn:n(`warn`,x_.WARN),info:n(`info`,x_.INFO),debug:n(`debug`,x_.DEBUG),verbose:n(`verbose`,x_.VERBOSE)}}var w_=n((()=>{S_()})),T_,E_,D_,O_,k_=n((()=>{b_(),w_(),S_(),h_(),T_=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},E_=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},D_=`diag`,O_=function(){function e(){function e(e){return function(){var t=[...arguments],n=u_(`diag`);if(n)return n[e].apply(n,E_([],T_(t),!1))}}var t=this;t.setLogger=function(e,n){if(n===void 0&&(n={logLevel:x_.INFO}),e===t){var r=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(r.stack??r.message),!1}typeof n==`number`&&(n={logLevel:n});var i=u_(`diag`),a=C_(n.logLevel??x_.INFO,e);if(i&&!n.suppressOverrideMessage){var o=Error().stack??`<failed to generate stacktrace>`;i.warn(`Current logger will be overwritten from `+o),a.warn(`Current logger will overwrite one already registered from `+o)}return l_(`diag`,a,t,!0)},t.disable=function(){d_(D_,t)},t.createComponentLogger=function(e){return new y_(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}()})),A_,j_,M_,N_=n((()=>{A_=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},j_=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},M_=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=A_(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=j_(r),s=o.next();!s.done;s=o.next()){var c=s.value;a._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}()})),P_,F_=n((()=>{P_=Symbol(`BaggageEntryMetadata`)}));function I_(e){return e===void 0&&(e={}),new M_(new Map(Object.entries(e)))}function L_(e){return typeof e!=`string`&&(R_.error(`Cannot create baggage metadata from unknown type: `+typeof e),e=``),{__TYPE__:P_,toString:function(){return e}}}var R_,z_=n((()=>{k_(),N_(),F_(),R_=O_.instance()}));function B_(e){return Symbol.for(e)}var V_,H_,U_=n((()=>{V_=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}(),H_=new V_})),W_,G_,K_=n((()=>{W_=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],G_=function(){function e(){function e(e){return function(){var t=[...arguments];if(console){var n=console[e];if(typeof n!=`function`&&(n=console.log),typeof n==`function`)return n.apply(console,t)}}}for(var t=0;t<W_.length;t++)this[W_[t].n]=e(W_[t].c)}return e}()}));function q_(){return av}var J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv=n((()=>{J_=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Y_=function(){function e(){}return e.prototype.createGauge=function(e,t){return sv},e.prototype.createHistogram=function(e,t){return cv},e.prototype.createCounter=function(e,t){return ov},e.prototype.createUpDownCounter=function(e,t){return lv},e.prototype.createObservableGauge=function(e,t){return dv},e.prototype.createObservableCounter=function(e,t){return uv},e.prototype.createObservableUpDownCounter=function(e,t){return fv},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),X_=function(){function e(){}return e}(),Z_=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(X_),Q_=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(X_),$_=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(X_),ev=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(X_),tv=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),nv=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tv),rv=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tv),iv=function(e){J_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tv),av=new Y_,ov=new Z_,sv=new $_,cv=new ev,lv=new Q_,uv=new nv,dv=new rv,fv=new iv})),mv,hv=n((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(mv||={})})),gv,_v,vv=n((()=>{gv={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},_v={set:function(e,t,n){e!=null&&(e[t]=n)}}})),yv,bv,xv,Sv=n((()=>{U_(),yv=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},bv=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},xv=function(){function e(){}return e.prototype.active=function(){return H_},e.prototype.with=function(e,t,n){var r=[...arguments].slice(3);return t.call.apply(t,bv([n],yv(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()})),Cv,wv,Tv,Ev,Dv,Ov=n((()=>{Sv(),h_(),k_(),Cv=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},wv=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Tv=`context`,Ev=new xv,Dv=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return l_(Tv,e,O_.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,wv([e,t,n],Cv(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return u_(Tv)||Ev},e.prototype.disable=function(){this._getContextManager().disable(),d_(Tv,O_.instance())},e}()})),kv,Av=n((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(kv||={})})),jv,Mv,Nv,Pv=n((()=>{Av(),jv=`0000000000000000`,Mv=`00000000000000000000000000000000`,Nv={traceId:Mv,spanId:jv,traceFlags:kv.NONE}})),Fv,Iv=n((()=>{Pv(),Fv=function(){function e(e){e===void 0&&(e=Nv),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()}));function Lv(e){return e.getValue(Uv)||void 0}function Rv(){return Lv(Dv.getInstance().active())}function zv(e,t){return e.setValue(Uv,t)}function Bv(e){return e.deleteValue(Uv)}function Vv(e,t){return zv(e,new Fv(t))}function Hv(e){return Lv(e)?.spanContext()}var Uv,Wv=n((()=>{U_(),Iv(),Ov(),Uv=B_(`OpenTelemetry Context Key SPAN`)}));function Gv(e){return Yv.test(e)&&e!==Mv}function Kv(e){return Xv.test(e)&&e!==jv}function qv(e){return Gv(e.traceId)&&Kv(e.spanId)}function Jv(e){return new Fv(e)}var Yv,Xv,Zv=n((()=>{Pv(),Iv(),Yv=/^([0-9a-f]{32})$/i,Xv=/^[0-9a-f]{16}$/i}));function Qv(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var $v,ey,ty=n((()=>{Ov(),Wv(),Iv(),Zv(),$v=Dv.getInstance(),ey=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(n===void 0&&(n=$v.active()),t?.root)return new Fv;var r=n&&Hv(n);return Qv(r)&&qv(r)?new Fv(r):new Fv},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??$v.active(),c=this.startSpan(e,i,s),l=zv(s,c);return $v.with(l,o,void 0,c)}},e}()})),ny,ry,iy=n((()=>{ty(),ny=new ey,ry=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ny},e}()})),ay,oy=n((()=>{ty(),ay=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new ey},e}()})),sy,cy,ly=n((()=>{iy(),oy(),sy=new ay,cy=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return this.getDelegateTracer(e,t,n)??new ry(this,e,t,n)},e.prototype.getDelegate=function(){return this._delegate??sy},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){return this._delegate?.getTracer(e,t,n)},e}()})),uy,dy=n((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(uy||={})})),fy,py=n((()=>{(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`})(fy||={})})),my,hy=n((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(my||={})}));function gy(e){return xy.test(e)}function _y(e){return Sy.test(e)&&!Cy.test(e)}var vy,yy,by,xy,Sy,Cy,wy=n((()=>{vy=`[_0-9a-z-*/]`,yy=`[a-z]`+vy+`{0,255}`,by=`[a-z0-9]`+vy+`{0,240}@[a-z]`+vy+`{0,13}`,xy=RegExp(`^(?:`+yy+`|`+by+`)$`),Sy=/^[ -~]{0,255}[!-~]$/,Cy=/,|=/})),Ty,Ey,Dy,Oy,ky,Ay=n((()=>{wy(),Ty=32,Ey=512,Dy=`,`,Oy=`=`,ky=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+Oy+e.get(n)),t},[]).join(Dy)},e.prototype._parse=function(e){e.length>Ey||(this._internalState=e.split(Dy).reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf(Oy);if(r!==-1){var i=n.slice(0,r),a=n.slice(r+1,t.length);gy(i)&&_y(a)&&e.set(i,a)}return e},new Map),this._internalState.size>Ty&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Ty))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()}));function jy(e){return new ky(e)}var My=n((()=>{Ay()})),Ny,Py=n((()=>{Ov(),Ny=Dv.getInstance()})),Fy,Iy=n((()=>{k_(),Fy=O_.instance()})),Ly,Ry,zy=n((()=>{pv(),Ly=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return av},e}(),Ry=new Ly})),By,Vy,Hy=n((()=>{zy(),h_(),k_(),By=`metrics`,Vy=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalMeterProvider=function(e){return l_(By,e,O_.instance())},e.prototype.getMeterProvider=function(){return u_(By)||Ry},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){d_(By,O_.instance())},e}()})),Uy,Wy=n((()=>{Hy(),Uy=Vy.getInstance()})),Gy,Ky=n((()=>{Gy=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()}));function qy(e){return e.getValue(Zy)||void 0}function Jy(){return qy(Dv.getInstance().active())}function Yy(e,t){return e.setValue(Zy,t)}function Xy(e){return e.deleteValue(Zy)}var Zy,Qy=n((()=>{Ov(),U_(),Zy=B_(`OpenTelemetry Baggage Key`)})),$y,eb,tb,nb=n((()=>{h_(),Ky(),vv(),Qy(),z_(),k_(),$y=`propagation`,eb=new Gy,tb=function(){function e(){this.createBaggage=I_,this.getBaggage=qy,this.getActiveBaggage=Jy,this.setBaggage=Yy,this.deleteBaggage=Xy}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalPropagator=function(e){return l_($y,e,O_.instance())},e.prototype.inject=function(e,t,n){return n===void 0&&(n=_v),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return n===void 0&&(n=gv),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){d_($y,O_.instance())},e.prototype._getGlobalPropagator=function(){return u_($y)||eb},e}()})),rb,ib=n((()=>{nb(),rb=tb.getInstance()})),ab,ob,sb=n((()=>{h_(),ly(),Zv(),Wv(),k_(),ab=`trace`,ob=function(){function e(){this._proxyTracerProvider=new cy,this.wrapSpanContext=Jv,this.isSpanContextValid=qv,this.deleteSpan=Bv,this.getSpan=Lv,this.getActiveSpan=Rv,this.getSpanContext=Hv,this.setSpan=zv,this.setSpanContext=Vv}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=l_(ab,this._proxyTracerProvider,O_.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return u_(ab)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){d_(ab,O_.instance()),this._proxyTracerProvider=new cy},e}()})),cb,lb=n((()=>{sb(),cb=ob.getInstance()})),Q=i({DiagConsoleLogger:()=>G_,DiagLogLevel:()=>x_,INVALID_SPANID:()=>jv,INVALID_SPAN_CONTEXT:()=>Nv,INVALID_TRACEID:()=>Mv,ProxyTracer:()=>ry,ProxyTracerProvider:()=>cy,ROOT_CONTEXT:()=>H_,SamplingDecision:()=>uy,SpanKind:()=>fy,SpanStatusCode:()=>my,TraceFlags:()=>kv,ValueType:()=>mv,baggageEntryMetadataFromString:()=>L_,context:()=>Ny,createContextKey:()=>B_,createNoopMeter:()=>q_,createTraceState:()=>jy,default:()=>ub,defaultTextMapGetter:()=>gv,defaultTextMapSetter:()=>_v,diag:()=>Fy,isSpanContextValid:()=>qv,isValidSpanId:()=>Kv,isValidTraceId:()=>Gv,metrics:()=>Uy,propagation:()=>rb,trace:()=>cb}),ub,$=n((()=>{z_(),U_(),K_(),S_(),pv(),hv(),vv(),iy(),ly(),dy(),py(),hy(),Av(),My(),Zv(),Pv(),Py(),Iy(),Wy(),ib(),lb(),ub={context:Ny,diag:Fy,metrics:Uy,propagation:rb,trace:cb}})),db=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractAsyncHooksContextManager=void 0;let n=t(`events`),r=[`addListener`,`on`,`once`,`prependListener`,`prependOnceListener`];e.AbstractAsyncHooksContextManager=class{constructor(){this._kOtListeners=Symbol(`OtListeners`),this._wrapped=!1}bind(e,t){return t instanceof n.EventEmitter?this._bindEventEmitter(e,t):typeof t==`function`?this._bindFunction(e,t):t}_bindFunction(e,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}_bindEventEmitter(e,t){return this._getPatchMap(t)===void 0?(this._createPatchMap(t),r.forEach(n=>{t[n]!==void 0&&(t[n]=this._patchAddListener(t,t[n],e))}),typeof t.removeListener==`function`&&(t.removeListener=this._patchRemoveListener(t,t.removeListener)),typeof t.off==`function`&&(t.off=this._patchRemoveListener(t,t.off)),typeof t.removeAllListeners==`function`&&(t.removeAllListeners=this._patchRemoveAllListeners(t,t.removeAllListeners)),t):t}_patchRemoveListener(e,t){let n=this;return function(r,i){let a=n._getPatchMap(e)?.[r];if(a===void 0)return t.call(this,r,i);let o=a.get(i);return t.call(this,r,o||i)}}_patchRemoveAllListeners(e,t){let n=this;return function(r){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[r]!==void 0&&delete i[r]),t.apply(this,arguments)}}_patchAddListener(e,t,n){let r=this;return function(i,a){if(r._wrapped)return t.call(this,i,a);let o=r._getPatchMap(e);o===void 0&&(o=r._createPatchMap(e));let s=o[i];s===void 0&&(s=new WeakMap,o[i]=s);let c=r.bind(n,a);s.set(a,c),r._wrapped=!0;try{return t.call(this,i,c)}finally{r._wrapped=!1}}}_createPatchMap(e){let t=Object.create(null);return e[this._kOtListeners]=t,t}_getPatchMap(e){return e[this._kOtListeners]}}})),fb=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.AsyncHooksContextManager=void 0;let r=($(),e(Q)),i=t(`async_hooks`),a=db();n.AsyncHooksContextManager=class extends a.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=i.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??r.ROOT_CONTEXT}with(e,t,n,...r){this._enterContext(e);try{return t.call(n,...r)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,t){if(t===`TIMERWRAP`)return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let t=this._contexts.get(e);t!==void 0&&this._enterContext(t)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}}})),pb=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.AsyncLocalStorageContextManager=void 0;let r=($(),e(Q)),i=t(`async_hooks`),a=db();n.AsyncLocalStorageContextManager=class extends a.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new i.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??r.ROOT_CONTEXT}with(e,t,n,...r){let i=n==null?t:t.bind(n);return this._asyncLocalStorage.run(e,i,...r)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}})),mb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncLocalStorageContextManager=e.AsyncHooksContextManager=void 0;var t=fb();Object.defineProperty(e,`AsyncHooksContextManager`,{enumerable:!0,get:function(){return t.AsyncHooksContextManager}});var n=pb();Object.defineProperty(e,`AsyncLocalStorageContextManager`,{enumerable:!0,get:function(){return n.AsyncLocalStorageContextManager}})})),hb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isTracingSuppressed=t.unsuppressTracing=t.suppressTracing=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function r(e){return e.setValue(n,!0)}t.suppressTracing=r;function i(e){return e.deleteValue(n)}t.unsuppressTracing=i;function a(e){return e.getValue(n)===!0}t.isTracingSuppressed=a})),gb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR=`=`,e.BAGGAGE_PROPERTIES_SEPARATOR=`;`,e.BAGGAGE_ITEMS_SEPARATOR=`,`,e.BAGGAGE_HEADER=`baggage`,e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),_b=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseKeyPairsIntoRecord=t.parsePairKeyValue=t.getKeyPairs=t.serializeKeyPairs=void 0;let n=($(),e(Q)),r=gb();function i(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:r.BAGGAGE_ITEMS_SEPARATOR}${t}`;return n.length>r.BAGGAGE_MAX_TOTAL_LENGTH?e:n},``)}t.serializeKeyPairs=i;function a(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=r.BAGGAGE_PROPERTIES_SEPARATOR+t.metadata.toString()),n})}t.getKeyPairs=a;function o(e){let t=e.split(r.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let i=t.shift();if(!i)return;let a=i.indexOf(r.BAGGAGE_KEY_PAIR_SEPARATOR);if(a<=0)return;let o=decodeURIComponent(i.substring(0,a).trim()),s=decodeURIComponent(i.substring(a+1).trim()),c;return t.length>0&&(c=(0,n.baggageEntryMetadataFromString)(t.join(r.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:s,metadata:c}}t.parsePairKeyValue=o;function s(e){return typeof e!=`string`||e.length===0?{}:e.split(r.BAGGAGE_ITEMS_SEPARATOR).map(e=>o(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,t)=>(e[t.key]=t.value,e),{})}t.parseKeyPairsIntoRecord=s})),vb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CBaggagePropagator=void 0;let n=($(),e(Q)),r=hb(),i=gb(),a=_b();t.W3CBaggagePropagator=class{inject(e,t,o){let s=n.propagation.getBaggage(e);if(!s||(0,r.isTracingSuppressed)(e))return;let c=(0,a.getKeyPairs)(s).filter(e=>e.length<=i.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,i.BAGGAGE_MAX_NAME_VALUE_PAIRS),l=(0,a.serializeKeyPairs)(c);l.length>0&&o.set(t,i.BAGGAGE_HEADER,l)}extract(e,t,r){let o=r.get(t,i.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(i.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return e;let c={};return s.length===0||(s.split(i.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let t=(0,a.parsePairKeyValue)(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),c[t.key]=e}}),Object.entries(c).length===0)?e:n.propagation.setBaggage(e,n.propagation.createBaggage(c))}fields(){return[i.BAGGAGE_HEADER]}}})),yb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnchoredClock=void 0,e.AnchoredClock=class{constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}})),bb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isAttributeValue=t.isAttributeKey=t.sanitizeAttributes=void 0;let n=($(),e(Q));function r(e){let t={};if(typeof e!=`object`||!e)return t;for(let[r,o]of Object.entries(e)){if(!i(r)){n.diag.warn(`Invalid attribute key: ${r}`);continue}if(!a(o)){n.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?t[r]=o.slice():t[r]=o}return t}t.sanitizeAttributes=r;function i(e){return typeof e==`string`&&e.length>0}t.isAttributeKey=i;function a(e){return e==null?!0:Array.isArray(e)?o(e):s(e)}t.isAttributeValue=a;function o(e){let t;for(let n of e)if(n!=null){if(!t){if(s(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function s(e){switch(typeof e){case`number`:case`boolean`:case`string`:return!0}return!1}})),xb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.loggingErrorHandler=void 0;let n=($(),e(Q));function r(){return e=>{n.diag.error(i(e))}}t.loggingErrorHandler=r;function i(e){return typeof e==`string`?e:JSON.stringify(a(e))}function a(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}})),Sb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;let t=(0,xb().loggingErrorHandler)();function n(e){t=e}e.setGlobalErrorHandler=n;function r(e){try{t(e)}catch{}}e.globalErrorHandler=r})),Cb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TracesSamplerValues=void 0,(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`})(e.TracesSamplerValues||={})})),wb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseEnvironment=t.DEFAULT_ENVIRONMENT=t.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=t.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=t.DEFAULT_ATTRIBUTE_COUNT_LIMIT=t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;let n=($(),e(Q)),r=Cb(),i=[`OTEL_SDK_DISABLED`];function a(e){return i.indexOf(e)>-1}let o=[`OTEL_BSP_EXPORT_TIMEOUT`,`OTEL_BSP_MAX_EXPORT_BATCH_SIZE`,`OTEL_BSP_MAX_QUEUE_SIZE`,`OTEL_BSP_SCHEDULE_DELAY`,`OTEL_BLRP_EXPORT_TIMEOUT`,`OTEL_BLRP_MAX_EXPORT_BATCH_SIZE`,`OTEL_BLRP_MAX_QUEUE_SIZE`,`OTEL_BLRP_SCHEDULE_DELAY`,`OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT`,`OTEL_ATTRIBUTE_COUNT_LIMIT`,`OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT`,`OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT`,`OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT`,`OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT`,`OTEL_SPAN_EVENT_COUNT_LIMIT`,`OTEL_SPAN_LINK_COUNT_LIMIT`,`OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT`,`OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT`,`OTEL_EXPORTER_OTLP_TIMEOUT`,`OTEL_EXPORTER_OTLP_TRACES_TIMEOUT`,`OTEL_EXPORTER_OTLP_METRICS_TIMEOUT`,`OTEL_EXPORTER_OTLP_LOGS_TIMEOUT`,`OTEL_EXPORTER_JAEGER_AGENT_PORT`];function s(e){return o.indexOf(e)>-1}let c=[`OTEL_NO_PATCH_MODULES`,`OTEL_PROPAGATORS`,`OTEL_SEMCONV_STABILITY_OPT_IN`];function l(e){return c.indexOf(e)>-1}t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,t.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,t.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,t.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,t.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:``,ECS_CONTAINER_METADATA_URI_V4:``,ECS_CONTAINER_METADATA_URI:``,HOSTNAME:``,KUBERNETES_SERVICE_HOST:``,NAMESPACE:``,OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:``,OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:``,OTEL_EXPORTER_JAEGER_PASSWORD:``,OTEL_EXPORTER_JAEGER_USER:``,OTEL_EXPORTER_OTLP_ENDPOINT:``,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:``,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:``,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:``,OTEL_EXPORTER_OTLP_HEADERS:``,OTEL_EXPORTER_OTLP_TRACES_HEADERS:``,OTEL_EXPORTER_OTLP_METRICS_HEADERS:``,OTEL_EXPORTER_OTLP_LOGS_HEADERS:``,OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:`http://localhost:9411/api/v2/spans`,OTEL_LOG_LEVEL:n.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:[`tracecontext`,`baggage`],OTEL_RESOURCE_ATTRIBUTES:``,OTEL_SERVICE_NAME:``,OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:t.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:t.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:t.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:t.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:t.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:``,OTEL_TRACES_SAMPLER:r.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:``,OTEL_LOGS_EXPORTER:``,OTEL_EXPORTER_OTLP_INSECURE:``,OTEL_EXPORTER_OTLP_TRACES_INSECURE:``,OTEL_EXPORTER_OTLP_METRICS_INSECURE:``,OTEL_EXPORTER_OTLP_LOGS_INSECURE:``,OTEL_EXPORTER_OTLP_CERTIFICATE:``,OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:``,OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:``,OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:``,OTEL_EXPORTER_OTLP_COMPRESSION:``,OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:``,OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:``,OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:``,OTEL_EXPORTER_OTLP_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:`cumulative`,OTEL_SEMCONV_STABILITY_OPT_IN:[]};function u(e,t,n){n[e]!==void 0&&(t[e]=String(n[e]).toLowerCase()===`true`)}function d(e,t,n,r=-1/0,i=1/0){if(n[e]!==void 0){let a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function f(e,t,n,r=`,`){let i=n[e];typeof i==`string`&&(t[e]=i.split(r).map(e=>e.trim()))}let p={ALL:n.DiagLogLevel.ALL,VERBOSE:n.DiagLogLevel.VERBOSE,DEBUG:n.DiagLogLevel.DEBUG,INFO:n.DiagLogLevel.INFO,WARN:n.DiagLogLevel.WARN,ERROR:n.DiagLogLevel.ERROR,NONE:n.DiagLogLevel.NONE};function m(e,t,n){let r=n[e];if(typeof r==`string`){let n=p[r.toUpperCase()];n!=null&&(t[e]=n)}}function h(e){let n={};for(let r in t.DEFAULT_ENVIRONMENT){let t=r;switch(t){case`OTEL_LOG_LEVEL`:m(t,n,e);break;default:if(a(t))u(t,n,e);else if(s(t))d(t,n,e);else if(l(t))f(t,n,e);else{let r=e[t];r!=null&&(n[t]=String(r))}}}return n}t.parseEnvironment=h})),Tb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getEnvWithoutDefaults=e.getEnv=void 0;let t=wb();function n(){let e=(0,t.parseEnvironment)(process.env);return Object.assign({},t.DEFAULT_ENVIRONMENT,e)}e.getEnv=n;function r(){return(0,t.parseEnvironment)(process.env)}e.getEnvWithoutDefaults=r})),Eb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e._globalThis=void 0,e._globalThis=typeof globalThis==`object`?globalThis:global})),Db=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hexToBinary=void 0;function t(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function n(e){let n=new Uint8Array(e.length/2),r=0;for(let i=0;i<e.length;i+=2){let a=t(e.charCodeAt(i)),o=t(e.charCodeAt(i+1));n[r++]=a<<4|o}return n}e.hexToBinary=n})),Ob=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hexToBase64=void 0;let t=Db();function n(e){return Buffer.from((0,t.hexToBinary)(e)).toString(`base64`)}e.hexToBase64=n})),kb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};let t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString(`hex`,0,e)}}})),Ab=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.otperformance=void 0,e.otperformance=t(`perf_hooks`).performance})),jb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION=void 0,e.VERSION=`1.30.1`}));function Mb(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,`_`)]=i)}return t}var Nb=n((()=>{})),Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC,lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,NC,PC,FC,IC,LC,RC,zC,BC,VC,HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,jw,Mw,Nw,Pw,Fw,Iw,Lw,Rw,zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT,dT,fT,pT,mT,hT,gT,_T,vT,yT,bT,xT,ST,CT,wT,TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA=n((()=>{Nb(),Pb=`aws.lambda.invoked_arn`,Fb=`db.system`,Ib=`db.connection_string`,Lb=`db.user`,Rb=`db.jdbc.driver_classname`,zb=`db.name`,Bb=`db.statement`,Vb=`db.operation`,Hb=`db.mssql.instance_name`,Ub=`db.cassandra.keyspace`,Wb=`db.cassandra.page_size`,Gb=`db.cassandra.consistency_level`,Kb=`db.cassandra.table`,qb=`db.cassandra.idempotence`,Jb=`db.cassandra.speculative_execution_count`,Yb=`db.cassandra.coordinator.id`,Xb=`db.cassandra.coordinator.dc`,Zb=`db.hbase.namespace`,Qb=`db.redis.database_index`,$b=`db.mongodb.collection`,ex=`db.sql.table`,tx=`exception.type`,nx=`exception.message`,rx=`exception.stacktrace`,ix=`exception.escaped`,ax=`faas.trigger`,ox=`faas.execution`,sx=`faas.document.collection`,cx=`faas.document.operation`,lx=`faas.document.time`,ux=`faas.document.name`,dx=`faas.time`,fx=`faas.cron`,px=`faas.coldstart`,mx=`faas.invoked_name`,hx=`faas.invoked_provider`,gx=`faas.invoked_region`,_x=`net.transport`,vx=`net.peer.ip`,yx=`net.peer.port`,bx=`net.peer.name`,xx=`net.host.ip`,Sx=`net.host.port`,Cx=`net.host.name`,wx=`net.host.connection.type`,Tx=`net.host.connection.subtype`,Ex=`net.host.carrier.name`,Dx=`net.host.carrier.mcc`,Ox=`net.host.carrier.mnc`,kx=`net.host.carrier.icc`,Ax=`peer.service`,jx=`enduser.id`,Mx=`enduser.role`,Nx=`enduser.scope`,Px=`thread.id`,Fx=`thread.name`,Ix=`code.function`,Lx=`code.namespace`,Rx=`code.filepath`,zx=`code.lineno`,Bx=`http.method`,Vx=`http.url`,Hx=`http.target`,Ux=`http.host`,Wx=`http.scheme`,Gx=`http.status_code`,Kx=`http.flavor`,qx=`http.user_agent`,Jx=`http.request_content_length`,Yx=`http.request_content_length_uncompressed`,Xx=`http.response_content_length`,Zx=`http.response_content_length_uncompressed`,Qx=`http.server_name`,$x=`http.route`,eS=`http.client_ip`,tS=`aws.dynamodb.table_names`,nS=`aws.dynamodb.consumed_capacity`,rS=`aws.dynamodb.item_collection_metrics`,iS=`aws.dynamodb.provisioned_read_capacity`,aS=`aws.dynamodb.provisioned_write_capacity`,oS=`aws.dynamodb.consistent_read`,sS=`aws.dynamodb.projection`,cS=`aws.dynamodb.limit`,lS=`aws.dynamodb.attributes_to_get`,uS=`aws.dynamodb.index_name`,dS=`aws.dynamodb.select`,fS=`aws.dynamodb.global_secondary_indexes`,pS=`aws.dynamodb.local_secondary_indexes`,mS=`aws.dynamodb.exclusive_start_table`,hS=`aws.dynamodb.table_count`,gS=`aws.dynamodb.scan_forward`,_S=`aws.dynamodb.segment`,vS=`aws.dynamodb.total_segments`,yS=`aws.dynamodb.count`,bS=`aws.dynamodb.scanned_count`,xS=`aws.dynamodb.attribute_definitions`,SS=`aws.dynamodb.global_secondary_index_updates`,CS=`messaging.system`,wS=`messaging.destination`,TS=`messaging.destination_kind`,ES=`messaging.temp_destination`,DS=`messaging.protocol`,OS=`messaging.protocol_version`,kS=`messaging.url`,AS=`messaging.message_id`,jS=`messaging.conversation_id`,MS=`messaging.message_payload_size_bytes`,NS=`messaging.message_payload_compressed_size_bytes`,PS=`messaging.operation`,FS=`messaging.consumer_id`,IS=`messaging.rabbitmq.routing_key`,LS=`messaging.kafka.message_key`,RS=`messaging.kafka.consumer_group`,zS=`messaging.kafka.client_id`,BS=`messaging.kafka.partition`,VS=`messaging.kafka.tombstone`,HS=`rpc.system`,US=`rpc.service`,WS=`rpc.method`,GS=`rpc.grpc.status_code`,KS=`rpc.jsonrpc.version`,qS=`rpc.jsonrpc.request_id`,JS=`rpc.jsonrpc.error_code`,YS=`rpc.jsonrpc.error_message`,XS=`message.type`,ZS=`message.id`,QS=`message.compressed_size`,$S=`message.uncompressed_size`,eC=Pb,tC=Fb,nC=Ib,rC=Lb,iC=Rb,aC=zb,oC=Bb,sC=Vb,cC=Hb,lC=Ub,uC=Wb,dC=Gb,fC=Kb,pC=qb,mC=Jb,hC=Yb,gC=Xb,_C=Zb,vC=Qb,yC=$b,bC=ex,xC=tx,SC=nx,CC=rx,wC=ix,TC=ax,EC=ox,DC=sx,OC=cx,kC=lx,AC=ux,jC=dx,MC=fx,NC=px,PC=mx,FC=hx,IC=gx,LC=_x,RC=vx,zC=yx,BC=bx,VC=xx,HC=Sx,UC=Cx,WC=wx,GC=Tx,KC=Ex,qC=Dx,JC=Ox,YC=kx,XC=Ax,ZC=jx,QC=Mx,$C=Nx,ew=Px,tw=Fx,nw=Ix,rw=Lx,iw=Rx,aw=zx,ow=Bx,sw=Vx,cw=Hx,lw=Ux,uw=Wx,dw=Gx,fw=Kx,pw=qx,mw=Jx,hw=Yx,gw=Xx,_w=Zx,vw=Qx,yw=$x,bw=eS,xw=tS,Sw=nS,Cw=rS,ww=iS,Tw=aS,Ew=oS,Dw=sS,Ow=cS,kw=lS,Aw=uS,jw=dS,Mw=fS,Nw=pS,Pw=mS,Fw=hS,Iw=gS,Lw=_S,Rw=vS,zw=yS,Bw=bS,Vw=xS,Hw=SS,Uw=CS,Ww=wS,Gw=TS,Kw=ES,qw=DS,Jw=OS,Yw=kS,Xw=AS,Zw=jS,Qw=MS,$w=NS,eT=PS,tT=FS,nT=IS,rT=LS,iT=RS,aT=zS,oT=BS,sT=VS,cT=HS,lT=US,uT=WS,dT=GS,fT=KS,pT=qS,mT=JS,hT=YS,gT=XS,_T=ZS,vT=QS,yT=$S,bT=Mb([Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S]),xT=`other_sql`,ST=`mssql`,CT=`mysql`,wT=`oracle`,TT=`db2`,ET=`postgresql`,DT=`redshift`,OT=`hive`,kT=`cloudscape`,AT=`hsqldb`,jT=`progress`,MT=`maxdb`,NT=`hanadb`,PT=`ingres`,FT=`firstsql`,IT=`edb`,LT=`cache`,RT=`adabas`,zT=`firebird`,BT=`derby`,VT=`filemaker`,HT=`informix`,UT=`instantdb`,WT=`interbase`,GT=`mariadb`,KT=`netezza`,qT=`pervasive`,JT=`pointbase`,YT=`sqlite`,XT=`sybase`,ZT=`teradata`,QT=`vertica`,$T=`h2`,eE=`coldfusion`,tE=`cassandra`,nE=`hbase`,rE=`mongodb`,iE=`redis`,aE=`couchbase`,oE=`couchdb`,sE=`cosmosdb`,cE=`dynamodb`,lE=`neo4j`,uE=`geode`,dE=`elasticsearch`,fE=`memcached`,pE=`cockroachdb`,mE=xT,hE=ST,gE=CT,_E=wT,vE=TT,yE=ET,bE=DT,xE=OT,SE=kT,CE=AT,wE=jT,TE=MT,EE=NT,DE=PT,OE=FT,kE=IT,AE=LT,jE=RT,ME=zT,NE=BT,PE=VT,FE=HT,IE=UT,LE=WT,RE=GT,zE=KT,BE=qT,VE=JT,HE=YT,UE=XT,WE=ZT,GE=QT,KE=$T,qE=eE,JE=tE,YE=nE,XE=rE,ZE=iE,QE=aE,$E=oE,eD=sE,tD=cE,nD=lE,rD=uE,iD=dE,aD=fE,oD=pE,sD=Mb([xT,ST,CT,wT,TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE]),cD=`all`,lD=`each_quorum`,uD=`quorum`,dD=`local_quorum`,fD=`one`,pD=`two`,mD=`three`,hD=`local_one`,gD=`any`,_D=`serial`,vD=`local_serial`,yD=cD,bD=lD,xD=uD,SD=dD,CD=fD,wD=pD,TD=mD,ED=hD,DD=gD,OD=_D,kD=vD,AD=Mb([cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD]),jD=`datasource`,MD=`http`,ND=`pubsub`,PD=`timer`,FD=`other`,ID=jD,LD=MD,RD=ND,zD=PD,BD=FD,VD=Mb([jD,MD,ND,PD,FD]),HD=`insert`,UD=`edit`,WD=`delete`,GD=HD,KD=UD,qD=WD,JD=Mb([HD,UD,WD]),YD=`alibaba_cloud`,XD=`aws`,ZD=`azure`,QD=`gcp`,$D=YD,eO=XD,tO=ZD,nO=QD,rO=Mb([YD,XD,ZD,QD]),iO=`ip_tcp`,aO=`ip_udp`,oO=`ip`,sO=`unix`,cO=`pipe`,lO=`inproc`,uO=`other`,dO=iO,fO=aO,pO=oO,mO=sO,hO=cO,gO=lO,_O=uO,vO=Mb([iO,aO,oO,sO,cO,lO,uO]),yO=`wifi`,bO=`wired`,xO=`cell`,SO=`unavailable`,CO=`unknown`,wO=yO,TO=bO,EO=xO,DO=SO,OO=CO,kO=Mb([yO,bO,xO,SO,CO]),AO=`gprs`,jO=`edge`,MO=`umts`,NO=`cdma`,PO=`evdo_0`,FO=`evdo_a`,IO=`cdma2000_1xrtt`,LO=`hsdpa`,RO=`hsupa`,zO=`hspa`,BO=`iden`,VO=`evdo_b`,HO=`lte`,UO=`ehrpd`,WO=`hspap`,GO=`gsm`,KO=`td_scdma`,qO=`iwlan`,JO=`nr`,YO=`nrnsa`,XO=`lte_ca`,ZO=AO,QO=jO,$O=MO,ek=NO,tk=PO,nk=FO,rk=IO,ik=LO,ak=RO,ok=zO,sk=BO,ck=VO,lk=HO,uk=UO,dk=WO,fk=GO,pk=KO,mk=qO,hk=JO,gk=YO,_k=XO,vk=Mb([AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO]),yk=`1.0`,bk=`1.1`,xk=`2.0`,Sk=`SPDY`,Ck=`QUIC`,wk=yk,Tk=bk,Ek=xk,Dk=Sk,Ok=Ck,kk={HTTP_1_0:yk,HTTP_1_1:bk,HTTP_2_0:xk,SPDY:Sk,QUIC:Ck},Ak=`queue`,jk=`topic`,Mk=Ak,Nk=jk,Pk=Mb([Ak,jk]),Fk=`receive`,Ik=`process`,Lk=Fk,Rk=Ik,zk=Mb([Fk,Ik]),Bk=0,Vk=1,Hk=2,Uk=3,Wk=4,Gk=5,Kk=6,qk=7,Jk=8,Yk=9,Xk=10,Zk=11,Qk=12,$k=13,eA=14,tA=15,nA=16,rA=Bk,iA=Vk,aA=Hk,oA=Uk,sA=Wk,cA=Gk,lA=Kk,uA=qk,dA=Jk,fA=Yk,pA=Xk,mA=Zk,hA=Qk,gA=$k,_A=eA,vA=tA,yA=nA,bA={OK:Bk,CANCELLED:Vk,UNKNOWN:Hk,INVALID_ARGUMENT:Uk,DEADLINE_EXCEEDED:Wk,NOT_FOUND:Gk,ALREADY_EXISTS:Kk,PERMISSION_DENIED:qk,RESOURCE_EXHAUSTED:Jk,FAILED_PRECONDITION:Yk,ABORTED:Xk,OUT_OF_RANGE:Zk,UNIMPLEMENTED:Qk,INTERNAL:$k,UNAVAILABLE:eA,DATA_LOSS:tA,UNAUTHENTICATED:nA},xA=`SENT`,SA=`RECEIVED`,CA=xA,wA=SA,TA=Mb([xA,SA])})),DA=n((()=>{EA()})),OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF=n((()=>{Nb(),OA=`cloud.provider`,kA=`cloud.account.id`,AA=`cloud.region`,jA=`cloud.availability_zone`,MA=`cloud.platform`,NA=`aws.ecs.container.arn`,PA=`aws.ecs.cluster.arn`,FA=`aws.ecs.launchtype`,IA=`aws.ecs.task.arn`,LA=`aws.ecs.task.family`,RA=`aws.ecs.task.revision`,zA=`aws.eks.cluster.arn`,BA=`aws.log.group.names`,VA=`aws.log.group.arns`,HA=`aws.log.stream.names`,UA=`aws.log.stream.arns`,WA=`container.name`,GA=`container.id`,KA=`container.runtime`,qA=`container.image.name`,JA=`container.image.tag`,YA=`deployment.environment`,XA=`device.id`,ZA=`device.model.identifier`,QA=`device.model.name`,$A=`faas.name`,ej=`faas.id`,tj=`faas.version`,nj=`faas.instance`,rj=`faas.max_memory`,ij=`host.id`,aj=`host.name`,oj=`host.type`,sj=`host.arch`,cj=`host.image.name`,lj=`host.image.id`,uj=`host.image.version`,dj=`k8s.cluster.name`,fj=`k8s.node.name`,pj=`k8s.node.uid`,mj=`k8s.namespace.name`,hj=`k8s.pod.uid`,gj=`k8s.pod.name`,_j=`k8s.container.name`,vj=`k8s.replicaset.uid`,yj=`k8s.replicaset.name`,bj=`k8s.deployment.uid`,xj=`k8s.deployment.name`,Sj=`k8s.statefulset.uid`,Cj=`k8s.statefulset.name`,wj=`k8s.daemonset.uid`,Tj=`k8s.daemonset.name`,Ej=`k8s.job.uid`,Dj=`k8s.job.name`,Oj=`k8s.cronjob.uid`,kj=`k8s.cronjob.name`,Aj=`os.type`,jj=`os.description`,Mj=`os.name`,Nj=`os.version`,Pj=`process.pid`,Fj=`process.executable.name`,Ij=`process.executable.path`,Lj=`process.command`,Rj=`process.command_line`,zj=`process.command_args`,Bj=`process.owner`,Vj=`process.runtime.name`,Hj=`process.runtime.version`,Uj=`process.runtime.description`,Wj=`service.name`,Gj=`service.namespace`,Kj=`service.instance.id`,qj=`service.version`,Jj=`telemetry.sdk.name`,Yj=`telemetry.sdk.language`,Xj=`telemetry.sdk.version`,Zj=`telemetry.auto.version`,Qj=`webengine.name`,$j=`webengine.version`,eM=`webengine.description`,tM=OA,nM=kA,rM=AA,iM=jA,aM=MA,oM=NA,sM=PA,cM=FA,lM=IA,uM=LA,dM=RA,fM=zA,pM=BA,mM=VA,hM=HA,gM=UA,_M=WA,vM=GA,yM=KA,bM=qA,xM=JA,SM=YA,CM=XA,wM=ZA,TM=QA,EM=$A,DM=ej,OM=tj,kM=nj,AM=rj,jM=ij,MM=aj,NM=oj,PM=sj,FM=cj,IM=lj,LM=uj,RM=dj,zM=fj,BM=pj,VM=mj,HM=hj,UM=gj,WM=_j,GM=vj,KM=yj,qM=bj,JM=xj,YM=Sj,XM=Cj,ZM=wj,QM=Tj,$M=Ej,eN=Dj,tN=Oj,nN=kj,rN=Aj,iN=jj,aN=Mj,oN=Nj,sN=Pj,cN=Fj,lN=Ij,uN=Lj,dN=Rj,fN=zj,pN=Bj,mN=Vj,hN=Hj,gN=Uj,_N=Wj,vN=Gj,yN=Kj,bN=qj,xN=Jj,SN=Yj,CN=Xj,wN=Zj,TN=Qj,EN=$j,DN=eM,ON=Mb([OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM]),kN=`alibaba_cloud`,AN=`aws`,jN=`azure`,MN=`gcp`,NN=kN,PN=AN,FN=jN,IN=MN,LN=Mb([kN,AN,jN,MN]),RN=`alibaba_cloud_ecs`,zN=`alibaba_cloud_fc`,BN=`aws_ec2`,VN=`aws_ecs`,HN=`aws_eks`,UN=`aws_lambda`,WN=`aws_elastic_beanstalk`,GN=`azure_vm`,KN=`azure_container_instances`,qN=`azure_aks`,JN=`azure_functions`,YN=`azure_app_service`,XN=`gcp_compute_engine`,ZN=`gcp_cloud_run`,QN=`gcp_kubernetes_engine`,$N=`gcp_cloud_functions`,eP=`gcp_app_engine`,tP=RN,nP=zN,rP=BN,iP=VN,aP=HN,oP=UN,sP=WN,cP=GN,lP=KN,uP=qN,dP=JN,fP=YN,pP=XN,mP=ZN,hP=QN,gP=$N,_P=eP,vP=Mb([RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP]),yP=`ec2`,bP=`fargate`,xP=yP,SP=bP,CP=Mb([yP,bP]),wP=`amd64`,TP=`arm32`,EP=`arm64`,DP=`ia64`,OP=`ppc32`,kP=`ppc64`,AP=`x86`,jP=wP,MP=TP,NP=EP,PP=DP,FP=OP,IP=kP,LP=AP,RP=Mb([wP,TP,EP,DP,OP,kP,AP]),zP=`windows`,BP=`linux`,VP=`darwin`,HP=`freebsd`,UP=`netbsd`,WP=`openbsd`,GP=`dragonflybsd`,KP=`hpux`,qP=`aix`,JP=`solaris`,YP=`z_os`,XP=zP,ZP=BP,QP=VP,$P=HP,eF=UP,tF=WP,nF=GP,rF=KP,iF=qP,aF=JP,oF=YP,sF=Mb([zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP]),cF=`cpp`,lF=`dotnet`,uF=`erlang`,dF=`go`,fF=`java`,pF=`nodejs`,mF=`php`,hF=`python`,gF=`ruby`,_F=`webjs`,vF=cF,yF=lF,bF=uF,xF=dF,SF=fF,CF=pF,wF=mF,TF=hF,EF=gF,DF=_F,OF=Mb([cF,lF,uF,dF,fF,pF,mF,hF,gF,_F])})),AF=n((()=>{kF()})),jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL=n((()=>{jF=`aspnetcore.rate_limiting.result`,MF=`acquired`,NF=`endpoint_limiter`,PF=`global_limiter`,FF=`request_canceled`,IF=`telemetry.sdk.language`,LF=`cpp`,RF=`dotnet`,zF=`erlang`,BF=`go`,VF=`java`,HF=`nodejs`,UF=`php`,WF=`python`,GF=`ruby`,KF=`rust`,qF=`swift`,JF=`webjs`,YF=`telemetry.sdk.name`,XF=`telemetry.sdk.version`,ZF=`aspnetcore.diagnostics.handler.type`,QF=`aspnetcore.diagnostics.exception.result`,$F=`aborted`,eI=`handled`,tI=`skipped`,nI=`unhandled`,rI=`aspnetcore.rate_limiting.policy`,iI=`aspnetcore.request.is_unhandled`,aI=`aspnetcore.routing.is_fallback`,oI=`aspnetcore.routing.match_status`,sI=`failure`,cI=`success`,lI=`client.address`,uI=`client.port`,dI=`error.type`,fI=`_OTHER`,pI=`exception.escaped`,mI=`exception.message`,hI=`exception.stacktrace`,gI=`exception.type`,_I=function(e){return`http.request.header.`+e},vI=`http.request.method`,yI=`_OTHER`,bI=`CONNECT`,xI=`DELETE`,SI=`GET`,CI=`HEAD`,wI=`OPTIONS`,TI=`PATCH`,EI=`POST`,DI=`PUT`,OI=`TRACE`,kI=`http.request.method_original`,AI=`http.request.resend_count`,jI=function(e){return`http.response.header.`+e},MI=`http.response.status_code`,NI=`http.route`,PI=`jvm.gc.action`,FI=`jvm.gc.name`,II=`jvm.memory.pool.name`,LI=`jvm.memory.type`,RI=`heap`,zI=`non_heap`,BI=`jvm.thread.daemon`,VI=`jvm.thread.state`,HI=`blocked`,UI=`new`,WI=`runnable`,GI=`terminated`,KI=`timed_waiting`,qI=`waiting`,JI=`network.local.address`,YI=`network.local.port`,XI=`network.peer.address`,ZI=`network.peer.port`,QI=`network.protocol.name`,$I=`network.protocol.version`,eL=`network.transport`,tL=`pipe`,nL=`quic`,rL=`tcp`,iL=`udp`,aL=`unix`,oL=`network.type`,sL=`ipv4`,cL=`ipv6`,lL=`otel.scope.name`,uL=`otel.scope.version`,dL=`otel.status_code`,fL=`ERROR`,pL=`OK`,mL=`otel.status_description`,hL=`server.address`,gL=`server.port`,_L=`service.name`,vL=`service.version`,yL=`signalr.connection.status`,bL=`app_shutdown`,xL=`normal_closure`,SL=`timeout`,CL=`signalr.transport`,wL=`long_polling`,TL=`server_sent_events`,EL=`web_sockets`,DL=`url.fragment`,OL=`url.full`,kL=`url.path`,AL=`url.query`,jL=`url.scheme`,ML=`user_agent.original`})),PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR=n((()=>{PL=`aspnetcore.diagnostics.exceptions`,FL=`aspnetcore.rate_limiting.active_request_leases`,IL=`aspnetcore.rate_limiting.queued_requests`,LL=`aspnetcore.rate_limiting.request.time_in_queue`,RL=`aspnetcore.rate_limiting.request_lease.duration`,zL=`aspnetcore.rate_limiting.requests`,BL=`aspnetcore.routing.match_attempts`,VL=`http.client.request.duration`,HL=`http.server.request.duration`,UL=`jvm.class.count`,WL=`jvm.class.loaded`,GL=`jvm.class.unloaded`,KL=`jvm.cpu.count`,qL=`jvm.cpu.recent_utilization`,JL=`jvm.cpu.time`,YL=`jvm.gc.duration`,XL=`jvm.memory.committed`,ZL=`jvm.memory.limit`,QL=`jvm.memory.used`,$L=`jvm.memory.used_after_last_gc`,eR=`jvm.thread.count`,tR=`kestrel.active_connections`,nR=`kestrel.active_tls_handshakes`,rR=`kestrel.connection.duration`,iR=`kestrel.queued_connections`,aR=`kestrel.queued_requests`,oR=`kestrel.rejected_connections`,sR=`kestrel.tls_handshake.duration`,cR=`kestrel.upgraded_connections`,lR=`signalr.server.active_connections`,uR=`signalr.server.connection.duration`})),fR=i({ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>$F,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>eI,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>tI,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>nI,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>MF,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>NF,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>PF,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>FF,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>sI,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>cI,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>QF,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>ZF,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>rI,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>jF,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>iI,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>aI,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>oI,ATTR_CLIENT_ADDRESS:()=>lI,ATTR_CLIENT_PORT:()=>uI,ATTR_ERROR_TYPE:()=>dI,ATTR_EXCEPTION_ESCAPED:()=>pI,ATTR_EXCEPTION_MESSAGE:()=>mI,ATTR_EXCEPTION_STACKTRACE:()=>hI,ATTR_EXCEPTION_TYPE:()=>gI,ATTR_HTTP_REQUEST_HEADER:()=>_I,ATTR_HTTP_REQUEST_METHOD:()=>vI,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>kI,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>AI,ATTR_HTTP_RESPONSE_HEADER:()=>jI,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>MI,ATTR_HTTP_ROUTE:()=>NI,ATTR_JVM_GC_ACTION:()=>PI,ATTR_JVM_GC_NAME:()=>FI,ATTR_JVM_MEMORY_POOL_NAME:()=>II,ATTR_JVM_MEMORY_TYPE:()=>LI,ATTR_JVM_THREAD_DAEMON:()=>BI,ATTR_JVM_THREAD_STATE:()=>VI,ATTR_NETWORK_LOCAL_ADDRESS:()=>JI,ATTR_NETWORK_LOCAL_PORT:()=>YI,ATTR_NETWORK_PEER_ADDRESS:()=>XI,ATTR_NETWORK_PEER_PORT:()=>ZI,ATTR_NETWORK_PROTOCOL_NAME:()=>QI,ATTR_NETWORK_PROTOCOL_VERSION:()=>$I,ATTR_NETWORK_TRANSPORT:()=>eL,ATTR_NETWORK_TYPE:()=>oL,ATTR_OTEL_SCOPE_NAME:()=>lL,ATTR_OTEL_SCOPE_VERSION:()=>uL,ATTR_OTEL_STATUS_CODE:()=>dL,ATTR_OTEL_STATUS_DESCRIPTION:()=>mL,ATTR_SERVER_ADDRESS:()=>hL,ATTR_SERVER_PORT:()=>gL,ATTR_SERVICE_NAME:()=>_L,ATTR_SERVICE_VERSION:()=>vL,ATTR_SIGNALR_CONNECTION_STATUS:()=>yL,ATTR_SIGNALR_TRANSPORT:()=>CL,ATTR_TELEMETRY_SDK_LANGUAGE:()=>IF,ATTR_TELEMETRY_SDK_NAME:()=>YF,ATTR_TELEMETRY_SDK_VERSION:()=>XF,ATTR_URL_FRAGMENT:()=>DL,ATTR_URL_FULL:()=>OL,ATTR_URL_PATH:()=>kL,ATTR_URL_QUERY:()=>AL,ATTR_URL_SCHEME:()=>jL,ATTR_USER_AGENT_ORIGINAL:()=>ML,AWSECSLAUNCHTYPEVALUES_EC2:()=>xP,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>SP,AwsEcsLaunchtypeValues:()=>CP,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>tP,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>nP,CLOUDPLATFORMVALUES_AWS_EC2:()=>rP,CLOUDPLATFORMVALUES_AWS_ECS:()=>iP,CLOUDPLATFORMVALUES_AWS_EKS:()=>aP,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>sP,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>oP,CLOUDPLATFORMVALUES_AZURE_AKS:()=>uP,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>fP,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>lP,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>dP,CLOUDPLATFORMVALUES_AZURE_VM:()=>cP,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>_P,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>gP,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>mP,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>pP,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>hP,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>NN,CLOUDPROVIDERVALUES_AWS:()=>PN,CLOUDPROVIDERVALUES_AZURE:()=>FN,CLOUDPROVIDERVALUES_GCP:()=>IN,CloudPlatformValues:()=>vP,CloudProviderValues:()=>LN,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>yD,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>DD,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>bD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>ED,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>SD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>kD,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>CD,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>xD,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>OD,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>TD,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>wD,DBSYSTEMVALUES_ADABAS:()=>jE,DBSYSTEMVALUES_CACHE:()=>AE,DBSYSTEMVALUES_CASSANDRA:()=>JE,DBSYSTEMVALUES_CLOUDSCAPE:()=>SE,DBSYSTEMVALUES_COCKROACHDB:()=>oD,DBSYSTEMVALUES_COLDFUSION:()=>qE,DBSYSTEMVALUES_COSMOSDB:()=>eD,DBSYSTEMVALUES_COUCHBASE:()=>QE,DBSYSTEMVALUES_COUCHDB:()=>$E,DBSYSTEMVALUES_DB2:()=>vE,DBSYSTEMVALUES_DERBY:()=>NE,DBSYSTEMVALUES_DYNAMODB:()=>tD,DBSYSTEMVALUES_EDB:()=>kE,DBSYSTEMVALUES_ELASTICSEARCH:()=>iD,DBSYSTEMVALUES_FILEMAKER:()=>PE,DBSYSTEMVALUES_FIREBIRD:()=>ME,DBSYSTEMVALUES_FIRSTSQL:()=>OE,DBSYSTEMVALUES_GEODE:()=>rD,DBSYSTEMVALUES_H2:()=>KE,DBSYSTEMVALUES_HANADB:()=>EE,DBSYSTEMVALUES_HBASE:()=>YE,DBSYSTEMVALUES_HIVE:()=>xE,DBSYSTEMVALUES_HSQLDB:()=>CE,DBSYSTEMVALUES_INFORMIX:()=>FE,DBSYSTEMVALUES_INGRES:()=>DE,DBSYSTEMVALUES_INSTANTDB:()=>IE,DBSYSTEMVALUES_INTERBASE:()=>LE,DBSYSTEMVALUES_MARIADB:()=>RE,DBSYSTEMVALUES_MAXDB:()=>TE,DBSYSTEMVALUES_MEMCACHED:()=>aD,DBSYSTEMVALUES_MONGODB:()=>XE,DBSYSTEMVALUES_MSSQL:()=>hE,DBSYSTEMVALUES_MYSQL:()=>gE,DBSYSTEMVALUES_NEO4J:()=>nD,DBSYSTEMVALUES_NETEZZA:()=>zE,DBSYSTEMVALUES_ORACLE:()=>_E,DBSYSTEMVALUES_OTHER_SQL:()=>mE,DBSYSTEMVALUES_PERVASIVE:()=>BE,DBSYSTEMVALUES_POINTBASE:()=>VE,DBSYSTEMVALUES_POSTGRESQL:()=>yE,DBSYSTEMVALUES_PROGRESS:()=>wE,DBSYSTEMVALUES_REDIS:()=>ZE,DBSYSTEMVALUES_REDSHIFT:()=>bE,DBSYSTEMVALUES_SQLITE:()=>HE,DBSYSTEMVALUES_SYBASE:()=>UE,DBSYSTEMVALUES_TERADATA:()=>WE,DBSYSTEMVALUES_VERTICA:()=>GE,DbCassandraConsistencyLevelValues:()=>AD,DbSystemValues:()=>sD,ERROR_TYPE_VALUE_OTHER:()=>fI,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>qD,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>KD,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>GD,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>$D,FAASINVOKEDPROVIDERVALUES_AWS:()=>eO,FAASINVOKEDPROVIDERVALUES_AZURE:()=>tO,FAASINVOKEDPROVIDERVALUES_GCP:()=>nO,FAASTRIGGERVALUES_DATASOURCE:()=>ID,FAASTRIGGERVALUES_HTTP:()=>LD,FAASTRIGGERVALUES_OTHER:()=>BD,FAASTRIGGERVALUES_PUBSUB:()=>RD,FAASTRIGGERVALUES_TIMER:()=>zD,FaasDocumentOperationValues:()=>JD,FaasInvokedProviderValues:()=>rO,FaasTriggerValues:()=>VD,HOSTARCHVALUES_AMD64:()=>jP,HOSTARCHVALUES_ARM32:()=>MP,HOSTARCHVALUES_ARM64:()=>NP,HOSTARCHVALUES_IA64:()=>PP,HOSTARCHVALUES_PPC32:()=>FP,HOSTARCHVALUES_PPC64:()=>IP,HOSTARCHVALUES_X86:()=>LP,HTTPFLAVORVALUES_HTTP_1_0:()=>wk,HTTPFLAVORVALUES_HTTP_1_1:()=>Tk,HTTPFLAVORVALUES_HTTP_2_0:()=>Ek,HTTPFLAVORVALUES_QUIC:()=>Ok,HTTPFLAVORVALUES_SPDY:()=>Dk,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>bI,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>xI,HTTP_REQUEST_METHOD_VALUE_GET:()=>SI,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>CI,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>wI,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>yI,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>TI,HTTP_REQUEST_METHOD_VALUE_POST:()=>EI,HTTP_REQUEST_METHOD_VALUE_PUT:()=>DI,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>OI,HostArchValues:()=>RP,HttpFlavorValues:()=>kk,JVM_MEMORY_TYPE_VALUE_HEAP:()=>RI,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>zI,JVM_THREAD_STATE_VALUE_BLOCKED:()=>HI,JVM_THREAD_STATE_VALUE_NEW:()=>UI,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>WI,JVM_THREAD_STATE_VALUE_TERMINATED:()=>GI,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>KI,JVM_THREAD_STATE_VALUE_WAITING:()=>qI,MESSAGETYPEVALUES_RECEIVED:()=>wA,MESSAGETYPEVALUES_SENT:()=>CA,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Mk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Nk,MESSAGINGOPERATIONVALUES_PROCESS:()=>Rk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Lk,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>PL,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>FL,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>IL,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>zL,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>RL,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>LL,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>BL,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>VL,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>HL,METRIC_JVM_CLASS_COUNT:()=>UL,METRIC_JVM_CLASS_LOADED:()=>WL,METRIC_JVM_CLASS_UNLOADED:()=>GL,METRIC_JVM_CPU_COUNT:()=>KL,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>qL,METRIC_JVM_CPU_TIME:()=>JL,METRIC_JVM_GC_DURATION:()=>YL,METRIC_JVM_MEMORY_COMMITTED:()=>XL,METRIC_JVM_MEMORY_LIMIT:()=>ZL,METRIC_JVM_MEMORY_USED:()=>QL,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>$L,METRIC_JVM_THREAD_COUNT:()=>eR,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>tR,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>nR,METRIC_KESTREL_CONNECTION_DURATION:()=>rR,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>iR,METRIC_KESTREL_QUEUED_REQUESTS:()=>aR,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>oR,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>sR,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>cR,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>lR,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>uR,MessageTypeValues:()=>TA,MessagingDestinationKindValues:()=>Pk,MessagingOperationValues:()=>zk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>ek,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>rk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>QO,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>uk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>tk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>nk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>ck,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>ZO,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>fk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>ik,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>ok,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>ak,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>sk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>mk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>lk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>$O,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>EO,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>DO,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>OO,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>wO,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>TO,NETTRANSPORTVALUES_INPROC:()=>gO,NETTRANSPORTVALUES_IP:()=>pO,NETTRANSPORTVALUES_IP_TCP:()=>dO,NETTRANSPORTVALUES_IP_UDP:()=>fO,NETTRANSPORTVALUES_OTHER:()=>_O,NETTRANSPORTVALUES_PIPE:()=>hO,NETTRANSPORTVALUES_UNIX:()=>mO,NETWORK_TRANSPORT_VALUE_PIPE:()=>tL,NETWORK_TRANSPORT_VALUE_QUIC:()=>nL,NETWORK_TRANSPORT_VALUE_TCP:()=>rL,NETWORK_TRANSPORT_VALUE_UDP:()=>iL,NETWORK_TRANSPORT_VALUE_UNIX:()=>aL,NETWORK_TYPE_VALUE_IPV4:()=>sL,NETWORK_TYPE_VALUE_IPV6:()=>cL,NetHostConnectionSubtypeValues:()=>vk,NetHostConnectionTypeValues:()=>kO,NetTransportValues:()=>vO,OSTYPEVALUES_AIX:()=>iF,OSTYPEVALUES_DARWIN:()=>QP,OSTYPEVALUES_DRAGONFLYBSD:()=>nF,OSTYPEVALUES_FREEBSD:()=>$P,OSTYPEVALUES_HPUX:()=>rF,OSTYPEVALUES_LINUX:()=>ZP,OSTYPEVALUES_NETBSD:()=>eF,OSTYPEVALUES_OPENBSD:()=>tF,OSTYPEVALUES_SOLARIS:()=>aF,OSTYPEVALUES_WINDOWS:()=>XP,OSTYPEVALUES_Z_OS:()=>oF,OTEL_STATUS_CODE_VALUE_ERROR:()=>fL,OTEL_STATUS_CODE_VALUE_OK:()=>pL,OsTypeValues:()=>sF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>pA,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>lA,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>iA,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>vA,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>sA,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>fA,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>gA,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>oA,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>cA,RPCGRPCSTATUSCODEVALUES_OK:()=>rA,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>mA,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>uA,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>dA,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>yA,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>_A,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>hA,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>aA,RpcGrpcStatusCodeValues:()=>bA,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>kw,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Vw,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Ew,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>Sw,SEMATTRS_AWS_DYNAMODB_COUNT:()=>zw,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Pw,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>Mw,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Hw,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>Aw,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>Cw,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>Ow,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Nw,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Dw,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>ww,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Tw,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Bw,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Iw,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Lw,SEMATTRS_AWS_DYNAMODB_SELECT:()=>jw,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>Fw,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>xw,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Rw,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>eC,SEMATTRS_CODE_FILEPATH:()=>iw,SEMATTRS_CODE_FUNCTION:()=>nw,SEMATTRS_CODE_LINENO:()=>aw,SEMATTRS_CODE_NAMESPACE:()=>rw,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>dC,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>gC,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>hC,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>pC,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>lC,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>uC,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>mC,SEMATTRS_DB_CASSANDRA_TABLE:()=>fC,SEMATTRS_DB_CONNECTION_STRING:()=>nC,SEMATTRS_DB_HBASE_NAMESPACE:()=>_C,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>iC,SEMATTRS_DB_MONGODB_COLLECTION:()=>yC,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>cC,SEMATTRS_DB_NAME:()=>aC,SEMATTRS_DB_OPERATION:()=>sC,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>vC,SEMATTRS_DB_SQL_TABLE:()=>bC,SEMATTRS_DB_STATEMENT:()=>oC,SEMATTRS_DB_SYSTEM:()=>tC,SEMATTRS_DB_USER:()=>rC,SEMATTRS_ENDUSER_ID:()=>ZC,SEMATTRS_ENDUSER_ROLE:()=>QC,SEMATTRS_ENDUSER_SCOPE:()=>$C,SEMATTRS_EXCEPTION_ESCAPED:()=>wC,SEMATTRS_EXCEPTION_MESSAGE:()=>SC,SEMATTRS_EXCEPTION_STACKTRACE:()=>CC,SEMATTRS_EXCEPTION_TYPE:()=>xC,SEMATTRS_FAAS_COLDSTART:()=>NC,SEMATTRS_FAAS_CRON:()=>MC,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>DC,SEMATTRS_FAAS_DOCUMENT_NAME:()=>AC,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>OC,SEMATTRS_FAAS_DOCUMENT_TIME:()=>kC,SEMATTRS_FAAS_EXECUTION:()=>EC,SEMATTRS_FAAS_INVOKED_NAME:()=>PC,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>FC,SEMATTRS_FAAS_INVOKED_REGION:()=>IC,SEMATTRS_FAAS_TIME:()=>jC,SEMATTRS_FAAS_TRIGGER:()=>TC,SEMATTRS_HTTP_CLIENT_IP:()=>bw,SEMATTRS_HTTP_FLAVOR:()=>fw,SEMATTRS_HTTP_HOST:()=>lw,SEMATTRS_HTTP_METHOD:()=>ow,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>mw,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>hw,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>gw,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>_w,SEMATTRS_HTTP_ROUTE:()=>yw,SEMATTRS_HTTP_SCHEME:()=>uw,SEMATTRS_HTTP_SERVER_NAME:()=>vw,SEMATTRS_HTTP_STATUS_CODE:()=>dw,SEMATTRS_HTTP_TARGET:()=>cw,SEMATTRS_HTTP_URL:()=>sw,SEMATTRS_HTTP_USER_AGENT:()=>pw,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>vT,SEMATTRS_MESSAGE_ID:()=>_T,SEMATTRS_MESSAGE_TYPE:()=>gT,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>yT,SEMATTRS_MESSAGING_CONSUMER_ID:()=>tT,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Zw,SEMATTRS_MESSAGING_DESTINATION:()=>Ww,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Gw,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>aT,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>iT,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>rT,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>oT,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>sT,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Xw,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>$w,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Qw,SEMATTRS_MESSAGING_OPERATION:()=>eT,SEMATTRS_MESSAGING_PROTOCOL:()=>qw,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Jw,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>nT,SEMATTRS_MESSAGING_SYSTEM:()=>Uw,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Kw,SEMATTRS_MESSAGING_URL:()=>Yw,SEMATTRS_NET_HOST_CARRIER_ICC:()=>YC,SEMATTRS_NET_HOST_CARRIER_MCC:()=>qC,SEMATTRS_NET_HOST_CARRIER_MNC:()=>JC,SEMATTRS_NET_HOST_CARRIER_NAME:()=>KC,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>GC,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>WC,SEMATTRS_NET_HOST_IP:()=>VC,SEMATTRS_NET_HOST_NAME:()=>UC,SEMATTRS_NET_HOST_PORT:()=>HC,SEMATTRS_NET_PEER_IP:()=>RC,SEMATTRS_NET_PEER_NAME:()=>BC,SEMATTRS_NET_PEER_PORT:()=>zC,SEMATTRS_NET_TRANSPORT:()=>LC,SEMATTRS_PEER_SERVICE:()=>XC,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>dT,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>mT,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>hT,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>pT,SEMATTRS_RPC_JSONRPC_VERSION:()=>fT,SEMATTRS_RPC_METHOD:()=>uT,SEMATTRS_RPC_SERVICE:()=>lT,SEMATTRS_RPC_SYSTEM:()=>cT,SEMATTRS_THREAD_ID:()=>ew,SEMATTRS_THREAD_NAME:()=>tw,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>sM,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>oM,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>cM,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>lM,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>uM,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>dM,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>fM,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>mM,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>pM,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>gM,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>hM,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>nM,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>iM,SEMRESATTRS_CLOUD_PLATFORM:()=>aM,SEMRESATTRS_CLOUD_PROVIDER:()=>tM,SEMRESATTRS_CLOUD_REGION:()=>rM,SEMRESATTRS_CONTAINER_ID:()=>vM,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>bM,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>xM,SEMRESATTRS_CONTAINER_NAME:()=>_M,SEMRESATTRS_CONTAINER_RUNTIME:()=>yM,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>SM,SEMRESATTRS_DEVICE_ID:()=>CM,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>wM,SEMRESATTRS_DEVICE_MODEL_NAME:()=>TM,SEMRESATTRS_FAAS_ID:()=>DM,SEMRESATTRS_FAAS_INSTANCE:()=>kM,SEMRESATTRS_FAAS_MAX_MEMORY:()=>AM,SEMRESATTRS_FAAS_NAME:()=>EM,SEMRESATTRS_FAAS_VERSION:()=>OM,SEMRESATTRS_HOST_ARCH:()=>PM,SEMRESATTRS_HOST_ID:()=>jM,SEMRESATTRS_HOST_IMAGE_ID:()=>IM,SEMRESATTRS_HOST_IMAGE_NAME:()=>FM,SEMRESATTRS_HOST_IMAGE_VERSION:()=>LM,SEMRESATTRS_HOST_NAME:()=>MM,SEMRESATTRS_HOST_TYPE:()=>NM,SEMRESATTRS_K8S_CLUSTER_NAME:()=>RM,SEMRESATTRS_K8S_CONTAINER_NAME:()=>WM,SEMRESATTRS_K8S_CRONJOB_NAME:()=>nN,SEMRESATTRS_K8S_CRONJOB_UID:()=>tN,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>QM,SEMRESATTRS_K8S_DAEMONSET_UID:()=>ZM,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>JM,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>qM,SEMRESATTRS_K8S_JOB_NAME:()=>eN,SEMRESATTRS_K8S_JOB_UID:()=>$M,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>VM,SEMRESATTRS_K8S_NODE_NAME:()=>zM,SEMRESATTRS_K8S_NODE_UID:()=>BM,SEMRESATTRS_K8S_POD_NAME:()=>UM,SEMRESATTRS_K8S_POD_UID:()=>HM,SEMRESATTRS_K8S_REPLICASET_NAME:()=>KM,SEMRESATTRS_K8S_REPLICASET_UID:()=>GM,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>XM,SEMRESATTRS_K8S_STATEFULSET_UID:()=>YM,SEMRESATTRS_OS_DESCRIPTION:()=>iN,SEMRESATTRS_OS_NAME:()=>aN,SEMRESATTRS_OS_TYPE:()=>rN,SEMRESATTRS_OS_VERSION:()=>oN,SEMRESATTRS_PROCESS_COMMAND:()=>uN,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>fN,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>dN,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>cN,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>lN,SEMRESATTRS_PROCESS_OWNER:()=>pN,SEMRESATTRS_PROCESS_PID:()=>sN,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>gN,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>mN,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>hN,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>yN,SEMRESATTRS_SERVICE_NAME:()=>_N,SEMRESATTRS_SERVICE_NAMESPACE:()=>vN,SEMRESATTRS_SERVICE_VERSION:()=>bN,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>wN,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>SN,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>xN,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>CN,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>DN,SEMRESATTRS_WEBENGINE_NAME:()=>TN,SEMRESATTRS_WEBENGINE_VERSION:()=>EN,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>bL,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>xL,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>SL,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>wL,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>TL,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>EL,SemanticAttributes:()=>bT,SemanticResourceAttributes:()=>ON,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>vF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>yF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>bF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>xF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>SF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>CF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>wF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>TF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>EF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>DF,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>LF,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>RF,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>zF,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>BF,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>VF,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>HF,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>UF,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>WF,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>GF,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>KF,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>qF,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>JF,TelemetrySdkLanguageValues:()=>OF}),pR=n((()=>{DA(),AF(),NL(),dR()})),mR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SDK_INFO=void 0;let n=jb(),r=(pR(),e(fR));t.SDK_INFO={[r.SEMRESATTRS_TELEMETRY_SDK_NAME]:`opentelemetry`,[r.SEMRESATTRS_PROCESS_RUNTIME_NAME]:`node`,[r.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:r.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[r.SEMRESATTRS_TELEMETRY_SDK_VERSION]:n.VERSION}})),hR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=void 0;function t(e){e.unref()}e.unrefTimer=t})),gR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=e.SDK_INFO=e.otperformance=e.RandomIdGenerator=e.hexToBase64=e._globalThis=e.getEnv=e.getEnvWithoutDefaults=void 0;var t=Tb();Object.defineProperty(e,`getEnvWithoutDefaults`,{enumerable:!0,get:function(){return t.getEnvWithoutDefaults}}),Object.defineProperty(e,`getEnv`,{enumerable:!0,get:function(){return t.getEnv}});var n=Eb();Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return n._globalThis}});var r=Ob();Object.defineProperty(e,`hexToBase64`,{enumerable:!0,get:function(){return r.hexToBase64}});var i=kb();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return i.RandomIdGenerator}});var a=Ab();Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return a.otperformance}});var o=mR();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return o.SDK_INFO}});var s=hR();Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return s.unrefTimer}})})),_R=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=e.otperformance=e.hexToBase64=e.getEnvWithoutDefaults=e.getEnv=e._globalThis=e.SDK_INFO=e.RandomIdGenerator=void 0;var t=gR();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return t.RandomIdGenerator}}),Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return t.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return t._globalThis}}),Object.defineProperty(e,`getEnv`,{enumerable:!0,get:function(){return t.getEnv}}),Object.defineProperty(e,`getEnvWithoutDefaults`,{enumerable:!0,get:function(){return t.getEnvWithoutDefaults}}),Object.defineProperty(e,`hexToBase64`,{enumerable:!0,get:function(){return t.hexToBase64}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return t.otperformance}}),Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return t.unrefTimer}})})),vR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.addHrTimes=e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=e.getTimeOrigin=e.millisToHrTime=void 0;let t=_R(),n=10**6,r=10**9;function i(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*n)]}e.millisToHrTime=i;function a(){let e=t.otperformance.timeOrigin;if(typeof e!=`number`){let n=t.otperformance;e=n.timing&&n.timing.fetchStart}return e}e.getTimeOrigin=a;function o(e){return h(i(a()),i(typeof e==`number`?e:t.otperformance.now()))}e.hrTime=o;function s(e){if(p(e))return e;if(typeof e==`number`)return e<a()?o(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError(`Invalid input type`)}e.timeInputToHrTime=s;function c(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(--n,i+=r),[n,i]}e.hrTimeDuration=c;function l(e){let t=`${`0`.repeat(9)}${e[1]}Z`,n=t.substring(t.length-9-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,n)}e.hrTimeToTimeStamp=l;function u(e){return e[0]*r+e[1]}e.hrTimeToNanoseconds=u;function d(e){return e[0]*1e3+e[1]/1e6}e.hrTimeToMilliseconds=d;function f(e){return e[0]*1e6+e[1]/1e3}e.hrTimeToMicroseconds=f;function p(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}e.isTimeInputHrTime=p;function m(e){return p(e)||typeof e==`number`||e instanceof Date}e.isTimeInput=m;function h(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=r&&(n[1]-=r,n[0]+=1),n}e.addHrTimes=h})),yR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExportResultCode=void 0,(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(e.ExportResultCode||={})})),bR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CompositePropagator=void 0;let n=($(),e(Q));t.CompositePropagator=class{constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields==`function`?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,r){for(let i of this._propagators)try{i.inject(e,t,r)}catch(e){n.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,t,r){return this._propagators.reduce((e,i)=>{try{return i.extract(e,t,r)}catch(e){n.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}})),xR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateValue=e.validateKey=void 0;let t=`[_0-9a-z-*/]`,n=`[a-z]${t}{0,255}`,r=`[a-z0-9]${t}{0,240}@[a-z]${t}{0,13}`,i=RegExp(`^(?:${n}|${r})$`),a=/^[ -~]{0,255}[!-~]$/,o=/,|=/;function s(e){return i.test(e)}e.validateKey=s;function c(e){return a.test(e)&&!o.test(e)}e.validateValue=c})),SR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TraceState=void 0;let t=xR();e.TraceState=class e{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+`=`+this.get(t)),e),[]).join(`,`)}_parse(e){e.length>512||(this._internalState=e.split(`,`).reverse().reduce((e,n)=>{let r=n.trim(),i=r.indexOf(`=`);if(i!==-1){let a=r.slice(0,i),o=r.slice(i+1,n.length);(0,t.validateKey)(a)&&(0,t.validateValue)(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}}})),CR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CTraceContextPropagator=t.parseTraceParent=t.TRACE_STATE_HEADER=t.TRACE_PARENT_HEADER=void 0;let n=($(),e(Q)),r=hb(),i=SR();t.TRACE_PARENT_HEADER=`traceparent`,t.TRACE_STATE_HEADER=`tracestate`;let a=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function o(e){let t=a.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}t.parseTraceParent=o,t.W3CTraceContextPropagator=class{inject(e,i,a){let o=n.trace.getSpanContext(e);if(!o||(0,r.isTracingSuppressed)(e)||!(0,n.isSpanContextValid)(o))return;let s=`00-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||n.TraceFlags.NONE).toString(16)}`;a.set(i,t.TRACE_PARENT_HEADER,s),o.traceState&&a.set(i,t.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,a){let s=a.get(r,t.TRACE_PARENT_HEADER);if(!s)return e;let c=Array.isArray(s)?s[0]:s;if(typeof c!=`string`)return e;let l=o(c);if(!l)return e;l.isRemote=!0;let u=a.get(r,t.TRACE_STATE_HEADER);if(u){let e=Array.isArray(u)?u.join(`,`):u;l.traceState=new i.TraceState(typeof e==`string`?e:void 0)}return n.trace.setSpanContext(e,l)}fields(){return[t.TRACE_PARENT_HEADER,t.TRACE_STATE_HEADER]}}})),wR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRPCMetadata=t.deleteRPCMetadata=t.setRPCMetadata=t.RPCType=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key RPC_METADATA`);(function(e){e.HTTP=`http`})(t.RPCType||={});function r(e,t){return e.setValue(n,t)}t.setRPCMetadata=r;function i(e){return e.deleteValue(n)}t.deleteRPCMetadata=i;function a(e){return e.getValue(n)}t.getRPCMetadata=a})),TR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.AlwaysOffSampler=void 0;let n=($(),e(Q));t.AlwaysOffSampler=class{shouldSample(){return{decision:n.SamplingDecision.NOT_RECORD}}toString(){return`AlwaysOffSampler`}}})),ER=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.AlwaysOnSampler=void 0;let n=($(),e(Q));t.AlwaysOnSampler=class{shouldSample(){return{decision:n.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}}})),DR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ParentBasedSampler=void 0;let n=($(),e(Q)),r=Sb(),i=TR(),a=ER();t.ParentBasedSampler=class{constructor(e){this._root=e.root,this._root||=((0,r.globalErrorHandler)(Error(`ParentBasedSampler must have a root sampler configured`)),new a.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new a.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new i.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new a.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new i.AlwaysOffSampler}shouldSample(e,t,r,i,a,o){let s=n.trace.getSpanContext(e);return!s||!(0,n.isSpanContextValid)(s)?this._root.shouldSample(e,t,r,i,a,o):s.isRemote?s.traceFlags&n.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,i,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,i,a,o):s.traceFlags&n.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,i,a,o):this._localParentNotSampled.shouldSample(e,t,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),OR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.TraceIdRatioBasedSampler=void 0;let n=($(),e(Q));t.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,n.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?n.SamplingDecision.RECORD_AND_SAMPLED:n.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=n*8,i=parseInt(e.slice(r,r+8),16);t=(t^i)>>>0}return t}}})),kR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPlainObject=void 0;let t=Function.prototype.toString,n=t.call(Object),r=c(Object.getPrototypeOf,Object),i=Object.prototype,a=i.hasOwnProperty,o=Symbol?Symbol.toStringTag:void 0,s=i.toString;function c(e,t){return function(n){return e(t(n))}}function l(e){if(!u(e)||d(e)!==`[object Object]`)return!1;let i=r(e);if(i===null)return!0;let o=a.call(i,`constructor`)&&i.constructor;return typeof o==`function`&&o instanceof o&&t.call(o)===n}e.isPlainObject=l;function u(e){return typeof e==`object`&&!!e}function d(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:o&&o in Object(e)?f(e):p(e)}function f(e){let t=a.call(e,o),n=e[o],r=!1;try{e[o]=void 0,r=!0}catch{}let i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}function p(e){return s.call(e)}})),AR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;let t=kR();function n(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=i(t,e.shift(),0,n);return t}e.merge=n;function r(e){return o(e)?e.slice():e}function i(e,t,n=0,d){let f;if(!(n>20)){if(n++,l(e)||l(t)||s(t))f=r(t);else if(o(e)){if(f=e.slice(),o(t))for(let e=0,n=t.length;e<n;e++)f.push(r(t[e]));else if(c(t)){let e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){let i=e[n];f[i]=r(t[i])}}}else if(c(e))if(c(t)){if(!u(e,t))return t;f=Object.assign({},e);let r=Object.keys(t);for(let o=0,s=r.length;o<s;o++){let s=r[o],u=t[s];if(l(u))u===void 0?delete f[s]:f[s]=u;else{let r=f[s],o=u;if(a(e,s,d)||a(t,s,d))delete f[s];else{if(c(r)&&c(o)){let n=d.get(r)||[],i=d.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),d.set(r,n),d.set(o,i)}f[s]=i(f[s],u,n,d)}}}}else f=t;return f}}function a(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function o(e){return Array.isArray(e)}function s(e){return typeof e==`function`}function c(e){return!l(e)&&!o(e)&&!s(e)&&typeof e==`object`}function l(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function u(e,n){return!(!(0,t.isPlainObject)(e)||!(0,t.isPlainObject)(n))}})),jR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callWithTimeout=e.TimeoutError=void 0;var t=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};e.TimeoutError=t;function n(e,n){let r,i=new Promise(function(e,i){r=setTimeout(function(){i(new t(`Operation timed out.`))},n)});return Promise.race([e,i]).then(e=>(clearTimeout(r),e),e=>{throw clearTimeout(r),e})}e.callWithTimeout=n})),MR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isUrlIgnored=e.urlMatches=void 0;function t(e,t){return typeof t==`string`?e===t:!!e.match(t)}e.urlMatches=t;function n(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}e.isUrlIgnored=n})),NR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isWrapped=void 0;function t(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}e.isWrapped=t})),PR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=void 0,e.Deferred=class{constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),FR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BindOnceFuture=void 0;let t=PR();e.BindOnceFuture=class{constructor(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new t.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}})),IR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t._export=void 0;let n=($(),e(Q)),r=hb();function i(e,t){return new Promise(i=>{n.context.with((0,r.suppressTracing)(n.context.active()),()=>{e.export(t,e=>{i(e)})})})}t._export=i})),LR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=e.DEFAULT_ATTRIBUTE_COUNT_LIMIT=e.TraceState=e.unsuppressTracing=e.suppressTracing=e.isTracingSuppressed=e.TraceIdRatioBasedSampler=e.ParentBasedSampler=e.AlwaysOnSampler=e.AlwaysOffSampler=e.setRPCMetadata=e.getRPCMetadata=e.deleteRPCMetadata=e.RPCType=e.parseTraceParent=e.W3CTraceContextPropagator=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=e.CompositePropagator=e.unrefTimer=e.otperformance=e.hexToBase64=e.getEnvWithoutDefaults=e.getEnv=e._globalThis=e.SDK_INFO=e.RandomIdGenerator=e.baggageUtils=e.ExportResultCode=e.hexToBinary=e.timeInputToHrTime=e.millisToHrTime=e.isTimeInputHrTime=e.isTimeInput=e.hrTimeToTimeStamp=e.hrTimeToNanoseconds=e.hrTimeToMilliseconds=e.hrTimeToMicroseconds=e.hrTimeDuration=e.hrTime=e.getTimeOrigin=e.addHrTimes=e.loggingErrorHandler=e.setGlobalErrorHandler=e.globalErrorHandler=e.sanitizeAttributes=e.isAttributeValue=e.isAttributeKey=e.AnchoredClock=e.W3CBaggagePropagator=void 0,e.internal=e.VERSION=e.BindOnceFuture=e.isWrapped=e.urlMatches=e.isUrlIgnored=e.callWithTimeout=e.TimeoutError=e.TracesSamplerValues=e.merge=e.parseEnvironment=e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=e.DEFAULT_ENVIRONMENT=void 0;var t=vb();Object.defineProperty(e,`W3CBaggagePropagator`,{enumerable:!0,get:function(){return t.W3CBaggagePropagator}});var n=yb();Object.defineProperty(e,`AnchoredClock`,{enumerable:!0,get:function(){return n.AnchoredClock}});var r=bb();Object.defineProperty(e,`isAttributeKey`,{enumerable:!0,get:function(){return r.isAttributeKey}}),Object.defineProperty(e,`isAttributeValue`,{enumerable:!0,get:function(){return r.isAttributeValue}}),Object.defineProperty(e,`sanitizeAttributes`,{enumerable:!0,get:function(){return r.sanitizeAttributes}});var i=Sb();Object.defineProperty(e,`globalErrorHandler`,{enumerable:!0,get:function(){return i.globalErrorHandler}}),Object.defineProperty(e,`setGlobalErrorHandler`,{enumerable:!0,get:function(){return i.setGlobalErrorHandler}});var a=xb();Object.defineProperty(e,`loggingErrorHandler`,{enumerable:!0,get:function(){return a.loggingErrorHandler}});var o=vR();Object.defineProperty(e,`addHrTimes`,{enumerable:!0,get:function(){return o.addHrTimes}}),Object.defineProperty(e,`getTimeOrigin`,{enumerable:!0,get:function(){return o.getTimeOrigin}}),Object.defineProperty(e,`hrTime`,{enumerable:!0,get:function(){return o.hrTime}}),Object.defineProperty(e,`hrTimeDuration`,{enumerable:!0,get:function(){return o.hrTimeDuration}}),Object.defineProperty(e,`hrTimeToMicroseconds`,{enumerable:!0,get:function(){return o.hrTimeToMicroseconds}}),Object.defineProperty(e,`hrTimeToMilliseconds`,{enumerable:!0,get:function(){return o.hrTimeToMilliseconds}}),Object.defineProperty(e,`hrTimeToNanoseconds`,{enumerable:!0,get:function(){return o.hrTimeToNanoseconds}}),Object.defineProperty(e,`hrTimeToTimeStamp`,{enumerable:!0,get:function(){return o.hrTimeToTimeStamp}}),Object.defineProperty(e,`isTimeInput`,{enumerable:!0,get:function(){return o.isTimeInput}}),Object.defineProperty(e,`isTimeInputHrTime`,{enumerable:!0,get:function(){return o.isTimeInputHrTime}}),Object.defineProperty(e,`millisToHrTime`,{enumerable:!0,get:function(){return o.millisToHrTime}}),Object.defineProperty(e,`timeInputToHrTime`,{enumerable:!0,get:function(){return o.timeInputToHrTime}});var s=Db();Object.defineProperty(e,`hexToBinary`,{enumerable:!0,get:function(){return s.hexToBinary}});var c=yR();Object.defineProperty(e,`ExportResultCode`,{enumerable:!0,get:function(){return c.ExportResultCode}});let l=_b();e.baggageUtils={getKeyPairs:l.getKeyPairs,serializeKeyPairs:l.serializeKeyPairs,parseKeyPairsIntoRecord:l.parseKeyPairsIntoRecord,parsePairKeyValue:l.parsePairKeyValue};var u=_R();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return u.RandomIdGenerator}}),Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return u.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return u._globalThis}}),Object.defineProperty(e,`getEnv`,{enumerable:!0,get:function(){return u.getEnv}}),Object.defineProperty(e,`getEnvWithoutDefaults`,{enumerable:!0,get:function(){return u.getEnvWithoutDefaults}}),Object.defineProperty(e,`hexToBase64`,{enumerable:!0,get:function(){return u.hexToBase64}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return u.otperformance}}),Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return u.unrefTimer}});var d=bR();Object.defineProperty(e,`CompositePropagator`,{enumerable:!0,get:function(){return d.CompositePropagator}});var f=CR();Object.defineProperty(e,`TRACE_PARENT_HEADER`,{enumerable:!0,get:function(){return f.TRACE_PARENT_HEADER}}),Object.defineProperty(e,`TRACE_STATE_HEADER`,{enumerable:!0,get:function(){return f.TRACE_STATE_HEADER}}),Object.defineProperty(e,`W3CTraceContextPropagator`,{enumerable:!0,get:function(){return f.W3CTraceContextPropagator}}),Object.defineProperty(e,`parseTraceParent`,{enumerable:!0,get:function(){return f.parseTraceParent}});var p=wR();Object.defineProperty(e,`RPCType`,{enumerable:!0,get:function(){return p.RPCType}}),Object.defineProperty(e,`deleteRPCMetadata`,{enumerable:!0,get:function(){return p.deleteRPCMetadata}}),Object.defineProperty(e,`getRPCMetadata`,{enumerable:!0,get:function(){return p.getRPCMetadata}}),Object.defineProperty(e,`setRPCMetadata`,{enumerable:!0,get:function(){return p.setRPCMetadata}});var m=TR();Object.defineProperty(e,`AlwaysOffSampler`,{enumerable:!0,get:function(){return m.AlwaysOffSampler}});var h=ER();Object.defineProperty(e,`AlwaysOnSampler`,{enumerable:!0,get:function(){return h.AlwaysOnSampler}});var g=DR();Object.defineProperty(e,`ParentBasedSampler`,{enumerable:!0,get:function(){return g.ParentBasedSampler}});var _=OR();Object.defineProperty(e,`TraceIdRatioBasedSampler`,{enumerable:!0,get:function(){return _.TraceIdRatioBasedSampler}});var v=hb();Object.defineProperty(e,`isTracingSuppressed`,{enumerable:!0,get:function(){return v.isTracingSuppressed}}),Object.defineProperty(e,`suppressTracing`,{enumerable:!0,get:function(){return v.suppressTracing}}),Object.defineProperty(e,`unsuppressTracing`,{enumerable:!0,get:function(){return v.unsuppressTracing}});var y=SR();Object.defineProperty(e,`TraceState`,{enumerable:!0,get:function(){return y.TraceState}});var b=wb();Object.defineProperty(e,`DEFAULT_ATTRIBUTE_COUNT_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_ATTRIBUTE_COUNT_LIMIT}}),Object.defineProperty(e,`DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}}),Object.defineProperty(e,`DEFAULT_ENVIRONMENT`,{enumerable:!0,get:function(){return b.DEFAULT_ENVIRONMENT}}),Object.defineProperty(e,`DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}}),Object.defineProperty(e,`DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}),Object.defineProperty(e,`parseEnvironment`,{enumerable:!0,get:function(){return b.parseEnvironment}});var x=AR();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return x.merge}});var S=Cb();Object.defineProperty(e,`TracesSamplerValues`,{enumerable:!0,get:function(){return S.TracesSamplerValues}});var C=jR();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return C.TimeoutError}}),Object.defineProperty(e,`callWithTimeout`,{enumerable:!0,get:function(){return C.callWithTimeout}});var w=MR();Object.defineProperty(e,`isUrlIgnored`,{enumerable:!0,get:function(){return w.isUrlIgnored}}),Object.defineProperty(e,`urlMatches`,{enumerable:!0,get:function(){return w.urlMatches}});var T=NR();Object.defineProperty(e,`isWrapped`,{enumerable:!0,get:function(){return T.isWrapped}});var E=FR();Object.defineProperty(e,`BindOnceFuture`,{enumerable:!0,get:function(){return E.BindOnceFuture}});var D=jb();Object.defineProperty(e,`VERSION`,{enumerable:!0,get:function(){return D.VERSION}}),e.internal={_export:IR()._export}})),RR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.B3_DEBUG_FLAG_KEY=void 0,t.B3_DEBUG_FLAG_KEY=(0,($(),e(Q)).createContextKey)(`OpenTelemetry Context Key B3 Debug Flag`)})),zR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.X_B3_FLAGS=e.X_B3_PARENT_SPAN_ID=e.X_B3_SAMPLED=e.X_B3_SPAN_ID=e.X_B3_TRACE_ID=e.B3_CONTEXT_HEADER=void 0,e.B3_CONTEXT_HEADER=`b3`,e.X_B3_TRACE_ID=`x-b3-traceid`,e.X_B3_SPAN_ID=`x-b3-spanid`,e.X_B3_SAMPLED=`x-b3-sampled`,e.X_B3_PARENT_SPAN_ID=`x-b3-parentspanid`,e.X_B3_FLAGS=`x-b3-flags`})),BR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.B3MultiPropagator=void 0;let n=($(),e(Q)),r=LR(),i=RR(),a=zR(),o=new Set([!0,`true`,`True`,`1`,1]),s=new Set([!1,`false`,`False`,`0`,0]);function c(e){return e===n.TraceFlags.SAMPLED||e===n.TraceFlags.NONE}function l(e){return Array.isArray(e)?e[0]:e}function u(e,t,n){return l(t.get(e,n))}function d(e,t){let n=u(e,t,a.X_B3_TRACE_ID);return typeof n==`string`?n.padStart(32,`0`):``}function f(e,t){let n=u(e,t,a.X_B3_SPAN_ID);return typeof n==`string`?n:``}function p(e,t){return u(e,t,a.X_B3_FLAGS)===`1`?`1`:void 0}function m(e,t){let r=u(e,t,a.X_B3_SAMPLED);if(p(e,t)===`1`||o.has(r))return n.TraceFlags.SAMPLED;if(r===void 0||s.has(r))return n.TraceFlags.NONE}t.B3MultiPropagator=class{inject(e,t,o){let s=n.trace.getSpanContext(e);if(!s||!(0,n.isSpanContextValid)(s)||(0,r.isTracingSuppressed)(e))return;let c=e.getValue(i.B3_DEBUG_FLAG_KEY);o.set(t,a.X_B3_TRACE_ID,s.traceId),o.set(t,a.X_B3_SPAN_ID,s.spanId),c===`1`?o.set(t,a.X_B3_FLAGS,c):s.traceFlags!==void 0&&o.set(t,a.X_B3_SAMPLED,(n.TraceFlags.SAMPLED&s.traceFlags)===n.TraceFlags.SAMPLED?`1`:`0`)}extract(e,t,r){let a=d(t,r),o=f(t,r),s=m(t,r),l=p(t,r);return(0,n.isValidTraceId)(a)&&(0,n.isValidSpanId)(o)&&c(s)?(e=e.setValue(i.B3_DEBUG_FLAG_KEY,l),n.trace.setSpanContext(e,{traceId:a,spanId:o,isRemote:!0,traceFlags:s})):e}fields(){return[a.X_B3_TRACE_ID,a.X_B3_SPAN_ID,a.X_B3_FLAGS,a.X_B3_SAMPLED,a.X_B3_PARENT_SPAN_ID]}}})),VR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.B3SinglePropagator=void 0;let n=($(),e(Q)),r=LR(),i=RR(),a=zR(),o=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,s=`0`.repeat(16),c=new Set([`d`,`1`]);function l(e){return e.length===32?e:`${s}${e}`}function u(e){return e&&c.has(e)?n.TraceFlags.SAMPLED:n.TraceFlags.NONE}t.B3SinglePropagator=class{inject(e,t,o){let s=n.trace.getSpanContext(e);if(!s||!(0,n.isSpanContextValid)(s)||(0,r.isTracingSuppressed)(e))return;let c=e.getValue(i.B3_DEBUG_FLAG_KEY)||s.traceFlags&1,l=`${s.traceId}-${s.spanId}-${c}`;o.set(t,a.B3_CONTEXT_HEADER,l)}extract(e,t,r){let s=r.get(t,a.B3_CONTEXT_HEADER),c=Array.isArray(s)?s[0]:s;if(typeof c!=`string`)return e;let d=c.match(o);if(!d)return e;let[,f,p,m]=d,h=l(f);if(!(0,n.isValidTraceId)(h)||!(0,n.isValidSpanId)(p))return e;let g=u(m);return m===`d`&&(e=e.setValue(i.B3_DEBUG_FLAG_KEY,m)),n.trace.setSpanContext(e,{traceId:h,spanId:p,isRemote:!0,traceFlags:g})}fields(){return[a.B3_CONTEXT_HEADER]}}})),HR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.B3InjectEncoding=void 0,(function(e){e[e.SINGLE_HEADER=0]=`SINGLE_HEADER`,e[e.MULTI_HEADER=1]=`MULTI_HEADER`})(e.B3InjectEncoding||={})})),UR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.B3Propagator=void 0;let t=LR(),n=BR(),r=VR(),i=zR(),a=HR();e.B3Propagator=class{constructor(e={}){this._b3MultiPropagator=new n.B3MultiPropagator,this._b3SinglePropagator=new r.B3SinglePropagator,e.injectEncoding===a.B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}inject(e,n,r){(0,t.isTracingSuppressed)(e)||this._inject(e,n,r)}extract(e,t,n){let r=n.get(t,i.B3_CONTEXT_HEADER);return(Array.isArray(r)?r[0]:r)?this._b3SinglePropagator.extract(e,t,n):this._b3MultiPropagator.extract(e,t,n)}fields(){return this._fields}}})),WR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.B3InjectEncoding=e.X_B3_TRACE_ID=e.X_B3_SPAN_ID=e.X_B3_SAMPLED=e.X_B3_PARENT_SPAN_ID=e.X_B3_FLAGS=e.B3_CONTEXT_HEADER=e.B3Propagator=void 0;var t=UR();Object.defineProperty(e,`B3Propagator`,{enumerable:!0,get:function(){return t.B3Propagator}});var n=zR();Object.defineProperty(e,`B3_CONTEXT_HEADER`,{enumerable:!0,get:function(){return n.B3_CONTEXT_HEADER}}),Object.defineProperty(e,`X_B3_FLAGS`,{enumerable:!0,get:function(){return n.X_B3_FLAGS}}),Object.defineProperty(e,`X_B3_PARENT_SPAN_ID`,{enumerable:!0,get:function(){return n.X_B3_PARENT_SPAN_ID}}),Object.defineProperty(e,`X_B3_SAMPLED`,{enumerable:!0,get:function(){return n.X_B3_SAMPLED}}),Object.defineProperty(e,`X_B3_SPAN_ID`,{enumerable:!0,get:function(){return n.X_B3_SPAN_ID}}),Object.defineProperty(e,`X_B3_TRACE_ID`,{enumerable:!0,get:function(){return n.X_B3_TRACE_ID}});var r=HR();Object.defineProperty(e,`B3InjectEncoding`,{enumerable:!0,get:function(){return r.B3InjectEncoding}})})),GR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionEventName=void 0,e.ExceptionEventName=`exception`})),KR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Span=void 0;let n=($(),e(Q)),r=LR(),i=(pR(),e(fR)),a=GR();t.Span=class{constructor(e,t,i,a,o,s,c=[],l,u,d){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:n.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=s,this.kind=o,this.links=c;let f=Date.now();this._performanceStartTime=r.otperformance.now(),this._performanceOffset=f-(this._performanceStartTime+(0,r.getTimeOrigin)()),this._startTimeProvided=l!=null,this.startTime=this._getTime(l??f),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,d!=null&&this.setAttributes(d),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}spanContext(){return this._spanContext}setAttribute(e,t){return t==null||this._isSpanEnded()?this:e.length===0?(n.diag.warn(`Invalid attribute key: ${e}`),this):(0,r.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(n.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return n.diag.warn(`No events allowed.`),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&n.diag.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),(0,r.isTimeInput)(t)&&((0,r.isTimeInput)(i)||(i=t),t=void 0);let a=(0,r.sanitizeAttributes)(t);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status=Object.assign({},e),this.status.message!=null&&typeof e.message!=`string`&&(n.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){if(this._isSpanEnded()){n.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,r.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(n.diag.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&&n.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=r.otperformance.now())return(0,r.hrTime)(e+this._performanceOffset);if(typeof e==`number`)return(0,r.millisToHrTime)(e);if(e instanceof Date)return(0,r.millisToHrTime)(e.getTime());if((0,r.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,r.millisToHrTime)(Date.now());let t=r.otperformance.now()-this._performanceStartTime;return(0,r.addHrTimes)(this.startTime,(0,r.millisToHrTime)(t))}isRecording(){return this._ended===!1}recordException(e,t){let r={};typeof e==`string`?r[i.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?r[i.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(r[i.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(r[i.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(r[i.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),r[i.SEMATTRS_EXCEPTION_TYPE]||r[i.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(a.ExceptionEventName,r,t):n.diag.warn(`Failed to record an exception ${e}`)}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(){return this._ended&&n.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(n.diag.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}}})),qR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SamplingDecision=void 0,(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(e.SamplingDecision||={})})),JR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AlwaysOffSampler=void 0;let t=qR();e.AlwaysOffSampler=class{shouldSample(){return{decision:t.SamplingDecision.NOT_RECORD}}toString(){return`AlwaysOffSampler`}}})),YR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AlwaysOnSampler=void 0;let t=qR();e.AlwaysOnSampler=class{shouldSample(){return{decision:t.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}}})),XR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ParentBasedSampler=void 0;let n=($(),e(Q)),r=LR(),i=JR(),a=YR();t.ParentBasedSampler=class{constructor(e){this._root=e.root,this._root||=((0,r.globalErrorHandler)(Error(`ParentBasedSampler must have a root sampler configured`)),new a.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new a.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new i.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new a.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new i.AlwaysOffSampler}shouldSample(e,t,r,i,a,o){let s=n.trace.getSpanContext(e);return!s||!(0,n.isSpanContextValid)(s)?this._root.shouldSample(e,t,r,i,a,o):s.isRemote?s.traceFlags&n.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,i,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,i,a,o):s.traceFlags&n.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,i,a,o):this._localParentNotSampled.shouldSample(e,t,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),ZR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.TraceIdRatioBasedSampler=void 0;let n=($(),e(Q)),r=qR();t.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,n.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?r.SamplingDecision.RECORD_AND_SAMPLED:r.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=n*8,i=parseInt(e.slice(r,r+8),16);t=(t^i)>>>0}return t}}})),QR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.buildSamplerFromEnv=t.loadDefaultConfig=void 0;let n=($(),e(Q)),r=LR(),i=JR(),a=YR(),o=XR(),s=ZR(),c=r.TracesSamplerValues.AlwaysOn;function l(){let e=(0,r.getEnv)();return{sampler:u(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}t.loadDefaultConfig=l;function u(e=(0,r.getEnv)()){switch(e.OTEL_TRACES_SAMPLER){case r.TracesSamplerValues.AlwaysOn:return new a.AlwaysOnSampler;case r.TracesSamplerValues.AlwaysOff:return new i.AlwaysOffSampler;case r.TracesSamplerValues.ParentBasedAlwaysOn:return new o.ParentBasedSampler({root:new a.AlwaysOnSampler});case r.TracesSamplerValues.ParentBasedAlwaysOff:return new o.ParentBasedSampler({root:new i.AlwaysOffSampler});case r.TracesSamplerValues.TraceIdRatio:return new s.TraceIdRatioBasedSampler(d(e));case r.TracesSamplerValues.ParentBasedTraceIdRatio:return new o.ParentBasedSampler({root:new s.TraceIdRatioBasedSampler(d(e))});default:return n.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${c}".`),new a.AlwaysOnSampler}}t.buildSamplerFromEnv=u;function d(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG===``)return n.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1.`),1;let t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(n.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to 1.`),1):t<0||t>1?(n.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to 1.`),1):t}})),$R=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reconfigureLimits=e.mergeConfig=void 0;let t=QR(),n=LR();function r(e){let n={sampler:(0,t.buildSamplerFromEnv)()},r=(0,t.loadDefaultConfig)(),i=Object.assign({},r,n,e);return i.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),i.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),i}e.mergeConfig=r;function i(e){let t=Object.assign({},e.spanLimits),r=(0,n.getEnvWithoutDefaults)();return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??r.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT??r.OTEL_ATTRIBUTE_COUNT_LIMIT??n.DEFAULT_ATTRIBUTE_COUNT_LIMIT,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??r.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT??r.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT??n.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},e,{spanLimits:t})}e.reconfigureLimits=i})),ez=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BatchSpanProcessorBase=void 0;let n=($(),e(Q)),r=LR();t.BatchSpanProcessorBase=class{constructor(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let i=(0,r.getEnv)();this._maxExportBatchSize=typeof t?.maxExportBatchSize==`number`?t.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof t?.maxQueueSize==`number`?t.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis==`number`?t.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis==`number`?t.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new r.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(n.diag.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(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&n.TraceFlags.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&n.diag.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(n.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let i=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);n.context.with((0,r.suppressTracing)(n.context.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);let a=()=>this._exporter.export(n,n=>{clearTimeout(i),n.code===r.ExportResultCode.SUCCESS?e():t(n.error??Error(`BatchSpanProcessor: span export failed`))}),o=null;for(let e=0,t=n.length;e<t;e++){let t=n[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(o??=[],o.push(t.resource.waitForAsyncAttributes()))}o===null?a():Promise.all(o).then(a,e=>{(0,r.globalErrorHandler)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,r.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,r.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}})),tz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BatchSpanProcessor=void 0;let t=ez();e.BatchSpanProcessor=class extends t.BatchSpanProcessorBase{onShutdown(){}}})),nz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};let t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString(`hex`,0,e)}}})),rz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=e.BatchSpanProcessor=void 0;var t=tz();Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return t.BatchSpanProcessor}});var n=nz();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return n.RandomIdGenerator}})})),iz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=e.BatchSpanProcessor=void 0;var t=rz();Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return t.BatchSpanProcessor}}),Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return t.RandomIdGenerator}})})),az=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Tracer=void 0;let n=($(),e(Q)),r=LR(),i=KR(),a=$R(),o=iz();t.Tracer=class{constructor(e,t,n){this._tracerProvider=n;let r=(0,a.mergeConfig)(t);this._sampler=r.sampler,this._generalLimits=r.generalLimits,this._spanLimits=r.spanLimits,this._idGenerator=t.idGenerator||new o.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,t={},a=n.context.active()){t.root&&(a=n.trace.deleteSpan(a));let o=n.trace.getSpan(a);if((0,r.isTracingSuppressed)(a))return n.diag.debug(`Instrumentation suppressed, returning Noop Span`),n.trace.wrapSpanContext(n.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),c=this._idGenerator.generateSpanId(),l,u,d;!s||!n.trace.isSpanContextValid(s)?l=this._idGenerator.generateTraceId():(l=s.traceId,u=s.traceState,d=s.spanId);let f=t.kind??n.SpanKind.INTERNAL,p=(t.links??[]).map(e=>({context:e.context,attributes:(0,r.sanitizeAttributes)(e.attributes)})),m=(0,r.sanitizeAttributes)(t.attributes),h=this._sampler.shouldSample(a,l,e,f,m,p);u=h.traceState??u;let g=h.decision===n.SamplingDecision.RECORD_AND_SAMPLED?n.TraceFlags.SAMPLED:n.TraceFlags.NONE,_={traceId:l,spanId:c,traceFlags:g,traceState:u};if(h.decision===n.SamplingDecision.NOT_RECORD)return n.diag.debug(`Recording is off, propagating context in a non-recording span`),n.trace.wrapSpanContext(_);let v=(0,r.sanitizeAttributes)(Object.assign(m,h.attributes));return new i.Span(this,a,e,_,f,d,p,t.startTime,void 0,v)}startActiveSpan(e,t,r,i){let a,o,s;if(arguments.length<2)return;arguments.length===2?s=t:arguments.length===3?(a=t,s=r):(a=t,o=r,s=i);let c=o??n.context.active(),l=this.startSpan(e,a,c),u=n.trace.setSpan(c,l);return n.context.with(u,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}}})),oz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultServiceName=void 0;function t(){return`unknown_service:${process.argv0}`}e.defaultServiceName=t})),sz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultServiceName=void 0;var t=oz();Object.defineProperty(e,`defaultServiceName`,{enumerable:!0,get:function(){return t.defaultServiceName}})})),cz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultServiceName=void 0;var t=sz();Object.defineProperty(e,`defaultServiceName`,{enumerable:!0,get:function(){return t.defaultServiceName}})})),lz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Resource=void 0;let n=($(),e(Q)),r=(pR(),e(fR)),i=LR(),a=cz();var o=class e{constructor(e,t){this._attributes=e,this.asyncAttributesPending=t!=null,this._syncAttributes=this._attributes??{},this._asyncAttributesPromise=t?.then(e=>(this._attributes=Object.assign({},this._attributes,e),this.asyncAttributesPending=!1,e),e=>(n.diag.debug(`a resource's async attributes promise rejected: %s`,e),this.asyncAttributesPending=!1,{}))}static empty(){return e.EMPTY}static default(){return new e({[r.SEMRESATTRS_SERVICE_NAME]:(0,a.defaultServiceName)(),[r.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:i.SDK_INFO[r.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[r.SEMRESATTRS_TELEMETRY_SDK_NAME]:i.SDK_INFO[r.SEMRESATTRS_TELEMETRY_SDK_NAME],[r.SEMRESATTRS_TELEMETRY_SDK_VERSION]:i.SDK_INFO[r.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){return this.asyncAttributesPending&&n.diag.error(`Accessing resource attributes before async attributes settled`),this._attributes??{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(t){if(!t)return this;let n=Object.assign(Object.assign({},this._syncAttributes),t._syncAttributes??t.attributes);return!this._asyncAttributesPromise&&!t._asyncAttributesPromise?new e(n):new e(n,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(([e,n])=>Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),e),t._syncAttributes??t.attributes),n)))}};t.Resource=o,o.EMPTY=new o({})})),uz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalizeType=e.normalizeArch=void 0,e.normalizeArch=e=>{switch(e){case`arm`:return`arm32`;case`ppc`:return`ppc32`;case`x64`:return`amd64`;default:return e}},e.normalizeType=e=>{switch(e){case`sunos`:return`solaris`;case`win32`:return`windows`;default:return e}}})),dz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.execAsync=void 0;let n=t(`child_process`);e.execAsync=t(`util`).promisify(n.exec)})),fz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let n=dz(),r=($(),e(Q));async function i(){try{let e=(await(0,n.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
230
- `).find(e=>e.includes(`IOPlatformUUID`));if(!e)return``;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){r.diag.debug(`error reading machine id: ${e}`)}return``}t.getMachineId=i})),pz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let r=t(`fs`),i=($(),e(Q));async function a(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await r.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){i.diag.debug(`error reading machine id: ${e}`)}return``}n.getMachineId=a})),mz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let r=t(`fs`),i=dz(),a=($(),e(Q));async function o(){try{return(await r.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){a.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,i.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){a.diag.debug(`error reading machine id: ${e}`)}return``}n.getMachineId=o})),hz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let r=t(`process`),i=dz(),a=($(),e(Q));async function o(){let e=`%windir%\\System32\\REG.exe`;r.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in r.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,i.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){a.diag.debug(`error reading machine id: ${e}`)}return``}n.getMachineId=o})),gz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let n=($(),e(Q));async function r(){return n.diag.debug(`could not read machine-id: unsupported platform`),``}t.getMachineId=r})),_z=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getMachineId=void 0;let n=t(`process`),r;switch(e.getMachineId=r,n.platform){case`darwin`:e.getMachineId=r=fz().getMachineId;break;case`linux`:e.getMachineId=r=pz().getMachineId;break;case`freebsd`:e.getMachineId=r=mz().getMachineId;break;case`win32`:e.getMachineId=r=hz().getMachineId;break;default:e.getMachineId=r=gz().getMachineId}})),vz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.hostDetectorSync=void 0;let r=(pR(),e(fR)),i=lz(),a=t(`os`),o=uz(),s=_z();n.hostDetectorSync=new class{detect(e){let t={[r.SEMRESATTRS_HOST_NAME]:(0,a.hostname)(),[r.SEMRESATTRS_HOST_ARCH]:(0,o.normalizeArch)((0,a.arch)())};return new i.Resource(t,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,s.getMachineId)().then(e=>{let t={};return e&&(t[r.SEMRESATTRS_HOST_ID]=e),t})}}})),yz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hostDetector=void 0;let t=vz();e.hostDetector=new class{detect(e){return Promise.resolve(t.hostDetectorSync.detect(e))}}})),bz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.osDetectorSync=void 0;let r=(pR(),e(fR)),i=lz(),a=t(`os`),o=uz();n.osDetectorSync=new class{detect(e){let t={[r.SEMRESATTRS_OS_TYPE]:(0,o.normalizeType)((0,a.platform)()),[r.SEMRESATTRS_OS_VERSION]:(0,a.release)()};return new i.Resource(t)}}})),xz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.osDetector=void 0;let t=bz();e.osDetector=new class{detect(e){return Promise.resolve(t.osDetectorSync.detect(e))}}})),Sz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.processDetectorSync=void 0;let r=($(),e(Q)),i=(pR(),e(fR)),a=lz(),o=t(`os`);n.processDetectorSync=new class{detect(e){let t={[i.SEMRESATTRS_PROCESS_PID]:process.pid,[i.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[i.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[i.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[i.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[i.SEMRESATTRS_PROCESS_RUNTIME_NAME]:`nodejs`,[i.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:`Node.js`};process.argv.length>1&&(t[i.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let e=o.userInfo();t[i.SEMRESATTRS_PROCESS_OWNER]=e.username}catch(e){r.diag.debug(`error obtaining process owner: ${e}`)}return new a.Resource(t)}}})),Cz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.processDetector=void 0;let t=Sz();e.processDetector=new class{detect(e){return Promise.resolve(t.processDetectorSync.detect(e))}}})),wz=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.serviceInstanceIdDetectorSync=void 0;let r=(pR(),e(fR)),i=lz(),a=t(`crypto`);n.serviceInstanceIdDetectorSync=new class{detect(e){let t={[r.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,a.randomUUID)()};return new i.Resource(t)}}})),Tz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=void 0;var t=yz();Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return t.hostDetector}});var n=vz();Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return n.hostDetectorSync}});var r=xz();Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return r.osDetector}});var i=bz();Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return i.osDetectorSync}});var a=Cz();Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return a.processDetector}});var o=Sz();Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return o.processDetectorSync}});var s=wz();Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return s.serviceInstanceIdDetectorSync}})})),Ez=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=void 0;var t=Tz();Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return t.hostDetector}}),Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return t.hostDetectorSync}}),Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return t.osDetector}}),Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return t.osDetectorSync}}),Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return t.processDetector}}),Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return t.processDetectorSync}}),Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return t.serviceInstanceIdDetectorSync}})})),Dz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.browserDetectorSync=void 0;let n=(pR(),e(fR)),r=($(),e(Q)),i=lz();t.browserDetectorSync=new class{detect(e){if(!(typeof navigator<`u`&&global.process?.versions?.node===void 0&&global.Bun?.version===void 0))return i.Resource.empty();let t={[n.SEMRESATTRS_PROCESS_RUNTIME_NAME]:`browser`,[n.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:`Web Browser`,[n.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(t,e)}_getResourceAttributes(e,t){return e[n.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===``?(r.diag.debug(`BrowserDetector failed: Unable to find required browser resources. `),i.Resource.empty()):new i.Resource(Object.assign({},e))}}})),Oz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.browserDetector=void 0;let t=Dz();e.browserDetector=new class{detect(e){return Promise.resolve(t.browserDetectorSync.detect(e))}}})),kz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.envDetectorSync=void 0;let n=($(),e(Q)),r=LR(),i=(pR(),e(fR)),a=lz();t.envDetectorSync=new class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=`,`,this._LABEL_KEY_VALUE_SPLITTER=`=`,this._ERROR_MESSAGE_INVALID_CHARS=`should be a ASCII string with a length greater than 0 and not exceed `+this._MAX_LENGTH+` characters.`,this._ERROR_MESSAGE_INVALID_VALUE=`should be a ASCII string with a length not exceed `+this._MAX_LENGTH+` characters.`}detect(e){let t={},o=(0,r.getEnv)(),s=o.OTEL_RESOURCE_ATTRIBUTES,c=o.OTEL_SERVICE_NAME;if(s)try{let e=this._parseResourceAttributes(s);Object.assign(t,e)}catch(e){n.diag.debug(`EnvDetector failed: ${e.message}`)}return c&&(t[i.SEMRESATTRS_SERVICE_NAME]=c),new a.Resource(t)}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR,-1);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(n.length!==2)continue;let[r,i]=n;if(r=r.trim(),i=i.trim().split(/^"|"$/).join(``),!this._isValidAndNotEmpty(r))throw Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(i))throw Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);t[r]=decodeURIComponent(i)}return t}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}}})),Az=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.envDetector=void 0;let t=kz();e.envDetector=new class{detect(e){return Promise.resolve(t.envDetectorSync.detect(e))}}})),jz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.envDetectorSync=e.browserDetectorSync=e.envDetector=e.browserDetector=e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=void 0;var t=Ez();Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return t.hostDetector}}),Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return t.hostDetectorSync}}),Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return t.osDetector}}),Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return t.osDetectorSync}}),Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return t.processDetector}}),Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return t.processDetectorSync}}),Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return t.serviceInstanceIdDetectorSync}});var n=Oz();Object.defineProperty(e,`browserDetector`,{enumerable:!0,get:function(){return n.browserDetector}});var r=Az();Object.defineProperty(e,`envDetector`,{enumerable:!0,get:function(){return r.envDetector}});var i=Dz();Object.defineProperty(e,`browserDetectorSync`,{enumerable:!0,get:function(){return i.browserDetectorSync}});var a=kz();Object.defineProperty(e,`envDetectorSync`,{enumerable:!0,get:function(){return a.envDetectorSync}})})),Mz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromiseLike=void 0,e.isPromiseLike=e=>typeof e==`object`&&!!e&&typeof e.then==`function`})),Nz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.detectResourcesSync=t.detectResources=void 0;let n=lz(),r=($(),e(Q)),i=Mz();t.detectResources=async(e={})=>{let t=await Promise.all((e.detectors||[]).map(async t=>{try{let n=await t.detect(e);return r.diag.debug(`${t.constructor.name} found resource.`,n),n}catch(e){return r.diag.debug(`${t.constructor.name} failed: ${e.message}`),n.Resource.empty()}}));return a(t),t.reduce((e,t)=>e.merge(t),n.Resource.empty())},t.detectResourcesSync=(e={})=>{let t=(e.detectors??[]).map(t=>{try{let a=t.detect(e),o;return o=(0,i.isPromiseLike)(a)?new n.Resource({},(async()=>{let e=await a;return await e.waitForAsyncAttributes?.call(e),e.attributes})()):a,o.waitForAsyncAttributes?o.waitForAsyncAttributes().then(()=>r.diag.debug(`${t.constructor.name} found resource.`,o)):r.diag.debug(`${t.constructor.name} found resource.`,o),o}catch(e){return r.diag.error(`${t.constructor.name} failed: ${e.message}`),n.Resource.empty()}}),o=t.reduce((e,t)=>e.merge(t),n.Resource.empty());return o.waitForAsyncAttributes&&o.waitForAsyncAttributes().then(()=>{a(t)}),o};let a=e=>{e.forEach(e=>{if(Object.keys(e.attributes).length>0){let t=JSON.stringify(e.attributes,null,4);r.diag.verbose(t)}})}})),Pz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.detectResources=e.detectResourcesSync=e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=e.envDetectorSync=e.envDetector=e.browserDetectorSync=e.browserDetector=e.defaultServiceName=e.Resource=void 0;var t=lz();Object.defineProperty(e,`Resource`,{enumerable:!0,get:function(){return t.Resource}});var n=cz();Object.defineProperty(e,`defaultServiceName`,{enumerable:!0,get:function(){return n.defaultServiceName}});var r=jz();Object.defineProperty(e,`browserDetector`,{enumerable:!0,get:function(){return r.browserDetector}}),Object.defineProperty(e,`browserDetectorSync`,{enumerable:!0,get:function(){return r.browserDetectorSync}}),Object.defineProperty(e,`envDetector`,{enumerable:!0,get:function(){return r.envDetector}}),Object.defineProperty(e,`envDetectorSync`,{enumerable:!0,get:function(){return r.envDetectorSync}}),Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return r.hostDetector}}),Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return r.hostDetectorSync}}),Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return r.osDetector}}),Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return r.osDetectorSync}}),Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return r.processDetector}}),Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return r.processDetectorSync}}),Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return r.serviceInstanceIdDetectorSync}});var i=Nz();Object.defineProperty(e,`detectResourcesSync`,{enumerable:!0,get:function(){return i.detectResourcesSync}}),Object.defineProperty(e,`detectResources`,{enumerable:!0,get:function(){return i.detectResources}})})),Fz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MultiSpanProcessor=void 0;let t=LR();e.MultiSpanProcessor=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(e=>{(0,t.globalErrorHandler)(e||Error(`MultiSpanProcessor: forceFlush failed`)),n()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}})),Iz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoopSpanProcessor=void 0,e.NoopSpanProcessor=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),Lz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BasicTracerProvider=t.ForceFlushState=void 0;let n=($(),e(Q)),r=LR(),i=Pz(),a=az(),o=QR(),s=Fz(),c=Iz(),l=iz(),u=$R();var d;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(d=t.ForceFlushState||={});var f=class{constructor(e={}){this._registeredSpanProcessors=[],this._tracers=new Map;let t=(0,r.merge)({},(0,o.loadDefaultConfig)(),(0,u.reconfigureLimits)(e));if(this.resource=t.resource??i.Resource.empty(),t.mergeResourceWithDefaults&&(this.resource=i.Resource.default().merge(this.resource)),this._config=Object.assign({},t,{resource:this.resource}),e.spanProcessors?.length)this._registeredSpanProcessors=[...e.spanProcessors],this.activeSpanProcessor=new s.MultiSpanProcessor(this._registeredSpanProcessors);else{let e=this._buildExporterFromEnv();e===void 0?this.activeSpanProcessor=new c.NoopSpanProcessor:this.activeSpanProcessor=new l.BatchSpanProcessor(e)}}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new a.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(r)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(e=>n.diag.error(`Error while trying to shutdown current span processor`,e)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new s.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){n.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&n.context.setGlobalContextManager(e.contextManager),e.propagator&&n.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=d.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==d.timeout&&(r=d.resolved,n(r))}).catch(e=>{clearTimeout(i),r=d.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==d.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){return this.constructor._registeredPropagators.get(e)?.()}_getSpanExporter(e){return this.constructor._registeredExporters.get(e)?.()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,r.getEnv)().OTEL_PROPAGATORS)),t=e.map(e=>{let t=this._getPropagator(e);return t||n.diag.warn(`Propagator "${e}" requested through environment variable is unavailable.`),t}).reduce((e,t)=>(t&&e.push(t),e),[]);if(t.length!==0)return e.length===1?t[0]:new r.CompositePropagator({propagators:t})}_buildExporterFromEnv(){let e=(0,r.getEnv)().OTEL_TRACES_EXPORTER;if(e===`none`||e===``)return;let t=this._getSpanExporter(e);return t||n.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};t.BasicTracerProvider=f,f._registeredPropagators=new Map([[`tracecontext`,()=>new r.W3CTraceContextPropagator],[`baggage`,()=>new r.W3CBaggagePropagator]]),f._registeredExporters=new Map})),Rz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConsoleSpanExporter=void 0;let t=LR();e.ConsoleSpanExporter=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:e.spanContext().traceState?.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,t.hrTimeToMicroseconds)(e.startTime),duration:(0,t.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,n){for(let t of e)console.dir(this._exportInfo(t),{depth:3});if(n)return n({code:t.ExportResultCode.SUCCESS})}}})),zz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InMemorySpanExporter=void 0;let t=LR();e.InMemorySpanExporter=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,n){if(this._stopped)return n({code:t.ExportResultCode.FAILED,error:Error(`Exporter has been stopped`)});this._finishedSpans.push(...e),setTimeout(()=>n({code:t.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),Bz=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SimpleSpanProcessor=void 0;let n=($(),e(Q)),r=LR();t.SimpleSpanProcessor=class{constructor(e){this._exporter=e,this._shutdownOnce=new r.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,t){}onEnd(e){var t;if(this._shutdownOnce.isCalled||(e.spanContext().traceFlags&n.TraceFlags.SAMPLED)===0)return;let i=()=>r.internal._export(this._exporter,[e]).then(e=>{e.code!==r.ExportResultCode.SUCCESS&&(0,r.globalErrorHandler)(e.error??Error(`SimpleSpanProcessor: span export failed (status ${e})`))}).catch(e=>{(0,r.globalErrorHandler)(e)});if(e.resource.asyncAttributesPending){let n=(t=e.resource).waitForAsyncAttributes?.call(t).then(()=>(n!=null&&this._unresolvedExports.delete(n),i()),e=>(0,r.globalErrorHandler)(e));n!=null&&this._unresolvedExports.add(n)}else i()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}})),Vz=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Span=e.SamplingDecision=e.TraceIdRatioBasedSampler=e.ParentBasedSampler=e.AlwaysOnSampler=e.AlwaysOffSampler=e.NoopSpanProcessor=e.SimpleSpanProcessor=e.InMemorySpanExporter=e.ConsoleSpanExporter=e.RandomIdGenerator=e.BatchSpanProcessor=e.ForceFlushState=e.BasicTracerProvider=e.Tracer=void 0;var t=az();Object.defineProperty(e,`Tracer`,{enumerable:!0,get:function(){return t.Tracer}});var n=Lz();Object.defineProperty(e,`BasicTracerProvider`,{enumerable:!0,get:function(){return n.BasicTracerProvider}}),Object.defineProperty(e,`ForceFlushState`,{enumerable:!0,get:function(){return n.ForceFlushState}});var r=iz();Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return r.BatchSpanProcessor}}),Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return r.RandomIdGenerator}});var i=Rz();Object.defineProperty(e,`ConsoleSpanExporter`,{enumerable:!0,get:function(){return i.ConsoleSpanExporter}});var a=zz();Object.defineProperty(e,`InMemorySpanExporter`,{enumerable:!0,get:function(){return a.InMemorySpanExporter}});var o=Bz();Object.defineProperty(e,`SimpleSpanProcessor`,{enumerable:!0,get:function(){return o.SimpleSpanProcessor}});var s=Iz();Object.defineProperty(e,`NoopSpanProcessor`,{enumerable:!0,get:function(){return s.NoopSpanProcessor}});var c=JR();Object.defineProperty(e,`AlwaysOffSampler`,{enumerable:!0,get:function(){return c.AlwaysOffSampler}});var l=YR();Object.defineProperty(e,`AlwaysOnSampler`,{enumerable:!0,get:function(){return l.AlwaysOnSampler}});var u=XR();Object.defineProperty(e,`ParentBasedSampler`,{enumerable:!0,get:function(){return u.ParentBasedSampler}});var d=ZR();Object.defineProperty(e,`TraceIdRatioBasedSampler`,{enumerable:!0,get:function(){return d.TraceIdRatioBasedSampler}});var f=qR();Object.defineProperty(e,`SamplingDecision`,{enumerable:!0,get:function(){return f.SamplingDecision}});var p=KR();Object.defineProperty(e,`Span`,{enumerable:!0,get:function(){return p.Span}})})),Hz=a(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Uz=a(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Wz=a(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Hz(),a=Uz();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),Gz=a(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Kz=a(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),qz=a(((e,t)=>{let n=Uz(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Hz(),{safeRe:a,t:o}=Wz(),s=Gz(),{compareIdentifiers:c}=Kz();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Jz=a(((e,t)=>{let n=qz();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Yz=a(((e,t)=>{let n=Jz();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Xz=a(((e,t)=>{let n=Jz();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Zz=a(((e,t)=>{let n=qz();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Qz=a(((e,t)=>{let n=Jz();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),$z=a(((e,t)=>{let n=qz();t.exports=(e,t)=>new n(e,t).major})),eB=a(((e,t)=>{let n=qz();t.exports=(e,t)=>new n(e,t).minor})),tB=a(((e,t)=>{let n=qz();t.exports=(e,t)=>new n(e,t).patch})),nB=a(((e,t)=>{let n=Jz();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),rB=a(((e,t)=>{let n=qz();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),iB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(t,e,r)})),aB=a(((e,t)=>{let n=rB();t.exports=(e,t)=>n(e,t,!0)})),oB=a(((e,t)=>{let n=qz();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),sB=a(((e,t)=>{let n=oB();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),cB=a(((e,t)=>{let n=oB();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),lB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(e,t,r)>0})),uB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(e,t,r)<0})),dB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(e,t,r)===0})),fB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(e,t,r)!==0})),pB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(e,t,r)>=0})),mB=a(((e,t)=>{let n=rB();t.exports=(e,t,r)=>n(e,t,r)<=0})),hB=a(((e,t)=>{let n=dB(),r=fB(),i=lB(),a=pB(),o=uB(),s=mB();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),gB=a(((e,t)=>{let n=qz(),r=Jz(),{safeRe:i,t:a}=Wz();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),_B=a(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),vB=a(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,O(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>v(e,this.options)).join(` `).split(/\s+/).map(e=>D(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let _=new Map,y=g.map(e=>new a(e,this.options));for(let e of y){if(h(e))return[e];_.set(e.value,e)}_.size>1&&_.has(``)&&_.delete(``);let b=[..._.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>_(e,n)&&t.set.some(t=>_(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1}};let r=new(_B()),i=Gz(),a=yB(),o=Uz(),s=qz(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=Wz(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=Hz(),h=e=>e.value===`<0.0.0-0`,g=e=>e.value===``,_=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=S(e,t),o(`caret`,e),e=b(e,t),o(`tildes`,e),e=w(e,t),o(`xrange`,e),e=E(e,t),o(`stars`,e),e),y=e=>!e||e.toLowerCase()===`x`||e===`*`,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(` `),x=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return y(n)?s=``:y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return y(n)?c=``:y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},w=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>T(e,t)).join(` `)),T=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=y(i),u=l||y(a),d=u||y(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},E=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),D=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),O=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=y(r)?``:y(i)?`>=${r}.0.0${e?`-0`:``}`:y(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=y(l)?``:y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),k=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),yB=a(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=Gz(),{safeRe:i,t:a}=Wz(),o=hB(),s=Uz(),c=qz(),l=vB()})),bB=a(((e,t)=>{let n=vB();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),xB=a(((e,t)=>{let n=vB();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),SB=a(((e,t)=>{let n=qz(),r=vB();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),CB=a(((e,t)=>{let n=qz(),r=vB();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),wB=a(((e,t)=>{let n=qz(),r=vB(),i=lB();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),TB=a(((e,t)=>{let n=vB();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),EB=a(((e,t)=>{let n=qz(),r=yB(),{ANY:i}=r,a=vB(),o=bB(),s=lB(),c=uB(),l=mB(),u=pB();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),DB=a(((e,t)=>{let n=EB();t.exports=(e,t,r)=>n(e,t,`>`,r)})),OB=a(((e,t)=>{let n=EB();t.exports=(e,t,r)=>n(e,t,`<`,r)})),kB=a(((e,t)=>{let n=vB();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),AB=a(((e,t)=>{let n=bB(),r=rB();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),jB=a(((e,t)=>{let n=vB(),r=yB(),{ANY:i}=r,a=bB(),o=rB(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),MB=a(((e,t)=>{let n=Wz(),r=Hz(),i=qz(),a=Kz();t.exports={parse:Jz(),valid:Yz(),clean:Xz(),inc:Zz(),diff:Qz(),major:$z(),minor:eB(),patch:tB(),prerelease:nB(),compare:rB(),rcompare:iB(),compareLoose:aB(),compareBuild:oB(),sort:sB(),rsort:cB(),gt:lB(),lt:uB(),eq:dB(),neq:fB(),gte:pB(),lte:mB(),cmp:hB(),coerce:gB(),Comparator:yB(),Range:vB(),satisfies:bB(),toComparators:xB(),maxSatisfying:SB(),minSatisfying:CB(),minVersion:wB(),validRange:TB(),outside:EB(),gtr:DB(),ltr:OB(),intersects:kB(),simplifyRange:AB(),subset:jB(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),NB=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.JaegerPropagator=t.UBER_BAGGAGE_HEADER_PREFIX=t.UBER_TRACE_ID_HEADER=void 0;let n=($(),e(Q)),r=LR();t.UBER_TRACE_ID_HEADER=`uber-trace-id`,t.UBER_BAGGAGE_HEADER_PREFIX=`uberctx`,t.JaegerPropagator=class{constructor(e){typeof e==`string`?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=t.UBER_BAGGAGE_HEADER_PREFIX):(this._jaegerTraceHeader=e?.customTraceHeader||t.UBER_TRACE_ID_HEADER,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||t.UBER_BAGGAGE_HEADER_PREFIX)}inject(e,t,i){let a=n.trace.getSpanContext(e),o=n.propagation.getBaggage(e);if(a&&(0,r.isTracingSuppressed)(e)===!1){let e=`0${(a.traceFlags||n.TraceFlags.NONE).toString(16)}`;i.set(t,this._jaegerTraceHeader,`${a.traceId}:${a.spanId}:0:${e}`)}if(o)for(let[e,n]of o.getAllEntries())i.set(t,`${this._jaegerBaggageHeaderPrefix}-${e}`,encodeURIComponent(n.value))}extract(e,t,r){let i=r.get(t,this._jaegerTraceHeader),o=Array.isArray(i)?i[0]:i,s=r.keys(t).filter(e=>e.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map(e=>{let n=r.get(t,e);return{key:e.substring(this._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(n)?n[0]:n}}),c=e;if(typeof o==`string`){let e=a(o);e&&(c=n.trace.setSpanContext(c,e))}if(s.length===0)return c;let l=n.propagation.getBaggage(e)??n.propagation.createBaggage();for(let e of s)e.value!==void 0&&(l=l.setEntry(e.key,{value:decodeURIComponent(e.value)}));return c=n.propagation.setBaggage(c,l),c}fields(){return[this._jaegerTraceHeader]}};let i=/^[0-9a-f]{1,2}$/i;function a(e){let t=decodeURIComponent(e).split(`:`);if(t.length!==4)return null;let[n,r,,a]=t;return{traceId:n.padStart(32,`0`),spanId:r.padStart(16,`0`),isRemote:!0,traceFlags:i.test(a)?parseInt(a,16)&1:1}}})),PB=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UBER_TRACE_ID_HEADER=e.UBER_BAGGAGE_HEADER_PREFIX=e.JaegerPropagator=void 0;var t=NB();Object.defineProperty(e,`JaegerPropagator`,{enumerable:!0,get:function(){return t.JaegerPropagator}}),Object.defineProperty(e,`UBER_BAGGAGE_HEADER_PREFIX`,{enumerable:!0,get:function(){return t.UBER_BAGGAGE_HEADER_PREFIX}}),Object.defineProperty(e,`UBER_TRACE_ID_HEADER`,{enumerable:!0,get:function(){return t.UBER_TRACE_ID_HEADER}})})),FB=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NodeTracerProvider=void 0;let t=mb(),n=WR(),r=Vz(),i=MB(),a=PB();var o=class extends r.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){e.contextManager===void 0&&(e.contextManager=new(i.gte(process.version,`14.8.0`)?t.AsyncLocalStorageContextManager:t.AsyncHooksContextManager),e.contextManager.enable()),super.register(e)}};e.NodeTracerProvider=o,o._registeredPropagators=new Map([...r.BasicTracerProvider._registeredPropagators,[`b3`,()=>new n.B3Propagator({injectEncoding:n.B3InjectEncoding.SINGLE_HEADER})],[`b3multi`,()=>new n.B3Propagator({injectEncoding:n.B3InjectEncoding.MULTI_HEADER})],[`jaeger`,()=>new a.JaegerPropagator]])})),IB=r(a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Tracer=e.TraceIdRatioBasedSampler=e.Span=e.SimpleSpanProcessor=e.SamplingDecision=e.RandomIdGenerator=e.ParentBasedSampler=e.NoopSpanProcessor=e.InMemorySpanExporter=e.ForceFlushState=e.ConsoleSpanExporter=e.BatchSpanProcessor=e.BasicTracerProvider=e.AlwaysOnSampler=e.AlwaysOffSampler=e.NodeTracerProvider=void 0;var t=FB();Object.defineProperty(e,`NodeTracerProvider`,{enumerable:!0,get:function(){return t.NodeTracerProvider}});var n=Vz();Object.defineProperty(e,`AlwaysOffSampler`,{enumerable:!0,get:function(){return n.AlwaysOffSampler}}),Object.defineProperty(e,`AlwaysOnSampler`,{enumerable:!0,get:function(){return n.AlwaysOnSampler}}),Object.defineProperty(e,`BasicTracerProvider`,{enumerable:!0,get:function(){return n.BasicTracerProvider}}),Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return n.BatchSpanProcessor}}),Object.defineProperty(e,`ConsoleSpanExporter`,{enumerable:!0,get:function(){return n.ConsoleSpanExporter}}),Object.defineProperty(e,`ForceFlushState`,{enumerable:!0,get:function(){return n.ForceFlushState}}),Object.defineProperty(e,`InMemorySpanExporter`,{enumerable:!0,get:function(){return n.InMemorySpanExporter}}),Object.defineProperty(e,`NoopSpanProcessor`,{enumerable:!0,get:function(){return n.NoopSpanProcessor}}),Object.defineProperty(e,`ParentBasedSampler`,{enumerable:!0,get:function(){return n.ParentBasedSampler}}),Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return n.RandomIdGenerator}}),Object.defineProperty(e,`SamplingDecision`,{enumerable:!0,get:function(){return n.SamplingDecision}}),Object.defineProperty(e,`SimpleSpanProcessor`,{enumerable:!0,get:function(){return n.SimpleSpanProcessor}}),Object.defineProperty(e,`Span`,{enumerable:!0,get:function(){return n.Span}}),Object.defineProperty(e,`TraceIdRatioBasedSampler`,{enumerable:!0,get:function(){return n.TraceIdRatioBasedSampler}}),Object.defineProperty(e,`Tracer`,{enumerable:!0,get:function(){return n.Tracer}})}))(),1);$();var LB=r(Vz(),1),RB=r(LR(),1),zB=class extends LB.ConsoleSpanExporter{export(e,t){for(let t of e)try{let e=t.spanContext(),n={traceId:e.traceId,parentId:t.parentSpanId,name:t.name,id:e.spanId,kind:t.kind,timestamp:(0,RB.hrTimeToTimeStamp)(t.startTime),duration:t.duration,attributes:t.attributes,status:t.status,events:t.events,links:t.links,start_time:t.startTime,end_time:t.endTime,forwardTrace:process.env.SFNEXT_OTEL_ENABLED===`true`};console.info(JSON.stringify(n))}catch{}t({code:RB.ExportResultCode.SUCCESS})}};function BB(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,`_`)]=n)}return t}var VB=n((()=>{})),HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH,hH,gH,_H,vH,yH,bH,xH,SH,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU,EU,DU,OU,kU,AU,jU,MU,NU,PU,FU,IU,LU,RU,zU,BU,VU,HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX,_X,vX,yX,bX,xX,SX,CX,wX,TX,EX,DX,OX,kX,AX,jX,MX,NX,PX=n((()=>{VB(),HB=`aws.lambda.invoked_arn`,UB=`db.system`,WB=`db.connection_string`,GB=`db.user`,KB=`db.jdbc.driver_classname`,qB=`db.name`,JB=`db.statement`,YB=`db.operation`,XB=`db.mssql.instance_name`,ZB=`db.cassandra.keyspace`,QB=`db.cassandra.page_size`,$B=`db.cassandra.consistency_level`,eV=`db.cassandra.table`,tV=`db.cassandra.idempotence`,nV=`db.cassandra.speculative_execution_count`,rV=`db.cassandra.coordinator.id`,iV=`db.cassandra.coordinator.dc`,aV=`db.hbase.namespace`,oV=`db.redis.database_index`,sV=`db.mongodb.collection`,cV=`db.sql.table`,lV=`exception.type`,uV=`exception.message`,dV=`exception.stacktrace`,fV=`exception.escaped`,pV=`faas.trigger`,mV=`faas.execution`,hV=`faas.document.collection`,gV=`faas.document.operation`,_V=`faas.document.time`,vV=`faas.document.name`,yV=`faas.time`,bV=`faas.cron`,xV=`faas.coldstart`,SV=`faas.invoked_name`,CV=`faas.invoked_provider`,wV=`faas.invoked_region`,TV=`net.transport`,EV=`net.peer.ip`,DV=`net.peer.port`,OV=`net.peer.name`,kV=`net.host.ip`,AV=`net.host.port`,jV=`net.host.name`,MV=`net.host.connection.type`,NV=`net.host.connection.subtype`,PV=`net.host.carrier.name`,FV=`net.host.carrier.mcc`,IV=`net.host.carrier.mnc`,LV=`net.host.carrier.icc`,RV=`peer.service`,zV=`enduser.id`,BV=`enduser.role`,VV=`enduser.scope`,HV=`thread.id`,UV=`thread.name`,WV=`code.function`,GV=`code.namespace`,KV=`code.filepath`,qV=`code.lineno`,JV=`http.method`,YV=`http.url`,XV=`http.target`,ZV=`http.host`,QV=`http.scheme`,$V=`http.status_code`,eH=`http.flavor`,tH=`http.user_agent`,nH=`http.request_content_length`,rH=`http.request_content_length_uncompressed`,iH=`http.response_content_length`,aH=`http.response_content_length_uncompressed`,oH=`http.server_name`,sH=`http.route`,cH=`http.client_ip`,lH=`aws.dynamodb.table_names`,uH=`aws.dynamodb.consumed_capacity`,dH=`aws.dynamodb.item_collection_metrics`,fH=`aws.dynamodb.provisioned_read_capacity`,pH=`aws.dynamodb.provisioned_write_capacity`,mH=`aws.dynamodb.consistent_read`,hH=`aws.dynamodb.projection`,gH=`aws.dynamodb.limit`,_H=`aws.dynamodb.attributes_to_get`,vH=`aws.dynamodb.index_name`,yH=`aws.dynamodb.select`,bH=`aws.dynamodb.global_secondary_indexes`,xH=`aws.dynamodb.local_secondary_indexes`,SH=`aws.dynamodb.exclusive_start_table`,CH=`aws.dynamodb.table_count`,wH=`aws.dynamodb.scan_forward`,TH=`aws.dynamodb.segment`,EH=`aws.dynamodb.total_segments`,DH=`aws.dynamodb.count`,OH=`aws.dynamodb.scanned_count`,kH=`aws.dynamodb.attribute_definitions`,AH=`aws.dynamodb.global_secondary_index_updates`,jH=`messaging.system`,MH=`messaging.destination`,NH=`messaging.destination_kind`,PH=`messaging.temp_destination`,FH=`messaging.protocol`,IH=`messaging.protocol_version`,LH=`messaging.url`,RH=`messaging.message_id`,zH=`messaging.conversation_id`,BH=`messaging.message_payload_size_bytes`,VH=`messaging.message_payload_compressed_size_bytes`,HH=`messaging.operation`,UH=`messaging.consumer_id`,WH=`messaging.rabbitmq.routing_key`,GH=`messaging.kafka.message_key`,KH=`messaging.kafka.consumer_group`,qH=`messaging.kafka.client_id`,JH=`messaging.kafka.partition`,YH=`messaging.kafka.tombstone`,XH=`rpc.system`,ZH=`rpc.service`,QH=`rpc.method`,$H=`rpc.grpc.status_code`,eU=`rpc.jsonrpc.version`,tU=`rpc.jsonrpc.request_id`,nU=`rpc.jsonrpc.error_code`,rU=`rpc.jsonrpc.error_message`,iU=`message.type`,aU=`message.id`,oU=`message.compressed_size`,sU=`message.uncompressed_size`,cU=HB,lU=UB,uU=WB,dU=GB,fU=KB,pU=qB,mU=JB,hU=YB,gU=XB,_U=ZB,vU=QB,yU=$B,bU=eV,xU=tV,SU=nV,CU=rV,wU=iV,TU=aV,EU=oV,DU=sV,OU=cV,kU=lV,AU=uV,jU=dV,MU=fV,NU=pV,PU=mV,FU=hV,IU=gV,LU=_V,RU=vV,zU=yV,BU=bV,VU=xV,HU=SV,UU=CV,WU=wV,GU=TV,KU=EV,qU=DV,JU=OV,YU=kV,XU=AV,ZU=jV,QU=MV,$U=NV,eW=PV,tW=FV,nW=IV,rW=LV,iW=RV,aW=zV,oW=BV,sW=VV,cW=HV,lW=UV,uW=WV,dW=GV,fW=KV,pW=qV,mW=JV,hW=YV,gW=XV,_W=ZV,vW=QV,yW=$V,bW=eH,xW=tH,SW=nH,CW=rH,wW=iH,TW=aH,EW=oH,DW=sH,OW=cH,kW=lH,AW=uH,jW=dH,MW=fH,NW=pH,PW=mH,FW=hH,IW=gH,LW=_H,RW=vH,zW=yH,BW=bH,VW=xH,HW=SH,UW=CH,WW=wH,GW=TH,KW=EH,qW=DH,JW=OH,YW=kH,XW=AH,ZW=jH,QW=MH,$W=NH,eG=PH,tG=FH,nG=IH,rG=LH,iG=RH,aG=zH,oG=BH,sG=VH,cG=HH,lG=UH,uG=WH,dG=GH,fG=KH,pG=qH,mG=JH,hG=YH,gG=XH,_G=ZH,vG=QH,yG=$H,bG=eU,xG=tU,SG=nU,CG=rU,wG=iU,TG=aU,EG=oU,DG=sU,OG=BB([HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH,hH,gH,_H,vH,yH,bH,xH,SH,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU]),kG=`other_sql`,AG=`mssql`,jG=`mysql`,MG=`oracle`,NG=`db2`,PG=`postgresql`,FG=`redshift`,IG=`hive`,LG=`cloudscape`,RG=`hsqldb`,zG=`progress`,BG=`maxdb`,VG=`hanadb`,HG=`ingres`,UG=`firstsql`,WG=`edb`,GG=`cache`,KG=`adabas`,qG=`firebird`,JG=`derby`,YG=`filemaker`,XG=`informix`,ZG=`instantdb`,QG=`interbase`,$G=`mariadb`,eK=`netezza`,tK=`pervasive`,nK=`pointbase`,rK=`sqlite`,iK=`sybase`,aK=`teradata`,oK=`vertica`,sK=`h2`,cK=`coldfusion`,lK=`cassandra`,uK=`hbase`,dK=`mongodb`,fK=`redis`,pK=`couchbase`,mK=`couchdb`,hK=`cosmosdb`,gK=`dynamodb`,_K=`neo4j`,vK=`geode`,yK=`elasticsearch`,bK=`memcached`,xK=`cockroachdb`,SK=kG,CK=AG,wK=jG,TK=MG,EK=NG,DK=PG,OK=FG,kK=IG,AK=LG,jK=RG,MK=zG,NK=BG,PK=VG,FK=HG,IK=UG,LK=WG,RK=GG,zK=KG,BK=qG,VK=JG,HK=YG,UK=XG,WK=ZG,GK=QG,KK=$G,qK=eK,JK=tK,YK=nK,XK=rK,ZK=iK,QK=aK,$K=oK,eq=sK,tq=cK,nq=lK,rq=uK,iq=dK,aq=fK,oq=pK,sq=mK,cq=hK,lq=gK,uq=_K,dq=vK,fq=yK,pq=bK,mq=xK,hq=BB([kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK]),gq=`all`,_q=`each_quorum`,vq=`quorum`,yq=`local_quorum`,bq=`one`,xq=`two`,Sq=`three`,Cq=`local_one`,wq=`any`,Tq=`serial`,Eq=`local_serial`,Dq=gq,Oq=_q,kq=vq,Aq=yq,jq=bq,Mq=xq,Nq=Sq,Pq=Cq,Fq=wq,Iq=Tq,Lq=Eq,Rq=BB([gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq]),zq=`datasource`,Bq=`http`,Vq=`pubsub`,Hq=`timer`,Uq=`other`,Wq=zq,Gq=Bq,Kq=Vq,qq=Hq,Jq=Uq,Yq=BB([zq,Bq,Vq,Hq,Uq]),Xq=`insert`,Zq=`edit`,Qq=`delete`,$q=Xq,eJ=Zq,tJ=Qq,nJ=BB([Xq,Zq,Qq]),rJ=`alibaba_cloud`,iJ=`aws`,aJ=`azure`,oJ=`gcp`,sJ=rJ,cJ=iJ,lJ=aJ,uJ=oJ,dJ=BB([rJ,iJ,aJ,oJ]),fJ=`ip_tcp`,pJ=`ip_udp`,mJ=`ip`,hJ=`unix`,gJ=`pipe`,_J=`inproc`,vJ=`other`,yJ=fJ,bJ=pJ,xJ=mJ,SJ=hJ,CJ=gJ,wJ=_J,TJ=vJ,EJ=BB([fJ,pJ,mJ,hJ,gJ,_J,vJ]),DJ=`wifi`,OJ=`wired`,kJ=`cell`,AJ=`unavailable`,jJ=`unknown`,MJ=DJ,NJ=OJ,PJ=kJ,FJ=AJ,IJ=jJ,LJ=BB([DJ,OJ,kJ,AJ,jJ]),RJ=`gprs`,zJ=`edge`,BJ=`umts`,VJ=`cdma`,HJ=`evdo_0`,UJ=`evdo_a`,WJ=`cdma2000_1xrtt`,GJ=`hsdpa`,KJ=`hsupa`,qJ=`hspa`,JJ=`iden`,YJ=`evdo_b`,XJ=`lte`,ZJ=`ehrpd`,QJ=`hspap`,$J=`gsm`,eY=`td_scdma`,tY=`iwlan`,nY=`nr`,rY=`nrnsa`,iY=`lte_ca`,aY=RJ,oY=zJ,sY=BJ,cY=VJ,lY=HJ,uY=UJ,dY=WJ,fY=GJ,pY=KJ,mY=qJ,hY=JJ,gY=YJ,_Y=XJ,vY=ZJ,yY=QJ,bY=$J,xY=eY,SY=tY,CY=nY,wY=rY,TY=iY,EY=BB([RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY]),DY=`1.0`,OY=`1.1`,kY=`2.0`,AY=`SPDY`,jY=`QUIC`,MY=DY,NY=OY,PY=kY,FY=AY,IY=jY,LY={HTTP_1_0:DY,HTTP_1_1:OY,HTTP_2_0:kY,SPDY:AY,QUIC:jY},RY=`queue`,zY=`topic`,BY=RY,VY=zY,HY=BB([RY,zY]),UY=`receive`,WY=`process`,GY=UY,KY=WY,qY=BB([UY,WY]),JY=0,YY=1,XY=2,ZY=3,QY=4,$Y=5,eX=6,tX=7,nX=8,rX=9,iX=10,aX=11,oX=12,sX=13,cX=14,lX=15,uX=16,dX=JY,fX=YY,pX=XY,mX=ZY,hX=QY,gX=$Y,_X=eX,vX=tX,yX=nX,bX=rX,xX=iX,SX=aX,CX=oX,wX=sX,TX=cX,EX=lX,DX=uX,OX={OK:JY,CANCELLED:YY,UNKNOWN:XY,INVALID_ARGUMENT:ZY,DEADLINE_EXCEEDED:QY,NOT_FOUND:$Y,ALREADY_EXISTS:eX,PERMISSION_DENIED:tX,RESOURCE_EXHAUSTED:nX,FAILED_PRECONDITION:rX,ABORTED:iX,OUT_OF_RANGE:aX,UNIMPLEMENTED:oX,INTERNAL:sX,UNAVAILABLE:cX,DATA_LOSS:lX,UNAUTHENTICATED:uX},kX=`SENT`,AX=`RECEIVED`,jX=kX,MX=AX,NX=BB([kX,AX])})),FX=n((()=>{PX()})),IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,DQ,OQ,kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,S0,C0,w0,T0,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0=n((()=>{VB(),IX=`cloud.provider`,LX=`cloud.account.id`,RX=`cloud.region`,zX=`cloud.availability_zone`,BX=`cloud.platform`,VX=`aws.ecs.container.arn`,HX=`aws.ecs.cluster.arn`,UX=`aws.ecs.launchtype`,WX=`aws.ecs.task.arn`,GX=`aws.ecs.task.family`,KX=`aws.ecs.task.revision`,qX=`aws.eks.cluster.arn`,JX=`aws.log.group.names`,YX=`aws.log.group.arns`,XX=`aws.log.stream.names`,ZX=`aws.log.stream.arns`,QX=`container.name`,$X=`container.id`,eZ=`container.runtime`,tZ=`container.image.name`,nZ=`container.image.tag`,rZ=`deployment.environment`,iZ=`device.id`,aZ=`device.model.identifier`,oZ=`device.model.name`,sZ=`faas.name`,cZ=`faas.id`,lZ=`faas.version`,uZ=`faas.instance`,dZ=`faas.max_memory`,fZ=`host.id`,pZ=`host.name`,mZ=`host.type`,hZ=`host.arch`,gZ=`host.image.name`,_Z=`host.image.id`,vZ=`host.image.version`,yZ=`k8s.cluster.name`,bZ=`k8s.node.name`,xZ=`k8s.node.uid`,SZ=`k8s.namespace.name`,CZ=`k8s.pod.uid`,wZ=`k8s.pod.name`,TZ=`k8s.container.name`,EZ=`k8s.replicaset.uid`,DZ=`k8s.replicaset.name`,OZ=`k8s.deployment.uid`,kZ=`k8s.deployment.name`,AZ=`k8s.statefulset.uid`,jZ=`k8s.statefulset.name`,MZ=`k8s.daemonset.uid`,NZ=`k8s.daemonset.name`,PZ=`k8s.job.uid`,FZ=`k8s.job.name`,IZ=`k8s.cronjob.uid`,LZ=`k8s.cronjob.name`,RZ=`os.type`,zZ=`os.description`,BZ=`os.name`,VZ=`os.version`,HZ=`process.pid`,UZ=`process.executable.name`,WZ=`process.executable.path`,GZ=`process.command`,KZ=`process.command_line`,qZ=`process.command_args`,JZ=`process.owner`,YZ=`process.runtime.name`,XZ=`process.runtime.version`,ZZ=`process.runtime.description`,QZ=`service.name`,$Z=`service.namespace`,eQ=`service.instance.id`,tQ=`service.version`,nQ=`telemetry.sdk.name`,rQ=`telemetry.sdk.language`,iQ=`telemetry.sdk.version`,aQ=`telemetry.auto.version`,oQ=`webengine.name`,sQ=`webengine.version`,cQ=`webengine.description`,lQ=IX,uQ=LX,dQ=RX,fQ=zX,pQ=BX,mQ=VX,hQ=HX,gQ=UX,_Q=WX,vQ=GX,yQ=KX,bQ=qX,xQ=JX,SQ=YX,CQ=XX,wQ=ZX,TQ=QX,EQ=$X,DQ=eZ,OQ=tZ,kQ=nZ,AQ=rZ,jQ=iZ,MQ=aZ,NQ=oZ,PQ=sZ,FQ=cZ,IQ=lZ,LQ=uZ,RQ=dZ,zQ=fZ,BQ=pZ,VQ=mZ,HQ=hZ,UQ=gZ,WQ=_Z,GQ=vZ,KQ=yZ,qQ=bZ,JQ=xZ,YQ=SZ,XQ=CZ,ZQ=wZ,QQ=TZ,$Q=EZ,e$=DZ,t$=OZ,n$=kZ,r$=AZ,i$=jZ,a$=MZ,o$=NZ,s$=PZ,c$=FZ,l$=IZ,u$=LZ,d$=RZ,f$=zZ,p$=BZ,m$=VZ,h$=HZ,g$=UZ,_$=WZ,v$=GZ,y$=KZ,b$=qZ,x$=JZ,S$=YZ,C$=XZ,w$=ZZ,T$=QZ,E$=$Z,D$=eQ,O$=tQ,k$=nQ,A$=rQ,j$=iQ,M$=aQ,N$=oQ,P$=sQ,F$=cQ,I$=BB([IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ]),L$=`alibaba_cloud`,R$=`aws`,z$=`azure`,B$=`gcp`,V$=L$,H$=R$,U$=z$,W$=B$,G$=BB([L$,R$,z$,B$]),K$=`alibaba_cloud_ecs`,q$=`alibaba_cloud_fc`,J$=`aws_ec2`,Y$=`aws_ecs`,X$=`aws_eks`,Z$=`aws_lambda`,Q$=`aws_elastic_beanstalk`,$$=`azure_vm`,e1=`azure_container_instances`,t1=`azure_aks`,n1=`azure_functions`,r1=`azure_app_service`,i1=`gcp_compute_engine`,a1=`gcp_cloud_run`,o1=`gcp_kubernetes_engine`,s1=`gcp_cloud_functions`,c1=`gcp_app_engine`,l1=K$,u1=q$,d1=J$,f1=Y$,p1=X$,m1=Z$,h1=Q$,g1=$$,_1=e1,v1=t1,y1=n1,b1=r1,x1=i1,S1=a1,C1=o1,w1=s1,T1=c1,E1=BB([K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1]),D1=`ec2`,O1=`fargate`,k1=D1,A1=O1,j1=BB([D1,O1]),M1=`amd64`,N1=`arm32`,P1=`arm64`,F1=`ia64`,I1=`ppc32`,L1=`ppc64`,R1=`x86`,z1=M1,B1=N1,V1=P1,H1=F1,U1=I1,W1=L1,G1=R1,K1=BB([M1,N1,P1,F1,I1,L1,R1]),q1=`windows`,J1=`linux`,Y1=`darwin`,X1=`freebsd`,Z1=`netbsd`,Q1=`openbsd`,$1=`dragonflybsd`,e0=`hpux`,t0=`aix`,n0=`solaris`,r0=`z_os`,i0=q1,a0=J1,o0=Y1,s0=X1,c0=Z1,l0=Q1,u0=$1,d0=e0,f0=t0,p0=n0,m0=r0,h0=BB([q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0]),g0=`cpp`,_0=`dotnet`,v0=`erlang`,y0=`go`,b0=`java`,x0=`nodejs`,S0=`php`,C0=`python`,w0=`ruby`,T0=`webjs`,E0=g0,D0=_0,O0=v0,k0=y0,A0=b0,j0=x0,M0=S0,N0=C0,P0=w0,F0=T0,I0=BB([g0,_0,v0,y0,b0,x0,S0,C0,w0,T0])})),R0=n((()=>{L0()})),z0,B0,V0,H0,U0,W0,G0,K0,q0,J0,Y0,X0,Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3,c3,l3,u3,d3,f3=n((()=>{z0=`aspnetcore.diagnostics.exception.result`,B0=`aborted`,V0=`handled`,H0=`skipped`,U0=`unhandled`,W0=`aspnetcore.diagnostics.handler.type`,G0=`aspnetcore.rate_limiting.policy`,K0=`aspnetcore.rate_limiting.result`,q0=`acquired`,J0=`endpoint_limiter`,Y0=`global_limiter`,X0=`request_canceled`,Z0=`aspnetcore.request.is_unhandled`,Q0=`aspnetcore.routing.is_fallback`,$0=`aspnetcore.routing.match_status`,e2=`failure`,t2=`success`,n2=`aspnetcore.user.is_authenticated`,r2=`client.address`,i2=`client.port`,a2=`code.column.number`,o2=`code.file.path`,s2=`code.function.name`,c2=`code.line.number`,l2=`code.stacktrace`,u2=`db.collection.name`,d2=`db.namespace`,f2=`db.operation.batch.size`,p2=`db.operation.name`,m2=`db.query.summary`,h2=`db.query.text`,g2=`db.response.status_code`,_2=`db.stored_procedure.name`,v2=`db.system.name`,y2=`mariadb`,b2=`microsoft.sql_server`,x2=`mysql`,S2=`postgresql`,C2=`dotnet.gc.heap.generation`,w2=`gen0`,T2=`gen1`,E2=`gen2`,D2=`loh`,O2=`poh`,k2=`error.type`,A2=`_OTHER`,j2=`exception.escaped`,M2=`exception.message`,N2=`exception.stacktrace`,P2=`exception.type`,F2=e=>`http.request.header.${e}`,I2=`http.request.method`,L2=`_OTHER`,R2=`CONNECT`,z2=`DELETE`,B2=`GET`,V2=`HEAD`,H2=`OPTIONS`,U2=`PATCH`,W2=`POST`,G2=`PUT`,K2=`TRACE`,q2=`http.request.method_original`,J2=`http.request.resend_count`,Y2=e=>`http.response.header.${e}`,X2=`http.response.status_code`,Z2=`http.route`,Q2=`jvm.gc.action`,$2=`jvm.gc.name`,e4=`jvm.memory.pool.name`,t4=`jvm.memory.type`,n4=`heap`,r4=`non_heap`,i4=`jvm.thread.daemon`,a4=`jvm.thread.state`,o4=`blocked`,s4=`new`,c4=`runnable`,l4=`terminated`,u4=`timed_waiting`,d4=`waiting`,f4=`network.local.address`,p4=`network.local.port`,m4=`network.peer.address`,h4=`network.peer.port`,g4=`network.protocol.name`,_4=`network.protocol.version`,v4=`network.transport`,y4=`pipe`,b4=`quic`,x4=`tcp`,S4=`udp`,C4=`unix`,w4=`network.type`,T4=`ipv4`,E4=`ipv6`,D4=`otel.scope.name`,O4=`otel.scope.version`,k4=`otel.status_code`,A4=`ERROR`,j4=`OK`,M4=`otel.status_description`,N4=`server.address`,P4=`server.port`,F4=`service.name`,I4=`service.version`,L4=`signalr.connection.status`,R4=`app_shutdown`,z4=`normal_closure`,B4=`timeout`,V4=`signalr.transport`,H4=`long_polling`,U4=`server_sent_events`,W4=`web_sockets`,G4=`telemetry.sdk.language`,K4=`cpp`,q4=`dotnet`,J4=`erlang`,Y4=`go`,X4=`java`,Z4=`nodejs`,Q4=`php`,$4=`python`,e3=`ruby`,t3=`rust`,n3=`swift`,r3=`webjs`,i3=`telemetry.sdk.name`,a3=`telemetry.sdk.version`,o3=`url.fragment`,s3=`url.full`,c3=`url.path`,l3=`url.query`,u3=`url.scheme`,d3=`user_agent.original`})),p3,m3,h3,g3,_3,v3,y3,b3,x3,S3,C3,w3,T3,E3,D3,O3,k3,A3,j3,M3,N3,P3,F3,I3,L3,R3,z3,B3,V3,H3,U3,W3,G3,K3,q3,J3,Y3,X3,Z3,Q3,$3,e6,t6,n6,r6,i6,a6,o6,s6,c6,l6,u6=n((()=>{p3=`aspnetcore.diagnostics.exceptions`,m3=`aspnetcore.rate_limiting.active_request_leases`,h3=`aspnetcore.rate_limiting.queued_requests`,g3=`aspnetcore.rate_limiting.request.time_in_queue`,_3=`aspnetcore.rate_limiting.request_lease.duration`,v3=`aspnetcore.rate_limiting.requests`,y3=`aspnetcore.routing.match_attempts`,b3=`db.client.operation.duration`,x3=`dotnet.assembly.count`,S3=`dotnet.exceptions`,C3=`dotnet.gc.collections`,w3=`dotnet.gc.heap.total_allocated`,T3=`dotnet.gc.last_collection.heap.fragmentation.size`,E3=`dotnet.gc.last_collection.heap.size`,D3=`dotnet.gc.last_collection.memory.committed_size`,O3=`dotnet.gc.pause.time`,k3=`dotnet.jit.compilation.time`,A3=`dotnet.jit.compiled_il.size`,j3=`dotnet.jit.compiled_methods`,M3=`dotnet.monitor.lock_contentions`,N3=`dotnet.process.cpu.count`,P3=`dotnet.process.cpu.time`,F3=`dotnet.process.memory.working_set`,I3=`dotnet.thread_pool.queue.length`,L3=`dotnet.thread_pool.thread.count`,R3=`dotnet.thread_pool.work_item.count`,z3=`dotnet.timer.count`,B3=`http.client.request.duration`,V3=`http.server.request.duration`,H3=`jvm.class.count`,U3=`jvm.class.loaded`,W3=`jvm.class.unloaded`,G3=`jvm.cpu.count`,K3=`jvm.cpu.recent_utilization`,q3=`jvm.cpu.time`,J3=`jvm.gc.duration`,Y3=`jvm.memory.committed`,X3=`jvm.memory.limit`,Z3=`jvm.memory.used`,Q3=`jvm.memory.used_after_last_gc`,$3=`jvm.thread.count`,e6=`kestrel.active_connections`,t6=`kestrel.active_tls_handshakes`,n6=`kestrel.connection.duration`,r6=`kestrel.queued_connections`,i6=`kestrel.queued_requests`,a6=`kestrel.rejected_connections`,o6=`kestrel.tls_handshake.duration`,s6=`kestrel.upgraded_connections`,c6=`signalr.server.active_connections`,l6=`signalr.server.connection.duration`})),d6,f6=n((()=>{d6=`exception`})),p6=i({ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>B0,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>V0,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>H0,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>U0,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>q0,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>J0,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Y0,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>X0,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>e2,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>t2,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>z0,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>W0,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>G0,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>K0,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Z0,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Q0,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>$0,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>n2,ATTR_CLIENT_ADDRESS:()=>r2,ATTR_CLIENT_PORT:()=>i2,ATTR_CODE_COLUMN_NUMBER:()=>a2,ATTR_CODE_FILE_PATH:()=>o2,ATTR_CODE_FUNCTION_NAME:()=>s2,ATTR_CODE_LINE_NUMBER:()=>c2,ATTR_CODE_STACKTRACE:()=>l2,ATTR_DB_COLLECTION_NAME:()=>u2,ATTR_DB_NAMESPACE:()=>d2,ATTR_DB_OPERATION_BATCH_SIZE:()=>f2,ATTR_DB_OPERATION_NAME:()=>p2,ATTR_DB_QUERY_SUMMARY:()=>m2,ATTR_DB_QUERY_TEXT:()=>h2,ATTR_DB_RESPONSE_STATUS_CODE:()=>g2,ATTR_DB_STORED_PROCEDURE_NAME:()=>_2,ATTR_DB_SYSTEM_NAME:()=>v2,ATTR_DOTNET_GC_HEAP_GENERATION:()=>C2,ATTR_ERROR_TYPE:()=>k2,ATTR_EXCEPTION_ESCAPED:()=>j2,ATTR_EXCEPTION_MESSAGE:()=>M2,ATTR_EXCEPTION_STACKTRACE:()=>N2,ATTR_EXCEPTION_TYPE:()=>P2,ATTR_HTTP_REQUEST_HEADER:()=>F2,ATTR_HTTP_REQUEST_METHOD:()=>I2,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>q2,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>J2,ATTR_HTTP_RESPONSE_HEADER:()=>Y2,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>X2,ATTR_HTTP_ROUTE:()=>Z2,ATTR_JVM_GC_ACTION:()=>Q2,ATTR_JVM_GC_NAME:()=>$2,ATTR_JVM_MEMORY_POOL_NAME:()=>e4,ATTR_JVM_MEMORY_TYPE:()=>t4,ATTR_JVM_THREAD_DAEMON:()=>i4,ATTR_JVM_THREAD_STATE:()=>a4,ATTR_NETWORK_LOCAL_ADDRESS:()=>f4,ATTR_NETWORK_LOCAL_PORT:()=>p4,ATTR_NETWORK_PEER_ADDRESS:()=>m4,ATTR_NETWORK_PEER_PORT:()=>h4,ATTR_NETWORK_PROTOCOL_NAME:()=>g4,ATTR_NETWORK_PROTOCOL_VERSION:()=>_4,ATTR_NETWORK_TRANSPORT:()=>v4,ATTR_NETWORK_TYPE:()=>w4,ATTR_OTEL_SCOPE_NAME:()=>D4,ATTR_OTEL_SCOPE_VERSION:()=>O4,ATTR_OTEL_STATUS_CODE:()=>k4,ATTR_OTEL_STATUS_DESCRIPTION:()=>M4,ATTR_SERVER_ADDRESS:()=>N4,ATTR_SERVER_PORT:()=>P4,ATTR_SERVICE_NAME:()=>F4,ATTR_SERVICE_VERSION:()=>I4,ATTR_SIGNALR_CONNECTION_STATUS:()=>L4,ATTR_SIGNALR_TRANSPORT:()=>V4,ATTR_TELEMETRY_SDK_LANGUAGE:()=>G4,ATTR_TELEMETRY_SDK_NAME:()=>i3,ATTR_TELEMETRY_SDK_VERSION:()=>a3,ATTR_URL_FRAGMENT:()=>o3,ATTR_URL_FULL:()=>s3,ATTR_URL_PATH:()=>c3,ATTR_URL_QUERY:()=>l3,ATTR_URL_SCHEME:()=>u3,ATTR_USER_AGENT_ORIGINAL:()=>d3,AWSECSLAUNCHTYPEVALUES_EC2:()=>k1,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>A1,AwsEcsLaunchtypeValues:()=>j1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>l1,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>u1,CLOUDPLATFORMVALUES_AWS_EC2:()=>d1,CLOUDPLATFORMVALUES_AWS_ECS:()=>f1,CLOUDPLATFORMVALUES_AWS_EKS:()=>p1,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>h1,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>m1,CLOUDPLATFORMVALUES_AZURE_AKS:()=>v1,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>b1,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>_1,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>y1,CLOUDPLATFORMVALUES_AZURE_VM:()=>g1,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>T1,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>w1,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>S1,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>x1,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>C1,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>V$,CLOUDPROVIDERVALUES_AWS:()=>H$,CLOUDPROVIDERVALUES_AZURE:()=>U$,CLOUDPROVIDERVALUES_GCP:()=>W$,CloudPlatformValues:()=>E1,CloudProviderValues:()=>G$,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>Dq,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Fq,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Oq,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>Pq,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Aq,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Lq,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>jq,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>kq,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Iq,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Nq,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Mq,DBSYSTEMVALUES_ADABAS:()=>zK,DBSYSTEMVALUES_CACHE:()=>RK,DBSYSTEMVALUES_CASSANDRA:()=>nq,DBSYSTEMVALUES_CLOUDSCAPE:()=>AK,DBSYSTEMVALUES_COCKROACHDB:()=>mq,DBSYSTEMVALUES_COLDFUSION:()=>tq,DBSYSTEMVALUES_COSMOSDB:()=>cq,DBSYSTEMVALUES_COUCHBASE:()=>oq,DBSYSTEMVALUES_COUCHDB:()=>sq,DBSYSTEMVALUES_DB2:()=>EK,DBSYSTEMVALUES_DERBY:()=>VK,DBSYSTEMVALUES_DYNAMODB:()=>lq,DBSYSTEMVALUES_EDB:()=>LK,DBSYSTEMVALUES_ELASTICSEARCH:()=>fq,DBSYSTEMVALUES_FILEMAKER:()=>HK,DBSYSTEMVALUES_FIREBIRD:()=>BK,DBSYSTEMVALUES_FIRSTSQL:()=>IK,DBSYSTEMVALUES_GEODE:()=>dq,DBSYSTEMVALUES_H2:()=>eq,DBSYSTEMVALUES_HANADB:()=>PK,DBSYSTEMVALUES_HBASE:()=>rq,DBSYSTEMVALUES_HIVE:()=>kK,DBSYSTEMVALUES_HSQLDB:()=>jK,DBSYSTEMVALUES_INFORMIX:()=>UK,DBSYSTEMVALUES_INGRES:()=>FK,DBSYSTEMVALUES_INSTANTDB:()=>WK,DBSYSTEMVALUES_INTERBASE:()=>GK,DBSYSTEMVALUES_MARIADB:()=>KK,DBSYSTEMVALUES_MAXDB:()=>NK,DBSYSTEMVALUES_MEMCACHED:()=>pq,DBSYSTEMVALUES_MONGODB:()=>iq,DBSYSTEMVALUES_MSSQL:()=>CK,DBSYSTEMVALUES_MYSQL:()=>wK,DBSYSTEMVALUES_NEO4J:()=>uq,DBSYSTEMVALUES_NETEZZA:()=>qK,DBSYSTEMVALUES_ORACLE:()=>TK,DBSYSTEMVALUES_OTHER_SQL:()=>SK,DBSYSTEMVALUES_PERVASIVE:()=>JK,DBSYSTEMVALUES_POINTBASE:()=>YK,DBSYSTEMVALUES_POSTGRESQL:()=>DK,DBSYSTEMVALUES_PROGRESS:()=>MK,DBSYSTEMVALUES_REDIS:()=>aq,DBSYSTEMVALUES_REDSHIFT:()=>OK,DBSYSTEMVALUES_SQLITE:()=>XK,DBSYSTEMVALUES_SYBASE:()=>ZK,DBSYSTEMVALUES_TERADATA:()=>QK,DBSYSTEMVALUES_VERTICA:()=>$K,DB_SYSTEM_NAME_VALUE_MARIADB:()=>y2,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>b2,DB_SYSTEM_NAME_VALUE_MYSQL:()=>x2,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>S2,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>w2,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>T2,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>E2,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>D2,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>O2,DbCassandraConsistencyLevelValues:()=>Rq,DbSystemValues:()=>hq,ERROR_TYPE_VALUE_OTHER:()=>A2,EVENT_EXCEPTION:()=>d6,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>tJ,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>eJ,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>$q,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>sJ,FAASINVOKEDPROVIDERVALUES_AWS:()=>cJ,FAASINVOKEDPROVIDERVALUES_AZURE:()=>lJ,FAASINVOKEDPROVIDERVALUES_GCP:()=>uJ,FAASTRIGGERVALUES_DATASOURCE:()=>Wq,FAASTRIGGERVALUES_HTTP:()=>Gq,FAASTRIGGERVALUES_OTHER:()=>Jq,FAASTRIGGERVALUES_PUBSUB:()=>Kq,FAASTRIGGERVALUES_TIMER:()=>qq,FaasDocumentOperationValues:()=>nJ,FaasInvokedProviderValues:()=>dJ,FaasTriggerValues:()=>Yq,HOSTARCHVALUES_AMD64:()=>z1,HOSTARCHVALUES_ARM32:()=>B1,HOSTARCHVALUES_ARM64:()=>V1,HOSTARCHVALUES_IA64:()=>H1,HOSTARCHVALUES_PPC32:()=>U1,HOSTARCHVALUES_PPC64:()=>W1,HOSTARCHVALUES_X86:()=>G1,HTTPFLAVORVALUES_HTTP_1_0:()=>MY,HTTPFLAVORVALUES_HTTP_1_1:()=>NY,HTTPFLAVORVALUES_HTTP_2_0:()=>PY,HTTPFLAVORVALUES_QUIC:()=>IY,HTTPFLAVORVALUES_SPDY:()=>FY,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>R2,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>z2,HTTP_REQUEST_METHOD_VALUE_GET:()=>B2,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>V2,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>H2,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>L2,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>U2,HTTP_REQUEST_METHOD_VALUE_POST:()=>W2,HTTP_REQUEST_METHOD_VALUE_PUT:()=>G2,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>K2,HostArchValues:()=>K1,HttpFlavorValues:()=>LY,JVM_MEMORY_TYPE_VALUE_HEAP:()=>n4,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>r4,JVM_THREAD_STATE_VALUE_BLOCKED:()=>o4,JVM_THREAD_STATE_VALUE_NEW:()=>s4,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>c4,JVM_THREAD_STATE_VALUE_TERMINATED:()=>l4,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>u4,JVM_THREAD_STATE_VALUE_WAITING:()=>d4,MESSAGETYPEVALUES_RECEIVED:()=>MX,MESSAGETYPEVALUES_SENT:()=>jX,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>BY,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>VY,MESSAGINGOPERATIONVALUES_PROCESS:()=>KY,MESSAGINGOPERATIONVALUES_RECEIVE:()=>GY,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>p3,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>m3,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>h3,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>v3,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>_3,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>g3,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>y3,METRIC_DB_CLIENT_OPERATION_DURATION:()=>b3,METRIC_DOTNET_ASSEMBLY_COUNT:()=>x3,METRIC_DOTNET_EXCEPTIONS:()=>S3,METRIC_DOTNET_GC_COLLECTIONS:()=>C3,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>w3,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>T3,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>E3,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>D3,METRIC_DOTNET_GC_PAUSE_TIME:()=>O3,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>k3,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>A3,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>j3,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>M3,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>N3,METRIC_DOTNET_PROCESS_CPU_TIME:()=>P3,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>F3,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>I3,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>L3,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>R3,METRIC_DOTNET_TIMER_COUNT:()=>z3,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>B3,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>V3,METRIC_JVM_CLASS_COUNT:()=>H3,METRIC_JVM_CLASS_LOADED:()=>U3,METRIC_JVM_CLASS_UNLOADED:()=>W3,METRIC_JVM_CPU_COUNT:()=>G3,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>K3,METRIC_JVM_CPU_TIME:()=>q3,METRIC_JVM_GC_DURATION:()=>J3,METRIC_JVM_MEMORY_COMMITTED:()=>Y3,METRIC_JVM_MEMORY_LIMIT:()=>X3,METRIC_JVM_MEMORY_USED:()=>Z3,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>Q3,METRIC_JVM_THREAD_COUNT:()=>$3,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>e6,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>t6,METRIC_KESTREL_CONNECTION_DURATION:()=>n6,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>r6,METRIC_KESTREL_QUEUED_REQUESTS:()=>i6,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>a6,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>o6,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>s6,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>c6,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>l6,MessageTypeValues:()=>NX,MessagingDestinationKindValues:()=>HY,MessagingOperationValues:()=>qY,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>cY,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>dY,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>oY,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>vY,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>lY,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>uY,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>gY,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>aY,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>bY,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>fY,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>mY,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>yY,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>pY,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>hY,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>SY,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>_Y,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>TY,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>CY,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>wY,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>xY,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>sY,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>PJ,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>FJ,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>IJ,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>MJ,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>NJ,NETTRANSPORTVALUES_INPROC:()=>wJ,NETTRANSPORTVALUES_IP:()=>xJ,NETTRANSPORTVALUES_IP_TCP:()=>yJ,NETTRANSPORTVALUES_IP_UDP:()=>bJ,NETTRANSPORTVALUES_OTHER:()=>TJ,NETTRANSPORTVALUES_PIPE:()=>CJ,NETTRANSPORTVALUES_UNIX:()=>SJ,NETWORK_TRANSPORT_VALUE_PIPE:()=>y4,NETWORK_TRANSPORT_VALUE_QUIC:()=>b4,NETWORK_TRANSPORT_VALUE_TCP:()=>x4,NETWORK_TRANSPORT_VALUE_UDP:()=>S4,NETWORK_TRANSPORT_VALUE_UNIX:()=>C4,NETWORK_TYPE_VALUE_IPV4:()=>T4,NETWORK_TYPE_VALUE_IPV6:()=>E4,NetHostConnectionSubtypeValues:()=>EY,NetHostConnectionTypeValues:()=>LJ,NetTransportValues:()=>EJ,OSTYPEVALUES_AIX:()=>f0,OSTYPEVALUES_DARWIN:()=>o0,OSTYPEVALUES_DRAGONFLYBSD:()=>u0,OSTYPEVALUES_FREEBSD:()=>s0,OSTYPEVALUES_HPUX:()=>d0,OSTYPEVALUES_LINUX:()=>a0,OSTYPEVALUES_NETBSD:()=>c0,OSTYPEVALUES_OPENBSD:()=>l0,OSTYPEVALUES_SOLARIS:()=>p0,OSTYPEVALUES_WINDOWS:()=>i0,OSTYPEVALUES_Z_OS:()=>m0,OTEL_STATUS_CODE_VALUE_ERROR:()=>A4,OTEL_STATUS_CODE_VALUE_OK:()=>j4,OsTypeValues:()=>h0,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>xX,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>_X,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>fX,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>EX,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>hX,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>bX,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>wX,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>mX,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>gX,RPCGRPCSTATUSCODEVALUES_OK:()=>dX,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>SX,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>vX,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>yX,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>DX,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>TX,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>CX,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>pX,RpcGrpcStatusCodeValues:()=>OX,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>LW,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>YW,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>PW,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>AW,SEMATTRS_AWS_DYNAMODB_COUNT:()=>qW,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>HW,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>BW,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>XW,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>RW,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>jW,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>IW,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>VW,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>FW,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>MW,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>NW,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>JW,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>WW,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>GW,SEMATTRS_AWS_DYNAMODB_SELECT:()=>zW,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>UW,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>kW,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>KW,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>cU,SEMATTRS_CODE_FILEPATH:()=>fW,SEMATTRS_CODE_FUNCTION:()=>uW,SEMATTRS_CODE_LINENO:()=>pW,SEMATTRS_CODE_NAMESPACE:()=>dW,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>yU,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>wU,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>CU,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>xU,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>_U,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>vU,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>SU,SEMATTRS_DB_CASSANDRA_TABLE:()=>bU,SEMATTRS_DB_CONNECTION_STRING:()=>uU,SEMATTRS_DB_HBASE_NAMESPACE:()=>TU,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>fU,SEMATTRS_DB_MONGODB_COLLECTION:()=>DU,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>gU,SEMATTRS_DB_NAME:()=>pU,SEMATTRS_DB_OPERATION:()=>hU,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>EU,SEMATTRS_DB_SQL_TABLE:()=>OU,SEMATTRS_DB_STATEMENT:()=>mU,SEMATTRS_DB_SYSTEM:()=>lU,SEMATTRS_DB_USER:()=>dU,SEMATTRS_ENDUSER_ID:()=>aW,SEMATTRS_ENDUSER_ROLE:()=>oW,SEMATTRS_ENDUSER_SCOPE:()=>sW,SEMATTRS_EXCEPTION_ESCAPED:()=>MU,SEMATTRS_EXCEPTION_MESSAGE:()=>AU,SEMATTRS_EXCEPTION_STACKTRACE:()=>jU,SEMATTRS_EXCEPTION_TYPE:()=>kU,SEMATTRS_FAAS_COLDSTART:()=>VU,SEMATTRS_FAAS_CRON:()=>BU,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>FU,SEMATTRS_FAAS_DOCUMENT_NAME:()=>RU,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>IU,SEMATTRS_FAAS_DOCUMENT_TIME:()=>LU,SEMATTRS_FAAS_EXECUTION:()=>PU,SEMATTRS_FAAS_INVOKED_NAME:()=>HU,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>UU,SEMATTRS_FAAS_INVOKED_REGION:()=>WU,SEMATTRS_FAAS_TIME:()=>zU,SEMATTRS_FAAS_TRIGGER:()=>NU,SEMATTRS_HTTP_CLIENT_IP:()=>OW,SEMATTRS_HTTP_FLAVOR:()=>bW,SEMATTRS_HTTP_HOST:()=>_W,SEMATTRS_HTTP_METHOD:()=>mW,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>SW,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>CW,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>wW,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>TW,SEMATTRS_HTTP_ROUTE:()=>DW,SEMATTRS_HTTP_SCHEME:()=>vW,SEMATTRS_HTTP_SERVER_NAME:()=>EW,SEMATTRS_HTTP_STATUS_CODE:()=>yW,SEMATTRS_HTTP_TARGET:()=>gW,SEMATTRS_HTTP_URL:()=>hW,SEMATTRS_HTTP_USER_AGENT:()=>xW,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>EG,SEMATTRS_MESSAGE_ID:()=>TG,SEMATTRS_MESSAGE_TYPE:()=>wG,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>DG,SEMATTRS_MESSAGING_CONSUMER_ID:()=>lG,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>aG,SEMATTRS_MESSAGING_DESTINATION:()=>QW,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>$W,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>pG,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>fG,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>dG,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>mG,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>hG,SEMATTRS_MESSAGING_MESSAGE_ID:()=>iG,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>sG,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>oG,SEMATTRS_MESSAGING_OPERATION:()=>cG,SEMATTRS_MESSAGING_PROTOCOL:()=>tG,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>nG,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>uG,SEMATTRS_MESSAGING_SYSTEM:()=>ZW,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>eG,SEMATTRS_MESSAGING_URL:()=>rG,SEMATTRS_NET_HOST_CARRIER_ICC:()=>rW,SEMATTRS_NET_HOST_CARRIER_MCC:()=>tW,SEMATTRS_NET_HOST_CARRIER_MNC:()=>nW,SEMATTRS_NET_HOST_CARRIER_NAME:()=>eW,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>$U,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>QU,SEMATTRS_NET_HOST_IP:()=>YU,SEMATTRS_NET_HOST_NAME:()=>ZU,SEMATTRS_NET_HOST_PORT:()=>XU,SEMATTRS_NET_PEER_IP:()=>KU,SEMATTRS_NET_PEER_NAME:()=>JU,SEMATTRS_NET_PEER_PORT:()=>qU,SEMATTRS_NET_TRANSPORT:()=>GU,SEMATTRS_PEER_SERVICE:()=>iW,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>yG,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>SG,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>CG,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>xG,SEMATTRS_RPC_JSONRPC_VERSION:()=>bG,SEMATTRS_RPC_METHOD:()=>vG,SEMATTRS_RPC_SERVICE:()=>_G,SEMATTRS_RPC_SYSTEM:()=>gG,SEMATTRS_THREAD_ID:()=>cW,SEMATTRS_THREAD_NAME:()=>lW,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>hQ,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>mQ,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>gQ,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>_Q,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>vQ,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>yQ,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>bQ,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>SQ,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>xQ,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>wQ,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>CQ,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>uQ,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>fQ,SEMRESATTRS_CLOUD_PLATFORM:()=>pQ,SEMRESATTRS_CLOUD_PROVIDER:()=>lQ,SEMRESATTRS_CLOUD_REGION:()=>dQ,SEMRESATTRS_CONTAINER_ID:()=>EQ,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>OQ,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>kQ,SEMRESATTRS_CONTAINER_NAME:()=>TQ,SEMRESATTRS_CONTAINER_RUNTIME:()=>DQ,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>AQ,SEMRESATTRS_DEVICE_ID:()=>jQ,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>MQ,SEMRESATTRS_DEVICE_MODEL_NAME:()=>NQ,SEMRESATTRS_FAAS_ID:()=>FQ,SEMRESATTRS_FAAS_INSTANCE:()=>LQ,SEMRESATTRS_FAAS_MAX_MEMORY:()=>RQ,SEMRESATTRS_FAAS_NAME:()=>PQ,SEMRESATTRS_FAAS_VERSION:()=>IQ,SEMRESATTRS_HOST_ARCH:()=>HQ,SEMRESATTRS_HOST_ID:()=>zQ,SEMRESATTRS_HOST_IMAGE_ID:()=>WQ,SEMRESATTRS_HOST_IMAGE_NAME:()=>UQ,SEMRESATTRS_HOST_IMAGE_VERSION:()=>GQ,SEMRESATTRS_HOST_NAME:()=>BQ,SEMRESATTRS_HOST_TYPE:()=>VQ,SEMRESATTRS_K8S_CLUSTER_NAME:()=>KQ,SEMRESATTRS_K8S_CONTAINER_NAME:()=>QQ,SEMRESATTRS_K8S_CRONJOB_NAME:()=>u$,SEMRESATTRS_K8S_CRONJOB_UID:()=>l$,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>o$,SEMRESATTRS_K8S_DAEMONSET_UID:()=>a$,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>n$,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>t$,SEMRESATTRS_K8S_JOB_NAME:()=>c$,SEMRESATTRS_K8S_JOB_UID:()=>s$,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>YQ,SEMRESATTRS_K8S_NODE_NAME:()=>qQ,SEMRESATTRS_K8S_NODE_UID:()=>JQ,SEMRESATTRS_K8S_POD_NAME:()=>ZQ,SEMRESATTRS_K8S_POD_UID:()=>XQ,SEMRESATTRS_K8S_REPLICASET_NAME:()=>e$,SEMRESATTRS_K8S_REPLICASET_UID:()=>$Q,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>i$,SEMRESATTRS_K8S_STATEFULSET_UID:()=>r$,SEMRESATTRS_OS_DESCRIPTION:()=>f$,SEMRESATTRS_OS_NAME:()=>p$,SEMRESATTRS_OS_TYPE:()=>d$,SEMRESATTRS_OS_VERSION:()=>m$,SEMRESATTRS_PROCESS_COMMAND:()=>v$,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>b$,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>y$,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>g$,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>_$,SEMRESATTRS_PROCESS_OWNER:()=>x$,SEMRESATTRS_PROCESS_PID:()=>h$,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>w$,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>S$,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>C$,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>D$,SEMRESATTRS_SERVICE_NAME:()=>T$,SEMRESATTRS_SERVICE_NAMESPACE:()=>E$,SEMRESATTRS_SERVICE_VERSION:()=>O$,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>M$,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>A$,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>k$,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>j$,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>F$,SEMRESATTRS_WEBENGINE_NAME:()=>N$,SEMRESATTRS_WEBENGINE_VERSION:()=>P$,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>R4,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>z4,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>B4,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>H4,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>U4,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>W4,SemanticAttributes:()=>OG,SemanticResourceAttributes:()=>I$,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>E0,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>D0,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>O0,TELEMETRYSDKLANGUAGEVALUES_GO:()=>k0,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>A0,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>j0,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>M0,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>N0,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>P0,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>F0,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>K4,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>q4,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>J4,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>Y4,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>X4,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Z4,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>Q4,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>$4,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>e3,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>t3,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>n3,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>r3,TelemetrySdkLanguageValues:()=>I0}),m6=n((()=>{FX(),R0(),f3(),u6(),f6()})),h6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SeverityNumber=void 0,(function(e){e[e.UNSPECIFIED=0]=`UNSPECIFIED`,e[e.TRACE=1]=`TRACE`,e[e.TRACE2=2]=`TRACE2`,e[e.TRACE3=3]=`TRACE3`,e[e.TRACE4=4]=`TRACE4`,e[e.DEBUG=5]=`DEBUG`,e[e.DEBUG2=6]=`DEBUG2`,e[e.DEBUG3=7]=`DEBUG3`,e[e.DEBUG4=8]=`DEBUG4`,e[e.INFO=9]=`INFO`,e[e.INFO2=10]=`INFO2`,e[e.INFO3=11]=`INFO3`,e[e.INFO4=12]=`INFO4`,e[e.WARN=13]=`WARN`,e[e.WARN2=14]=`WARN2`,e[e.WARN3=15]=`WARN3`,e[e.WARN4=16]=`WARN4`,e[e.ERROR=17]=`ERROR`,e[e.ERROR2=18]=`ERROR2`,e[e.ERROR3=19]=`ERROR3`,e[e.ERROR4=20]=`ERROR4`,e[e.FATAL=21]=`FATAL`,e[e.FATAL2=22]=`FATAL2`,e[e.FATAL3=23]=`FATAL3`,e[e.FATAL4=24]=`FATAL4`})(e.SeverityNumber||={})})),g6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NOOP_LOGGER=e.NoopLogger=void 0;var t=class{emit(e){}};e.NoopLogger=t,e.NOOP_LOGGER=new t})),_6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.API_BACKWARDS_COMPATIBILITY_VERSION=e.makeGetter=e._global=e.GLOBAL_LOGS_API_KEY=void 0,e.GLOBAL_LOGS_API_KEY=Symbol.for(`io.opentelemetry.js.api.logs`),e._global=globalThis;function t(e,t,n){return r=>r===e?t:n}e.makeGetter=t,e.API_BACKWARDS_COMPATIBILITY_VERSION=1})),v6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NOOP_LOGGER_PROVIDER=e.NoopLoggerProvider=void 0;let t=g6();var n=class{getLogger(e,n,r){return new t.NoopLogger}};e.NoopLoggerProvider=n,e.NOOP_LOGGER_PROVIDER=new n})),y6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProxyLogger=void 0;let t=g6();e.ProxyLogger=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):t.NOOP_LOGGER}}})),b6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProxyLoggerProvider=void 0;let t=v6(),n=y6();e.ProxyLoggerProvider=class{getLogger(e,t,r){return this._getDelegateLogger(e,t,r)??new n.ProxyLogger(this,e,t,r)}_getDelegate(){return this._delegate??t.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}}})),x6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LogsAPI=void 0;let t=_6(),n=v6(),r=b6();e.LogsAPI=class e{constructor(){this._proxyLoggerProvider=new r.ProxyLoggerProvider}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return t._global[t.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(t._global[t.GLOBAL_LOGS_API_KEY]=(0,t.makeGetter)(t.API_BACKWARDS_COMPATIBILITY_VERSION,e,n.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return t._global[t.GLOBAL_LOGS_API_KEY]?.call(t._global,t.API_BACKWARDS_COMPATIBILITY_VERSION)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete t._global[t.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new r.ProxyLoggerProvider}}})),S6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.logs=e.NoopLogger=e.NOOP_LOGGER=e.SeverityNumber=void 0;var t=h6();Object.defineProperty(e,`SeverityNumber`,{enumerable:!0,get:function(){return t.SeverityNumber}});var n=g6();Object.defineProperty(e,`NOOP_LOGGER`,{enumerable:!0,get:function(){return n.NOOP_LOGGER}}),Object.defineProperty(e,`NoopLogger`,{enumerable:!0,get:function(){return n.NoopLogger}}),e.logs=x6().LogsAPI.getInstance()})),C6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.disableInstrumentations=e.enableInstrumentations=void 0;function t(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}e.enableInstrumentations=t;function n(e){e.forEach(e=>e.disable())}e.disableInstrumentations=n})),w6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerInstrumentations=void 0;let n=($(),e(Q)),r=S6(),i=C6();function a(e){let t=e.tracerProvider||n.trace.getTracerProvider(),a=e.meterProvider||n.metrics.getMeterProvider(),o=e.loggerProvider||r.logs.getLoggerProvider(),s=e.instrumentations?.flat()??[];return(0,i.enableInstrumentations)(s,t,a,o),()=>{(0,i.disableInstrumentations)(s)}}t.registerInstrumentations=a})),T6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.satisfies=void 0;let n=($(),e(Q)),r=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,i=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function o(e,t,r){if(!s(e))return n.diag.error(`Invalid version: ${e}`),!1;if(!t)return!0;t=t.replace(/([<>=~^]+)\s+/g,`$1`);let i=m(e);if(!i)return!1;let a=[],o=c(i,t,a,r);return o&&!r?.includePrerelease?d(i,a):o}t.satisfies=o;function s(e){return typeof e==`string`&&r.test(e)}function c(e,t,n,r){if(t.includes(`||`)){let i=t.trim().split(`||`);for(let t of i)if(l(e,t,n,r))return!0;return!1}else if(t.includes(` - `))t=te(t,r);else if(t.includes(` `)){let i=t.trim().replace(/\s{2,}/g,` `).split(` `);for(let t of i)if(!l(e,t,n,r))return!1;return!0}return l(e,t,n,r)}function l(e,t,n,r){if(t=f(t,r),t.includes(` `))return c(e,t,n,r);{let r=h(t);return n.push(r),u(e,r)}}function u(e,t){if(t.invalid)return!1;if(!t.version||g(t.version))return!0;let n=b(e.versionSegments||[],t.versionSegments||[]);if(n===0){let r=e.prereleaseSegments||[],i=t.prereleaseSegments||[];n=!r.length&&!i.length?0:!r.length&&i.length?1:r.length&&!i.length?-1:b(r,i)}return a[t.op]?.includes(n)}function d(e,t){return e.prerelease?t.some(t=>t.prerelease&&t.version===e.version):!0}function f(e,t){return e=e.trim(),e=L(e,t),e=I(e),e=R(e,t),e=e.trim(),e}function p(e){return!e||e.toLowerCase()===`x`||e===`*`}function m(e){let t=e.match(r);if(!t){n.diag.error(`Invalid version: ${e}`);return}let i=t.groups.version,a=t.groups.prerelease,o=t.groups.build,s=i.split(`.`),c=a?.split(`.`);return{op:void 0,version:i,versionSegments:s,versionSegmentCount:s.length,prerelease:a,prereleaseSegments:c,prereleaseSegmentCount:c?c.length:0,build:o}}function h(e){if(!e)return{};let t=e.match(i);if(!t)return n.diag.error(`Invalid range: ${e}`),{invalid:!0};let r=t.groups.op,a=t.groups.version,o=t.groups.prerelease,s=t.groups.build,c=a.split(`.`),l=o?.split(`.`);return r===`==`&&(r=`=`),{op:r||`=`,version:a,versionSegments:c,versionSegmentCount:c.length,prerelease:o,prereleaseSegments:l,prereleaseSegmentCount:l?l.length:0,build:s}}function g(e){return e===`*`||e===`x`||e===`X`}function _(e){let t=parseInt(e,10);return isNaN(t)?e:t}function v(e,t){if(typeof e==typeof t){if(typeof e==`number`||typeof e==`string`)return[e,t];throw Error(`Version segments can only be strings or numbers`)}else return[String(e),String(t)]}function y(e,t){if(g(e)||g(t))return 0;let[n,r]=v(_(e),_(t));return n>r?1:n<r?-1:0}function b(e,t){for(let n=0;n<Math.max(e.length,t.length);n++){let r=y(e[n]||`0`,t[n]||`0`);if(r!==0)return r}return 0}let x=`[a-zA-Z0-9-]`,S=`0|[1-9]\\d*`,C=`(?:${S}|${`\\d*[a-zA-Z-]${x}*`})`,w=`(?:-(${C}(?:\\.${C})*))`,T=`${x}+`,E=`(?:\\+(${T}(?:\\.${T})*))`,D=`${S}|x|X|\\*`,O=`[v=\\s]*(${D})(?:\\.(${D})(?:\\.(${D})(?:${w})?${E}?)?)?`,k=`^((?:<|>)?=?)\\s*${O}$`,A=new RegExp(k),j=`^\\s*(${O})\\s+-\\s+(${O})\\s*$`,M=new RegExp(j),ee=`^(?:~>?)${O}$`,N=new RegExp(ee),P=`^(?:\\^)${O}$`,F=new RegExp(P);function I(e){let t=N;return e.replace(t,(e,t,n,r,i)=>{let a;return a=p(t)?``:p(n)?`>=${t}.0.0 <${+t+1}.0.0-0`:p(r)?`>=${t}.${n}.0 <${t}.${+n+1}.0-0`:i?`>=${t}.${n}.${r}-${i} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${r} <${t}.${+n+1}.0-0`,a})}function L(e,t){let n=F,r=t?.includePrerelease?`-0`:``;return e.replace(n,(e,t,n,i,a)=>{let o;return o=p(t)?``:p(n)?`>=${t}.0.0${r} <${+t+1}.0.0-0`:p(i)?t===`0`?`>=${t}.${n}.0${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.0${r} <${+t+1}.0.0-0`:a?t===`0`?n===`0`?`>=${t}.${n}.${i}-${a} <${t}.${n}.${+i+1}-0`:`>=${t}.${n}.${i}-${a} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${i}-${a} <${+t+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${i}${r} <${t}.${n}.${+i+1}-0`:`>=${t}.${n}.${i}${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${i} <${+t+1}.0.0-0`,o})}function R(e,t){let n=A;return e.replace(n,(e,n,r,i,a,o)=>{let s=p(r),c=s||p(i),l=c||p(a),u=l;return n===`=`&&u&&(n=``),o=t?.includePrerelease?`-0`:``,s?e=n===`>`||n===`<`?`<0.0.0-0`:`*`:n&&u?(c&&(i=0),a=0,n===`>`?(n=`>=`,c?(r=+r+1,i=0,a=0):(i=+i+1,a=0)):n===`<=`&&(n=`<`,c?r=+r+1:i=+i+1),n===`<`&&(o=`-0`),e=`${n+r}.${i}.${a}${o}`):c?e=`>=${r}.0.0${o} <${+r+1}.0.0-0`:l&&(e=`>=${r}.${i}.0${o} <${r}.${+i+1}.0-0`),e})}function te(e,t){let n=M;return e.replace(n,(e,n,r,i,a,o,s,c,l,u,d,f)=>(n=p(r)?``:p(i)?`>=${r}.0.0${t?.includePrerelease?`-0`:``}`:p(a)?`>=${r}.${i}.0${t?.includePrerelease?`-0`:``}`:o?`>=${n}`:`>=${n}${t?.includePrerelease?`-0`:``}`,c=p(l)?``:p(u)?`<${+l+1}.0.0-0`:p(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:t?.includePrerelease?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()))}})),E6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.massUnwrap=e.unwrap=e.massWrap=e.wrap=void 0;let t=console.error.bind(console);function n(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}e.wrap=(e,r,i)=>{if(!e||!e[r]){t(`no original function `+String(r)+` to wrap`);return}if(!i){t(`no wrapper function`),t(Error().stack);return}let a=e[r];if(typeof a!=`function`||typeof i!=`function`){t(`original object and wrapper must be functions`);return}let o=i(a,r);return n(o,`__original`,a),n(o,`__unwrap`,()=>{e[r]===o&&n(e,r,a)}),n(o,`__wrapped`,!0),n(e,r,o),o},e.massWrap=(n,r,i)=>{if(n)Array.isArray(n)||(n=[n]);else{t(`must provide one or more modules to patch`),t(Error().stack);return}if(!(r&&Array.isArray(r))){t(`must provide one or more functions to wrap on modules`);return}n.forEach(t=>{r.forEach(n=>{(0,e.wrap)(t,n,i)})})},e.unwrap=(e,n)=>{if(!e||!e[n]){t(`no function to unwrap.`),t(Error().stack);return}let r=e[n];if(!r.__unwrap)t(`no original to unwrap to -- has `+String(n)+` already been unwrapped?`);else{r.__unwrap();return}},e.massUnwrap=(n,r)=>{if(n)Array.isArray(n)||(n=[n]);else{t(`must provide one or more modules to patch`),t(Error().stack);return}if(!(r&&Array.isArray(r))){t(`must provide one or more functions to unwrap on modules`);return}n.forEach(t=>{r.forEach(n=>{(0,e.unwrap)(t,n)})})};function r(e){e&&e.logger&&(typeof e.logger==`function`?t=e.logger:t(`new logger isn't a function, not replacing`))}e.default=r,r.wrap=e.wrap,r.massWrap=e.massWrap,r.unwrap=e.unwrap,r.massUnwrap=e.massUnwrap})),D6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.InstrumentationAbstract=void 0;let n=($(),e(Q)),r=S6(),i=E6();t.InstrumentationAbstract=class{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,t,i){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(i),this._diag=n.diag.createComponentLogger({namespace:e}),this._tracer=n.trace.getTracer(e,t),this._meter=n.metrics.getMeter(e,t),this._logger=r.logs.getLogger(e,t),this._updateMetricInstruments()}_wrap=i.wrap;_unwrap=i.unwrap;_massWrap=i.massWrap;_massUnwrap=i.massUnwrap;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}}})),O6=a(((e,n)=>{var r=t(`path`).sep;n.exports=function(e){var t=e.split(r),n=t.lastIndexOf(`node_modules`);if(n!==-1&&t[n+1]){for(var i=t[n+1][0]===`@`,a=i?t[n+1]+`/`+t[n+2]:t[n+1],o=i?3:2,s=``,c=n+o-1,l=0;l<=c;l++)l===c?s+=t[l]:s+=t[l]+r;for(var u=``,d=t.length-1,f=n+o;f<=d;f++)f===d?u+=t[f]:u+=t[f]+r;return{name:a,basedir:s,path:u}}}})),k6=a(((e,n)=>{let r=t(`path`),i=t(`module`),a=me()(`require-in-the-middle`),o=O6();n.exports=d,n.exports.Hook=d;let s,c;if(i.isBuiltin)c=i.isBuiltin;else if(i.builtinModules)c=e=>e.startsWith(`node:`)?!0:(s===void 0&&(s=new Set(i.builtinModules)),s.has(e));else throw Error(`'require-in-the-middle' requires Node.js >=v9.3.0 or >=v8.10.0`);let l=/([/\\]index)?(\.js)?$/;var u=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol(`RitmExports`)}has(e,n){if(this._localCache.has(e))return!0;if(n)return!1;{let n=t.cache[e];return!!(n&&this._kRitmExports in n)}}get(e,n){let r=this._localCache.get(e);if(r!==void 0)return r;if(!n){let n=t.cache[e];return n&&n[this._kRitmExports]}}set(e,n,r){r?this._localCache.set(e,n):e in t.cache?t.cache[e][this._kRitmExports]=n:(a(`non-core module is unexpectedly not in require.cache: "%s"`,e),this._localCache.set(e,n))}};function d(e,n,s){if(!(this instanceof d))return new d(e,n,s);if(typeof e==`function`?(s=e,e=null,n=null):typeof n==`function`&&(s=n,n=null),typeof i._resolveFilename!=`function`){console.error(`Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!`,typeof i._resolveFilename),console.error(`Please report this error as an issue related to Node.js %s at https://github.com/nodejs/require-in-the-middle/issues`,process.version);return}this._cache=new u,this._unhooked=!1,this._origRequire=i.prototype.require;let l=this,p=new Set,m=n?n.internals===!0:!1,h=Array.isArray(e);a(`registering require hook`),this._require=i.prototype.require=function(e){return l._unhooked===!0?(a(`ignoring require call - module is soft-unhooked`),l._origRequire.apply(this,arguments)):g.call(this,arguments,!1)},typeof process.getBuiltinModule==`function`&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(e){return l._unhooked===!0?(a(`ignoring process.getBuiltinModule call - module is soft-unhooked`),l._origGetBuiltinModule.apply(this,arguments)):g.call(this,arguments,!0)});function g(n,u){let d=n[0],g=c(d),_;if(g){if(_=d,d.startsWith(`node:`)){let e=d.slice(5);c(e)&&(_=e)}}else if(u)return a(`call to process.getBuiltinModule with unknown built-in id`),l._origGetBuiltinModule.apply(this,n);else try{_=i._resolveFilename(d,this)}catch(e){return a(`Module._resolveFilename("%s") threw %j, calling original Module.require`,d,e.message),l._origRequire.apply(this,n)}let v,y;if(a(`processing %s module require('%s'): %s`,g===!0?`core`:`non-core`,d,_),l._cache.has(_,g)===!0)return a(`returning already patched cached module: %s`,_),l._cache.get(_,g);let b=p.has(_);b===!1&&p.add(_);let x=u?l._origGetBuiltinModule.apply(this,n):l._origRequire.apply(this,n);if(b===!0)return a(`module is in the process of being patched already - ignoring: %s`,_),x;if(p.delete(_),g===!0){if(h===!0&&e.includes(_)===!1)return a(`ignoring core module not on whitelist: %s`,_),x;v=_}else if(h===!0&&e.includes(_)){let e=r.parse(_);v=e.name,y=e.dir}else{let n=o(_);if(n===void 0)return a(`could not parse filename: %s`,_),x;v=n.name,y=n.basedir;let i=f(n);a(`resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)`,v,d,i,y);let s=!1;if(h){if(!d.startsWith(`.`)&&e.includes(d)&&(v=d,s=!0),!e.includes(v)&&!e.includes(i))return x;e.includes(i)&&i!==v&&(v=i,s=!0)}if(!s){let e;try{e=t.resolve(v,{paths:[y]})}catch{return a(`could not resolve module: %s`,v),l._cache.set(_,x,g),x}if(e!==_)if(m===!0)v=v+r.sep+r.relative(y,_),a(`preparing to process require of internal file: %s`,v);else return a(`ignoring require of non-main module file: %s`,e),l._cache.set(_,x,g),x}}l._cache.set(_,x,g),a(`calling require hook: %s`,v);let S=s(x,v,y);return l._cache.set(_,S,g),a(`returning module: %s`,v),S}}d.prototype.unhook=function(){this._unhooked=!0,this._require===i.prototype.require?(i.prototype.require=this._origRequire,a(`require unhook successful`)):a(`require unhook unsuccessful`),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,a(`process.getBuiltinModule unhook successful`)):a(`process.getBuiltinModule unhook unsuccessful`))};function f(e){let t=r.sep===`/`?e.path:e.path.split(r.sep).join(`/`);return r.posix.join(e.name,t).replace(l,``)}})),A6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleNameTrie=e.ModuleNameSeparator=void 0,e.ModuleNameSeparator=`/`;var t=class{hooks=[];children=new Map};e.ModuleNameTrie=class{_trie=new t;_counter=0;insert(n){let r=this._trie;for(let i of n.moduleName.split(e.ModuleNameSeparator)){let e=r.children.get(i);e||(e=new t,r.children.set(i,e)),r=e}r.hooks.push({hook:n,insertedId:this._counter++})}search(t,{maintainInsertionOrder:n,fullOnly:r}={}){let i=this._trie,a=[],o=!0;for(let n of t.split(e.ModuleNameSeparator)){let e=i.children.get(n);if(!e){o=!1;break}r||a.push(...e.hooks),i=e}return r&&o&&a.push(...i.hooks),a.length===0?[]:a.length===1?[a[0].hook]:(n&&a.sort((e,t)=>e.insertedId-t.insertedId),a.map(({hook:e})=>e))}}})),j6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequireInTheMiddleSingleton=void 0;let n=k6(),r=t(`path`),i=A6(),a=[`afterEach`,`after`,`beforeEach`,`before`,`describe`,`it`].every(e=>typeof global[e]==`function`);e.RequireInTheMiddleSingleton=class e{_moduleNameTrie=new i.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new n.Hook(null,{internals:!0},(e,t,n)=>{let r=o(t),i=this._moduleNameTrie.search(r,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:r}of i)e=r(e,t,n);return e})}register(e,t){let n={moduleName:e,onRequire:t};return this._moduleNameTrie.insert(n),n}static getInstance(){return a?new e:this._instance=this._instance??new e}};function o(e){return r.sep===i.ModuleNameSeparator?e:e.split(r.sep).join(i.ModuleNameSeparator)}})),M6=a((e=>{let t=[],n=new WeakMap,r=new WeakMap,i=new Map,a=[],o={set(e,t,r){let i=n.get(e),a=i&&i[t];return typeof a==`function`?a(r):!0},get(e,t){if(t===Symbol.toStringTag)return`Module`;let n=r.get(e)[t];if(typeof n==`function`)return n()},defineProperty(e,t,r){if(!(`value`in r))throw Error(`Getters/setters are not supported for exports property descriptors.`);let i=n.get(e),a=i&&i[t];return typeof a==`function`?a(r.value):!0}};function s(e,s,c,l,u){i.set(e,u),n.set(s,c),r.set(s,l);let d=new Proxy(s,o);t.forEach(t=>t(e,d,u)),a.push([e,d,u])}e.register=s,e.importHooks=t,e.specifiers=i,e.toHook=a})),N6=a(((e,n)=>{let r=t(`path`),i=O6(),{fileURLToPath:a}=t(`url`),{MessageChannel:o}=t(`worker_threads`),{isBuiltin:s}=t(`module`);s||=()=>!0;let{importHooks:c,specifiers:l,toHook:u}=M6();function d(e){c.push(e),u.forEach(([t,n,r])=>e(t,n,r))}function f(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}function p(e,t,n,r){let i=e(t,n,r);i&&i!==t&&`default`in t&&(t.default=i)}let m;function h(){let{port1:e,port2:t}=new o,n=0,r;m=t=>{n++,e.postMessage(t)},e.on(`message`,()=>{n--,r&&n<=0&&r()}).unref();function i(){let e=setInterval(()=>{},1e3),t=new Promise(e=>{r=e}).then(()=>{clearInterval(e)});return n===0&&r(),t}let a=t;return{registerOptions:{data:{addHookMessagePort:a,include:[]},transferList:[a]},addHookMessagePort:a,waitForAllMessagesAcknowledged:i}}function g(e,t,n){if(!(this instanceof g))return new g(e,t,n);typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null);let o=t?t.internals===!0:!1;m&&Array.isArray(e)&&m(e),this._iitmHook=(t,c,u)=>{let d=t,f=d.startsWith(`node:`),m,h;if(f){let e=t.slice(5);s(e)&&(t=e)}else if(d.startsWith(`file://`)){let e=Error.stackTraceLimit;Error.stackTraceLimit=0;try{m=a(t),t=m}catch{}if(Error.stackTraceLimit=e,m){let e=i(m);e&&(t=e.name,h=e.basedir)}}if(e)for(let i of e)if(m&&i===m)p(n,c,m,void 0);else if(i===t){if(!h)p(n,c,t,h);else if(h.endsWith(l.get(d)))p(n,c,t,h);else if(o){let e=t+r.sep+r.relative(h,m);p(n,c,e,h)}}else i===u&&p(n,c,u,h);else p(n,c,t,h)},d(this._iitmHook)}g.prototype.unhook=function(){f(this._iitmHook)},n.exports=g,n.exports.Hook=g,n.exports.addHook=d,n.exports.removeHook=f,n.exports.createAddHookMessageChannel=h})),P6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isWrapped=e.safeExecuteInTheMiddleAsync=e.safeExecuteInTheMiddle=void 0;function t(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}e.safeExecuteInTheMiddle=t;async function n(e,t,n){let r,i;try{i=await e()}catch(e){r=e}finally{if(await t(r,i),r&&!n)throw r;return i}}e.safeExecuteInTheMiddleAsync=n;function r(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}e.isWrapped=r})),F6=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.InstrumentationBase=void 0;let r=t(`path`),i=t(`util`),a=T6(),o=E6(),s=D6(),c=j6(),l=N6(),u=($(),e(Q)),d=k6(),f=t(`fs`),p=P6();n.InstrumentationBase=class extends s.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=c.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,t,n){super(e,t,n);let r=this.init();r&&!Array.isArray(r)&&(r=[r]),this._modules=r||[],this._config.enabled&&this.enable()}_wrap=(e,t,n)=>{if((0,p.isWrapped)(e[t])&&this._unwrap(e,t),i.types.isProxy(e)){let r=(0,o.wrap)(Object.assign({},e),t,n);return Object.defineProperty(e,t,{value:r}),r}else return(0,o.wrap)(e,t,n)};_unwrap=(e,t)=>i.types.isProxy(e)?Object.defineProperty(e,t,{value:e[t]}):(0,o.unwrap)(e,t);_massWrap=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{u.diag.error(`must provide one or more modules to patch`);return}if(!(t&&Array.isArray(t))){u.diag.error(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{this._wrap(e,t,n)})})};_massUnwrap=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{u.diag.error(`must provide one or more modules to patch`);return}if(!(t&&Array.isArray(t))){u.diag.error(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{this._unwrap(e,t)})})};_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:n}=e;try{let e=t.resolve(n);t.cache[e]&&this._diag.warn(`Module ${n} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${n}`)}catch{}})}_extractPackageVersion(e){try{let t=(0,f.readFileSync)(r.join(e,`package.json`),{encoding:`utf8`}),n=JSON.parse(t).version;return typeof n==`string`?n:void 0}catch{u.diag.warn(`Failed extracting version`,e)}}_onRequire(e,t,n,i){if(!i)return typeof e.patch==`function`&&(e.moduleExports=t,this._enabled)?(this._diag.debug(`Applying instrumentation patch for nodejs core module on require hook`,{module:e.name}),e.patch(t)):t;let a=this._extractPackageVersion(i);if(e.moduleVersion=a,e.name===n)return m(e.supportedVersions,a,e.includePrerelease)&&typeof e.patch==`function`&&(e.moduleExports=t,this._enabled)?(this._diag.debug(`Applying instrumentation patch for module on require hook`,{module:e.name,version:e.moduleVersion,baseDir:i}),e.patch(t,e.moduleVersion)):t;let o=e.files??[],s=r.normalize(n);return o.filter(t=>t.name===s&&m(t.supportedVersions,a,e.includePrerelease)).reduce((t,n)=>(n.moduleExports=t,this._enabled?(this._diag.debug(`Applying instrumentation patch for nodejs module file on require hook`,{module:e.name,version:e.moduleVersion,fileName:n.name,baseDir:i}),n.patch(t,e.moduleVersion)):t),t)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch==`function`&&e.moduleExports&&(this._diag.debug(`Applying instrumentation patch for nodejs module on instrumentation enabled`,{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let t of e.files)t.moduleExports&&(this._diag.debug(`Applying instrumentation patch for nodejs module file on instrumentation enabled`,{module:e.name,version:e.moduleVersion,fileName:t.name}),t.patch(t.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let t=(t,n,i)=>{if(!i&&r.isAbsolute(n)){let e=r.parse(n);n=e.name,i=e.dir}return this._onRequire(e,t,n,i)},n=(t,n,r)=>this._onRequire(e,t,n,r),i=r.isAbsolute(e.name)?new d.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(i);let a=new l.Hook([e.name],{internals:!0},t);this._hooks.push(a)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch==`function`&&e.moduleExports&&(this._diag.debug(`Removing instrumentation patch for nodejs module on instrumentation disabled`,{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let t of e.files)t.moduleExports&&(this._diag.debug(`Removing instrumentation patch for nodejs module file on instrumentation disabled`,{module:e.name,version:e.moduleVersion,fileName:t.name}),t.unpatch(t.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};function m(e,t,n){return t===void 0?e.includes(`*`):e.some(e=>(0,a.satisfies)(t,e,{includePrerelease:n}))}})),I6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=void 0;var n=t(`path`);Object.defineProperty(e,`normalize`,{enumerable:!0,get:function(){return n.normalize}})})),L6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=e.InstrumentationBase=void 0;var t=F6();Object.defineProperty(e,`InstrumentationBase`,{enumerable:!0,get:function(){return t.InstrumentationBase}});var n=I6();Object.defineProperty(e,`normalize`,{enumerable:!0,get:function(){return n.normalize}})})),R6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=e.InstrumentationBase=void 0;var t=L6();Object.defineProperty(e,`InstrumentationBase`,{enumerable:!0,get:function(){return t.InstrumentationBase}}),Object.defineProperty(e,`normalize`,{enumerable:!0,get:function(){return t.normalize}})})),z6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstrumentationNodeModuleDefinition=void 0,e.InstrumentationNodeModuleDefinition=class{files;name;supportedVersions;patch;unpatch;constructor(e,t,n,r,i){this.files=i||[],this.name=e,this.supportedVersions=t,this.patch=n,this.unpatch=r}}})),B6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstrumentationNodeModuleFile=void 0;let t=R6();e.InstrumentationNodeModuleFile=class{name;supportedVersions;patch;unpatch;constructor(e,n,r,i){this.name=(0,t.normalize)(e),this.supportedVersions=n,this.patch=r,this.unpatch=i}}})),V6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.semconvStabilityFromStr=e.SemconvStability=void 0;var t;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(t=e.SemconvStability||={});function n(e,n){let r=t.OLD,i=n?.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let n of i??[])if(n.toLowerCase()===e+`/dup`){r=t.DUPLICATE;break}else n.toLowerCase()===e&&(r=t.STABLE);return r}e.semconvStabilityFromStr=n})),H6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.semconvStabilityFromStr=e.SemconvStability=e.safeExecuteInTheMiddleAsync=e.safeExecuteInTheMiddle=e.isWrapped=e.InstrumentationNodeModuleFile=e.InstrumentationNodeModuleDefinition=e.InstrumentationBase=e.registerInstrumentations=void 0;var t=w6();Object.defineProperty(e,`registerInstrumentations`,{enumerable:!0,get:function(){return t.registerInstrumentations}});var n=R6();Object.defineProperty(e,`InstrumentationBase`,{enumerable:!0,get:function(){return n.InstrumentationBase}});var r=z6();Object.defineProperty(e,`InstrumentationNodeModuleDefinition`,{enumerable:!0,get:function(){return r.InstrumentationNodeModuleDefinition}});var i=B6();Object.defineProperty(e,`InstrumentationNodeModuleFile`,{enumerable:!0,get:function(){return i.InstrumentationNodeModuleFile}});var a=P6();Object.defineProperty(e,`isWrapped`,{enumerable:!0,get:function(){return a.isWrapped}}),Object.defineProperty(e,`safeExecuteInTheMiddle`,{enumerable:!0,get:function(){return a.safeExecuteInTheMiddle}}),Object.defineProperty(e,`safeExecuteInTheMiddleAsync`,{enumerable:!0,get:function(){return a.safeExecuteInTheMiddleAsync}});var o=V6();Object.defineProperty(e,`SemconvStability`,{enumerable:!0,get:function(){return o.SemconvStability}}),Object.defineProperty(e,`semconvStabilityFromStr`,{enumerable:!0,get:function(){return o.semconvStabilityFromStr}})})),U6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isTracingSuppressed=t.unsuppressTracing=t.suppressTracing=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function r(e){return e.setValue(n,!0)}t.suppressTracing=r;function i(e){return e.deleteValue(n)}t.unsuppressTracing=i;function a(e){return e.getValue(n)===!0}t.isTracingSuppressed=a})),W6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR=`=`,e.BAGGAGE_PROPERTIES_SEPARATOR=`;`,e.BAGGAGE_ITEMS_SEPARATOR=`,`,e.BAGGAGE_HEADER=`baggage`,e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),G6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseKeyPairsIntoRecord=t.parsePairKeyValue=t.getKeyPairs=t.serializeKeyPairs=void 0;let n=($(),e(Q)),r=W6();function i(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:r.BAGGAGE_ITEMS_SEPARATOR}${t}`;return n.length>r.BAGGAGE_MAX_TOTAL_LENGTH?e:n},``)}t.serializeKeyPairs=i;function a(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=r.BAGGAGE_PROPERTIES_SEPARATOR+t.metadata.toString()),n})}t.getKeyPairs=a;function o(e){if(!e)return;let t=e.indexOf(r.BAGGAGE_PROPERTIES_SEPARATOR),i=t===-1?e:e.substring(0,t),a=i.indexOf(r.BAGGAGE_KEY_PAIR_SEPARATOR);if(a<=0)return;let o=i.substring(0,a).trim(),s=i.substring(a+1).trim();if(!o||!s)return;let c,l;try{c=decodeURIComponent(o),l=decodeURIComponent(s)}catch{return}let u;if(t!==-1&&t<e.length-1){let r=e.substring(t+1);u=(0,n.baggageEntryMetadataFromString)(r)}return{key:c,value:l,metadata:u}}t.parsePairKeyValue=o;function s(e){let t={};return typeof e==`string`&&e.length>0&&e.split(r.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=o(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}t.parseKeyPairsIntoRecord=s})),K6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CBaggagePropagator=void 0;let n=($(),e(Q)),r=U6(),i=W6(),a=G6();t.W3CBaggagePropagator=class{inject(e,t,o){let s=n.propagation.getBaggage(e);if(!s||(0,r.isTracingSuppressed)(e))return;let c=(0,a.getKeyPairs)(s).filter(e=>e.length<=i.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,i.BAGGAGE_MAX_NAME_VALUE_PAIRS),l=(0,a.serializeKeyPairs)(c);l.length>0&&o.set(t,i.BAGGAGE_HEADER,l)}extract(e,t,r){let o=r.get(t,i.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(i.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return e;let c={};return s.length===0||(s.split(i.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let t=(0,a.parsePairKeyValue)(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),c[t.key]=e}}),Object.entries(c).length===0)?e:n.propagation.setBaggage(e,n.propagation.createBaggage(c))}fields(){return[i.BAGGAGE_HEADER]}}})),q6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnchoredClock=void 0,e.AnchoredClock=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}})),J6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isAttributeValue=t.isAttributeKey=t.sanitizeAttributes=void 0;let n=($(),e(Q));function r(e){let t={};if(typeof e!=`object`||!e)return t;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(!i(r)){n.diag.warn(`Invalid attribute key: ${r}`);continue}let o=e[r];if(!a(o)){n.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?t[r]=o.slice():t[r]=o}return t}t.sanitizeAttributes=r;function i(e){return typeof e==`string`&&e!==``}t.isAttributeKey=i;function a(e){return e==null?!0:Array.isArray(e)?o(e):s(typeof e)}t.isAttributeValue=a;function o(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(s(e)){t=e;continue}return!1}return!1}}return!0}function s(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}})),Y6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.loggingErrorHandler=void 0;let n=($(),e(Q));function r(){return e=>{n.diag.error(i(e))}}t.loggingErrorHandler=r;function i(e){return typeof e==`string`?e:JSON.stringify(a(e))}function a(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}})),X6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;let t=(0,Y6().loggingErrorHandler)();function n(e){t=e}e.setGlobalErrorHandler=n;function r(e){try{t(e)}catch{}}e.globalErrorHandler=r})),Z6=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getStringListFromEnv=n.getBooleanFromEnv=n.getStringFromEnv=n.getNumberFromEnv=void 0;let r=($(),e(Q)),i=t(`util`);function a(e){let t=process.env[e];if(t==null||t.trim()===``)return;let n=Number(t);if(isNaN(n)){r.diag.warn(`Unknown value ${(0,i.inspect)(t)} for ${e}, expected a number, using defaults`);return}return n}n.getNumberFromEnv=a;function o(e){let t=process.env[e];if(!(t==null||t.trim()===``))return t}n.getStringFromEnv=o;function s(e){let t=process.env[e]?.trim().toLowerCase();return t==null||t===``?!1:t===`true`?!0:(t===`false`||r.diag.warn(`Unknown value ${(0,i.inspect)(t)} for ${e}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}n.getBooleanFromEnv=s;function c(e){return o(e)?.split(`,`).map(e=>e.trim()).filter(e=>e!==``)}n.getStringListFromEnv=c})),Q6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e._globalThis=void 0,e._globalThis=globalThis})),$6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION=void 0,e.VERSION=`2.5.1`})),e8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ATTR_PROCESS_RUNTIME_NAME=void 0,e.ATTR_PROCESS_RUNTIME_NAME=`process.runtime.name`})),t8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SDK_INFO=void 0;let n=$6(),r=(m6(),e(p6)),i=e8();t.SDK_INFO={[r.ATTR_TELEMETRY_SDK_NAME]:`opentelemetry`,[i.ATTR_PROCESS_RUNTIME_NAME]:`node`,[r.ATTR_TELEMETRY_SDK_LANGUAGE]:r.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[r.ATTR_TELEMETRY_SDK_VERSION]:n.VERSION}})),n8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.otperformance=e.SDK_INFO=e._globalThis=e.getStringListFromEnv=e.getNumberFromEnv=e.getBooleanFromEnv=e.getStringFromEnv=void 0;var t=Z6();Object.defineProperty(e,`getStringFromEnv`,{enumerable:!0,get:function(){return t.getStringFromEnv}}),Object.defineProperty(e,`getBooleanFromEnv`,{enumerable:!0,get:function(){return t.getBooleanFromEnv}}),Object.defineProperty(e,`getNumberFromEnv`,{enumerable:!0,get:function(){return t.getNumberFromEnv}}),Object.defineProperty(e,`getStringListFromEnv`,{enumerable:!0,get:function(){return t.getStringListFromEnv}});var n=Q6();Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return n._globalThis}});var r=t8();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return r.SDK_INFO}}),e.otperformance=performance})),r8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getStringListFromEnv=e.getNumberFromEnv=e.getStringFromEnv=e.getBooleanFromEnv=e.otperformance=e._globalThis=e.SDK_INFO=void 0;var t=n8();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return t.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return t._globalThis}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return t.otperformance}}),Object.defineProperty(e,`getBooleanFromEnv`,{enumerable:!0,get:function(){return t.getBooleanFromEnv}}),Object.defineProperty(e,`getStringFromEnv`,{enumerable:!0,get:function(){return t.getStringFromEnv}}),Object.defineProperty(e,`getNumberFromEnv`,{enumerable:!0,get:function(){return t.getNumberFromEnv}}),Object.defineProperty(e,`getStringListFromEnv`,{enumerable:!0,get:function(){return t.getStringListFromEnv}})})),i8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.addHrTimes=e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=e.getTimeOrigin=e.millisToHrTime=void 0;let t=r8(),n=10**6,r=10**9;function i(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*n)]}e.millisToHrTime=i;function a(){return t.otperformance.timeOrigin}e.getTimeOrigin=a;function o(e){return h(i(t.otperformance.timeOrigin),i(typeof e==`number`?e:t.otperformance.now()))}e.hrTime=o;function s(e){if(p(e))return e;if(typeof e==`number`)return e<t.otperformance.timeOrigin?o(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError(`Invalid input type`)}e.timeInputToHrTime=s;function c(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(--n,i+=r),[n,i]}e.hrTimeDuration=c;function l(e){let t=`${`0`.repeat(9)}${e[1]}Z`,n=t.substring(t.length-9-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,n)}e.hrTimeToTimeStamp=l;function u(e){return e[0]*r+e[1]}e.hrTimeToNanoseconds=u;function d(e){return e[0]*1e3+e[1]/1e6}e.hrTimeToMilliseconds=d;function f(e){return e[0]*1e6+e[1]/1e3}e.hrTimeToMicroseconds=f;function p(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}e.isTimeInputHrTime=p;function m(e){return p(e)||typeof e==`number`||e instanceof Date}e.isTimeInput=m;function h(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=r&&(n[1]-=r,n[0]+=1),n}e.addHrTimes=h})),a8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=void 0;function t(e){typeof e!=`number`&&e.unref()}e.unrefTimer=t})),o8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExportResultCode=void 0,(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(e.ExportResultCode||={})})),s8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CompositePropagator=void 0;let n=($(),e(Q));t.CompositePropagator=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields==`function`?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,r){for(let i of this._propagators)try{i.inject(e,t,r)}catch(e){n.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,t,r){return this._propagators.reduce((e,i)=>{try{return i.extract(e,t,r)}catch(e){n.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}})),c8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateValue=e.validateKey=void 0;let t=`[_0-9a-z-*/]`,n=`[a-z]${t}{0,255}`,r=`[a-z0-9]${t}{0,240}@[a-z]${t}{0,13}`,i=RegExp(`^(?:${n}|${r})$`),a=/^[ -~]{0,255}[!-~]$/,o=/,|=/;function s(e){return i.test(e)}e.validateKey=s;function c(e){return a.test(e)&&!o.test(e)}e.validateValue=c})),l8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TraceState=void 0;let t=c8();e.TraceState=class e{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+`=`+this.get(t)),e),[]).join(`,`)}_parse(e){e.length>512||(this._internalState=e.split(`,`).reverse().reduce((e,n)=>{let r=n.trim(),i=r.indexOf(`=`);if(i!==-1){let a=r.slice(0,i),o=r.slice(i+1,n.length);(0,t.validateKey)(a)&&(0,t.validateValue)(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}}})),u8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CTraceContextPropagator=t.parseTraceParent=t.TRACE_STATE_HEADER=t.TRACE_PARENT_HEADER=void 0;let n=($(),e(Q)),r=U6(),i=l8();t.TRACE_PARENT_HEADER=`traceparent`,t.TRACE_STATE_HEADER=`tracestate`;let a=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function o(e){let t=a.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}t.parseTraceParent=o,t.W3CTraceContextPropagator=class{inject(e,i,a){let o=n.trace.getSpanContext(e);if(!o||(0,r.isTracingSuppressed)(e)||!(0,n.isSpanContextValid)(o))return;let s=`00-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||n.TraceFlags.NONE).toString(16)}`;a.set(i,t.TRACE_PARENT_HEADER,s),o.traceState&&a.set(i,t.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,a){let s=a.get(r,t.TRACE_PARENT_HEADER);if(!s)return e;let c=Array.isArray(s)?s[0]:s;if(typeof c!=`string`)return e;let l=o(c);if(!l)return e;l.isRemote=!0;let u=a.get(r,t.TRACE_STATE_HEADER);if(u){let e=Array.isArray(u)?u.join(`,`):u;l.traceState=new i.TraceState(typeof e==`string`?e:void 0)}return n.trace.setSpanContext(e,l)}fields(){return[t.TRACE_PARENT_HEADER,t.TRACE_STATE_HEADER]}}})),d8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRPCMetadata=t.deleteRPCMetadata=t.setRPCMetadata=t.RPCType=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key RPC_METADATA`);(function(e){e.HTTP=`http`})(t.RPCType||={});function r(e,t){return e.setValue(n,t)}t.setRPCMetadata=r;function i(e){return e.deleteValue(n)}t.deleteRPCMetadata=i;function a(e){return e.getValue(n)}t.getRPCMetadata=a})),f8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPlainObject=void 0;let t=Function.prototype.toString,n=t.call(Object),r=Object.getPrototypeOf,i=Object.prototype,a=i.hasOwnProperty,o=Symbol?Symbol.toStringTag:void 0,s=i.toString;function c(e){if(!l(e)||u(e)!==`[object Object]`)return!1;let i=r(e);if(i===null)return!0;let o=a.call(i,`constructor`)&&i.constructor;return typeof o==`function`&&o instanceof o&&t.call(o)===n}e.isPlainObject=c;function l(e){return typeof e==`object`&&!!e}function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:o&&o in Object(e)?d(e):f(e)}function d(e){let t=a.call(e,o),n=e[o],r=!1;try{e[o]=void 0,r=!0}catch{}let i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}function f(e){return s.call(e)}})),p8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;let t=f8();function n(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=i(t,e.shift(),0,n);return t}e.merge=n;function r(e){return o(e)?e.slice():e}function i(e,t,n=0,d){let f;if(!(n>20)){if(n++,l(e)||l(t)||s(t))f=r(t);else if(o(e)){if(f=e.slice(),o(t))for(let e=0,n=t.length;e<n;e++)f.push(r(t[e]));else if(c(t)){let e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){let i=e[n];f[i]=r(t[i])}}}else if(c(e))if(c(t)){if(!u(e,t))return t;f=Object.assign({},e);let r=Object.keys(t);for(let o=0,s=r.length;o<s;o++){let s=r[o],u=t[s];if(l(u))u===void 0?delete f[s]:f[s]=u;else{let r=f[s],o=u;if(a(e,s,d)||a(t,s,d))delete f[s];else{if(c(r)&&c(o)){let n=d.get(r)||[],i=d.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),d.set(r,n),d.set(o,i)}f[s]=i(f[s],u,n,d)}}}}else f=t;return f}}function a(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function o(e){return Array.isArray(e)}function s(e){return typeof e==`function`}function c(e){return!l(e)&&!o(e)&&!s(e)&&typeof e==`object`}function l(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function u(e,n){return!(!(0,t.isPlainObject)(e)||!(0,t.isPlainObject)(n))}})),m8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callWithTimeout=e.TimeoutError=void 0;var t=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};e.TimeoutError=t;function n(e,n){let r,i=new Promise(function(e,i){r=setTimeout(function(){i(new t(`Operation timed out.`))},n)});return Promise.race([e,i]).then(e=>(clearTimeout(r),e),e=>{throw clearTimeout(r),e})}e.callWithTimeout=n})),h8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isUrlIgnored=e.urlMatches=void 0;function t(e,t){return typeof t==`string`?e===t:!!e.match(t)}e.urlMatches=t;function n(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}e.isUrlIgnored=n})),g8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=void 0,e.Deferred=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),_8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BindOnceFuture=void 0;let t=g8();e.BindOnceFuture=class{_isCalled=!1;_deferred=new t.Deferred;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}})),v8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.diagLogLevelFromString=void 0;let n=($(),e(Q)),r={ALL:n.DiagLogLevel.ALL,VERBOSE:n.DiagLogLevel.VERBOSE,DEBUG:n.DiagLogLevel.DEBUG,INFO:n.DiagLogLevel.INFO,WARN:n.DiagLogLevel.WARN,ERROR:n.DiagLogLevel.ERROR,NONE:n.DiagLogLevel.NONE};function i(e){return e==null?void 0:r[e.toUpperCase()]??(n.diag.warn(`Unknown log level "${e}", expected one of ${Object.keys(r)}, using default`),n.DiagLogLevel.INFO)}t.diagLogLevelFromString=i})),y8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t._export=void 0;let n=($(),e(Q)),r=U6();function i(e,t){return new Promise(i=>{n.context.with((0,r.suppressTracing)(n.context.active()),()=>{e.export(t,i)})})}t._export=i})),b8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.internal=e.diagLogLevelFromString=e.BindOnceFuture=e.urlMatches=e.isUrlIgnored=e.callWithTimeout=e.TimeoutError=e.merge=e.TraceState=e.unsuppressTracing=e.suppressTracing=e.isTracingSuppressed=e.setRPCMetadata=e.getRPCMetadata=e.deleteRPCMetadata=e.RPCType=e.parseTraceParent=e.W3CTraceContextPropagator=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=e.CompositePropagator=e.otperformance=e.getStringListFromEnv=e.getNumberFromEnv=e.getBooleanFromEnv=e.getStringFromEnv=e._globalThis=e.SDK_INFO=e.parseKeyPairsIntoRecord=e.ExportResultCode=e.unrefTimer=e.timeInputToHrTime=e.millisToHrTime=e.isTimeInputHrTime=e.isTimeInput=e.hrTimeToTimeStamp=e.hrTimeToNanoseconds=e.hrTimeToMilliseconds=e.hrTimeToMicroseconds=e.hrTimeDuration=e.hrTime=e.getTimeOrigin=e.addHrTimes=e.loggingErrorHandler=e.setGlobalErrorHandler=e.globalErrorHandler=e.sanitizeAttributes=e.isAttributeValue=e.AnchoredClock=e.W3CBaggagePropagator=void 0;var t=K6();Object.defineProperty(e,`W3CBaggagePropagator`,{enumerable:!0,get:function(){return t.W3CBaggagePropagator}});var n=q6();Object.defineProperty(e,`AnchoredClock`,{enumerable:!0,get:function(){return n.AnchoredClock}});var r=J6();Object.defineProperty(e,`isAttributeValue`,{enumerable:!0,get:function(){return r.isAttributeValue}}),Object.defineProperty(e,`sanitizeAttributes`,{enumerable:!0,get:function(){return r.sanitizeAttributes}});var i=X6();Object.defineProperty(e,`globalErrorHandler`,{enumerable:!0,get:function(){return i.globalErrorHandler}}),Object.defineProperty(e,`setGlobalErrorHandler`,{enumerable:!0,get:function(){return i.setGlobalErrorHandler}});var a=Y6();Object.defineProperty(e,`loggingErrorHandler`,{enumerable:!0,get:function(){return a.loggingErrorHandler}});var o=i8();Object.defineProperty(e,`addHrTimes`,{enumerable:!0,get:function(){return o.addHrTimes}}),Object.defineProperty(e,`getTimeOrigin`,{enumerable:!0,get:function(){return o.getTimeOrigin}}),Object.defineProperty(e,`hrTime`,{enumerable:!0,get:function(){return o.hrTime}}),Object.defineProperty(e,`hrTimeDuration`,{enumerable:!0,get:function(){return o.hrTimeDuration}}),Object.defineProperty(e,`hrTimeToMicroseconds`,{enumerable:!0,get:function(){return o.hrTimeToMicroseconds}}),Object.defineProperty(e,`hrTimeToMilliseconds`,{enumerable:!0,get:function(){return o.hrTimeToMilliseconds}}),Object.defineProperty(e,`hrTimeToNanoseconds`,{enumerable:!0,get:function(){return o.hrTimeToNanoseconds}}),Object.defineProperty(e,`hrTimeToTimeStamp`,{enumerable:!0,get:function(){return o.hrTimeToTimeStamp}}),Object.defineProperty(e,`isTimeInput`,{enumerable:!0,get:function(){return o.isTimeInput}}),Object.defineProperty(e,`isTimeInputHrTime`,{enumerable:!0,get:function(){return o.isTimeInputHrTime}}),Object.defineProperty(e,`millisToHrTime`,{enumerable:!0,get:function(){return o.millisToHrTime}}),Object.defineProperty(e,`timeInputToHrTime`,{enumerable:!0,get:function(){return o.timeInputToHrTime}});var s=a8();Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return s.unrefTimer}});var c=o8();Object.defineProperty(e,`ExportResultCode`,{enumerable:!0,get:function(){return c.ExportResultCode}});var l=G6();Object.defineProperty(e,`parseKeyPairsIntoRecord`,{enumerable:!0,get:function(){return l.parseKeyPairsIntoRecord}});var u=r8();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return u.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return u._globalThis}}),Object.defineProperty(e,`getStringFromEnv`,{enumerable:!0,get:function(){return u.getStringFromEnv}}),Object.defineProperty(e,`getBooleanFromEnv`,{enumerable:!0,get:function(){return u.getBooleanFromEnv}}),Object.defineProperty(e,`getNumberFromEnv`,{enumerable:!0,get:function(){return u.getNumberFromEnv}}),Object.defineProperty(e,`getStringListFromEnv`,{enumerable:!0,get:function(){return u.getStringListFromEnv}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return u.otperformance}});var d=s8();Object.defineProperty(e,`CompositePropagator`,{enumerable:!0,get:function(){return d.CompositePropagator}});var f=u8();Object.defineProperty(e,`TRACE_PARENT_HEADER`,{enumerable:!0,get:function(){return f.TRACE_PARENT_HEADER}}),Object.defineProperty(e,`TRACE_STATE_HEADER`,{enumerable:!0,get:function(){return f.TRACE_STATE_HEADER}}),Object.defineProperty(e,`W3CTraceContextPropagator`,{enumerable:!0,get:function(){return f.W3CTraceContextPropagator}}),Object.defineProperty(e,`parseTraceParent`,{enumerable:!0,get:function(){return f.parseTraceParent}});var p=d8();Object.defineProperty(e,`RPCType`,{enumerable:!0,get:function(){return p.RPCType}}),Object.defineProperty(e,`deleteRPCMetadata`,{enumerable:!0,get:function(){return p.deleteRPCMetadata}}),Object.defineProperty(e,`getRPCMetadata`,{enumerable:!0,get:function(){return p.getRPCMetadata}}),Object.defineProperty(e,`setRPCMetadata`,{enumerable:!0,get:function(){return p.setRPCMetadata}});var m=U6();Object.defineProperty(e,`isTracingSuppressed`,{enumerable:!0,get:function(){return m.isTracingSuppressed}}),Object.defineProperty(e,`suppressTracing`,{enumerable:!0,get:function(){return m.suppressTracing}}),Object.defineProperty(e,`unsuppressTracing`,{enumerable:!0,get:function(){return m.unsuppressTracing}});var h=l8();Object.defineProperty(e,`TraceState`,{enumerable:!0,get:function(){return h.TraceState}});var g=p8();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return g.merge}});var _=m8();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return _.TimeoutError}}),Object.defineProperty(e,`callWithTimeout`,{enumerable:!0,get:function(){return _.callWithTimeout}});var v=h8();Object.defineProperty(e,`isUrlIgnored`,{enumerable:!0,get:function(){return v.isUrlIgnored}}),Object.defineProperty(e,`urlMatches`,{enumerable:!0,get:function(){return v.urlMatches}});var y=_8();Object.defineProperty(e,`BindOnceFuture`,{enumerable:!0,get:function(){return y.BindOnceFuture}});var b=v8();Object.defineProperty(e,`diagLogLevelFromString`,{enumerable:!0,get:function(){return b.diagLogLevelFromString}}),e.internal={_export:y8()._export}})),x8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PACKAGE_NAME=e.PACKAGE_VERSION=void 0,e.PACKAGE_VERSION=`0.23.0`,e.PACKAGE_NAME=`@opentelemetry/instrumentation-undici`})),S8=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.UndiciInstrumentation=void 0;let r=t(`diagnostics_channel`),i=t(`url`),a=H6(),o=($(),e(Q)),s=b8(),c=(m6(),e(p6)),l=x8();n.UndiciInstrumentation=class extends a.InstrumentationBase{_recordFromReq=new WeakMap;constructor(e={}){super(l.PACKAGE_NAME,l.PACKAGE_VERSION,e)}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.unsubscribe()),this._channelSubs.length=0}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel(`undici:request:create`,this.onRequestCreated.bind(this)),this.subscribeToChannel(`undici:client:sendHeaders`,this.onRequestHeaders.bind(this)),this.subscribeToChannel(`undici:request:headers`,this.onResponseHeaders.bind(this)),this.subscribeToChannel(`undici:request:trailers`,this.onDone.bind(this)),this.subscribeToChannel(`undici:request:error`,this.onError.bind(this)))}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram(c.METRIC_HTTP_CLIENT_REQUEST_DURATION,{description:`Measures the duration of outbound HTTP requests.`,unit:`s`,valueType:o.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,t){let[n,i]=process.version.replace(`v`,``).split(`.`).map(e=>Number(e)),a=n>18||n===18&&i>=19,o;if(a)r.subscribe?.(e,t),o=()=>r.unsubscribe?.(e,t);else{let n=r.channel(e);n.subscribe(t),o=()=>n.unsubscribe(t)}this._channelSubs.push({name:e,unsubscribe:o})}parseRequestHeaders(e){let t=new Map;if(Array.isArray(e.headers))for(let n=0;n<e.headers.length;n+=2){let r=e.headers[n],i=e.headers[n+1];typeof r==`string`&&t.set(r.toLowerCase(),i)}else if(typeof e.headers==`string`){let n=e.headers.split(`\r
231
- `);for(let e of n){if(!e)continue;let n=e.indexOf(`:`);if(n===-1)continue;let r=e.substring(0,n).toLowerCase(),i=e.substring(n+1).trim(),a=t.get(r);a&&Array.isArray(a)?a.push(i):a?t.set(r,[a,i]):t.set(r,i)}}return t}onRequestCreated({request:e}){let t=this.getConfig(),n=t.enabled!==!1;if((0,a.safeExecuteInTheMiddle)(()=>!n||e.method===`CONNECT`||t.ignoreRequestHook?.(e),e=>e&&this._diag.error(`caught ignoreRequestHook error: `,e),!0))return;let r=(0,s.hrTime)(),l;try{l=new i.URL(e.path,e.origin)}catch(e){this._diag.warn(`could not determine url.full:`,e);return}let u=l.protocol.replace(`:`,``),d=this.getRequestMethod(e.method),f={[c.ATTR_HTTP_REQUEST_METHOD]:d,[c.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[c.ATTR_URL_FULL]:l.toString(),[c.ATTR_URL_PATH]:l.pathname,[c.ATTR_URL_QUERY]:l.search,[c.ATTR_URL_SCHEME]:u},p={https:`443`,http:`80`},m=l.hostname,h=l.port||p[u];f[c.ATTR_SERVER_ADDRESS]=m,h&&!isNaN(Number(h))&&(f[c.ATTR_SERVER_PORT]=Number(h));let g=this.parseRequestHeaders(e).get(`user-agent`);if(g){let e=Array.isArray(g)?g[g.length-1]:g;f[c.ATTR_USER_AGENT_ORIGINAL]=e}let _=(0,a.safeExecuteInTheMiddle)(()=>t.startSpanHook?.(e),e=>e&&this._diag.error(`caught startSpanHook error: `,e),!0);_&&Object.entries(_).forEach(([e,t])=>{f[e]=t});let v=o.context.active(),y=o.trace.getSpan(v),b;b=t.requireParentforSpans&&(!y||!o.trace.isSpanContextValid(y.spanContext()))?o.trace.wrapSpanContext(o.INVALID_SPAN_CONTEXT):this.tracer.startSpan(d===`_OTHER`?`HTTP`:d,{kind:o.SpanKind.CLIENT,attributes:f},v),(0,a.safeExecuteInTheMiddle)(()=>t.requestHook?.(b,e),e=>e&&this._diag.error(`caught requestHook error: `,e),!0);let x=o.trace.setSpan(o.context.active(),b),S={};o.propagation.inject(x,S);let C=Object.entries(S);for(let t=0;t<C.length;t++){let[n,r]=C[t];typeof e.addHeader==`function`?e.addHeader(n,r):typeof e.headers==`string`?e.headers+=`${n}: ${r}\r\n`:Array.isArray(e.headers)&&e.headers.push(n,r)}this._recordFromReq.set(e,{span:b,attributes:f,startTime:r})}onRequestHeaders({request:e,socket:t}){let n=this._recordFromReq.get(e);if(!n)return;let r=this.getConfig(),{span:i}=n,{remoteAddress:a,remotePort:o}=t,s={[c.ATTR_NETWORK_PEER_ADDRESS]:a,[c.ATTR_NETWORK_PEER_PORT]:o};if(r.headersToSpanAttributes?.requestHeaders){let t=new Set(r.headersToSpanAttributes.requestHeaders.map(e=>e.toLowerCase())),n=this.parseRequestHeaders(e);for(let[e,r]of n.entries())if(t.has(e)){let t=Array.isArray(r)?r:[r];s[`http.request.header.${e}`]=t}}i.setAttributes(s)}onResponseHeaders({request:e,response:t}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:i}=n,s={[c.ATTR_HTTP_RESPONSE_STATUS_CODE]:t.statusCode},l=this.getConfig();if((0,a.safeExecuteInTheMiddle)(()=>l.responseHook?.(r,{request:e,response:t}),e=>e&&this._diag.error(`caught responseHook error: `,e),!0),l.headersToSpanAttributes?.responseHeaders){let e=new Set;l.headersToSpanAttributes?.responseHeaders.forEach(t=>e.add(t.toLowerCase()));for(let n=0;n<t.headers.length;n+=2){let r=t.headers[n].toString().toLowerCase(),i=t.headers[n+1];if(e.has(r)){let e=`http.response.header.${r}`;Object.hasOwn(s,e)?s[e].push(i.toString()):s[e]=[i.toString()]}}}r.setAttributes(s),r.setStatus({code:t.statusCode>=400?o.SpanStatusCode.ERROR:o.SpanStatusCode.UNSET}),n.attributes=Object.assign(i,s)}onDone({request:e}){let t=this._recordFromReq.get(e);if(!t)return;let{span:n,attributes:r,startTime:i}=t;n.end(),this._recordFromReq.delete(e),this.recordRequestDuration(r,i)}onError({request:e,error:t}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:i,startTime:a}=n;r.recordException(t),r.setStatus({code:o.SpanStatusCode.ERROR,message:t.message}),r.end(),this._recordFromReq.delete(e),i[c.ATTR_ERROR_TYPE]=t.message,this.recordRequestDuration(i,a)}recordRequestDuration(e,t){let n={};[c.ATTR_HTTP_RESPONSE_STATUS_CODE,c.ATTR_HTTP_REQUEST_METHOD,c.ATTR_SERVER_ADDRESS,c.ATTR_SERVER_PORT,c.ATTR_URL_SCHEME,c.ATTR_ERROR_TYPE].forEach(t=>{t in e&&(n[t]=e[t])});let r=(0,s.hrTimeToMilliseconds)((0,s.hrTimeDuration)(t,(0,s.hrTime)()))/1e3;this._httpClientDurationHistogram.record(r,n)}getRequestMethod(e){return e.toUpperCase()in{CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0,QUERY:!0}?e.toUpperCase():`_OTHER`}}})),C8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndiciInstrumentation=void 0;var t=S8();Object.defineProperty(e,`UndiciInstrumentation`,{enumerable:!0,get:function(){return t.UndiciInstrumentation}})})),w8=r(Vz(),1),T8=r(LR(),1),E8=r(Pz(),1);m6();var D8=r(H6(),1),O8=r(C8(),1);const k8=`storefront-next`;let A8=null;const j8=Symbol.for(`sfnext.otel.undici_registered`);function M8(){if(A8)return A8;try{let e=new IB.NodeTracerProvider({resource:new E8.Resource({[F4]:k8}),sampler:new w8.ParentBasedSampler({root:new w8.AlwaysOnSampler})});return e.addSpanProcessor(new w8.SimpleSpanProcessor(new zB)),e.register(),rb.setGlobalPropagator(new T8.W3CTraceContextPropagator),globalThis[j8]||(globalThis[j8]=!0,(0,D8.registerInstrumentations)({tracerProvider:e,instrumentations:[new O8.UndiciInstrumentation({requestHook(e,t){try{let n=t.method.toUpperCase(),r=`${t.origin}${t.path}`;e.updateName(`${n} ${r}`)}catch{}}})]})),A8=e.getTracer(k8),A8}catch(e){return ih.error(`[otel] Failed to initialize OpenTelemetry:`,e),null}}$();function N8(){let e=M8();if(!e)return(e,t,n)=>n();let t=e;return(e,n,r)=>{try{let i=new URL(e.originalUrl||e.url,`http://localhost`).pathname,a=e.method,o=rb.extract(H_,e.headers);t.startActiveSpan(`[sfnext] server ${a} ${i}`,{attributes:{"http.request.method":a,"url.path":i}},o,e=>{try{let e=cb.getSpan(Ny.active())?.spanContext();if(e){let t=e.traceFlags.toString(16).padStart(2,`0`),r=`00-${e.traceId}-${e.spanId}-${t}`;n.setHeader(`traceparent`,r)}}catch{}let o=Ny.active(),s=performance.now(),c=null,l=0,u=!1;function d(){if(!c)try{l=Math.round(performance.now()-s),e.setAttribute(`sfnext.ttfb_ms`,l),c=t.startSpan(`[sfnext] response streaming ${a} ${i}`,{attributes:{"http.request.method":a,"url.path":i,"sfnext.ttfb_ms":l}},o)}catch{}}let f=n.writeHead.bind(n);n.writeHead=((...e)=>(d(),f(...e)));let p=n.write.bind(n);n.write=((...e)=>(d(),p(...e)));function m(){if(!u){u=!0;try{let t=Math.round(performance.now()-s),r=n.statusCode;c&&(c.setAttribute(`http.streaming_duration_ms`,t-l),c.setAttribute(`http.response.status_code`,r),r>=500&&c.setStatus({code:my.ERROR}),c.end()),e.setAttribute(`http.response.status_code`,r),e.setAttribute(`http.total_duration_ms`,t),r>=500&&e.setStatus({code:my.ERROR}),e.end()}catch{}}}n.once(`close`,m),n.once(`finish`,m),r()})}catch{r()}}}const P8=`package.json`,F8=`@salesforce/storefront-next-runtime`,I8=`@salesforce/storefront-next-dev`;function L8(e){if(!f(e))return null;try{return JSON.parse(p(e,`utf8`))}catch(t){return ih.debug(`Health check: failed to parse package.json at ${e}`,t),null}}function R8(e){let{projectDirectory:t,bundleId:n}=e,r=L8(n===`local`?d(t,P8):d(t,`build`,P8)),i={...r?.dependencies,...r?.devDependencies},a=i?.[I8],o=i?.[F8],s=[a?`Built using ${I8}@${a}.`:null,o?`Running ${F8}@${o}.`:null].filter(Boolean);return(e,t)=>{let i={status:`pass`,version:r?.version,bundleId:n,description:r?.description??`storefront-next-dev server health`,notes:s.length>0?s:void 0};t.status(200).type(`application/health+json`).json(i)}}var z8=r(Bn(),1);const B8=[`.mjs`,`.js`,`.cjs`],V8=[`bld/server/middleware-registry`,`build/server/middleware-registry`].flatMap(e=>B8.map(t=>`${e}${t}`));async function H8(e){let{mode:t,projectDirectory:n=process.cwd(),config:r,vite:i,build:a,streaming:o=!1,enableProxy:s=Qg[t].enableProxy,enableStaticServing:c=Qg[t].enableStaticServing,enableCompression:l=Qg[t].enableCompression,enableLogging:u=Qg[t].enableLogging,enableAssetUrlPatching:p=Qg[t].enableAssetUrlPatching}=e;if(t===`development`&&!i)throw Error(`Vite dev server instance is required for development mode`);if((t===`preview`||t===`production`)&&!a)throw Error(`React Router server build is required for preview/production mode`);let h=r??cp(),g=process.env.BUNDLE_ID??`local`,_=(0,z8.default)();if(_.disable(`x-powered-by`),_.set(`trust proxy`,!0),process.env.SFNEXT_OTEL_ENABLED===`true`&&_.use(N8()),_.get(`/sfdc-health`,R8({projectDirectory:n,bundleId:g})),u&&_.use(Yg()),l&&!o&&_.use(xh()),c&&a){let e=gm(g);_.use(e,ah(g,n))}let v=null;if(t===`development`){let e=d(n,`src/server/middleware-registry.ts`);f(e)&&(v=await sp(e,{projectDirectory:n}))}else{let e=V8.map(e=>d(n,e)),t=null;for(let n of e)if(f(n)){t=n;break}t&&(v=await import(m(t).href))}v?.customMiddlewares&&Array.isArray(v.customMiddlewares)&&v.customMiddlewares.forEach(e=>{_.use(e.handler)}),t===`development`&&i&&_.use(i.middlewares),s&&_.use(h.commerce.api.proxy,_m(h));let y=hm();return y&&_.use((e,t,n)=>{if(e.path.startsWith(`${y}/`)||e.path===y||e.path.startsWith(`/mobify/`))return n();t.redirect(`${y}${e.originalUrl}`)}),_.use(Xg()),_.all(`*splat`,await U8(t,g,i,a,p)),_}async function U8(e,t,n,r,i){if(e===`development`&&n){let{isRunnableDevEnvironment:e}=await import(`vite`);return async(t,r,i)=>{try{let a=n.environments.ssr;if(!e(a)){i(Error(`SSR environment is not runnable. Please ensure:
229
+ >>> no match, partial?`,e,d,t,f),d===s))}let i;if(typeof l==`string`?(i=u===l,this.debug(`string match`,l,u,i)):(i=l.test(u),this.debug(`pattern match`,l,u,i)),!i)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return l_(this.pattern,this.options)}parse(e){yg(e);let t=this.options;if(e===`**`)return s_;if(e===``)return``;let n,r=null;(n=e.match(Yg))?r=t.dot?Zg:Xg:(n=e.match(zg))?r=(t.nocase?t.dot?Ug:Hg:t.dot?Vg:Bg)(n[1]):(n=e.match(Qg))?r=(t.nocase?t.dot?e_:$g:t.dot?t_:n_)(n):(n=e.match(Wg))?r=t.dot?Kg:Gg:(n=e.match(qg))&&(r=Jg);let i=Ig.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?d_(e):e===s_?s_:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==s_||a===s_||(a===void 0?i!==void 0&&i!==s_?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==s_&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=s_))});let i=t.filter(e=>e!==s_);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Rg.defaults(e).Minimatch}};Rg.AST=Ig,Rg.Minimatch=f_,Rg.escape=Lg,Rg.unescape=Tg;const p_=[`/@vite/**`,`/@id/**`,`/@fs/**`,`/@react-router/**`,`/src/**`,`/node_modules/**`,`**/*.js`,`**/*.css`,`**/*.ts`,`**/*.tsx`,`**/*.js.map`,`**/*.css.map`];function m_(){return Wh.default.token(`status-colored`,(e,t)=>{let n=t.statusCode,r=_h.green;return n>=500?r=_h.red:n>=400?r=_h.yellow:n>=300&&(r=_h.cyan),r(String(n))}),Wh.default.token(`method-colored`,e=>{let t=e.method,n={GET:_h.green,POST:_h.blue,PUT:_h.yellow,DELETE:_h.red,PATCH:_h.magenta};return(t&&n[t]||_h.white)(t)}),(0,Wh.default)((e,t,n)=>[e[`method-colored`](t,n),e.url(t,n),`-`,e[`status-colored`](t,n),_h.gray(`(${e[`response-time`](t,n)}ms)`)].join(` `),{skip:e=>p_.some(t=>Rg(e.url,t,{dot:!0}))})}function h_(){return(e,t,n)=>{!e.get(`x-forwarded-host`)&&process.env.EXTERNAL_DOMAIN_NAME&&(e.headers[`x-forwarded-host`]=process.env.EXTERNAL_DOMAIN_NAME),n()}}function g_(e,t){let n=Fm(t),r=Pm(),i=JSON.stringify(e.assets).replace(/"\/assets\//g,`"${n}assets/`),a=JSON.parse(i);return Object.assign({},e,{publicPath:n,assets:a,...r&&{basename:r}})}const __={development:{enableProxy:!0,enableStaticServing:!1,enableCompression:!1,enableLogging:!0,enableAssetUrlPatching:!1},preview:{enableProxy:!0,enableStaticServing:!0,enableCompression:!0,enableLogging:!0,enableAssetUrlPatching:!0},production:{enableProxy:!1,enableStaticServing:!1,enableCompression:!0,enableLogging:!0,enableAssetUrlPatching:!0}};var v_,y_=n((()=>{v_=typeof globalThis==`object`?globalThis:global})),b_=n((()=>{y_()})),x_=n((()=>{b_()})),S_,C_=n((()=>{S_=`1.9.0`}));function w_(e){var t=new Set([e]),n=new Set,r=e.match(T_);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(T_);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var T_,E_,D_=n((()=>{C_(),T_=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,E_=w_(S_)}));function O_(e,t,n,r){r===void 0&&(r=!1);var i=N_[M_]=N_[M_]??{version:S_};if(!r&&i[e]){var a=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(a.stack||a.message),!1}if(i.version!==S_){var a=Error(`@opentelemetry/api: Registration of version v`+i.version+` for `+e+` does not match previously registered API v`+S_);return n.error(a.stack||a.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+S_+`.`),!0}function k_(e){var t=N_[M_]?.version;if(!(!t||!E_(t)))return N_[M_]?.[e]}function A_(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+S_+`.`);var n=N_[M_];n&&delete n[e]}var j_,M_,N_,P_=n((()=>{x_(),C_(),D_(),j_=S_.split(`.`)[0],M_=Symbol.for(`opentelemetry.js.api.`+j_),N_=v_}));function F_(e,t,n){var r=k_(`diag`);if(r)return n.unshift(t),r[e].apply(r,L_([],I_(n),!1))}var I_,L_,R_,z_=n((()=>{P_(),I_=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},L_=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},R_=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){var e=[...arguments];return F_(`debug`,this._namespace,e)},e.prototype.error=function(){var e=[...arguments];return F_(`error`,this._namespace,e)},e.prototype.info=function(){var e=[...arguments];return F_(`info`,this._namespace,e)},e.prototype.warn=function(){var e=[...arguments];return F_(`warn`,this._namespace,e)},e.prototype.verbose=function(){var e=[...arguments];return F_(`verbose`,this._namespace,e)},e}()})),B_,V_=n((()=>{(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`})(B_||={})}));function H_(e,t){e<B_.NONE?e=B_.NONE:e>B_.ALL&&(e=B_.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,B_.ERROR),warn:n(`warn`,B_.WARN),info:n(`info`,B_.INFO),debug:n(`debug`,B_.DEBUG),verbose:n(`verbose`,B_.VERBOSE)}}var U_=n((()=>{V_()})),W_,G_,K_,q_,J_=n((()=>{z_(),U_(),V_(),P_(),W_=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},G_=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},K_=`diag`,q_=function(){function e(){function e(e){return function(){var t=[...arguments],n=k_(`diag`);if(n)return n[e].apply(n,G_([],W_(t),!1))}}var t=this;t.setLogger=function(e,n){if(n===void 0&&(n={logLevel:B_.INFO}),e===t){var r=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(r.stack??r.message),!1}typeof n==`number`&&(n={logLevel:n});var i=k_(`diag`),a=H_(n.logLevel??B_.INFO,e);if(i&&!n.suppressOverrideMessage){var o=Error().stack??`<failed to generate stacktrace>`;i.warn(`Current logger will be overwritten from `+o),a.warn(`Current logger will overwrite one already registered from `+o)}return O_(`diag`,a,t,!0)},t.disable=function(){A_(K_,t)},t.createComponentLogger=function(e){return new R_(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}()})),Y_,X_,Z_,Q_=n((()=>{Y_=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},X_=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},Z_=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=Y_(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=X_(r),s=o.next();!s.done;s=o.next()){var c=s.value;a._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}()})),$_,ev=n((()=>{$_=Symbol(`BaggageEntryMetadata`)}));function tv(e){return e===void 0&&(e={}),new Z_(new Map(Object.entries(e)))}function nv(e){return typeof e!=`string`&&(rv.error(`Cannot create baggage metadata from unknown type: `+typeof e),e=``),{__TYPE__:$_,toString:function(){return e}}}var rv,iv=n((()=>{J_(),Q_(),ev(),rv=q_.instance()}));function av(e){return Symbol.for(e)}var ov,sv,cv=n((()=>{ov=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}(),sv=new ov})),lv,uv,dv=n((()=>{lv=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],uv=function(){function e(){function e(e){return function(){var t=[...arguments];if(console){var n=console[e];if(typeof n!=`function`&&(n=console.log),typeof n==`function`)return n.apply(console,t)}}}for(var t=0;t<lv.length;t++)this[lv[t].n]=e(lv[t].c)}return e}()}));function fv(){return wv}var pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv=n((()=>{pv=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),mv=function(){function e(){}return e.prototype.createGauge=function(e,t){return Ev},e.prototype.createHistogram=function(e,t){return Dv},e.prototype.createCounter=function(e,t){return Tv},e.prototype.createUpDownCounter=function(e,t){return Ov},e.prototype.createObservableGauge=function(e,t){return Av},e.prototype.createObservableCounter=function(e,t){return kv},e.prototype.createObservableUpDownCounter=function(e,t){return jv},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),hv=function(){function e(){}return e}(),gv=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(hv),_v=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(hv),vv=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(hv),yv=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(hv),bv=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),xv=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(bv),Sv=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(bv),Cv=function(e){pv(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(bv),wv=new mv,Tv=new gv,Ev=new vv,Dv=new yv,Ov=new _v,kv=new xv,Av=new Sv,jv=new Cv})),Nv,Pv=n((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(Nv||={})})),Fv,Iv,Lv=n((()=>{Fv={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Iv={set:function(e,t,n){e!=null&&(e[t]=n)}}})),Rv,zv,Bv,Vv=n((()=>{cv(),Rv=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},zv=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Bv=function(){function e(){}return e.prototype.active=function(){return sv},e.prototype.with=function(e,t,n){var r=[...arguments].slice(3);return t.call.apply(t,zv([n],Rv(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()})),Hv,Uv,Wv,Gv,Kv,qv=n((()=>{Vv(),P_(),J_(),Hv=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Uv=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Wv=`context`,Gv=new Bv,Kv=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return O_(Wv,e,q_.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,Uv([e,t,n],Hv(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return k_(Wv)||Gv},e.prototype.disable=function(){this._getContextManager().disable(),A_(Wv,q_.instance())},e}()})),Jv,Yv=n((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(Jv||={})})),Xv,Zv,Qv,$v=n((()=>{Yv(),Xv=`0000000000000000`,Zv=`00000000000000000000000000000000`,Qv={traceId:Zv,spanId:Xv,traceFlags:Jv.NONE}})),ey,ty=n((()=>{$v(),ey=function(){function e(e){e===void 0&&(e=Qv),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()}));function ny(e){return e.getValue(cy)||void 0}function ry(){return ny(Kv.getInstance().active())}function iy(e,t){return e.setValue(cy,t)}function ay(e){return e.deleteValue(cy)}function oy(e,t){return iy(e,new ey(t))}function sy(e){return ny(e)?.spanContext()}var cy,ly=n((()=>{cv(),ty(),qv(),cy=av(`OpenTelemetry Context Key SPAN`)}));function uy(e){return my.test(e)&&e!==Zv}function dy(e){return hy.test(e)&&e!==Xv}function fy(e){return uy(e.traceId)&&dy(e.spanId)}function py(e){return new ey(e)}var my,hy,gy=n((()=>{$v(),ty(),my=/^([0-9a-f]{32})$/i,hy=/^[0-9a-f]{16}$/i}));function _y(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var vy,yy,by=n((()=>{qv(),ly(),ty(),gy(),vy=Kv.getInstance(),yy=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(n===void 0&&(n=vy.active()),t?.root)return new ey;var r=n&&sy(n);return _y(r)&&fy(r)?new ey(r):new ey},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??vy.active(),c=this.startSpan(e,i,s),l=iy(s,c);return vy.with(l,o,void 0,c)}},e}()})),xy,Sy,Cy=n((()=>{by(),xy=new yy,Sy=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):xy},e}()})),wy,Ty=n((()=>{by(),wy=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new yy},e}()})),Ey,Dy,Oy=n((()=>{Cy(),Ty(),Ey=new wy,Dy=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return this.getDelegateTracer(e,t,n)??new Sy(this,e,t,n)},e.prototype.getDelegate=function(){return this._delegate??Ey},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){return this._delegate?.getTracer(e,t,n)},e}()})),ky,Ay=n((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(ky||={})})),jy,My=n((()=>{(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`})(jy||={})})),Ny,Py=n((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(Ny||={})}));function Fy(e){return By.test(e)}function Iy(e){return Vy.test(e)&&!Hy.test(e)}var Ly,Ry,zy,By,Vy,Hy,Uy=n((()=>{Ly=`[_0-9a-z-*/]`,Ry=`[a-z]`+Ly+`{0,255}`,zy=`[a-z0-9]`+Ly+`{0,240}@[a-z]`+Ly+`{0,13}`,By=RegExp(`^(?:`+Ry+`|`+zy+`)$`),Vy=/^[ -~]{0,255}[!-~]$/,Hy=/,|=/})),Wy,Gy,Ky,qy,Jy,Yy=n((()=>{Uy(),Wy=32,Gy=512,Ky=`,`,qy=`=`,Jy=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+qy+e.get(n)),t},[]).join(Ky)},e.prototype._parse=function(e){e.length>Gy||(this._internalState=e.split(Ky).reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf(qy);if(r!==-1){var i=n.slice(0,r),a=n.slice(r+1,t.length);Fy(i)&&Iy(a)&&e.set(i,a)}return e},new Map),this._internalState.size>Wy&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Wy))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()}));function Xy(e){return new Jy(e)}var Zy=n((()=>{Yy()})),Qy,$y=n((()=>{qv(),Qy=Kv.getInstance()})),eb,tb=n((()=>{J_(),eb=q_.instance()})),nb,rb,ib=n((()=>{Mv(),nb=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return wv},e}(),rb=new nb})),ab,ob,sb=n((()=>{ib(),P_(),J_(),ab=`metrics`,ob=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalMeterProvider=function(e){return O_(ab,e,q_.instance())},e.prototype.getMeterProvider=function(){return k_(ab)||rb},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){A_(ab,q_.instance())},e}()})),cb,lb=n((()=>{sb(),cb=ob.getInstance()})),ub,db=n((()=>{ub=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()}));function fb(e){return e.getValue(gb)||void 0}function pb(){return fb(Kv.getInstance().active())}function mb(e,t){return e.setValue(gb,t)}function hb(e){return e.deleteValue(gb)}var gb,_b=n((()=>{qv(),cv(),gb=av(`OpenTelemetry Baggage Key`)})),vb,yb,bb,xb=n((()=>{P_(),db(),Lv(),_b(),iv(),J_(),vb=`propagation`,yb=new ub,bb=function(){function e(){this.createBaggage=tv,this.getBaggage=fb,this.getActiveBaggage=pb,this.setBaggage=mb,this.deleteBaggage=hb}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalPropagator=function(e){return O_(vb,e,q_.instance())},e.prototype.inject=function(e,t,n){return n===void 0&&(n=Iv),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return n===void 0&&(n=Fv),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){A_(vb,q_.instance())},e.prototype._getGlobalPropagator=function(){return k_(vb)||yb},e}()})),Sb,Cb=n((()=>{xb(),Sb=bb.getInstance()})),wb,Tb,Eb=n((()=>{P_(),Oy(),gy(),ly(),J_(),wb=`trace`,Tb=function(){function e(){this._proxyTracerProvider=new Dy,this.wrapSpanContext=py,this.isSpanContextValid=fy,this.deleteSpan=ay,this.getSpan=ny,this.getActiveSpan=ry,this.getSpanContext=sy,this.setSpan=iy,this.setSpanContext=oy}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=O_(wb,this._proxyTracerProvider,q_.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return k_(wb)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){A_(wb,q_.instance()),this._proxyTracerProvider=new Dy},e}()})),Db,Ob=n((()=>{Eb(),Db=Tb.getInstance()})),Q=i({DiagConsoleLogger:()=>uv,DiagLogLevel:()=>B_,INVALID_SPANID:()=>Xv,INVALID_SPAN_CONTEXT:()=>Qv,INVALID_TRACEID:()=>Zv,ProxyTracer:()=>Sy,ProxyTracerProvider:()=>Dy,ROOT_CONTEXT:()=>sv,SamplingDecision:()=>ky,SpanKind:()=>jy,SpanStatusCode:()=>Ny,TraceFlags:()=>Jv,ValueType:()=>Nv,baggageEntryMetadataFromString:()=>nv,context:()=>Qy,createContextKey:()=>av,createNoopMeter:()=>fv,createTraceState:()=>Xy,default:()=>kb,defaultTextMapGetter:()=>Fv,defaultTextMapSetter:()=>Iv,diag:()=>eb,isSpanContextValid:()=>fy,isValidSpanId:()=>dy,isValidTraceId:()=>uy,metrics:()=>cb,propagation:()=>Sb,trace:()=>Db}),kb,$=n((()=>{iv(),cv(),dv(),V_(),Mv(),Pv(),Lv(),Cy(),Oy(),Ay(),My(),Py(),Yv(),Zy(),gy(),$v(),$y(),tb(),lb(),Cb(),Ob(),kb={context:Qy,diag:eb,metrics:cb,propagation:Sb,trace:Db}})),Ab=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isTracingSuppressed=t.unsuppressTracing=t.suppressTracing=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function r(e){return e.setValue(n,!0)}t.suppressTracing=r;function i(e){return e.deleteValue(n)}t.unsuppressTracing=i;function a(e){return e.getValue(n)===!0}t.isTracingSuppressed=a})),jb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR=`=`,e.BAGGAGE_PROPERTIES_SEPARATOR=`;`,e.BAGGAGE_ITEMS_SEPARATOR=`,`,e.BAGGAGE_HEADER=`baggage`,e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),Mb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseKeyPairsIntoRecord=t.parsePairKeyValue=t.getKeyPairs=t.serializeKeyPairs=void 0;let n=($(),e(Q)),r=jb();function i(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:r.BAGGAGE_ITEMS_SEPARATOR}${t}`;return n.length>r.BAGGAGE_MAX_TOTAL_LENGTH?e:n},``)}t.serializeKeyPairs=i;function a(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=r.BAGGAGE_PROPERTIES_SEPARATOR+t.metadata.toString()),n})}t.getKeyPairs=a;function o(e){let t=e.split(r.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let i=t.shift();if(!i)return;let a=i.indexOf(r.BAGGAGE_KEY_PAIR_SEPARATOR);if(a<=0)return;let o=decodeURIComponent(i.substring(0,a).trim()),s=decodeURIComponent(i.substring(a+1).trim()),c;return t.length>0&&(c=(0,n.baggageEntryMetadataFromString)(t.join(r.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:s,metadata:c}}t.parsePairKeyValue=o;function s(e){return typeof e!=`string`||e.length===0?{}:e.split(r.BAGGAGE_ITEMS_SEPARATOR).map(e=>o(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,t)=>(e[t.key]=t.value,e),{})}t.parseKeyPairsIntoRecord=s})),Nb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CBaggagePropagator=void 0;let n=($(),e(Q)),r=Ab(),i=jb(),a=Mb();t.W3CBaggagePropagator=class{inject(e,t,o){let s=n.propagation.getBaggage(e);if(!s||(0,r.isTracingSuppressed)(e))return;let c=(0,a.getKeyPairs)(s).filter(e=>e.length<=i.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,i.BAGGAGE_MAX_NAME_VALUE_PAIRS),l=(0,a.serializeKeyPairs)(c);l.length>0&&o.set(t,i.BAGGAGE_HEADER,l)}extract(e,t,r){let o=r.get(t,i.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(i.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return e;let c={};return s.length===0||(s.split(i.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let t=(0,a.parsePairKeyValue)(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),c[t.key]=e}}),Object.entries(c).length===0)?e:n.propagation.setBaggage(e,n.propagation.createBaggage(c))}fields(){return[i.BAGGAGE_HEADER]}}})),Pb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnchoredClock=void 0,e.AnchoredClock=class{constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}})),Fb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isAttributeValue=t.isAttributeKey=t.sanitizeAttributes=void 0;let n=($(),e(Q));function r(e){let t={};if(typeof e!=`object`||!e)return t;for(let[r,o]of Object.entries(e)){if(!i(r)){n.diag.warn(`Invalid attribute key: ${r}`);continue}if(!a(o)){n.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?t[r]=o.slice():t[r]=o}return t}t.sanitizeAttributes=r;function i(e){return typeof e==`string`&&e.length>0}t.isAttributeKey=i;function a(e){return e==null?!0:Array.isArray(e)?o(e):s(e)}t.isAttributeValue=a;function o(e){let t;for(let n of e)if(n!=null){if(!t){if(s(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function s(e){switch(typeof e){case`number`:case`boolean`:case`string`:return!0}return!1}})),Ib=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.loggingErrorHandler=void 0;let n=($(),e(Q));function r(){return e=>{n.diag.error(i(e))}}t.loggingErrorHandler=r;function i(e){return typeof e==`string`?e:JSON.stringify(a(e))}function a(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}})),Lb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;let t=(0,Ib().loggingErrorHandler)();function n(e){t=e}e.setGlobalErrorHandler=n;function r(e){try{t(e)}catch{}}e.globalErrorHandler=r})),Rb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TracesSamplerValues=void 0,(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`})(e.TracesSamplerValues||={})})),zb=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseEnvironment=t.DEFAULT_ENVIRONMENT=t.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=t.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=t.DEFAULT_ATTRIBUTE_COUNT_LIMIT=t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;let n=($(),e(Q)),r=Rb(),i=[`OTEL_SDK_DISABLED`];function a(e){return i.indexOf(e)>-1}let o=[`OTEL_BSP_EXPORT_TIMEOUT`,`OTEL_BSP_MAX_EXPORT_BATCH_SIZE`,`OTEL_BSP_MAX_QUEUE_SIZE`,`OTEL_BSP_SCHEDULE_DELAY`,`OTEL_BLRP_EXPORT_TIMEOUT`,`OTEL_BLRP_MAX_EXPORT_BATCH_SIZE`,`OTEL_BLRP_MAX_QUEUE_SIZE`,`OTEL_BLRP_SCHEDULE_DELAY`,`OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT`,`OTEL_ATTRIBUTE_COUNT_LIMIT`,`OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT`,`OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT`,`OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT`,`OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT`,`OTEL_SPAN_EVENT_COUNT_LIMIT`,`OTEL_SPAN_LINK_COUNT_LIMIT`,`OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT`,`OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT`,`OTEL_EXPORTER_OTLP_TIMEOUT`,`OTEL_EXPORTER_OTLP_TRACES_TIMEOUT`,`OTEL_EXPORTER_OTLP_METRICS_TIMEOUT`,`OTEL_EXPORTER_OTLP_LOGS_TIMEOUT`,`OTEL_EXPORTER_JAEGER_AGENT_PORT`];function s(e){return o.indexOf(e)>-1}let c=[`OTEL_NO_PATCH_MODULES`,`OTEL_PROPAGATORS`,`OTEL_SEMCONV_STABILITY_OPT_IN`];function l(e){return c.indexOf(e)>-1}t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,t.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,t.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,t.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,t.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:``,ECS_CONTAINER_METADATA_URI_V4:``,ECS_CONTAINER_METADATA_URI:``,HOSTNAME:``,KUBERNETES_SERVICE_HOST:``,NAMESPACE:``,OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:``,OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:``,OTEL_EXPORTER_JAEGER_PASSWORD:``,OTEL_EXPORTER_JAEGER_USER:``,OTEL_EXPORTER_OTLP_ENDPOINT:``,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:``,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:``,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:``,OTEL_EXPORTER_OTLP_HEADERS:``,OTEL_EXPORTER_OTLP_TRACES_HEADERS:``,OTEL_EXPORTER_OTLP_METRICS_HEADERS:``,OTEL_EXPORTER_OTLP_LOGS_HEADERS:``,OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:`http://localhost:9411/api/v2/spans`,OTEL_LOG_LEVEL:n.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:[`tracecontext`,`baggage`],OTEL_RESOURCE_ATTRIBUTES:``,OTEL_SERVICE_NAME:``,OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:t.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:t.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:t.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:t.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:t.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:t.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:``,OTEL_TRACES_SAMPLER:r.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:``,OTEL_LOGS_EXPORTER:``,OTEL_EXPORTER_OTLP_INSECURE:``,OTEL_EXPORTER_OTLP_TRACES_INSECURE:``,OTEL_EXPORTER_OTLP_METRICS_INSECURE:``,OTEL_EXPORTER_OTLP_LOGS_INSECURE:``,OTEL_EXPORTER_OTLP_CERTIFICATE:``,OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:``,OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:``,OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:``,OTEL_EXPORTER_OTLP_COMPRESSION:``,OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:``,OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:``,OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:``,OTEL_EXPORTER_OTLP_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:``,OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:``,OTEL_EXPORTER_OTLP_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:`http/protobuf`,OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:`cumulative`,OTEL_SEMCONV_STABILITY_OPT_IN:[]};function u(e,t,n){n[e]!==void 0&&(t[e]=String(n[e]).toLowerCase()===`true`)}function d(e,t,n,r=-1/0,i=1/0){if(n[e]!==void 0){let a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function f(e,t,n,r=`,`){let i=n[e];typeof i==`string`&&(t[e]=i.split(r).map(e=>e.trim()))}let p={ALL:n.DiagLogLevel.ALL,VERBOSE:n.DiagLogLevel.VERBOSE,DEBUG:n.DiagLogLevel.DEBUG,INFO:n.DiagLogLevel.INFO,WARN:n.DiagLogLevel.WARN,ERROR:n.DiagLogLevel.ERROR,NONE:n.DiagLogLevel.NONE};function m(e,t,n){let r=n[e];if(typeof r==`string`){let n=p[r.toUpperCase()];n!=null&&(t[e]=n)}}function h(e){let n={};for(let r in t.DEFAULT_ENVIRONMENT){let t=r;switch(t){case`OTEL_LOG_LEVEL`:m(t,n,e);break;default:if(a(t))u(t,n,e);else if(s(t))d(t,n,e);else if(l(t))f(t,n,e);else{let r=e[t];r!=null&&(n[t]=String(r))}}}return n}t.parseEnvironment=h})),Bb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getEnvWithoutDefaults=e.getEnv=void 0;let t=zb();function n(){let e=(0,t.parseEnvironment)(process.env);return Object.assign({},t.DEFAULT_ENVIRONMENT,e)}e.getEnv=n;function r(){return(0,t.parseEnvironment)(process.env)}e.getEnvWithoutDefaults=r})),Vb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e._globalThis=void 0,e._globalThis=typeof globalThis==`object`?globalThis:global})),Hb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hexToBinary=void 0;function t(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function n(e){let n=new Uint8Array(e.length/2),r=0;for(let i=0;i<e.length;i+=2){let a=t(e.charCodeAt(i)),o=t(e.charCodeAt(i+1));n[r++]=a<<4|o}return n}e.hexToBinary=n})),Ub=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hexToBase64=void 0;let t=Hb();function n(e){return Buffer.from((0,t.hexToBinary)(e)).toString(`base64`)}e.hexToBase64=n})),Wb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};let t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString(`hex`,0,e)}}})),Gb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.otperformance=void 0,e.otperformance=t(`perf_hooks`).performance})),Kb=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION=void 0,e.VERSION=`1.30.1`}));function qb(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,`_`)]=i)}return t}var Jb=n((()=>{})),Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC,lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,NC,PC,FC,IC,LC,RC,zC,BC,VC,HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,jw,Mw,Nw,Pw,Fw,Iw,Lw,Rw,zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT,dT,fT,pT,mT,hT,gT,_T,vT,yT,bT,xT,ST,CT,wT,TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA=n((()=>{Jb(),Yb=`aws.lambda.invoked_arn`,Xb=`db.system`,Zb=`db.connection_string`,Qb=`db.user`,$b=`db.jdbc.driver_classname`,ex=`db.name`,tx=`db.statement`,nx=`db.operation`,rx=`db.mssql.instance_name`,ix=`db.cassandra.keyspace`,ax=`db.cassandra.page_size`,ox=`db.cassandra.consistency_level`,sx=`db.cassandra.table`,cx=`db.cassandra.idempotence`,lx=`db.cassandra.speculative_execution_count`,ux=`db.cassandra.coordinator.id`,dx=`db.cassandra.coordinator.dc`,fx=`db.hbase.namespace`,px=`db.redis.database_index`,mx=`db.mongodb.collection`,hx=`db.sql.table`,gx=`exception.type`,_x=`exception.message`,vx=`exception.stacktrace`,yx=`exception.escaped`,bx=`faas.trigger`,xx=`faas.execution`,Sx=`faas.document.collection`,Cx=`faas.document.operation`,wx=`faas.document.time`,Tx=`faas.document.name`,Ex=`faas.time`,Dx=`faas.cron`,Ox=`faas.coldstart`,kx=`faas.invoked_name`,Ax=`faas.invoked_provider`,jx=`faas.invoked_region`,Mx=`net.transport`,Nx=`net.peer.ip`,Px=`net.peer.port`,Fx=`net.peer.name`,Ix=`net.host.ip`,Lx=`net.host.port`,Rx=`net.host.name`,zx=`net.host.connection.type`,Bx=`net.host.connection.subtype`,Vx=`net.host.carrier.name`,Hx=`net.host.carrier.mcc`,Ux=`net.host.carrier.mnc`,Wx=`net.host.carrier.icc`,Gx=`peer.service`,Kx=`enduser.id`,qx=`enduser.role`,Jx=`enduser.scope`,Yx=`thread.id`,Xx=`thread.name`,Zx=`code.function`,Qx=`code.namespace`,$x=`code.filepath`,eS=`code.lineno`,tS=`http.method`,nS=`http.url`,rS=`http.target`,iS=`http.host`,aS=`http.scheme`,oS=`http.status_code`,sS=`http.flavor`,cS=`http.user_agent`,lS=`http.request_content_length`,uS=`http.request_content_length_uncompressed`,dS=`http.response_content_length`,fS=`http.response_content_length_uncompressed`,pS=`http.server_name`,mS=`http.route`,hS=`http.client_ip`,gS=`aws.dynamodb.table_names`,_S=`aws.dynamodb.consumed_capacity`,vS=`aws.dynamodb.item_collection_metrics`,yS=`aws.dynamodb.provisioned_read_capacity`,bS=`aws.dynamodb.provisioned_write_capacity`,xS=`aws.dynamodb.consistent_read`,SS=`aws.dynamodb.projection`,CS=`aws.dynamodb.limit`,wS=`aws.dynamodb.attributes_to_get`,TS=`aws.dynamodb.index_name`,ES=`aws.dynamodb.select`,DS=`aws.dynamodb.global_secondary_indexes`,OS=`aws.dynamodb.local_secondary_indexes`,kS=`aws.dynamodb.exclusive_start_table`,AS=`aws.dynamodb.table_count`,jS=`aws.dynamodb.scan_forward`,MS=`aws.dynamodb.segment`,NS=`aws.dynamodb.total_segments`,PS=`aws.dynamodb.count`,FS=`aws.dynamodb.scanned_count`,IS=`aws.dynamodb.attribute_definitions`,LS=`aws.dynamodb.global_secondary_index_updates`,RS=`messaging.system`,zS=`messaging.destination`,BS=`messaging.destination_kind`,VS=`messaging.temp_destination`,HS=`messaging.protocol`,US=`messaging.protocol_version`,WS=`messaging.url`,GS=`messaging.message_id`,KS=`messaging.conversation_id`,qS=`messaging.message_payload_size_bytes`,JS=`messaging.message_payload_compressed_size_bytes`,YS=`messaging.operation`,XS=`messaging.consumer_id`,ZS=`messaging.rabbitmq.routing_key`,QS=`messaging.kafka.message_key`,$S=`messaging.kafka.consumer_group`,eC=`messaging.kafka.client_id`,tC=`messaging.kafka.partition`,nC=`messaging.kafka.tombstone`,rC=`rpc.system`,iC=`rpc.service`,aC=`rpc.method`,oC=`rpc.grpc.status_code`,sC=`rpc.jsonrpc.version`,cC=`rpc.jsonrpc.request_id`,lC=`rpc.jsonrpc.error_code`,uC=`rpc.jsonrpc.error_message`,dC=`message.type`,fC=`message.id`,pC=`message.compressed_size`,mC=`message.uncompressed_size`,hC=Yb,gC=Xb,_C=Zb,vC=Qb,yC=$b,bC=ex,xC=tx,SC=nx,CC=rx,wC=ix,TC=ax,EC=ox,DC=sx,OC=cx,kC=lx,AC=ux,jC=dx,MC=fx,NC=px,PC=mx,FC=hx,IC=gx,LC=_x,RC=vx,zC=yx,BC=bx,VC=xx,HC=Sx,UC=Cx,WC=wx,GC=Tx,KC=Ex,qC=Dx,JC=Ox,YC=kx,XC=Ax,ZC=jx,QC=Mx,$C=Nx,ew=Px,tw=Fx,nw=Ix,rw=Lx,iw=Rx,aw=zx,ow=Bx,sw=Vx,cw=Hx,lw=Ux,uw=Wx,dw=Gx,fw=Kx,pw=qx,mw=Jx,hw=Yx,gw=Xx,_w=Zx,vw=Qx,yw=$x,bw=eS,xw=tS,Sw=nS,Cw=rS,ww=iS,Tw=aS,Ew=oS,Dw=sS,Ow=cS,kw=lS,Aw=uS,jw=dS,Mw=fS,Nw=pS,Pw=mS,Fw=hS,Iw=gS,Lw=_S,Rw=vS,zw=yS,Bw=bS,Vw=xS,Hw=SS,Uw=CS,Ww=wS,Gw=TS,Kw=ES,qw=DS,Jw=OS,Yw=kS,Xw=AS,Zw=jS,Qw=MS,$w=NS,eT=PS,tT=FS,nT=IS,rT=LS,iT=RS,aT=zS,oT=BS,sT=VS,cT=HS,lT=US,uT=WS,dT=GS,fT=KS,pT=qS,mT=JS,hT=YS,gT=XS,_T=ZS,vT=QS,yT=$S,bT=eC,xT=tC,ST=nC,CT=rC,wT=iC,TT=aC,ET=oC,DT=sC,OT=cC,kT=lC,AT=uC,jT=dC,MT=fC,NT=pC,PT=mC,FT=qb([Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS,iS,aS,oS,sS,cS,lS,uS,dS,fS,pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC,lC,uC,dC,fC,pC,mC]),IT=`other_sql`,LT=`mssql`,RT=`mysql`,zT=`oracle`,BT=`db2`,VT=`postgresql`,HT=`redshift`,UT=`hive`,WT=`cloudscape`,GT=`hsqldb`,KT=`progress`,qT=`maxdb`,JT=`hanadb`,YT=`ingres`,XT=`firstsql`,ZT=`edb`,QT=`cache`,$T=`adabas`,eE=`firebird`,tE=`derby`,nE=`filemaker`,rE=`informix`,iE=`instantdb`,aE=`interbase`,oE=`mariadb`,sE=`netezza`,cE=`pervasive`,lE=`pointbase`,uE=`sqlite`,dE=`sybase`,fE=`teradata`,pE=`vertica`,mE=`h2`,hE=`coldfusion`,gE=`cassandra`,_E=`hbase`,vE=`mongodb`,yE=`redis`,bE=`couchbase`,xE=`couchdb`,SE=`cosmosdb`,CE=`dynamodb`,wE=`neo4j`,TE=`geode`,EE=`elasticsearch`,DE=`memcached`,OE=`cockroachdb`,kE=IT,AE=LT,jE=RT,ME=zT,NE=BT,PE=VT,FE=HT,IE=UT,LE=WT,RE=GT,zE=KT,BE=qT,VE=JT,HE=YT,UE=XT,WE=ZT,GE=QT,KE=$T,qE=eE,JE=tE,YE=nE,XE=rE,ZE=iE,QE=aE,$E=oE,eD=sE,tD=cE,nD=lE,rD=uE,iD=dE,aD=fE,oD=pE,sD=mE,cD=hE,lD=gE,uD=_E,dD=vE,fD=yE,pD=bE,mD=xE,hD=SE,gD=CE,_D=wE,vD=TE,yD=EE,bD=DE,xD=OE,SD=qb([IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE]),CD=`all`,wD=`each_quorum`,TD=`quorum`,ED=`local_quorum`,DD=`one`,OD=`two`,kD=`three`,AD=`local_one`,jD=`any`,MD=`serial`,ND=`local_serial`,PD=CD,FD=wD,ID=TD,LD=ED,RD=DD,zD=OD,BD=kD,VD=AD,HD=jD,UD=MD,WD=ND,GD=qb([CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND]),KD=`datasource`,qD=`http`,JD=`pubsub`,YD=`timer`,XD=`other`,ZD=KD,QD=qD,$D=JD,eO=YD,tO=XD,nO=qb([KD,qD,JD,YD,XD]),rO=`insert`,iO=`edit`,aO=`delete`,oO=rO,sO=iO,cO=aO,lO=qb([rO,iO,aO]),uO=`alibaba_cloud`,dO=`aws`,fO=`azure`,pO=`gcp`,mO=uO,hO=dO,gO=fO,_O=pO,vO=qb([uO,dO,fO,pO]),yO=`ip_tcp`,bO=`ip_udp`,xO=`ip`,SO=`unix`,CO=`pipe`,wO=`inproc`,TO=`other`,EO=yO,DO=bO,OO=xO,kO=SO,AO=CO,jO=wO,MO=TO,NO=qb([yO,bO,xO,SO,CO,wO,TO]),PO=`wifi`,FO=`wired`,IO=`cell`,LO=`unavailable`,RO=`unknown`,zO=PO,BO=FO,VO=IO,HO=LO,UO=RO,WO=qb([PO,FO,IO,LO,RO]),GO=`gprs`,KO=`edge`,qO=`umts`,JO=`cdma`,YO=`evdo_0`,XO=`evdo_a`,ZO=`cdma2000_1xrtt`,QO=`hsdpa`,$O=`hsupa`,ek=`hspa`,tk=`iden`,nk=`evdo_b`,rk=`lte`,ik=`ehrpd`,ak=`hspap`,ok=`gsm`,sk=`td_scdma`,ck=`iwlan`,lk=`nr`,uk=`nrnsa`,dk=`lte_ca`,fk=GO,pk=KO,mk=qO,hk=JO,gk=YO,_k=XO,vk=ZO,yk=QO,bk=$O,xk=ek,Sk=tk,Ck=nk,wk=rk,Tk=ik,Ek=ak,Dk=ok,Ok=sk,kk=ck,Ak=lk,jk=uk,Mk=dk,Nk=qb([GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk]),Pk=`1.0`,Fk=`1.1`,Ik=`2.0`,Lk=`SPDY`,Rk=`QUIC`,zk=Pk,Bk=Fk,Vk=Ik,Hk=Lk,Uk=Rk,Wk={HTTP_1_0:Pk,HTTP_1_1:Fk,HTTP_2_0:Ik,SPDY:Lk,QUIC:Rk},Gk=`queue`,Kk=`topic`,qk=Gk,Jk=Kk,Yk=qb([Gk,Kk]),Xk=`receive`,Zk=`process`,Qk=Xk,$k=Zk,eA=qb([Xk,Zk]),tA=0,nA=1,rA=2,iA=3,aA=4,oA=5,sA=6,cA=7,lA=8,uA=9,dA=10,fA=11,pA=12,mA=13,hA=14,gA=15,_A=16,vA=tA,yA=nA,bA=rA,xA=iA,SA=aA,CA=oA,wA=sA,TA=cA,EA=lA,DA=uA,OA=dA,kA=fA,AA=pA,jA=mA,MA=hA,NA=gA,PA=_A,FA={OK:tA,CANCELLED:nA,UNKNOWN:rA,INVALID_ARGUMENT:iA,DEADLINE_EXCEEDED:aA,NOT_FOUND:oA,ALREADY_EXISTS:sA,PERMISSION_DENIED:cA,RESOURCE_EXHAUSTED:lA,FAILED_PRECONDITION:uA,ABORTED:dA,OUT_OF_RANGE:fA,UNIMPLEMENTED:pA,INTERNAL:mA,UNAVAILABLE:hA,DATA_LOSS:gA,UNAUTHENTICATED:_A},IA=`SENT`,LA=`RECEIVED`,RA=IA,zA=LA,BA=qb([IA,LA])})),HA=n((()=>{VA()})),UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF=n((()=>{Jb(),UA=`cloud.provider`,WA=`cloud.account.id`,GA=`cloud.region`,KA=`cloud.availability_zone`,qA=`cloud.platform`,JA=`aws.ecs.container.arn`,YA=`aws.ecs.cluster.arn`,XA=`aws.ecs.launchtype`,ZA=`aws.ecs.task.arn`,QA=`aws.ecs.task.family`,$A=`aws.ecs.task.revision`,ej=`aws.eks.cluster.arn`,tj=`aws.log.group.names`,nj=`aws.log.group.arns`,rj=`aws.log.stream.names`,ij=`aws.log.stream.arns`,aj=`container.name`,oj=`container.id`,sj=`container.runtime`,cj=`container.image.name`,lj=`container.image.tag`,uj=`deployment.environment`,dj=`device.id`,fj=`device.model.identifier`,pj=`device.model.name`,mj=`faas.name`,hj=`faas.id`,gj=`faas.version`,_j=`faas.instance`,vj=`faas.max_memory`,yj=`host.id`,bj=`host.name`,xj=`host.type`,Sj=`host.arch`,Cj=`host.image.name`,wj=`host.image.id`,Tj=`host.image.version`,Ej=`k8s.cluster.name`,Dj=`k8s.node.name`,Oj=`k8s.node.uid`,kj=`k8s.namespace.name`,Aj=`k8s.pod.uid`,jj=`k8s.pod.name`,Mj=`k8s.container.name`,Nj=`k8s.replicaset.uid`,Pj=`k8s.replicaset.name`,Fj=`k8s.deployment.uid`,Ij=`k8s.deployment.name`,Lj=`k8s.statefulset.uid`,Rj=`k8s.statefulset.name`,zj=`k8s.daemonset.uid`,Bj=`k8s.daemonset.name`,Vj=`k8s.job.uid`,Hj=`k8s.job.name`,Uj=`k8s.cronjob.uid`,Wj=`k8s.cronjob.name`,Gj=`os.type`,Kj=`os.description`,qj=`os.name`,Jj=`os.version`,Yj=`process.pid`,Xj=`process.executable.name`,Zj=`process.executable.path`,Qj=`process.command`,$j=`process.command_line`,eM=`process.command_args`,tM=`process.owner`,nM=`process.runtime.name`,rM=`process.runtime.version`,iM=`process.runtime.description`,aM=`service.name`,oM=`service.namespace`,sM=`service.instance.id`,cM=`service.version`,lM=`telemetry.sdk.name`,uM=`telemetry.sdk.language`,dM=`telemetry.sdk.version`,fM=`telemetry.auto.version`,pM=`webengine.name`,mM=`webengine.version`,hM=`webengine.description`,gM=UA,_M=WA,vM=GA,yM=KA,bM=qA,xM=JA,SM=YA,CM=XA,wM=ZA,TM=QA,EM=$A,DM=ej,OM=tj,kM=nj,AM=rj,jM=ij,MM=aj,NM=oj,PM=sj,FM=cj,IM=lj,LM=uj,RM=dj,zM=fj,BM=pj,VM=mj,HM=hj,UM=gj,WM=_j,GM=vj,KM=yj,qM=bj,JM=xj,YM=Sj,XM=Cj,ZM=wj,QM=Tj,$M=Ej,eN=Dj,tN=Oj,nN=kj,rN=Aj,iN=jj,aN=Mj,oN=Nj,sN=Pj,cN=Fj,lN=Ij,uN=Lj,dN=Rj,fN=zj,pN=Bj,mN=Vj,hN=Hj,gN=Uj,_N=Wj,vN=Gj,yN=Kj,bN=qj,xN=Jj,SN=Yj,CN=Xj,wN=Zj,TN=Qj,EN=$j,DN=eM,ON=tM,kN=nM,AN=rM,jN=iM,MN=aM,NN=oM,PN=sM,FN=cM,IN=lM,LN=uM,RN=dM,zN=fM,BN=pM,VN=mM,HN=hM,UN=qb([UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM]),WN=`alibaba_cloud`,GN=`aws`,KN=`azure`,qN=`gcp`,JN=WN,YN=GN,XN=KN,ZN=qN,QN=qb([WN,GN,KN,qN]),$N=`alibaba_cloud_ecs`,eP=`alibaba_cloud_fc`,tP=`aws_ec2`,nP=`aws_ecs`,rP=`aws_eks`,iP=`aws_lambda`,aP=`aws_elastic_beanstalk`,oP=`azure_vm`,sP=`azure_container_instances`,cP=`azure_aks`,lP=`azure_functions`,uP=`azure_app_service`,dP=`gcp_compute_engine`,fP=`gcp_cloud_run`,pP=`gcp_kubernetes_engine`,mP=`gcp_cloud_functions`,hP=`gcp_app_engine`,gP=$N,_P=eP,vP=tP,yP=nP,bP=rP,xP=iP,SP=aP,CP=oP,wP=sP,TP=cP,EP=lP,DP=uP,OP=dP,kP=fP,AP=pP,jP=mP,MP=hP,NP=qb([$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP]),PP=`ec2`,FP=`fargate`,IP=PP,LP=FP,RP=qb([PP,FP]),zP=`amd64`,BP=`arm32`,VP=`arm64`,HP=`ia64`,UP=`ppc32`,WP=`ppc64`,GP=`x86`,KP=zP,qP=BP,JP=VP,YP=HP,XP=UP,ZP=WP,QP=GP,$P=qb([zP,BP,VP,HP,UP,WP,GP]),eF=`windows`,tF=`linux`,nF=`darwin`,rF=`freebsd`,iF=`netbsd`,aF=`openbsd`,oF=`dragonflybsd`,sF=`hpux`,cF=`aix`,lF=`solaris`,uF=`z_os`,dF=eF,fF=tF,pF=nF,mF=rF,hF=iF,gF=aF,_F=oF,vF=sF,yF=cF,bF=lF,xF=uF,SF=qb([eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF]),CF=`cpp`,wF=`dotnet`,TF=`erlang`,EF=`go`,DF=`java`,OF=`nodejs`,kF=`php`,AF=`python`,jF=`ruby`,MF=`webjs`,NF=CF,PF=wF,FF=TF,IF=EF,LF=DF,RF=OF,zF=kF,BF=AF,VF=jF,HF=MF,UF=qb([CF,wF,TF,EF,DF,OF,kF,AF,jF,MF])})),GF=n((()=>{WF()})),KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL=n((()=>{KF=`aspnetcore.rate_limiting.result`,qF=`acquired`,JF=`endpoint_limiter`,YF=`global_limiter`,XF=`request_canceled`,ZF=`telemetry.sdk.language`,QF=`cpp`,$F=`dotnet`,eI=`erlang`,tI=`go`,nI=`java`,rI=`nodejs`,iI=`php`,aI=`python`,oI=`ruby`,sI=`rust`,cI=`swift`,lI=`webjs`,uI=`telemetry.sdk.name`,dI=`telemetry.sdk.version`,fI=`aspnetcore.diagnostics.handler.type`,pI=`aspnetcore.diagnostics.exception.result`,mI=`aborted`,hI=`handled`,gI=`skipped`,_I=`unhandled`,vI=`aspnetcore.rate_limiting.policy`,yI=`aspnetcore.request.is_unhandled`,bI=`aspnetcore.routing.is_fallback`,xI=`aspnetcore.routing.match_status`,SI=`failure`,CI=`success`,wI=`client.address`,TI=`client.port`,EI=`error.type`,DI=`_OTHER`,OI=`exception.escaped`,kI=`exception.message`,AI=`exception.stacktrace`,jI=`exception.type`,MI=function(e){return`http.request.header.`+e},NI=`http.request.method`,PI=`_OTHER`,FI=`CONNECT`,II=`DELETE`,LI=`GET`,RI=`HEAD`,zI=`OPTIONS`,BI=`PATCH`,VI=`POST`,HI=`PUT`,UI=`TRACE`,WI=`http.request.method_original`,GI=`http.request.resend_count`,KI=function(e){return`http.response.header.`+e},qI=`http.response.status_code`,JI=`http.route`,YI=`jvm.gc.action`,XI=`jvm.gc.name`,ZI=`jvm.memory.pool.name`,QI=`jvm.memory.type`,$I=`heap`,eL=`non_heap`,tL=`jvm.thread.daemon`,nL=`jvm.thread.state`,rL=`blocked`,iL=`new`,aL=`runnable`,oL=`terminated`,sL=`timed_waiting`,cL=`waiting`,lL=`network.local.address`,uL=`network.local.port`,dL=`network.peer.address`,fL=`network.peer.port`,pL=`network.protocol.name`,mL=`network.protocol.version`,hL=`network.transport`,gL=`pipe`,_L=`quic`,vL=`tcp`,yL=`udp`,bL=`unix`,xL=`network.type`,SL=`ipv4`,CL=`ipv6`,wL=`otel.scope.name`,TL=`otel.scope.version`,EL=`otel.status_code`,DL=`ERROR`,OL=`OK`,kL=`otel.status_description`,AL=`server.address`,jL=`server.port`,ML=`service.name`,NL=`service.version`,PL=`signalr.connection.status`,FL=`app_shutdown`,IL=`normal_closure`,LL=`timeout`,RL=`signalr.transport`,zL=`long_polling`,BL=`server_sent_events`,VL=`web_sockets`,HL=`url.fragment`,UL=`url.full`,WL=`url.path`,GL=`url.query`,KL=`url.scheme`,qL=`user_agent.original`})),YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER=n((()=>{YL=`aspnetcore.diagnostics.exceptions`,XL=`aspnetcore.rate_limiting.active_request_leases`,ZL=`aspnetcore.rate_limiting.queued_requests`,QL=`aspnetcore.rate_limiting.request.time_in_queue`,$L=`aspnetcore.rate_limiting.request_lease.duration`,eR=`aspnetcore.rate_limiting.requests`,tR=`aspnetcore.routing.match_attempts`,nR=`http.client.request.duration`,rR=`http.server.request.duration`,iR=`jvm.class.count`,aR=`jvm.class.loaded`,oR=`jvm.class.unloaded`,sR=`jvm.cpu.count`,cR=`jvm.cpu.recent_utilization`,lR=`jvm.cpu.time`,uR=`jvm.gc.duration`,dR=`jvm.memory.committed`,fR=`jvm.memory.limit`,pR=`jvm.memory.used`,mR=`jvm.memory.used_after_last_gc`,hR=`jvm.thread.count`,gR=`kestrel.active_connections`,_R=`kestrel.active_tls_handshakes`,vR=`kestrel.connection.duration`,yR=`kestrel.queued_connections`,bR=`kestrel.queued_requests`,xR=`kestrel.rejected_connections`,SR=`kestrel.tls_handshake.duration`,CR=`kestrel.upgraded_connections`,wR=`signalr.server.active_connections`,TR=`signalr.server.connection.duration`})),DR=i({ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>mI,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>hI,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>gI,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>_I,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>qF,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>JF,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>YF,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>XF,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>SI,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>CI,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>pI,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>fI,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>vI,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>KF,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>yI,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>bI,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>xI,ATTR_CLIENT_ADDRESS:()=>wI,ATTR_CLIENT_PORT:()=>TI,ATTR_ERROR_TYPE:()=>EI,ATTR_EXCEPTION_ESCAPED:()=>OI,ATTR_EXCEPTION_MESSAGE:()=>kI,ATTR_EXCEPTION_STACKTRACE:()=>AI,ATTR_EXCEPTION_TYPE:()=>jI,ATTR_HTTP_REQUEST_HEADER:()=>MI,ATTR_HTTP_REQUEST_METHOD:()=>NI,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>WI,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>GI,ATTR_HTTP_RESPONSE_HEADER:()=>KI,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>qI,ATTR_HTTP_ROUTE:()=>JI,ATTR_JVM_GC_ACTION:()=>YI,ATTR_JVM_GC_NAME:()=>XI,ATTR_JVM_MEMORY_POOL_NAME:()=>ZI,ATTR_JVM_MEMORY_TYPE:()=>QI,ATTR_JVM_THREAD_DAEMON:()=>tL,ATTR_JVM_THREAD_STATE:()=>nL,ATTR_NETWORK_LOCAL_ADDRESS:()=>lL,ATTR_NETWORK_LOCAL_PORT:()=>uL,ATTR_NETWORK_PEER_ADDRESS:()=>dL,ATTR_NETWORK_PEER_PORT:()=>fL,ATTR_NETWORK_PROTOCOL_NAME:()=>pL,ATTR_NETWORK_PROTOCOL_VERSION:()=>mL,ATTR_NETWORK_TRANSPORT:()=>hL,ATTR_NETWORK_TYPE:()=>xL,ATTR_OTEL_SCOPE_NAME:()=>wL,ATTR_OTEL_SCOPE_VERSION:()=>TL,ATTR_OTEL_STATUS_CODE:()=>EL,ATTR_OTEL_STATUS_DESCRIPTION:()=>kL,ATTR_SERVER_ADDRESS:()=>AL,ATTR_SERVER_PORT:()=>jL,ATTR_SERVICE_NAME:()=>ML,ATTR_SERVICE_VERSION:()=>NL,ATTR_SIGNALR_CONNECTION_STATUS:()=>PL,ATTR_SIGNALR_TRANSPORT:()=>RL,ATTR_TELEMETRY_SDK_LANGUAGE:()=>ZF,ATTR_TELEMETRY_SDK_NAME:()=>uI,ATTR_TELEMETRY_SDK_VERSION:()=>dI,ATTR_URL_FRAGMENT:()=>HL,ATTR_URL_FULL:()=>UL,ATTR_URL_PATH:()=>WL,ATTR_URL_QUERY:()=>GL,ATTR_URL_SCHEME:()=>KL,ATTR_USER_AGENT_ORIGINAL:()=>qL,AWSECSLAUNCHTYPEVALUES_EC2:()=>IP,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>LP,AwsEcsLaunchtypeValues:()=>RP,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>gP,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>_P,CLOUDPLATFORMVALUES_AWS_EC2:()=>vP,CLOUDPLATFORMVALUES_AWS_ECS:()=>yP,CLOUDPLATFORMVALUES_AWS_EKS:()=>bP,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>SP,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>xP,CLOUDPLATFORMVALUES_AZURE_AKS:()=>TP,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>DP,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>wP,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>EP,CLOUDPLATFORMVALUES_AZURE_VM:()=>CP,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>MP,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>jP,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>kP,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>OP,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>AP,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>JN,CLOUDPROVIDERVALUES_AWS:()=>YN,CLOUDPROVIDERVALUES_AZURE:()=>XN,CLOUDPROVIDERVALUES_GCP:()=>ZN,CloudPlatformValues:()=>NP,CloudProviderValues:()=>QN,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>PD,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>HD,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>FD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>VD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>LD,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>WD,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>RD,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>ID,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>UD,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>BD,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>zD,DBSYSTEMVALUES_ADABAS:()=>KE,DBSYSTEMVALUES_CACHE:()=>GE,DBSYSTEMVALUES_CASSANDRA:()=>lD,DBSYSTEMVALUES_CLOUDSCAPE:()=>LE,DBSYSTEMVALUES_COCKROACHDB:()=>xD,DBSYSTEMVALUES_COLDFUSION:()=>cD,DBSYSTEMVALUES_COSMOSDB:()=>hD,DBSYSTEMVALUES_COUCHBASE:()=>pD,DBSYSTEMVALUES_COUCHDB:()=>mD,DBSYSTEMVALUES_DB2:()=>NE,DBSYSTEMVALUES_DERBY:()=>JE,DBSYSTEMVALUES_DYNAMODB:()=>gD,DBSYSTEMVALUES_EDB:()=>WE,DBSYSTEMVALUES_ELASTICSEARCH:()=>yD,DBSYSTEMVALUES_FILEMAKER:()=>YE,DBSYSTEMVALUES_FIREBIRD:()=>qE,DBSYSTEMVALUES_FIRSTSQL:()=>UE,DBSYSTEMVALUES_GEODE:()=>vD,DBSYSTEMVALUES_H2:()=>sD,DBSYSTEMVALUES_HANADB:()=>VE,DBSYSTEMVALUES_HBASE:()=>uD,DBSYSTEMVALUES_HIVE:()=>IE,DBSYSTEMVALUES_HSQLDB:()=>RE,DBSYSTEMVALUES_INFORMIX:()=>XE,DBSYSTEMVALUES_INGRES:()=>HE,DBSYSTEMVALUES_INSTANTDB:()=>ZE,DBSYSTEMVALUES_INTERBASE:()=>QE,DBSYSTEMVALUES_MARIADB:()=>$E,DBSYSTEMVALUES_MAXDB:()=>BE,DBSYSTEMVALUES_MEMCACHED:()=>bD,DBSYSTEMVALUES_MONGODB:()=>dD,DBSYSTEMVALUES_MSSQL:()=>AE,DBSYSTEMVALUES_MYSQL:()=>jE,DBSYSTEMVALUES_NEO4J:()=>_D,DBSYSTEMVALUES_NETEZZA:()=>eD,DBSYSTEMVALUES_ORACLE:()=>ME,DBSYSTEMVALUES_OTHER_SQL:()=>kE,DBSYSTEMVALUES_PERVASIVE:()=>tD,DBSYSTEMVALUES_POINTBASE:()=>nD,DBSYSTEMVALUES_POSTGRESQL:()=>PE,DBSYSTEMVALUES_PROGRESS:()=>zE,DBSYSTEMVALUES_REDIS:()=>fD,DBSYSTEMVALUES_REDSHIFT:()=>FE,DBSYSTEMVALUES_SQLITE:()=>rD,DBSYSTEMVALUES_SYBASE:()=>iD,DBSYSTEMVALUES_TERADATA:()=>aD,DBSYSTEMVALUES_VERTICA:()=>oD,DbCassandraConsistencyLevelValues:()=>GD,DbSystemValues:()=>SD,ERROR_TYPE_VALUE_OTHER:()=>DI,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>cO,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>sO,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>oO,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>mO,FAASINVOKEDPROVIDERVALUES_AWS:()=>hO,FAASINVOKEDPROVIDERVALUES_AZURE:()=>gO,FAASINVOKEDPROVIDERVALUES_GCP:()=>_O,FAASTRIGGERVALUES_DATASOURCE:()=>ZD,FAASTRIGGERVALUES_HTTP:()=>QD,FAASTRIGGERVALUES_OTHER:()=>tO,FAASTRIGGERVALUES_PUBSUB:()=>$D,FAASTRIGGERVALUES_TIMER:()=>eO,FaasDocumentOperationValues:()=>lO,FaasInvokedProviderValues:()=>vO,FaasTriggerValues:()=>nO,HOSTARCHVALUES_AMD64:()=>KP,HOSTARCHVALUES_ARM32:()=>qP,HOSTARCHVALUES_ARM64:()=>JP,HOSTARCHVALUES_IA64:()=>YP,HOSTARCHVALUES_PPC32:()=>XP,HOSTARCHVALUES_PPC64:()=>ZP,HOSTARCHVALUES_X86:()=>QP,HTTPFLAVORVALUES_HTTP_1_0:()=>zk,HTTPFLAVORVALUES_HTTP_1_1:()=>Bk,HTTPFLAVORVALUES_HTTP_2_0:()=>Vk,HTTPFLAVORVALUES_QUIC:()=>Uk,HTTPFLAVORVALUES_SPDY:()=>Hk,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>FI,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>II,HTTP_REQUEST_METHOD_VALUE_GET:()=>LI,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>RI,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>zI,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>PI,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>BI,HTTP_REQUEST_METHOD_VALUE_POST:()=>VI,HTTP_REQUEST_METHOD_VALUE_PUT:()=>HI,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>UI,HostArchValues:()=>$P,HttpFlavorValues:()=>Wk,JVM_MEMORY_TYPE_VALUE_HEAP:()=>$I,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>eL,JVM_THREAD_STATE_VALUE_BLOCKED:()=>rL,JVM_THREAD_STATE_VALUE_NEW:()=>iL,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>aL,JVM_THREAD_STATE_VALUE_TERMINATED:()=>oL,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>sL,JVM_THREAD_STATE_VALUE_WAITING:()=>cL,MESSAGETYPEVALUES_RECEIVED:()=>zA,MESSAGETYPEVALUES_SENT:()=>RA,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>qk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Jk,MESSAGINGOPERATIONVALUES_PROCESS:()=>$k,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Qk,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>YL,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>XL,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>ZL,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>eR,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>$L,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>QL,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>tR,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>nR,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>rR,METRIC_JVM_CLASS_COUNT:()=>iR,METRIC_JVM_CLASS_LOADED:()=>aR,METRIC_JVM_CLASS_UNLOADED:()=>oR,METRIC_JVM_CPU_COUNT:()=>sR,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>cR,METRIC_JVM_CPU_TIME:()=>lR,METRIC_JVM_GC_DURATION:()=>uR,METRIC_JVM_MEMORY_COMMITTED:()=>dR,METRIC_JVM_MEMORY_LIMIT:()=>fR,METRIC_JVM_MEMORY_USED:()=>pR,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>mR,METRIC_JVM_THREAD_COUNT:()=>hR,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>gR,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>_R,METRIC_KESTREL_CONNECTION_DURATION:()=>vR,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>yR,METRIC_KESTREL_QUEUED_REQUESTS:()=>bR,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>xR,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>SR,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>CR,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>wR,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>TR,MessageTypeValues:()=>BA,MessagingDestinationKindValues:()=>Yk,MessagingOperationValues:()=>eA,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>pk,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Ck,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>fk,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>xk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>bk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>kk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>wk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Mk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>jk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Ok,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>mk,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>VO,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>HO,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>UO,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>zO,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>BO,NETTRANSPORTVALUES_INPROC:()=>jO,NETTRANSPORTVALUES_IP:()=>OO,NETTRANSPORTVALUES_IP_TCP:()=>EO,NETTRANSPORTVALUES_IP_UDP:()=>DO,NETTRANSPORTVALUES_OTHER:()=>MO,NETTRANSPORTVALUES_PIPE:()=>AO,NETTRANSPORTVALUES_UNIX:()=>kO,NETWORK_TRANSPORT_VALUE_PIPE:()=>gL,NETWORK_TRANSPORT_VALUE_QUIC:()=>_L,NETWORK_TRANSPORT_VALUE_TCP:()=>vL,NETWORK_TRANSPORT_VALUE_UDP:()=>yL,NETWORK_TRANSPORT_VALUE_UNIX:()=>bL,NETWORK_TYPE_VALUE_IPV4:()=>SL,NETWORK_TYPE_VALUE_IPV6:()=>CL,NetHostConnectionSubtypeValues:()=>Nk,NetHostConnectionTypeValues:()=>WO,NetTransportValues:()=>NO,OSTYPEVALUES_AIX:()=>yF,OSTYPEVALUES_DARWIN:()=>pF,OSTYPEVALUES_DRAGONFLYBSD:()=>_F,OSTYPEVALUES_FREEBSD:()=>mF,OSTYPEVALUES_HPUX:()=>vF,OSTYPEVALUES_LINUX:()=>fF,OSTYPEVALUES_NETBSD:()=>hF,OSTYPEVALUES_OPENBSD:()=>gF,OSTYPEVALUES_SOLARIS:()=>bF,OSTYPEVALUES_WINDOWS:()=>dF,OSTYPEVALUES_Z_OS:()=>xF,OTEL_STATUS_CODE_VALUE_ERROR:()=>DL,OTEL_STATUS_CODE_VALUE_OK:()=>OL,OsTypeValues:()=>SF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>OA,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>wA,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>yA,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>NA,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>SA,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>DA,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>jA,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>xA,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>CA,RPCGRPCSTATUSCODEVALUES_OK:()=>vA,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>kA,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>TA,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>EA,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>PA,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>MA,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>AA,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>bA,RpcGrpcStatusCodeValues:()=>FA,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>Ww,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>nT,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Vw,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>Lw,SEMATTRS_AWS_DYNAMODB_COUNT:()=>eT,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Yw,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>qw,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>rT,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>Gw,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>Rw,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>Uw,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Jw,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Hw,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>zw,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Bw,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>tT,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Zw,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Qw,SEMATTRS_AWS_DYNAMODB_SELECT:()=>Kw,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>Xw,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>Iw,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>$w,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>hC,SEMATTRS_CODE_FILEPATH:()=>yw,SEMATTRS_CODE_FUNCTION:()=>_w,SEMATTRS_CODE_LINENO:()=>bw,SEMATTRS_CODE_NAMESPACE:()=>vw,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>EC,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>jC,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>AC,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>OC,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>wC,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>TC,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>kC,SEMATTRS_DB_CASSANDRA_TABLE:()=>DC,SEMATTRS_DB_CONNECTION_STRING:()=>_C,SEMATTRS_DB_HBASE_NAMESPACE:()=>MC,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>yC,SEMATTRS_DB_MONGODB_COLLECTION:()=>PC,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>CC,SEMATTRS_DB_NAME:()=>bC,SEMATTRS_DB_OPERATION:()=>SC,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>NC,SEMATTRS_DB_SQL_TABLE:()=>FC,SEMATTRS_DB_STATEMENT:()=>xC,SEMATTRS_DB_SYSTEM:()=>gC,SEMATTRS_DB_USER:()=>vC,SEMATTRS_ENDUSER_ID:()=>fw,SEMATTRS_ENDUSER_ROLE:()=>pw,SEMATTRS_ENDUSER_SCOPE:()=>mw,SEMATTRS_EXCEPTION_ESCAPED:()=>zC,SEMATTRS_EXCEPTION_MESSAGE:()=>LC,SEMATTRS_EXCEPTION_STACKTRACE:()=>RC,SEMATTRS_EXCEPTION_TYPE:()=>IC,SEMATTRS_FAAS_COLDSTART:()=>JC,SEMATTRS_FAAS_CRON:()=>qC,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>HC,SEMATTRS_FAAS_DOCUMENT_NAME:()=>GC,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>UC,SEMATTRS_FAAS_DOCUMENT_TIME:()=>WC,SEMATTRS_FAAS_EXECUTION:()=>VC,SEMATTRS_FAAS_INVOKED_NAME:()=>YC,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>XC,SEMATTRS_FAAS_INVOKED_REGION:()=>ZC,SEMATTRS_FAAS_TIME:()=>KC,SEMATTRS_FAAS_TRIGGER:()=>BC,SEMATTRS_HTTP_CLIENT_IP:()=>Fw,SEMATTRS_HTTP_FLAVOR:()=>Dw,SEMATTRS_HTTP_HOST:()=>ww,SEMATTRS_HTTP_METHOD:()=>xw,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>kw,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>Aw,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>jw,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>Mw,SEMATTRS_HTTP_ROUTE:()=>Pw,SEMATTRS_HTTP_SCHEME:()=>Tw,SEMATTRS_HTTP_SERVER_NAME:()=>Nw,SEMATTRS_HTTP_STATUS_CODE:()=>Ew,SEMATTRS_HTTP_TARGET:()=>Cw,SEMATTRS_HTTP_URL:()=>Sw,SEMATTRS_HTTP_USER_AGENT:()=>Ow,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>NT,SEMATTRS_MESSAGE_ID:()=>MT,SEMATTRS_MESSAGE_TYPE:()=>jT,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>PT,SEMATTRS_MESSAGING_CONSUMER_ID:()=>gT,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>fT,SEMATTRS_MESSAGING_DESTINATION:()=>aT,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>oT,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>bT,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>yT,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>vT,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>xT,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>ST,SEMATTRS_MESSAGING_MESSAGE_ID:()=>dT,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>mT,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>pT,SEMATTRS_MESSAGING_OPERATION:()=>hT,SEMATTRS_MESSAGING_PROTOCOL:()=>cT,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>lT,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>_T,SEMATTRS_MESSAGING_SYSTEM:()=>iT,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>sT,SEMATTRS_MESSAGING_URL:()=>uT,SEMATTRS_NET_HOST_CARRIER_ICC:()=>uw,SEMATTRS_NET_HOST_CARRIER_MCC:()=>cw,SEMATTRS_NET_HOST_CARRIER_MNC:()=>lw,SEMATTRS_NET_HOST_CARRIER_NAME:()=>sw,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>ow,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>aw,SEMATTRS_NET_HOST_IP:()=>nw,SEMATTRS_NET_HOST_NAME:()=>iw,SEMATTRS_NET_HOST_PORT:()=>rw,SEMATTRS_NET_PEER_IP:()=>$C,SEMATTRS_NET_PEER_NAME:()=>tw,SEMATTRS_NET_PEER_PORT:()=>ew,SEMATTRS_NET_TRANSPORT:()=>QC,SEMATTRS_PEER_SERVICE:()=>dw,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>ET,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>kT,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>AT,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>OT,SEMATTRS_RPC_JSONRPC_VERSION:()=>DT,SEMATTRS_RPC_METHOD:()=>TT,SEMATTRS_RPC_SERVICE:()=>wT,SEMATTRS_RPC_SYSTEM:()=>CT,SEMATTRS_THREAD_ID:()=>hw,SEMATTRS_THREAD_NAME:()=>gw,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>SM,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>xM,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>CM,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>wM,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>TM,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>EM,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>DM,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>kM,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>OM,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>jM,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>AM,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>_M,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>yM,SEMRESATTRS_CLOUD_PLATFORM:()=>bM,SEMRESATTRS_CLOUD_PROVIDER:()=>gM,SEMRESATTRS_CLOUD_REGION:()=>vM,SEMRESATTRS_CONTAINER_ID:()=>NM,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>FM,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>IM,SEMRESATTRS_CONTAINER_NAME:()=>MM,SEMRESATTRS_CONTAINER_RUNTIME:()=>PM,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>LM,SEMRESATTRS_DEVICE_ID:()=>RM,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>zM,SEMRESATTRS_DEVICE_MODEL_NAME:()=>BM,SEMRESATTRS_FAAS_ID:()=>HM,SEMRESATTRS_FAAS_INSTANCE:()=>WM,SEMRESATTRS_FAAS_MAX_MEMORY:()=>GM,SEMRESATTRS_FAAS_NAME:()=>VM,SEMRESATTRS_FAAS_VERSION:()=>UM,SEMRESATTRS_HOST_ARCH:()=>YM,SEMRESATTRS_HOST_ID:()=>KM,SEMRESATTRS_HOST_IMAGE_ID:()=>ZM,SEMRESATTRS_HOST_IMAGE_NAME:()=>XM,SEMRESATTRS_HOST_IMAGE_VERSION:()=>QM,SEMRESATTRS_HOST_NAME:()=>qM,SEMRESATTRS_HOST_TYPE:()=>JM,SEMRESATTRS_K8S_CLUSTER_NAME:()=>$M,SEMRESATTRS_K8S_CONTAINER_NAME:()=>aN,SEMRESATTRS_K8S_CRONJOB_NAME:()=>_N,SEMRESATTRS_K8S_CRONJOB_UID:()=>gN,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>pN,SEMRESATTRS_K8S_DAEMONSET_UID:()=>fN,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>lN,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>cN,SEMRESATTRS_K8S_JOB_NAME:()=>hN,SEMRESATTRS_K8S_JOB_UID:()=>mN,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>nN,SEMRESATTRS_K8S_NODE_NAME:()=>eN,SEMRESATTRS_K8S_NODE_UID:()=>tN,SEMRESATTRS_K8S_POD_NAME:()=>iN,SEMRESATTRS_K8S_POD_UID:()=>rN,SEMRESATTRS_K8S_REPLICASET_NAME:()=>sN,SEMRESATTRS_K8S_REPLICASET_UID:()=>oN,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>dN,SEMRESATTRS_K8S_STATEFULSET_UID:()=>uN,SEMRESATTRS_OS_DESCRIPTION:()=>yN,SEMRESATTRS_OS_NAME:()=>bN,SEMRESATTRS_OS_TYPE:()=>vN,SEMRESATTRS_OS_VERSION:()=>xN,SEMRESATTRS_PROCESS_COMMAND:()=>TN,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>DN,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>EN,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>CN,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>wN,SEMRESATTRS_PROCESS_OWNER:()=>ON,SEMRESATTRS_PROCESS_PID:()=>SN,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>jN,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>kN,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>AN,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>PN,SEMRESATTRS_SERVICE_NAME:()=>MN,SEMRESATTRS_SERVICE_NAMESPACE:()=>NN,SEMRESATTRS_SERVICE_VERSION:()=>FN,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>zN,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>LN,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>IN,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>RN,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>HN,SEMRESATTRS_WEBENGINE_NAME:()=>BN,SEMRESATTRS_WEBENGINE_VERSION:()=>VN,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>FL,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>IL,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>LL,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>zL,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>BL,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>VL,SemanticAttributes:()=>FT,SemanticResourceAttributes:()=>UN,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>NF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>PF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>FF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>IF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>LF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>RF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>zF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>BF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>VF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>HF,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>QF,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>$F,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>eI,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>tI,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>nI,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>rI,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>iI,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>aI,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>oI,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>sI,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>cI,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>lI,TelemetrySdkLanguageValues:()=>UF}),OR=n((()=>{HA(),GF(),JL(),ER()})),kR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SDK_INFO=void 0;let n=Kb(),r=(OR(),e(DR));t.SDK_INFO={[r.SEMRESATTRS_TELEMETRY_SDK_NAME]:`opentelemetry`,[r.SEMRESATTRS_PROCESS_RUNTIME_NAME]:`node`,[r.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:r.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[r.SEMRESATTRS_TELEMETRY_SDK_VERSION]:n.VERSION}})),AR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=void 0;function t(e){e.unref()}e.unrefTimer=t})),jR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=e.SDK_INFO=e.otperformance=e.RandomIdGenerator=e.hexToBase64=e._globalThis=e.getEnv=e.getEnvWithoutDefaults=void 0;var t=Bb();Object.defineProperty(e,`getEnvWithoutDefaults`,{enumerable:!0,get:function(){return t.getEnvWithoutDefaults}}),Object.defineProperty(e,`getEnv`,{enumerable:!0,get:function(){return t.getEnv}});var n=Vb();Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return n._globalThis}});var r=Ub();Object.defineProperty(e,`hexToBase64`,{enumerable:!0,get:function(){return r.hexToBase64}});var i=Wb();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return i.RandomIdGenerator}});var a=Gb();Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return a.otperformance}});var o=kR();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return o.SDK_INFO}});var s=AR();Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return s.unrefTimer}})})),MR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=e.otperformance=e.hexToBase64=e.getEnvWithoutDefaults=e.getEnv=e._globalThis=e.SDK_INFO=e.RandomIdGenerator=void 0;var t=jR();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return t.RandomIdGenerator}}),Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return t.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return t._globalThis}}),Object.defineProperty(e,`getEnv`,{enumerable:!0,get:function(){return t.getEnv}}),Object.defineProperty(e,`getEnvWithoutDefaults`,{enumerable:!0,get:function(){return t.getEnvWithoutDefaults}}),Object.defineProperty(e,`hexToBase64`,{enumerable:!0,get:function(){return t.hexToBase64}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return t.otperformance}}),Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return t.unrefTimer}})})),NR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.addHrTimes=e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=e.getTimeOrigin=e.millisToHrTime=void 0;let t=MR(),n=10**6,r=10**9;function i(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*n)]}e.millisToHrTime=i;function a(){let e=t.otperformance.timeOrigin;if(typeof e!=`number`){let n=t.otperformance;e=n.timing&&n.timing.fetchStart}return e}e.getTimeOrigin=a;function o(e){return h(i(a()),i(typeof e==`number`?e:t.otperformance.now()))}e.hrTime=o;function s(e){if(p(e))return e;if(typeof e==`number`)return e<a()?o(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError(`Invalid input type`)}e.timeInputToHrTime=s;function c(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(--n,i+=r),[n,i]}e.hrTimeDuration=c;function l(e){let t=`${`0`.repeat(9)}${e[1]}Z`,n=t.substring(t.length-9-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,n)}e.hrTimeToTimeStamp=l;function u(e){return e[0]*r+e[1]}e.hrTimeToNanoseconds=u;function d(e){return e[0]*1e3+e[1]/1e6}e.hrTimeToMilliseconds=d;function f(e){return e[0]*1e6+e[1]/1e3}e.hrTimeToMicroseconds=f;function p(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}e.isTimeInputHrTime=p;function m(e){return p(e)||typeof e==`number`||e instanceof Date}e.isTimeInput=m;function h(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=r&&(n[1]-=r,n[0]+=1),n}e.addHrTimes=h})),PR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExportResultCode=void 0,(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(e.ExportResultCode||={})})),FR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CompositePropagator=void 0;let n=($(),e(Q));t.CompositePropagator=class{constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields==`function`?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,r){for(let i of this._propagators)try{i.inject(e,t,r)}catch(e){n.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,t,r){return this._propagators.reduce((e,i)=>{try{return i.extract(e,t,r)}catch(e){n.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}})),IR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateValue=e.validateKey=void 0;let t=`[_0-9a-z-*/]`,n=`[a-z]${t}{0,255}`,r=`[a-z0-9]${t}{0,240}@[a-z]${t}{0,13}`,i=RegExp(`^(?:${n}|${r})$`),a=/^[ -~]{0,255}[!-~]$/,o=/,|=/;function s(e){return i.test(e)}e.validateKey=s;function c(e){return a.test(e)&&!o.test(e)}e.validateValue=c})),LR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TraceState=void 0;let t=IR();e.TraceState=class e{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+`=`+this.get(t)),e),[]).join(`,`)}_parse(e){e.length>512||(this._internalState=e.split(`,`).reverse().reduce((e,n)=>{let r=n.trim(),i=r.indexOf(`=`);if(i!==-1){let a=r.slice(0,i),o=r.slice(i+1,n.length);(0,t.validateKey)(a)&&(0,t.validateValue)(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}}})),RR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CTraceContextPropagator=t.parseTraceParent=t.TRACE_STATE_HEADER=t.TRACE_PARENT_HEADER=void 0;let n=($(),e(Q)),r=Ab(),i=LR();t.TRACE_PARENT_HEADER=`traceparent`,t.TRACE_STATE_HEADER=`tracestate`;let a=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function o(e){let t=a.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}t.parseTraceParent=o,t.W3CTraceContextPropagator=class{inject(e,i,a){let o=n.trace.getSpanContext(e);if(!o||(0,r.isTracingSuppressed)(e)||!(0,n.isSpanContextValid)(o))return;let s=`00-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||n.TraceFlags.NONE).toString(16)}`;a.set(i,t.TRACE_PARENT_HEADER,s),o.traceState&&a.set(i,t.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,a){let s=a.get(r,t.TRACE_PARENT_HEADER);if(!s)return e;let c=Array.isArray(s)?s[0]:s;if(typeof c!=`string`)return e;let l=o(c);if(!l)return e;l.isRemote=!0;let u=a.get(r,t.TRACE_STATE_HEADER);if(u){let e=Array.isArray(u)?u.join(`,`):u;l.traceState=new i.TraceState(typeof e==`string`?e:void 0)}return n.trace.setSpanContext(e,l)}fields(){return[t.TRACE_PARENT_HEADER,t.TRACE_STATE_HEADER]}}})),zR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRPCMetadata=t.deleteRPCMetadata=t.setRPCMetadata=t.RPCType=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key RPC_METADATA`);(function(e){e.HTTP=`http`})(t.RPCType||={});function r(e,t){return e.setValue(n,t)}t.setRPCMetadata=r;function i(e){return e.deleteValue(n)}t.deleteRPCMetadata=i;function a(e){return e.getValue(n)}t.getRPCMetadata=a})),BR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.AlwaysOffSampler=void 0;let n=($(),e(Q));t.AlwaysOffSampler=class{shouldSample(){return{decision:n.SamplingDecision.NOT_RECORD}}toString(){return`AlwaysOffSampler`}}})),VR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.AlwaysOnSampler=void 0;let n=($(),e(Q));t.AlwaysOnSampler=class{shouldSample(){return{decision:n.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}}})),HR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ParentBasedSampler=void 0;let n=($(),e(Q)),r=Lb(),i=BR(),a=VR();t.ParentBasedSampler=class{constructor(e){this._root=e.root,this._root||=((0,r.globalErrorHandler)(Error(`ParentBasedSampler must have a root sampler configured`)),new a.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new a.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new i.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new a.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new i.AlwaysOffSampler}shouldSample(e,t,r,i,a,o){let s=n.trace.getSpanContext(e);return!s||!(0,n.isSpanContextValid)(s)?this._root.shouldSample(e,t,r,i,a,o):s.isRemote?s.traceFlags&n.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,i,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,i,a,o):s.traceFlags&n.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,i,a,o):this._localParentNotSampled.shouldSample(e,t,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),UR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.TraceIdRatioBasedSampler=void 0;let n=($(),e(Q));t.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,n.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?n.SamplingDecision.RECORD_AND_SAMPLED:n.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=n*8,i=parseInt(e.slice(r,r+8),16);t=(t^i)>>>0}return t}}})),WR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPlainObject=void 0;let t=Function.prototype.toString,n=t.call(Object),r=c(Object.getPrototypeOf,Object),i=Object.prototype,a=i.hasOwnProperty,o=Symbol?Symbol.toStringTag:void 0,s=i.toString;function c(e,t){return function(n){return e(t(n))}}function l(e){if(!u(e)||d(e)!==`[object Object]`)return!1;let i=r(e);if(i===null)return!0;let o=a.call(i,`constructor`)&&i.constructor;return typeof o==`function`&&o instanceof o&&t.call(o)===n}e.isPlainObject=l;function u(e){return typeof e==`object`&&!!e}function d(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:o&&o in Object(e)?f(e):p(e)}function f(e){let t=a.call(e,o),n=e[o],r=!1;try{e[o]=void 0,r=!0}catch{}let i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}function p(e){return s.call(e)}})),GR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;let t=WR();function n(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=i(t,e.shift(),0,n);return t}e.merge=n;function r(e){return o(e)?e.slice():e}function i(e,t,n=0,d){let f;if(!(n>20)){if(n++,l(e)||l(t)||s(t))f=r(t);else if(o(e)){if(f=e.slice(),o(t))for(let e=0,n=t.length;e<n;e++)f.push(r(t[e]));else if(c(t)){let e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){let i=e[n];f[i]=r(t[i])}}}else if(c(e))if(c(t)){if(!u(e,t))return t;f=Object.assign({},e);let r=Object.keys(t);for(let o=0,s=r.length;o<s;o++){let s=r[o],u=t[s];if(l(u))u===void 0?delete f[s]:f[s]=u;else{let r=f[s],o=u;if(a(e,s,d)||a(t,s,d))delete f[s];else{if(c(r)&&c(o)){let n=d.get(r)||[],i=d.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),d.set(r,n),d.set(o,i)}f[s]=i(f[s],u,n,d)}}}}else f=t;return f}}function a(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function o(e){return Array.isArray(e)}function s(e){return typeof e==`function`}function c(e){return!l(e)&&!o(e)&&!s(e)&&typeof e==`object`}function l(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function u(e,n){return!(!(0,t.isPlainObject)(e)||!(0,t.isPlainObject)(n))}})),KR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callWithTimeout=e.TimeoutError=void 0;var t=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};e.TimeoutError=t;function n(e,n){let r,i=new Promise(function(e,i){r=setTimeout(function(){i(new t(`Operation timed out.`))},n)});return Promise.race([e,i]).then(e=>(clearTimeout(r),e),e=>{throw clearTimeout(r),e})}e.callWithTimeout=n})),qR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isUrlIgnored=e.urlMatches=void 0;function t(e,t){return typeof t==`string`?e===t:!!e.match(t)}e.urlMatches=t;function n(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}e.isUrlIgnored=n})),JR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isWrapped=void 0;function t(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}e.isWrapped=t})),YR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=void 0,e.Deferred=class{constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),XR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BindOnceFuture=void 0;let t=YR();e.BindOnceFuture=class{constructor(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new t.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}})),ZR=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t._export=void 0;let n=($(),e(Q)),r=Ab();function i(e,t){return new Promise(i=>{n.context.with((0,r.suppressTracing)(n.context.active()),()=>{e.export(t,e=>{i(e)})})})}t._export=i})),QR=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=e.DEFAULT_ATTRIBUTE_COUNT_LIMIT=e.TraceState=e.unsuppressTracing=e.suppressTracing=e.isTracingSuppressed=e.TraceIdRatioBasedSampler=e.ParentBasedSampler=e.AlwaysOnSampler=e.AlwaysOffSampler=e.setRPCMetadata=e.getRPCMetadata=e.deleteRPCMetadata=e.RPCType=e.parseTraceParent=e.W3CTraceContextPropagator=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=e.CompositePropagator=e.unrefTimer=e.otperformance=e.hexToBase64=e.getEnvWithoutDefaults=e.getEnv=e._globalThis=e.SDK_INFO=e.RandomIdGenerator=e.baggageUtils=e.ExportResultCode=e.hexToBinary=e.timeInputToHrTime=e.millisToHrTime=e.isTimeInputHrTime=e.isTimeInput=e.hrTimeToTimeStamp=e.hrTimeToNanoseconds=e.hrTimeToMilliseconds=e.hrTimeToMicroseconds=e.hrTimeDuration=e.hrTime=e.getTimeOrigin=e.addHrTimes=e.loggingErrorHandler=e.setGlobalErrorHandler=e.globalErrorHandler=e.sanitizeAttributes=e.isAttributeValue=e.isAttributeKey=e.AnchoredClock=e.W3CBaggagePropagator=void 0,e.internal=e.VERSION=e.BindOnceFuture=e.isWrapped=e.urlMatches=e.isUrlIgnored=e.callWithTimeout=e.TimeoutError=e.TracesSamplerValues=e.merge=e.parseEnvironment=e.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=e.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=e.DEFAULT_ENVIRONMENT=void 0;var t=Nb();Object.defineProperty(e,`W3CBaggagePropagator`,{enumerable:!0,get:function(){return t.W3CBaggagePropagator}});var n=Pb();Object.defineProperty(e,`AnchoredClock`,{enumerable:!0,get:function(){return n.AnchoredClock}});var r=Fb();Object.defineProperty(e,`isAttributeKey`,{enumerable:!0,get:function(){return r.isAttributeKey}}),Object.defineProperty(e,`isAttributeValue`,{enumerable:!0,get:function(){return r.isAttributeValue}}),Object.defineProperty(e,`sanitizeAttributes`,{enumerable:!0,get:function(){return r.sanitizeAttributes}});var i=Lb();Object.defineProperty(e,`globalErrorHandler`,{enumerable:!0,get:function(){return i.globalErrorHandler}}),Object.defineProperty(e,`setGlobalErrorHandler`,{enumerable:!0,get:function(){return i.setGlobalErrorHandler}});var a=Ib();Object.defineProperty(e,`loggingErrorHandler`,{enumerable:!0,get:function(){return a.loggingErrorHandler}});var o=NR();Object.defineProperty(e,`addHrTimes`,{enumerable:!0,get:function(){return o.addHrTimes}}),Object.defineProperty(e,`getTimeOrigin`,{enumerable:!0,get:function(){return o.getTimeOrigin}}),Object.defineProperty(e,`hrTime`,{enumerable:!0,get:function(){return o.hrTime}}),Object.defineProperty(e,`hrTimeDuration`,{enumerable:!0,get:function(){return o.hrTimeDuration}}),Object.defineProperty(e,`hrTimeToMicroseconds`,{enumerable:!0,get:function(){return o.hrTimeToMicroseconds}}),Object.defineProperty(e,`hrTimeToMilliseconds`,{enumerable:!0,get:function(){return o.hrTimeToMilliseconds}}),Object.defineProperty(e,`hrTimeToNanoseconds`,{enumerable:!0,get:function(){return o.hrTimeToNanoseconds}}),Object.defineProperty(e,`hrTimeToTimeStamp`,{enumerable:!0,get:function(){return o.hrTimeToTimeStamp}}),Object.defineProperty(e,`isTimeInput`,{enumerable:!0,get:function(){return o.isTimeInput}}),Object.defineProperty(e,`isTimeInputHrTime`,{enumerable:!0,get:function(){return o.isTimeInputHrTime}}),Object.defineProperty(e,`millisToHrTime`,{enumerable:!0,get:function(){return o.millisToHrTime}}),Object.defineProperty(e,`timeInputToHrTime`,{enumerable:!0,get:function(){return o.timeInputToHrTime}});var s=Hb();Object.defineProperty(e,`hexToBinary`,{enumerable:!0,get:function(){return s.hexToBinary}});var c=PR();Object.defineProperty(e,`ExportResultCode`,{enumerable:!0,get:function(){return c.ExportResultCode}});let l=Mb();e.baggageUtils={getKeyPairs:l.getKeyPairs,serializeKeyPairs:l.serializeKeyPairs,parseKeyPairsIntoRecord:l.parseKeyPairsIntoRecord,parsePairKeyValue:l.parsePairKeyValue};var u=MR();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return u.RandomIdGenerator}}),Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return u.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return u._globalThis}}),Object.defineProperty(e,`getEnv`,{enumerable:!0,get:function(){return u.getEnv}}),Object.defineProperty(e,`getEnvWithoutDefaults`,{enumerable:!0,get:function(){return u.getEnvWithoutDefaults}}),Object.defineProperty(e,`hexToBase64`,{enumerable:!0,get:function(){return u.hexToBase64}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return u.otperformance}}),Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return u.unrefTimer}});var d=FR();Object.defineProperty(e,`CompositePropagator`,{enumerable:!0,get:function(){return d.CompositePropagator}});var f=RR();Object.defineProperty(e,`TRACE_PARENT_HEADER`,{enumerable:!0,get:function(){return f.TRACE_PARENT_HEADER}}),Object.defineProperty(e,`TRACE_STATE_HEADER`,{enumerable:!0,get:function(){return f.TRACE_STATE_HEADER}}),Object.defineProperty(e,`W3CTraceContextPropagator`,{enumerable:!0,get:function(){return f.W3CTraceContextPropagator}}),Object.defineProperty(e,`parseTraceParent`,{enumerable:!0,get:function(){return f.parseTraceParent}});var p=zR();Object.defineProperty(e,`RPCType`,{enumerable:!0,get:function(){return p.RPCType}}),Object.defineProperty(e,`deleteRPCMetadata`,{enumerable:!0,get:function(){return p.deleteRPCMetadata}}),Object.defineProperty(e,`getRPCMetadata`,{enumerable:!0,get:function(){return p.getRPCMetadata}}),Object.defineProperty(e,`setRPCMetadata`,{enumerable:!0,get:function(){return p.setRPCMetadata}});var m=BR();Object.defineProperty(e,`AlwaysOffSampler`,{enumerable:!0,get:function(){return m.AlwaysOffSampler}});var h=VR();Object.defineProperty(e,`AlwaysOnSampler`,{enumerable:!0,get:function(){return h.AlwaysOnSampler}});var g=HR();Object.defineProperty(e,`ParentBasedSampler`,{enumerable:!0,get:function(){return g.ParentBasedSampler}});var _=UR();Object.defineProperty(e,`TraceIdRatioBasedSampler`,{enumerable:!0,get:function(){return _.TraceIdRatioBasedSampler}});var v=Ab();Object.defineProperty(e,`isTracingSuppressed`,{enumerable:!0,get:function(){return v.isTracingSuppressed}}),Object.defineProperty(e,`suppressTracing`,{enumerable:!0,get:function(){return v.suppressTracing}}),Object.defineProperty(e,`unsuppressTracing`,{enumerable:!0,get:function(){return v.unsuppressTracing}});var y=LR();Object.defineProperty(e,`TraceState`,{enumerable:!0,get:function(){return y.TraceState}});var b=zb();Object.defineProperty(e,`DEFAULT_ATTRIBUTE_COUNT_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_ATTRIBUTE_COUNT_LIMIT}}),Object.defineProperty(e,`DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}}),Object.defineProperty(e,`DEFAULT_ENVIRONMENT`,{enumerable:!0,get:function(){return b.DEFAULT_ENVIRONMENT}}),Object.defineProperty(e,`DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}}),Object.defineProperty(e,`DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT`,{enumerable:!0,get:function(){return b.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}),Object.defineProperty(e,`parseEnvironment`,{enumerable:!0,get:function(){return b.parseEnvironment}});var x=GR();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return x.merge}});var S=Rb();Object.defineProperty(e,`TracesSamplerValues`,{enumerable:!0,get:function(){return S.TracesSamplerValues}});var C=KR();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return C.TimeoutError}}),Object.defineProperty(e,`callWithTimeout`,{enumerable:!0,get:function(){return C.callWithTimeout}});var w=qR();Object.defineProperty(e,`isUrlIgnored`,{enumerable:!0,get:function(){return w.isUrlIgnored}}),Object.defineProperty(e,`urlMatches`,{enumerable:!0,get:function(){return w.urlMatches}});var T=JR();Object.defineProperty(e,`isWrapped`,{enumerable:!0,get:function(){return T.isWrapped}});var E=XR();Object.defineProperty(e,`BindOnceFuture`,{enumerable:!0,get:function(){return E.BindOnceFuture}});var D=Kb();Object.defineProperty(e,`VERSION`,{enumerable:!0,get:function(){return D.VERSION}}),e.internal={_export:ZR()._export}}));function $R(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,`_`)]=n)}return t}var ez=n((()=>{})),tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH,hH,gH,_H,vH,yH,bH,xH,SH,CH,wH,TH,EH,DH,OH,kH,AH,jH,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,GH,KH,qH,JH,YH,XH,ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU,EU,DU,OU,kU,AU,jU,MU,NU,PU,FU,IU,LU,RU,zU,BU,VU,HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ=n((()=>{ez(),tz=`aws.lambda.invoked_arn`,nz=`db.system`,rz=`db.connection_string`,iz=`db.user`,az=`db.jdbc.driver_classname`,oz=`db.name`,sz=`db.statement`,cz=`db.operation`,lz=`db.mssql.instance_name`,uz=`db.cassandra.keyspace`,dz=`db.cassandra.page_size`,fz=`db.cassandra.consistency_level`,pz=`db.cassandra.table`,mz=`db.cassandra.idempotence`,hz=`db.cassandra.speculative_execution_count`,gz=`db.cassandra.coordinator.id`,_z=`db.cassandra.coordinator.dc`,vz=`db.hbase.namespace`,yz=`db.redis.database_index`,bz=`db.mongodb.collection`,xz=`db.sql.table`,Sz=`exception.type`,Cz=`exception.message`,wz=`exception.stacktrace`,Tz=`exception.escaped`,Ez=`faas.trigger`,Dz=`faas.execution`,Oz=`faas.document.collection`,kz=`faas.document.operation`,Az=`faas.document.time`,jz=`faas.document.name`,Mz=`faas.time`,Nz=`faas.cron`,Pz=`faas.coldstart`,Fz=`faas.invoked_name`,Iz=`faas.invoked_provider`,Lz=`faas.invoked_region`,Rz=`net.transport`,zz=`net.peer.ip`,Bz=`net.peer.port`,Vz=`net.peer.name`,Hz=`net.host.ip`,Uz=`net.host.port`,Wz=`net.host.name`,Gz=`net.host.connection.type`,Kz=`net.host.connection.subtype`,qz=`net.host.carrier.name`,Jz=`net.host.carrier.mcc`,Yz=`net.host.carrier.mnc`,Xz=`net.host.carrier.icc`,Zz=`peer.service`,Qz=`enduser.id`,$z=`enduser.role`,eB=`enduser.scope`,tB=`thread.id`,nB=`thread.name`,rB=`code.function`,iB=`code.namespace`,aB=`code.filepath`,oB=`code.lineno`,sB=`http.method`,cB=`http.url`,lB=`http.target`,uB=`http.host`,dB=`http.scheme`,fB=`http.status_code`,pB=`http.flavor`,mB=`http.user_agent`,hB=`http.request_content_length`,gB=`http.request_content_length_uncompressed`,_B=`http.response_content_length`,vB=`http.response_content_length_uncompressed`,yB=`http.server_name`,bB=`http.route`,xB=`http.client_ip`,SB=`aws.dynamodb.table_names`,CB=`aws.dynamodb.consumed_capacity`,wB=`aws.dynamodb.item_collection_metrics`,TB=`aws.dynamodb.provisioned_read_capacity`,EB=`aws.dynamodb.provisioned_write_capacity`,DB=`aws.dynamodb.consistent_read`,OB=`aws.dynamodb.projection`,kB=`aws.dynamodb.limit`,AB=`aws.dynamodb.attributes_to_get`,jB=`aws.dynamodb.index_name`,MB=`aws.dynamodb.select`,NB=`aws.dynamodb.global_secondary_indexes`,PB=`aws.dynamodb.local_secondary_indexes`,FB=`aws.dynamodb.exclusive_start_table`,IB=`aws.dynamodb.table_count`,LB=`aws.dynamodb.scan_forward`,RB=`aws.dynamodb.segment`,zB=`aws.dynamodb.total_segments`,BB=`aws.dynamodb.count`,VB=`aws.dynamodb.scanned_count`,HB=`aws.dynamodb.attribute_definitions`,UB=`aws.dynamodb.global_secondary_index_updates`,WB=`messaging.system`,GB=`messaging.destination`,KB=`messaging.destination_kind`,qB=`messaging.temp_destination`,JB=`messaging.protocol`,YB=`messaging.protocol_version`,XB=`messaging.url`,ZB=`messaging.message_id`,QB=`messaging.conversation_id`,$B=`messaging.message_payload_size_bytes`,eV=`messaging.message_payload_compressed_size_bytes`,tV=`messaging.operation`,nV=`messaging.consumer_id`,rV=`messaging.rabbitmq.routing_key`,iV=`messaging.kafka.message_key`,aV=`messaging.kafka.consumer_group`,oV=`messaging.kafka.client_id`,sV=`messaging.kafka.partition`,cV=`messaging.kafka.tombstone`,lV=`rpc.system`,uV=`rpc.service`,dV=`rpc.method`,fV=`rpc.grpc.status_code`,pV=`rpc.jsonrpc.version`,mV=`rpc.jsonrpc.request_id`,hV=`rpc.jsonrpc.error_code`,gV=`rpc.jsonrpc.error_message`,_V=`message.type`,vV=`message.id`,yV=`message.compressed_size`,bV=`message.uncompressed_size`,xV=tz,SV=nz,CV=rz,wV=iz,TV=az,EV=oz,DV=sz,OV=cz,kV=lz,AV=uz,jV=dz,MV=fz,NV=pz,PV=mz,FV=hz,IV=gz,LV=_z,RV=vz,zV=yz,BV=bz,VV=xz,HV=Sz,UV=Cz,WV=wz,GV=Tz,KV=Ez,qV=Dz,JV=Oz,YV=kz,XV=Az,ZV=jz,QV=Mz,$V=Nz,eH=Pz,tH=Fz,nH=Iz,rH=Lz,iH=Rz,aH=zz,oH=Bz,sH=Vz,cH=Hz,lH=Uz,uH=Wz,dH=Gz,fH=Kz,pH=qz,mH=Jz,hH=Yz,gH=Xz,_H=Zz,vH=Qz,yH=$z,bH=eB,xH=tB,SH=nB,CH=rB,wH=iB,TH=aB,EH=oB,DH=sB,OH=cB,kH=lB,AH=uB,jH=dB,MH=fB,NH=pB,PH=mB,FH=hB,IH=gB,LH=_B,RH=vB,zH=yB,BH=bB,VH=xB,HH=SB,UH=CB,WH=wB,GH=TB,KH=EB,qH=DB,JH=OB,YH=kB,XH=AB,ZH=jB,QH=MB,$H=NB,eU=PB,tU=FB,nU=IB,rU=LB,iU=RB,aU=zB,oU=BB,sU=VB,cU=HB,lU=UB,uU=WB,dU=GB,fU=KB,pU=qB,mU=JB,hU=YB,gU=XB,_U=ZB,vU=QB,yU=$B,bU=eV,xU=tV,SU=nV,CU=rV,wU=iV,TU=aV,EU=oV,DU=sV,OU=cV,kU=lV,AU=uV,jU=dV,MU=fV,NU=pV,PU=mV,FU=hV,IU=gV,LU=_V,RU=vV,zU=yV,BU=bV,VU=$R([tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV]),HU=`other_sql`,UU=`mssql`,WU=`mysql`,GU=`oracle`,KU=`db2`,qU=`postgresql`,JU=`redshift`,YU=`hive`,XU=`cloudscape`,ZU=`hsqldb`,QU=`progress`,$U=`maxdb`,eW=`hanadb`,tW=`ingres`,nW=`firstsql`,rW=`edb`,iW=`cache`,aW=`adabas`,oW=`firebird`,sW=`derby`,cW=`filemaker`,lW=`informix`,uW=`instantdb`,dW=`interbase`,fW=`mariadb`,pW=`netezza`,mW=`pervasive`,hW=`pointbase`,gW=`sqlite`,_W=`sybase`,vW=`teradata`,yW=`vertica`,bW=`h2`,xW=`coldfusion`,SW=`cassandra`,CW=`hbase`,wW=`mongodb`,TW=`redis`,EW=`couchbase`,DW=`couchdb`,OW=`cosmosdb`,kW=`dynamodb`,AW=`neo4j`,jW=`geode`,MW=`elasticsearch`,NW=`memcached`,PW=`cockroachdb`,FW=HU,IW=UU,LW=WU,RW=GU,zW=KU,BW=qU,VW=JU,HW=YU,UW=XU,WW=ZU,GW=QU,KW=$U,qW=eW,JW=tW,YW=nW,XW=rW,ZW=iW,QW=aW,$W=oW,eG=sW,tG=cW,nG=lW,rG=uW,iG=dW,aG=fW,oG=pW,sG=mW,cG=hW,lG=gW,uG=_W,dG=vW,fG=yW,pG=bW,mG=xW,hG=SW,gG=CW,_G=wW,vG=TW,yG=EW,bG=DW,xG=OW,SG=kW,CG=AW,wG=jW,TG=MW,EG=NW,DG=PW,OG=$R([HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW]),kG=`all`,AG=`each_quorum`,jG=`quorum`,MG=`local_quorum`,NG=`one`,PG=`two`,FG=`three`,IG=`local_one`,LG=`any`,RG=`serial`,zG=`local_serial`,BG=kG,VG=AG,HG=jG,UG=MG,WG=NG,GG=PG,KG=FG,qG=IG,JG=LG,YG=RG,XG=zG,ZG=$R([kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG]),QG=`datasource`,$G=`http`,eK=`pubsub`,tK=`timer`,nK=`other`,rK=QG,iK=$G,aK=eK,oK=tK,sK=nK,cK=$R([QG,$G,eK,tK,nK]),lK=`insert`,uK=`edit`,dK=`delete`,fK=lK,pK=uK,mK=dK,hK=$R([lK,uK,dK]),gK=`alibaba_cloud`,_K=`aws`,vK=`azure`,yK=`gcp`,bK=gK,xK=_K,SK=vK,CK=yK,wK=$R([gK,_K,vK,yK]),TK=`ip_tcp`,EK=`ip_udp`,DK=`ip`,OK=`unix`,kK=`pipe`,AK=`inproc`,jK=`other`,MK=TK,NK=EK,PK=DK,FK=OK,IK=kK,LK=AK,RK=jK,zK=$R([TK,EK,DK,OK,kK,AK,jK]),BK=`wifi`,VK=`wired`,HK=`cell`,UK=`unavailable`,WK=`unknown`,GK=BK,KK=VK,qK=HK,JK=UK,YK=WK,XK=$R([BK,VK,HK,UK,WK]),ZK=`gprs`,QK=`edge`,$K=`umts`,eq=`cdma`,tq=`evdo_0`,nq=`evdo_a`,rq=`cdma2000_1xrtt`,iq=`hsdpa`,aq=`hsupa`,oq=`hspa`,sq=`iden`,cq=`evdo_b`,lq=`lte`,uq=`ehrpd`,dq=`hspap`,fq=`gsm`,pq=`td_scdma`,mq=`iwlan`,hq=`nr`,gq=`nrnsa`,_q=`lte_ca`,vq=ZK,yq=QK,bq=$K,xq=eq,Sq=tq,Cq=nq,wq=rq,Tq=iq,Eq=aq,Dq=oq,Oq=sq,kq=cq,Aq=lq,jq=uq,Mq=dq,Nq=fq,Pq=pq,Fq=mq,Iq=hq,Lq=gq,Rq=_q,zq=$R([ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q]),Bq=`1.0`,Vq=`1.1`,Hq=`2.0`,Uq=`SPDY`,Wq=`QUIC`,Gq=Bq,Kq=Vq,qq=Hq,Jq=Uq,Yq=Wq,Xq={HTTP_1_0:Bq,HTTP_1_1:Vq,HTTP_2_0:Hq,SPDY:Uq,QUIC:Wq},Zq=`queue`,Qq=`topic`,$q=Zq,eJ=Qq,tJ=$R([Zq,Qq]),nJ=`receive`,rJ=`process`,iJ=nJ,aJ=rJ,oJ=$R([nJ,rJ]),sJ=0,cJ=1,lJ=2,uJ=3,dJ=4,fJ=5,pJ=6,mJ=7,hJ=8,gJ=9,_J=10,vJ=11,yJ=12,bJ=13,xJ=14,SJ=15,CJ=16,wJ=sJ,TJ=cJ,EJ=lJ,DJ=uJ,OJ=dJ,kJ=fJ,AJ=pJ,jJ=mJ,MJ=hJ,NJ=gJ,PJ=_J,FJ=vJ,IJ=yJ,LJ=bJ,RJ=xJ,zJ=SJ,BJ=CJ,VJ={OK:sJ,CANCELLED:cJ,UNKNOWN:lJ,INVALID_ARGUMENT:uJ,DEADLINE_EXCEEDED:dJ,NOT_FOUND:fJ,ALREADY_EXISTS:pJ,PERMISSION_DENIED:mJ,RESOURCE_EXHAUSTED:hJ,FAILED_PRECONDITION:gJ,ABORTED:_J,OUT_OF_RANGE:vJ,UNIMPLEMENTED:yJ,INTERNAL:bJ,UNAVAILABLE:xJ,DATA_LOSS:SJ,UNAUTHENTICATED:CJ},HJ=`SENT`,UJ=`RECEIVED`,WJ=HJ,GJ=UJ,KJ=$R([HJ,UJ])})),JJ=n((()=>{qJ()})),YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX,_X,vX,yX,bX,xX,SX,CX,wX,TX,EX,DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,DQ,OQ,kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$=n((()=>{ez(),YJ=`cloud.provider`,XJ=`cloud.account.id`,ZJ=`cloud.region`,QJ=`cloud.availability_zone`,$J=`cloud.platform`,eY=`aws.ecs.container.arn`,tY=`aws.ecs.cluster.arn`,nY=`aws.ecs.launchtype`,rY=`aws.ecs.task.arn`,iY=`aws.ecs.task.family`,aY=`aws.ecs.task.revision`,oY=`aws.eks.cluster.arn`,sY=`aws.log.group.names`,cY=`aws.log.group.arns`,lY=`aws.log.stream.names`,uY=`aws.log.stream.arns`,dY=`container.name`,fY=`container.id`,pY=`container.runtime`,mY=`container.image.name`,hY=`container.image.tag`,gY=`deployment.environment`,_Y=`device.id`,vY=`device.model.identifier`,yY=`device.model.name`,bY=`faas.name`,xY=`faas.id`,SY=`faas.version`,CY=`faas.instance`,wY=`faas.max_memory`,TY=`host.id`,EY=`host.name`,DY=`host.type`,OY=`host.arch`,kY=`host.image.name`,AY=`host.image.id`,jY=`host.image.version`,MY=`k8s.cluster.name`,NY=`k8s.node.name`,PY=`k8s.node.uid`,FY=`k8s.namespace.name`,IY=`k8s.pod.uid`,LY=`k8s.pod.name`,RY=`k8s.container.name`,zY=`k8s.replicaset.uid`,BY=`k8s.replicaset.name`,VY=`k8s.deployment.uid`,HY=`k8s.deployment.name`,UY=`k8s.statefulset.uid`,WY=`k8s.statefulset.name`,GY=`k8s.daemonset.uid`,KY=`k8s.daemonset.name`,qY=`k8s.job.uid`,JY=`k8s.job.name`,YY=`k8s.cronjob.uid`,XY=`k8s.cronjob.name`,ZY=`os.type`,QY=`os.description`,$Y=`os.name`,eX=`os.version`,tX=`process.pid`,nX=`process.executable.name`,rX=`process.executable.path`,iX=`process.command`,aX=`process.command_line`,oX=`process.command_args`,sX=`process.owner`,cX=`process.runtime.name`,lX=`process.runtime.version`,uX=`process.runtime.description`,dX=`service.name`,fX=`service.namespace`,pX=`service.instance.id`,mX=`service.version`,hX=`telemetry.sdk.name`,gX=`telemetry.sdk.language`,_X=`telemetry.sdk.version`,vX=`telemetry.auto.version`,yX=`webengine.name`,bX=`webengine.version`,xX=`webengine.description`,SX=YJ,CX=XJ,wX=ZJ,TX=QJ,EX=$J,DX=eY,OX=tY,kX=nY,AX=rY,jX=iY,MX=aY,NX=oY,PX=sY,FX=cY,IX=lY,LX=uY,RX=dY,zX=fY,BX=pY,VX=mY,HX=hY,UX=gY,WX=_Y,GX=vY,KX=yY,qX=bY,JX=xY,YX=SY,XX=CY,ZX=wY,QX=TY,$X=EY,eZ=DY,tZ=OY,nZ=kY,rZ=AY,iZ=jY,aZ=MY,oZ=NY,sZ=PY,cZ=FY,lZ=IY,uZ=LY,dZ=RY,fZ=zY,pZ=BY,mZ=VY,hZ=HY,gZ=UY,_Z=WY,vZ=GY,yZ=KY,bZ=qY,xZ=JY,SZ=YY,CZ=XY,wZ=ZY,TZ=QY,EZ=$Y,DZ=eX,OZ=tX,kZ=nX,AZ=rX,jZ=iX,MZ=aX,NZ=oX,PZ=sX,FZ=cX,IZ=lX,LZ=uX,RZ=dX,zZ=fX,BZ=pX,VZ=mX,HZ=hX,UZ=gX,WZ=_X,GZ=vX,KZ=yX,qZ=bX,JZ=xX,YZ=$R([YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX,_X,vX,yX,bX,xX]),XZ=`alibaba_cloud`,ZZ=`aws`,QZ=`azure`,$Z=`gcp`,eQ=XZ,tQ=ZZ,nQ=QZ,rQ=$Z,iQ=$R([XZ,ZZ,QZ,$Z]),aQ=`alibaba_cloud_ecs`,oQ=`alibaba_cloud_fc`,sQ=`aws_ec2`,cQ=`aws_ecs`,lQ=`aws_eks`,uQ=`aws_lambda`,dQ=`aws_elastic_beanstalk`,fQ=`azure_vm`,pQ=`azure_container_instances`,mQ=`azure_aks`,hQ=`azure_functions`,gQ=`azure_app_service`,_Q=`gcp_compute_engine`,vQ=`gcp_cloud_run`,yQ=`gcp_kubernetes_engine`,bQ=`gcp_cloud_functions`,xQ=`gcp_app_engine`,SQ=aQ,CQ=oQ,wQ=sQ,TQ=cQ,EQ=lQ,DQ=uQ,OQ=dQ,kQ=fQ,AQ=pQ,jQ=mQ,MQ=hQ,NQ=gQ,PQ=_Q,FQ=vQ,IQ=yQ,LQ=bQ,RQ=xQ,zQ=$R([aQ,oQ,sQ,cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ]),BQ=`ec2`,VQ=`fargate`,HQ=BQ,UQ=VQ,WQ=$R([BQ,VQ]),GQ=`amd64`,KQ=`arm32`,qQ=`arm64`,JQ=`ia64`,YQ=`ppc32`,XQ=`ppc64`,ZQ=`x86`,QQ=GQ,$Q=KQ,e$=qQ,t$=JQ,n$=YQ,r$=XQ,i$=ZQ,a$=$R([GQ,KQ,qQ,JQ,YQ,XQ,ZQ]),o$=`windows`,s$=`linux`,c$=`darwin`,l$=`freebsd`,u$=`netbsd`,d$=`openbsd`,f$=`dragonflybsd`,p$=`hpux`,m$=`aix`,h$=`solaris`,g$=`z_os`,_$=o$,v$=s$,y$=c$,b$=l$,x$=u$,S$=d$,C$=f$,w$=p$,T$=m$,E$=h$,D$=g$,O$=$R([o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$]),k$=`cpp`,A$=`dotnet`,j$=`erlang`,M$=`go`,N$=`java`,P$=`nodejs`,F$=`php`,I$=`python`,L$=`ruby`,R$=`webjs`,z$=k$,B$=A$,V$=j$,H$=M$,U$=N$,W$=P$,G$=F$,K$=I$,q$=L$,J$=R$,Y$=$R([k$,A$,j$,M$,N$,P$,F$,I$,L$,R$])})),Z$=n((()=>{X$()})),Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,S0,C0,w0,T0,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0,R0,z0,B0,V0,H0,U0,W0,G0,K0,q0,J0,Y0,X0,Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2=n((()=>{Q$=`aspnetcore.diagnostics.exception.result`,$$=`aborted`,e1=`handled`,t1=`skipped`,n1=`unhandled`,r1=`aspnetcore.diagnostics.handler.type`,i1=`aspnetcore.rate_limiting.policy`,a1=`aspnetcore.rate_limiting.result`,o1=`acquired`,s1=`endpoint_limiter`,c1=`global_limiter`,l1=`request_canceled`,u1=`aspnetcore.request.is_unhandled`,d1=`aspnetcore.routing.is_fallback`,f1=`aspnetcore.routing.match_status`,p1=`failure`,m1=`success`,h1=`aspnetcore.user.is_authenticated`,g1=`client.address`,_1=`client.port`,v1=`code.column.number`,y1=`code.file.path`,b1=`code.function.name`,x1=`code.line.number`,S1=`code.stacktrace`,C1=`db.collection.name`,w1=`db.namespace`,T1=`db.operation.batch.size`,E1=`db.operation.name`,D1=`db.query.summary`,O1=`db.query.text`,k1=`db.response.status_code`,A1=`db.stored_procedure.name`,j1=`db.system.name`,M1=`mariadb`,N1=`microsoft.sql_server`,P1=`mysql`,F1=`postgresql`,I1=`dotnet.gc.heap.generation`,L1=`gen0`,R1=`gen1`,z1=`gen2`,B1=`loh`,V1=`poh`,H1=`error.type`,U1=`_OTHER`,W1=`exception.escaped`,G1=`exception.message`,K1=`exception.stacktrace`,q1=`exception.type`,J1=e=>`http.request.header.${e}`,Y1=`http.request.method`,X1=`_OTHER`,Z1=`CONNECT`,Q1=`DELETE`,$1=`GET`,e0=`HEAD`,t0=`OPTIONS`,n0=`PATCH`,r0=`POST`,i0=`PUT`,a0=`TRACE`,o0=`http.request.method_original`,s0=`http.request.resend_count`,c0=e=>`http.response.header.${e}`,l0=`http.response.status_code`,u0=`http.route`,d0=`jvm.gc.action`,f0=`jvm.gc.name`,p0=`jvm.memory.pool.name`,m0=`jvm.memory.type`,h0=`heap`,g0=`non_heap`,_0=`jvm.thread.daemon`,v0=`jvm.thread.state`,y0=`blocked`,b0=`new`,x0=`runnable`,S0=`terminated`,C0=`timed_waiting`,w0=`waiting`,T0=`network.local.address`,E0=`network.local.port`,D0=`network.peer.address`,O0=`network.peer.port`,k0=`network.protocol.name`,A0=`network.protocol.version`,j0=`network.transport`,M0=`pipe`,N0=`quic`,P0=`tcp`,F0=`udp`,I0=`unix`,L0=`network.type`,R0=`ipv4`,z0=`ipv6`,B0=`otel.scope.name`,V0=`otel.scope.version`,H0=`otel.status_code`,U0=`ERROR`,W0=`OK`,G0=`otel.status_description`,K0=`server.address`,q0=`server.port`,J0=`service.name`,Y0=`service.version`,X0=`signalr.connection.status`,Z0=`app_shutdown`,Q0=`normal_closure`,$0=`timeout`,e2=`signalr.transport`,t2=`long_polling`,n2=`server_sent_events`,r2=`web_sockets`,i2=`telemetry.sdk.language`,a2=`cpp`,o2=`dotnet`,s2=`erlang`,c2=`go`,l2=`java`,u2=`nodejs`,d2=`php`,f2=`python`,p2=`ruby`,m2=`rust`,h2=`swift`,g2=`webjs`,_2=`telemetry.sdk.name`,v2=`telemetry.sdk.version`,y2=`url.fragment`,b2=`url.full`,x2=`url.path`,S2=`url.query`,C2=`url.scheme`,w2=`user_agent.original`})),E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4=n((()=>{E2=`aspnetcore.diagnostics.exceptions`,D2=`aspnetcore.rate_limiting.active_request_leases`,O2=`aspnetcore.rate_limiting.queued_requests`,k2=`aspnetcore.rate_limiting.request.time_in_queue`,A2=`aspnetcore.rate_limiting.request_lease.duration`,j2=`aspnetcore.rate_limiting.requests`,M2=`aspnetcore.routing.match_attempts`,N2=`db.client.operation.duration`,P2=`dotnet.assembly.count`,F2=`dotnet.exceptions`,I2=`dotnet.gc.collections`,L2=`dotnet.gc.heap.total_allocated`,R2=`dotnet.gc.last_collection.heap.fragmentation.size`,z2=`dotnet.gc.last_collection.heap.size`,B2=`dotnet.gc.last_collection.memory.committed_size`,V2=`dotnet.gc.pause.time`,H2=`dotnet.jit.compilation.time`,U2=`dotnet.jit.compiled_il.size`,W2=`dotnet.jit.compiled_methods`,G2=`dotnet.monitor.lock_contentions`,K2=`dotnet.process.cpu.count`,q2=`dotnet.process.cpu.time`,J2=`dotnet.process.memory.working_set`,Y2=`dotnet.thread_pool.queue.length`,X2=`dotnet.thread_pool.thread.count`,Z2=`dotnet.thread_pool.work_item.count`,Q2=`dotnet.timer.count`,$2=`http.client.request.duration`,e4=`http.server.request.duration`,t4=`jvm.class.count`,n4=`jvm.class.loaded`,r4=`jvm.class.unloaded`,i4=`jvm.cpu.count`,a4=`jvm.cpu.recent_utilization`,o4=`jvm.cpu.time`,s4=`jvm.gc.duration`,c4=`jvm.memory.committed`,l4=`jvm.memory.limit`,u4=`jvm.memory.used`,d4=`jvm.memory.used_after_last_gc`,f4=`jvm.thread.count`,p4=`kestrel.active_connections`,m4=`kestrel.active_tls_handshakes`,h4=`kestrel.connection.duration`,g4=`kestrel.queued_connections`,_4=`kestrel.queued_requests`,v4=`kestrel.rejected_connections`,y4=`kestrel.tls_handshake.duration`,b4=`kestrel.upgraded_connections`,x4=`signalr.server.active_connections`,S4=`signalr.server.connection.duration`})),w4,T4=n((()=>{w4=`exception`})),E4=i({ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>$$,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>e1,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>t1,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>n1,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>o1,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>s1,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>c1,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>l1,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>p1,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>m1,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Q$,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>r1,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>i1,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>a1,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>u1,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>d1,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>f1,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>h1,ATTR_CLIENT_ADDRESS:()=>g1,ATTR_CLIENT_PORT:()=>_1,ATTR_CODE_COLUMN_NUMBER:()=>v1,ATTR_CODE_FILE_PATH:()=>y1,ATTR_CODE_FUNCTION_NAME:()=>b1,ATTR_CODE_LINE_NUMBER:()=>x1,ATTR_CODE_STACKTRACE:()=>S1,ATTR_DB_COLLECTION_NAME:()=>C1,ATTR_DB_NAMESPACE:()=>w1,ATTR_DB_OPERATION_BATCH_SIZE:()=>T1,ATTR_DB_OPERATION_NAME:()=>E1,ATTR_DB_QUERY_SUMMARY:()=>D1,ATTR_DB_QUERY_TEXT:()=>O1,ATTR_DB_RESPONSE_STATUS_CODE:()=>k1,ATTR_DB_STORED_PROCEDURE_NAME:()=>A1,ATTR_DB_SYSTEM_NAME:()=>j1,ATTR_DOTNET_GC_HEAP_GENERATION:()=>I1,ATTR_ERROR_TYPE:()=>H1,ATTR_EXCEPTION_ESCAPED:()=>W1,ATTR_EXCEPTION_MESSAGE:()=>G1,ATTR_EXCEPTION_STACKTRACE:()=>K1,ATTR_EXCEPTION_TYPE:()=>q1,ATTR_HTTP_REQUEST_HEADER:()=>J1,ATTR_HTTP_REQUEST_METHOD:()=>Y1,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>o0,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>s0,ATTR_HTTP_RESPONSE_HEADER:()=>c0,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>l0,ATTR_HTTP_ROUTE:()=>u0,ATTR_JVM_GC_ACTION:()=>d0,ATTR_JVM_GC_NAME:()=>f0,ATTR_JVM_MEMORY_POOL_NAME:()=>p0,ATTR_JVM_MEMORY_TYPE:()=>m0,ATTR_JVM_THREAD_DAEMON:()=>_0,ATTR_JVM_THREAD_STATE:()=>v0,ATTR_NETWORK_LOCAL_ADDRESS:()=>T0,ATTR_NETWORK_LOCAL_PORT:()=>E0,ATTR_NETWORK_PEER_ADDRESS:()=>D0,ATTR_NETWORK_PEER_PORT:()=>O0,ATTR_NETWORK_PROTOCOL_NAME:()=>k0,ATTR_NETWORK_PROTOCOL_VERSION:()=>A0,ATTR_NETWORK_TRANSPORT:()=>j0,ATTR_NETWORK_TYPE:()=>L0,ATTR_OTEL_SCOPE_NAME:()=>B0,ATTR_OTEL_SCOPE_VERSION:()=>V0,ATTR_OTEL_STATUS_CODE:()=>H0,ATTR_OTEL_STATUS_DESCRIPTION:()=>G0,ATTR_SERVER_ADDRESS:()=>K0,ATTR_SERVER_PORT:()=>q0,ATTR_SERVICE_NAME:()=>J0,ATTR_SERVICE_VERSION:()=>Y0,ATTR_SIGNALR_CONNECTION_STATUS:()=>X0,ATTR_SIGNALR_TRANSPORT:()=>e2,ATTR_TELEMETRY_SDK_LANGUAGE:()=>i2,ATTR_TELEMETRY_SDK_NAME:()=>_2,ATTR_TELEMETRY_SDK_VERSION:()=>v2,ATTR_URL_FRAGMENT:()=>y2,ATTR_URL_FULL:()=>b2,ATTR_URL_PATH:()=>x2,ATTR_URL_QUERY:()=>S2,ATTR_URL_SCHEME:()=>C2,ATTR_USER_AGENT_ORIGINAL:()=>w2,AWSECSLAUNCHTYPEVALUES_EC2:()=>HQ,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>UQ,AwsEcsLaunchtypeValues:()=>WQ,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>SQ,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>CQ,CLOUDPLATFORMVALUES_AWS_EC2:()=>wQ,CLOUDPLATFORMVALUES_AWS_ECS:()=>TQ,CLOUDPLATFORMVALUES_AWS_EKS:()=>EQ,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>OQ,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>DQ,CLOUDPLATFORMVALUES_AZURE_AKS:()=>jQ,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>NQ,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>AQ,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>MQ,CLOUDPLATFORMVALUES_AZURE_VM:()=>kQ,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>RQ,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>LQ,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>FQ,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>PQ,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>IQ,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>eQ,CLOUDPROVIDERVALUES_AWS:()=>tQ,CLOUDPROVIDERVALUES_AZURE:()=>nQ,CLOUDPROVIDERVALUES_GCP:()=>rQ,CloudPlatformValues:()=>zQ,CloudProviderValues:()=>iQ,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>BG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>JG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>VG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>qG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>UG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>XG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>WG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>HG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>YG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>KG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>GG,DBSYSTEMVALUES_ADABAS:()=>QW,DBSYSTEMVALUES_CACHE:()=>ZW,DBSYSTEMVALUES_CASSANDRA:()=>hG,DBSYSTEMVALUES_CLOUDSCAPE:()=>UW,DBSYSTEMVALUES_COCKROACHDB:()=>DG,DBSYSTEMVALUES_COLDFUSION:()=>mG,DBSYSTEMVALUES_COSMOSDB:()=>xG,DBSYSTEMVALUES_COUCHBASE:()=>yG,DBSYSTEMVALUES_COUCHDB:()=>bG,DBSYSTEMVALUES_DB2:()=>zW,DBSYSTEMVALUES_DERBY:()=>eG,DBSYSTEMVALUES_DYNAMODB:()=>SG,DBSYSTEMVALUES_EDB:()=>XW,DBSYSTEMVALUES_ELASTICSEARCH:()=>TG,DBSYSTEMVALUES_FILEMAKER:()=>tG,DBSYSTEMVALUES_FIREBIRD:()=>$W,DBSYSTEMVALUES_FIRSTSQL:()=>YW,DBSYSTEMVALUES_GEODE:()=>wG,DBSYSTEMVALUES_H2:()=>pG,DBSYSTEMVALUES_HANADB:()=>qW,DBSYSTEMVALUES_HBASE:()=>gG,DBSYSTEMVALUES_HIVE:()=>HW,DBSYSTEMVALUES_HSQLDB:()=>WW,DBSYSTEMVALUES_INFORMIX:()=>nG,DBSYSTEMVALUES_INGRES:()=>JW,DBSYSTEMVALUES_INSTANTDB:()=>rG,DBSYSTEMVALUES_INTERBASE:()=>iG,DBSYSTEMVALUES_MARIADB:()=>aG,DBSYSTEMVALUES_MAXDB:()=>KW,DBSYSTEMVALUES_MEMCACHED:()=>EG,DBSYSTEMVALUES_MONGODB:()=>_G,DBSYSTEMVALUES_MSSQL:()=>IW,DBSYSTEMVALUES_MYSQL:()=>LW,DBSYSTEMVALUES_NEO4J:()=>CG,DBSYSTEMVALUES_NETEZZA:()=>oG,DBSYSTEMVALUES_ORACLE:()=>RW,DBSYSTEMVALUES_OTHER_SQL:()=>FW,DBSYSTEMVALUES_PERVASIVE:()=>sG,DBSYSTEMVALUES_POINTBASE:()=>cG,DBSYSTEMVALUES_POSTGRESQL:()=>BW,DBSYSTEMVALUES_PROGRESS:()=>GW,DBSYSTEMVALUES_REDIS:()=>vG,DBSYSTEMVALUES_REDSHIFT:()=>VW,DBSYSTEMVALUES_SQLITE:()=>lG,DBSYSTEMVALUES_SYBASE:()=>uG,DBSYSTEMVALUES_TERADATA:()=>dG,DBSYSTEMVALUES_VERTICA:()=>fG,DB_SYSTEM_NAME_VALUE_MARIADB:()=>M1,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>N1,DB_SYSTEM_NAME_VALUE_MYSQL:()=>P1,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>F1,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>L1,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>R1,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>z1,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>B1,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>V1,DbCassandraConsistencyLevelValues:()=>ZG,DbSystemValues:()=>OG,ERROR_TYPE_VALUE_OTHER:()=>U1,EVENT_EXCEPTION:()=>w4,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>mK,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>pK,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>fK,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>bK,FAASINVOKEDPROVIDERVALUES_AWS:()=>xK,FAASINVOKEDPROVIDERVALUES_AZURE:()=>SK,FAASINVOKEDPROVIDERVALUES_GCP:()=>CK,FAASTRIGGERVALUES_DATASOURCE:()=>rK,FAASTRIGGERVALUES_HTTP:()=>iK,FAASTRIGGERVALUES_OTHER:()=>sK,FAASTRIGGERVALUES_PUBSUB:()=>aK,FAASTRIGGERVALUES_TIMER:()=>oK,FaasDocumentOperationValues:()=>hK,FaasInvokedProviderValues:()=>wK,FaasTriggerValues:()=>cK,HOSTARCHVALUES_AMD64:()=>QQ,HOSTARCHVALUES_ARM32:()=>$Q,HOSTARCHVALUES_ARM64:()=>e$,HOSTARCHVALUES_IA64:()=>t$,HOSTARCHVALUES_PPC32:()=>n$,HOSTARCHVALUES_PPC64:()=>r$,HOSTARCHVALUES_X86:()=>i$,HTTPFLAVORVALUES_HTTP_1_0:()=>Gq,HTTPFLAVORVALUES_HTTP_1_1:()=>Kq,HTTPFLAVORVALUES_HTTP_2_0:()=>qq,HTTPFLAVORVALUES_QUIC:()=>Yq,HTTPFLAVORVALUES_SPDY:()=>Jq,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>Z1,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>Q1,HTTP_REQUEST_METHOD_VALUE_GET:()=>$1,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>e0,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>t0,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>X1,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>n0,HTTP_REQUEST_METHOD_VALUE_POST:()=>r0,HTTP_REQUEST_METHOD_VALUE_PUT:()=>i0,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>a0,HostArchValues:()=>a$,HttpFlavorValues:()=>Xq,JVM_MEMORY_TYPE_VALUE_HEAP:()=>h0,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>g0,JVM_THREAD_STATE_VALUE_BLOCKED:()=>y0,JVM_THREAD_STATE_VALUE_NEW:()=>b0,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>x0,JVM_THREAD_STATE_VALUE_TERMINATED:()=>S0,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>C0,JVM_THREAD_STATE_VALUE_WAITING:()=>w0,MESSAGETYPEVALUES_RECEIVED:()=>GJ,MESSAGETYPEVALUES_SENT:()=>WJ,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>$q,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>eJ,MESSAGINGOPERATIONVALUES_PROCESS:()=>aJ,MESSAGINGOPERATIONVALUES_RECEIVE:()=>iJ,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>E2,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>D2,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>O2,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>j2,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>A2,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>k2,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>M2,METRIC_DB_CLIENT_OPERATION_DURATION:()=>N2,METRIC_DOTNET_ASSEMBLY_COUNT:()=>P2,METRIC_DOTNET_EXCEPTIONS:()=>F2,METRIC_DOTNET_GC_COLLECTIONS:()=>I2,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>L2,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>R2,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>z2,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>B2,METRIC_DOTNET_GC_PAUSE_TIME:()=>V2,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>H2,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>U2,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>W2,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>G2,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>K2,METRIC_DOTNET_PROCESS_CPU_TIME:()=>q2,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>J2,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>Y2,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>X2,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>Z2,METRIC_DOTNET_TIMER_COUNT:()=>Q2,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>$2,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>e4,METRIC_JVM_CLASS_COUNT:()=>t4,METRIC_JVM_CLASS_LOADED:()=>n4,METRIC_JVM_CLASS_UNLOADED:()=>r4,METRIC_JVM_CPU_COUNT:()=>i4,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>a4,METRIC_JVM_CPU_TIME:()=>o4,METRIC_JVM_GC_DURATION:()=>s4,METRIC_JVM_MEMORY_COMMITTED:()=>c4,METRIC_JVM_MEMORY_LIMIT:()=>l4,METRIC_JVM_MEMORY_USED:()=>u4,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>d4,METRIC_JVM_THREAD_COUNT:()=>f4,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>p4,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>m4,METRIC_KESTREL_CONNECTION_DURATION:()=>h4,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>g4,METRIC_KESTREL_QUEUED_REQUESTS:()=>_4,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>v4,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>y4,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>b4,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>x4,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>S4,MessageTypeValues:()=>KJ,MessagingDestinationKindValues:()=>tJ,MessagingOperationValues:()=>oJ,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>xq,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>wq,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>yq,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>jq,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Sq,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Cq,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>kq,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>vq,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Nq,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Tq,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Dq,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Mq,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Eq,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Oq,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Fq,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Aq,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Rq,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Iq,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Lq,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Pq,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>bq,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>qK,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>JK,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>YK,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>GK,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>KK,NETTRANSPORTVALUES_INPROC:()=>LK,NETTRANSPORTVALUES_IP:()=>PK,NETTRANSPORTVALUES_IP_TCP:()=>MK,NETTRANSPORTVALUES_IP_UDP:()=>NK,NETTRANSPORTVALUES_OTHER:()=>RK,NETTRANSPORTVALUES_PIPE:()=>IK,NETTRANSPORTVALUES_UNIX:()=>FK,NETWORK_TRANSPORT_VALUE_PIPE:()=>M0,NETWORK_TRANSPORT_VALUE_QUIC:()=>N0,NETWORK_TRANSPORT_VALUE_TCP:()=>P0,NETWORK_TRANSPORT_VALUE_UDP:()=>F0,NETWORK_TRANSPORT_VALUE_UNIX:()=>I0,NETWORK_TYPE_VALUE_IPV4:()=>R0,NETWORK_TYPE_VALUE_IPV6:()=>z0,NetHostConnectionSubtypeValues:()=>zq,NetHostConnectionTypeValues:()=>XK,NetTransportValues:()=>zK,OSTYPEVALUES_AIX:()=>T$,OSTYPEVALUES_DARWIN:()=>y$,OSTYPEVALUES_DRAGONFLYBSD:()=>C$,OSTYPEVALUES_FREEBSD:()=>b$,OSTYPEVALUES_HPUX:()=>w$,OSTYPEVALUES_LINUX:()=>v$,OSTYPEVALUES_NETBSD:()=>x$,OSTYPEVALUES_OPENBSD:()=>S$,OSTYPEVALUES_SOLARIS:()=>E$,OSTYPEVALUES_WINDOWS:()=>_$,OSTYPEVALUES_Z_OS:()=>D$,OTEL_STATUS_CODE_VALUE_ERROR:()=>U0,OTEL_STATUS_CODE_VALUE_OK:()=>W0,OsTypeValues:()=>O$,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>PJ,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>AJ,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>TJ,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>zJ,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>OJ,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>NJ,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>LJ,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>DJ,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>kJ,RPCGRPCSTATUSCODEVALUES_OK:()=>wJ,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>FJ,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>jJ,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>MJ,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>BJ,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>RJ,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>IJ,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>EJ,RpcGrpcStatusCodeValues:()=>VJ,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>XH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>cU,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>qH,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>UH,SEMATTRS_AWS_DYNAMODB_COUNT:()=>oU,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>tU,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>$H,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>lU,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>ZH,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>WH,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>YH,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>eU,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>JH,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>GH,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>KH,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>sU,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>rU,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>iU,SEMATTRS_AWS_DYNAMODB_SELECT:()=>QH,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>nU,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>HH,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>aU,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>xV,SEMATTRS_CODE_FILEPATH:()=>TH,SEMATTRS_CODE_FUNCTION:()=>CH,SEMATTRS_CODE_LINENO:()=>EH,SEMATTRS_CODE_NAMESPACE:()=>wH,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>MV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>LV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>IV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>PV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>AV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>jV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>FV,SEMATTRS_DB_CASSANDRA_TABLE:()=>NV,SEMATTRS_DB_CONNECTION_STRING:()=>CV,SEMATTRS_DB_HBASE_NAMESPACE:()=>RV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>TV,SEMATTRS_DB_MONGODB_COLLECTION:()=>BV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>kV,SEMATTRS_DB_NAME:()=>EV,SEMATTRS_DB_OPERATION:()=>OV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>zV,SEMATTRS_DB_SQL_TABLE:()=>VV,SEMATTRS_DB_STATEMENT:()=>DV,SEMATTRS_DB_SYSTEM:()=>SV,SEMATTRS_DB_USER:()=>wV,SEMATTRS_ENDUSER_ID:()=>vH,SEMATTRS_ENDUSER_ROLE:()=>yH,SEMATTRS_ENDUSER_SCOPE:()=>bH,SEMATTRS_EXCEPTION_ESCAPED:()=>GV,SEMATTRS_EXCEPTION_MESSAGE:()=>UV,SEMATTRS_EXCEPTION_STACKTRACE:()=>WV,SEMATTRS_EXCEPTION_TYPE:()=>HV,SEMATTRS_FAAS_COLDSTART:()=>eH,SEMATTRS_FAAS_CRON:()=>$V,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>JV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>ZV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>YV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>XV,SEMATTRS_FAAS_EXECUTION:()=>qV,SEMATTRS_FAAS_INVOKED_NAME:()=>tH,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>nH,SEMATTRS_FAAS_INVOKED_REGION:()=>rH,SEMATTRS_FAAS_TIME:()=>QV,SEMATTRS_FAAS_TRIGGER:()=>KV,SEMATTRS_HTTP_CLIENT_IP:()=>VH,SEMATTRS_HTTP_FLAVOR:()=>NH,SEMATTRS_HTTP_HOST:()=>AH,SEMATTRS_HTTP_METHOD:()=>DH,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>FH,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>IH,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>LH,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>RH,SEMATTRS_HTTP_ROUTE:()=>BH,SEMATTRS_HTTP_SCHEME:()=>jH,SEMATTRS_HTTP_SERVER_NAME:()=>zH,SEMATTRS_HTTP_STATUS_CODE:()=>MH,SEMATTRS_HTTP_TARGET:()=>kH,SEMATTRS_HTTP_URL:()=>OH,SEMATTRS_HTTP_USER_AGENT:()=>PH,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>zU,SEMATTRS_MESSAGE_ID:()=>RU,SEMATTRS_MESSAGE_TYPE:()=>LU,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>BU,SEMATTRS_MESSAGING_CONSUMER_ID:()=>SU,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>vU,SEMATTRS_MESSAGING_DESTINATION:()=>dU,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>fU,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>EU,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>TU,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>wU,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>DU,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>OU,SEMATTRS_MESSAGING_MESSAGE_ID:()=>_U,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>bU,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>yU,SEMATTRS_MESSAGING_OPERATION:()=>xU,SEMATTRS_MESSAGING_PROTOCOL:()=>mU,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>hU,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>CU,SEMATTRS_MESSAGING_SYSTEM:()=>uU,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>pU,SEMATTRS_MESSAGING_URL:()=>gU,SEMATTRS_NET_HOST_CARRIER_ICC:()=>gH,SEMATTRS_NET_HOST_CARRIER_MCC:()=>mH,SEMATTRS_NET_HOST_CARRIER_MNC:()=>hH,SEMATTRS_NET_HOST_CARRIER_NAME:()=>pH,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>fH,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>dH,SEMATTRS_NET_HOST_IP:()=>cH,SEMATTRS_NET_HOST_NAME:()=>uH,SEMATTRS_NET_HOST_PORT:()=>lH,SEMATTRS_NET_PEER_IP:()=>aH,SEMATTRS_NET_PEER_NAME:()=>sH,SEMATTRS_NET_PEER_PORT:()=>oH,SEMATTRS_NET_TRANSPORT:()=>iH,SEMATTRS_PEER_SERVICE:()=>_H,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>MU,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>FU,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>IU,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>PU,SEMATTRS_RPC_JSONRPC_VERSION:()=>NU,SEMATTRS_RPC_METHOD:()=>jU,SEMATTRS_RPC_SERVICE:()=>AU,SEMATTRS_RPC_SYSTEM:()=>kU,SEMATTRS_THREAD_ID:()=>xH,SEMATTRS_THREAD_NAME:()=>SH,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>OX,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>DX,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>kX,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>AX,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>jX,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>MX,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>NX,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>FX,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>PX,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>LX,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>IX,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>CX,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>TX,SEMRESATTRS_CLOUD_PLATFORM:()=>EX,SEMRESATTRS_CLOUD_PROVIDER:()=>SX,SEMRESATTRS_CLOUD_REGION:()=>wX,SEMRESATTRS_CONTAINER_ID:()=>zX,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>VX,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>HX,SEMRESATTRS_CONTAINER_NAME:()=>RX,SEMRESATTRS_CONTAINER_RUNTIME:()=>BX,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>UX,SEMRESATTRS_DEVICE_ID:()=>WX,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>GX,SEMRESATTRS_DEVICE_MODEL_NAME:()=>KX,SEMRESATTRS_FAAS_ID:()=>JX,SEMRESATTRS_FAAS_INSTANCE:()=>XX,SEMRESATTRS_FAAS_MAX_MEMORY:()=>ZX,SEMRESATTRS_FAAS_NAME:()=>qX,SEMRESATTRS_FAAS_VERSION:()=>YX,SEMRESATTRS_HOST_ARCH:()=>tZ,SEMRESATTRS_HOST_ID:()=>QX,SEMRESATTRS_HOST_IMAGE_ID:()=>rZ,SEMRESATTRS_HOST_IMAGE_NAME:()=>nZ,SEMRESATTRS_HOST_IMAGE_VERSION:()=>iZ,SEMRESATTRS_HOST_NAME:()=>$X,SEMRESATTRS_HOST_TYPE:()=>eZ,SEMRESATTRS_K8S_CLUSTER_NAME:()=>aZ,SEMRESATTRS_K8S_CONTAINER_NAME:()=>dZ,SEMRESATTRS_K8S_CRONJOB_NAME:()=>CZ,SEMRESATTRS_K8S_CRONJOB_UID:()=>SZ,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>yZ,SEMRESATTRS_K8S_DAEMONSET_UID:()=>vZ,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>hZ,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>mZ,SEMRESATTRS_K8S_JOB_NAME:()=>xZ,SEMRESATTRS_K8S_JOB_UID:()=>bZ,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>cZ,SEMRESATTRS_K8S_NODE_NAME:()=>oZ,SEMRESATTRS_K8S_NODE_UID:()=>sZ,SEMRESATTRS_K8S_POD_NAME:()=>uZ,SEMRESATTRS_K8S_POD_UID:()=>lZ,SEMRESATTRS_K8S_REPLICASET_NAME:()=>pZ,SEMRESATTRS_K8S_REPLICASET_UID:()=>fZ,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>_Z,SEMRESATTRS_K8S_STATEFULSET_UID:()=>gZ,SEMRESATTRS_OS_DESCRIPTION:()=>TZ,SEMRESATTRS_OS_NAME:()=>EZ,SEMRESATTRS_OS_TYPE:()=>wZ,SEMRESATTRS_OS_VERSION:()=>DZ,SEMRESATTRS_PROCESS_COMMAND:()=>jZ,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>NZ,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>MZ,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>kZ,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>AZ,SEMRESATTRS_PROCESS_OWNER:()=>PZ,SEMRESATTRS_PROCESS_PID:()=>OZ,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>LZ,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>FZ,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>IZ,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>BZ,SEMRESATTRS_SERVICE_NAME:()=>RZ,SEMRESATTRS_SERVICE_NAMESPACE:()=>zZ,SEMRESATTRS_SERVICE_VERSION:()=>VZ,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>GZ,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>UZ,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>HZ,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>WZ,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>JZ,SEMRESATTRS_WEBENGINE_NAME:()=>KZ,SEMRESATTRS_WEBENGINE_VERSION:()=>qZ,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Z0,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Q0,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>$0,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>t2,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>n2,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>r2,SemanticAttributes:()=>VU,SemanticResourceAttributes:()=>YZ,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>z$,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>B$,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>V$,TELEMETRYSDKLANGUAGEVALUES_GO:()=>H$,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>U$,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>W$,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>G$,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>K$,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>q$,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>J$,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>a2,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>o2,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>s2,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>c2,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>l2,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>u2,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>d2,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>f2,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>p2,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>m2,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>h2,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>g2,TelemetrySdkLanguageValues:()=>Y$}),D4=n((()=>{JJ(),Z$(),T2(),C4(),T4()})),O4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractAsyncHooksContextManager=void 0;let n=t(`events`),r=[`addListener`,`on`,`once`,`prependListener`,`prependOnceListener`];e.AbstractAsyncHooksContextManager=class{constructor(){this._kOtListeners=Symbol(`OtListeners`),this._wrapped=!1}bind(e,t){return t instanceof n.EventEmitter?this._bindEventEmitter(e,t):typeof t==`function`?this._bindFunction(e,t):t}_bindFunction(e,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}_bindEventEmitter(e,t){return this._getPatchMap(t)===void 0?(this._createPatchMap(t),r.forEach(n=>{t[n]!==void 0&&(t[n]=this._patchAddListener(t,t[n],e))}),typeof t.removeListener==`function`&&(t.removeListener=this._patchRemoveListener(t,t.removeListener)),typeof t.off==`function`&&(t.off=this._patchRemoveListener(t,t.off)),typeof t.removeAllListeners==`function`&&(t.removeAllListeners=this._patchRemoveAllListeners(t,t.removeAllListeners)),t):t}_patchRemoveListener(e,t){let n=this;return function(r,i){let a=n._getPatchMap(e)?.[r];if(a===void 0)return t.call(this,r,i);let o=a.get(i);return t.call(this,r,o||i)}}_patchRemoveAllListeners(e,t){let n=this;return function(r){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[r]!==void 0&&delete i[r]),t.apply(this,arguments)}}_patchAddListener(e,t,n){let r=this;return function(i,a){if(r._wrapped)return t.call(this,i,a);let o=r._getPatchMap(e);o===void 0&&(o=r._createPatchMap(e));let s=o[i];s===void 0&&(s=new WeakMap,o[i]=s);let c=r.bind(n,a);s.set(a,c),r._wrapped=!0;try{return t.call(this,i,c)}finally{r._wrapped=!1}}}_createPatchMap(e){let t=Object.create(null);return e[this._kOtListeners]=t,t}_getPatchMap(e){return e[this._kOtListeners]}}})),k4=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.AsyncHooksContextManager=void 0;let r=($(),e(Q)),i=t(`async_hooks`),a=O4();n.AsyncHooksContextManager=class extends a.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=i.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??r.ROOT_CONTEXT}with(e,t,n,...r){this._enterContext(e);try{return t.call(n,...r)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,t){if(t===`TIMERWRAP`)return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let t=this._contexts.get(e);t!==void 0&&this._enterContext(t)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}}})),A4=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.AsyncLocalStorageContextManager=void 0;let r=($(),e(Q)),i=t(`async_hooks`),a=O4();n.AsyncLocalStorageContextManager=class extends a.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new i.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??r.ROOT_CONTEXT}with(e,t,n,...r){let i=n==null?t:t.bind(n);return this._asyncLocalStorage.run(e,i,...r)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}})),j4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncLocalStorageContextManager=e.AsyncHooksContextManager=void 0;var t=k4();Object.defineProperty(e,`AsyncHooksContextManager`,{enumerable:!0,get:function(){return t.AsyncHooksContextManager}});var n=A4();Object.defineProperty(e,`AsyncLocalStorageContextManager`,{enumerable:!0,get:function(){return n.AsyncLocalStorageContextManager}})})),M4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.B3_DEBUG_FLAG_KEY=void 0,t.B3_DEBUG_FLAG_KEY=(0,($(),e(Q)).createContextKey)(`OpenTelemetry Context Key B3 Debug Flag`)})),N4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.X_B3_FLAGS=e.X_B3_PARENT_SPAN_ID=e.X_B3_SAMPLED=e.X_B3_SPAN_ID=e.X_B3_TRACE_ID=e.B3_CONTEXT_HEADER=void 0,e.B3_CONTEXT_HEADER=`b3`,e.X_B3_TRACE_ID=`x-b3-traceid`,e.X_B3_SPAN_ID=`x-b3-spanid`,e.X_B3_SAMPLED=`x-b3-sampled`,e.X_B3_PARENT_SPAN_ID=`x-b3-parentspanid`,e.X_B3_FLAGS=`x-b3-flags`})),P4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.B3MultiPropagator=void 0;let n=($(),e(Q)),r=QR(),i=M4(),a=N4(),o=new Set([!0,`true`,`True`,`1`,1]),s=new Set([!1,`false`,`False`,`0`,0]);function c(e){return e===n.TraceFlags.SAMPLED||e===n.TraceFlags.NONE}function l(e){return Array.isArray(e)?e[0]:e}function u(e,t,n){return l(t.get(e,n))}function d(e,t){let n=u(e,t,a.X_B3_TRACE_ID);return typeof n==`string`?n.padStart(32,`0`):``}function f(e,t){let n=u(e,t,a.X_B3_SPAN_ID);return typeof n==`string`?n:``}function p(e,t){return u(e,t,a.X_B3_FLAGS)===`1`?`1`:void 0}function m(e,t){let r=u(e,t,a.X_B3_SAMPLED);if(p(e,t)===`1`||o.has(r))return n.TraceFlags.SAMPLED;if(r===void 0||s.has(r))return n.TraceFlags.NONE}t.B3MultiPropagator=class{inject(e,t,o){let s=n.trace.getSpanContext(e);if(!s||!(0,n.isSpanContextValid)(s)||(0,r.isTracingSuppressed)(e))return;let c=e.getValue(i.B3_DEBUG_FLAG_KEY);o.set(t,a.X_B3_TRACE_ID,s.traceId),o.set(t,a.X_B3_SPAN_ID,s.spanId),c===`1`?o.set(t,a.X_B3_FLAGS,c):s.traceFlags!==void 0&&o.set(t,a.X_B3_SAMPLED,(n.TraceFlags.SAMPLED&s.traceFlags)===n.TraceFlags.SAMPLED?`1`:`0`)}extract(e,t,r){let a=d(t,r),o=f(t,r),s=m(t,r),l=p(t,r);return(0,n.isValidTraceId)(a)&&(0,n.isValidSpanId)(o)&&c(s)?(e=e.setValue(i.B3_DEBUG_FLAG_KEY,l),n.trace.setSpanContext(e,{traceId:a,spanId:o,isRemote:!0,traceFlags:s})):e}fields(){return[a.X_B3_TRACE_ID,a.X_B3_SPAN_ID,a.X_B3_FLAGS,a.X_B3_SAMPLED,a.X_B3_PARENT_SPAN_ID]}}})),F4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.B3SinglePropagator=void 0;let n=($(),e(Q)),r=QR(),i=M4(),a=N4(),o=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,s=`0`.repeat(16),c=new Set([`d`,`1`]);function l(e){return e.length===32?e:`${s}${e}`}function u(e){return e&&c.has(e)?n.TraceFlags.SAMPLED:n.TraceFlags.NONE}t.B3SinglePropagator=class{inject(e,t,o){let s=n.trace.getSpanContext(e);if(!s||!(0,n.isSpanContextValid)(s)||(0,r.isTracingSuppressed)(e))return;let c=e.getValue(i.B3_DEBUG_FLAG_KEY)||s.traceFlags&1,l=`${s.traceId}-${s.spanId}-${c}`;o.set(t,a.B3_CONTEXT_HEADER,l)}extract(e,t,r){let s=r.get(t,a.B3_CONTEXT_HEADER),c=Array.isArray(s)?s[0]:s;if(typeof c!=`string`)return e;let d=c.match(o);if(!d)return e;let[,f,p,m]=d,h=l(f);if(!(0,n.isValidTraceId)(h)||!(0,n.isValidSpanId)(p))return e;let g=u(m);return m===`d`&&(e=e.setValue(i.B3_DEBUG_FLAG_KEY,m)),n.trace.setSpanContext(e,{traceId:h,spanId:p,isRemote:!0,traceFlags:g})}fields(){return[a.B3_CONTEXT_HEADER]}}})),I4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.B3InjectEncoding=void 0,(function(e){e[e.SINGLE_HEADER=0]=`SINGLE_HEADER`,e[e.MULTI_HEADER=1]=`MULTI_HEADER`})(e.B3InjectEncoding||={})})),L4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.B3Propagator=void 0;let t=QR(),n=P4(),r=F4(),i=N4(),a=I4();e.B3Propagator=class{constructor(e={}){this._b3MultiPropagator=new n.B3MultiPropagator,this._b3SinglePropagator=new r.B3SinglePropagator,e.injectEncoding===a.B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}inject(e,n,r){(0,t.isTracingSuppressed)(e)||this._inject(e,n,r)}extract(e,t,n){let r=n.get(t,i.B3_CONTEXT_HEADER);return(Array.isArray(r)?r[0]:r)?this._b3SinglePropagator.extract(e,t,n):this._b3MultiPropagator.extract(e,t,n)}fields(){return this._fields}}})),R4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.B3InjectEncoding=e.X_B3_TRACE_ID=e.X_B3_SPAN_ID=e.X_B3_SAMPLED=e.X_B3_PARENT_SPAN_ID=e.X_B3_FLAGS=e.B3_CONTEXT_HEADER=e.B3Propagator=void 0;var t=L4();Object.defineProperty(e,`B3Propagator`,{enumerable:!0,get:function(){return t.B3Propagator}});var n=N4();Object.defineProperty(e,`B3_CONTEXT_HEADER`,{enumerable:!0,get:function(){return n.B3_CONTEXT_HEADER}}),Object.defineProperty(e,`X_B3_FLAGS`,{enumerable:!0,get:function(){return n.X_B3_FLAGS}}),Object.defineProperty(e,`X_B3_PARENT_SPAN_ID`,{enumerable:!0,get:function(){return n.X_B3_PARENT_SPAN_ID}}),Object.defineProperty(e,`X_B3_SAMPLED`,{enumerable:!0,get:function(){return n.X_B3_SAMPLED}}),Object.defineProperty(e,`X_B3_SPAN_ID`,{enumerable:!0,get:function(){return n.X_B3_SPAN_ID}}),Object.defineProperty(e,`X_B3_TRACE_ID`,{enumerable:!0,get:function(){return n.X_B3_TRACE_ID}});var r=I4();Object.defineProperty(e,`B3InjectEncoding`,{enumerable:!0,get:function(){return r.B3InjectEncoding}})})),z4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionEventName=void 0,e.ExceptionEventName=`exception`})),B4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Span=void 0;let n=($(),e(Q)),r=QR(),i=(OR(),e(DR)),a=z4();t.Span=class{constructor(e,t,i,a,o,s,c=[],l,u,d){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:n.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=s,this.kind=o,this.links=c;let f=Date.now();this._performanceStartTime=r.otperformance.now(),this._performanceOffset=f-(this._performanceStartTime+(0,r.getTimeOrigin)()),this._startTimeProvided=l!=null,this.startTime=this._getTime(l??f),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,d!=null&&this.setAttributes(d),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}spanContext(){return this._spanContext}setAttribute(e,t){return t==null||this._isSpanEnded()?this:e.length===0?(n.diag.warn(`Invalid attribute key: ${e}`),this):(0,r.isAttributeValue)(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),this):(n.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,t,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return n.diag.warn(`No events allowed.`),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&n.diag.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),(0,r.isTimeInput)(t)&&((0,r.isTimeInput)(i)||(i=t),t=void 0);let a=(0,r.sanitizeAttributes)(t);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status=Object.assign({},e),this.status.message!=null&&typeof e.message!=`string`&&(n.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){if(this._isSpanEnded()){n.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,r.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(n.diag.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&&n.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=r.otperformance.now())return(0,r.hrTime)(e+this._performanceOffset);if(typeof e==`number`)return(0,r.millisToHrTime)(e);if(e instanceof Date)return(0,r.millisToHrTime)(e.getTime());if((0,r.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,r.millisToHrTime)(Date.now());let t=r.otperformance.now()-this._performanceStartTime;return(0,r.addHrTimes)(this.startTime,(0,r.millisToHrTime)(t))}isRecording(){return this._ended===!1}recordException(e,t){let r={};typeof e==`string`?r[i.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?r[i.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(r[i.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(r[i.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(r[i.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),r[i.SEMATTRS_EXCEPTION_TYPE]||r[i.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(a.ExceptionEventName,r,t):n.diag.warn(`Failed to record an exception ${e}`)}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(){return this._ended&&n.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(n.diag.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}}})),V4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SamplingDecision=void 0,(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(e.SamplingDecision||={})})),H4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AlwaysOffSampler=void 0;let t=V4();e.AlwaysOffSampler=class{shouldSample(){return{decision:t.SamplingDecision.NOT_RECORD}}toString(){return`AlwaysOffSampler`}}})),U4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AlwaysOnSampler=void 0;let t=V4();e.AlwaysOnSampler=class{shouldSample(){return{decision:t.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}}})),W4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.ParentBasedSampler=void 0;let n=($(),e(Q)),r=QR(),i=H4(),a=U4();t.ParentBasedSampler=class{constructor(e){this._root=e.root,this._root||=((0,r.globalErrorHandler)(Error(`ParentBasedSampler must have a root sampler configured`)),new a.AlwaysOnSampler),this._remoteParentSampled=e.remoteParentSampled??new a.AlwaysOnSampler,this._remoteParentNotSampled=e.remoteParentNotSampled??new i.AlwaysOffSampler,this._localParentSampled=e.localParentSampled??new a.AlwaysOnSampler,this._localParentNotSampled=e.localParentNotSampled??new i.AlwaysOffSampler}shouldSample(e,t,r,i,a,o){let s=n.trace.getSpanContext(e);return!s||!(0,n.isSpanContextValid)(s)?this._root.shouldSample(e,t,r,i,a,o):s.isRemote?s.traceFlags&n.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,i,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,i,a,o):s.traceFlags&n.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,i,a,o):this._localParentNotSampled.shouldSample(e,t,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),G4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.TraceIdRatioBasedSampler=void 0;let n=($(),e(Q)),r=V4();t.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:(0,n.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?r.SamplingDecision.RECORD_AND_SAMPLED:r.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=n*8,i=parseInt(e.slice(r,r+8),16);t=(t^i)>>>0}return t}}})),K4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.buildSamplerFromEnv=t.loadDefaultConfig=void 0;let n=($(),e(Q)),r=QR(),i=H4(),a=U4(),o=W4(),s=G4(),c=r.TracesSamplerValues.AlwaysOn;function l(){let e=(0,r.getEnv)();return{sampler:u(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}t.loadDefaultConfig=l;function u(e=(0,r.getEnv)()){switch(e.OTEL_TRACES_SAMPLER){case r.TracesSamplerValues.AlwaysOn:return new a.AlwaysOnSampler;case r.TracesSamplerValues.AlwaysOff:return new i.AlwaysOffSampler;case r.TracesSamplerValues.ParentBasedAlwaysOn:return new o.ParentBasedSampler({root:new a.AlwaysOnSampler});case r.TracesSamplerValues.ParentBasedAlwaysOff:return new o.ParentBasedSampler({root:new i.AlwaysOffSampler});case r.TracesSamplerValues.TraceIdRatio:return new s.TraceIdRatioBasedSampler(d(e));case r.TracesSamplerValues.ParentBasedTraceIdRatio:return new o.ParentBasedSampler({root:new s.TraceIdRatioBasedSampler(d(e))});default:return n.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${c}".`),new a.AlwaysOnSampler}}t.buildSamplerFromEnv=u;function d(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG===``)return n.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1.`),1;let t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(n.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to 1.`),1):t<0||t>1?(n.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to 1.`),1):t}})),q4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reconfigureLimits=e.mergeConfig=void 0;let t=K4(),n=QR();function r(e){let n={sampler:(0,t.buildSamplerFromEnv)()},r=(0,t.loadDefaultConfig)(),i=Object.assign({},r,n,e);return i.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),i.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),i}e.mergeConfig=r;function i(e){let t=Object.assign({},e.spanLimits),r=(0,n.getEnvWithoutDefaults)();return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??r.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT??r.OTEL_ATTRIBUTE_COUNT_LIMIT??n.DEFAULT_ATTRIBUTE_COUNT_LIMIT,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??r.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT??r.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT??n.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},e,{spanLimits:t})}e.reconfigureLimits=i})),J4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BatchSpanProcessorBase=void 0;let n=($(),e(Q)),r=QR();t.BatchSpanProcessorBase=class{constructor(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let i=(0,r.getEnv)();this._maxExportBatchSize=typeof t?.maxExportBatchSize==`number`?t.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof t?.maxQueueSize==`number`?t.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis==`number`?t.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis==`number`?t.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new r.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(n.diag.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(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&n.TraceFlags.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&n.diag.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(n.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let i=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);n.context.with((0,r.suppressTracing)(n.context.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);let a=()=>this._exporter.export(n,n=>{clearTimeout(i),n.code===r.ExportResultCode.SUCCESS?e():t(n.error??Error(`BatchSpanProcessor: span export failed`))}),o=null;for(let e=0,t=n.length;e<t;e++){let t=n[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(o??=[],o.push(t.resource.waitForAsyncAttributes()))}o===null?a():Promise.all(o).then(a,e=>{(0,r.globalErrorHandler)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,r.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,r.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}})),Y4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BatchSpanProcessor=void 0;let t=J4();e.BatchSpanProcessor=class extends t.BatchSpanProcessorBase{onShutdown(){}}})),X4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};let t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString(`hex`,0,e)}}})),Z4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=e.BatchSpanProcessor=void 0;var t=Y4();Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return t.BatchSpanProcessor}});var n=X4();Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return n.RandomIdGenerator}})})),Q4=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RandomIdGenerator=e.BatchSpanProcessor=void 0;var t=Z4();Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return t.BatchSpanProcessor}}),Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return t.RandomIdGenerator}})})),$4=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Tracer=void 0;let n=($(),e(Q)),r=QR(),i=B4(),a=q4(),o=Q4();t.Tracer=class{constructor(e,t,n){this._tracerProvider=n;let r=(0,a.mergeConfig)(t);this._sampler=r.sampler,this._generalLimits=r.generalLimits,this._spanLimits=r.spanLimits,this._idGenerator=t.idGenerator||new o.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,t={},a=n.context.active()){t.root&&(a=n.trace.deleteSpan(a));let o=n.trace.getSpan(a);if((0,r.isTracingSuppressed)(a))return n.diag.debug(`Instrumentation suppressed, returning Noop Span`),n.trace.wrapSpanContext(n.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),c=this._idGenerator.generateSpanId(),l,u,d;!s||!n.trace.isSpanContextValid(s)?l=this._idGenerator.generateTraceId():(l=s.traceId,u=s.traceState,d=s.spanId);let f=t.kind??n.SpanKind.INTERNAL,p=(t.links??[]).map(e=>({context:e.context,attributes:(0,r.sanitizeAttributes)(e.attributes)})),m=(0,r.sanitizeAttributes)(t.attributes),h=this._sampler.shouldSample(a,l,e,f,m,p);u=h.traceState??u;let g=h.decision===n.SamplingDecision.RECORD_AND_SAMPLED?n.TraceFlags.SAMPLED:n.TraceFlags.NONE,_={traceId:l,spanId:c,traceFlags:g,traceState:u};if(h.decision===n.SamplingDecision.NOT_RECORD)return n.diag.debug(`Recording is off, propagating context in a non-recording span`),n.trace.wrapSpanContext(_);let v=(0,r.sanitizeAttributes)(Object.assign(m,h.attributes));return new i.Span(this,a,e,_,f,d,p,t.startTime,void 0,v)}startActiveSpan(e,t,r,i){let a,o,s;if(arguments.length<2)return;arguments.length===2?s=t:arguments.length===3?(a=t,s=r):(a=t,o=r,s=i);let c=o??n.context.active(),l=this.startSpan(e,a,c),u=n.trace.setSpan(c,l);return n.context.with(u,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}}})),e3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultServiceName=void 0;function t(){return`unknown_service:${process.argv0}`}e.defaultServiceName=t})),t3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultServiceName=void 0;var t=e3();Object.defineProperty(e,`defaultServiceName`,{enumerable:!0,get:function(){return t.defaultServiceName}})})),n3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultServiceName=void 0;var t=t3();Object.defineProperty(e,`defaultServiceName`,{enumerable:!0,get:function(){return t.defaultServiceName}})})),r3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.Resource=void 0;let n=($(),e(Q)),r=(OR(),e(DR)),i=QR(),a=n3();var o=class e{constructor(e,t){this._attributes=e,this.asyncAttributesPending=t!=null,this._syncAttributes=this._attributes??{},this._asyncAttributesPromise=t?.then(e=>(this._attributes=Object.assign({},this._attributes,e),this.asyncAttributesPending=!1,e),e=>(n.diag.debug(`a resource's async attributes promise rejected: %s`,e),this.asyncAttributesPending=!1,{}))}static empty(){return e.EMPTY}static default(){return new e({[r.SEMRESATTRS_SERVICE_NAME]:(0,a.defaultServiceName)(),[r.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:i.SDK_INFO[r.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[r.SEMRESATTRS_TELEMETRY_SDK_NAME]:i.SDK_INFO[r.SEMRESATTRS_TELEMETRY_SDK_NAME],[r.SEMRESATTRS_TELEMETRY_SDK_VERSION]:i.SDK_INFO[r.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){return this.asyncAttributesPending&&n.diag.error(`Accessing resource attributes before async attributes settled`),this._attributes??{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(t){if(!t)return this;let n=Object.assign(Object.assign({},this._syncAttributes),t._syncAttributes??t.attributes);return!this._asyncAttributesPromise&&!t._asyncAttributesPromise?new e(n):new e(n,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(([e,n])=>Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),e),t._syncAttributes??t.attributes),n)))}};t.Resource=o,o.EMPTY=new o({})})),i3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalizeType=e.normalizeArch=void 0,e.normalizeArch=e=>{switch(e){case`arm`:return`arm32`;case`ppc`:return`ppc32`;case`x64`:return`amd64`;default:return e}},e.normalizeType=e=>{switch(e){case`sunos`:return`solaris`;case`win32`:return`windows`;default:return e}}})),a3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.execAsync=void 0;let n=t(`child_process`);e.execAsync=t(`util`).promisify(n.exec)})),o3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let n=a3(),r=($(),e(Q));async function i(){try{let e=(await(0,n.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
230
+ `).find(e=>e.includes(`IOPlatformUUID`));if(!e)return``;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){r.diag.debug(`error reading machine id: ${e}`)}return``}t.getMachineId=i})),s3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let r=t(`fs`),i=($(),e(Q));async function a(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await r.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){i.diag.debug(`error reading machine id: ${e}`)}return``}n.getMachineId=a})),c3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let r=t(`fs`),i=a3(),a=($(),e(Q));async function o(){try{return(await r.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){a.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,i.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){a.diag.debug(`error reading machine id: ${e}`)}return``}n.getMachineId=o})),l3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let r=t(`process`),i=a3(),a=($(),e(Q));async function o(){let e=`%windir%\\System32\\REG.exe`;r.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in r.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,i.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){a.diag.debug(`error reading machine id: ${e}`)}return``}n.getMachineId=o})),u3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let n=($(),e(Q));async function r(){return n.diag.debug(`could not read machine-id: unsupported platform`),``}t.getMachineId=r})),d3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getMachineId=void 0;let n=t(`process`),r;switch(e.getMachineId=r,n.platform){case`darwin`:e.getMachineId=r=o3().getMachineId;break;case`linux`:e.getMachineId=r=s3().getMachineId;break;case`freebsd`:e.getMachineId=r=c3().getMachineId;break;case`win32`:e.getMachineId=r=l3().getMachineId;break;default:e.getMachineId=r=u3().getMachineId}})),f3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.hostDetectorSync=void 0;let r=(OR(),e(DR)),i=r3(),a=t(`os`),o=i3(),s=d3();n.hostDetectorSync=new class{detect(e){let t={[r.SEMRESATTRS_HOST_NAME]:(0,a.hostname)(),[r.SEMRESATTRS_HOST_ARCH]:(0,o.normalizeArch)((0,a.arch)())};return new i.Resource(t,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,s.getMachineId)().then(e=>{let t={};return e&&(t[r.SEMRESATTRS_HOST_ID]=e),t})}}})),p3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hostDetector=void 0;let t=f3();e.hostDetector=new class{detect(e){return Promise.resolve(t.hostDetectorSync.detect(e))}}})),m3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.osDetectorSync=void 0;let r=(OR(),e(DR)),i=r3(),a=t(`os`),o=i3();n.osDetectorSync=new class{detect(e){let t={[r.SEMRESATTRS_OS_TYPE]:(0,o.normalizeType)((0,a.platform)()),[r.SEMRESATTRS_OS_VERSION]:(0,a.release)()};return new i.Resource(t)}}})),h3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.osDetector=void 0;let t=m3();e.osDetector=new class{detect(e){return Promise.resolve(t.osDetectorSync.detect(e))}}})),g3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.processDetectorSync=void 0;let r=($(),e(Q)),i=(OR(),e(DR)),a=r3(),o=t(`os`);n.processDetectorSync=new class{detect(e){let t={[i.SEMRESATTRS_PROCESS_PID]:process.pid,[i.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[i.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[i.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[i.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[i.SEMRESATTRS_PROCESS_RUNTIME_NAME]:`nodejs`,[i.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:`Node.js`};process.argv.length>1&&(t[i.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let e=o.userInfo();t[i.SEMRESATTRS_PROCESS_OWNER]=e.username}catch(e){r.diag.debug(`error obtaining process owner: ${e}`)}return new a.Resource(t)}}})),_3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.processDetector=void 0;let t=g3();e.processDetector=new class{detect(e){return Promise.resolve(t.processDetectorSync.detect(e))}}})),v3=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.serviceInstanceIdDetectorSync=void 0;let r=(OR(),e(DR)),i=r3(),a=t(`crypto`);n.serviceInstanceIdDetectorSync=new class{detect(e){let t={[r.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,a.randomUUID)()};return new i.Resource(t)}}})),y3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=void 0;var t=p3();Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return t.hostDetector}});var n=f3();Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return n.hostDetectorSync}});var r=h3();Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return r.osDetector}});var i=m3();Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return i.osDetectorSync}});var a=_3();Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return a.processDetector}});var o=g3();Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return o.processDetectorSync}});var s=v3();Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return s.serviceInstanceIdDetectorSync}})})),b3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=void 0;var t=y3();Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return t.hostDetector}}),Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return t.hostDetectorSync}}),Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return t.osDetector}}),Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return t.osDetectorSync}}),Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return t.processDetector}}),Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return t.processDetectorSync}}),Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return t.serviceInstanceIdDetectorSync}})})),x3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.browserDetectorSync=void 0;let n=(OR(),e(DR)),r=($(),e(Q)),i=r3();t.browserDetectorSync=new class{detect(e){if(!(typeof navigator<`u`&&global.process?.versions?.node===void 0&&global.Bun?.version===void 0))return i.Resource.empty();let t={[n.SEMRESATTRS_PROCESS_RUNTIME_NAME]:`browser`,[n.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:`Web Browser`,[n.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(t,e)}_getResourceAttributes(e,t){return e[n.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===``?(r.diag.debug(`BrowserDetector failed: Unable to find required browser resources. `),i.Resource.empty()):new i.Resource(Object.assign({},e))}}})),S3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.browserDetector=void 0;let t=x3();e.browserDetector=new class{detect(e){return Promise.resolve(t.browserDetectorSync.detect(e))}}})),C3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.envDetectorSync=void 0;let n=($(),e(Q)),r=QR(),i=(OR(),e(DR)),a=r3();t.envDetectorSync=new class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=`,`,this._LABEL_KEY_VALUE_SPLITTER=`=`,this._ERROR_MESSAGE_INVALID_CHARS=`should be a ASCII string with a length greater than 0 and not exceed `+this._MAX_LENGTH+` characters.`,this._ERROR_MESSAGE_INVALID_VALUE=`should be a ASCII string with a length not exceed `+this._MAX_LENGTH+` characters.`}detect(e){let t={},o=(0,r.getEnv)(),s=o.OTEL_RESOURCE_ATTRIBUTES,c=o.OTEL_SERVICE_NAME;if(s)try{let e=this._parseResourceAttributes(s);Object.assign(t,e)}catch(e){n.diag.debug(`EnvDetector failed: ${e.message}`)}return c&&(t[i.SEMRESATTRS_SERVICE_NAME]=c),new a.Resource(t)}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR,-1);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(n.length!==2)continue;let[r,i]=n;if(r=r.trim(),i=i.trim().split(/^"|"$/).join(``),!this._isValidAndNotEmpty(r))throw Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(i))throw Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);t[r]=decodeURIComponent(i)}return t}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}}})),w3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.envDetector=void 0;let t=C3();e.envDetector=new class{detect(e){return Promise.resolve(t.envDetectorSync.detect(e))}}})),T3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.envDetectorSync=e.browserDetectorSync=e.envDetector=e.browserDetector=e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=void 0;var t=b3();Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return t.hostDetector}}),Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return t.hostDetectorSync}}),Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return t.osDetector}}),Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return t.osDetectorSync}}),Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return t.processDetector}}),Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return t.processDetectorSync}}),Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return t.serviceInstanceIdDetectorSync}});var n=S3();Object.defineProperty(e,`browserDetector`,{enumerable:!0,get:function(){return n.browserDetector}});var r=w3();Object.defineProperty(e,`envDetector`,{enumerable:!0,get:function(){return r.envDetector}});var i=x3();Object.defineProperty(e,`browserDetectorSync`,{enumerable:!0,get:function(){return i.browserDetectorSync}});var a=C3();Object.defineProperty(e,`envDetectorSync`,{enumerable:!0,get:function(){return a.envDetectorSync}})})),E3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromiseLike=void 0,e.isPromiseLike=e=>typeof e==`object`&&!!e&&typeof e.then==`function`})),D3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.detectResourcesSync=t.detectResources=void 0;let n=r3(),r=($(),e(Q)),i=E3();t.detectResources=async(e={})=>{let t=await Promise.all((e.detectors||[]).map(async t=>{try{let n=await t.detect(e);return r.diag.debug(`${t.constructor.name} found resource.`,n),n}catch(e){return r.diag.debug(`${t.constructor.name} failed: ${e.message}`),n.Resource.empty()}}));return a(t),t.reduce((e,t)=>e.merge(t),n.Resource.empty())},t.detectResourcesSync=(e={})=>{let t=(e.detectors??[]).map(t=>{try{let a=t.detect(e),o;return o=(0,i.isPromiseLike)(a)?new n.Resource({},(async()=>{let e=await a;return await e.waitForAsyncAttributes?.call(e),e.attributes})()):a,o.waitForAsyncAttributes?o.waitForAsyncAttributes().then(()=>r.diag.debug(`${t.constructor.name} found resource.`,o)):r.diag.debug(`${t.constructor.name} found resource.`,o),o}catch(e){return r.diag.error(`${t.constructor.name} failed: ${e.message}`),n.Resource.empty()}}),o=t.reduce((e,t)=>e.merge(t),n.Resource.empty());return o.waitForAsyncAttributes&&o.waitForAsyncAttributes().then(()=>{a(t)}),o};let a=e=>{e.forEach(e=>{if(Object.keys(e.attributes).length>0){let t=JSON.stringify(e.attributes,null,4);r.diag.verbose(t)}})}})),O3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.detectResources=e.detectResourcesSync=e.serviceInstanceIdDetectorSync=e.processDetectorSync=e.processDetector=e.osDetectorSync=e.osDetector=e.hostDetectorSync=e.hostDetector=e.envDetectorSync=e.envDetector=e.browserDetectorSync=e.browserDetector=e.defaultServiceName=e.Resource=void 0;var t=r3();Object.defineProperty(e,`Resource`,{enumerable:!0,get:function(){return t.Resource}});var n=n3();Object.defineProperty(e,`defaultServiceName`,{enumerable:!0,get:function(){return n.defaultServiceName}});var r=T3();Object.defineProperty(e,`browserDetector`,{enumerable:!0,get:function(){return r.browserDetector}}),Object.defineProperty(e,`browserDetectorSync`,{enumerable:!0,get:function(){return r.browserDetectorSync}}),Object.defineProperty(e,`envDetector`,{enumerable:!0,get:function(){return r.envDetector}}),Object.defineProperty(e,`envDetectorSync`,{enumerable:!0,get:function(){return r.envDetectorSync}}),Object.defineProperty(e,`hostDetector`,{enumerable:!0,get:function(){return r.hostDetector}}),Object.defineProperty(e,`hostDetectorSync`,{enumerable:!0,get:function(){return r.hostDetectorSync}}),Object.defineProperty(e,`osDetector`,{enumerable:!0,get:function(){return r.osDetector}}),Object.defineProperty(e,`osDetectorSync`,{enumerable:!0,get:function(){return r.osDetectorSync}}),Object.defineProperty(e,`processDetector`,{enumerable:!0,get:function(){return r.processDetector}}),Object.defineProperty(e,`processDetectorSync`,{enumerable:!0,get:function(){return r.processDetectorSync}}),Object.defineProperty(e,`serviceInstanceIdDetectorSync`,{enumerable:!0,get:function(){return r.serviceInstanceIdDetectorSync}});var i=D3();Object.defineProperty(e,`detectResourcesSync`,{enumerable:!0,get:function(){return i.detectResourcesSync}}),Object.defineProperty(e,`detectResources`,{enumerable:!0,get:function(){return i.detectResources}})})),k3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MultiSpanProcessor=void 0;let t=QR();e.MultiSpanProcessor=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(e=>{(0,t.globalErrorHandler)(e||Error(`MultiSpanProcessor: forceFlush failed`)),n()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}})),A3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoopSpanProcessor=void 0,e.NoopSpanProcessor=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),j3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.BasicTracerProvider=t.ForceFlushState=void 0;let n=($(),e(Q)),r=QR(),i=O3(),a=$4(),o=K4(),s=k3(),c=A3(),l=Q4(),u=q4();var d;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(d=t.ForceFlushState||={});var f=class{constructor(e={}){this._registeredSpanProcessors=[],this._tracers=new Map;let t=(0,r.merge)({},(0,o.loadDefaultConfig)(),(0,u.reconfigureLimits)(e));if(this.resource=t.resource??i.Resource.empty(),t.mergeResourceWithDefaults&&(this.resource=i.Resource.default().merge(this.resource)),this._config=Object.assign({},t,{resource:this.resource}),e.spanProcessors?.length)this._registeredSpanProcessors=[...e.spanProcessors],this.activeSpanProcessor=new s.MultiSpanProcessor(this._registeredSpanProcessors);else{let e=this._buildExporterFromEnv();e===void 0?this.activeSpanProcessor=new c.NoopSpanProcessor:this.activeSpanProcessor=new l.BatchSpanProcessor(e)}}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new a.Tracer({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(r)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(e=>n.diag.error(`Error while trying to shutdown current span processor`,e)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new s.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){n.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&n.context.setGlobalContextManager(e.contextManager),e.propagator&&n.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=d.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==d.timeout&&(r=d.resolved,n(r))}).catch(e=>{clearTimeout(i),r=d.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==d.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){return this.constructor._registeredPropagators.get(e)?.()}_getSpanExporter(e){return this.constructor._registeredExporters.get(e)?.()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,r.getEnv)().OTEL_PROPAGATORS)),t=e.map(e=>{let t=this._getPropagator(e);return t||n.diag.warn(`Propagator "${e}" requested through environment variable is unavailable.`),t}).reduce((e,t)=>(t&&e.push(t),e),[]);if(t.length!==0)return e.length===1?t[0]:new r.CompositePropagator({propagators:t})}_buildExporterFromEnv(){let e=(0,r.getEnv)().OTEL_TRACES_EXPORTER;if(e===`none`||e===``)return;let t=this._getSpanExporter(e);return t||n.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};t.BasicTracerProvider=f,f._registeredPropagators=new Map([[`tracecontext`,()=>new r.W3CTraceContextPropagator],[`baggage`,()=>new r.W3CBaggagePropagator]]),f._registeredExporters=new Map})),M3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConsoleSpanExporter=void 0;let t=QR();e.ConsoleSpanExporter=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:e.spanContext().traceState?.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,t.hrTimeToMicroseconds)(e.startTime),duration:(0,t.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,n){for(let t of e)console.dir(this._exportInfo(t),{depth:3});if(n)return n({code:t.ExportResultCode.SUCCESS})}}})),N3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InMemorySpanExporter=void 0;let t=QR();e.InMemorySpanExporter=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,n){if(this._stopped)return n({code:t.ExportResultCode.FAILED,error:Error(`Exporter has been stopped`)});this._finishedSpans.push(...e),setTimeout(()=>n({code:t.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),P3=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SimpleSpanProcessor=void 0;let n=($(),e(Q)),r=QR();t.SimpleSpanProcessor=class{constructor(e){this._exporter=e,this._shutdownOnce=new r.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,t){}onEnd(e){var t;if(this._shutdownOnce.isCalled||(e.spanContext().traceFlags&n.TraceFlags.SAMPLED)===0)return;let i=()=>r.internal._export(this._exporter,[e]).then(e=>{e.code!==r.ExportResultCode.SUCCESS&&(0,r.globalErrorHandler)(e.error??Error(`SimpleSpanProcessor: span export failed (status ${e})`))}).catch(e=>{(0,r.globalErrorHandler)(e)});if(e.resource.asyncAttributesPending){let n=(t=e.resource).waitForAsyncAttributes?.call(t).then(()=>(n!=null&&this._unresolvedExports.delete(n),i()),e=>(0,r.globalErrorHandler)(e));n!=null&&this._unresolvedExports.add(n)}else i()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}})),F3=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Span=e.SamplingDecision=e.TraceIdRatioBasedSampler=e.ParentBasedSampler=e.AlwaysOnSampler=e.AlwaysOffSampler=e.NoopSpanProcessor=e.SimpleSpanProcessor=e.InMemorySpanExporter=e.ConsoleSpanExporter=e.RandomIdGenerator=e.BatchSpanProcessor=e.ForceFlushState=e.BasicTracerProvider=e.Tracer=void 0;var t=$4();Object.defineProperty(e,`Tracer`,{enumerable:!0,get:function(){return t.Tracer}});var n=j3();Object.defineProperty(e,`BasicTracerProvider`,{enumerable:!0,get:function(){return n.BasicTracerProvider}}),Object.defineProperty(e,`ForceFlushState`,{enumerable:!0,get:function(){return n.ForceFlushState}});var r=Q4();Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return r.BatchSpanProcessor}}),Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return r.RandomIdGenerator}});var i=M3();Object.defineProperty(e,`ConsoleSpanExporter`,{enumerable:!0,get:function(){return i.ConsoleSpanExporter}});var a=N3();Object.defineProperty(e,`InMemorySpanExporter`,{enumerable:!0,get:function(){return a.InMemorySpanExporter}});var o=P3();Object.defineProperty(e,`SimpleSpanProcessor`,{enumerable:!0,get:function(){return o.SimpleSpanProcessor}});var s=A3();Object.defineProperty(e,`NoopSpanProcessor`,{enumerable:!0,get:function(){return s.NoopSpanProcessor}});var c=H4();Object.defineProperty(e,`AlwaysOffSampler`,{enumerable:!0,get:function(){return c.AlwaysOffSampler}});var l=U4();Object.defineProperty(e,`AlwaysOnSampler`,{enumerable:!0,get:function(){return l.AlwaysOnSampler}});var u=W4();Object.defineProperty(e,`ParentBasedSampler`,{enumerable:!0,get:function(){return u.ParentBasedSampler}});var d=G4();Object.defineProperty(e,`TraceIdRatioBasedSampler`,{enumerable:!0,get:function(){return d.TraceIdRatioBasedSampler}});var f=V4();Object.defineProperty(e,`SamplingDecision`,{enumerable:!0,get:function(){return f.SamplingDecision}});var p=B4();Object.defineProperty(e,`Span`,{enumerable:!0,get:function(){return p.Span}})})),I3=a(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),L3=a(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),R3=a(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=I3(),a=L3();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),z3=a(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),B3=a(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),V3=a(((e,t)=>{let n=L3(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=I3(),{safeRe:a,t:o}=R3(),s=z3(),{compareIdentifiers:c}=B3();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),H3=a(((e,t)=>{let n=V3();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),U3=a(((e,t)=>{let n=H3();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),W3=a(((e,t)=>{let n=H3();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),G3=a(((e,t)=>{let n=V3();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),K3=a(((e,t)=>{let n=H3();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),q3=a(((e,t)=>{let n=V3();t.exports=(e,t)=>new n(e,t).major})),J3=a(((e,t)=>{let n=V3();t.exports=(e,t)=>new n(e,t).minor})),Y3=a(((e,t)=>{let n=V3();t.exports=(e,t)=>new n(e,t).patch})),X3=a(((e,t)=>{let n=H3();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Z3=a(((e,t)=>{let n=V3();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Q3=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(t,e,r)})),$3=a(((e,t)=>{let n=Z3();t.exports=(e,t)=>n(e,t,!0)})),e6=a(((e,t)=>{let n=V3();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),t6=a(((e,t)=>{let n=e6();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),n6=a(((e,t)=>{let n=e6();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),r6=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(e,t,r)>0})),i6=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(e,t,r)<0})),a6=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(e,t,r)===0})),o6=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(e,t,r)!==0})),s6=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(e,t,r)>=0})),c6=a(((e,t)=>{let n=Z3();t.exports=(e,t,r)=>n(e,t,r)<=0})),l6=a(((e,t)=>{let n=a6(),r=o6(),i=r6(),a=s6(),o=i6(),s=c6();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),u6=a(((e,t)=>{let n=V3(),r=H3(),{safeRe:i,t:a}=R3();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),d6=a(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),f6=a(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,O(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>v(e,this.options)).join(` `).split(/\s+/).map(e=>D(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let _=new Map,y=g.map(e=>new a(e,this.options));for(let e of y){if(h(e))return[e];_.set(e.value,e)}_.size>1&&_.has(``)&&_.delete(``);let b=[..._.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>_(e,n)&&t.set.some(t=>_(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1}};let r=new(d6()),i=z3(),a=p6(),o=L3(),s=V3(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=R3(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=I3(),h=e=>e.value===`<0.0.0-0`,g=e=>e.value===``,_=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=S(e,t),o(`caret`,e),e=b(e,t),o(`tildes`,e),e=w(e,t),o(`xrange`,e),e=E(e,t),o(`stars`,e),e),y=e=>!e||e.toLowerCase()===`x`||e===`*`,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(` `),x=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return y(n)?s=``:y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return y(n)?c=``:y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},w=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>T(e,t)).join(` `)),T=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=y(i),u=l||y(a),d=u||y(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},E=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),D=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),O=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=y(r)?``:y(i)?`>=${r}.0.0${e?`-0`:``}`:y(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=y(l)?``:y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),k=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),p6=a(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=z3(),{safeRe:i,t:a}=R3(),o=l6(),s=L3(),c=V3(),l=f6()})),m6=a(((e,t)=>{let n=f6();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),h6=a(((e,t)=>{let n=f6();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),g6=a(((e,t)=>{let n=V3(),r=f6();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),_6=a(((e,t)=>{let n=V3(),r=f6();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),v6=a(((e,t)=>{let n=V3(),r=f6(),i=r6();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),y6=a(((e,t)=>{let n=f6();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),b6=a(((e,t)=>{let n=V3(),r=p6(),{ANY:i}=r,a=f6(),o=m6(),s=r6(),c=i6(),l=c6(),u=s6();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),x6=a(((e,t)=>{let n=b6();t.exports=(e,t,r)=>n(e,t,`>`,r)})),S6=a(((e,t)=>{let n=b6();t.exports=(e,t,r)=>n(e,t,`<`,r)})),C6=a(((e,t)=>{let n=f6();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),w6=a(((e,t)=>{let n=m6(),r=Z3();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),T6=a(((e,t)=>{let n=f6(),r=p6(),{ANY:i}=r,a=m6(),o=Z3(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),E6=a(((e,t)=>{let n=R3(),r=I3(),i=V3(),a=B3();t.exports={parse:H3(),valid:U3(),clean:W3(),inc:G3(),diff:K3(),major:q3(),minor:J3(),patch:Y3(),prerelease:X3(),compare:Z3(),rcompare:Q3(),compareLoose:$3(),compareBuild:e6(),sort:t6(),rsort:n6(),gt:r6(),lt:i6(),eq:a6(),neq:o6(),gte:s6(),lte:c6(),cmp:l6(),coerce:u6(),Comparator:p6(),Range:f6(),satisfies:m6(),toComparators:h6(),maxSatisfying:g6(),minSatisfying:_6(),minVersion:v6(),validRange:y6(),outside:b6(),gtr:x6(),ltr:S6(),intersects:C6(),simplifyRange:w6(),subset:T6(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),D6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.JaegerPropagator=t.UBER_BAGGAGE_HEADER_PREFIX=t.UBER_TRACE_ID_HEADER=void 0;let n=($(),e(Q)),r=QR();t.UBER_TRACE_ID_HEADER=`uber-trace-id`,t.UBER_BAGGAGE_HEADER_PREFIX=`uberctx`,t.JaegerPropagator=class{constructor(e){typeof e==`string`?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=t.UBER_BAGGAGE_HEADER_PREFIX):(this._jaegerTraceHeader=e?.customTraceHeader||t.UBER_TRACE_ID_HEADER,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||t.UBER_BAGGAGE_HEADER_PREFIX)}inject(e,t,i){let a=n.trace.getSpanContext(e),o=n.propagation.getBaggage(e);if(a&&(0,r.isTracingSuppressed)(e)===!1){let e=`0${(a.traceFlags||n.TraceFlags.NONE).toString(16)}`;i.set(t,this._jaegerTraceHeader,`${a.traceId}:${a.spanId}:0:${e}`)}if(o)for(let[e,n]of o.getAllEntries())i.set(t,`${this._jaegerBaggageHeaderPrefix}-${e}`,encodeURIComponent(n.value))}extract(e,t,r){let i=r.get(t,this._jaegerTraceHeader),o=Array.isArray(i)?i[0]:i,s=r.keys(t).filter(e=>e.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map(e=>{let n=r.get(t,e);return{key:e.substring(this._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(n)?n[0]:n}}),c=e;if(typeof o==`string`){let e=a(o);e&&(c=n.trace.setSpanContext(c,e))}if(s.length===0)return c;let l=n.propagation.getBaggage(e)??n.propagation.createBaggage();for(let e of s)e.value!==void 0&&(l=l.setEntry(e.key,{value:decodeURIComponent(e.value)}));return c=n.propagation.setBaggage(c,l),c}fields(){return[this._jaegerTraceHeader]}};let i=/^[0-9a-f]{1,2}$/i;function a(e){let t=decodeURIComponent(e).split(`:`);if(t.length!==4)return null;let[n,r,,a]=t;return{traceId:n.padStart(32,`0`),spanId:r.padStart(16,`0`),isRemote:!0,traceFlags:i.test(a)?parseInt(a,16)&1:1}}})),O6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UBER_TRACE_ID_HEADER=e.UBER_BAGGAGE_HEADER_PREFIX=e.JaegerPropagator=void 0;var t=D6();Object.defineProperty(e,`JaegerPropagator`,{enumerable:!0,get:function(){return t.JaegerPropagator}}),Object.defineProperty(e,`UBER_BAGGAGE_HEADER_PREFIX`,{enumerable:!0,get:function(){return t.UBER_BAGGAGE_HEADER_PREFIX}}),Object.defineProperty(e,`UBER_TRACE_ID_HEADER`,{enumerable:!0,get:function(){return t.UBER_TRACE_ID_HEADER}})})),k6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NodeTracerProvider=void 0;let t=j4(),n=R4(),r=F3(),i=E6(),a=O6();var o=class extends r.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){e.contextManager===void 0&&(e.contextManager=new(i.gte(process.version,`14.8.0`)?t.AsyncLocalStorageContextManager:t.AsyncHooksContextManager),e.contextManager.enable()),super.register(e)}};e.NodeTracerProvider=o,o._registeredPropagators=new Map([...r.BasicTracerProvider._registeredPropagators,[`b3`,()=>new n.B3Propagator({injectEncoding:n.B3InjectEncoding.SINGLE_HEADER})],[`b3multi`,()=>new n.B3Propagator({injectEncoding:n.B3InjectEncoding.MULTI_HEADER})],[`jaeger`,()=>new a.JaegerPropagator]])})),A6=r(a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Tracer=e.TraceIdRatioBasedSampler=e.Span=e.SimpleSpanProcessor=e.SamplingDecision=e.RandomIdGenerator=e.ParentBasedSampler=e.NoopSpanProcessor=e.InMemorySpanExporter=e.ForceFlushState=e.ConsoleSpanExporter=e.BatchSpanProcessor=e.BasicTracerProvider=e.AlwaysOnSampler=e.AlwaysOffSampler=e.NodeTracerProvider=void 0;var t=k6();Object.defineProperty(e,`NodeTracerProvider`,{enumerable:!0,get:function(){return t.NodeTracerProvider}});var n=F3();Object.defineProperty(e,`AlwaysOffSampler`,{enumerable:!0,get:function(){return n.AlwaysOffSampler}}),Object.defineProperty(e,`AlwaysOnSampler`,{enumerable:!0,get:function(){return n.AlwaysOnSampler}}),Object.defineProperty(e,`BasicTracerProvider`,{enumerable:!0,get:function(){return n.BasicTracerProvider}}),Object.defineProperty(e,`BatchSpanProcessor`,{enumerable:!0,get:function(){return n.BatchSpanProcessor}}),Object.defineProperty(e,`ConsoleSpanExporter`,{enumerable:!0,get:function(){return n.ConsoleSpanExporter}}),Object.defineProperty(e,`ForceFlushState`,{enumerable:!0,get:function(){return n.ForceFlushState}}),Object.defineProperty(e,`InMemorySpanExporter`,{enumerable:!0,get:function(){return n.InMemorySpanExporter}}),Object.defineProperty(e,`NoopSpanProcessor`,{enumerable:!0,get:function(){return n.NoopSpanProcessor}}),Object.defineProperty(e,`ParentBasedSampler`,{enumerable:!0,get:function(){return n.ParentBasedSampler}}),Object.defineProperty(e,`RandomIdGenerator`,{enumerable:!0,get:function(){return n.RandomIdGenerator}}),Object.defineProperty(e,`SamplingDecision`,{enumerable:!0,get:function(){return n.SamplingDecision}}),Object.defineProperty(e,`SimpleSpanProcessor`,{enumerable:!0,get:function(){return n.SimpleSpanProcessor}}),Object.defineProperty(e,`Span`,{enumerable:!0,get:function(){return n.Span}}),Object.defineProperty(e,`TraceIdRatioBasedSampler`,{enumerable:!0,get:function(){return n.TraceIdRatioBasedSampler}}),Object.defineProperty(e,`Tracer`,{enumerable:!0,get:function(){return n.Tracer}})}))(),1);D4(),$();var j6=r(F3(),1),M6=r(QR(),1),N6=class extends j6.ConsoleSpanExporter{export(e,t){for(let t of e)try{let e=t.spanContext(),n={traceId:e.traceId,parentId:t.parentSpanId,name:t.name,id:e.spanId,kind:t.kind,timestamp:(0,M6.hrTimeToTimeStamp)(t.startTime),duration:t.duration,attributes:t.attributes,status:t.status,events:t.events,links:t.links,start_time:t.startTime,end_time:t.endTime,forwardTrace:process.env.SFNEXT_OTEL_ENABLED===`true`};console.info(JSON.stringify(n))}catch{}t({code:M6.ExportResultCode.SUCCESS})}},P6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SeverityNumber=void 0,(function(e){e[e.UNSPECIFIED=0]=`UNSPECIFIED`,e[e.TRACE=1]=`TRACE`,e[e.TRACE2=2]=`TRACE2`,e[e.TRACE3=3]=`TRACE3`,e[e.TRACE4=4]=`TRACE4`,e[e.DEBUG=5]=`DEBUG`,e[e.DEBUG2=6]=`DEBUG2`,e[e.DEBUG3=7]=`DEBUG3`,e[e.DEBUG4=8]=`DEBUG4`,e[e.INFO=9]=`INFO`,e[e.INFO2=10]=`INFO2`,e[e.INFO3=11]=`INFO3`,e[e.INFO4=12]=`INFO4`,e[e.WARN=13]=`WARN`,e[e.WARN2=14]=`WARN2`,e[e.WARN3=15]=`WARN3`,e[e.WARN4=16]=`WARN4`,e[e.ERROR=17]=`ERROR`,e[e.ERROR2=18]=`ERROR2`,e[e.ERROR3=19]=`ERROR3`,e[e.ERROR4=20]=`ERROR4`,e[e.FATAL=21]=`FATAL`,e[e.FATAL2=22]=`FATAL2`,e[e.FATAL3=23]=`FATAL3`,e[e.FATAL4=24]=`FATAL4`})(e.SeverityNumber||={})})),F6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NOOP_LOGGER=e.NoopLogger=void 0;var t=class{emit(e){}};e.NoopLogger=t,e.NOOP_LOGGER=new t})),I6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.API_BACKWARDS_COMPATIBILITY_VERSION=e.makeGetter=e._global=e.GLOBAL_LOGS_API_KEY=void 0,e.GLOBAL_LOGS_API_KEY=Symbol.for(`io.opentelemetry.js.api.logs`),e._global=globalThis;function t(e,t,n){return r=>r===e?t:n}e.makeGetter=t,e.API_BACKWARDS_COMPATIBILITY_VERSION=1})),L6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NOOP_LOGGER_PROVIDER=e.NoopLoggerProvider=void 0;let t=F6();var n=class{getLogger(e,n,r){return new t.NoopLogger}};e.NoopLoggerProvider=n,e.NOOP_LOGGER_PROVIDER=new n})),R6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProxyLogger=void 0;let t=F6();e.ProxyLogger=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):t.NOOP_LOGGER}}})),z6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProxyLoggerProvider=void 0;let t=L6(),n=R6();e.ProxyLoggerProvider=class{getLogger(e,t,r){return this._getDelegateLogger(e,t,r)??new n.ProxyLogger(this,e,t,r)}_getDelegate(){return this._delegate??t.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}}})),B6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LogsAPI=void 0;let t=I6(),n=L6(),r=z6();e.LogsAPI=class e{constructor(){this._proxyLoggerProvider=new r.ProxyLoggerProvider}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return t._global[t.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(t._global[t.GLOBAL_LOGS_API_KEY]=(0,t.makeGetter)(t.API_BACKWARDS_COMPATIBILITY_VERSION,e,n.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return t._global[t.GLOBAL_LOGS_API_KEY]?.call(t._global,t.API_BACKWARDS_COMPATIBILITY_VERSION)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete t._global[t.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new r.ProxyLoggerProvider}}})),V6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.logs=e.NoopLogger=e.NOOP_LOGGER=e.SeverityNumber=void 0;var t=P6();Object.defineProperty(e,`SeverityNumber`,{enumerable:!0,get:function(){return t.SeverityNumber}});var n=F6();Object.defineProperty(e,`NOOP_LOGGER`,{enumerable:!0,get:function(){return n.NOOP_LOGGER}}),Object.defineProperty(e,`NoopLogger`,{enumerable:!0,get:function(){return n.NoopLogger}}),e.logs=B6().LogsAPI.getInstance()})),H6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.disableInstrumentations=e.enableInstrumentations=void 0;function t(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}e.enableInstrumentations=t;function n(e){e.forEach(e=>e.disable())}e.disableInstrumentations=n})),U6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.registerInstrumentations=void 0;let n=($(),e(Q)),r=V6(),i=H6();function a(e){let t=e.tracerProvider||n.trace.getTracerProvider(),a=e.meterProvider||n.metrics.getMeterProvider(),o=e.loggerProvider||r.logs.getLoggerProvider(),s=e.instrumentations?.flat()??[];return(0,i.enableInstrumentations)(s,t,a,o),()=>{(0,i.disableInstrumentations)(s)}}t.registerInstrumentations=a})),W6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.satisfies=void 0;let n=($(),e(Q)),r=/^(?:v)?(?<version>(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*))(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,i=/^(?<op><|>|=|==|<=|>=|~|\^|~>)?\s*(?:v)?(?<version>(?<major>x|X|\*|0|[1-9]\d*)(?:\.(?<minor>x|X|\*|0|[1-9]\d*))?(?:\.(?<patch>x|X|\*|0|[1-9]\d*))?)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<build>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]};function o(e,t,r){if(!s(e))return n.diag.error(`Invalid version: ${e}`),!1;if(!t)return!0;t=t.replace(/([<>=~^]+)\s+/g,`$1`);let i=m(e);if(!i)return!1;let a=[],o=c(i,t,a,r);return o&&!r?.includePrerelease?d(i,a):o}t.satisfies=o;function s(e){return typeof e==`string`&&r.test(e)}function c(e,t,n,r){if(t.includes(`||`)){let i=t.trim().split(`||`);for(let t of i)if(l(e,t,n,r))return!0;return!1}else if(t.includes(` - `))t=te(t,r);else if(t.includes(` `)){let i=t.trim().replace(/\s{2,}/g,` `).split(` `);for(let t of i)if(!l(e,t,n,r))return!1;return!0}return l(e,t,n,r)}function l(e,t,n,r){if(t=f(t,r),t.includes(` `))return c(e,t,n,r);{let r=h(t);return n.push(r),u(e,r)}}function u(e,t){if(t.invalid)return!1;if(!t.version||g(t.version))return!0;let n=b(e.versionSegments||[],t.versionSegments||[]);if(n===0){let r=e.prereleaseSegments||[],i=t.prereleaseSegments||[];n=!r.length&&!i.length?0:!r.length&&i.length?1:r.length&&!i.length?-1:b(r,i)}return a[t.op]?.includes(n)}function d(e,t){return e.prerelease?t.some(t=>t.prerelease&&t.version===e.version):!0}function f(e,t){return e=e.trim(),e=L(e,t),e=I(e),e=R(e,t),e=e.trim(),e}function p(e){return!e||e.toLowerCase()===`x`||e===`*`}function m(e){let t=e.match(r);if(!t){n.diag.error(`Invalid version: ${e}`);return}let i=t.groups.version,a=t.groups.prerelease,o=t.groups.build,s=i.split(`.`),c=a?.split(`.`);return{op:void 0,version:i,versionSegments:s,versionSegmentCount:s.length,prerelease:a,prereleaseSegments:c,prereleaseSegmentCount:c?c.length:0,build:o}}function h(e){if(!e)return{};let t=e.match(i);if(!t)return n.diag.error(`Invalid range: ${e}`),{invalid:!0};let r=t.groups.op,a=t.groups.version,o=t.groups.prerelease,s=t.groups.build,c=a.split(`.`),l=o?.split(`.`);return r===`==`&&(r=`=`),{op:r||`=`,version:a,versionSegments:c,versionSegmentCount:c.length,prerelease:o,prereleaseSegments:l,prereleaseSegmentCount:l?l.length:0,build:s}}function g(e){return e===`*`||e===`x`||e===`X`}function _(e){let t=parseInt(e,10);return isNaN(t)?e:t}function v(e,t){if(typeof e==typeof t){if(typeof e==`number`||typeof e==`string`)return[e,t];throw Error(`Version segments can only be strings or numbers`)}else return[String(e),String(t)]}function y(e,t){if(g(e)||g(t))return 0;let[n,r]=v(_(e),_(t));return n>r?1:n<r?-1:0}function b(e,t){for(let n=0;n<Math.max(e.length,t.length);n++){let r=y(e[n]||`0`,t[n]||`0`);if(r!==0)return r}return 0}let x=`[a-zA-Z0-9-]`,S=`0|[1-9]\\d*`,C=`(?:${S}|${`\\d*[a-zA-Z-]${x}*`})`,w=`(?:-(${C}(?:\\.${C})*))`,T=`${x}+`,E=`(?:\\+(${T}(?:\\.${T})*))`,D=`${S}|x|X|\\*`,O=`[v=\\s]*(${D})(?:\\.(${D})(?:\\.(${D})(?:${w})?${E}?)?)?`,k=`^((?:<|>)?=?)\\s*${O}$`,A=new RegExp(k),j=`^\\s*(${O})\\s+-\\s+(${O})\\s*$`,M=new RegExp(j),N=`^(?:~>?)${O}$`,ee=new RegExp(N),P=`^(?:\\^)${O}$`,F=new RegExp(P);function I(e){let t=ee;return e.replace(t,(e,t,n,r,i)=>{let a;return a=p(t)?``:p(n)?`>=${t}.0.0 <${+t+1}.0.0-0`:p(r)?`>=${t}.${n}.0 <${t}.${+n+1}.0-0`:i?`>=${t}.${n}.${r}-${i} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${r} <${t}.${+n+1}.0-0`,a})}function L(e,t){let n=F,r=t?.includePrerelease?`-0`:``;return e.replace(n,(e,t,n,i,a)=>{let o;return o=p(t)?``:p(n)?`>=${t}.0.0${r} <${+t+1}.0.0-0`:p(i)?t===`0`?`>=${t}.${n}.0${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.0${r} <${+t+1}.0.0-0`:a?t===`0`?n===`0`?`>=${t}.${n}.${i}-${a} <${t}.${n}.${+i+1}-0`:`>=${t}.${n}.${i}-${a} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${i}-${a} <${+t+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${i}${r} <${t}.${n}.${+i+1}-0`:`>=${t}.${n}.${i}${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${i} <${+t+1}.0.0-0`,o})}function R(e,t){let n=A;return e.replace(n,(e,n,r,i,a,o)=>{let s=p(r),c=s||p(i),l=c||p(a),u=l;return n===`=`&&u&&(n=``),o=t?.includePrerelease?`-0`:``,s?e=n===`>`||n===`<`?`<0.0.0-0`:`*`:n&&u?(c&&(i=0),a=0,n===`>`?(n=`>=`,c?(r=+r+1,i=0,a=0):(i=+i+1,a=0)):n===`<=`&&(n=`<`,c?r=+r+1:i=+i+1),n===`<`&&(o=`-0`),e=`${n+r}.${i}.${a}${o}`):c?e=`>=${r}.0.0${o} <${+r+1}.0.0-0`:l&&(e=`>=${r}.${i}.0${o} <${r}.${+i+1}.0-0`),e})}function te(e,t){let n=M;return e.replace(n,(e,n,r,i,a,o,s,c,l,u,d,f)=>(n=p(r)?``:p(i)?`>=${r}.0.0${t?.includePrerelease?`-0`:``}`:p(a)?`>=${r}.${i}.0${t?.includePrerelease?`-0`:``}`:o?`>=${n}`:`>=${n}${t?.includePrerelease?`-0`:``}`,c=p(l)?``:p(u)?`<${+l+1}.0.0-0`:p(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:t?.includePrerelease?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()))}})),G6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.massUnwrap=e.unwrap=e.massWrap=e.wrap=void 0;let t=console.error.bind(console);function n(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}e.wrap=(e,r,i)=>{if(!e||!e[r]){t(`no original function `+String(r)+` to wrap`);return}if(!i){t(`no wrapper function`),t(Error().stack);return}let a=e[r];if(typeof a!=`function`||typeof i!=`function`){t(`original object and wrapper must be functions`);return}let o=i(a,r);return n(o,`__original`,a),n(o,`__unwrap`,()=>{e[r]===o&&n(e,r,a)}),n(o,`__wrapped`,!0),n(e,r,o),o},e.massWrap=(n,r,i)=>{if(n)Array.isArray(n)||(n=[n]);else{t(`must provide one or more modules to patch`),t(Error().stack);return}if(!(r&&Array.isArray(r))){t(`must provide one or more functions to wrap on modules`);return}n.forEach(t=>{r.forEach(n=>{(0,e.wrap)(t,n,i)})})},e.unwrap=(e,n)=>{if(!e||!e[n]){t(`no function to unwrap.`),t(Error().stack);return}let r=e[n];if(!r.__unwrap)t(`no original to unwrap to -- has `+String(n)+` already been unwrapped?`);else{r.__unwrap();return}},e.massUnwrap=(n,r)=>{if(n)Array.isArray(n)||(n=[n]);else{t(`must provide one or more modules to patch`),t(Error().stack);return}if(!(r&&Array.isArray(r))){t(`must provide one or more functions to unwrap on modules`);return}n.forEach(t=>{r.forEach(n=>{(0,e.unwrap)(t,n)})})};function r(e){e&&e.logger&&(typeof e.logger==`function`?t=e.logger:t(`new logger isn't a function, not replacing`))}e.default=r,r.wrap=e.wrap,r.massWrap=e.massWrap,r.unwrap=e.unwrap,r.massUnwrap=e.massUnwrap})),K6=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.InstrumentationAbstract=void 0;let n=($(),e(Q)),r=V6(),i=G6();t.InstrumentationAbstract=class{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,t,i){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(i),this._diag=n.diag.createComponentLogger({namespace:e}),this._tracer=n.trace.getTracer(e,t),this._meter=n.metrics.getMeter(e,t),this._logger=r.logs.getLogger(e,t),this._updateMetricInstruments()}_wrap=i.wrap;_unwrap=i.unwrap;_massWrap=i.massWrap;_massUnwrap=i.massUnwrap;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}}})),q6=a(((e,n)=>{var r=t(`path`).sep;n.exports=function(e){var t=e.split(r),n=t.lastIndexOf(`node_modules`);if(n!==-1&&t[n+1]){for(var i=t[n+1][0]===`@`,a=i?t[n+1]+`/`+t[n+2]:t[n+1],o=i?3:2,s=``,c=n+o-1,l=0;l<=c;l++)l===c?s+=t[l]:s+=t[l]+r;for(var u=``,d=t.length-1,f=n+o;f<=d;f++)f===d?u+=t[f]:u+=t[f]+r;return{name:a,basedir:s,path:u}}}})),J6=a(((e,n)=>{let r=t(`path`),i=t(`module`),a=me()(`require-in-the-middle`),o=q6();n.exports=d,n.exports.Hook=d;let s,c;if(i.isBuiltin)c=i.isBuiltin;else if(i.builtinModules)c=e=>e.startsWith(`node:`)?!0:(s===void 0&&(s=new Set(i.builtinModules)),s.has(e));else throw Error(`'require-in-the-middle' requires Node.js >=v9.3.0 or >=v8.10.0`);let l=/([/\\]index)?(\.js)?$/;var u=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol(`RitmExports`)}has(e,n){if(this._localCache.has(e))return!0;if(n)return!1;{let n=t.cache[e];return!!(n&&this._kRitmExports in n)}}get(e,n){let r=this._localCache.get(e);if(r!==void 0)return r;if(!n){let n=t.cache[e];return n&&n[this._kRitmExports]}}set(e,n,r){r?this._localCache.set(e,n):e in t.cache?t.cache[e][this._kRitmExports]=n:(a(`non-core module is unexpectedly not in require.cache: "%s"`,e),this._localCache.set(e,n))}};function d(e,n,s){if(!(this instanceof d))return new d(e,n,s);if(typeof e==`function`?(s=e,e=null,n=null):typeof n==`function`&&(s=n,n=null),typeof i._resolveFilename!=`function`){console.error(`Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!`,typeof i._resolveFilename),console.error(`Please report this error as an issue related to Node.js %s at https://github.com/nodejs/require-in-the-middle/issues`,process.version);return}this._cache=new u,this._unhooked=!1,this._origRequire=i.prototype.require;let l=this,p=new Set,m=n?n.internals===!0:!1,h=Array.isArray(e);a(`registering require hook`),this._require=i.prototype.require=function(e){return l._unhooked===!0?(a(`ignoring require call - module is soft-unhooked`),l._origRequire.apply(this,arguments)):g.call(this,arguments,!1)},typeof process.getBuiltinModule==`function`&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(e){return l._unhooked===!0?(a(`ignoring process.getBuiltinModule call - module is soft-unhooked`),l._origGetBuiltinModule.apply(this,arguments)):g.call(this,arguments,!0)});function g(n,u){let d=n[0],g=c(d),_;if(g){if(_=d,d.startsWith(`node:`)){let e=d.slice(5);c(e)&&(_=e)}}else if(u)return a(`call to process.getBuiltinModule with unknown built-in id`),l._origGetBuiltinModule.apply(this,n);else try{_=i._resolveFilename(d,this)}catch(e){return a(`Module._resolveFilename("%s") threw %j, calling original Module.require`,d,e.message),l._origRequire.apply(this,n)}let v,y;if(a(`processing %s module require('%s'): %s`,g===!0?`core`:`non-core`,d,_),l._cache.has(_,g)===!0)return a(`returning already patched cached module: %s`,_),l._cache.get(_,g);let b=p.has(_);b===!1&&p.add(_);let x=u?l._origGetBuiltinModule.apply(this,n):l._origRequire.apply(this,n);if(b===!0)return a(`module is in the process of being patched already - ignoring: %s`,_),x;if(p.delete(_),g===!0){if(h===!0&&e.includes(_)===!1)return a(`ignoring core module not on whitelist: %s`,_),x;v=_}else if(h===!0&&e.includes(_)){let e=r.parse(_);v=e.name,y=e.dir}else{let n=o(_);if(n===void 0)return a(`could not parse filename: %s`,_),x;v=n.name,y=n.basedir;let i=f(n);a(`resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)`,v,d,i,y);let s=!1;if(h){if(!d.startsWith(`.`)&&e.includes(d)&&(v=d,s=!0),!e.includes(v)&&!e.includes(i))return x;e.includes(i)&&i!==v&&(v=i,s=!0)}if(!s){let e;try{e=t.resolve(v,{paths:[y]})}catch{return a(`could not resolve module: %s`,v),l._cache.set(_,x,g),x}if(e!==_)if(m===!0)v=v+r.sep+r.relative(y,_),a(`preparing to process require of internal file: %s`,v);else return a(`ignoring require of non-main module file: %s`,e),l._cache.set(_,x,g),x}}l._cache.set(_,x,g),a(`calling require hook: %s`,v);let S=s(x,v,y);return l._cache.set(_,S,g),a(`returning module: %s`,v),S}}d.prototype.unhook=function(){this._unhooked=!0,this._require===i.prototype.require?(i.prototype.require=this._origRequire,a(`require unhook successful`)):a(`require unhook unsuccessful`),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,a(`process.getBuiltinModule unhook successful`)):a(`process.getBuiltinModule unhook unsuccessful`))};function f(e){let t=r.sep===`/`?e.path:e.path.split(r.sep).join(`/`);return r.posix.join(e.name,t).replace(l,``)}})),Y6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleNameTrie=e.ModuleNameSeparator=void 0,e.ModuleNameSeparator=`/`;var t=class{hooks=[];children=new Map};e.ModuleNameTrie=class{_trie=new t;_counter=0;insert(n){let r=this._trie;for(let i of n.moduleName.split(e.ModuleNameSeparator)){let e=r.children.get(i);e||(e=new t,r.children.set(i,e)),r=e}r.hooks.push({hook:n,insertedId:this._counter++})}search(t,{maintainInsertionOrder:n,fullOnly:r}={}){let i=this._trie,a=[],o=!0;for(let n of t.split(e.ModuleNameSeparator)){let e=i.children.get(n);if(!e){o=!1;break}r||a.push(...e.hooks),i=e}return r&&o&&a.push(...i.hooks),a.length===0?[]:a.length===1?[a[0].hook]:(n&&a.sort((e,t)=>e.insertedId-t.insertedId),a.map(({hook:e})=>e))}}})),X6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequireInTheMiddleSingleton=void 0;let n=J6(),r=t(`path`),i=Y6(),a=[`afterEach`,`after`,`beforeEach`,`before`,`describe`,`it`].every(e=>typeof global[e]==`function`);e.RequireInTheMiddleSingleton=class e{_moduleNameTrie=new i.ModuleNameTrie;static _instance;constructor(){this._initialize()}_initialize(){new n.Hook(null,{internals:!0},(e,t,n)=>{let r=o(t),i=this._moduleNameTrie.search(r,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:r}of i)e=r(e,t,n);return e})}register(e,t){let n={moduleName:e,onRequire:t};return this._moduleNameTrie.insert(n),n}static getInstance(){return a?new e:this._instance=this._instance??new e}};function o(e){return r.sep===i.ModuleNameSeparator?e:e.split(r.sep).join(i.ModuleNameSeparator)}})),Z6=a((e=>{let t=[],n=new WeakMap,r=new WeakMap,i=new Map,a=[],o={set(e,t,r){let i=n.get(e),a=i&&i[t];return typeof a==`function`?a(r):!0},get(e,t){if(t===Symbol.toStringTag)return`Module`;let n=r.get(e)[t];if(typeof n==`function`)return n()},defineProperty(e,t,r){if(!(`value`in r))throw Error(`Getters/setters are not supported for exports property descriptors.`);let i=n.get(e),a=i&&i[t];return typeof a==`function`?a(r.value):!0}};function s(e,s,c,l,u){i.set(e,u),n.set(s,c),r.set(s,l);let d=new Proxy(s,o);t.forEach(t=>t(e,d,u)),a.push([e,d,u])}e.register=s,e.importHooks=t,e.specifiers=i,e.toHook=a})),Q6=a(((e,n)=>{let r=t(`path`),i=q6(),{fileURLToPath:a}=t(`url`),{MessageChannel:o}=t(`worker_threads`),{isBuiltin:s}=t(`module`);s||=()=>!0;let{importHooks:c,specifiers:l,toHook:u}=Z6();function d(e){c.push(e),u.forEach(([t,n,r])=>e(t,n,r))}function f(e){let t=c.indexOf(e);t>-1&&c.splice(t,1)}function p(e,t,n,r){let i=e(t,n,r);i&&i!==t&&`default`in t&&(t.default=i)}let m;function h(){let{port1:e,port2:t}=new o,n=0,r;m=t=>{n++,e.postMessage(t)},e.on(`message`,()=>{n--,r&&n<=0&&r()}).unref();function i(){let e=setInterval(()=>{},1e3),t=new Promise(e=>{r=e}).then(()=>{clearInterval(e)});return n===0&&r(),t}let a=t;return{registerOptions:{data:{addHookMessagePort:a,include:[]},transferList:[a]},addHookMessagePort:a,waitForAllMessagesAcknowledged:i}}function g(e,t,n){if(!(this instanceof g))return new g(e,t,n);typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null);let o=t?t.internals===!0:!1;m&&Array.isArray(e)&&m(e),this._iitmHook=(t,c,u)=>{let d=t,f=d.startsWith(`node:`),m,h;if(f){let e=t.slice(5);s(e)&&(t=e)}else if(d.startsWith(`file://`)){let e=Error.stackTraceLimit;Error.stackTraceLimit=0;try{m=a(t),t=m}catch{}if(Error.stackTraceLimit=e,m){let e=i(m);e&&(t=e.name,h=e.basedir)}}if(e)for(let i of e)if(m&&i===m)p(n,c,m,void 0);else if(i===t){if(!h)p(n,c,t,h);else if(h.endsWith(l.get(d)))p(n,c,t,h);else if(o){let e=t+r.sep+r.relative(h,m);p(n,c,e,h)}}else i===u&&p(n,c,u,h);else p(n,c,t,h)},d(this._iitmHook)}g.prototype.unhook=function(){f(this._iitmHook)},n.exports=g,n.exports.Hook=g,n.exports.addHook=d,n.exports.removeHook=f,n.exports.createAddHookMessageChannel=h})),$6=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isWrapped=e.safeExecuteInTheMiddleAsync=e.safeExecuteInTheMiddle=void 0;function t(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}e.safeExecuteInTheMiddle=t;async function n(e,t,n){let r,i;try{i=await e()}catch(e){r=e}finally{if(await t(r,i),r&&!n)throw r;return i}}e.safeExecuteInTheMiddleAsync=n;function r(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}e.isWrapped=r})),e8=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.InstrumentationBase=void 0;let r=t(`path`),i=t(`util`),a=W6(),o=G6(),s=K6(),c=X6(),l=Q6(),u=($(),e(Q)),d=J6(),f=t(`fs`),p=$6();n.InstrumentationBase=class extends s.InstrumentationAbstract{_modules;_hooks=[];_requireInTheMiddleSingleton=c.RequireInTheMiddleSingleton.getInstance();_enabled=!1;constructor(e,t,n){super(e,t,n);let r=this.init();r&&!Array.isArray(r)&&(r=[r]),this._modules=r||[],this._config.enabled&&this.enable()}_wrap=(e,t,n)=>{if((0,p.isWrapped)(e[t])&&this._unwrap(e,t),i.types.isProxy(e)){let r=(0,o.wrap)(Object.assign({},e),t,n);return Object.defineProperty(e,t,{value:r}),r}else return(0,o.wrap)(e,t,n)};_unwrap=(e,t)=>i.types.isProxy(e)?Object.defineProperty(e,t,{value:e[t]}):(0,o.unwrap)(e,t);_massWrap=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{u.diag.error(`must provide one or more modules to patch`);return}if(!(t&&Array.isArray(t))){u.diag.error(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{this._wrap(e,t,n)})})};_massUnwrap=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{u.diag.error(`must provide one or more modules to patch`);return}if(!(t&&Array.isArray(t))){u.diag.error(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{this._unwrap(e,t)})})};_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:n}=e;try{let e=t.resolve(n);t.cache[e]&&this._diag.warn(`Module ${n} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${n}`)}catch{}})}_extractPackageVersion(e){try{let t=(0,f.readFileSync)(r.join(e,`package.json`),{encoding:`utf8`}),n=JSON.parse(t).version;return typeof n==`string`?n:void 0}catch{u.diag.warn(`Failed extracting version`,e)}}_onRequire(e,t,n,i){if(!i)return typeof e.patch==`function`&&(e.moduleExports=t,this._enabled)?(this._diag.debug(`Applying instrumentation patch for nodejs core module on require hook`,{module:e.name}),e.patch(t)):t;let a=this._extractPackageVersion(i);if(e.moduleVersion=a,e.name===n)return m(e.supportedVersions,a,e.includePrerelease)&&typeof e.patch==`function`&&(e.moduleExports=t,this._enabled)?(this._diag.debug(`Applying instrumentation patch for module on require hook`,{module:e.name,version:e.moduleVersion,baseDir:i}),e.patch(t,e.moduleVersion)):t;let o=e.files??[],s=r.normalize(n);return o.filter(t=>t.name===s&&m(t.supportedVersions,a,e.includePrerelease)).reduce((t,n)=>(n.moduleExports=t,this._enabled?(this._diag.debug(`Applying instrumentation patch for nodejs module file on require hook`,{module:e.name,version:e.moduleVersion,fileName:n.name,baseDir:i}),n.patch(t,e.moduleVersion)):t),t)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch==`function`&&e.moduleExports&&(this._diag.debug(`Applying instrumentation patch for nodejs module on instrumentation enabled`,{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let t of e.files)t.moduleExports&&(this._diag.debug(`Applying instrumentation patch for nodejs module file on instrumentation enabled`,{module:e.name,version:e.moduleVersion,fileName:t.name}),t.patch(t.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let t=(t,n,i)=>{if(!i&&r.isAbsolute(n)){let e=r.parse(n);n=e.name,i=e.dir}return this._onRequire(e,t,n,i)},n=(t,n,r)=>this._onRequire(e,t,n,r),i=r.isAbsolute(e.name)?new d.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(i);let a=new l.Hook([e.name],{internals:!0},t);this._hooks.push(a)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch==`function`&&e.moduleExports&&(this._diag.debug(`Removing instrumentation patch for nodejs module on instrumentation disabled`,{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let t of e.files)t.moduleExports&&(this._diag.debug(`Removing instrumentation patch for nodejs module file on instrumentation disabled`,{module:e.name,version:e.moduleVersion,fileName:t.name}),t.unpatch(t.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};function m(e,t,n){return t===void 0?e.includes(`*`):e.some(e=>(0,a.satisfies)(t,e,{includePrerelease:n}))}})),t8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=void 0;var n=t(`path`);Object.defineProperty(e,`normalize`,{enumerable:!0,get:function(){return n.normalize}})})),n8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=e.InstrumentationBase=void 0;var t=e8();Object.defineProperty(e,`InstrumentationBase`,{enumerable:!0,get:function(){return t.InstrumentationBase}});var n=t8();Object.defineProperty(e,`normalize`,{enumerable:!0,get:function(){return n.normalize}})})),r8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.normalize=e.InstrumentationBase=void 0;var t=n8();Object.defineProperty(e,`InstrumentationBase`,{enumerable:!0,get:function(){return t.InstrumentationBase}}),Object.defineProperty(e,`normalize`,{enumerable:!0,get:function(){return t.normalize}})})),i8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstrumentationNodeModuleDefinition=void 0,e.InstrumentationNodeModuleDefinition=class{files;name;supportedVersions;patch;unpatch;constructor(e,t,n,r,i){this.files=i||[],this.name=e,this.supportedVersions=t,this.patch=n,this.unpatch=r}}})),a8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstrumentationNodeModuleFile=void 0;let t=r8();e.InstrumentationNodeModuleFile=class{name;supportedVersions;patch;unpatch;constructor(e,n,r,i){this.name=(0,t.normalize)(e),this.supportedVersions=n,this.patch=r,this.unpatch=i}}})),o8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.semconvStabilityFromStr=e.SemconvStability=void 0;var t;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(t=e.SemconvStability||={});function n(e,n){let r=t.OLD,i=n?.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let n of i??[])if(n.toLowerCase()===e+`/dup`){r=t.DUPLICATE;break}else n.toLowerCase()===e&&(r=t.STABLE);return r}e.semconvStabilityFromStr=n})),s8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.semconvStabilityFromStr=e.SemconvStability=e.safeExecuteInTheMiddleAsync=e.safeExecuteInTheMiddle=e.isWrapped=e.InstrumentationNodeModuleFile=e.InstrumentationNodeModuleDefinition=e.InstrumentationBase=e.registerInstrumentations=void 0;var t=U6();Object.defineProperty(e,`registerInstrumentations`,{enumerable:!0,get:function(){return t.registerInstrumentations}});var n=r8();Object.defineProperty(e,`InstrumentationBase`,{enumerable:!0,get:function(){return n.InstrumentationBase}});var r=i8();Object.defineProperty(e,`InstrumentationNodeModuleDefinition`,{enumerable:!0,get:function(){return r.InstrumentationNodeModuleDefinition}});var i=a8();Object.defineProperty(e,`InstrumentationNodeModuleFile`,{enumerable:!0,get:function(){return i.InstrumentationNodeModuleFile}});var a=$6();Object.defineProperty(e,`isWrapped`,{enumerable:!0,get:function(){return a.isWrapped}}),Object.defineProperty(e,`safeExecuteInTheMiddle`,{enumerable:!0,get:function(){return a.safeExecuteInTheMiddle}}),Object.defineProperty(e,`safeExecuteInTheMiddleAsync`,{enumerable:!0,get:function(){return a.safeExecuteInTheMiddleAsync}});var o=o8();Object.defineProperty(e,`SemconvStability`,{enumerable:!0,get:function(){return o.SemconvStability}}),Object.defineProperty(e,`semconvStabilityFromStr`,{enumerable:!0,get:function(){return o.semconvStabilityFromStr}})})),c8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isTracingSuppressed=t.unsuppressTracing=t.suppressTracing=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function r(e){return e.setValue(n,!0)}t.suppressTracing=r;function i(e){return e.deleteValue(n)}t.unsuppressTracing=i;function a(e){return e.getValue(n)===!0}t.isTracingSuppressed=a})),l8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR=`=`,e.BAGGAGE_PROPERTIES_SEPARATOR=`;`,e.BAGGAGE_ITEMS_SEPARATOR=`,`,e.BAGGAGE_HEADER=`baggage`,e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),u8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.parseKeyPairsIntoRecord=t.parsePairKeyValue=t.getKeyPairs=t.serializeKeyPairs=void 0;let n=($(),e(Q)),r=l8();function i(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:r.BAGGAGE_ITEMS_SEPARATOR}${t}`;return n.length>r.BAGGAGE_MAX_TOTAL_LENGTH?e:n},``)}t.serializeKeyPairs=i;function a(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=r.BAGGAGE_PROPERTIES_SEPARATOR+t.metadata.toString()),n})}t.getKeyPairs=a;function o(e){if(!e)return;let t=e.indexOf(r.BAGGAGE_PROPERTIES_SEPARATOR),i=t===-1?e:e.substring(0,t),a=i.indexOf(r.BAGGAGE_KEY_PAIR_SEPARATOR);if(a<=0)return;let o=i.substring(0,a).trim(),s=i.substring(a+1).trim();if(!o||!s)return;let c,l;try{c=decodeURIComponent(o),l=decodeURIComponent(s)}catch{return}let u;if(t!==-1&&t<e.length-1){let r=e.substring(t+1);u=(0,n.baggageEntryMetadataFromString)(r)}return{key:c,value:l,metadata:u}}t.parsePairKeyValue=o;function s(e){let t={};return typeof e==`string`&&e.length>0&&e.split(r.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=o(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}t.parseKeyPairsIntoRecord=s})),d8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CBaggagePropagator=void 0;let n=($(),e(Q)),r=c8(),i=l8(),a=u8();t.W3CBaggagePropagator=class{inject(e,t,o){let s=n.propagation.getBaggage(e);if(!s||(0,r.isTracingSuppressed)(e))return;let c=(0,a.getKeyPairs)(s).filter(e=>e.length<=i.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,i.BAGGAGE_MAX_NAME_VALUE_PAIRS),l=(0,a.serializeKeyPairs)(c);l.length>0&&o.set(t,i.BAGGAGE_HEADER,l)}extract(e,t,r){let o=r.get(t,i.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(i.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return e;let c={};return s.length===0||(s.split(i.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let t=(0,a.parsePairKeyValue)(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),c[t.key]=e}}),Object.entries(c).length===0)?e:n.propagation.setBaggage(e,n.propagation.createBaggage(c))}fields(){return[i.BAGGAGE_HEADER]}}})),f8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnchoredClock=void 0,e.AnchoredClock=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}})),p8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isAttributeValue=t.isAttributeKey=t.sanitizeAttributes=void 0;let n=($(),e(Q));function r(e){let t={};if(typeof e!=`object`||!e)return t;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(!i(r)){n.diag.warn(`Invalid attribute key: ${r}`);continue}let o=e[r];if(!a(o)){n.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?t[r]=o.slice():t[r]=o}return t}t.sanitizeAttributes=r;function i(e){return typeof e==`string`&&e!==``}t.isAttributeKey=i;function a(e){return e==null?!0:Array.isArray(e)?o(e):s(typeof e)}t.isAttributeValue=a;function o(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(s(e)){t=e;continue}return!1}return!1}}return!0}function s(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}})),m8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.loggingErrorHandler=void 0;let n=($(),e(Q));function r(){return e=>{n.diag.error(i(e))}}t.loggingErrorHandler=r;function i(e){return typeof e==`string`?e:JSON.stringify(a(e))}function a(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}})),h8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;let t=(0,m8().loggingErrorHandler)();function n(e){t=e}e.setGlobalErrorHandler=n;function r(e){try{t(e)}catch{}}e.globalErrorHandler=r})),g8=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getStringListFromEnv=n.getBooleanFromEnv=n.getStringFromEnv=n.getNumberFromEnv=void 0;let r=($(),e(Q)),i=t(`util`);function a(e){let t=process.env[e];if(t==null||t.trim()===``)return;let n=Number(t);if(isNaN(n)){r.diag.warn(`Unknown value ${(0,i.inspect)(t)} for ${e}, expected a number, using defaults`);return}return n}n.getNumberFromEnv=a;function o(e){let t=process.env[e];if(!(t==null||t.trim()===``))return t}n.getStringFromEnv=o;function s(e){let t=process.env[e]?.trim().toLowerCase();return t==null||t===``?!1:t===`true`?!0:(t===`false`||r.diag.warn(`Unknown value ${(0,i.inspect)(t)} for ${e}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}n.getBooleanFromEnv=s;function c(e){return o(e)?.split(`,`).map(e=>e.trim()).filter(e=>e!==``)}n.getStringListFromEnv=c})),_8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e._globalThis=void 0,e._globalThis=globalThis})),v8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION=void 0,e.VERSION=`2.5.1`})),y8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ATTR_PROCESS_RUNTIME_NAME=void 0,e.ATTR_PROCESS_RUNTIME_NAME=`process.runtime.name`})),b8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.SDK_INFO=void 0;let n=v8(),r=(D4(),e(E4)),i=y8();t.SDK_INFO={[r.ATTR_TELEMETRY_SDK_NAME]:`opentelemetry`,[i.ATTR_PROCESS_RUNTIME_NAME]:`node`,[r.ATTR_TELEMETRY_SDK_LANGUAGE]:r.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[r.ATTR_TELEMETRY_SDK_VERSION]:n.VERSION}})),x8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.otperformance=e.SDK_INFO=e._globalThis=e.getStringListFromEnv=e.getNumberFromEnv=e.getBooleanFromEnv=e.getStringFromEnv=void 0;var t=g8();Object.defineProperty(e,`getStringFromEnv`,{enumerable:!0,get:function(){return t.getStringFromEnv}}),Object.defineProperty(e,`getBooleanFromEnv`,{enumerable:!0,get:function(){return t.getBooleanFromEnv}}),Object.defineProperty(e,`getNumberFromEnv`,{enumerable:!0,get:function(){return t.getNumberFromEnv}}),Object.defineProperty(e,`getStringListFromEnv`,{enumerable:!0,get:function(){return t.getStringListFromEnv}});var n=_8();Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return n._globalThis}});var r=b8();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return r.SDK_INFO}}),e.otperformance=performance})),S8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getStringListFromEnv=e.getNumberFromEnv=e.getStringFromEnv=e.getBooleanFromEnv=e.otperformance=e._globalThis=e.SDK_INFO=void 0;var t=x8();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return t.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return t._globalThis}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return t.otperformance}}),Object.defineProperty(e,`getBooleanFromEnv`,{enumerable:!0,get:function(){return t.getBooleanFromEnv}}),Object.defineProperty(e,`getStringFromEnv`,{enumerable:!0,get:function(){return t.getStringFromEnv}}),Object.defineProperty(e,`getNumberFromEnv`,{enumerable:!0,get:function(){return t.getNumberFromEnv}}),Object.defineProperty(e,`getStringListFromEnv`,{enumerable:!0,get:function(){return t.getStringListFromEnv}})})),C8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.addHrTimes=e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=e.getTimeOrigin=e.millisToHrTime=void 0;let t=S8(),n=10**6,r=10**9;function i(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*n)]}e.millisToHrTime=i;function a(){return t.otperformance.timeOrigin}e.getTimeOrigin=a;function o(e){return h(i(t.otperformance.timeOrigin),i(typeof e==`number`?e:t.otperformance.now()))}e.hrTime=o;function s(e){if(p(e))return e;if(typeof e==`number`)return e<t.otperformance.timeOrigin?o(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError(`Invalid input type`)}e.timeInputToHrTime=s;function c(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(--n,i+=r),[n,i]}e.hrTimeDuration=c;function l(e){let t=`${`0`.repeat(9)}${e[1]}Z`,n=t.substring(t.length-9-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,n)}e.hrTimeToTimeStamp=l;function u(e){return e[0]*r+e[1]}e.hrTimeToNanoseconds=u;function d(e){return e[0]*1e3+e[1]/1e6}e.hrTimeToMilliseconds=d;function f(e){return e[0]*1e6+e[1]/1e3}e.hrTimeToMicroseconds=f;function p(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}e.isTimeInputHrTime=p;function m(e){return p(e)||typeof e==`number`||e instanceof Date}e.isTimeInput=m;function h(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=r&&(n[1]-=r,n[0]+=1),n}e.addHrTimes=h})),w8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unrefTimer=void 0;function t(e){typeof e!=`number`&&e.unref()}e.unrefTimer=t})),T8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExportResultCode=void 0,(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(e.ExportResultCode||={})})),E8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CompositePropagator=void 0;let n=($(),e(Q));t.CompositePropagator=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields==`function`?e.fields():[]).reduce((e,t)=>e.concat(t),[])))}inject(e,t,r){for(let i of this._propagators)try{i.inject(e,t,r)}catch(e){n.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,t,r){return this._propagators.reduce((e,i)=>{try{return i.extract(e,t,r)}catch(e){n.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}})),D8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateValue=e.validateKey=void 0;let t=`[_0-9a-z-*/]`,n=`[a-z]${t}{0,255}`,r=`[a-z0-9]${t}{0,240}@[a-z]${t}{0,13}`,i=RegExp(`^(?:${n}|${r})$`),a=/^[ -~]{0,255}[!-~]$/,o=/,|=/;function s(e){return i.test(e)}e.validateKey=s;function c(e){return a.test(e)&&!o.test(e)}e.validateValue=c})),O8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TraceState=void 0;let t=D8();e.TraceState=class e{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+`=`+this.get(t)),e),[]).join(`,`)}_parse(e){e.length>512||(this._internalState=e.split(`,`).reverse().reduce((e,n)=>{let r=n.trim(),i=r.indexOf(`=`);if(i!==-1){let a=r.slice(0,i),o=r.slice(i+1,n.length);(0,t.validateKey)(a)&&(0,t.validateValue)(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}}})),k8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.W3CTraceContextPropagator=t.parseTraceParent=t.TRACE_STATE_HEADER=t.TRACE_PARENT_HEADER=void 0;let n=($(),e(Q)),r=c8(),i=O8();t.TRACE_PARENT_HEADER=`traceparent`,t.TRACE_STATE_HEADER=`tracestate`;let a=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function o(e){let t=a.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}t.parseTraceParent=o,t.W3CTraceContextPropagator=class{inject(e,i,a){let o=n.trace.getSpanContext(e);if(!o||(0,r.isTracingSuppressed)(e)||!(0,n.isSpanContextValid)(o))return;let s=`00-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||n.TraceFlags.NONE).toString(16)}`;a.set(i,t.TRACE_PARENT_HEADER,s),o.traceState&&a.set(i,t.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,a){let s=a.get(r,t.TRACE_PARENT_HEADER);if(!s)return e;let c=Array.isArray(s)?s[0]:s;if(typeof c!=`string`)return e;let l=o(c);if(!l)return e;l.isRemote=!0;let u=a.get(r,t.TRACE_STATE_HEADER);if(u){let e=Array.isArray(u)?u.join(`,`):u;l.traceState=new i.TraceState(typeof e==`string`?e:void 0)}return n.trace.setSpanContext(e,l)}fields(){return[t.TRACE_PARENT_HEADER,t.TRACE_STATE_HEADER]}}})),A8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getRPCMetadata=t.deleteRPCMetadata=t.setRPCMetadata=t.RPCType=void 0;let n=(0,($(),e(Q)).createContextKey)(`OpenTelemetry SDK Context Key RPC_METADATA`);(function(e){e.HTTP=`http`})(t.RPCType||={});function r(e,t){return e.setValue(n,t)}t.setRPCMetadata=r;function i(e){return e.deleteValue(n)}t.deleteRPCMetadata=i;function a(e){return e.getValue(n)}t.getRPCMetadata=a})),j8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPlainObject=void 0;let t=Function.prototype.toString,n=t.call(Object),r=Object.getPrototypeOf,i=Object.prototype,a=i.hasOwnProperty,o=Symbol?Symbol.toStringTag:void 0,s=i.toString;function c(e){if(!l(e)||u(e)!==`[object Object]`)return!1;let i=r(e);if(i===null)return!0;let o=a.call(i,`constructor`)&&i.constructor;return typeof o==`function`&&o instanceof o&&t.call(o)===n}e.isPlainObject=c;function l(e){return typeof e==`object`&&!!e}function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:o&&o in Object(e)?d(e):f(e)}function d(e){let t=a.call(e,o),n=e[o],r=!1;try{e[o]=void 0,r=!0}catch{}let i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}function f(e){return s.call(e)}})),M8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;let t=j8();function n(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=i(t,e.shift(),0,n);return t}e.merge=n;function r(e){return o(e)?e.slice():e}function i(e,t,n=0,d){let f;if(!(n>20)){if(n++,l(e)||l(t)||s(t))f=r(t);else if(o(e)){if(f=e.slice(),o(t))for(let e=0,n=t.length;e<n;e++)f.push(r(t[e]));else if(c(t)){let e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){let i=e[n];f[i]=r(t[i])}}}else if(c(e))if(c(t)){if(!u(e,t))return t;f=Object.assign({},e);let r=Object.keys(t);for(let o=0,s=r.length;o<s;o++){let s=r[o],u=t[s];if(l(u))u===void 0?delete f[s]:f[s]=u;else{let r=f[s],o=u;if(a(e,s,d)||a(t,s,d))delete f[s];else{if(c(r)&&c(o)){let n=d.get(r)||[],i=d.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),d.set(r,n),d.set(o,i)}f[s]=i(f[s],u,n,d)}}}}else f=t;return f}}function a(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function o(e){return Array.isArray(e)}function s(e){return typeof e==`function`}function c(e){return!l(e)&&!o(e)&&!s(e)&&typeof e==`object`}function l(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function u(e,n){return!(!(0,t.isPlainObject)(e)||!(0,t.isPlainObject)(n))}})),N8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callWithTimeout=e.TimeoutError=void 0;var t=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};e.TimeoutError=t;function n(e,n){let r,i=new Promise(function(e,i){r=setTimeout(function(){i(new t(`Operation timed out.`))},n)});return Promise.race([e,i]).then(e=>(clearTimeout(r),e),e=>{throw clearTimeout(r),e})}e.callWithTimeout=n})),P8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isUrlIgnored=e.urlMatches=void 0;function t(e,t){return typeof t==`string`?e===t:!!e.match(t)}e.urlMatches=t;function n(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}e.isUrlIgnored=n})),F8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Deferred=void 0,e.Deferred=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),I8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BindOnceFuture=void 0;let t=F8();e.BindOnceFuture=class{_isCalled=!1;_deferred=new t.Deferred;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}})),L8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.diagLogLevelFromString=void 0;let n=($(),e(Q)),r={ALL:n.DiagLogLevel.ALL,VERBOSE:n.DiagLogLevel.VERBOSE,DEBUG:n.DiagLogLevel.DEBUG,INFO:n.DiagLogLevel.INFO,WARN:n.DiagLogLevel.WARN,ERROR:n.DiagLogLevel.ERROR,NONE:n.DiagLogLevel.NONE};function i(e){return e==null?void 0:r[e.toUpperCase()]??(n.diag.warn(`Unknown log level "${e}", expected one of ${Object.keys(r)}, using default`),n.DiagLogLevel.INFO)}t.diagLogLevelFromString=i})),R8=a((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t._export=void 0;let n=($(),e(Q)),r=c8();function i(e,t){return new Promise(i=>{n.context.with((0,r.suppressTracing)(n.context.active()),()=>{e.export(t,i)})})}t._export=i})),z8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.internal=e.diagLogLevelFromString=e.BindOnceFuture=e.urlMatches=e.isUrlIgnored=e.callWithTimeout=e.TimeoutError=e.merge=e.TraceState=e.unsuppressTracing=e.suppressTracing=e.isTracingSuppressed=e.setRPCMetadata=e.getRPCMetadata=e.deleteRPCMetadata=e.RPCType=e.parseTraceParent=e.W3CTraceContextPropagator=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=e.CompositePropagator=e.otperformance=e.getStringListFromEnv=e.getNumberFromEnv=e.getBooleanFromEnv=e.getStringFromEnv=e._globalThis=e.SDK_INFO=e.parseKeyPairsIntoRecord=e.ExportResultCode=e.unrefTimer=e.timeInputToHrTime=e.millisToHrTime=e.isTimeInputHrTime=e.isTimeInput=e.hrTimeToTimeStamp=e.hrTimeToNanoseconds=e.hrTimeToMilliseconds=e.hrTimeToMicroseconds=e.hrTimeDuration=e.hrTime=e.getTimeOrigin=e.addHrTimes=e.loggingErrorHandler=e.setGlobalErrorHandler=e.globalErrorHandler=e.sanitizeAttributes=e.isAttributeValue=e.AnchoredClock=e.W3CBaggagePropagator=void 0;var t=d8();Object.defineProperty(e,`W3CBaggagePropagator`,{enumerable:!0,get:function(){return t.W3CBaggagePropagator}});var n=f8();Object.defineProperty(e,`AnchoredClock`,{enumerable:!0,get:function(){return n.AnchoredClock}});var r=p8();Object.defineProperty(e,`isAttributeValue`,{enumerable:!0,get:function(){return r.isAttributeValue}}),Object.defineProperty(e,`sanitizeAttributes`,{enumerable:!0,get:function(){return r.sanitizeAttributes}});var i=h8();Object.defineProperty(e,`globalErrorHandler`,{enumerable:!0,get:function(){return i.globalErrorHandler}}),Object.defineProperty(e,`setGlobalErrorHandler`,{enumerable:!0,get:function(){return i.setGlobalErrorHandler}});var a=m8();Object.defineProperty(e,`loggingErrorHandler`,{enumerable:!0,get:function(){return a.loggingErrorHandler}});var o=C8();Object.defineProperty(e,`addHrTimes`,{enumerable:!0,get:function(){return o.addHrTimes}}),Object.defineProperty(e,`getTimeOrigin`,{enumerable:!0,get:function(){return o.getTimeOrigin}}),Object.defineProperty(e,`hrTime`,{enumerable:!0,get:function(){return o.hrTime}}),Object.defineProperty(e,`hrTimeDuration`,{enumerable:!0,get:function(){return o.hrTimeDuration}}),Object.defineProperty(e,`hrTimeToMicroseconds`,{enumerable:!0,get:function(){return o.hrTimeToMicroseconds}}),Object.defineProperty(e,`hrTimeToMilliseconds`,{enumerable:!0,get:function(){return o.hrTimeToMilliseconds}}),Object.defineProperty(e,`hrTimeToNanoseconds`,{enumerable:!0,get:function(){return o.hrTimeToNanoseconds}}),Object.defineProperty(e,`hrTimeToTimeStamp`,{enumerable:!0,get:function(){return o.hrTimeToTimeStamp}}),Object.defineProperty(e,`isTimeInput`,{enumerable:!0,get:function(){return o.isTimeInput}}),Object.defineProperty(e,`isTimeInputHrTime`,{enumerable:!0,get:function(){return o.isTimeInputHrTime}}),Object.defineProperty(e,`millisToHrTime`,{enumerable:!0,get:function(){return o.millisToHrTime}}),Object.defineProperty(e,`timeInputToHrTime`,{enumerable:!0,get:function(){return o.timeInputToHrTime}});var s=w8();Object.defineProperty(e,`unrefTimer`,{enumerable:!0,get:function(){return s.unrefTimer}});var c=T8();Object.defineProperty(e,`ExportResultCode`,{enumerable:!0,get:function(){return c.ExportResultCode}});var l=u8();Object.defineProperty(e,`parseKeyPairsIntoRecord`,{enumerable:!0,get:function(){return l.parseKeyPairsIntoRecord}});var u=S8();Object.defineProperty(e,`SDK_INFO`,{enumerable:!0,get:function(){return u.SDK_INFO}}),Object.defineProperty(e,`_globalThis`,{enumerable:!0,get:function(){return u._globalThis}}),Object.defineProperty(e,`getStringFromEnv`,{enumerable:!0,get:function(){return u.getStringFromEnv}}),Object.defineProperty(e,`getBooleanFromEnv`,{enumerable:!0,get:function(){return u.getBooleanFromEnv}}),Object.defineProperty(e,`getNumberFromEnv`,{enumerable:!0,get:function(){return u.getNumberFromEnv}}),Object.defineProperty(e,`getStringListFromEnv`,{enumerable:!0,get:function(){return u.getStringListFromEnv}}),Object.defineProperty(e,`otperformance`,{enumerable:!0,get:function(){return u.otperformance}});var d=E8();Object.defineProperty(e,`CompositePropagator`,{enumerable:!0,get:function(){return d.CompositePropagator}});var f=k8();Object.defineProperty(e,`TRACE_PARENT_HEADER`,{enumerable:!0,get:function(){return f.TRACE_PARENT_HEADER}}),Object.defineProperty(e,`TRACE_STATE_HEADER`,{enumerable:!0,get:function(){return f.TRACE_STATE_HEADER}}),Object.defineProperty(e,`W3CTraceContextPropagator`,{enumerable:!0,get:function(){return f.W3CTraceContextPropagator}}),Object.defineProperty(e,`parseTraceParent`,{enumerable:!0,get:function(){return f.parseTraceParent}});var p=A8();Object.defineProperty(e,`RPCType`,{enumerable:!0,get:function(){return p.RPCType}}),Object.defineProperty(e,`deleteRPCMetadata`,{enumerable:!0,get:function(){return p.deleteRPCMetadata}}),Object.defineProperty(e,`getRPCMetadata`,{enumerable:!0,get:function(){return p.getRPCMetadata}}),Object.defineProperty(e,`setRPCMetadata`,{enumerable:!0,get:function(){return p.setRPCMetadata}});var m=c8();Object.defineProperty(e,`isTracingSuppressed`,{enumerable:!0,get:function(){return m.isTracingSuppressed}}),Object.defineProperty(e,`suppressTracing`,{enumerable:!0,get:function(){return m.suppressTracing}}),Object.defineProperty(e,`unsuppressTracing`,{enumerable:!0,get:function(){return m.unsuppressTracing}});var h=O8();Object.defineProperty(e,`TraceState`,{enumerable:!0,get:function(){return h.TraceState}});var g=M8();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return g.merge}});var _=N8();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return _.TimeoutError}}),Object.defineProperty(e,`callWithTimeout`,{enumerable:!0,get:function(){return _.callWithTimeout}});var v=P8();Object.defineProperty(e,`isUrlIgnored`,{enumerable:!0,get:function(){return v.isUrlIgnored}}),Object.defineProperty(e,`urlMatches`,{enumerable:!0,get:function(){return v.urlMatches}});var y=I8();Object.defineProperty(e,`BindOnceFuture`,{enumerable:!0,get:function(){return y.BindOnceFuture}});var b=L8();Object.defineProperty(e,`diagLogLevelFromString`,{enumerable:!0,get:function(){return b.diagLogLevelFromString}}),e.internal={_export:R8()._export}})),B8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PACKAGE_NAME=e.PACKAGE_VERSION=void 0,e.PACKAGE_VERSION=`0.23.0`,e.PACKAGE_NAME=`@opentelemetry/instrumentation-undici`})),V8=a((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.UndiciInstrumentation=void 0;let r=t(`diagnostics_channel`),i=t(`url`),a=s8(),o=($(),e(Q)),s=z8(),c=(D4(),e(E4)),l=B8();n.UndiciInstrumentation=class extends a.InstrumentationBase{_recordFromReq=new WeakMap;constructor(e={}){super(l.PACKAGE_NAME,l.PACKAGE_VERSION,e)}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.unsubscribe()),this._channelSubs.length=0}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel(`undici:request:create`,this.onRequestCreated.bind(this)),this.subscribeToChannel(`undici:client:sendHeaders`,this.onRequestHeaders.bind(this)),this.subscribeToChannel(`undici:request:headers`,this.onResponseHeaders.bind(this)),this.subscribeToChannel(`undici:request:trailers`,this.onDone.bind(this)),this.subscribeToChannel(`undici:request:error`,this.onError.bind(this)))}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram(c.METRIC_HTTP_CLIENT_REQUEST_DURATION,{description:`Measures the duration of outbound HTTP requests.`,unit:`s`,valueType:o.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,t){let[n,i]=process.version.replace(`v`,``).split(`.`).map(e=>Number(e)),a=n>18||n===18&&i>=19,o;if(a)r.subscribe?.(e,t),o=()=>r.unsubscribe?.(e,t);else{let n=r.channel(e);n.subscribe(t),o=()=>n.unsubscribe(t)}this._channelSubs.push({name:e,unsubscribe:o})}parseRequestHeaders(e){let t=new Map;if(Array.isArray(e.headers))for(let n=0;n<e.headers.length;n+=2){let r=e.headers[n],i=e.headers[n+1];typeof r==`string`&&t.set(r.toLowerCase(),i)}else if(typeof e.headers==`string`){let n=e.headers.split(`\r
231
+ `);for(let e of n){if(!e)continue;let n=e.indexOf(`:`);if(n===-1)continue;let r=e.substring(0,n).toLowerCase(),i=e.substring(n+1).trim(),a=t.get(r);a&&Array.isArray(a)?a.push(i):a?t.set(r,[a,i]):t.set(r,i)}}return t}onRequestCreated({request:e}){let t=this.getConfig(),n=t.enabled!==!1;if((0,a.safeExecuteInTheMiddle)(()=>!n||e.method===`CONNECT`||t.ignoreRequestHook?.(e),e=>e&&this._diag.error(`caught ignoreRequestHook error: `,e),!0))return;let r=(0,s.hrTime)(),l;try{l=new i.URL(e.path,e.origin)}catch(e){this._diag.warn(`could not determine url.full:`,e);return}let u=l.protocol.replace(`:`,``),d=this.getRequestMethod(e.method),f={[c.ATTR_HTTP_REQUEST_METHOD]:d,[c.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[c.ATTR_URL_FULL]:l.toString(),[c.ATTR_URL_PATH]:l.pathname,[c.ATTR_URL_QUERY]:l.search,[c.ATTR_URL_SCHEME]:u},p={https:`443`,http:`80`},m=l.hostname,h=l.port||p[u];f[c.ATTR_SERVER_ADDRESS]=m,h&&!isNaN(Number(h))&&(f[c.ATTR_SERVER_PORT]=Number(h));let g=this.parseRequestHeaders(e).get(`user-agent`);if(g){let e=Array.isArray(g)?g[g.length-1]:g;f[c.ATTR_USER_AGENT_ORIGINAL]=e}let _=(0,a.safeExecuteInTheMiddle)(()=>t.startSpanHook?.(e),e=>e&&this._diag.error(`caught startSpanHook error: `,e),!0);_&&Object.entries(_).forEach(([e,t])=>{f[e]=t});let v=o.context.active(),y=o.trace.getSpan(v),b;b=t.requireParentforSpans&&(!y||!o.trace.isSpanContextValid(y.spanContext()))?o.trace.wrapSpanContext(o.INVALID_SPAN_CONTEXT):this.tracer.startSpan(d===`_OTHER`?`HTTP`:d,{kind:o.SpanKind.CLIENT,attributes:f},v),(0,a.safeExecuteInTheMiddle)(()=>t.requestHook?.(b,e),e=>e&&this._diag.error(`caught requestHook error: `,e),!0);let x=o.trace.setSpan(o.context.active(),b),S={};o.propagation.inject(x,S);let C=Object.entries(S);for(let t=0;t<C.length;t++){let[n,r]=C[t];typeof e.addHeader==`function`?e.addHeader(n,r):typeof e.headers==`string`?e.headers+=`${n}: ${r}\r\n`:Array.isArray(e.headers)&&e.headers.push(n,r)}this._recordFromReq.set(e,{span:b,attributes:f,startTime:r})}onRequestHeaders({request:e,socket:t}){let n=this._recordFromReq.get(e);if(!n)return;let r=this.getConfig(),{span:i}=n,{remoteAddress:a,remotePort:o}=t,s={[c.ATTR_NETWORK_PEER_ADDRESS]:a,[c.ATTR_NETWORK_PEER_PORT]:o};if(r.headersToSpanAttributes?.requestHeaders){let t=new Set(r.headersToSpanAttributes.requestHeaders.map(e=>e.toLowerCase())),n=this.parseRequestHeaders(e);for(let[e,r]of n.entries())if(t.has(e)){let t=Array.isArray(r)?r:[r];s[`http.request.header.${e}`]=t}}i.setAttributes(s)}onResponseHeaders({request:e,response:t}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:i}=n,s={[c.ATTR_HTTP_RESPONSE_STATUS_CODE]:t.statusCode},l=this.getConfig();if((0,a.safeExecuteInTheMiddle)(()=>l.responseHook?.(r,{request:e,response:t}),e=>e&&this._diag.error(`caught responseHook error: `,e),!0),l.headersToSpanAttributes?.responseHeaders){let e=new Set;l.headersToSpanAttributes?.responseHeaders.forEach(t=>e.add(t.toLowerCase()));for(let n=0;n<t.headers.length;n+=2){let r=t.headers[n].toString().toLowerCase(),i=t.headers[n+1];if(e.has(r)){let e=`http.response.header.${r}`;Object.hasOwn(s,e)?s[e].push(i.toString()):s[e]=[i.toString()]}}}r.setAttributes(s),r.setStatus({code:t.statusCode>=400?o.SpanStatusCode.ERROR:o.SpanStatusCode.UNSET}),n.attributes=Object.assign(i,s)}onDone({request:e}){let t=this._recordFromReq.get(e);if(!t)return;let{span:n,attributes:r,startTime:i}=t;n.end(),this._recordFromReq.delete(e),this.recordRequestDuration(r,i)}onError({request:e,error:t}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:i,startTime:a}=n;r.recordException(t),r.setStatus({code:o.SpanStatusCode.ERROR,message:t.message}),r.end(),this._recordFromReq.delete(e),i[c.ATTR_ERROR_TYPE]=t.message,this.recordRequestDuration(i,a)}recordRequestDuration(e,t){let n={};[c.ATTR_HTTP_RESPONSE_STATUS_CODE,c.ATTR_HTTP_REQUEST_METHOD,c.ATTR_SERVER_ADDRESS,c.ATTR_SERVER_PORT,c.ATTR_URL_SCHEME,c.ATTR_ERROR_TYPE].forEach(t=>{t in e&&(n[t]=e[t])});let r=(0,s.hrTimeToMilliseconds)((0,s.hrTimeDuration)(t,(0,s.hrTime)()))/1e3;this._httpClientDurationHistogram.record(r,n)}getRequestMethod(e){return e.toUpperCase()in{CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0,QUERY:!0}?e.toUpperCase():`_OTHER`}}})),H8=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndiciInstrumentation=void 0;var t=V8();Object.defineProperty(e,`UndiciInstrumentation`,{enumerable:!0,get:function(){return t.UndiciInstrumentation}})})),U8=r(F3(),1),W8=r(QR(),1),G8=r(O3(),1),K8=r(s8(),1),q8=r(H8(),1);const J8=new W8.W3CTraceContextPropagator,Y8=`storefront-next`;let X8=null;const Z8=Symbol.for(`sfnext.otel.undici_registered`);function Q8(){if(X8)return X8;try{let e=new A6.NodeTracerProvider({resource:new G8.Resource({[J0]:Y8}),sampler:new U8.ParentBasedSampler({root:new U8.AlwaysOnSampler})});return e.addSpanProcessor(new U8.SimpleSpanProcessor(new N6)),e.register({propagator:null}),globalThis[Z8]||(globalThis[Z8]=!0,(0,K8.registerInstrumentations)({tracerProvider:e,instrumentations:[new q8.UndiciInstrumentation({requestHook(e,t){try{e.updateName(`sfnext.fetch`)}catch{}try{let n=Db.setSpan(Qy.active(),e);J8.inject(n,t,{set(e,t,n){e.addHeader?.(t,n)}})}catch{}}})]})),X8=e.getTracer(Y8),X8}catch(e){return Ch.error(`[otel] Failed to initialize OpenTelemetry:`,e),null}}$();var $8=r(QR(),1);D4();function e5(){let e=Q8();if(!e)return(e,t,n)=>n();let t=e;return(e,n,r)=>{try{let i=new URL(e.originalUrl||e.url,`http://localhost`).pathname,a=e.method,o=e.headers.traceparent,s=typeof o==`string`?(0,$8.parseTraceParent)(o):null,c=s?Db.setSpanContext(sv,{...s,isRemote:!0}):sv;t.startActiveSpan(`sfnext.request`,{kind:jy.SERVER,attributes:{[Y1]:a,[x2]:i}},c,e=>{try{let e=Db.getSpan(Qy.active())?.spanContext();if(e){let t=e.traceFlags.toString(16).padStart(2,`0`),r=`00-${e.traceId}-${e.spanId}-${t}`;n.setHeader(`traceparent`,r)}}catch{}let o=Qy.active(),s=performance.now(),c=null,l=0,u=!1;function d(){if(!c)try{l=Math.round(performance.now()-s),c=t.startSpan(`sfnext.response_streaming`,{attributes:{[Y1]:a,[x2]:i}},o)}catch{}}let f=n.writeHead.bind(n);n.writeHead=((...e)=>(d(),f(...e)));let p=n.write.bind(n);n.write=((...e)=>(d(),p(...e)));function m(){if(!u){u=!0;try{let t=Math.round(performance.now()-s),r=n.statusCode;c&&(c.setAttribute(`http.streaming_duration_ms`,t-l),c.setAttribute(l0,r),r>=500&&c.setStatus({code:Ny.ERROR}),c.end()),e.setAttribute(l0,r),e.setAttribute(`http.total_duration_ms`,t),r>=500&&e.setStatus({code:Ny.ERROR}),e.end()}catch{}}}n.once(`close`,m),n.once(`finish`,m),r()})}catch{r()}}}const t5=`package.json`,n5=`@salesforce/storefront-next-runtime`,r5=`@salesforce/storefront-next-dev`;function i5(e){if(!f(e))return null;try{return JSON.parse(p(e,`utf8`))}catch(t){return Ch.debug(`Health check: failed to parse package.json at ${e}`,t),null}}function a5(e){let{projectDirectory:t,bundleId:n}=e,r=i5(n===`local`?d(t,t5):d(t,`build`,t5)),i={...r?.dependencies,...r?.devDependencies},a=i?.[r5],o=i?.[n5],s=[a?`Built using ${r5}@${a}.`:null,o?`Running ${n5}@${o}.`:null].filter(Boolean);return(e,t)=>{let i={status:`pass`,version:r?.version,bundleId:n,description:r?.description??`storefront-next-dev server health`,notes:s.length>0?s:void 0};t.status(200).type(`application/health+json`).json(i)}}var o5=r(Bn(),1);const s5=[`.mjs`,`.js`,`.cjs`],c5=[`bld/server/middleware-registry`,`build/server/middleware-registry`].flatMap(e=>s5.map(t=>`${e}${t}`));async function l5(e){let{mode:t,projectDirectory:n=process.cwd(),config:r,vite:i,build:a,streaming:o=!1,enableProxy:s=__[t].enableProxy,enableStaticServing:c=__[t].enableStaticServing,enableCompression:l=__[t].enableCompression,enableLogging:u=__[t].enableLogging,enableAssetUrlPatching:p=__[t].enableAssetUrlPatching}=e;if(t===`development`&&!i)throw Error(`Vite dev server instance is required for development mode`);if((t===`preview`||t===`production`)&&!a)throw Error(`React Router server build is required for preview/production mode`);let h=r??Dp(),g=process.env.BUNDLE_ID??`local`,_=(0,o5.default)();if(_.disable(`x-powered-by`),_.set(`trust proxy`,!0),process.env.SFNEXT_OTEL_ENABLED===`true`&&_.use(e5()),_.get(`/sfdc-health`,a5({projectDirectory:n,bundleId:g})),u&&_.use(m_()),l&&!o&&_.use(Bh()),c&&a){let e=Fm(g);_.use(e,wh(g,n))}let v=null;if(t===`development`){let e=d(n,`src/server/middleware-registry.ts`);f(e)&&(v=await Ep(e,{projectDirectory:n}))}else{let e=c5.map(e=>d(n,e)),t=null;for(let n of e)if(f(n)){t=n;break}t&&(v=await import(m(t).href))}v?.customMiddlewares&&Array.isArray(v.customMiddlewares)&&v.customMiddlewares.forEach(e=>{_.use(e.handler)}),t===`development`&&i&&_.use(i.middlewares),s&&_.use(h.commerce.api.proxy,Im(h));let y=Pm();return y&&_.use((e,t,n)=>{if(e.path.startsWith(`${y}/`)||e.path===y||e.path.startsWith(`/mobify/`))return n();t.redirect(`${y}${e.originalUrl}`)}),_.use(h_()),_.all(`*splat`,await u5(t,g,i,a,p)),_}async function u5(e,t,n,r,i){if(e===`development`&&n){let{isRunnableDevEnvironment:e}=await import(`vite`);return async(t,r,i)=>{try{let a=n.environments.ssr;if(!e(a)){i(Error(`SSR environment is not runnable. Please ensure:
232
232
  1. "@salesforce/storefront-next-dev" plugin is added to vite.config.ts
233
- 2. React Router config uses the Storefront Next preset`));return}await(0,rp.createRequestHandler)({build:await a.runner.import(`virtual:react-router/server-build`),mode:process.env.NODE_ENV})(t,r,i)}catch(e){n.ssrFixStacktrace(e),i(e)}}}else if(r){let e=r;i&&(e=Zg(r,t));let n=process.env.NODE_OPTIONS?.includes(`--enable-source-maps`)?`development`:process.env.NODE_ENV;return(0,rp.createRequestHandler)({build:e,mode:n})}else throw Error(`Invalid server configuration: no vite or build provided`)}let W8=null;const G8=async()=>{let{default:e}=await import(`./server/index.js`);return e},K8=async(e=G8)=>(0,ap.default)({app:await H8({mode:`production`,build:await e(),streaming:!1}),resolutionMode:`CALLBACK`}),q8=async()=>(W8||=await K8(),W8),J8=(e,t,n,r)=>{e.then(e=>{if(!e){r(Error(`Serverless Express handler is not available`));return}e(t,n,r)}).catch(e=>{r(e)})},Y8=(e,t,n)=>{t.callbackWaitsForEmptyEventLoop=!1;let r=lp(e);J8(q8(),r,t,n)};export{K8 as createHandler,Y8 as get,J8 as invokeHandler};
233
+ 2. React Router config uses the Storefront Next preset`));return}await(0,Sp.createRequestHandler)({build:await a.runner.import(`virtual:react-router/server-build`),mode:process.env.NODE_ENV})(t,r,i)}catch(e){n.ssrFixStacktrace(e),i(e)}}}else if(r){let e=r;i&&(e=g_(r,t));let n=process.env.NODE_OPTIONS?.includes(`--enable-source-maps`)?`development`:process.env.NODE_ENV;return(0,Sp.createRequestHandler)({build:e,mode:n})}else throw Error(`Invalid server configuration: no vite or build provided`)}let d5=null;const f5=async()=>{let{default:e}=await import(`./server/index.js`);return e},p5=async(e=f5)=>(0,wp.default)({app:await l5({mode:`production`,build:await e(),streaming:!1}),resolutionMode:`CALLBACK`}),m5=async()=>(d5||=await p5(),d5),h5=(e,t,n,r)=>{e.then(e=>{if(!e){r(Error(`Serverless Express handler is not available`));return}e(t,n,r)}).catch(e=>{r(e)})},g5=(e,t,n)=>{t.callbackWaitsForEmptyEventLoop=!1;let r=Op(e);h5(m5(),r,t,n)};export{p5 as createHandler,g5 as get,h5 as invokeHandler};
234
234
  //# sourceMappingURL=ssr.mjs.map