@zuplo/runtime 6.18.21 → 6.18.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/out/esm/index.js +2 -2
  2. package/package.json +1 -1
package/out/esm/index.js CHANGED
@@ -78,7 +78,7 @@ import{a as f,b as De,e as Re,f as nu,g as Fn,h as jn,i as ru,j as ou}from"./chu
78
78
  </div>
79
79
  </body>
80
80
  </html>
81
- `,"notAvailablePage"),_s=i((n,e)=>{let{sitePathname:t}=e.runtimeSettings.developerPortal,{deploymentName:r,zudokuHostUrl:o}=f.instance,s=i(async(c,l)=>{if(f.instance.isLocalDevelopment)return new Response(Ls("local development"),{headers:{"content-type":"text/html"}});if(f.instance.isWorkingCopy)return new Response(Ls("working copy"),{headers:{"content-type":"text/html"}});if(!r)return E.internalServerError(c,l,{detail:"Unable to retrieve deployment name. Please contact support for assistance."});let d=new URL(c.url),p=new URL(`deployments/${r}${d.pathname}${d.search}`,o);return await H.fetch(p.toString(),{headers:c.headers,method:c.method,body:c.body,redirect:"manual"})},"devPortalRoute"),a=new pe({processors:[he,mt],handler:s,gateway:e}),u=new ce({label:"SYSTEM_API_DOCS_ZUDOKU_ROUTE",methods:["GET","HEAD"],path:`${t}(.*)`,systemRouteName:"zudoku-portal"});n.addRoute(u,a.execute)},"registerZudokuRoute");var Hr=0,$t=class{static{i(this,"CoreLogger")}constructor(e,t,r,o,s){this.#n=t,this.#r=r??"local",this.#o=o,this.#i=s,this.#e(e)}#e=i(e=>{let t=["error","warn","info","debug"],r=!1,o=i(()=>{},"emptyFunction"),s=i((a,u)=>{this.#i.forEach(c=>{c.log(a,u)})},"pushFunction");t.forEach(a=>{this.#t[a]=r?o:s,a==e&&(r=!0)})},"#setupMethods");#t={};#n;#r;#o;#i;log(e,t,r,o,s,a){Hr>=Number.MAX_SAFE_INTEGER&&(Hr=0);let u={logId:crypto.randomUUID(),requestId:r,rayId:o,level:e,logSource:t,messages:s,timestamp:new Date,logOwner:this.#n,loggingId:this.#r,buildId:this.#o,vectorClock:Hr++};this.#t[e](u,a)}};var fe=class extends je{static{i(this,"LogPlugin")}};var fn=class{static{i(this,"LoggingContext")}constructor(e,t,r,o){this.#e=e,this.custom=t,this.originalRequest=r,this.route=o}#e;custom;originalRequest;route;waitUntil=i(e=>{this.#e.waitUntil(e)},"waitUntil")};var Ft=class{static{i(this,"RequestLogger")}constructor(e,t,r,o){this.#t=e,this.#n=t,this.#r=r,this.#o=o}#e="request";#t;#n;#r;#o;debug=i((...e)=>{this.#r.log("debug",this.#e,this.#t,this.#n,e,this.#o)},"debug");info=i((...e)=>{this.#r.log("info",this.#e,this.#t,this.#n,e,this.#o)},"info");log=i((...e)=>{this.#r.log("info",this.#e,this.#t,this.#n,e,this.#o)},"log");warn=i((...e)=>{this.#r.log("warn",this.#e,this.#t,this.#n,e,this.#o)},"warn");error=i((...e)=>{this.#r.log("error",this.#e,this.#t,this.#n,e,this.#o)},"error")};var nc=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError].filter(Boolean).map(n=>[n.name,n]),rc=new Map(nc);var oc=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1}],$r=Symbol(".toJSON was called"),ic=i(n=>{n[$r]=!0;let e=n.toJSON();return delete n[$r],e},"toJSON"),sc=i(n=>rc.get(n)??Error,"getErrorConstructor"),Ns=i(({from:n,seen:e,to:t,forceEnumerable:r,maxDepth:o,depth:s,useToJSON:a,serialize:u})=>{if(!t)if(Array.isArray(n))t=[];else if(!u&&qt(n)){let l=sc(n.name);t=new l}else t={};if(e.push(n),s>=o)return t;if(a&&typeof n.toJSON=="function"&&n[$r]!==!0)return ic(n);let c=i(l=>Ns({from:l,seen:[...e],forceEnumerable:r,maxDepth:o,depth:s,useToJSON:a,serialize:u}),"continueDestroyCircular");for(let[l,d]of Object.entries(n)){if(typeof Buffer=="function"&&Buffer.isBuffer(d)){t[l]="[object Buffer]";continue}if(d!==null&&typeof d=="object"&&typeof d.pipe=="function"){t[l]="[object Stream]";continue}if(typeof d!="function"){if(!d||typeof d!="object"){t[l]=d;continue}if(!e.includes(n[l])){s++,t[l]=c(n[l]);continue}t[l]="[Circular]"}}for(let{property:l,enumerable:d}of oc)typeof n[l]<"u"&&n[l]!==null&&Object.defineProperty(t,l,{value:qt(n[l])?c(n[l]):n[l],enumerable:r?!0:d,configurable:!0,writable:!0});return t},"destroyCircular");function ot(n,e){let t=e?.maxDepth??Number.POSITIVE_INFINITY,r=e?.useToJSON??!0;return typeof n=="object"&&n!==null?Ns({from:n,seen:[],forceEnumerable:!0,maxDepth:t,depth:0,useToJSON:r,serialize:!0}):typeof n=="function"?`[Function: ${n.name??"anonymous"}]`:n}i(ot,"serializeError");var ac=/file:\/\/\/(.*?)\/dist\//g,uc="at async Event.respondWith";function Fr(n){return typeof n!="string"?n:n.split(`
81
+ `,"notAvailablePage"),_s=i((n,e)=>{let{sitePathname:t}=e.runtimeSettings.developerPortal,{deploymentName:r,zudokuHostUrl:o}=f.instance,s=i(async(c,l)=>{if(f.instance.isLocalDevelopment)return new Response(Ls("local development"),{headers:{"content-type":"text/html"}});if(f.instance.isWorkingCopy)return new Response(Ls("working copy"),{headers:{"content-type":"text/html"}});if(!r)return E.internalServerError(c,l,{detail:"Unable to retrieve deployment name. Please contact support for assistance."});let d=new URL(c.url),p=new URL(`deployments/${r}${d.pathname.substring(t.length)}${d.search}`,o);return await H.fetch(p.toString(),{headers:c.headers,method:c.method,body:c.body,redirect:"manual"})},"devPortalRoute"),a=new pe({processors:[he,mt],handler:s,gateway:e}),u=new ce({label:"SYSTEM_API_DOCS_ZUDOKU_ROUTE",methods:["GET","HEAD"],path:`${t}(.*)`,systemRouteName:"zudoku-portal"});n.addRoute(u,a.execute)},"registerZudokuRoute");var Hr=0,$t=class{static{i(this,"CoreLogger")}constructor(e,t,r,o,s){this.#n=t,this.#r=r??"local",this.#o=o,this.#i=s,this.#e(e)}#e=i(e=>{let t=["error","warn","info","debug"],r=!1,o=i(()=>{},"emptyFunction"),s=i((a,u)=>{this.#i.forEach(c=>{c.log(a,u)})},"pushFunction");t.forEach(a=>{this.#t[a]=r?o:s,a==e&&(r=!0)})},"#setupMethods");#t={};#n;#r;#o;#i;log(e,t,r,o,s,a){Hr>=Number.MAX_SAFE_INTEGER&&(Hr=0);let u={logId:crypto.randomUUID(),requestId:r,rayId:o,level:e,logSource:t,messages:s,timestamp:new Date,logOwner:this.#n,loggingId:this.#r,buildId:this.#o,vectorClock:Hr++};this.#t[e](u,a)}};var fe=class extends je{static{i(this,"LogPlugin")}};var fn=class{static{i(this,"LoggingContext")}constructor(e,t,r,o){this.#e=e,this.custom=t,this.originalRequest=r,this.route=o}#e;custom;originalRequest;route;waitUntil=i(e=>{this.#e.waitUntil(e)},"waitUntil")};var Ft=class{static{i(this,"RequestLogger")}constructor(e,t,r,o){this.#t=e,this.#n=t,this.#r=r,this.#o=o}#e="request";#t;#n;#r;#o;debug=i((...e)=>{this.#r.log("debug",this.#e,this.#t,this.#n,e,this.#o)},"debug");info=i((...e)=>{this.#r.log("info",this.#e,this.#t,this.#n,e,this.#o)},"info");log=i((...e)=>{this.#r.log("info",this.#e,this.#t,this.#n,e,this.#o)},"log");warn=i((...e)=>{this.#r.log("warn",this.#e,this.#t,this.#n,e,this.#o)},"warn");error=i((...e)=>{this.#r.log("error",this.#e,this.#t,this.#n,e,this.#o)},"error")};var nc=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError].filter(Boolean).map(n=>[n.name,n]),rc=new Map(nc);var oc=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1}],$r=Symbol(".toJSON was called"),ic=i(n=>{n[$r]=!0;let e=n.toJSON();return delete n[$r],e},"toJSON"),sc=i(n=>rc.get(n)??Error,"getErrorConstructor"),Ns=i(({from:n,seen:e,to:t,forceEnumerable:r,maxDepth:o,depth:s,useToJSON:a,serialize:u})=>{if(!t)if(Array.isArray(n))t=[];else if(!u&&qt(n)){let l=sc(n.name);t=new l}else t={};if(e.push(n),s>=o)return t;if(a&&typeof n.toJSON=="function"&&n[$r]!==!0)return ic(n);let c=i(l=>Ns({from:l,seen:[...e],forceEnumerable:r,maxDepth:o,depth:s,useToJSON:a,serialize:u}),"continueDestroyCircular");for(let[l,d]of Object.entries(n)){if(typeof Buffer=="function"&&Buffer.isBuffer(d)){t[l]="[object Buffer]";continue}if(d!==null&&typeof d=="object"&&typeof d.pipe=="function"){t[l]="[object Stream]";continue}if(typeof d!="function"){if(!d||typeof d!="object"){t[l]=d;continue}if(!e.includes(n[l])){s++,t[l]=c(n[l]);continue}t[l]="[Circular]"}}for(let{property:l,enumerable:d}of oc)typeof n[l]<"u"&&n[l]!==null&&Object.defineProperty(t,l,{value:qt(n[l])?c(n[l]):n[l],enumerable:r?!0:d,configurable:!0,writable:!0});return t},"destroyCircular");function ot(n,e){let t=e?.maxDepth??Number.POSITIVE_INFINITY,r=e?.useToJSON??!0;return typeof n=="object"&&n!==null?Ns({from:n,seen:[],forceEnumerable:!0,maxDepth:t,depth:0,useToJSON:r,serialize:!0}):typeof n=="function"?`[Function: ${n.name??"anonymous"}]`:n}i(ot,"serializeError");var ac=/file:\/\/\/(.*?)\/dist\//g,uc="at async Event.respondWith";function Fr(n){return typeof n!="string"?n:n.split(`
82
82
  `).filter(e=>!e.trim().startsWith("at async file")).map((e,t)=>{let r=e.replaceAll(ac,"").replaceAll(uc,"").trim();return t===0||r.length===0?r:` ${r}`}).filter(e=>e.length>0).join(`
83
83
  `)}i(Fr,"cleanStack");function hn(n,e,t=""){let r=[],o=e?.maxDepth??3;return i(function s(a,u={},c,l){let d=u.indent||" ",p;u.inlineCharacterLimit===void 0?p={newline:`
84
84
  `,newlineOrSpace:`
@@ -104,5 +104,5 @@ Signature verification is impossible without access to the original signed mater
104
104
  `),(h.meters[S]??0)>=N&&C.push(S)}),r&&t.log.debug("QuotaInboundPolicy: debugTable",P),C.length>0)return E.tooManyRequests(e,t,{detail:`Quota exceeded for meters '${C.join(", ")}'`});t.addResponseSendingFinalHook(async(S,N,A)=>{if(r&&A.log.debug(`QuotaInboundPolicy: backend response - ${S.status}: ${S.statusText}`),!s.quotaOnStatusCodes.includes(S.status))return;let F=re.get(A,ii),z={config:{period:s.period,anchorDate:c?.toISOString()??""},increments:F};r&&A.log.debug("QuotaInboundPolicy: setQuotaDetails",z);let Z=p.setQuota(d,z,A.requestId);A.waitUntil(Z)})}catch(s){o.error(s),t.log.error(s)}return e}static setMeters(e,t){let r=re.get(e,ii)??{};Object.assign(r,t),re.set(e,ii,r)}static getUsage(e,t){let r=re.get(e,`${Da}-${t}`);if(r===void 0)throw new k(`QuotaInboundPolicy.getUsage was called for policy named '${t}' but the policy itself has not yet executed.`);return r}static#e(e,t,r){re.set(e,`${Da}-${t}`,r)}};function dd(n,e){let t=i(async s=>({key:`user-1385b4e8-800f-488e-b089-c197544e5801-${s.user?.sub}`,allowances:n.allowances??{}}),"getQuotaDetail"),r=i(async()=>{},"getAnchorDate");if(n.quotaBy==="function"){if(n.identifier===void 0||n.identifier.module===void 0||n.identifier.getQuotaDetailExport===void 0)throw new m(`QuotaInboundPolicy '${e}' - The property 'identifier.module' and 'identifier.getQuotaDetailExport' is required when 'quotaBy' is 'function'`);t=n.identifier.module[n.identifier.getQuotaDetailExport]}if(n.quotaAnchorMode==="function"){if(n.identifier===void 0||n.identifier.module===void 0||n.identifier.getAnchorDateExport===void 0)throw new m(`QuotaInboundPolicy '${e}' - The property 'identifier.module' and 'identifier.getAnchorDateExport' is required when 'quotaAnchorMode' is 'function'`);r=n.identifier.module[n.identifier.getAnchorDateExport]}return{period:n.period,quotaBy:n.quotaBy??"user",quotaAnchorMode:n.quotaAnchorMode??"first-api-call",quotaOnStatusCodes:Be(n.quotaOnStatusCodes??"200-299"),defaultAllowances:Object.assign({},n.allowances),functions:{getQuotaDetail:t,getAnchorDate:r}}}i(dd,"validateAndParseOptions");function pd(n,e){return encodeURIComponent(`${e}-${n}`)}i(pd,"processKey");var Ma=ye("zuplo:policies:RateLimitInboundPolicy"),Ua=i(async(n,e,t,r)=>{let o=Q.getLogger(e),s=i((Z,v)=>{let q={};return(!Z||Z==="retry-after")&&(q[Et]=v.toString()),E.tooManyRequests(n,e,void 0,q)},"rateLimited"),u=await It(r,t)(n,e,r),c=u.key,l=u.requestsAllowed??t.requestsAllowed,d=u.timeWindowMinutes??t.timeWindowMinutes,p=t.headerMode??"retry-after",h=Ye(r,o),C=`rate-limit${f.instance.isTestMode?f.instance.build.BUILD_ID:""}/${r}/${c}`,P=await se(r,void 0,t),S=new oe(P,e),N=h.getCountAndUpdateExpiry(C,d,e.requestId),A;i(async()=>{let Z=await N;if(Z.count>l){let v=Date.now()+Z.ttlSeconds*1e3;S.put(C,v,Z.ttlSeconds),Ma(`RateLimitInboundPolicy '${r}' - returning 429 from redis for '${C}' (async mode)`),A=s(p,Z.ttlSeconds)}},"asyncCheck")();let z=await S.get(C);if(z!==void 0&&z>Date.now()){Ma(`RateLimitInboundPolicy '${r}' - returning 429 from cache for '${C}' (async mode)`);let Z=Math.round((z-Date.now())/1e3);return s(p,Z)}return e.addResponseSendingHook(async Z=>A??Z),n},"AsyncRateLimitInboundPolicyImpl");var qa=ye("zuplo:policies:RateLimitInboundPolicy"),md="strict",Za=i(async(n,e,t,r)=>{if(g("policy.inbound.rate-limit"),(t.mode??md)==="async")return Ua(n,e,t,r);let s=Date.now(),a=Q.getLogger(e),u=i((l,d)=>{if(t.throwOnFailure)throw new K(l,{cause:d});a.error(l,d)},"throwOrLog"),c=i((l,d)=>{let p={};return(!l||l==="retry-after")&&(p[Et]=d.toString()),E.tooManyRequests(n,e,void 0,p)},"rateLimited");try{let d=await It(r,t)(n,e,r),p=d.key,h=d.requestsAllowed??t.requestsAllowed,y=d.timeWindowMinutes??t.timeWindowMinutes,C=t.headerMode??"retry-after",P=Ye(r,a),N=`rate-limit${f.instance.isTestMode||f.instance.isWorkingCopy?f.instance.build.BUILD_ID:""}/${r}/${p}`,A=await P.getCountAndUpdateExpiry(N,y,e.requestId);return A.count>h?(qa(`RateLimitInboundPolicy '${r}' - returning 429 from redis for '${N}' (strict mode)`),c(C,A.ttlSeconds)):n}catch(l){return u(l.message,l),n}finally{let l=Date.now()-s;qa(`RateLimitInboundPolicy '${r}' - latency ${l}ms`)}},"RateLimitInboundPolicy");var ai;function Ha(n){let e=[];for(let[t,r]of n)e.push({name:t,value:r});return e}i(Ha,"headersToNameValuePairs");function gd(n){let e=[];return Object.entries(n).forEach(([t,r])=>{e.push({name:t,value:r})}),e}i(gd,"queryToNameValueParis");function fd(n){if(n===null)return;let e=parseFloat(n);if(!isNaN(e))return e}i(fd,"parseIntOrUndefined");var $a={};async function hd(n,e,t,r){g("policy.inbound.readme-metrics");let o=new Date,s=Date.now();return ai||(ai={name:"zuplo",version:f.instance.build.ZUPLO_VERSION,comment:`zuplo/${f.instance.build.ZUPLO_VERSION}`}),e.addResponseSendingFinalHook(async a=>{try{let u=t.userLabelPropertyPath&&n.user?qe(n.user,t.userLabelPropertyPath,"userLabelPropertyPath"):n.user?.sub,c=t.userEmailPropertyPath&&n.user?qe(n.user,t.userEmailPropertyPath,"userEmailPropertyPath"):void 0,l={clientIPAddress:n.headers.get("true-client-ip")??"",development:t.development!==void 0?t.development:f.instance.isWorkingCopy||f.instance.isLocalDevelopment,group:{label:u,email:c,id:n.user?.sub??"anonymous"},request:{log:{creator:ai,entries:[{startedDateTime:o.toISOString(),time:Date.now()-s,request:{method:n.method,url:t.useFullRequestPath?new URL(n.url).pathname:e.route.path,httpVersion:"2",headers:Ha(n.headers),queryString:gd(n.query)},response:{status:a.status,statusText:a.statusText,headers:Ha(a.headers),content:{size:fd(n.headers.get("content-length"))}}}]}}},d=$a[t.apiKey];if(!d){let p=t.apiKey;d=new Y("readme-metering-inbound-policy",10,async h=>{try{let y=t.url??"https://metrics.readme.io/request",C=await H.fetch(y,{method:"POST",body:JSON.stringify(h),headers:{"content-type":"application/json",authorization:`Basic ${btoa(p+":")}`}});C.status!==202&&e.log.error(`Unexpected response in ReadmeMeteringInboundPolicy '${r}'. ${C.status}: '${await C.text()}'`)}catch(y){throw e.log.error(`Error in ReadmeMeteringInboundPolicy '${r}': '${y.message}'`),y}}),$a[p]=d}d.enqueue(l),e.waitUntil(d.waitUntilFlushed())}catch(u){e.log.error(u)}}),n}i(hd,"ReadmeMetricsInboundPolicy");var yd=i(async(n,e,t,r)=>{g("policy.inbound.remove-headers");let o=t?.headers;if(!o||!Array.isArray(o)||o.length===0)throw new m(`RemoveHeadersInboundPolicy '${r}' options.headers must be a non-empty string array of header names`);let s=new Headers(n.headers);return o.forEach(u=>{s.delete(u)}),new te(n,{headers:s})},"RemoveHeadersInboundPolicy");var bd=i(async(n,e,t,r,o)=>{g("policy.outbound.remove-headers");let s=r?.headers;if(!s||!Array.isArray(s)||s.length===0)throw new m(`RemoveHeadersOutboundPolicy '${o}' options.headers must be a non-empty string array of header names`);let a=new Headers(n.headers);return s.forEach(c=>{a.delete(c)}),new Response(n.body,{headers:a,status:n.status,statusText:n.statusText})},"RemoveHeadersOutboundPolicy");var wd=i(async(n,e,t,r)=>{g("policy.inbound.remove-query-params");let o=t.params;if(!o||!Array.isArray(o)||o.length===0)throw new m(`RemoveQueryParamsInboundPolicy '${r}' options.params must be a non-empty string array of header names`);let s=new URL(n.url);return o.forEach(u=>{s.searchParams.delete(u)}),new te(s.toString(),n)},"RemoveQueryParamsInboundPolicy");var Rd=i(async(n,e,t,r)=>{g("policy.outbound.replace-string");let o=await n.text(),s=r.mode==="regexp"?new RegExp(r.match,"gm"):r.match,a=o.replaceAll(s,r.replaceWith);return new Response(a,{headers:n.headers,status:n.status,statusText:n.statusText})},"ReplaceStringOutboundPolicy");var Fa=i(()=>new Response("Maximum request size exceeded",{status:413,statusText:"Payload Too Large"}),"payloadTooLarge"),Pd=i(async(n,e,t)=>{g("policy.inbound.request-size-limit");let r=t.trustContentLengthHeader??!1;if(["GET","HEAD"].includes(n.method))return n;let o=n.headers.get("content-length"),s=o!==null?parseInt(o):void 0;return s&&!isNaN(s)&&s>t.maxSizeInBytes?Fa():s&&r?n:(await n.clone().text()).length>t.maxSizeInBytes?Fa():n},"RequestSizeLimitInboundPolicy");var St=i(n=>{let e=n.route.raw();return e.parameters?e.parameters:[]},"getParametersForOperation"),At=i((n,e,t,r,o)=>{let s=[],a=!0,u=[];return n.forEach(c=>{let l=c.required||o==="path";if(l&&!e[c.name])a=!1,s.push(`Required ${o} parameter '${c.name}' not found`);else if(!(!l&&!e[c.name])){let d=Fn(t,r,o,c.name),p=ge.instance.schemaValidator[d],h=p(e[c.name]),y=ui(p.errors);h||(a=!1,u.push(`${o} parameter: ${c.name} : ${e[c.name]}`),s.push(`Invalid value for ${o} parameter: '${c.name}' ${y.join(", ")}`))}}),{isValid:a,invalidValues:u,errors:s}},"validateParameters"),Se=i((n,e,t,r,o)=>{r?n.log[e](t,r,o):n.log[e](t,o)},"logErrors"),Ae=i(n=>n==="log-only"||n==="reject-and-log","shouldLog"),ke=i(n=>n==="reject-only"||n==="reject-and-log","shouldReject"),ui=i(n=>n?.map(e=>e.instancePath===void 0||e.instancePath===""?e.message??"Unknown validation error":e.instancePath.replace("/","")+" "+e.message)??["Unknown validation error"],"getErrorsFromValidator");async function ja(n,e,t){if(!t.validateBody||t.validateBody==="none")return;let r;try{r=await e.clone().json()}catch(y){let C=`Error in request body for method : ${e.method} in route: ${n.route.path} with content-type: ${e.headers.get("Content-Type")}`,P=E.badRequest(e,n,{detail:`${C}, see errors property for more details`,errors:`${y}`});if(Ae(t.validateBody)&&Se(n,t.logLevel??"info",C,[r],y),ke(t.validateBody))return P}if(!e.headers.get("Content-Type")){let y=`No content-type header defined in incoming request to ${e.method} in route: ${n.route.path}`,C=E.badRequest(e,n,{detail:y});return Ae(t.validateBody)&&Se(n,t.logLevel??"info",y,[r],[y]),ke(t.validateBody)?C:void 0}let o=e.headers.get("Content-Type"),s=o.indexOf(";");s>-1&&(o=o.substring(0,s));let a=jn(n.route.path,e.method,o),u=ge.instance.schemaValidator[a];if(!u){let y=`No schema defined for method: ${e.method} in route: ${n.route.path} with content-type: ${e.headers.get("Content-Type")}`,C=E.badRequest(e,n,{detail:y});return Ae(t.validateBody)&&Se(n,t.logLevel??"info",y,[r],[y]),ke(t.validateBody)?C:void 0}if(u(r))return;let l=u.errors,d="Request body did not pass validation",p=ui(l),h=E.badRequest(e,n,{detail:`${d}, see errors property for more details`,errors:p});if(Ae(t.validateBody)&&Se(n,t.logLevel??"info",d,[r],p),ke(t.validateBody))return h}i(ja,"handleBodyValidation");function za(n,e,t){if(!t.validateHeaders||t.validateHeaders==="none")return;let r={};e.headers.forEach((a,u)=>{r[u]=a});let o=St(n),s=At(o.filter(a=>a.in==="header"),r,n.route.path,e.method.toLowerCase(),"header");if(!s.isValid){let a="Header validation failed",u=E.badRequest(e,n,{detail:`${a}, see errors property for more details`,errors:s.errors});if(Ae(t.validateHeaders)&&Se(n,t.logLevel??"info",a,s.invalidValues,s.errors),ke(t.validateHeaders))return u}}i(za,"handleHeadersValidation");function Ba(n,e,t){if(!t.validatePathParameters||t.validatePathParameters==="none")return;let r=St(n),o=At(r.filter(s=>s.in==="path"),e.params,n.route.path,e.method.toLowerCase(),"path");if(!o.isValid){let s="Path parameters validation failed",a=E.badRequest(e,n,{detail:`${s}, see errors property for more details`,errors:o.errors});if(Ae(t.validatePathParameters)&&Se(n,t.logLevel??"info",s,o.invalidValues,o.errors),ke(t.validatePathParameters))return a}}i(Ba,"handlePathParameterValidation");function Ga(n,e,t){if(!t.validateQueryParameters||t.validateQueryParameters==="none")return;let r=St(n),o=At(r.filter(s=>s.in==="query"),e.query,n.route.path,e.method.toLowerCase(),"query");if(!o.isValid){let s="Query parameters validation failed",a=E.badRequest(e,n,{detail:`${s}, see errors property for more details`,errors:o.errors});if(Ae(t.validateQueryParameters)&&Se(n,t.logLevel??"info",s,o.invalidValues,o.errors),ke(t.validateQueryParameters))return a}}i(Ga,"handleQueryParameterValidation");var Va=i(async(n,e,t)=>{g("policy.inbound.request-validation");let r=Ga(e,n,t);if(r!==void 0||(r=Ba(e,n,t),r!==void 0)||(r=za(e,n,t),r!==void 0))return r;let o=await ja(e,n,t);return o!==void 0?o:n},"RequestValidationInboundPolicy"),Id=Va;var Ed=i(async(n,e,t,r)=>{if(g("policy.inbound.require-origin"),t.origins===void 0||t.origins.length===0)throw new m(`RequireOriginInboundPolicy '${r}' configuration error - no allowed origins specified`);let o=typeof t.origins=="string"?t.origins.split(","):t.origins;o=o.map(a=>a.trim());let s=n.headers.get("origin");if(!s||!o.includes(s)){let a=t.failureDetail??"Forbidden";return E.forbidden(n,e,{detail:a})}return n},"RequireOriginInboundPolicy");var xd=i(async(n,e,t)=>(g("policy.inbound.set-body"),new te(n,{body:t.body})),"SetBodyInboundPolicy");var Td=i(async(n,e,t,r)=>{g("policy.inbound.set-headers");let o=t.headers;if(!o||!Array.isArray(o)||o.length==0)throw new m(`SetHeadersInboundPolicy '${r}' options.headers must be a valid array of { name, value }`);let s=new Headers(n.headers);return o.forEach(u=>{if(!u.name||u.name.length===0)throw new m(`SetHeadersInboundPolicy '${r}' each option.headers[] entry must have a name property`);let c=u.overwrite===void 0?!0:u.overwrite;(!s.has(u.name)||c)&&s.set(u.name,u.value)}),new te(n,{headers:s})},"SetHeadersInboundPolicy");var vd=i(async(n,e,t,r,o)=>{g("policy.outbound.set-headers");let s=r.headers;if(!s||!Array.isArray(s)||s.length==0)throw new m(`SetHeadersOutboundPolicy '${o}' options.headers must be a valid array of { name, value }`);let a=new Headers(n.headers);return s.forEach(c=>{if(!c.name||c.name.length===0)throw new m(`SetHeadersOutboundPolicy '${o}' each option.headers[] entry must have a name property`);let l=c.overwrite===void 0?!0:c.overwrite;(!a.has(c.name)||l)&&a.set(c.name,c.value)}),new Response(n.body,{headers:a,status:n.status,statusText:n.statusText})},"SetHeadersOutboundPolicy");var Cd=i(async(n,e,t,r)=>{g("policy.inbound.set-query-params");let o=t.params;if(!o||!Array.isArray(o)||o.length==0)throw new m(`SetQueryParamsInboundPolicy '${r}' options.params must be a valid array of { name, value }`);let s=new URL(n.url);return o.forEach(u=>{if(!u.name||u.name.length===0)throw new m(`SetQueryParamsInboundPolicy '${r}' each option.params[] entry must have a name property`);let c=u.overwrite===void 0?!0:u.overwrite;(!s.searchParams.has(u.name)||c)&&s.searchParams.set(u.name,u.value)}),new te(s.toString(),n)},"SetQueryParamsInboundPolicy");var Od=i(async(n,e,t,r,o)=>{if(g("policy.outbound.set-status"),!r.status||isNaN(r.status)||r.status<100||r.status>599)throw new m(`Invalid SetStatusOutboundPolicy '${o}' - status must be a valid number between 100 and 599, not '${r.status}'`);return new Response(n.body,{headers:n.headers,status:r.status,statusText:r.statusText??n.statusText})},"SetStatusOutboundPolicy");var Sd=i(async n=>new Promise(t=>{setTimeout(t,n)}),"sleep"),Ad=i(async(n,e,t,r)=>{if(g("policy.inbound.sleep"),!t||t.sleepInMs===void 0||isNaN(t.sleepInMs))throw new m(`SleepInboundPolicy '${r} must have a valid options.sleepInMs value`);return await Sd(t.sleepInMs),n},"SleepInboundPolicy");var kd=i(async(n,e,t,r)=>{g("policy.inbound.supabase-jwt-auth"),W(t,r).required("secret","string").optional("allowUnauthenticatedRequests","boolean").optional("requiredClaims","object");let o={secret:t.secret,allowUnauthenticatedRequests:t.allowUnauthenticatedRequests??!1},s=await we(n,e,o,r);if(s instanceof Response)return s;if(!(s instanceof te))throw new K("Invalid State - SupabaseJwtInboundPolicy encountered a non-response that wasn't a ZuploRequest type')");let a=t.requiredClaims;if(!a)return s;let u=n.user?.data.app_metadata;if(!u)throw new k(`SupabaseJwtInboundPolicy policy '${r}' - has requiredClaims but the JWT token had no app_metadata property`);let c=Object.keys(a),l=[];return c.forEach(d=>{let p=a[d];Array.isArray(p)?p.includes(u[d])||l.push(d):p!==u[d]&&l.push(d)}),l.length>0?E.unauthorized(n,e,{detail:`Invalid JWT token - missing valid claims ${l.join(", ")}`}):s},"SupabaseJwtInboundPolicy");var Ld=i(async(n,e,t,r)=>{g("policy.inbound.upstream-azure-ad-service-auth"),W(t,r).required("activeDirectoryTenantId","string").required("activeDirectoryClientId","string").required("activeDirectoryClientSecret","string").optional("tokenRetries","number").optional("expirationOffsetSeconds","number");let o=await se(r,void 0,t),s=new oe(o,e),a=await s.get(r);if(!a){let u=await _d(t,e);s.put(r,u.access_token,u.expires_in-(t.expirationOffsetSeconds??300)),a=u.access_token}return n.headers.set("Authorization",`Bearer ${a}`),n},"UpstreamAzureAdServiceAuthInboundPolicy");async function _d(n,e){let t=new URLSearchParams({client_id:n.activeDirectoryClientId,scope:`${n.activeDirectoryClientId}/.default`,client_secret:n.activeDirectoryClientSecret,grant_type:"client_credentials"}),r=await be({retries:n.tokenRetries??3,retryDelayMs:10},`https://login.microsoftonline.com/${n.activeDirectoryTenantId}/oauth2/v2.0/token`,{headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST",body:t});if(r.status!==200){try{let s=await r.text();e.log.error("Could not get token from Azure AD",s)}catch{}throw new k("Could not get token from Azure AD")}let o=await r.json();if(o&&typeof o=="object"&&"access_token"in o&&typeof o.access_token=="string"&&"expires_in"in o&&typeof o.expires_in=="number")return{access_token:o.access_token,expires_in:o.expires_in};throw new k("Response returned from Azure AD is not in the expected format.")}i(_d,"getAccessToken");var Wa="https://accounts.google.com/o/oauth2/token",ci,Nd=i(async(n,e,t,r)=>{g("policy.inbound.upstream-firebase-admin-auth"),W(t,r).required("serviceAccountJson","string"),ci||(ci=await xe.init(t.serviceAccountJson));let o={scope:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/firebase.database","https://www.googleapis.com/auth/firebase.messaging","https://www.googleapis.com/auth/identitytoolkit","https://www.googleapis.com/auth/userinfo.email"].join(" ")},s=await se(r,void 0,t),a=new oe(s,e),u=await a.get(r);if(!u){let c=await _e({serviceAccount:ci,audience:Wa,payload:o}),l=await yn(Wa,c,{retries:t.tokenRetries??3,retryDelayMs:10});if(!l.access_token)throw new k("Invalid OAuth response from Firebase");u=l.access_token,a.put(r,u,(l.expires_in??3600)-(t.expirationOffsetSeconds??300))}return n.headers.set("Authorization",`Bearer ${u}`),n},"UpstreamFirebaseAdminAuthInboundPolicy");var Dd="https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit",Md=["acr","amr","at_hash","aud","auth_time","azp","cnf","c_hash","exp","iat","iss","jti","nbf","nonce"],li,Ud=i(async(n,e,t,r)=>{if(g("policy.inbound.upstream-firebase-user-auth"),W(t,r).required("serviceAccountJson","string").required("webApiKey","string").optional("developerClaims","object").optional("userId","string").optional("userIdPropertyPath","string"),!t.userId&&!t.userIdPropertyPath)throw new m(`Either 'userId' or 'userIdPropertyPath' options must be set on policy '${r}'.`);let o={};if(typeof t.developerClaims<"u"){for(let p in t.developerClaims)if(Object.prototype.hasOwnProperty.call(t.developerClaims,p)){if(Md.indexOf(p)!==-1)throw new m(`Developer claim "${p}" is reserved and cannot be specified.`);o[p]=t.developerClaims[p]}}li||(li=await xe.init(t.serviceAccountJson));let s=t.userId;if(!s&&!t.userIdPropertyPath){if(!n.user)throw new k("Unable to set userId for upstream auth policy as request.user is 'undefined'. Do you have an authentication policy before this policy?.");s=n.user?.sub}else if(t.userIdPropertyPath){if(!n.user)throw new k(`Unable to apply userIdPropertyPath '${t.userIdPropertyPath}' as request.user is 'undefined'. Do you have an authentication policy before this policy?`);s=qe(n.user,t.userIdPropertyPath,"userIdPropertyPath")}if(!s)throw new k(`Unable to determine user from for the policy ${r}`);let a=await se(r,void 0,t),u=new oe(a,e),c={uid:s,claims:o},l=await st(JSON.stringify(c)),d=await u.get(l);if(!d){let p=await _e({serviceAccount:li,audience:Dd,payload:c}),h=`https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken?key=${t.webApiKey}`,y=await Zs(h,p,{retries:t.tokenRetries??3,retryDelayMs:10});if(!y.idToken)throw new k("Invalid token response from Firebase");d=y.idToken,u.put(l,d,(y.expiresIn?parseInt(y.expiresIn):3600)-(t.expirationOffsetSeconds??300))}return n.headers.set("Authorization",`Bearer ${d}`),n},"UpstreamFirebaseUserAuthInboundPolicy");var Yt=class{static{i(this,"ZuploServices")}static async getIDToken(e,t){let r=new oe("0c13603a-a19f-4f03-a04a-50aa393f7ffa-zuplo-tokens",e),o=await se("zuplo-token",void 0,t),s=await r.get(o);if(s)return s;let{authClientId:a,authClientSecret:u,developerApiUrl:c,zuploClientAuthBucketId:l}=f.instance;if(!a||!u)throw new k("Zuplo service authentication is not enabled for this deployment. Contact support assistance.");let d=await Un({tokenEndpointUrl:`${c}/v1/client-auth/${l}/oauth/token`,clientId:a,clientSecret:u,audience:t?.audience},e);return r.put(o,d.access_token,d.expires_in-300),d.access_token}};var Ja="service-account-id-token",di=class extends ue{static{i(this,"UpstreamGcpFederatedAuthInboundPolicy")}cacheName;normalizedWorkloadIdentityProvider;constructor(e,t){super(e,t),g("policy.inbound.upstream-gcp-federated-auth"),W(e,t).required("audience","string").required("serviceAccountEmail","string").required("workloadIdentityProvider","string").optional("tokenRetries","number").optional("expirationOffsetSeconds","number").optional("useMemoryCacheOnly","boolean").optional("tokenLifetime","number"),e.workloadIdentityProvider.startsWith("https://iam.googleapis.com/")?this.normalizedWorkloadIdentityProvider=e.workloadIdentityProvider.replace("https://iam.googleapis.com/",""):this.normalizedWorkloadIdentityProvider=e.workloadIdentityProvider}async handler(e,t){this.cacheName||(this.cacheName=await se(this.policyName,void 0,this.options));let r;this.options.useMemoryCacheOnly?r=new Fe(this.cacheName):r=new oe(this.cacheName,t);let o=await r.get(Ja);if(!o){let s=`https://iam.googleapis.com/${this.normalizedWorkloadIdentityProvider}`,a=await Yt.getIDToken(t,{audience:s}),u=await Us(this.normalizedWorkloadIdentityProvider,a,{retries:this.options.tokenRetries??3,retryDelayMs:10});if(!u.access_token||!u.expires_in)throw new k("Invalid token response from GCP");let c=u.access_token,l=await qs({serviceAccountEmailOrIdentifier:this.options.serviceAccountEmail,audience:this.options.audience,accessToken:c},{retries:this.options.tokenRetries??3,retryDelayMs:10});if(!l.token)throw new k("Invalid token response from GCP");o=l.token,r.put(Ja,c,3600-(this.options.expirationOffsetSeconds??300))}return e.headers.set("Authorization",`Bearer ${o}`),e}};var pi,qd=i(async(n,e,t,r)=>{g("policy.inbound.upstream-gcp-jwt"),W(t,r).required("audience","string").required("serviceAccountJson","string"),pi||(pi=await xe.init(t.serviceAccountJson));let o=await _e({serviceAccount:pi,audience:t.audience});return n.headers.set("Authorization",`Bearer ${o}`),n},"UpstreamGcpJwtInboundPolicy");var Ka="https://www.googleapis.com/oauth2/v4/token",mi,Zd=i(async(n,e,t,r)=>{g("policy.inbound.upstream-gcp-service-auth"),W(t,r).required("serviceAccountJson","string").optional("audience","string").optional("tokenRetries","number").optional("expirationOffsetSeconds","number"),mi||(mi=await xe.init(t.serviceAccountJson));let o={};if(t.scopes&&t.audience)throw new m("UpstreamGcpServiceAuthInboundPolicy - Either the 'scopes' or the 'audience' property can be set, not both.");if(t.scopes)try{let c=rt(t.scopes);o.scope=c.join(" ")}catch(c){throw c instanceof m?new m(`UpstreamGcpServiceAuthInboundPolicy - The property 'scopes' is invalid. ${c.message}`):c}t.audience&&(o.target_audience=`${t.audience}`);let s=await se(r,void 0,t),a;t.useMemoryCacheOnly?a=new Fe(s):a=new oe(s,e);let u=await a.get(r);if(!u){let c=await _e({serviceAccount:mi,audience:Ka,payload:o}),l=await yn(Ka,c,{retries:t.tokenRetries??3,retryDelayMs:10});if(t.audience){if(!l.id_token)throw new k("Invalid token response from GCP");u=l.id_token}else{if(!l.access_token)throw new k("Invalid token response from GCP");u=l.access_token}a.put(r,u,3600-(t.expirationOffsetSeconds??300))}return n.headers.set("Authorization",`Bearer ${u}`),n},"UpstreamGcpServiceAuthInboundPolicy");var Hd=i(async(n,e,t)=>{g("policy.inbound.validate-json-schema");let r=n.clone(),o;try{o=await r.json()}catch{return E.badRequest(n,e,{detail:"Invalid JSON body - expected well-formed JSON document"})}if(t.validator.default(o))return n;let{errors:a}=t.validator.default;if(!a)throw new K("Invalid state - validator error object is undefined even though validation failed.");let u=a.map(c=>c.instancePath===void 0||c.instancePath===""?"Body "+c.message:c.instancePath.replace("/","")+" "+c.message);return E.badRequest(n,e,{detail:"Incoming body did not pass schema validation",errors:u})},"ValidateJsonSchemaInbound");var Qa=i(n=>{var e=Object.defineProperty,t=Object.getOwnPropertyNames,r=i((P,S)=>e(P,"name",{value:S,configurable:!0}),"__name"),o=i((P,S)=>i(function(){return S||(0,P[t(P)[0]])((S={exports:{}}).exports,S),S.exports},"__require"),"__commonJS"),s=o({"node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(P){var S={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:i(function(A,F){return F},"tagValueProcessor"),attributeValueProcessor:i(function(A,F){return F},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(A,F,z){return A},"updateTag")},N=r(function(A){return Object.assign({},S,A)},"buildOptions");P.buildOptions=N,P.defaultOptions=S}}),a=o({"node_modules/fast-xml-parser/src/util.js"(P){"use strict";var S=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",N=S+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",A="["+S+"]["+N+"]*",F=new RegExp("^"+A+"$"),z=r(function(v,q){let V=[],j=q.exec(v);for(;j;){let x=[];x.startIndex=q.lastIndex-j[0].length;let I=j.length;for(let M=0;M<I;M++)x.push(j[M]);V.push(x),j=q.exec(v)}return V},"getAllMatches"),Z=r(function(v){let q=F.exec(v);return!(q===null||typeof q>"u")},"isName");P.isExist=function(v){return typeof v<"u"},P.isEmptyObject=function(v){return Object.keys(v).length===0},P.merge=function(v,q,V){if(q){let j=Object.keys(q),x=j.length;for(let I=0;I<x;I++)V==="strict"?v[j[I]]=[q[j[I]]]:v[j[I]]=q[j[I]]}},P.getValue=function(v){return P.isExist(v)?v:""},P.isName=Z,P.getAllMatches=z,P.nameRegexp=A}}),u=o({"node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(P,S){"use strict";var N=class{static{i(this,"XmlNode")}static{r(this,"XmlNode")}constructor(A){this.tagname=A,this.child=[],this[":@"]={}}add(A,F){A==="__proto__"&&(A="#__proto__"),this.child.push({[A]:F})}addChild(A){A.tagname==="__proto__"&&(A.tagname="#__proto__"),A[":@"]&&Object.keys(A[":@"]).length>0?this.child.push({[A.tagname]:A.child,":@":A[":@"]}):this.child.push({[A.tagname]:A.child})}};S.exports=N}}),c=o({"node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(P,S){var N=a();function A(x,I){let M={};if(x[I+3]==="O"&&x[I+4]==="C"&&x[I+5]==="T"&&x[I+6]==="Y"&&x[I+7]==="P"&&x[I+8]==="E"){I=I+9;let le=1,J=!1,X=!1,ve="";for(;I<x.length;I++)if(x[I]==="<"&&!X){if(J&&Z(x,I))I+=7,[entityName,val,I]=F(x,I+1),val.indexOf("&")===-1&&(M[j(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(J&&v(x,I))I+=8;else if(J&&q(x,I))I+=8;else if(J&&V(x,I))I+=9;else if(z)X=!0;else throw new Error("Invalid DOCTYPE");le++,ve=""}else if(x[I]===">"){if(X?x[I-1]==="-"&&x[I-2]==="-"&&(X=!1,le--):le--,le===0)break}else x[I]==="["?J=!0:ve+=x[I];if(le!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:M,i:I}}i(A,"readDocType"),r(A,"readDocType");function F(x,I){let M="";for(;I<x.length&&x[I]!=="'"&&x[I]!=='"';I++)M+=x[I];if(M=M.trim(),M.indexOf(" ")!==-1)throw new Error("External entites are not supported");let le=x[I++],J="";for(;I<x.length&&x[I]!==le;I++)J+=x[I];return[M,J,I]}i(F,"readEntityExp"),r(F,"readEntityExp");function z(x,I){return x[I+1]==="!"&&x[I+2]==="-"&&x[I+3]==="-"}i(z,"isComment"),r(z,"isComment");function Z(x,I){return x[I+1]==="!"&&x[I+2]==="E"&&x[I+3]==="N"&&x[I+4]==="T"&&x[I+5]==="I"&&x[I+6]==="T"&&x[I+7]==="Y"}i(Z,"isEntity"),r(Z,"isEntity");function v(x,I){return x[I+1]==="!"&&x[I+2]==="E"&&x[I+3]==="L"&&x[I+4]==="E"&&x[I+5]==="M"&&x[I+6]==="E"&&x[I+7]==="N"&&x[I+8]==="T"}i(v,"isElement"),r(v,"isElement");function q(x,I){return x[I+1]==="!"&&x[I+2]==="A"&&x[I+3]==="T"&&x[I+4]==="T"&&x[I+5]==="L"&&x[I+6]==="I"&&x[I+7]==="S"&&x[I+8]==="T"}i(q,"isAttlist"),r(q,"isAttlist");function V(x,I){return x[I+1]==="!"&&x[I+2]==="N"&&x[I+3]==="O"&&x[I+4]==="T"&&x[I+5]==="A"&&x[I+6]==="T"&&x[I+7]==="I"&&x[I+8]==="O"&&x[I+9]==="N"}i(V,"isNotation"),r(V,"isNotation");function j(x){if(N.isName(x))return x;throw new Error(`Invalid entity name ${x}`)}i(j,"validateEntityName"),r(j,"validateEntityName"),S.exports=A}}),l=o({"../../node_modules/strnum/strnum.js"(P,S){var N=/^[-+]?0x[a-fA-F0-9]+$/,A=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var F={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function z(v,q={}){if(q=Object.assign({},F,q),!v||typeof v!="string")return v;let V=v.trim();if(q.skipLike!==void 0&&q.skipLike.test(V))return v;if(q.hex&&N.test(V))return Number.parseInt(V,16);{let j=A.exec(V);if(j){let x=j[1],I=j[2],M=Z(j[3]),le=j[4]||j[6];if(!q.leadingZeros&&I.length>0&&x&&V[2]!==".")return v;if(!q.leadingZeros&&I.length>0&&!x&&V[1]!==".")return v;{let J=Number(V),X=""+J;return X.search(/[eE]/)!==-1||le?q.eNotation?J:v:V.indexOf(".")!==-1?X==="0"&&M===""||X===M||x&&X==="-"+M?J:v:I?M===X||x+M===X?J:v:V===X||V===x+X?J:v}}else return v}}i(z,"toNumber"),r(z,"toNumber");function Z(v){return v&&v.indexOf(".")!==-1&&(v=v.replace(/0+$/,""),v==="."?v="0":v[0]==="."?v="0"+v:v[v.length-1]==="."&&(v=v.substr(0,v.length-1))),v}i(Z,"trimZeros"),r(Z,"trimZeros"),S.exports=z}}),d=o({"node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(P,S){"use strict";var N=a(),A=u(),F=c(),z=l(),Z=class{static{i(this,"OrderedObjParser")}static{r(this,"OrderedObjParser")}constructor(R){this.options=R,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:i((T,L)=>String.fromCharCode(Number.parseInt(L,10)),"val")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:i((T,L)=>String.fromCharCode(Number.parseInt(L,16)),"val")}},this.addExternalEntities=v,this.parseXml=I,this.parseTextData=q,this.resolveNameSpace=V,this.buildAttributesMap=x,this.isItStopNode=X,this.replaceEntitiesValue=le,this.readStopNodeData=G,this.saveTextToParentTag=J,this.addChild=M}};function v(R){let T=Object.keys(R);for(let L=0;L<T.length;L++){let B=T[L];this.lastEntities[B]={regex:new RegExp("&"+B+";","g"),val:R[B]}}}i(v,"addExternalEntities"),r(v,"addExternalEntities");function q(R,T,L,B,_,D,ee){if(R!==void 0&&(this.options.trimValues&&!B&&(R=R.trim()),R.length>0)){ee||(R=this.replaceEntitiesValue(R));let $=this.options.tagValueProcessor(T,R,L,_,D);return $==null?R:typeof $!=typeof R||$!==R?$:this.options.trimValues?me(R,this.options.parseTagValue,this.options.numberParseOptions):R.trim()===R?me(R,this.options.parseTagValue,this.options.numberParseOptions):R}}i(q,"parseTextData"),r(q,"parseTextData");function V(R){if(this.options.removeNSPrefix){let T=R.split(":"),L=R.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(R=L+T[1])}return R}i(V,"resolveNameSpace"),r(V,"resolveNameSpace");var j=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function x(R,T,L){if(!this.options.ignoreAttributes&&typeof R=="string"){let B=N.getAllMatches(R,j),_=B.length,D={};for(let ee=0;ee<_;ee++){let $=this.resolveNameSpace(B[ee][1]),U=B[ee][4],de=this.options.attributeNamePrefix+$;if($.length)if(this.options.transformAttributeName&&(de=this.options.transformAttributeName(de)),de==="__proto__"&&(de="#__proto__"),U!==void 0){this.options.trimValues&&(U=U.trim()),U=this.replaceEntitiesValue(U);let ne=this.options.attributeValueProcessor($,U,T);ne==null?D[de]=U:typeof ne!=typeof U||ne!==U?D[de]=ne:D[de]=me(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(D[de]=!0)}if(!Object.keys(D).length)return;if(this.options.attributesGroupName){let ee={};return ee[this.options.attributesGroupName]=D,ee}return D}}i(x,"buildAttributesMap"),r(x,"buildAttributesMap");var I=r(function(R){R=R.replace(/\r\n?/g,`
105
105
  `);let T=new A("!xml"),L=T,B="",_="";for(let D=0;D<R.length;D++)if(R[D]==="<")if(R[D+1]==="/"){let $=b(R,">",D,"Closing Tag is not closed."),U=R.substring(D+2,$).trim();if(this.options.removeNSPrefix){let Oe=U.indexOf(":");Oe!==-1&&(U=U.substr(Oe+1))}this.options.transformTagName&&(U=this.options.transformTagName(U)),L&&(B=this.saveTextToParentTag(B,L,_));let de=_.substring(_.lastIndexOf(".")+1);if(U&&this.options.unpairedTags.indexOf(U)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${U}>`);let ne=0;de&&this.options.unpairedTags.indexOf(de)!==-1?(ne=_.lastIndexOf(".",_.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ne=_.lastIndexOf("."),_=_.substring(0,ne),L=this.tagsNodeStack.pop(),B="",D=$}else if(R[D+1]==="?"){let $=O(R,D,!1,"?>");if(!$)throw new Error("Pi Tag is not closed.");if(B=this.saveTextToParentTag(B,L,_),!(this.options.ignoreDeclaration&&$.tagName==="?xml"||this.options.ignorePiTags)){let U=new A($.tagName);U.add(this.options.textNodeName,""),$.tagName!==$.tagExp&&$.attrExpPresent&&(U[":@"]=this.buildAttributesMap($.tagExp,_,$.tagName)),this.addChild(L,U,_)}D=$.closeIndex+1}else if(R.substr(D+1,3)==="!--"){let $=b(R,"-->",D+4,"Comment is not closed.");if(this.options.commentPropName){let U=R.substring(D+4,$-2);B=this.saveTextToParentTag(B,L,_),L.add(this.options.commentPropName,[{[this.options.textNodeName]:U}])}D=$}else if(R.substr(D+1,2)==="!D"){let $=F(R,D);this.docTypeEntities=$.entities,D=$.i}else if(R.substr(D+1,2)==="!["){let $=b(R,"]]>",D,"CDATA is not closed.")-2,U=R.substring(D+9,$);B=this.saveTextToParentTag(B,L,_);let de=this.parseTextData(U,L.tagname,_,!0,!1,!0,!0);de==null&&(de=""),this.options.cdataPropName?L.add(this.options.cdataPropName,[{[this.options.textNodeName]:U}]):L.add(this.options.textNodeName,de),D=$+2}else{let $=O(R,D,this.options.removeNSPrefix),U=$.tagName,de=$.rawTagName,ne=$.tagExp,Oe=$.attrExpPresent,Ri=$.closeIndex;this.options.transformTagName&&(U=this.options.transformTagName(U)),L&&B&&L.tagname!=="!xml"&&(B=this.saveTextToParentTag(B,L,_,!1));let Pi=L;if(Pi&&this.options.unpairedTags.indexOf(Pi.tagname)!==-1&&(L=this.tagsNodeStack.pop(),_=_.substring(0,_.lastIndexOf("."))),U!==T.tagname&&(_+=_?"."+U:U),this.isItStopNode(this.options.stopNodes,_,U)){let Ce="";if(ne.length>0&&ne.lastIndexOf("/")===ne.length-1)D=$.closeIndex;else if(this.options.unpairedTags.indexOf(U)!==-1)D=$.closeIndex;else{let $n=this.readStopNodeData(R,de,Ri+1);if(!$n)throw new Error(`Unexpected end of ${de}`);D=$n.i,Ce=$n.tagContent}let Hn=new A(U);U!==ne&&Oe&&(Hn[":@"]=this.buildAttributesMap(ne,_,U)),Ce&&(Ce=this.parseTextData(Ce,U,_,!0,Oe,!0,!0)),_=_.substr(0,_.lastIndexOf(".")),Hn.add(this.options.textNodeName,Ce),this.addChild(L,Hn,_)}else{if(ne.length>0&&ne.lastIndexOf("/")===ne.length-1){U[U.length-1]==="/"?(U=U.substr(0,U.length-1),_=_.substr(0,_.length-1),ne=U):ne=ne.substr(0,ne.length-1),this.options.transformTagName&&(U=this.options.transformTagName(U));let Ce=new A(U);U!==ne&&Oe&&(Ce[":@"]=this.buildAttributesMap(ne,_,U)),this.addChild(L,Ce,_),_=_.substr(0,_.lastIndexOf("."))}else{let Ce=new A(U);this.tagsNodeStack.push(L),U!==ne&&Oe&&(Ce[":@"]=this.buildAttributesMap(ne,_,U)),this.addChild(L,Ce,_),L=Ce}B="",D=Ri}}else B+=R[D];return T.child},"parseXml");function M(R,T,L){let B=this.options.updateTag(T.tagname,L,T[":@"]);B===!1||(typeof B=="string"&&(T.tagname=B),R.addChild(T))}i(M,"addChild"),r(M,"addChild");var le=r(function(R){if(this.options.processEntities){for(let T in this.docTypeEntities){let L=this.docTypeEntities[T];R=R.replace(L.regx,L.val)}for(let T in this.lastEntities){let L=this.lastEntities[T];R=R.replace(L.regex,L.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){let L=this.htmlEntities[T];R=R.replace(L.regex,L.val)}R=R.replace(this.ampEntity.regex,this.ampEntity.val)}return R},"replaceEntitiesValue");function J(R,T,L,B){return R&&(B===void 0&&(B=Object.keys(T.child).length===0),R=this.parseTextData(R,T.tagname,L,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,B),R!==void 0&&R!==""&&T.add(this.options.textNodeName,R),R=""),R}i(J,"saveTextToParentTag"),r(J,"saveTextToParentTag");function X(R,T,L){let B="*."+L;for(let _ in R){let D=R[_];if(B===D||T===D)return!0}return!1}i(X,"isItStopNode"),r(X,"isItStopNode");function ve(R,T,L=">"){let B,_="";for(let D=T;D<R.length;D++){let ee=R[D];if(B)ee===B&&(B="");else if(ee==='"'||ee==="'")B=ee;else if(ee===L[0])if(L[1]){if(R[D+1]===L[1])return{data:_,index:D}}else return{data:_,index:D};else ee===" "&&(ee=" ");_+=ee}}i(ve,"tagExpWithClosingIndex"),r(ve,"tagExpWithClosingIndex");function b(R,T,L,B){let _=R.indexOf(T,L);if(_===-1)throw new Error(B);return _+T.length-1}i(b,"findClosingIndex"),r(b,"findClosingIndex");function O(R,T,L,B=">"){let _=ve(R,T+1,B);if(!_)return;let D=_.data,ee=_.index,$=D.search(/\s/),U=D,de=!0;$!==-1&&(U=D.substring(0,$),D=D.substring($+1).trimStart());let ne=U;if(L){let Oe=U.indexOf(":");Oe!==-1&&(U=U.substr(Oe+1),de=U!==_.data.substr(Oe+1))}return{tagName:U,tagExp:D,closeIndex:ee,attrExpPresent:de,rawTagName:ne}}i(O,"readTagExp"),r(O,"readTagExp");function G(R,T,L){let B=L,_=1;for(;L<R.length;L++)if(R[L]==="<")if(R[L+1]==="/"){let D=b(R,">",L,`${T} is not closed`);if(R.substring(L+2,D).trim()===T&&(_--,_===0))return{tagContent:R.substring(B,L),i:D};L=D}else if(R[L+1]==="?")L=b(R,"?>",L+1,"StopNode is not closed.");else if(R.substr(L+1,3)==="!--")L=b(R,"-->",L+3,"StopNode is not closed.");else if(R.substr(L+1,2)==="![")L=b(R,"]]>",L,"StopNode is not closed.")-2;else{let D=O(R,L,">");D&&((D&&D.tagName)===T&&D.tagExp[D.tagExp.length-1]!=="/"&&_++,L=D.closeIndex)}}i(G,"readStopNodeData"),r(G,"readStopNodeData");function me(R,T,L){if(T&&typeof R=="string"){let B=R.trim();return B==="true"?!0:B==="false"?!1:z(R,L)}else return N.isExist(R)?R:""}i(me,"parseValue"),r(me,"parseValue"),S.exports=Z}}),p=o({"node_modules/fast-xml-parser/src/xmlparser/node2json.js"(P){"use strict";function S(Z,v){return N(Z,v)}i(S,"prettify"),r(S,"prettify");function N(Z,v,q){let V,j={};for(let x=0;x<Z.length;x++){let I=Z[x],M=A(I),le="";if(q===void 0?le=M:le=q+"."+M,M===v.textNodeName)V===void 0?V=I[M]:V+=""+I[M];else{if(M===void 0)continue;if(I[M]){let J=N(I[M],v,le),X=z(J,v);I[":@"]?F(J,I[":@"],le,v):Object.keys(J).length===1&&J[v.textNodeName]!==void 0&&!v.alwaysCreateTextNode?J=J[v.textNodeName]:Object.keys(J).length===0&&(v.alwaysCreateTextNode?J[v.textNodeName]="":J=""),j[M]!==void 0&&j.hasOwnProperty(M)?(Array.isArray(j[M])||(j[M]=[j[M]]),j[M].push(J)):v.isArray(M,le,X)?j[M]=[J]:j[M]=J}}}return typeof V=="string"?V.length>0&&(j[v.textNodeName]=V):V!==void 0&&(j[v.textNodeName]=V),j}i(N,"compress"),r(N,"compress");function A(Z){let v=Object.keys(Z);for(let q=0;q<v.length;q++){let V=v[q];if(V!==":@")return V}}i(A,"propName"),r(A,"propName");function F(Z,v,q,V){if(v){let j=Object.keys(v),x=j.length;for(let I=0;I<x;I++){let M=j[I];V.isArray(M,q+"."+M,!0,!0)?Z[M]=[v[M]]:Z[M]=v[M]}}}i(F,"assignAttributes"),r(F,"assignAttributes");function z(Z,v){let{textNodeName:q}=v,V=Object.keys(Z).length;return!!(V===0||V===1&&(Z[q]||typeof Z[q]=="boolean"||Z[q]===0))}i(z,"isLeafTag"),r(z,"isLeafTag"),P.prettify=S}}),h=o({"node_modules/fast-xml-parser/src/validator.js"(P){"use strict";var S=a(),N={allowBooleanAttributes:!1,unpairedTags:[]};P.validate=function(b,O){O=Object.assign({},N,O);let G=[],me=!1,R=!1;b[0]==="\uFEFF"&&(b=b.substr(1));for(let T=0;T<b.length;T++)if(b[T]==="<"&&b[T+1]==="?"){if(T+=2,T=F(b,T),T.err)return T}else if(b[T]==="<"){let L=T;if(T++,b[T]==="!"){T=z(b,T);continue}else{let B=!1;b[T]==="/"&&(B=!0,T++);let _="";for(;T<b.length&&b[T]!==">"&&b[T]!==" "&&b[T]!==" "&&b[T]!==`
106
106
  `&&b[T]!=="\r";T++)_+=b[T];if(_=_.trim(),_[_.length-1]==="/"&&(_=_.substring(0,_.length-1),T--),!J(_)){let $;return _.trim().length===0?$="Invalid space after '<'.":$="Tag '"+_+"' is an invalid name.",M("InvalidTag",$,X(b,T))}let D=q(b,T);if(D===!1)return M("InvalidAttr","Attributes for '"+_+"' have open quote.",X(b,T));let ee=D.value;if(T=D.index,ee[ee.length-1]==="/"){let $=T-ee.length;ee=ee.substring(0,ee.length-1);let U=j(ee,O);if(U===!0)me=!0;else return M(U.err.code,U.err.msg,X(b,$+U.err.line))}else if(B)if(D.tagClosed){if(ee.trim().length>0)return M("InvalidTag","Closing tag '"+_+"' can't have attributes or invalid starting.",X(b,L));{let $=G.pop();if(_!==$.tagName){let U=X(b,$.tagStartPos);return M("InvalidTag","Expected closing tag '"+$.tagName+"' (opened in line "+U.line+", col "+U.col+") instead of closing tag '"+_+"'.",X(b,L))}G.length==0&&(R=!0)}}else return M("InvalidTag","Closing tag '"+_+"' doesn't have proper closing.",X(b,T));else{let $=j(ee,O);if($!==!0)return M($.err.code,$.err.msg,X(b,T-ee.length+$.err.line));if(R===!0)return M("InvalidXml","Multiple possible root nodes found.",X(b,T));O.unpairedTags.indexOf(_)!==-1||G.push({tagName:_,tagStartPos:L}),me=!0}for(T++;T<b.length;T++)if(b[T]==="<")if(b[T+1]==="!"){T++,T=z(b,T);continue}else if(b[T+1]==="?"){if(T=F(b,++T),T.err)return T}else break;else if(b[T]==="&"){let $=I(b,T);if($==-1)return M("InvalidChar","char '&' is not expected.",X(b,T));T=$}else if(R===!0&&!A(b[T]))return M("InvalidXml","Extra text at the end",X(b,T));b[T]==="<"&&T--}}else{if(A(b[T]))continue;return M("InvalidChar","char '"+b[T]+"' is not expected.",X(b,T))}if(me){if(G.length==1)return M("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",X(b,G[0].tagStartPos));if(G.length>0)return M("InvalidXml","Invalid '"+JSON.stringify(G.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return M("InvalidXml","Start tag expected.",1);return!0};function A(b){return b===" "||b===" "||b===`
107
- `||b==="\r"}i(A,"isWhiteSpace"),r(A,"isWhiteSpace");function F(b,O){let G=O;for(;O<b.length;O++)if(b[O]=="?"||b[O]==" "){let me=b.substr(G,O-G);if(O>5&&me==="xml")return M("InvalidXml","XML declaration allowed only at the start of the document.",X(b,O));if(b[O]=="?"&&b[O+1]==">"){O++;break}else continue}return O}i(F,"readPI"),r(F,"readPI");function z(b,O){if(b.length>O+5&&b[O+1]==="-"&&b[O+2]==="-"){for(O+=3;O<b.length;O++)if(b[O]==="-"&&b[O+1]==="-"&&b[O+2]===">"){O+=2;break}}else if(b.length>O+8&&b[O+1]==="D"&&b[O+2]==="O"&&b[O+3]==="C"&&b[O+4]==="T"&&b[O+5]==="Y"&&b[O+6]==="P"&&b[O+7]==="E"){let G=1;for(O+=8;O<b.length;O++)if(b[O]==="<")G++;else if(b[O]===">"&&(G--,G===0))break}else if(b.length>O+9&&b[O+1]==="["&&b[O+2]==="C"&&b[O+3]==="D"&&b[O+4]==="A"&&b[O+5]==="T"&&b[O+6]==="A"&&b[O+7]==="["){for(O+=8;O<b.length;O++)if(b[O]==="]"&&b[O+1]==="]"&&b[O+2]===">"){O+=2;break}}return O}i(z,"readCommentAndCDATA"),r(z,"readCommentAndCDATA");var Z='"',v="'";function q(b,O){let G="",me="",R=!1;for(;O<b.length;O++){if(b[O]===Z||b[O]===v)me===""?me=b[O]:me!==b[O]||(me="");else if(b[O]===">"&&me===""){R=!0;break}G+=b[O]}return me!==""?!1:{value:G,index:O,tagClosed:R}}i(q,"readAttributeStr"),r(q,"readAttributeStr");var V=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function j(b,O){let G=S.getAllMatches(b,V),me={};for(let R=0;R<G.length;R++){if(G[R][1].length===0)return M("InvalidAttr","Attribute '"+G[R][2]+"' has no space in starting.",ve(G[R]));if(G[R][3]!==void 0&&G[R][4]===void 0)return M("InvalidAttr","Attribute '"+G[R][2]+"' is without value.",ve(G[R]));if(G[R][3]===void 0&&!O.allowBooleanAttributes)return M("InvalidAttr","boolean attribute '"+G[R][2]+"' is not allowed.",ve(G[R]));let T=G[R][2];if(!le(T))return M("InvalidAttr","Attribute '"+T+"' is an invalid name.",ve(G[R]));if(!me.hasOwnProperty(T))me[T]=1;else return M("InvalidAttr","Attribute '"+T+"' is repeated.",ve(G[R]))}return!0}i(j,"validateAttributeString"),r(j,"validateAttributeString");function x(b,O){let G=/\d/;for(b[O]==="x"&&(O++,G=/[\da-fA-F]/);O<b.length;O++){if(b[O]===";")return O;if(!b[O].match(G))break}return-1}i(x,"validateNumberAmpersand"),r(x,"validateNumberAmpersand");function I(b,O){if(O++,b[O]===";")return-1;if(b[O]==="#")return O++,x(b,O);let G=0;for(;O<b.length;O++,G++)if(!(b[O].match(/\w/)&&G<20)){if(b[O]===";")break;return-1}return O}i(I,"validateAmpersand"),r(I,"validateAmpersand");function M(b,O,G){return{err:{code:b,msg:O,line:G.line||G,col:G.col}}}i(M,"getErrorObject"),r(M,"getErrorObject");function le(b){return S.isName(b)}i(le,"validateAttrName"),r(le,"validateAttrName");function J(b){return S.isName(b)}i(J,"validateTagName"),r(J,"validateTagName");function X(b,O){let G=b.substring(0,O).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}}i(X,"getLineNumberForPosition"),r(X,"getLineNumberForPosition");function ve(b){return b.startIndex+b[1].length}i(ve,"getPositionFromMatch"),r(ve,"getPositionFromMatch")}}),y=o({"node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(P,S){var{buildOptions:N}=s(),A=d(),{prettify:F}=p(),z=h(),Z=class{static{i(this,"XMLParser")}static{r(this,"XMLParser")}constructor(v){this.externalEntities={},this.options=N(v)}parse(v,q){if(typeof v!="string")if(v.toString)v=v.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(q){q===!0&&(q={});let x=z.validate(v,q);if(x!==!0)throw Error(`${x.err.msg}:${x.err.line}:${x.err.col}`)}let V=new A(this.options);V.addExternalEntities(this.externalEntities);let j=V.parseXml(v);return this.options.preserveOrder||j===void 0?j:F(j,this.options)}addEntity(v,q){if(q.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(v.indexOf("&")!==-1||v.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(q==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[v]=q}};S.exports=Z}});let C=y();return new C(n)},"getXmlParser");var gi=class extends Ve{static{i(this,"XmlToJsonOutboundPolicy")}parser;parseOnStatusCodes;constructor(e,t){super(e,t),g("policy.outbound.xml-to-json"),W(this.options,this.policyName).optional("removeNSPrefix","boolean").optional("ignoreProcessingInstructions","boolean").optional("ignoreDeclarations","boolean").optional("ignoreAttributes","boolean").optional("stopNodes","array").optional("attributeNamePrefix","string").optional("textNodeName","string").optional("trimValues","boolean"),this.parseOnStatusCodes=e.parseOnStatusCodes?Be(e.parseOnStatusCodes):void 0,this.parser=Qa({removeNSPrefix:e?.removeNSPrefix??!0,ignorePiTags:e?.ignoreProcessingInstructions??!0,ignoreDeclaration:e?.ignoreDeclarations??!0,ignoreAttributes:e?.ignoreAttributes??!0,stopNodes:e?.stopNodes??[],attributeNamePrefix:e?.attributeNamePrefix??"@_",textNodeName:e?.textNodeName??"#text",trimValues:e?.trimValues??!0})}async handler(e,t,r){if(this.parseOnStatusCodes&&!this.parseOnStatusCodes.includes(e.status))return e;let o;try{let u=await e.text();o=this.parser.parse(u)}catch(u){let c=`XmlToJsonOutboundPolicy - Error parsing XML contents in policy '${this.policyName}'.`;throw r.log.error(c,u),new k(c)}let s=new Headers(e.headers);return s.set("content-type","application/json"),new Response(JSON.stringify(o),{status:e.status,statusText:e.statusText,headers:s})}};var fi=class{static{i(this,"ServiceProviderImpl")}services=new Map;addService(e,t){if(this.services.get(e))throw new K(`A service with the name ${e} already exists -- you cannot have duplicate services`);this.services.set(e,t)}getService(e){return this.services.get(e)}};var hi=class{static{i(this,"BackgroundDispatcher")}#e;constructor(e,t){if(!t||t.msDelay===void 0)throw new m("BackgroundDispatcher: options.msDelay is required");this.#e=new Y(t.name??"",t.msDelay,e)}enqueue=i(e=>{this.#e.enqueue(e),Tn().waitUntil(this.#e.waitUntilFlushed())},"enqueue")};var Ya=10,Xa=3e4,yi=class{static{i(this,"BackgroundLoader")}#e=new Map;#t;#n;#r;#o;#i={};constructor(e,t){if(typeof t=="number"){let r=t;this.#n=r*1e3,this.#o=Xa,this.#r=Ya}else{let r=t;this.#n=r.ttlSeconds*1e3,this.#o=r.loaderTimeoutSeconds?r.loaderTimeoutSeconds*1e3:Xa,this.#r=Ya}this.#t=e}#s(e){return e.expiry<=new Date}#a(e){let t=this.#i[e];return!(t===void 0||t===0)}#u(e){let t=this.#e.get(e);if(t&&!this.#s(t))return t.data}async get(e){let t=this.#u(e);if(t)return this.#l(e),t;if(this.#a(e))try{await $d(()=>this.#u(e)!==void 0||!this.#a,this.#o+this.#r+1,this.#r);let r=this.#u(e);if(r)return r}catch{}return this.#c(e)}#l(e){if(!this.#a(e)){let t=this.#c(e);Tn().waitUntil(t)}}async#c(e){try{this.#i[e]===void 0&&(this.#i[e]=0),this.#i[e]++;let t=await Promise.race([this.#t(e),scheduler.wait(this.#o)]);if(t===void 0)throw new m(`BackgroundLoader: Loader timed out after ${this.#o} ms.`);return this.#e.set(e,{data:t,expiry:new Date(Date.now()+this.#n)}),t}finally{this.#i[e]--}}};async function $d(n,e,t){let r=Date.now();for(;!n();){let o=Date.now()-r;if(o>e)throw new m(`BackgroundLoader: Timeout waiting for an on-going loader after ${o} ms.`);await scheduler.wait(t)}}i($d,"waitUntilTrue");async function Fd(n,e={}){g("utility.zuplo-api-services");let{method:t="GET",data:r,headers:o={}}=e,s=new URL(n,f.instance.zuploEdgeApiUrl),a={method:t,headers:{Authorization:`Bearer ${f.instance.authApiJWT}`,"Content-Type":"application/json",...o}};r&&(a.body=JSON.stringify(r));let u=await H.fetch(s,a);if(!u.ok){let c=await u.json();throw new Error(`Error ${u.status}: ${c.message||"Request failed"}`)}return await u.json()}i(Fd,"apiServices");var bi=["sha-1","sha-256","sha-384","sha-512"],Zn=class{static{i(this,"BaseCryptoBeta")}};var wi=class extends Zn{static{i(this,"WorkerCryptoBeta")}async digest(e,t){if(g("runtime.crypto-beta"),!bi.includes(e.toLowerCase()))throw new k(`Algorithm ${e} is not supported. Try using ${bi.join(", ")}`);let r=new TextEncoder().encode(t),o=await crypto.subtle.digest(e,r);return Array.from(new Uint8Array(o)).map(u=>u.toString(16).padStart(2,"0")).join("")}};export{wo as AWSLoggingPlugin,pl as AmberfloMeteringInboundPolicy,Mo as AmberfloMeteringPolicy,fl as ApiAuthKeyInboundPolicy,Uo as ApiKeyInboundPolicy,qo as AsertoAuthZInboundPolicy,Co as AuditLogDataStaxProvider,Oo as AuditLogPlugin,Rl as Auth0JwtInboundPolicy,kc as AwsLambdaHandlerExtensions,Fo as AxiomaticsAuthZInboundPolicy,hi as BackgroundDispatcher,yi as BackgroundLoader,Pl as BasicAuthInboundPolicy,Za as BasicRateLimitInboundPolicy,Y as BatchDispatch,Bo as BrownoutInboundPolicy,Ll as CachingInboundPolicy,_l as ChangeMethodInboundPolicy,Nl as ClearHeadersInboundPolicy,Dl as ClearHeadersOutboundPolicy,Ml as ClerkJwtInboundPolicy,Ul as CognitoJwtInboundPolicy,Qo as ComplexRateLimitInboundPolicy,Bl as CompositeInboundPolicy,Gl as CompositeOutboundPolicy,m as ConfigurationError,Er as ContentTypes,re as ContextData,wi as CryptoBeta,Vl as CurityPhantomTokenInboundPolicy,Kr as DataDogLoggingPlugin,Io as DataDogMetricsPlugin,co as DynaTraceLoggingPlugin,To as DynatraceMetricsPlugin,Jl as FirebaseJwtInboundPolicy,Kl as FormDataToJsonInboundPolicy,Ql as GeoFilterInboundPolicy,Br as GoogleCloudLoggingPlugin,eo as Handler,E as HttpProblems,cn as HttpStatusCode,ue as InboundPolicy,Yl as JWTScopeValidationInboundPolicy,po as LokiLoggingPlugin,ft as LookupResult,oe as MemoryZoneReadThroughCache,Xl as MockApiInboundPolicy,sd as MoesifInboundPolicy,ti as MonetizationInboundPolicy,ni as OktaFGAAuthZInboundPolicy,ud as OktaJwtInboundPolicy,ri as OpenFGAAuthZInboundPolicy,we as OpenIdJwtInboundPolicy,Ve as OutboundPolicy,tt as ProblemResponseFormatter,ld as PropelAuthJwtInboundPolicy,si as QuotaInboundPolicy,Za as RateLimitInboundPolicy,hd as ReadmeMetricsInboundPolicy,yd as RemoveHeadersInboundPolicy,bd as RemoveHeadersOutboundPolicy,wd as RemoveQueryParamsInboundPolicy,Rd as ReplaceStringOutboundPolicy,Pd as RequestSizeLimitInboundPolicy,Va as RequestValidationInboundPolicy,Ed as RequireOriginInboundPolicy,Mt as ResponseSendingEvent,Ut as ResponseSentEvent,k as RuntimeError,nn as SYSTEM_LOGGER,Id as SchemaBasedRequestValidation,Ze as SemanticAttributes,fi as ServiceProviderImpl,xd as SetBodyInboundPolicy,Td as SetHeadersInboundPolicy,vd as SetHeadersOutboundPolicy,Cd as SetQueryParamsInboundPolicy,Od as SetStatusOutboundPolicy,Ad as SleepInboundPolicy,da as StripeMonetizationPlugin,Jt as StripeWebhookVerificationInboundPolicy,fo as SumoLogicLoggingPlugin,kd as SupabaseJwtInboundPolicy,De as SystemRouteName,Nt as TelemetryPlugin,Ld as UpstreamAzureAdServiceAuthInboundPolicy,Nd as UpstreamFirebaseAdminAuthInboundPolicy,Ud as UpstreamFirebaseUserAuthInboundPolicy,di as UpstreamGcpFederatedAuthInboundPolicy,qd as UpstreamGcpJwtInboundPolicy,Zd as UpstreamGcpServiceAuthInboundPolicy,yo as VMWareLogInsightLoggingPlugin,Hd as ValidateJsonSchemaInbound,gi as XmlToJsonOutboundPolicy,kt as ZoneCache,te as ZuploRequest,Yt as ZuploServices,Fd as apiServices,Lc as awsLambdaHandler,Re as environment,Fn as getIdForParameterSchema,ru as getIdForRefSchema,jn as getIdForRequestBodySchema,nu as getRawOperationDataIdentifierName,vr as httpStatuses,Hc as openApiSpecHandler,Fc as redirectHandler,ou as sanitizedIdentifierName,xr as serialize,rd as setMoesifContext,g as trackFeature,Bc as urlForwardHandler,Vc as urlRewriteHandler,Wc as webSocketHandler,Jc as webSocketPipelineHandler,jc as zuploServiceProxy};
107
+ `||b==="\r"}i(A,"isWhiteSpace"),r(A,"isWhiteSpace");function F(b,O){let G=O;for(;O<b.length;O++)if(b[O]=="?"||b[O]==" "){let me=b.substr(G,O-G);if(O>5&&me==="xml")return M("InvalidXml","XML declaration allowed only at the start of the document.",X(b,O));if(b[O]=="?"&&b[O+1]==">"){O++;break}else continue}return O}i(F,"readPI"),r(F,"readPI");function z(b,O){if(b.length>O+5&&b[O+1]==="-"&&b[O+2]==="-"){for(O+=3;O<b.length;O++)if(b[O]==="-"&&b[O+1]==="-"&&b[O+2]===">"){O+=2;break}}else if(b.length>O+8&&b[O+1]==="D"&&b[O+2]==="O"&&b[O+3]==="C"&&b[O+4]==="T"&&b[O+5]==="Y"&&b[O+6]==="P"&&b[O+7]==="E"){let G=1;for(O+=8;O<b.length;O++)if(b[O]==="<")G++;else if(b[O]===">"&&(G--,G===0))break}else if(b.length>O+9&&b[O+1]==="["&&b[O+2]==="C"&&b[O+3]==="D"&&b[O+4]==="A"&&b[O+5]==="T"&&b[O+6]==="A"&&b[O+7]==="["){for(O+=8;O<b.length;O++)if(b[O]==="]"&&b[O+1]==="]"&&b[O+2]===">"){O+=2;break}}return O}i(z,"readCommentAndCDATA"),r(z,"readCommentAndCDATA");var Z='"',v="'";function q(b,O){let G="",me="",R=!1;for(;O<b.length;O++){if(b[O]===Z||b[O]===v)me===""?me=b[O]:me!==b[O]||(me="");else if(b[O]===">"&&me===""){R=!0;break}G+=b[O]}return me!==""?!1:{value:G,index:O,tagClosed:R}}i(q,"readAttributeStr"),r(q,"readAttributeStr");var V=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function j(b,O){let G=S.getAllMatches(b,V),me={};for(let R=0;R<G.length;R++){if(G[R][1].length===0)return M("InvalidAttr","Attribute '"+G[R][2]+"' has no space in starting.",ve(G[R]));if(G[R][3]!==void 0&&G[R][4]===void 0)return M("InvalidAttr","Attribute '"+G[R][2]+"' is without value.",ve(G[R]));if(G[R][3]===void 0&&!O.allowBooleanAttributes)return M("InvalidAttr","boolean attribute '"+G[R][2]+"' is not allowed.",ve(G[R]));let T=G[R][2];if(!le(T))return M("InvalidAttr","Attribute '"+T+"' is an invalid name.",ve(G[R]));if(!me.hasOwnProperty(T))me[T]=1;else return M("InvalidAttr","Attribute '"+T+"' is repeated.",ve(G[R]))}return!0}i(j,"validateAttributeString"),r(j,"validateAttributeString");function x(b,O){let G=/\d/;for(b[O]==="x"&&(O++,G=/[\da-fA-F]/);O<b.length;O++){if(b[O]===";")return O;if(!b[O].match(G))break}return-1}i(x,"validateNumberAmpersand"),r(x,"validateNumberAmpersand");function I(b,O){if(O++,b[O]===";")return-1;if(b[O]==="#")return O++,x(b,O);let G=0;for(;O<b.length;O++,G++)if(!(b[O].match(/\w/)&&G<20)){if(b[O]===";")break;return-1}return O}i(I,"validateAmpersand"),r(I,"validateAmpersand");function M(b,O,G){return{err:{code:b,msg:O,line:G.line||G,col:G.col}}}i(M,"getErrorObject"),r(M,"getErrorObject");function le(b){return S.isName(b)}i(le,"validateAttrName"),r(le,"validateAttrName");function J(b){return S.isName(b)}i(J,"validateTagName"),r(J,"validateTagName");function X(b,O){let G=b.substring(0,O).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}}i(X,"getLineNumberForPosition"),r(X,"getLineNumberForPosition");function ve(b){return b.startIndex+b[1].length}i(ve,"getPositionFromMatch"),r(ve,"getPositionFromMatch")}}),y=o({"node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(P,S){var{buildOptions:N}=s(),A=d(),{prettify:F}=p(),z=h(),Z=class{static{i(this,"XMLParser")}static{r(this,"XMLParser")}constructor(v){this.externalEntities={},this.options=N(v)}parse(v,q){if(typeof v!="string")if(v.toString)v=v.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(q){q===!0&&(q={});let x=z.validate(v,q);if(x!==!0)throw Error(`${x.err.msg}:${x.err.line}:${x.err.col}`)}let V=new A(this.options);V.addExternalEntities(this.externalEntities);let j=V.parseXml(v);return this.options.preserveOrder||j===void 0?j:F(j,this.options)}addEntity(v,q){if(q.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(v.indexOf("&")!==-1||v.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(q==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[v]=q}};S.exports=Z}});let C=y();return new C(n)},"getXmlParser");var gi=class extends Ve{static{i(this,"XmlToJsonOutboundPolicy")}parser;parseOnStatusCodes;constructor(e,t){super(e,t),g("policy.outbound.xml-to-json"),W(this.options,this.policyName).optional("removeNSPrefix","boolean").optional("ignoreProcessingInstructions","boolean").optional("ignoreDeclarations","boolean").optional("ignoreAttributes","boolean").optional("stopNodes","array").optional("attributeNamePrefix","string").optional("textNodeName","string").optional("trimValues","boolean"),this.parseOnStatusCodes=e.parseOnStatusCodes?Be(e.parseOnStatusCodes):void 0,this.parser=Qa({removeNSPrefix:e?.removeNSPrefix??!0,ignorePiTags:e?.ignoreProcessingInstructions??!0,ignoreDeclaration:e?.ignoreDeclarations??!0,ignoreAttributes:e?.ignoreAttributes??!0,stopNodes:e?.stopNodes??[],attributeNamePrefix:e?.attributeNamePrefix??"@_",textNodeName:e?.textNodeName??"#text",trimValues:e?.trimValues??!0})}async handler(e,t,r){if(this.parseOnStatusCodes&&!this.parseOnStatusCodes.includes(e.status))return e;let o;try{let u=await e.text();o=this.parser.parse(u)}catch(u){let c=`XmlToJsonOutboundPolicy - Error parsing XML contents in policy '${this.policyName}'.`;throw r.log.error(c,u),new k(c)}let s=new Headers(e.headers);return s.set("content-type","application/json"),new Response(JSON.stringify(o),{status:e.status,statusText:e.statusText,headers:s})}};var fi=class{static{i(this,"ServiceProviderImpl")}services=new Map;addService(e,t){if(this.services.get(e))throw new K(`A service with the name ${e} already exists -- you cannot have duplicate services`);this.services.set(e,t)}getService(e){return this.services.get(e)}};var hi=class{static{i(this,"BackgroundDispatcher")}#e;constructor(e,t){if(!t||t.msDelay===void 0)throw new m("BackgroundDispatcher: options.msDelay is required");this.#e=new Y(t.name??"",t.msDelay,e)}enqueue=i(e=>{this.#e.enqueue(e),Tn().waitUntil(this.#e.waitUntilFlushed())},"enqueue")};var Ya=10,Xa=3e4,yi=class{static{i(this,"BackgroundLoader")}#e=new Map;#t;#n;#r;#o;#i={};constructor(e,t){if(typeof t=="number"){let r=t;this.#n=r*1e3,this.#o=Xa,this.#r=Ya}else{let r=t;this.#n=r.ttlSeconds*1e3,this.#o=r.loaderTimeoutSeconds?r.loaderTimeoutSeconds*1e3:Xa,this.#r=Ya}this.#t=e}#s(e){return e.expiry<=new Date}#a(e){let t=this.#i[e];return!(t===void 0||t===0)}#u(e){let t=this.#e.get(e);if(t&&!this.#s(t))return t.data}async get(e){let t=this.#u(e);if(t)return this.#l(e),t;if(this.#a(e))try{await $d(()=>this.#u(e)!==void 0||!this.#a,this.#o+this.#r+1,this.#r);let r=this.#u(e);if(r)return r}catch{}return this.#c(e)}#l(e){if(!this.#a(e)){let t=this.#c(e);Tn().waitUntil(t)}}async#c(e){try{this.#i[e]===void 0&&(this.#i[e]=0),this.#i[e]++;let t=await Promise.race([this.#t(e),scheduler.wait(this.#o)]);if(t===void 0)throw new m(`BackgroundLoader: Loader timed out after ${this.#o} ms.`);return this.#e.set(e,{data:t,expiry:new Date(Date.now()+this.#n)}),t}finally{this.#i[e]--}}};async function $d(n,e,t){let r=Date.now();for(;!n();){let o=Date.now()-r;if(o>e)throw new m(`BackgroundLoader: Timeout waiting for an on-going loader after ${o} ms.`);await scheduler.wait(t)}}i($d,"waitUntilTrue");async function Fd(n,e={}){g("utility.zuplo-api-services");let{method:t="GET",data:r,headers:o={}}=e,s=new URL(n,f.instance.zuploEdgeApiUrl),a={method:t,headers:{Authorization:`Bearer ${f.instance.authApiJWT}`,"Content-Type":"application/json",...o}};r&&(a.body=JSON.stringify(r));let u=await H.fetch(s,a),c;try{if(c=await u.clone().json(),!u.ok)throw new Error(`Error ${u.status}: ${c.message||"Request failed"}`)}catch(l){throw new Error(l.message)}return c}i(Fd,"apiServices");var bi=["sha-1","sha-256","sha-384","sha-512"],Zn=class{static{i(this,"BaseCryptoBeta")}};var wi=class extends Zn{static{i(this,"WorkerCryptoBeta")}async digest(e,t){if(g("runtime.crypto-beta"),!bi.includes(e.toLowerCase()))throw new k(`Algorithm ${e} is not supported. Try using ${bi.join(", ")}`);let r=new TextEncoder().encode(t),o=await crypto.subtle.digest(e,r);return Array.from(new Uint8Array(o)).map(u=>u.toString(16).padStart(2,"0")).join("")}};export{wo as AWSLoggingPlugin,pl as AmberfloMeteringInboundPolicy,Mo as AmberfloMeteringPolicy,fl as ApiAuthKeyInboundPolicy,Uo as ApiKeyInboundPolicy,qo as AsertoAuthZInboundPolicy,Co as AuditLogDataStaxProvider,Oo as AuditLogPlugin,Rl as Auth0JwtInboundPolicy,kc as AwsLambdaHandlerExtensions,Fo as AxiomaticsAuthZInboundPolicy,hi as BackgroundDispatcher,yi as BackgroundLoader,Pl as BasicAuthInboundPolicy,Za as BasicRateLimitInboundPolicy,Y as BatchDispatch,Bo as BrownoutInboundPolicy,Ll as CachingInboundPolicy,_l as ChangeMethodInboundPolicy,Nl as ClearHeadersInboundPolicy,Dl as ClearHeadersOutboundPolicy,Ml as ClerkJwtInboundPolicy,Ul as CognitoJwtInboundPolicy,Qo as ComplexRateLimitInboundPolicy,Bl as CompositeInboundPolicy,Gl as CompositeOutboundPolicy,m as ConfigurationError,Er as ContentTypes,re as ContextData,wi as CryptoBeta,Vl as CurityPhantomTokenInboundPolicy,Kr as DataDogLoggingPlugin,Io as DataDogMetricsPlugin,co as DynaTraceLoggingPlugin,To as DynatraceMetricsPlugin,Jl as FirebaseJwtInboundPolicy,Kl as FormDataToJsonInboundPolicy,Ql as GeoFilterInboundPolicy,Br as GoogleCloudLoggingPlugin,eo as Handler,E as HttpProblems,cn as HttpStatusCode,ue as InboundPolicy,Yl as JWTScopeValidationInboundPolicy,po as LokiLoggingPlugin,ft as LookupResult,oe as MemoryZoneReadThroughCache,Xl as MockApiInboundPolicy,sd as MoesifInboundPolicy,ti as MonetizationInboundPolicy,ni as OktaFGAAuthZInboundPolicy,ud as OktaJwtInboundPolicy,ri as OpenFGAAuthZInboundPolicy,we as OpenIdJwtInboundPolicy,Ve as OutboundPolicy,tt as ProblemResponseFormatter,ld as PropelAuthJwtInboundPolicy,si as QuotaInboundPolicy,Za as RateLimitInboundPolicy,hd as ReadmeMetricsInboundPolicy,yd as RemoveHeadersInboundPolicy,bd as RemoveHeadersOutboundPolicy,wd as RemoveQueryParamsInboundPolicy,Rd as ReplaceStringOutboundPolicy,Pd as RequestSizeLimitInboundPolicy,Va as RequestValidationInboundPolicy,Ed as RequireOriginInboundPolicy,Mt as ResponseSendingEvent,Ut as ResponseSentEvent,k as RuntimeError,nn as SYSTEM_LOGGER,Id as SchemaBasedRequestValidation,Ze as SemanticAttributes,fi as ServiceProviderImpl,xd as SetBodyInboundPolicy,Td as SetHeadersInboundPolicy,vd as SetHeadersOutboundPolicy,Cd as SetQueryParamsInboundPolicy,Od as SetStatusOutboundPolicy,Ad as SleepInboundPolicy,da as StripeMonetizationPlugin,Jt as StripeWebhookVerificationInboundPolicy,fo as SumoLogicLoggingPlugin,kd as SupabaseJwtInboundPolicy,De as SystemRouteName,Nt as TelemetryPlugin,Ld as UpstreamAzureAdServiceAuthInboundPolicy,Nd as UpstreamFirebaseAdminAuthInboundPolicy,Ud as UpstreamFirebaseUserAuthInboundPolicy,di as UpstreamGcpFederatedAuthInboundPolicy,qd as UpstreamGcpJwtInboundPolicy,Zd as UpstreamGcpServiceAuthInboundPolicy,yo as VMWareLogInsightLoggingPlugin,Hd as ValidateJsonSchemaInbound,gi as XmlToJsonOutboundPolicy,kt as ZoneCache,te as ZuploRequest,Yt as ZuploServices,Fd as apiServices,Lc as awsLambdaHandler,Re as environment,Fn as getIdForParameterSchema,ru as getIdForRefSchema,jn as getIdForRequestBodySchema,nu as getRawOperationDataIdentifierName,vr as httpStatuses,Hc as openApiSpecHandler,Fc as redirectHandler,ou as sanitizedIdentifierName,xr as serialize,rd as setMoesifContext,g as trackFeature,Bc as urlForwardHandler,Vc as urlRewriteHandler,Wc as webSocketHandler,Jc as webSocketPipelineHandler,jc as zuploServiceProxy};
108
108
  /*! For license information please see index.js.LEGAL.txt */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.18.21",
4
+ "version": "6.18.24",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {