@jsfsi-core/ts-nestjs 1.1.38 → 1.1.40
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/index.cjs +23 -23
- package/dist/index.mjs +5780 -5825
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";var Ek=Object.create;var ky=Object.defineProperty;var xk=Object.getOwnPropertyDescriptor;var Ok=Object.getOwnPropertyNames;var wk=Object.getPrototypeOf,Sk=Object.prototype.hasOwnProperty;var Tk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ok(t))!Sk.call(e,o)&&o!==r&&ky(e,o,{get:()=>t[o],enumerable:!(n=xk(t,o))||n.enumerable});return e};var Pk=(e,t,r)=>(r=e!=null?Ek(wk(e)):{},Tk(t||!e||!e.__esModule?ky(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const er=require("path"),iC=require("url"),ci=require("fs"),vp=require("os"),ui=require("crypto"),mp=require("stream"),li=require("util"),Ak=require("async_hooks"),Rk=require("perf_hooks"),Mk=require("express"),Ik=require("http"),Ck=require("https"),fg=require("events"),_p=require("buffer"),jk=require("repl");var bf=typeof document<"u"?document.currentScript:null;function qk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Nk=qk(er);var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function di(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Dy={};var Ly;function hg(){if(Ly)return Dy;Ly=1;var e;return(function(t){(function(r){var n=typeof globalThis=="object"?globalThis:typeof ft=="object"?ft:typeof self=="object"?self:typeof this=="object"?this:c(),o=i(t);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),r(o,n),typeof n.Reflect>"u"&&(n.Reflect=t);function i(u,p){return function(l,d){Object.defineProperty(u,l,{configurable:!0,writable:!0,value:d}),p&&p(l,d)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(r,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!c&&!u,l={create:c?function(){return gr(Object.create(null))}:u?function(){return gr({__proto__:null})}:function(){return gr({})},has:p?function(H,G){return o.call(H,G)}:function(H,G){return G in H},get:p?function(H,G){return o.call(H,G)?H[G]:void 0}:function(H,G){return H[G]}},d=Object.getPrototypeOf(Function),f=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ge(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Oi(),m=typeof WeakMap=="function"?WeakMap:wi(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,_=me(),g=Ne(_);function y(H,G,K,re){if(q(K)){if(!I(H))throw new TypeError;if(!Q(G))throw new TypeError;return N(H,G)}else{if(!I(H))throw new TypeError;if(!M(G))throw new TypeError;if(!M(re)&&!q(re)&&!L(re))throw new TypeError;return L(re)&&(re=void 0),K=R(K),D(H,G,K,re)}}r("decorate",y);function b(H,G){function K(re,fe){if(!M(re))throw new TypeError;if(!q(fe)&&!oe(fe))throw new TypeError;J(H,G,re,fe)}return K}r("metadata",b);function E(H,G,K,re){if(!M(K))throw new TypeError;return q(re)||(re=R(re)),J(H,G,K,re)}r("defineMetadata",E);function x(H,G,K){if(!M(G))throw new TypeError;return q(K)||(K=R(K)),V(H,G,K)}r("hasMetadata",x);function O(H,G,K){if(!M(G))throw new TypeError;return q(K)||(K=R(K)),F(H,G,K)}r("hasOwnMetadata",O);function S(H,G,K){if(!M(G))throw new TypeError;return q(K)||(K=R(K)),k(H,G,K)}r("getMetadata",S);function w(H,G,K){if(!M(G))throw new TypeError;return q(K)||(K=R(K)),Z(H,G,K)}r("getOwnMetadata",w);function A(H,G){if(!M(H))throw new TypeError;return q(G)||(G=R(G)),U(H,G)}r("getMetadataKeys",A);function T(H,G){if(!M(H))throw new TypeError;return q(G)||(G=R(G)),$(H,G)}r("getOwnMetadataKeys",T);function P(H,G,K){if(!M(G))throw new TypeError;if(q(K)||(K=R(K)),!M(G))throw new TypeError;q(K)||(K=R(K));var re=ye(G,K,!1);return q(re)?!1:re.OrdinaryDeleteMetadata(H,G,K)}r("deleteMetadata",P);function N(H,G){for(var K=H.length-1;K>=0;--K){var re=H[K],fe=re(G);if(!q(fe)&&!L(fe)){if(!Q(fe))throw new TypeError;G=fe}}return G}function D(H,G,K,re){for(var fe=H.length-1;fe>=0;--fe){var Be=H[fe],Ue=Be(G,K,re);if(!q(Ue)&&!L(Ue)){if(!M(Ue))throw new TypeError;re=Ue}}return re}function V(H,G,K){var re=F(H,G,K);if(re)return!0;var fe=Ee(G);return L(fe)?!1:V(H,fe,K)}function F(H,G,K){var re=ye(G,K,!1);return q(re)?!1:Y(re.OrdinaryHasOwnMetadata(H,G,K))}function k(H,G,K){var re=F(H,G,K);if(re)return Z(H,G,K);var fe=Ee(G);if(!L(fe))return k(H,fe,K)}function Z(H,G,K){var re=ye(G,K,!1);if(!q(re))return re.OrdinaryGetOwnMetadata(H,G,K)}function J(H,G,K,re){var fe=ye(K,re,!0);fe.OrdinaryDefineOwnMetadata(H,G,K,re)}function U(H,G){var K=$(H,G),re=Ee(H);if(re===null)return K;var fe=U(re,G);if(fe.length<=0)return K;if(K.length<=0)return fe;for(var Be=new h,Ue=[],Oe=0,ie=K;Oe<ie.length;Oe++){var se=ie[Oe],ue=Be.has(se);ue||(Be.add(se),Ue.push(se))}for(var de=0,Se=fe;de<Se.length;de++){var se=Se[de],ue=Be.has(se);ue||(Be.add(se),Ue.push(se))}return Ue}function $(H,G){var K=ye(H,G,!1);return K?K.OrdinaryOwnMetadataKeys(H,G):[]}function C(H){if(H===null)return 1;switch(typeof H){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return H===null?1:6;default:return 6}}function q(H){return H===void 0}function L(H){return H===null}function B(H){return typeof H=="symbol"}function M(H){return typeof H=="object"?H!==null:typeof H=="function"}function j(H,G){switch(C(H)){case 0:return H;case 1:return H;case 2:return H;case 3:return H;case 4:return H;case 5:return H}var K="string",re=le(H,s);if(re!==void 0){var fe=re.call(H,K);if(M(fe))throw new TypeError;return fe}return z(H)}function z(H,G){var K,re;{var fe=H.toString;if(W(fe)){var re=fe.call(H);if(!M(re))return re}var K=H.valueOf;if(W(K)){var re=K.call(H);if(!M(re))return re}}throw new TypeError}function Y(H){return!!H}function te(H){return""+H}function R(H){var G=j(H);return B(G)?G:te(G)}function I(H){return Array.isArray?Array.isArray(H):H instanceof Object?H instanceof Array:Object.prototype.toString.call(H)==="[object Array]"}function W(H){return typeof H=="function"}function Q(H){return typeof H=="function"}function oe(H){switch(C(H)){case 3:return!0;case 4:return!0;default:return!1}}function ee(H,G){return H===G||H!==H&&G!==G}function le(H,G){var K=H[G];if(K!=null){if(!W(K))throw new TypeError;return K}}function _e(H){var G=le(H,a);if(!W(G))throw new TypeError;var K=G.call(H);if(!M(K))throw new TypeError;return K}function be(H){return H.value}function Te(H){var G=H.next();return G.done?!1:G}function Re(H){var G=H.return;G&&G.call(H)}function Ee(H){var G=Object.getPrototypeOf(H);if(typeof H!="function"||H===d||G!==d)return G;var K=H.prototype,re=K&&Object.getPrototypeOf(K);if(re==null||re===Object.prototype)return G;var fe=re.constructor;return typeof fe!="function"||fe===H?G:fe}function Pe(){var H;!q(v)&&typeof n.Reflect<"u"&&!(v in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(H=Ke(n.Reflect));var G,K,re,fe=new m,Be={registerProvider:Ue,getProvider:ie,setProvider:ue};return Be;function Ue(de){if(!Object.isExtensible(Be))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case H===de:break;case q(G):G=de;break;case G===de:break;case q(K):K=de;break;case K===de:break;default:re===void 0&&(re=new h),re.add(de);break}}function Oe(de,Se){if(!q(G)){if(G.isProviderFor(de,Se))return G;if(!q(K)){if(K.isProviderFor(de,Se))return G;if(!q(re))for(var Me=_e(re);;){var ke=Te(Me);if(!ke)return;var st=be(ke);if(st.isProviderFor(de,Se))return Re(Me),st}}}if(!q(H)&&H.isProviderFor(de,Se))return H}function ie(de,Se){var Me=fe.get(de),ke;return q(Me)||(ke=Me.get(Se)),q(ke)&&(ke=Oe(de,Se),q(ke)||(q(Me)&&(Me=new f,fe.set(de,Me)),Me.set(Se,ke))),ke}function se(de){if(q(de))throw new TypeError;return G===de||K===de||!q(re)&&re.has(de)}function ue(de,Se,Me){if(!se(Me))throw new Error("Metadata provider not registered.");var ke=ie(de,Se);if(ke!==Me){if(!q(ke))return!1;var st=fe.get(de);q(st)&&(st=new f,fe.set(de,st)),st.set(Se,Me)}return!0}}function me(){var H;return!q(v)&&M(n.Reflect)&&Object.isExtensible(n.Reflect)&&(H=n.Reflect[v]),q(H)&&(H=Pe()),!q(v)&&M(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:H}),H}function Ne(H){var G=new m,K={isProviderFor:function(se,ue){var de=G.get(se);return q(de)?!1:de.has(ue)},OrdinaryDefineOwnMetadata:Ue,OrdinaryHasOwnMetadata:fe,OrdinaryGetOwnMetadata:Be,OrdinaryOwnMetadataKeys:Oe,OrdinaryDeleteMetadata:ie};return _.registerProvider(K),K;function re(se,ue,de){var Se=G.get(se),Me=!1;if(q(Se)){if(!de)return;Se=new f,G.set(se,Se),Me=!0}var ke=Se.get(ue);if(q(ke)){if(!de)return;if(ke=new f,Se.set(ue,ke),!H.setProvider(se,ue,K))throw Se.delete(ue),Me&&G.delete(se),new Error("Wrong provider for target.")}return ke}function fe(se,ue,de){var Se=re(ue,de,!1);return q(Se)?!1:Y(Se.has(se))}function Be(se,ue,de){var Se=re(ue,de,!1);if(!q(Se))return Se.get(se)}function Ue(se,ue,de,Se){var Me=re(de,Se,!0);Me.set(se,ue)}function Oe(se,ue){var de=[],Se=re(se,ue,!1);if(q(Se))return de;for(var Me=Se.keys(),ke=_e(Me),st=0;;){var Rn=Te(ke);if(!Rn)return de.length=st,de;var Si=be(Rn);try{de[st]=Si}catch(Ti){try{Re(ke)}finally{throw Ti}}st++}}function ie(se,ue,de){var Se=re(ue,de,!1);if(q(Se)||!Se.delete(se))return!1;if(Se.size===0){var Me=G.get(ue);q(Me)||(Me.delete(de),Me.size===0&&G.delete(Me))}return!0}}function Ke(H){var G=H.defineMetadata,K=H.hasOwnMetadata,re=H.getOwnMetadata,fe=H.getOwnMetadataKeys,Be=H.deleteMetadata,Ue=new m,Oe={isProviderFor:function(ie,se){var ue=Ue.get(ie);return!q(ue)&&ue.has(se)?!0:fe(ie,se).length?(q(ue)&&(ue=new h,Ue.set(ie,ue)),ue.add(se),!0):!1},OrdinaryDefineOwnMetadata:G,OrdinaryHasOwnMetadata:K,OrdinaryGetOwnMetadata:re,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:Be};return Oe}function ye(H,G,K){var re=_.getProvider(H,G);if(!q(re))return re;if(K){if(_.setProvider(H,G,g))return g;throw new Error("Illegal state.")}}function Ge(){var H={},G=[],K=(function(){function Oe(ie,se,ue){this._index=0,this._keys=ie,this._values=se,this._selector=ue}return Oe.prototype["@@iterator"]=function(){return this},Oe.prototype[a]=function(){return this},Oe.prototype.next=function(){var ie=this._index;if(ie>=0&&ie<this._keys.length){var se=this._selector(this._keys[ie],this._values[ie]);return ie+1>=this._keys.length?(this._index=-1,this._keys=G,this._values=G):this._index++,{value:se,done:!1}}return{value:void 0,done:!0}},Oe.prototype.throw=function(ie){throw this._index>=0&&(this._index=-1,this._keys=G,this._values=G),ie},Oe.prototype.return=function(ie){return this._index>=0&&(this._index=-1,this._keys=G,this._values=G),{value:ie,done:!0}},Oe})(),re=(function(){function Oe(){this._keys=[],this._values=[],this._cacheKey=H,this._cacheIndex=-2}return Object.defineProperty(Oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Oe.prototype.has=function(ie){return this._find(ie,!1)>=0},Oe.prototype.get=function(ie){var se=this._find(ie,!1);return se>=0?this._values[se]:void 0},Oe.prototype.set=function(ie,se){var ue=this._find(ie,!0);return this._values[ue]=se,this},Oe.prototype.delete=function(ie){var se=this._find(ie,!1);if(se>=0){for(var ue=this._keys.length,de=se+1;de<ue;de++)this._keys[de-1]=this._keys[de],this._values[de-1]=this._values[de];return this._keys.length--,this._values.length--,ee(ie,this._cacheKey)&&(this._cacheKey=H,this._cacheIndex=-2),!0}return!1},Oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=H,this._cacheIndex=-2},Oe.prototype.keys=function(){return new K(this._keys,this._values,fe)},Oe.prototype.values=function(){return new K(this._keys,this._values,Be)},Oe.prototype.entries=function(){return new K(this._keys,this._values,Ue)},Oe.prototype["@@iterator"]=function(){return this.entries()},Oe.prototype[a]=function(){return this.entries()},Oe.prototype._find=function(ie,se){if(!ee(this._cacheKey,ie)){this._cacheIndex=-1;for(var ue=0;ue<this._keys.length;ue++)if(ee(this._keys[ue],ie)){this._cacheIndex=ue;break}}return this._cacheIndex<0&&se&&(this._cacheIndex=this._keys.length,this._keys.push(ie),this._values.push(void 0)),this._cacheIndex},Oe})();return re;function fe(Oe,ie){return Oe}function Be(Oe,ie){return ie}function Ue(Oe,ie){return[Oe,ie]}}function Oi(){var H=(function(){function G(){this._map=new f}return Object.defineProperty(G.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),G.prototype.has=function(K){return this._map.has(K)},G.prototype.add=function(K){return this._map.set(K,K),this},G.prototype.delete=function(K){return this._map.delete(K)},G.prototype.clear=function(){this._map.clear()},G.prototype.keys=function(){return this._map.keys()},G.prototype.values=function(){return this._map.keys()},G.prototype.entries=function(){return this._map.entries()},G.prototype["@@iterator"]=function(){return this.keys()},G.prototype[a]=function(){return this.keys()},G})();return H}function wi(){var H=16,G=l.create(),K=re();return(function(){function ie(){this._key=re()}return ie.prototype.has=function(se){var ue=fe(se,!1);return ue!==void 0?l.has(ue,this._key):!1},ie.prototype.get=function(se){var ue=fe(se,!1);return ue!==void 0?l.get(ue,this._key):void 0},ie.prototype.set=function(se,ue){var de=fe(se,!0);return de[this._key]=ue,this},ie.prototype.delete=function(se){var ue=fe(se,!1);return ue!==void 0?delete ue[this._key]:!1},ie.prototype.clear=function(){this._key=re()},ie})();function re(){var ie;do ie="@@WeakMap@@"+Oe();while(l.has(G,ie));return G[ie]=!0,ie}function fe(ie,se){if(!o.call(ie,K)){if(!se)return;Object.defineProperty(ie,K,{value:l.create()})}return ie[K]}function Be(ie,se){for(var ue=0;ue<se;++ue)ie[ue]=Math.random()*255|0;return ie}function Ue(ie){if(typeof Uint8Array=="function"){var se=new Uint8Array(ie);return typeof crypto<"u"?crypto.getRandomValues(se):typeof msCrypto<"u"?msCrypto.getRandomValues(se):Be(se,ie),se}return Be(new Array(ie),ie)}function Oe(){var ie=Ue(H);ie[6]=ie[6]&79|64,ie[8]=ie[8]&191|128;for(var se="",ue=0;ue<H;++ue){var de=ie[ue];(ue===4||ue===6||ue===8)&&(se+="-"),de<16&&(se+="0"),se+=de.toString(16).toLowerCase()}return se}}function gr(H){return H.__=void 0,delete H.__,H}})})(e||(e={})),Dy}hg();var At={exports:{}};const Fk="17.3.1",kk={version:Fk};var Uy;function Dk(){if(Uy)return At.exports;Uy=1;const e=ci,t=er,r=vp,n=ui,o=kk.version,i=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","🤖 agentic secret storage: https://dotenvx.com/as2","⚡️ secrets for agents: https://dotenvx.com/as2","🛡️ auth for agents: https://vestauth.com","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function s(){return i[Math.floor(Math.random()*i.length)]}function a(A){return typeof A=="string"?!["false","0","no","off",""].includes(A.toLowerCase()):!!A}function c(){return process.stdout.isTTY}function u(A){return c()?`\x1B[2m${A}\x1B[0m`:A}const p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function l(A){const T={};let P=A.toString();P=P.replace(/\r\n?/mg,`
|
|
2
|
-
`);let
|
|
3
|
-
`),V=V.replace(/\\r/g,"\r")),T[D]=V}return T}function d(A){A=A||{};const T=g(A);A.path=T;const P=w.configDotenv(A);if(!P.parsed){const F=new Error(`MISSING_DATA: Cannot parse ${T} for an unknown reason`);throw F.code="MISSING_DATA",F}const N=v(A).split(","),D=N.length;let V;for(let F=0;F<D;F++)try{const k=N[F].trim(),Z=_(P,k);V=w.decrypt(Z.ciphertext,Z.key);break}catch(k){if(F+1>=D)throw k}return w.parse(V)}function f(A){console.error(`[dotenv@${o}][WARN] ${A}`)}function h(A){console.log(`[dotenv@${o}][DEBUG] ${A}`)}function m(A){console.log(`[dotenv@${o}] ${A}`)}function v(A){return A&&A.DOTENV_KEY&&A.DOTENV_KEY.length>0?A.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function _(A,T){let P;try{P=new URL(T)}catch(k){if(k.code==="ERR_INVALID_URL"){const Z=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw Z.code="INVALID_DOTENV_KEY",Z}throw k}const N=P.password;if(!N){const k=new Error("INVALID_DOTENV_KEY: Missing key part");throw k.code="INVALID_DOTENV_KEY",k}const D=P.searchParams.get("environment");if(!D){const k=new Error("INVALID_DOTENV_KEY: Missing environment part");throw k.code="INVALID_DOTENV_KEY",k}const V=`DOTENV_VAULT_${D.toUpperCase()}`,F=A.parsed[V];if(!F){const k=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${V} in your .env.vault file.`);throw k.code="NOT_FOUND_DOTENV_ENVIRONMENT",k}return{ciphertext:F,key:N}}function g(A){let T=null;if(A&&A.path&&A.path.length>0)if(Array.isArray(A.path))for(const P of A.path)e.existsSync(P)&&(T=P.endsWith(".vault")?P:`${P}.vault`);else T=A.path.endsWith(".vault")?A.path:`${A.path}.vault`;else T=t.resolve(process.cwd(),".env.vault");return e.existsSync(T)?T:null}function y(A){return A[0]==="~"?t.join(r.homedir(),A.slice(1)):A}function b(A){const T=a(process.env.DOTENV_CONFIG_DEBUG||A&&A.debug),P=a(process.env.DOTENV_CONFIG_QUIET||A&&A.quiet);(T||!P)&&m("Loading env from encrypted .env.vault");const N=w._parseVault(A);let D=process.env;return A&&A.processEnv!=null&&(D=A.processEnv),w.populate(D,N,A),{parsed:N}}function E(A){const T=t.resolve(process.cwd(),".env");let P="utf8",N=process.env;A&&A.processEnv!=null&&(N=A.processEnv);let D=a(N.DOTENV_CONFIG_DEBUG||A&&A.debug),V=a(N.DOTENV_CONFIG_QUIET||A&&A.quiet);A&&A.encoding?P=A.encoding:D&&h("No encoding is specified. UTF-8 is used by default");let F=[T];if(A&&A.path)if(!Array.isArray(A.path))F=[y(A.path)];else{F=[];for(const U of A.path)F.push(y(U))}let k;const Z={};for(const U of F)try{const $=w.parse(e.readFileSync(U,{encoding:P}));w.populate(Z,$,A)}catch($){D&&h(`Failed to load ${U} ${$.message}`),k=$}const J=w.populate(N,Z,A);if(D=a(N.DOTENV_CONFIG_DEBUG||D),V=a(N.DOTENV_CONFIG_QUIET||V),D||!V){const U=Object.keys(J).length,$=[];for(const C of F)try{const q=t.relative(process.cwd(),C);$.push(q)}catch(q){D&&h(`Failed to load ${C} ${q.message}`),k=q}m(`injecting env (${U}) from ${$.join(",")} ${u(`-- tip: ${s()}`)}`)}return k?{parsed:Z,error:k}:{parsed:Z}}function x(A){if(v(A).length===0)return w.configDotenv(A);const T=g(A);return T?w._configVault(A):(f(`You set DOTENV_KEY but you are missing a .env.vault file at ${T}. Did you forget to build it?`),w.configDotenv(A))}function O(A,T){const P=Buffer.from(T.slice(-64),"hex");let N=Buffer.from(A,"base64");const D=N.subarray(0,12),V=N.subarray(-16);N=N.subarray(12,-16);try{const F=n.createDecipheriv("aes-256-gcm",P,D);return F.setAuthTag(V),`${F.update(N)}${F.final()}`}catch(F){const k=F instanceof RangeError,Z=F.message==="Invalid key length",J=F.message==="Unsupported state or unable to authenticate data";if(k||Z){const U=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw U.code="INVALID_DOTENV_KEY",U}else if(J){const U=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw U.code="DECRYPTION_FAILED",U}else throw F}}function S(A,T,P={}){const N=!!(P&&P.debug),D=!!(P&&P.override),V={};if(typeof T!="object"){const F=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw F.code="OBJECT_REQUIRED",F}for(const F of Object.keys(T))Object.prototype.hasOwnProperty.call(A,F)?(D===!0&&(A[F]=T[F],V[F]=T[F]),N&&h(D===!0?`"${F}" is already defined and WAS overwritten`:`"${F}" is already defined and was NOT overwritten`)):(A[F]=T[F],V[F]=T[F]);return V}const w={configDotenv:E,_configVault:b,_parseVault:d,config:x,decrypt:O,parse:l,populate:S};return At.exports.configDotenv=w.configDotenv,At.exports._configVault=w._configVault,At.exports._parseVault=w._parseVault,At.exports.config=w.config,At.exports.decrypt=w.decrypt,At.exports.parse=w.parse,At.exports.populate=w.populate,At.exports=w,At.exports}var Lk=Dk();const Uk=iC.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:bf&&bf.tagName.toUpperCase()==="SCRIPT"&&bf.src||new URL("index.cjs",document.baseURI).href),zk=er.dirname(Uk),Bk=(e={})=>{const{env:t,configPath:r}=e,n=er.resolve(zk,`${r??"."}/.env${t?`.${t}`:""}`),{parsed:o}=Lk.config({path:n});return o};var Ef,zy;function Hk(){if(zy)return Ef;zy=1,Ef=i,i.default=i,i.stable=u,i.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(d,f,h,m){typeof m>"u"&&(m=o()),a(d,"",0,[],void 0,0,m);var v;try{n.length===0?v=JSON.stringify(d,f,h):v=JSON.stringify(d,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var _=r.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return v}function s(d,f,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:d}),r.push([m,h,f,v])):n.push([f,h,d]):(m[h]=d,r.push([m,h,f]))}function a(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)a(d[y],y,y,m,d,_,g);else{var b=Object.keys(d);for(y=0;y<b.length;y++){var E=b[y];a(d[E],E,y,m,d,_,g)}}m.pop()}}function c(d,f){return d<f?-1:d>f?1:0}function u(d,f,h,m){typeof m>"u"&&(m=o());var v=p(d,"",0,[],void 0,0,m)||d,_;try{n.length===0?_=JSON.stringify(v,f,h):_=JSON.stringify(v,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var g=r.pop();g.length===4?Object.defineProperty(g[0],g[1],g[3]):g[0][g[1]]=g[2]}}return _}function p(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)p(d[y],y,y,m,d,_,g);else{var b={},E=Object.keys(d).sort(c);for(y=0;y<E.length;y++){var x=E[y];p(d[x],x,y,m,d,_,g),b[x]=d[x]}if(typeof v<"u")r.push([v,f,d]),v[f]=b;else return b}m.pop()}}function l(d){return d=typeof d<"u"?d:function(f,h){return h},function(f,h){if(n.length>0)for(var m=0;m<n.length;m++){var v=n[m];if(v[1]===f&&v[0]===h){h=v[2],n.splice(m,1);break}}return d.call(this,f,h)}}return Ef}Hk();var xf={},br={},Pi={},Of={},wf={exports:{}},By;function ae(){return By||(By=1,(function(e){var t,r,n,o,i,s,a,c,u,p,l,d,f,h,m,v,_,g,y,b,E,x,O,S,w,A,T,P,N,D,V,F;(function(k){var Z=typeof ft=="object"?ft:typeof self=="object"?self:typeof this=="object"?this:{};k(J(Z,J(e.exports)));function J(U,$){return U!==Z&&(typeof Object.create=="function"?Object.defineProperty(U,"__esModule",{value:!0}):U.__esModule=!0),function(C,q){return U[C]=$?$(C,q):q}}})(function(k){var Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,q){C.__proto__=q}||function(C,q){for(var L in q)Object.prototype.hasOwnProperty.call(q,L)&&(C[L]=q[L])};t=function(C,q){if(typeof q!="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");Z(C,q);function L(){this.constructor=C}C.prototype=q===null?Object.create(q):(L.prototype=q.prototype,new L)},r=Object.assign||function(C){for(var q,L=1,B=arguments.length;L<B;L++){q=arguments[L];for(var M in q)Object.prototype.hasOwnProperty.call(q,M)&&(C[M]=q[M])}return C},n=function(C,q){var L={};for(var B in C)Object.prototype.hasOwnProperty.call(C,B)&&q.indexOf(B)<0&&(L[B]=C[B]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(C);M<B.length;M++)q.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(C,B[M])&&(L[B[M]]=C[B[M]]);return L},o=function(C,q,L,B){var M=arguments.length,j=M<3?q:B===null?B=Object.getOwnPropertyDescriptor(q,L):B,z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(C,q,L,B);else for(var Y=C.length-1;Y>=0;Y--)(z=C[Y])&&(j=(M<3?z(j):M>3?z(q,L,j):z(q,L))||j);return M>3&&j&&Object.defineProperty(q,L,j),j},i=function(C,q){return function(L,B){q(L,B,C)}},s=function(C,q,L,B,M,j){function z(be){if(be!==void 0&&typeof be!="function")throw new TypeError("Function expected");return be}for(var Y=B.kind,te=Y==="getter"?"get":Y==="setter"?"set":"value",R=!q&&C?B.static?C:C.prototype:null,I=q||(R?Object.getOwnPropertyDescriptor(R,B.name):{}),W,Q=!1,oe=L.length-1;oe>=0;oe--){var ee={};for(var le in B)ee[le]=le==="access"?{}:B[le];for(var le in B.access)ee.access[le]=B.access[le];ee.addInitializer=function(be){if(Q)throw new TypeError("Cannot add initializers after decoration has completed");j.push(z(be||null))};var _e=(0,L[oe])(Y==="accessor"?{get:I.get,set:I.set}:I[te],ee);if(Y==="accessor"){if(_e===void 0)continue;if(_e===null||typeof _e!="object")throw new TypeError("Object expected");(W=z(_e.get))&&(I.get=W),(W=z(_e.set))&&(I.set=W),(W=z(_e.init))&&M.unshift(W)}else(W=z(_e))&&(Y==="field"?M.unshift(W):I[te]=W)}R&&Object.defineProperty(R,B.name,I),Q=!0},a=function(C,q,L){for(var B=arguments.length>2,M=0;M<q.length;M++)L=B?q[M].call(C,L):q[M].call(C);return B?L:void 0},c=function(C){return typeof C=="symbol"?C:"".concat(C)},u=function(C,q,L){return typeof q=="symbol"&&(q=q.description?"[".concat(q.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:L?"".concat(L," ",q):q})},p=function(C,q){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,q)},l=function(C,q,L,B){function M(j){return j instanceof L?j:new L(function(z){z(j)})}return new(L||(L=Promise))(function(j,z){function Y(I){try{R(B.next(I))}catch(W){z(W)}}function te(I){try{R(B.throw(I))}catch(W){z(W)}}function R(I){I.done?j(I.value):M(I.value).then(Y,te)}R((B=B.apply(C,q||[])).next())})},d=function(C,q){var L={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},B,M,j,z=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return z.next=Y(0),z.throw=Y(1),z.return=Y(2),typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function Y(R){return function(I){return te([R,I])}}function te(R){if(B)throw new TypeError("Generator is already executing.");for(;z&&(z=0,R[0]&&(L=0)),L;)try{if(B=1,M&&(j=R[0]&2?M.return:R[0]?M.throw||((j=M.return)&&j.call(M),0):M.next)&&!(j=j.call(M,R[1])).done)return j;switch(M=0,j&&(R=[R[0]&2,j.value]),R[0]){case 0:case 1:j=R;break;case 4:return L.label++,{value:R[1],done:!1};case 5:L.label++,M=R[1],R=[0];continue;case 7:R=L.ops.pop(),L.trys.pop();continue;default:if(j=L.trys,!(j=j.length>0&&j[j.length-1])&&(R[0]===6||R[0]===2)){L=0;continue}if(R[0]===3&&(!j||R[1]>j[0]&&R[1]<j[3])){L.label=R[1];break}if(R[0]===6&&L.label<j[1]){L.label=j[1],j=R;break}if(j&&L.label<j[2]){L.label=j[2],L.ops.push(R);break}j[2]&&L.ops.pop(),L.trys.pop();continue}R=q.call(C,L)}catch(I){R=[6,I],M=0}finally{B=j=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},f=function(C,q){for(var L in C)L!=="default"&&!Object.prototype.hasOwnProperty.call(q,L)&&N(q,C,L)},N=Object.create?(function(C,q,L,B){B===void 0&&(B=L);var M=Object.getOwnPropertyDescriptor(q,L);(!M||("get"in M?!q.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return q[L]}}),Object.defineProperty(C,B,M)}):(function(C,q,L,B){B===void 0&&(B=L),C[B]=q[L]}),h=function(C){var q=typeof Symbol=="function"&&Symbol.iterator,L=q&&C[q],B=0;if(L)return L.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&B>=C.length&&(C=void 0),{value:C&&C[B++],done:!C}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(C,q){var L=typeof Symbol=="function"&&C[Symbol.iterator];if(!L)return C;var B=L.call(C),M,j=[],z;try{for(;(q===void 0||q-- >0)&&!(M=B.next()).done;)j.push(M.value)}catch(Y){z={error:Y}}finally{try{M&&!M.done&&(L=B.return)&&L.call(B)}finally{if(z)throw z.error}}return j},v=function(){for(var C=[],q=0;q<arguments.length;q++)C=C.concat(m(arguments[q]));return C},_=function(){for(var C=0,q=0,L=arguments.length;q<L;q++)C+=arguments[q].length;for(var B=Array(C),M=0,q=0;q<L;q++)for(var j=arguments[q],z=0,Y=j.length;z<Y;z++,M++)B[M]=j[z];return B},g=function(C,q,L){if(L||arguments.length===2)for(var B=0,M=q.length,j;B<M;B++)(j||!(B in q))&&(j||(j=Array.prototype.slice.call(q,0,B)),j[B]=q[B]);return C.concat(j||Array.prototype.slice.call(q))},y=function(C){return this instanceof y?(this.v=C,this):new y(C)},b=function(C,q,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B=L.apply(C,q||[]),M,j=[];return M=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),Y("next"),Y("throw"),Y("return",z),M[Symbol.asyncIterator]=function(){return this},M;function z(oe){return function(ee){return Promise.resolve(ee).then(oe,W)}}function Y(oe,ee){B[oe]&&(M[oe]=function(le){return new Promise(function(_e,be){j.push([oe,le,_e,be])>1||te(oe,le)})},ee&&(M[oe]=ee(M[oe])))}function te(oe,ee){try{R(B[oe](ee))}catch(le){Q(j[0][3],le)}}function R(oe){oe.value instanceof y?Promise.resolve(oe.value.v).then(I,W):Q(j[0][2],oe)}function I(oe){te("next",oe)}function W(oe){te("throw",oe)}function Q(oe,ee){oe(ee),j.shift(),j.length&&te(j[0][0],j[0][1])}},E=function(C){var q,L;return q={},B("next"),B("throw",function(M){throw M}),B("return"),q[Symbol.iterator]=function(){return this},q;function B(M,j){q[M]=C[M]?function(z){return(L=!L)?{value:y(C[M](z)),done:!1}:j?j(z):z}:j}},x=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],L;return q?q.call(C):(C=typeof h=="function"?h(C):C[Symbol.iterator](),L={},B("next"),B("throw"),B("return"),L[Symbol.asyncIterator]=function(){return this},L);function B(j){L[j]=C[j]&&function(z){return new Promise(function(Y,te){z=C[j](z),M(Y,te,z.done,z.value)})}}function M(j,z,Y,te){Promise.resolve(te).then(function(R){j({value:R,done:Y})},z)}},O=function(C,q){return Object.defineProperty?Object.defineProperty(C,"raw",{value:q}):C.raw=q,C};var J=Object.create?(function(C,q){Object.defineProperty(C,"default",{enumerable:!0,value:q})}):function(C,q){C.default=q},U=function(C){return U=Object.getOwnPropertyNames||function(q){var L=[];for(var B in q)Object.prototype.hasOwnProperty.call(q,B)&&(L[L.length]=B);return L},U(C)};S=function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var L=U(C),B=0;B<L.length;B++)L[B]!=="default"&&N(q,C,L[B]);return J(q,C),q},w=function(C){return C&&C.__esModule?C:{default:C}},A=function(C,q,L,B){if(L==="a"&&!B)throw new TypeError("Private accessor was defined without a getter");if(typeof q=="function"?C!==q||!B:!q.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?B:L==="a"?B.call(C):B?B.value:q.get(C)},T=function(C,q,L,B,M){if(B==="m")throw new TypeError("Private method is not writable");if(B==="a"&&!M)throw new TypeError("Private accessor was defined without a setter");if(typeof q=="function"?C!==q||!M:!q.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return B==="a"?M.call(C,L):M?M.value=L:q.set(C,L),L},P=function(C,q){if(q===null||typeof q!="object"&&typeof q!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?q===C:C.has(q)},D=function(C,q,L){if(q!=null){if(typeof q!="object"&&typeof q!="function")throw new TypeError("Object expected.");var B,M;if(L){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");B=q[Symbol.asyncDispose]}if(B===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");B=q[Symbol.dispose],L&&(M=B)}if(typeof B!="function")throw new TypeError("Object not disposable.");M&&(B=function(){try{M.call(this)}catch(j){return Promise.reject(j)}}),C.stack.push({value:q,dispose:B,async:L})}else L&&C.stack.push({async:!0});return q};var $=typeof SuppressedError=="function"?SuppressedError:function(C,q,L){var B=new Error(L);return B.name="SuppressedError",B.error=C,B.suppressed=q,B};V=function(C){function q(j){C.error=C.hasError?new $(j,C.error,"An error was suppressed during disposal."):j,C.hasError=!0}var L,B=0;function M(){for(;L=C.stack.pop();)try{if(!L.async&&B===1)return B=0,C.stack.push(L),Promise.resolve().then(M);if(L.dispose){var j=L.dispose.call(L.value);if(L.async)return B|=2,Promise.resolve(j).then(M,function(z){return q(z),M()})}else B|=1}catch(z){q(z)}if(B===1)return C.hasError?Promise.reject(C.error):Promise.resolve();if(C.hasError)throw C.error}return M()},F=function(C,q){return typeof C=="string"&&/^\.\.?\//.test(C)?C.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(L,B,M,j,z){return B?q?".jsx":".js":M&&(!j||!z)?L:M+j+"."+z.toLowerCase()+"js"}):C},k("__extends",t),k("__assign",r),k("__rest",n),k("__decorate",o),k("__param",i),k("__esDecorate",s),k("__runInitializers",a),k("__propKey",c),k("__setFunctionName",u),k("__metadata",p),k("__awaiter",l),k("__generator",d),k("__exportStar",f),k("__createBinding",N),k("__values",h),k("__read",m),k("__spread",v),k("__spreadArrays",_),k("__spreadArray",g),k("__await",y),k("__asyncGenerator",b),k("__asyncDelegator",E),k("__asyncValues",x),k("__makeTemplateObject",O),k("__importStar",S),k("__importDefault",w),k("__classPrivateFieldGet",A),k("__classPrivateFieldSet",T),k("__classPrivateFieldIn",P),k("__addDisposableResource",D),k("__disposeResources",V),k("__rewriteRelativeImportExtension",F)})})(wf)),wf.exports}var Sf={},Tf={},Zl={},Hy;function Vk(){if(Hy)return Zl;Hy=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.Bind=e;function e(...t){return(r,n,o)=>(t.forEach((i,s)=>i(r,n,s)),o)}return Zl}var Kl={},Pf={},Vy;function xe(){return Vy||(Vy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ENTRY_PROVIDER_WATERMARK=e.CATCH_WATERMARK=e.CONTROLLER_WATERMARK=e.INJECTABLE_WATERMARK=e.VERSION_METADATA=e.SSE_METADATA=e.RESPONSE_PASSTHROUGH_METADATA=e.REDIRECT_METADATA=e.HEADERS_METADATA=e.MODULE_PATH=e.HTTP_CODE_METADATA=e.RENDER_METADATA=e.ENHANCER_KEY_TO_SUBTYPE_MAP=e.EXCEPTION_FILTERS_METADATA=e.INTERCEPTORS_METADATA=e.GUARDS_METADATA=e.PIPES_METADATA=e.FILTER_CATCH_EXCEPTIONS=e.CUSTOM_ROUTE_ARGS_METADATA=e.ROUTE_ARGS_METADATA=e.METHOD_METADATA=e.SCOPE_OPTIONS_METADATA=e.OPTIONAL_PROPERTY_DEPS_METADATA=e.PROPERTY_DEPS_METADATA=e.OPTIONAL_DEPS_METADATA=e.SELF_DECLARED_DEPS_METADATA=e.PARAMTYPES_METADATA=e.PATH_METADATA=e.HOST_METADATA=e.GLOBAL_MODULE_METADATA=e.MODULE_METADATA=void 0,e.MODULE_METADATA={IMPORTS:"imports",PROVIDERS:"providers",CONTROLLERS:"controllers",EXPORTS:"exports"},e.GLOBAL_MODULE_METADATA="__module:global__",e.HOST_METADATA="host",e.PATH_METADATA="path",e.PARAMTYPES_METADATA="design:paramtypes",e.SELF_DECLARED_DEPS_METADATA="self:paramtypes",e.OPTIONAL_DEPS_METADATA="optional:paramtypes",e.PROPERTY_DEPS_METADATA="self:properties_metadata",e.OPTIONAL_PROPERTY_DEPS_METADATA="optional:properties_metadata",e.SCOPE_OPTIONS_METADATA="scope:options",e.METHOD_METADATA="method",e.ROUTE_ARGS_METADATA="__routeArguments__",e.CUSTOM_ROUTE_ARGS_METADATA="__customRouteArgs__",e.FILTER_CATCH_EXCEPTIONS="__filterCatchExceptions__",e.PIPES_METADATA="__pipes__",e.GUARDS_METADATA="__guards__",e.INTERCEPTORS_METADATA="__interceptors__",e.EXCEPTION_FILTERS_METADATA="__exceptionFilters__",e.ENHANCER_KEY_TO_SUBTYPE_MAP={[e.GUARDS_METADATA]:"guard",[e.INTERCEPTORS_METADATA]:"interceptor",[e.PIPES_METADATA]:"pipe",[e.EXCEPTION_FILTERS_METADATA]:"filter"},e.RENDER_METADATA="__renderTemplate__",e.HTTP_CODE_METADATA="__httpCode__",e.MODULE_PATH="__module_path__",e.HEADERS_METADATA="__headers__",e.REDIRECT_METADATA="__redirect__",e.RESPONSE_PASSTHROUGH_METADATA="__responsePassthrough__",e.SSE_METADATA="__sse__",e.VERSION_METADATA="__version__",e.INJECTABLE_WATERMARK="__injectable__",e.CONTROLLER_WATERMARK="__controller__",e.CATCH_WATERMARK="__catch__",e.ENTRY_PROVIDER_WATERMARK="__entryProvider__"})(Pf)),Pf}var Gy;function Gk(){if(Gy)return Kl;Gy=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.Catch=t;const e=xe();function t(...r){return n=>{Reflect.defineMetadata(e.CATCH_WATERMARK,!0,n),Reflect.defineMetadata(e.FILTER_CATCH_EXCEPTIONS,r,n)}}return Kl}var Yl={},Af={},Wy;function ne(){return Wy||(Wy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbol=e.isEmpty=e.isNil=e.isConstructor=e.isNumber=e.isString=e.isFunction=e.stripEndSlash=e.normalizePath=e.addLeadingSlash=e.isPlainObject=e.isObject=e.isUndefined=void 0;const t=h=>typeof h>"u";e.isUndefined=t;const r=h=>!(0,e.isNil)(h)&&typeof h=="object";e.isObject=r;const n=h=>{if(!(0,e.isObject)(h))return!1;const m=Object.getPrototypeOf(h);if(m===null)return!0;const v=Object.prototype.hasOwnProperty.call(m,"constructor")&&m.constructor;return typeof v=="function"&&v instanceof v&&Function.prototype.toString.call(v)===Function.prototype.toString.call(Object)};e.isPlainObject=n;const o=h=>h&&typeof h=="string"?h.charAt(0)!=="/"&&h.substring(0,2)!=="{/"?"/"+h:h:"";e.addLeadingSlash=o;const i=h=>h?h.startsWith("/")?("/"+h.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+h.replace(/\/+$/,""):"/";e.normalizePath=i;const s=h=>h[h.length-1]==="/"?h.slice(0,h.length-1):h;e.stripEndSlash=s;const a=h=>typeof h=="function";e.isFunction=a;const c=h=>typeof h=="string";e.isString=c;const u=h=>typeof h=="number";e.isNumber=u;const p=h=>h==="constructor";e.isConstructor=p;const l=h=>(0,e.isUndefined)(h)||h===null;e.isNil=l;const d=h=>!(h&&h.length>0);e.isEmpty=d;const f=h=>typeof h=="symbol";e.isSymbol=f})(Af)),Af}var Zy;function Wk(){if(Zy)return Yl;Zy=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.Controller=r;const e=xe(),t=ne();function r(n){const[i,s,a,c]=(0,t.isUndefined)(n)?["/",void 0,void 0,void 0]:(0,t.isString)(n)||Array.isArray(n)?[n,void 0,void 0,void 0]:[n.path||"/",n.host,{scope:n.scope,durable:n.durable},Array.isArray(n.version)?Array.from(new Set(n.version)):n.version];return u=>{Reflect.defineMetadata(e.CONTROLLER_WATERMARK,!0,u),Reflect.defineMetadata(e.PATH_METADATA,i,u),Reflect.defineMetadata(e.HOST_METADATA,s,u),Reflect.defineMetadata(e.SCOPE_OPTIONS_METADATA,a,u),Reflect.defineMetadata(e.VERSION_METADATA,c,u)}}return Yl}var Cn={},Ky;function Zk(){if(Ky)return Cn;Ky=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.Dependencies=void 0,Cn.flatten=t;const e=xe();function t(n){const o=[].concat(...n);return o.some(Array.isArray)?t(o):o}const r=(...n)=>{const o=t(n);return i=>{Reflect.defineMetadata(e.PARAMTYPES_METADATA,o,i)}};return Cn.Dependencies=r,Cn}var Ai={},Xl={},Yy;function xl(){if(Yy)return Xl;Yy=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.extendArrayMetadata=e;function e(t,r,n){const i=[...Reflect.getMetadata(t,n)||[],...r];Reflect.defineMetadata(t,i,n)}return Xl}var jn={},Xy;function gp(){if(Xy)return jn;Xy=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.InvalidDecoratorItemException=void 0,jn.validateEach=t;class e extends Error{constructor(n,o,i){const s=`Invalid ${o} passed to ${n}() decorator (${i}).`;super(s),this.msg=s}what(){return this.msg}}jn.InvalidDecoratorItemException=e;function t(r,n,o,i,s){if(!r||!r.name)return!0;if(n.some(c=>!o(c)))throw new e(i,s,r.name);return!0}return jn}var Jy;function Kk(){if(Jy)return Ai;Jy=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.UseFilters=void 0;const e=xe(),t=xl(),r=ne(),n=gp(),o=(...s)=>i(...s);Ai.UseFilters=o;function i(...s){return(a,c,u)=>{const p=l=>l&&((0,r.isFunction)(l)||(0,r.isFunction)(l.catch));return u?((0,n.validateEach)(a.constructor,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,u.value),u):((0,n.validateEach)(a,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,a),a)}}return Ai}var Jl={},Qy;function Yk(){if(Qy)return Jl;Qy=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.Inject=r;const e=xe(),t=ne();function r(n){const o=arguments.length>0;return(i,s,a)=>{let c=n||Reflect.getMetadata("design:type",i,s);if(!c&&!o&&(c=Reflect.getMetadata(e.PARAMTYPES_METADATA,i,s)?.[a]),!(0,t.isUndefined)(a)){let p=Reflect.getMetadata(e.SELF_DECLARED_DEPS_METADATA,i)||[];p=[...p,{index:a,param:c}],Reflect.defineMetadata(e.SELF_DECLARED_DEPS_METADATA,p,i);return}let u=Reflect.getMetadata(e.PROPERTY_DEPS_METADATA,i.constructor)||[];u=[...u,{key:s,type:c}],Reflect.defineMetadata(e.PROPERTY_DEPS_METADATA,u,i.constructor)}}return Jl}var Ri={},Rf={},$y;function _n(){if($y)return Rf;$y=1;for(var e=256,t=[],r=256,n;e--;)t[e]=(e+256).toString(16).substring(1);function o(i){var s=0,a=i||11;if(!n||e+a>r*2)for(n="",e=0;s<r;s++)n+=t[Math.random()*256|0];return n.substring(e,e+++a)}return Rf.uid=o,Rf}var eb;function gn(){if(eb)return Ri;eb=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.Injectable=r,Ri.mixin=n;const e=_n(),t=xe();function r(o){return i=>{Reflect.defineMetadata(t.INJECTABLE_WATERMARK,!0,i),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,o,i)}}function n(o){return Object.defineProperty(o,"name",{value:(0,e.uid)(21)}),r()(o),o}return Ri}var Ql={},tb;function Ol(){if(tb)return Ql;tb=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.Optional=r;const e=xe(),t=ne();function r(){return(n,o,i)=>{if(!(0,t.isUndefined)(i)){const a=Reflect.getMetadata(e.OPTIONAL_DEPS_METADATA,n)||[];Reflect.defineMetadata(e.OPTIONAL_DEPS_METADATA,[...a,i],n);return}const s=Reflect.getMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,n.constructor)||[];Reflect.defineMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,[...s,o],n.constructor)}}return Ql}var Mi={},rb;function Xk(){if(rb)return Mi;rb=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.SetMetadata=void 0;const e=(t,r)=>{const n=(o,i,s)=>s?(Reflect.defineMetadata(t,r,s.value),s):(Reflect.defineMetadata(t,r,o),o);return n.KEY=t,n};return Mi.SetMetadata=e,Mi}var $l={},nb;function Jk(){if(nb)return $l;nb=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.UseGuards=o;const e=xe(),t=xl(),r=ne(),n=gp();function o(...i){return(s,a,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.canActivate));return c?((0,n.validateEach)(s.constructor,i,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,i,c.value),c):((0,n.validateEach)(s,i,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,i,s),s)}}return $l}var ed={},ib;function Qk(){if(ib)return ed;ib=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.UseInterceptors=o;const e=xe(),t=xl(),r=ne(),n=gp();function o(...i){return(s,a,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.intercept));return c?((0,n.validateEach)(s.constructor,i,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,i,c.value),c):((0,n.validateEach)(s,i,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,i,s),s)}}return ed}var td={},ab;function $k(){if(ab)return td;ab=1,Object.defineProperty(td,"__esModule",{value:!0}),td.UsePipes=o;const e=xe(),t=xl(),r=ne(),n=gp();function o(...i){return(s,a,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.transform));return c?((0,t.extendArrayMetadata)(e.PIPES_METADATA,i,c.value),c):((0,n.validateEach)(s,i,u,"@UsePipes","pipe"),(0,t.extendArrayMetadata)(e.PIPES_METADATA,i,s),s)}}return td}var rd={},ob;function eD(){if(ob)return rd;ob=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.applyDecorators=e;function e(...t){return(r,n,o)=>{for(const i of t){if(r instanceof Function&&!o){i(r);continue}i(r,n,o)}}}return rd}var nd={},sb;function tD(){if(sb)return nd;sb=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.Version=t;const e=xe();function t(r){return Array.isArray(r)&&(r=Array.from(new Set(r))),(n,o,i)=>(Reflect.defineMetadata(e.VERSION_METADATA,r,i.value),i)}return nd}var cb;function ar(){return cb||(cb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Vk(),e),t.__exportStar(Gk(),e),t.__exportStar(Wk(),e),t.__exportStar(Zk(),e),t.__exportStar(Kk(),e),t.__exportStar(Yk(),e),t.__exportStar(gn(),e),t.__exportStar(Ol(),e),t.__exportStar(Xk(),e),t.__exportStar(Jk(),e),t.__exportStar(Qk(),e),t.__exportStar($k(),e),t.__exportStar(eD(),e),t.__exportStar(tD(),e)})(Tf)),Tf}var Mf={},id={},ub;function rD(){if(ub)return id;ub=1,Object.defineProperty(id,"__esModule",{value:!0}),id.Global=t;const e=xe();function t(){return r=>{Reflect.defineMetadata(e.GLOBAL_MODULE_METADATA,!0,r)}}return id}var ad={},If={},lb;function nD(){return lb||(lb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=o;const t=xe(),r=(i,s)=>`Invalid property '${s}' passed into the @Module() decorator.`;e.INVALID_MODULE_CONFIG_MESSAGE=r;const n=[t.MODULE_METADATA.IMPORTS,t.MODULE_METADATA.EXPORTS,t.MODULE_METADATA.CONTROLLERS,t.MODULE_METADATA.PROVIDERS];function o(i){const s=a=>{if(!n.includes(a))throw new Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${a}`)};i.forEach(s)}})(If)),If}var db;function iD(){if(db)return ad;db=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.Module=t;const e=nD();function t(r){const n=Object.keys(r);return(0,e.validateModuleKeys)(n),o=>{for(const i in r)Object.hasOwnProperty.call(r,i)&&Reflect.defineMetadata(i,r[i],o)}}return ad}var pb;function aD(){return pb||(pb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(rD(),e),t.__exportStar(iD(),e)})(Mf)),Mf}var Cf={},jf={},Ii={},fb;function pi(){if(fb)return Ii;fb=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.RequestMethod=void 0;var e;return(function(t){t[t.GET=0]="GET",t[t.POST=1]="POST",t[t.PUT=2]="PUT",t[t.DELETE=3]="DELETE",t[t.PATCH=4]="PATCH",t[t.ALL=5]="ALL",t[t.OPTIONS=6]="OPTIONS",t[t.HEAD=7]="HEAD",t[t.SEARCH=8]="SEARCH",t[t.PROPFIND=9]="PROPFIND",t[t.PROPPATCH=10]="PROPPATCH",t[t.MKCOL=11]="MKCOL",t[t.COPY=12]="COPY",t[t.MOVE=13]="MOVE",t[t.LOCK=14]="LOCK",t[t.UNLOCK=15]="UNLOCK"})(e||(Ii.RequestMethod=e={})),Ii}var hb;function oD(){return hb||(hb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Unlock=e.Lock=e.Move=e.Copy=e.Mkcol=e.Proppatch=e.Propfind=e.Search=e.All=e.Head=e.Options=e.Patch=e.Put=e.Delete=e.Get=e.Post=e.RequestMapping=void 0;const t=xe(),r=pi(),n={[t.PATH_METADATA]:"/",[t.METHOD_METADATA]:r.RequestMethod.GET},o=(s=n)=>{const a=s[t.PATH_METADATA],c=a&&a.length?a:"/",u=s[t.METHOD_METADATA]||r.RequestMethod.GET;return(p,l,d)=>(Reflect.defineMetadata(t.PATH_METADATA,c,d.value),Reflect.defineMetadata(t.METHOD_METADATA,u,d.value),d)};e.RequestMapping=o;const i=s=>a=>(0,e.RequestMapping)({[t.PATH_METADATA]:a,[t.METHOD_METADATA]:s});e.Post=i(r.RequestMethod.POST),e.Get=i(r.RequestMethod.GET),e.Delete=i(r.RequestMethod.DELETE),e.Put=i(r.RequestMethod.PUT),e.Patch=i(r.RequestMethod.PATCH),e.Options=i(r.RequestMethod.OPTIONS),e.Head=i(r.RequestMethod.HEAD),e.All=i(r.RequestMethod.ALL),e.Search=i(r.RequestMethod.SEARCH),e.Propfind=i(r.RequestMethod.PROPFIND),e.Proppatch=i(r.RequestMethod.PROPPATCH),e.Mkcol=i(r.RequestMethod.MKCOL),e.Copy=i(r.RequestMethod.COPY),e.Move=i(r.RequestMethod.MOVE),e.Lock=i(r.RequestMethod.LOCK),e.Unlock=i(r.RequestMethod.UNLOCK)})(jf)),jf}var qf={},Ci={},vb;function yp(){if(vb)return Ci;vb=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.RouteParamtypes=void 0;var e;return(function(t){t[t.REQUEST=0]="REQUEST",t[t.RESPONSE=1]="RESPONSE",t[t.NEXT=2]="NEXT",t[t.BODY=3]="BODY",t[t.QUERY=4]="QUERY",t[t.PARAM=5]="PARAM",t[t.HEADERS=6]="HEADERS",t[t.SESSION=7]="SESSION",t[t.FILE=8]="FILE",t[t.FILES=9]="FILES",t[t.HOST=10]="HOST",t[t.IP=11]="IP",t[t.RAW_BODY=12]="RAW_BODY",t[t.ACK=13]="ACK"})(e||(Ci.RouteParamtypes=e={})),Ci}var mb;function sD(){return mb||(mb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Res=e.Req=e.Headers=e.Session=e.Ip=e.Next=e.Response=e.Request=void 0,e.assignMetadata=o,e.UploadedFile=c,e.UploadedFiles=u,e.Query=p,e.Body=l,e.RawBody=d,e.Param=f,e.HostParam=h;const t=xe(),r=yp(),n=ne();function o(m,v,_,g,...y){return{...m,[`${v}:${_}`]:{index:_,data:g,pipes:y}}}function i(m){return v=>(_,g,y)=>{const b=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,_.constructor,g)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,o(b,m,y,v),_.constructor,g)}}const s=m=>(v,..._)=>(g,y,b)=>{const E=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,g.constructor,y)||{},x=(0,n.isNil)(v)||(0,n.isString)(v),O=x?v:void 0,S=x?_:[v,..._];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,o(E,m,b,O,...S),g.constructor,y)};e.Request=i(r.RouteParamtypes.REQUEST);const a=m=>(v,_,g)=>(m?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,m?.passthrough,v.constructor,_),i(r.RouteParamtypes.RESPONSE)()(v,_,g));e.Response=a,e.Next=i(r.RouteParamtypes.NEXT),e.Ip=i(r.RouteParamtypes.IP),e.Session=i(r.RouteParamtypes.SESSION);function c(m,...v){return s(r.RouteParamtypes.FILE)(m,...v)}function u(...m){return s(r.RouteParamtypes.FILES)(void 0,...m)}e.Headers=i(r.RouteParamtypes.HEADERS);function p(m,...v){return s(r.RouteParamtypes.QUERY)(m,...v)}function l(m,...v){return s(r.RouteParamtypes.BODY)(m,...v)}function d(...m){return s(r.RouteParamtypes.RAW_BODY)(void 0,...m)}function f(m,...v){return s(r.RouteParamtypes.PARAM)(m,...v)}function h(m){return i(r.RouteParamtypes.HOST)(m)}e.Req=e.Request,e.Res=e.Response})(qf)),qf}var od={},_b;function cD(){if(_b)return od;_b=1,Object.defineProperty(od,"__esModule",{value:!0}),od.HttpCode=t;const e=xe();function t(r){return(n,o,i)=>(Reflect.defineMetadata(e.HTTP_CODE_METADATA,r,i.value),i)}return od}var sd={},cd={},gb;function uD(){if(gb)return cd;gb=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.assignCustomParameterMetadata=t;const e=xe();function t(r,n,o,i,s,...a){return{...r,[`${n}${e.CUSTOM_ROUTE_ARGS_METADATA}:${o}`]:{index:o,factory:i,data:s,pipes:a}}}return cd}var yb;function lD(){if(yb)return sd;yb=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.createParamDecorator=o;const e=_n(),t=xe(),r=uD(),n=ne();function o(i,s=[]){const a=(0,e.uid)(21);return(c,...u)=>(p,l,d)=>{const f=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,p.constructor,l)||{},h=g=>g&&((0,n.isFunction)(g)&&g.prototype&&(0,n.isFunction)(g.prototype.transform)||(0,n.isFunction)(g.transform)),m=(0,n.isNil)(c)||!h(c),v=m?c:void 0,_=m?u:[c,...u];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,(0,r.assignCustomParameterMetadata)(f,a,d,i,v,..._),p.constructor,l),s.forEach(g=>g(p,l,d))}}return sd}var ud={},bb;function dD(){if(bb)return ud;bb=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.Render=t;const e=xe();function t(r){return(n,o,i)=>(Reflect.defineMetadata(e.RENDER_METADATA,r,i.value),i)}return ud}var ld={},Eb;function pD(){if(Eb)return ld;Eb=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.Header=r;const e=xe(),t=xl();function r(n,o){return(i,s,a)=>((0,t.extendArrayMetadata)(e.HEADERS_METADATA,[{name:n,value:o}],a.value),a)}return ld}var dd={},xb;function fD(){if(xb)return dd;xb=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.Redirect=t;const e=xe();function t(r="",n){return(o,i,s)=>(Reflect.defineMetadata(e.REDIRECT_METADATA,{statusCode:n,url:r},s.value),s)}return dd}var pd={},Ob;function hD(){if(Ob)return pd;Ob=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.Sse=r;const e=xe(),t=pi();function r(n,o={[e.METHOD_METADATA]:t.RequestMethod.GET}){return(i,s,a)=>(n=n&&n.length?n:"/",Reflect.defineMetadata(e.PATH_METADATA,n,a.value),Reflect.defineMetadata(e.METHOD_METADATA,o[e.METHOD_METADATA],a.value),Reflect.defineMetadata(e.SSE_METADATA,!0,a.value),a)}return pd}var wb;function vD(){return wb||(wb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(oD(),e),t.__exportStar(sD(),e),t.__exportStar(cD(),e),t.__exportStar(lD(),e),t.__exportStar(dD(),e),t.__exportStar(pD(),e),t.__exportStar(fD(),e),t.__exportStar(hD(),e)})(Cf)),Cf}var Sb;function vg(){return Sb||(Sb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(ar(),e),t.__exportStar(aD(),e),t.__exportStar(vD(),e)})(Sf)),Sf}var Nf={},ji={},Tb;function je(){if(Tb)return ji;Tb=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.HttpStatus=void 0;var e;return(function(t){t[t.CONTINUE=100]="CONTINUE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.PROCESSING=102]="PROCESSING",t[t.EARLYHINTS=103]="EARLYHINTS",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.MULTI_STATUS=207]="MULTI_STATUS",t[t.ALREADY_REPORTED=208]="ALREADY_REPORTED",t[t.CONTENT_DIFFERENT=210]="CONTENT_DIFFERENT",t[t.AMBIGUOUS=300]="AMBIGUOUS",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.FOUND=302]="FOUND",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",t[t.URI_TOO_LONG=414]="URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",t[t.MISDIRECTED=421]="MISDIRECTED",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.LOCKED=423]="LOCKED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.UNRECOVERABLE_ERROR=456]="UNRECOVERABLE_ERROR",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.LOOP_DETECTED=508]="LOOP_DETECTED"})(e||(ji.HttpStatus=e={})),ji}var qi={},Pb;function mD(){if(Pb)return qi;Pb=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.ShutdownSignal=void 0;var e;return(function(t){t.SIGHUP="SIGHUP",t.SIGINT="SIGINT",t.SIGQUIT="SIGQUIT",t.SIGILL="SIGILL",t.SIGTRAP="SIGTRAP",t.SIGABRT="SIGABRT",t.SIGBUS="SIGBUS",t.SIGFPE="SIGFPE",t.SIGSEGV="SIGSEGV",t.SIGUSR2="SIGUSR2",t.SIGTERM="SIGTERM"})(e||(qi.ShutdownSignal=e={})),qi}var Ni={},Ab;function _D(){if(Ab)return Ni;Ab=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.VersioningType=void 0;var e;return(function(t){t[t.URI=0]="URI",t[t.HEADER=1]="HEADER",t[t.MEDIA_TYPE=2]="MEDIA_TYPE",t[t.CUSTOM=3]="CUSTOM"})(e||(Ni.VersioningType=e={})),Ni}var Rb;function wl(){return Rb||(Rb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(pi(),e),t.__exportStar(je(),e),t.__exportStar(mD(),e),t.__exportStar(_D(),e)})(Nf)),Nf}var Ff={},Fi={},ki={},Di={},Mb;function aC(){if(Mb)return Di;Mb=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.IntrinsicException=void 0;class e extends Error{}return Di.IntrinsicException=e,Di}var Ib;function He(){if(Ib)return ki;Ib=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.HttpException=void 0;const e=ne(),t=aC();class r extends t.IntrinsicException{constructor(o,i,s){super(),this.response=o,this.status=i,this.options=s,this.initMessage(),this.initName(),this.initCause()}initCause(){if(this.options?.cause){this.cause=this.options.cause;return}}initMessage(){(0,e.isString)(this.response)?this.message=this.response:(0,e.isObject)(this.response)&&(0,e.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(" ")??"Error")}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(o,i,s){return o?(0,e.isString)(o)||Array.isArray(o)||(0,e.isNumber)(o)?{message:o,error:i,statusCode:s}:o:{message:i,statusCode:s}}static getDescriptionFrom(o){return(0,e.isString)(o)?o:o?.description}static getHttpExceptionOptionsFrom(o){return(0,e.isString)(o)?{}:o}static extractDescriptionAndOptionsFrom(o){const i=(0,e.isString)(o)?o:o?.description,s=(0,e.isString)(o)?{}:o;return{description:i,httpExceptionOptions:s}}}return ki.HttpException=r,ki}var Cb;function gD(){if(Cb)return Fi;Cb=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.BadGatewayException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Bad Gateway"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.BAD_GATEWAY),e.HttpStatus.BAD_GATEWAY,a)}}return Fi.BadGatewayException=r,Fi}var Li={},jb;function yD(){if(jb)return Li;jb=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.BadRequestException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Bad Request"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.BAD_REQUEST),e.HttpStatus.BAD_REQUEST,a)}}return Li.BadRequestException=r,Li}var Ui={},qb;function bD(){if(qb)return Ui;qb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.ConflictException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Conflict"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.CONFLICT),e.HttpStatus.CONFLICT,a)}}return Ui.ConflictException=r,Ui}var zi={},Nb;function ED(){if(Nb)return zi;Nb=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.ForbiddenException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Forbidden"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.FORBIDDEN),e.HttpStatus.FORBIDDEN,a)}}return zi.ForbiddenException=r,zi}var Bi={},Fb;function xD(){if(Fb)return Bi;Fb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.GatewayTimeoutException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Gateway Timeout"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.GATEWAY_TIMEOUT),e.HttpStatus.GATEWAY_TIMEOUT,a)}}return Bi.GatewayTimeoutException=r,Bi}var Hi={},kb;function OD(){if(kb)return Hi;kb=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.GoneException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Gone"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.GONE),e.HttpStatus.GONE,a)}}return Hi.GoneException=r,Hi}var Vi={},Db;function wD(){if(Db)return Vi;Db=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.HttpVersionNotSupportedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="HTTP Version Not Supported"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,a)}}return Vi.HttpVersionNotSupportedException=r,Vi}var Gi={},Lb;function SD(){if(Lb)return Gi;Lb=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.ImATeapotException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="I'm a teapot"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.I_AM_A_TEAPOT),e.HttpStatus.I_AM_A_TEAPOT,a)}}return Gi.ImATeapotException=r,Gi}var Wi={},Ub;function TD(){if(Ub)return Wi;Ub=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.InternalServerErrorException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Internal Server Error"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.INTERNAL_SERVER_ERROR),e.HttpStatus.INTERNAL_SERVER_ERROR,a)}}return Wi.InternalServerErrorException=r,Wi}var Zi={},zb;function PD(){if(zb)return Zi;zb=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.MethodNotAllowedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Method Not Allowed"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.METHOD_NOT_ALLOWED),e.HttpStatus.METHOD_NOT_ALLOWED,a)}}return Zi.MethodNotAllowedException=r,Zi}var Ki={},Bb;function AD(){if(Bb)return Ki;Bb=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.MisdirectedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Misdirected"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.MISDIRECTED),e.HttpStatus.MISDIRECTED,a)}}return Ki.MisdirectedException=r,Ki}var Yi={},Hb;function RD(){if(Hb)return Yi;Hb=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.NotAcceptableException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Not Acceptable"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_ACCEPTABLE),e.HttpStatus.NOT_ACCEPTABLE,a)}}return Yi.NotAcceptableException=r,Yi}var Xi={},Vb;function MD(){if(Vb)return Xi;Vb=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.NotFoundException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Not Found"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_FOUND),e.HttpStatus.NOT_FOUND,a)}}return Xi.NotFoundException=r,Xi}var Ji={},Gb;function ID(){if(Gb)return Ji;Gb=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.NotImplementedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Not Implemented"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_IMPLEMENTED),e.HttpStatus.NOT_IMPLEMENTED,a)}}return Ji.NotImplementedException=r,Ji}var Qi={},Wb;function CD(){if(Wb)return Qi;Wb=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.PayloadTooLargeException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Payload Too Large"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.PAYLOAD_TOO_LARGE),e.HttpStatus.PAYLOAD_TOO_LARGE,a)}}return Qi.PayloadTooLargeException=r,Qi}var $i={},Zb;function jD(){if(Zb)return $i;Zb=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.PreconditionFailedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Precondition Failed"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.PRECONDITION_FAILED),e.HttpStatus.PRECONDITION_FAILED,a)}}return $i.PreconditionFailedException=r,$i}var ea={},Kb;function qD(){if(Kb)return ea;Kb=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.RequestTimeoutException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Request Timeout"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.REQUEST_TIMEOUT),e.HttpStatus.REQUEST_TIMEOUT,a)}}return ea.RequestTimeoutException=r,ea}var ta={},Yb;function ND(){if(Yb)return ta;Yb=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.ServiceUnavailableException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Service Unavailable"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.SERVICE_UNAVAILABLE),e.HttpStatus.SERVICE_UNAVAILABLE,a)}}return ta.ServiceUnavailableException=r,ta}var ra={},Xb;function FD(){if(Xb)return ra;Xb=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.UnauthorizedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Unauthorized"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.UNAUTHORIZED),e.HttpStatus.UNAUTHORIZED,a)}}return ra.UnauthorizedException=r,ra}var na={},Jb;function kD(){if(Jb)return na;Jb=1,Object.defineProperty(na,"__esModule",{value:!0}),na.UnprocessableEntityException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Unprocessable Entity"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.UNPROCESSABLE_ENTITY),e.HttpStatus.UNPROCESSABLE_ENTITY,a)}}return na.UnprocessableEntityException=r,na}var ia={},Qb;function DD(){if(Qb)return ia;Qb=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.UnsupportedMediaTypeException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Unsupported Media Type"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.UNSUPPORTED_MEDIA_TYPE),e.HttpStatus.UNSUPPORTED_MEDIA_TYPE,a)}}return ia.UnsupportedMediaTypeException=r,ia}var $b;function mg(){return $b||($b=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(gD(),e),t.__exportStar(yD(),e),t.__exportStar(bD(),e),t.__exportStar(ED(),e),t.__exportStar(xD(),e),t.__exportStar(OD(),e),t.__exportStar(wD(),e),t.__exportStar(He(),e),t.__exportStar(SD(),e),t.__exportStar(TD(),e),t.__exportStar(aC(),e),t.__exportStar(PD(),e),t.__exportStar(AD(),e),t.__exportStar(RD(),e),t.__exportStar(MD(),e),t.__exportStar(ID(),e),t.__exportStar(CD(),e),t.__exportStar(jD(),e),t.__exportStar(qD(),e),t.__exportStar(ND(),e),t.__exportStar(FD(),e),t.__exportStar(kD(),e),t.__exportStar(DD(),e)})(Ff)),Ff}var kf={},aa={},Df={},qn={},Lf={},eE;function or(){return eE||(eE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.yellow=e.clc=e.isColorAllowed=void 0;const t=()=>!process.env.NO_COLOR;e.isColorAllowed=t;const r=n=>o=>(0,e.isColorAllowed)()?n(o):o;e.clc={bold:r(n=>`\x1B[1m${n}\x1B[0m`),green:r(n=>`\x1B[32m${n}\x1B[39m`),yellow:r(n=>`\x1B[33m${n}\x1B[39m`),red:r(n=>`\x1B[31m${n}\x1B[39m`),magentaBright:r(n=>`\x1B[95m${n}\x1B[39m`),cyanBright:r(n=>`\x1B[96m${n}\x1B[39m`)},e.yellow=r(n=>`\x1B[38;5;3m${n}\x1B[39m`)})(Lf)),Lf}var fd={},tE;function oC(){if(tE)return fd;tE=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.isLogLevelEnabled=t;const e={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};function t(r,n){if(!n||Array.isArray(n)&&n?.length===0)return!1;if(n.includes(r))return!0;let o=-1/0;for(const s of n){const a=e[s];a>o&&(o=a)}return e[r]>=o}return fd}var rE;function _g(){if(rE)return qn;rE=1;var e;Object.defineProperty(qn,"__esModule",{value:!0}),qn.ConsoleLogger=void 0;const t=ae(),r=li,n=ar(),o=or(),i=ne(),s=oC(),a=5,c=["log","error","warn","debug","verbose","fatal"],u=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let p=e=class{constructor(d,f){let[h,m]=(0,i.isString)(d)?[d,f]:f?[void 0,f]:[d?.context,d];m=m??{},m.logLevels??=c,m.colors??=m.colors??(m.json?!1:(0,o.isColorAllowed)()),m.prefix??="Nest",this.options=m,this.inspectOptions=this.getInspectOptions(),h&&(this.context=h,this.originalContext=h)}log(d,...f){if(!this.isLevelEnabled("log"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"log")}error(d,...f){if(!this.isLevelEnabled("error"))return;const{messages:h,context:m,stack:v}=this.getContextAndStackAndMessagesToPrint([d,...f]);this.printMessages(h,m,"error","stderr",v),this.printStackTrace(v)}warn(d,...f){if(!this.isLevelEnabled("warn"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"warn")}debug(d,...f){if(!this.isLevelEnabled("debug"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"debug")}verbose(d,...f){if(!this.isLevelEnabled("verbose"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"verbose")}fatal(d,...f){if(!this.isLevelEnabled("fatal"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"fatal")}setLogLevels(d){this.options||(this.options={}),this.options.logLevels=d}setContext(d){this.context=d}resetContext(){this.context=this.originalContext}isLevelEnabled(d){const f=this.options?.logLevels;return(0,s.isLogLevelEnabled)(d,f)}getTimestamp(){return u.format(Date.now())}printMessages(d,f="",h="log",m,v){d.forEach(_=>{if(this.options.json){this.printAsJson(_,{context:f,logLevel:h,writeStreamType:m,errorStack:v});return}const g=this.formatPid(process.pid),y=this.formatContext(f),b=this.updateAndGetTimestampDiff(),E=h.toUpperCase().padStart(7," "),x=this.formatMessage(h,_,g,E,y,b);this.options.forceConsole?m==="stderr"?console.error(x.trim()):console.log(x.trim()):process[m??"stdout"].write(x)})}printAsJson(d,f){const h=this.getJsonLogObject(d,f),m=!this.options.colors&&this.inspectOptions.compact===!0?JSON.stringify(h,this.stringifyReplacer):(0,r.inspect)(h,this.inspectOptions);this.options.forceConsole?f.writeStreamType==="stderr"?console.error(m):console.log(m):process[f.writeStreamType??"stdout"].write(`${m}
|
|
1
|
+
"use strict";var mk=Object.create;var qy=Object.defineProperty;var _k=Object.getOwnPropertyDescriptor;var gk=Object.getOwnPropertyNames;var yk=Object.getPrototypeOf,bk=Object.prototype.hasOwnProperty;var Ek=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gk(t))!bk.call(e,o)&&o!==r&&qy(e,o,{get:()=>t[o],enumerable:!(n=_k(t,o))||n.enumerable});return e};var xk=(e,t,r)=>(r=e!=null?mk(yk(e)):{},Ek(t||!e||!e.__esModule?qy(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ir=require("path"),eC=require("url"),El=require("fs"),vp=require("os"),ci=require("crypto"),mp=require("stream"),ui=require("util"),Ok=require("async_hooks"),wk=require("perf_hooks"),Sk=require("express"),Pk=require("http"),Tk=require("https"),dg=require("events"),_p=require("buffer"),Ak=require("repl");var bf=typeof document<"u"?document.currentScript:null;function Rk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Mk=Rk(ir);var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function li(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Fy={};var ky;function pg(){if(ky)return Fy;ky=1;var e;return(function(t){(function(r){var n=typeof globalThis=="object"?globalThis:typeof ft=="object"?ft:typeof self=="object"?self:typeof this=="object"?this:c(),o=i(t);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),r(o,n),typeof n.Reflect>"u"&&(n.Reflect=t);function i(u,p){return function(l,d){Object.defineProperty(u,l,{configurable:!0,writable:!0,value:d}),p&&p(l,d)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(r,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!c&&!u,l={create:c?function(){return gr(Object.create(null))}:u?function(){return gr({__proto__:null})}:function(){return gr({})},has:p?function(H,G){return o.call(H,G)}:function(H,G){return G in H},get:p?function(H,G){return o.call(H,G)?H[G]:void 0}:function(H,G){return H[G]}},d=Object.getPrototypeOf(Function),f=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ge(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:xi(),m=typeof WeakMap=="function"?WeakMap:Oi(),v=i?Symbol.for("@reflect-metadata:registry"):void 0,_=me(),g=qe(_);function y(H,G,K,re){if(N(K)){if(!I(H))throw new TypeError;if(!$(G))throw new TypeError;return q(H,G)}else{if(!I(H))throw new TypeError;if(!M(G))throw new TypeError;if(!M(re)&&!N(re)&&!L(re))throw new TypeError;return L(re)&&(re=void 0),K=R(K),D(H,G,K,re)}}r("decorate",y);function b(H,G){function K(re,fe){if(!M(re))throw new TypeError;if(!N(fe)&&!oe(fe))throw new TypeError;J(H,G,re,fe)}return K}r("metadata",b);function E(H,G,K,re){if(!M(K))throw new TypeError;return N(re)||(re=R(re)),J(H,G,K,re)}r("defineMetadata",E);function x(H,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),V(H,G,K)}r("hasMetadata",x);function O(H,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),k(H,G,K)}r("hasOwnMetadata",O);function S(H,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),F(H,G,K)}r("getMetadata",S);function w(H,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),Z(H,G,K)}r("getOwnMetadata",w);function A(H,G){if(!M(H))throw new TypeError;return N(G)||(G=R(G)),U(H,G)}r("getMetadataKeys",A);function P(H,G){if(!M(H))throw new TypeError;return N(G)||(G=R(G)),Q(H,G)}r("getOwnMetadataKeys",P);function T(H,G,K){if(!M(G))throw new TypeError;if(N(K)||(K=R(K)),!M(G))throw new TypeError;N(K)||(K=R(K));var re=ye(G,K,!1);return N(re)?!1:re.OrdinaryDeleteMetadata(H,G,K)}r("deleteMetadata",T);function q(H,G){for(var K=H.length-1;K>=0;--K){var re=H[K],fe=re(G);if(!N(fe)&&!L(fe)){if(!$(fe))throw new TypeError;G=fe}}return G}function D(H,G,K,re){for(var fe=H.length-1;fe>=0;--fe){var Be=H[fe],Ue=Be(G,K,re);if(!N(Ue)&&!L(Ue)){if(!M(Ue))throw new TypeError;re=Ue}}return re}function V(H,G,K){var re=k(H,G,K);if(re)return!0;var fe=Ee(G);return L(fe)?!1:V(H,fe,K)}function k(H,G,K){var re=ye(G,K,!1);return N(re)?!1:Y(re.OrdinaryHasOwnMetadata(H,G,K))}function F(H,G,K){var re=k(H,G,K);if(re)return Z(H,G,K);var fe=Ee(G);if(!L(fe))return F(H,fe,K)}function Z(H,G,K){var re=ye(G,K,!1);if(!N(re))return re.OrdinaryGetOwnMetadata(H,G,K)}function J(H,G,K,re){var fe=ye(K,re,!0);fe.OrdinaryDefineOwnMetadata(H,G,K,re)}function U(H,G){var K=Q(H,G),re=Ee(H);if(re===null)return K;var fe=U(re,G);if(fe.length<=0)return K;if(K.length<=0)return fe;for(var Be=new h,Ue=[],Oe=0,ie=K;Oe<ie.length;Oe++){var se=ie[Oe],ue=Be.has(se);ue||(Be.add(se),Ue.push(se))}for(var de=0,Se=fe;de<Se.length;de++){var se=Se[de],ue=Be.has(se);ue||(Be.add(se),Ue.push(se))}return Ue}function Q(H,G){var K=ye(H,G,!1);return K?K.OrdinaryOwnMetadataKeys(H,G):[]}function C(H){if(H===null)return 1;switch(typeof H){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return H===null?1:6;default:return 6}}function N(H){return H===void 0}function L(H){return H===null}function B(H){return typeof H=="symbol"}function M(H){return typeof H=="object"?H!==null:typeof H=="function"}function j(H,G){switch(C(H)){case 0:return H;case 1:return H;case 2:return H;case 3:return H;case 4:return H;case 5:return H}var K="string",re=le(H,s);if(re!==void 0){var fe=re.call(H,K);if(M(fe))throw new TypeError;return fe}return z(H)}function z(H,G){var K,re;{var fe=H.toString;if(W(fe)){var re=fe.call(H);if(!M(re))return re}var K=H.valueOf;if(W(K)){var re=K.call(H);if(!M(re))return re}}throw new TypeError}function Y(H){return!!H}function ee(H){return""+H}function R(H){var G=j(H);return B(G)?G:ee(G)}function I(H){return Array.isArray?Array.isArray(H):H instanceof Object?H instanceof Array:Object.prototype.toString.call(H)==="[object Array]"}function W(H){return typeof H=="function"}function $(H){return typeof H=="function"}function oe(H){switch(C(H)){case 3:return!0;case 4:return!0;default:return!1}}function te(H,G){return H===G||H!==H&&G!==G}function le(H,G){var K=H[G];if(K!=null){if(!W(K))throw new TypeError;return K}}function _e(H){var G=le(H,a);if(!W(G))throw new TypeError;var K=G.call(H);if(!M(K))throw new TypeError;return K}function be(H){return H.value}function Pe(H){var G=H.next();return G.done?!1:G}function Re(H){var G=H.return;G&&G.call(H)}function Ee(H){var G=Object.getPrototypeOf(H);if(typeof H!="function"||H===d||G!==d)return G;var K=H.prototype,re=K&&Object.getPrototypeOf(K);if(re==null||re===Object.prototype)return G;var fe=re.constructor;return typeof fe!="function"||fe===H?G:fe}function Te(){var H;!N(v)&&typeof n.Reflect<"u"&&!(v in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(H=Ke(n.Reflect));var G,K,re,fe=new m,Be={registerProvider:Ue,getProvider:ie,setProvider:ue};return Be;function Ue(de){if(!Object.isExtensible(Be))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case H===de:break;case N(G):G=de;break;case G===de:break;case N(K):K=de;break;case K===de:break;default:re===void 0&&(re=new h),re.add(de);break}}function Oe(de,Se){if(!N(G)){if(G.isProviderFor(de,Se))return G;if(!N(K)){if(K.isProviderFor(de,Se))return G;if(!N(re))for(var Me=_e(re);;){var ke=Pe(Me);if(!ke)return;var st=be(ke);if(st.isProviderFor(de,Se))return Re(Me),st}}}if(!N(H)&&H.isProviderFor(de,Se))return H}function ie(de,Se){var Me=fe.get(de),ke;return N(Me)||(ke=Me.get(Se)),N(ke)&&(ke=Oe(de,Se),N(ke)||(N(Me)&&(Me=new f,fe.set(de,Me)),Me.set(Se,ke))),ke}function se(de){if(N(de))throw new TypeError;return G===de||K===de||!N(re)&&re.has(de)}function ue(de,Se,Me){if(!se(Me))throw new Error("Metadata provider not registered.");var ke=ie(de,Se);if(ke!==Me){if(!N(ke))return!1;var st=fe.get(de);N(st)&&(st=new f,fe.set(de,st)),st.set(Se,Me)}return!0}}function me(){var H;return!N(v)&&M(n.Reflect)&&Object.isExtensible(n.Reflect)&&(H=n.Reflect[v]),N(H)&&(H=Te()),!N(v)&&M(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:H}),H}function qe(H){var G=new m,K={isProviderFor:function(se,ue){var de=G.get(se);return N(de)?!1:de.has(ue)},OrdinaryDefineOwnMetadata:Ue,OrdinaryHasOwnMetadata:fe,OrdinaryGetOwnMetadata:Be,OrdinaryOwnMetadataKeys:Oe,OrdinaryDeleteMetadata:ie};return _.registerProvider(K),K;function re(se,ue,de){var Se=G.get(se),Me=!1;if(N(Se)){if(!de)return;Se=new f,G.set(se,Se),Me=!0}var ke=Se.get(ue);if(N(ke)){if(!de)return;if(ke=new f,Se.set(ue,ke),!H.setProvider(se,ue,K))throw Se.delete(ue),Me&&G.delete(se),new Error("Wrong provider for target.")}return ke}function fe(se,ue,de){var Se=re(ue,de,!1);return N(Se)?!1:Y(Se.has(se))}function Be(se,ue,de){var Se=re(ue,de,!1);if(!N(Se))return Se.get(se)}function Ue(se,ue,de,Se){var Me=re(de,Se,!0);Me.set(se,ue)}function Oe(se,ue){var de=[],Se=re(se,ue,!1);if(N(Se))return de;for(var Me=Se.keys(),ke=_e(Me),st=0;;){var Rn=Pe(ke);if(!Rn)return de.length=st,de;var wi=be(Rn);try{de[st]=wi}catch(Si){try{Re(ke)}finally{throw Si}}st++}}function ie(se,ue,de){var Se=re(ue,de,!1);if(N(Se)||!Se.delete(se))return!1;if(Se.size===0){var Me=G.get(ue);N(Me)||(Me.delete(de),Me.size===0&&G.delete(Me))}return!0}}function Ke(H){var G=H.defineMetadata,K=H.hasOwnMetadata,re=H.getOwnMetadata,fe=H.getOwnMetadataKeys,Be=H.deleteMetadata,Ue=new m,Oe={isProviderFor:function(ie,se){var ue=Ue.get(ie);return!N(ue)&&ue.has(se)?!0:fe(ie,se).length?(N(ue)&&(ue=new h,Ue.set(ie,ue)),ue.add(se),!0):!1},OrdinaryDefineOwnMetadata:G,OrdinaryHasOwnMetadata:K,OrdinaryGetOwnMetadata:re,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:Be};return Oe}function ye(H,G,K){var re=_.getProvider(H,G);if(!N(re))return re;if(K){if(_.setProvider(H,G,g))return g;throw new Error("Illegal state.")}}function Ge(){var H={},G=[],K=(function(){function Oe(ie,se,ue){this._index=0,this._keys=ie,this._values=se,this._selector=ue}return Oe.prototype["@@iterator"]=function(){return this},Oe.prototype[a]=function(){return this},Oe.prototype.next=function(){var ie=this._index;if(ie>=0&&ie<this._keys.length){var se=this._selector(this._keys[ie],this._values[ie]);return ie+1>=this._keys.length?(this._index=-1,this._keys=G,this._values=G):this._index++,{value:se,done:!1}}return{value:void 0,done:!0}},Oe.prototype.throw=function(ie){throw this._index>=0&&(this._index=-1,this._keys=G,this._values=G),ie},Oe.prototype.return=function(ie){return this._index>=0&&(this._index=-1,this._keys=G,this._values=G),{value:ie,done:!0}},Oe})(),re=(function(){function Oe(){this._keys=[],this._values=[],this._cacheKey=H,this._cacheIndex=-2}return Object.defineProperty(Oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Oe.prototype.has=function(ie){return this._find(ie,!1)>=0},Oe.prototype.get=function(ie){var se=this._find(ie,!1);return se>=0?this._values[se]:void 0},Oe.prototype.set=function(ie,se){var ue=this._find(ie,!0);return this._values[ue]=se,this},Oe.prototype.delete=function(ie){var se=this._find(ie,!1);if(se>=0){for(var ue=this._keys.length,de=se+1;de<ue;de++)this._keys[de-1]=this._keys[de],this._values[de-1]=this._values[de];return this._keys.length--,this._values.length--,te(ie,this._cacheKey)&&(this._cacheKey=H,this._cacheIndex=-2),!0}return!1},Oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=H,this._cacheIndex=-2},Oe.prototype.keys=function(){return new K(this._keys,this._values,fe)},Oe.prototype.values=function(){return new K(this._keys,this._values,Be)},Oe.prototype.entries=function(){return new K(this._keys,this._values,Ue)},Oe.prototype["@@iterator"]=function(){return this.entries()},Oe.prototype[a]=function(){return this.entries()},Oe.prototype._find=function(ie,se){if(!te(this._cacheKey,ie)){this._cacheIndex=-1;for(var ue=0;ue<this._keys.length;ue++)if(te(this._keys[ue],ie)){this._cacheIndex=ue;break}}return this._cacheIndex<0&&se&&(this._cacheIndex=this._keys.length,this._keys.push(ie),this._values.push(void 0)),this._cacheIndex},Oe})();return re;function fe(Oe,ie){return Oe}function Be(Oe,ie){return ie}function Ue(Oe,ie){return[Oe,ie]}}function xi(){var H=(function(){function G(){this._map=new f}return Object.defineProperty(G.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),G.prototype.has=function(K){return this._map.has(K)},G.prototype.add=function(K){return this._map.set(K,K),this},G.prototype.delete=function(K){return this._map.delete(K)},G.prototype.clear=function(){this._map.clear()},G.prototype.keys=function(){return this._map.keys()},G.prototype.values=function(){return this._map.keys()},G.prototype.entries=function(){return this._map.entries()},G.prototype["@@iterator"]=function(){return this.keys()},G.prototype[a]=function(){return this.keys()},G})();return H}function Oi(){var H=16,G=l.create(),K=re();return(function(){function ie(){this._key=re()}return ie.prototype.has=function(se){var ue=fe(se,!1);return ue!==void 0?l.has(ue,this._key):!1},ie.prototype.get=function(se){var ue=fe(se,!1);return ue!==void 0?l.get(ue,this._key):void 0},ie.prototype.set=function(se,ue){var de=fe(se,!0);return de[this._key]=ue,this},ie.prototype.delete=function(se){var ue=fe(se,!1);return ue!==void 0?delete ue[this._key]:!1},ie.prototype.clear=function(){this._key=re()},ie})();function re(){var ie;do ie="@@WeakMap@@"+Oe();while(l.has(G,ie));return G[ie]=!0,ie}function fe(ie,se){if(!o.call(ie,K)){if(!se)return;Object.defineProperty(ie,K,{value:l.create()})}return ie[K]}function Be(ie,se){for(var ue=0;ue<se;++ue)ie[ue]=Math.random()*255|0;return ie}function Ue(ie){if(typeof Uint8Array=="function"){var se=new Uint8Array(ie);return typeof crypto<"u"?crypto.getRandomValues(se):typeof msCrypto<"u"?msCrypto.getRandomValues(se):Be(se,ie),se}return Be(new Array(ie),ie)}function Oe(){var ie=Ue(H);ie[6]=ie[6]&79|64,ie[8]=ie[8]&191|128;for(var se="",ue=0;ue<H;++ue){var de=ie[ue];(ue===4||ue===6||ue===8)&&(se+="-"),de<16&&(se+="0"),se+=de.toString(16).toLowerCase()}return se}}function gr(H){return H.__=void 0,delete H.__,H}})})(e||(e={})),Fy}pg();var At={exports:{}};const Ik="17.3.1",Ck={version:Ik};var Dy;function jk(){if(Dy)return At.exports;Dy=1;const e=El,t=ir,r=vp,n=ci,o=Ck.version,i=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","🤖 agentic secret storage: https://dotenvx.com/as2","⚡️ secrets for agents: https://dotenvx.com/as2","🛡️ auth for agents: https://vestauth.com","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function s(){return i[Math.floor(Math.random()*i.length)]}function a(A){return typeof A=="string"?!["false","0","no","off",""].includes(A.toLowerCase()):!!A}function c(){return process.stdout.isTTY}function u(A){return c()?`\x1B[2m${A}\x1B[0m`:A}const p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function l(A){const P={};let T=A.toString();T=T.replace(/\r\n?/mg,`
|
|
2
|
+
`);let q;for(;(q=p.exec(T))!=null;){const D=q[1];let V=q[2]||"";V=V.trim();const k=V[0];V=V.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),k==='"'&&(V=V.replace(/\\n/g,`
|
|
3
|
+
`),V=V.replace(/\\r/g,"\r")),P[D]=V}return P}function d(A){A=A||{};const P=g(A);A.path=P;const T=w.configDotenv(A);if(!T.parsed){const k=new Error(`MISSING_DATA: Cannot parse ${P} for an unknown reason`);throw k.code="MISSING_DATA",k}const q=v(A).split(","),D=q.length;let V;for(let k=0;k<D;k++)try{const F=q[k].trim(),Z=_(T,F);V=w.decrypt(Z.ciphertext,Z.key);break}catch(F){if(k+1>=D)throw F}return w.parse(V)}function f(A){console.error(`[dotenv@${o}][WARN] ${A}`)}function h(A){console.log(`[dotenv@${o}][DEBUG] ${A}`)}function m(A){console.log(`[dotenv@${o}] ${A}`)}function v(A){return A&&A.DOTENV_KEY&&A.DOTENV_KEY.length>0?A.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function _(A,P){let T;try{T=new URL(P)}catch(F){if(F.code==="ERR_INVALID_URL"){const Z=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw Z.code="INVALID_DOTENV_KEY",Z}throw F}const q=T.password;if(!q){const F=new Error("INVALID_DOTENV_KEY: Missing key part");throw F.code="INVALID_DOTENV_KEY",F}const D=T.searchParams.get("environment");if(!D){const F=new Error("INVALID_DOTENV_KEY: Missing environment part");throw F.code="INVALID_DOTENV_KEY",F}const V=`DOTENV_VAULT_${D.toUpperCase()}`,k=A.parsed[V];if(!k){const F=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${V} in your .env.vault file.`);throw F.code="NOT_FOUND_DOTENV_ENVIRONMENT",F}return{ciphertext:k,key:q}}function g(A){let P=null;if(A&&A.path&&A.path.length>0)if(Array.isArray(A.path))for(const T of A.path)e.existsSync(T)&&(P=T.endsWith(".vault")?T:`${T}.vault`);else P=A.path.endsWith(".vault")?A.path:`${A.path}.vault`;else P=t.resolve(process.cwd(),".env.vault");return e.existsSync(P)?P:null}function y(A){return A[0]==="~"?t.join(r.homedir(),A.slice(1)):A}function b(A){const P=a(process.env.DOTENV_CONFIG_DEBUG||A&&A.debug),T=a(process.env.DOTENV_CONFIG_QUIET||A&&A.quiet);(P||!T)&&m("Loading env from encrypted .env.vault");const q=w._parseVault(A);let D=process.env;return A&&A.processEnv!=null&&(D=A.processEnv),w.populate(D,q,A),{parsed:q}}function E(A){const P=t.resolve(process.cwd(),".env");let T="utf8",q=process.env;A&&A.processEnv!=null&&(q=A.processEnv);let D=a(q.DOTENV_CONFIG_DEBUG||A&&A.debug),V=a(q.DOTENV_CONFIG_QUIET||A&&A.quiet);A&&A.encoding?T=A.encoding:D&&h("No encoding is specified. UTF-8 is used by default");let k=[P];if(A&&A.path)if(!Array.isArray(A.path))k=[y(A.path)];else{k=[];for(const U of A.path)k.push(y(U))}let F;const Z={};for(const U of k)try{const Q=w.parse(e.readFileSync(U,{encoding:T}));w.populate(Z,Q,A)}catch(Q){D&&h(`Failed to load ${U} ${Q.message}`),F=Q}const J=w.populate(q,Z,A);if(D=a(q.DOTENV_CONFIG_DEBUG||D),V=a(q.DOTENV_CONFIG_QUIET||V),D||!V){const U=Object.keys(J).length,Q=[];for(const C of k)try{const N=t.relative(process.cwd(),C);Q.push(N)}catch(N){D&&h(`Failed to load ${C} ${N.message}`),F=N}m(`injecting env (${U}) from ${Q.join(",")} ${u(`-- tip: ${s()}`)}`)}return F?{parsed:Z,error:F}:{parsed:Z}}function x(A){if(v(A).length===0)return w.configDotenv(A);const P=g(A);return P?w._configVault(A):(f(`You set DOTENV_KEY but you are missing a .env.vault file at ${P}. Did you forget to build it?`),w.configDotenv(A))}function O(A,P){const T=Buffer.from(P.slice(-64),"hex");let q=Buffer.from(A,"base64");const D=q.subarray(0,12),V=q.subarray(-16);q=q.subarray(12,-16);try{const k=n.createDecipheriv("aes-256-gcm",T,D);return k.setAuthTag(V),`${k.update(q)}${k.final()}`}catch(k){const F=k instanceof RangeError,Z=k.message==="Invalid key length",J=k.message==="Unsupported state or unable to authenticate data";if(F||Z){const U=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw U.code="INVALID_DOTENV_KEY",U}else if(J){const U=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw U.code="DECRYPTION_FAILED",U}else throw k}}function S(A,P,T={}){const q=!!(T&&T.debug),D=!!(T&&T.override),V={};if(typeof P!="object"){const k=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw k.code="OBJECT_REQUIRED",k}for(const k of Object.keys(P))Object.prototype.hasOwnProperty.call(A,k)?(D===!0&&(A[k]=P[k],V[k]=P[k]),q&&h(D===!0?`"${k}" is already defined and WAS overwritten`:`"${k}" is already defined and was NOT overwritten`)):(A[k]=P[k],V[k]=P[k]);return V}const w={configDotenv:E,_configVault:b,_parseVault:d,config:x,decrypt:O,parse:l,populate:S};return At.exports.configDotenv=w.configDotenv,At.exports._configVault=w._configVault,At.exports._parseVault=w._parseVault,At.exports.config=w.config,At.exports.decrypt=w.decrypt,At.exports.parse=w.parse,At.exports.populate=w.populate,At.exports=w,At.exports}var Nk=jk();const qk=eC.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:bf&&bf.tagName.toUpperCase()==="SCRIPT"&&bf.src||new URL("index.cjs",document.baseURI).href),Fk=ir.dirname(qk),kk=(e={})=>{const{env:t,configPath:r}=e,n=ir.resolve(Fk,`${r??"."}/.env${t?`.${t}`:""}`),{parsed:o}=Nk.config({path:n});return o};var Ef,Ly;function Dk(){if(Ly)return Ef;Ly=1,Ef=i,i.default=i,i.stable=u,i.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(d,f,h,m){typeof m>"u"&&(m=o()),a(d,"",0,[],void 0,0,m);var v;try{n.length===0?v=JSON.stringify(d,f,h):v=JSON.stringify(d,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var _=r.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return v}function s(d,f,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:d}),r.push([m,h,f,v])):n.push([f,h,d]):(m[h]=d,r.push([m,h,f]))}function a(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)a(d[y],y,y,m,d,_,g);else{var b=Object.keys(d);for(y=0;y<b.length;y++){var E=b[y];a(d[E],E,y,m,d,_,g)}}m.pop()}}function c(d,f){return d<f?-1:d>f?1:0}function u(d,f,h,m){typeof m>"u"&&(m=o());var v=p(d,"",0,[],void 0,0,m)||d,_;try{n.length===0?_=JSON.stringify(v,f,h):_=JSON.stringify(v,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var g=r.pop();g.length===4?Object.defineProperty(g[0],g[1],g[3]):g[0][g[1]]=g[2]}}return _}function p(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)p(d[y],y,y,m,d,_,g);else{var b={},E=Object.keys(d).sort(c);for(y=0;y<E.length;y++){var x=E[y];p(d[x],x,y,m,d,_,g),b[x]=d[x]}if(typeof v<"u")r.push([v,f,d]),v[f]=b;else return b}m.pop()}}function l(d){return d=typeof d<"u"?d:function(f,h){return h},function(f,h){if(n.length>0)for(var m=0;m<n.length;m++){var v=n[m];if(v[1]===f&&v[0]===h){h=v[2],n.splice(m,1);break}}return d.call(this,f,h)}}return Ef}Dk();var xf={},br={},Pi={},Of={},wf={exports:{}},Uy;function ae(){return Uy||(Uy=1,(function(e){var t,r,n,o,i,s,a,c,u,p,l,d,f,h,m,v,_,g,y,b,E,x,O,S,w,A,P,T,q,D,V,k;(function(F){var Z=typeof ft=="object"?ft:typeof self=="object"?self:typeof this=="object"?this:{};F(J(Z,J(e.exports)));function J(U,Q){return U!==Z&&(typeof Object.create=="function"?Object.defineProperty(U,"__esModule",{value:!0}):U.__esModule=!0),function(C,N){return U[C]=Q?Q(C,N):N}}})(function(F){var Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,N){C.__proto__=N}||function(C,N){for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&(C[L]=N[L])};t=function(C,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");Z(C,N);function L(){this.constructor=C}C.prototype=N===null?Object.create(N):(L.prototype=N.prototype,new L)},r=Object.assign||function(C){for(var N,L=1,B=arguments.length;L<B;L++){N=arguments[L];for(var M in N)Object.prototype.hasOwnProperty.call(N,M)&&(C[M]=N[M])}return C},n=function(C,N){var L={};for(var B in C)Object.prototype.hasOwnProperty.call(C,B)&&N.indexOf(B)<0&&(L[B]=C[B]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(C);M<B.length;M++)N.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(C,B[M])&&(L[B[M]]=C[B[M]]);return L},o=function(C,N,L,B){var M=arguments.length,j=M<3?N:B===null?B=Object.getOwnPropertyDescriptor(N,L):B,z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(C,N,L,B);else for(var Y=C.length-1;Y>=0;Y--)(z=C[Y])&&(j=(M<3?z(j):M>3?z(N,L,j):z(N,L))||j);return M>3&&j&&Object.defineProperty(N,L,j),j},i=function(C,N){return function(L,B){N(L,B,C)}},s=function(C,N,L,B,M,j){function z(be){if(be!==void 0&&typeof be!="function")throw new TypeError("Function expected");return be}for(var Y=B.kind,ee=Y==="getter"?"get":Y==="setter"?"set":"value",R=!N&&C?B.static?C:C.prototype:null,I=N||(R?Object.getOwnPropertyDescriptor(R,B.name):{}),W,$=!1,oe=L.length-1;oe>=0;oe--){var te={};for(var le in B)te[le]=le==="access"?{}:B[le];for(var le in B.access)te.access[le]=B.access[le];te.addInitializer=function(be){if($)throw new TypeError("Cannot add initializers after decoration has completed");j.push(z(be||null))};var _e=(0,L[oe])(Y==="accessor"?{get:I.get,set:I.set}:I[ee],te);if(Y==="accessor"){if(_e===void 0)continue;if(_e===null||typeof _e!="object")throw new TypeError("Object expected");(W=z(_e.get))&&(I.get=W),(W=z(_e.set))&&(I.set=W),(W=z(_e.init))&&M.unshift(W)}else(W=z(_e))&&(Y==="field"?M.unshift(W):I[ee]=W)}R&&Object.defineProperty(R,B.name,I),$=!0},a=function(C,N,L){for(var B=arguments.length>2,M=0;M<N.length;M++)L=B?N[M].call(C,L):N[M].call(C);return B?L:void 0},c=function(C){return typeof C=="symbol"?C:"".concat(C)},u=function(C,N,L){return typeof N=="symbol"&&(N=N.description?"[".concat(N.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:L?"".concat(L," ",N):N})},p=function(C,N){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,N)},l=function(C,N,L,B){function M(j){return j instanceof L?j:new L(function(z){z(j)})}return new(L||(L=Promise))(function(j,z){function Y(I){try{R(B.next(I))}catch(W){z(W)}}function ee(I){try{R(B.throw(I))}catch(W){z(W)}}function R(I){I.done?j(I.value):M(I.value).then(Y,ee)}R((B=B.apply(C,N||[])).next())})},d=function(C,N){var L={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},B,M,j,z=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return z.next=Y(0),z.throw=Y(1),z.return=Y(2),typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function Y(R){return function(I){return ee([R,I])}}function ee(R){if(B)throw new TypeError("Generator is already executing.");for(;z&&(z=0,R[0]&&(L=0)),L;)try{if(B=1,M&&(j=R[0]&2?M.return:R[0]?M.throw||((j=M.return)&&j.call(M),0):M.next)&&!(j=j.call(M,R[1])).done)return j;switch(M=0,j&&(R=[R[0]&2,j.value]),R[0]){case 0:case 1:j=R;break;case 4:return L.label++,{value:R[1],done:!1};case 5:L.label++,M=R[1],R=[0];continue;case 7:R=L.ops.pop(),L.trys.pop();continue;default:if(j=L.trys,!(j=j.length>0&&j[j.length-1])&&(R[0]===6||R[0]===2)){L=0;continue}if(R[0]===3&&(!j||R[1]>j[0]&&R[1]<j[3])){L.label=R[1];break}if(R[0]===6&&L.label<j[1]){L.label=j[1],j=R;break}if(j&&L.label<j[2]){L.label=j[2],L.ops.push(R);break}j[2]&&L.ops.pop(),L.trys.pop();continue}R=N.call(C,L)}catch(I){R=[6,I],M=0}finally{B=j=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},f=function(C,N){for(var L in C)L!=="default"&&!Object.prototype.hasOwnProperty.call(N,L)&&q(N,C,L)},q=Object.create?(function(C,N,L,B){B===void 0&&(B=L);var M=Object.getOwnPropertyDescriptor(N,L);(!M||("get"in M?!N.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return N[L]}}),Object.defineProperty(C,B,M)}):(function(C,N,L,B){B===void 0&&(B=L),C[B]=N[L]}),h=function(C){var N=typeof Symbol=="function"&&Symbol.iterator,L=N&&C[N],B=0;if(L)return L.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&B>=C.length&&(C=void 0),{value:C&&C[B++],done:!C}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(C,N){var L=typeof Symbol=="function"&&C[Symbol.iterator];if(!L)return C;var B=L.call(C),M,j=[],z;try{for(;(N===void 0||N-- >0)&&!(M=B.next()).done;)j.push(M.value)}catch(Y){z={error:Y}}finally{try{M&&!M.done&&(L=B.return)&&L.call(B)}finally{if(z)throw z.error}}return j},v=function(){for(var C=[],N=0;N<arguments.length;N++)C=C.concat(m(arguments[N]));return C},_=function(){for(var C=0,N=0,L=arguments.length;N<L;N++)C+=arguments[N].length;for(var B=Array(C),M=0,N=0;N<L;N++)for(var j=arguments[N],z=0,Y=j.length;z<Y;z++,M++)B[M]=j[z];return B},g=function(C,N,L){if(L||arguments.length===2)for(var B=0,M=N.length,j;B<M;B++)(j||!(B in N))&&(j||(j=Array.prototype.slice.call(N,0,B)),j[B]=N[B]);return C.concat(j||Array.prototype.slice.call(N))},y=function(C){return this instanceof y?(this.v=C,this):new y(C)},b=function(C,N,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B=L.apply(C,N||[]),M,j=[];return M=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),Y("next"),Y("throw"),Y("return",z),M[Symbol.asyncIterator]=function(){return this},M;function z(oe){return function(te){return Promise.resolve(te).then(oe,W)}}function Y(oe,te){B[oe]&&(M[oe]=function(le){return new Promise(function(_e,be){j.push([oe,le,_e,be])>1||ee(oe,le)})},te&&(M[oe]=te(M[oe])))}function ee(oe,te){try{R(B[oe](te))}catch(le){$(j[0][3],le)}}function R(oe){oe.value instanceof y?Promise.resolve(oe.value.v).then(I,W):$(j[0][2],oe)}function I(oe){ee("next",oe)}function W(oe){ee("throw",oe)}function $(oe,te){oe(te),j.shift(),j.length&&ee(j[0][0],j[0][1])}},E=function(C){var N,L;return N={},B("next"),B("throw",function(M){throw M}),B("return"),N[Symbol.iterator]=function(){return this},N;function B(M,j){N[M]=C[M]?function(z){return(L=!L)?{value:y(C[M](z)),done:!1}:j?j(z):z}:j}},x=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=C[Symbol.asyncIterator],L;return N?N.call(C):(C=typeof h=="function"?h(C):C[Symbol.iterator](),L={},B("next"),B("throw"),B("return"),L[Symbol.asyncIterator]=function(){return this},L);function B(j){L[j]=C[j]&&function(z){return new Promise(function(Y,ee){z=C[j](z),M(Y,ee,z.done,z.value)})}}function M(j,z,Y,ee){Promise.resolve(ee).then(function(R){j({value:R,done:Y})},z)}},O=function(C,N){return Object.defineProperty?Object.defineProperty(C,"raw",{value:N}):C.raw=N,C};var J=Object.create?(function(C,N){Object.defineProperty(C,"default",{enumerable:!0,value:N})}):function(C,N){C.default=N},U=function(C){return U=Object.getOwnPropertyNames||function(N){var L=[];for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(L[L.length]=B);return L},U(C)};S=function(C){if(C&&C.__esModule)return C;var N={};if(C!=null)for(var L=U(C),B=0;B<L.length;B++)L[B]!=="default"&&q(N,C,L[B]);return J(N,C),N},w=function(C){return C&&C.__esModule?C:{default:C}},A=function(C,N,L,B){if(L==="a"&&!B)throw new TypeError("Private accessor was defined without a getter");if(typeof N=="function"?C!==N||!B:!N.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?B:L==="a"?B.call(C):B?B.value:N.get(C)},P=function(C,N,L,B,M){if(B==="m")throw new TypeError("Private method is not writable");if(B==="a"&&!M)throw new TypeError("Private accessor was defined without a setter");if(typeof N=="function"?C!==N||!M:!N.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return B==="a"?M.call(C,L):M?M.value=L:N.set(C,L),L},T=function(C,N){if(N===null||typeof N!="object"&&typeof N!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?N===C:C.has(N)},D=function(C,N,L){if(N!=null){if(typeof N!="object"&&typeof N!="function")throw new TypeError("Object expected.");var B,M;if(L){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");B=N[Symbol.asyncDispose]}if(B===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");B=N[Symbol.dispose],L&&(M=B)}if(typeof B!="function")throw new TypeError("Object not disposable.");M&&(B=function(){try{M.call(this)}catch(j){return Promise.reject(j)}}),C.stack.push({value:N,dispose:B,async:L})}else L&&C.stack.push({async:!0});return N};var Q=typeof SuppressedError=="function"?SuppressedError:function(C,N,L){var B=new Error(L);return B.name="SuppressedError",B.error=C,B.suppressed=N,B};V=function(C){function N(j){C.error=C.hasError?new Q(j,C.error,"An error was suppressed during disposal."):j,C.hasError=!0}var L,B=0;function M(){for(;L=C.stack.pop();)try{if(!L.async&&B===1)return B=0,C.stack.push(L),Promise.resolve().then(M);if(L.dispose){var j=L.dispose.call(L.value);if(L.async)return B|=2,Promise.resolve(j).then(M,function(z){return N(z),M()})}else B|=1}catch(z){N(z)}if(B===1)return C.hasError?Promise.reject(C.error):Promise.resolve();if(C.hasError)throw C.error}return M()},k=function(C,N){return typeof C=="string"&&/^\.\.?\//.test(C)?C.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(L,B,M,j,z){return B?N?".jsx":".js":M&&(!j||!z)?L:M+j+"."+z.toLowerCase()+"js"}):C},F("__extends",t),F("__assign",r),F("__rest",n),F("__decorate",o),F("__param",i),F("__esDecorate",s),F("__runInitializers",a),F("__propKey",c),F("__setFunctionName",u),F("__metadata",p),F("__awaiter",l),F("__generator",d),F("__exportStar",f),F("__createBinding",q),F("__values",h),F("__read",m),F("__spread",v),F("__spreadArrays",_),F("__spreadArray",g),F("__await",y),F("__asyncGenerator",b),F("__asyncDelegator",E),F("__asyncValues",x),F("__makeTemplateObject",O),F("__importStar",S),F("__importDefault",w),F("__classPrivateFieldGet",A),F("__classPrivateFieldSet",P),F("__classPrivateFieldIn",T),F("__addDisposableResource",D),F("__disposeResources",V),F("__rewriteRelativeImportExtension",k)})})(wf)),wf.exports}var Sf={},Pf={},Zl={},zy;function Lk(){if(zy)return Zl;zy=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.Bind=e;function e(...t){return(r,n,o)=>(t.forEach((i,s)=>i(r,n,s)),o)}return Zl}var Kl={},Tf={},By;function xe(){return By||(By=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ENTRY_PROVIDER_WATERMARK=e.CATCH_WATERMARK=e.CONTROLLER_WATERMARK=e.INJECTABLE_WATERMARK=e.VERSION_METADATA=e.SSE_METADATA=e.RESPONSE_PASSTHROUGH_METADATA=e.REDIRECT_METADATA=e.HEADERS_METADATA=e.MODULE_PATH=e.HTTP_CODE_METADATA=e.RENDER_METADATA=e.ENHANCER_KEY_TO_SUBTYPE_MAP=e.EXCEPTION_FILTERS_METADATA=e.INTERCEPTORS_METADATA=e.GUARDS_METADATA=e.PIPES_METADATA=e.FILTER_CATCH_EXCEPTIONS=e.CUSTOM_ROUTE_ARGS_METADATA=e.ROUTE_ARGS_METADATA=e.METHOD_METADATA=e.SCOPE_OPTIONS_METADATA=e.OPTIONAL_PROPERTY_DEPS_METADATA=e.PROPERTY_DEPS_METADATA=e.OPTIONAL_DEPS_METADATA=e.SELF_DECLARED_DEPS_METADATA=e.PARAMTYPES_METADATA=e.PATH_METADATA=e.HOST_METADATA=e.GLOBAL_MODULE_METADATA=e.MODULE_METADATA=void 0,e.MODULE_METADATA={IMPORTS:"imports",PROVIDERS:"providers",CONTROLLERS:"controllers",EXPORTS:"exports"},e.GLOBAL_MODULE_METADATA="__module:global__",e.HOST_METADATA="host",e.PATH_METADATA="path",e.PARAMTYPES_METADATA="design:paramtypes",e.SELF_DECLARED_DEPS_METADATA="self:paramtypes",e.OPTIONAL_DEPS_METADATA="optional:paramtypes",e.PROPERTY_DEPS_METADATA="self:properties_metadata",e.OPTIONAL_PROPERTY_DEPS_METADATA="optional:properties_metadata",e.SCOPE_OPTIONS_METADATA="scope:options",e.METHOD_METADATA="method",e.ROUTE_ARGS_METADATA="__routeArguments__",e.CUSTOM_ROUTE_ARGS_METADATA="__customRouteArgs__",e.FILTER_CATCH_EXCEPTIONS="__filterCatchExceptions__",e.PIPES_METADATA="__pipes__",e.GUARDS_METADATA="__guards__",e.INTERCEPTORS_METADATA="__interceptors__",e.EXCEPTION_FILTERS_METADATA="__exceptionFilters__",e.ENHANCER_KEY_TO_SUBTYPE_MAP={[e.GUARDS_METADATA]:"guard",[e.INTERCEPTORS_METADATA]:"interceptor",[e.PIPES_METADATA]:"pipe",[e.EXCEPTION_FILTERS_METADATA]:"filter"},e.RENDER_METADATA="__renderTemplate__",e.HTTP_CODE_METADATA="__httpCode__",e.MODULE_PATH="__module_path__",e.HEADERS_METADATA="__headers__",e.REDIRECT_METADATA="__redirect__",e.RESPONSE_PASSTHROUGH_METADATA="__responsePassthrough__",e.SSE_METADATA="__sse__",e.VERSION_METADATA="__version__",e.INJECTABLE_WATERMARK="__injectable__",e.CONTROLLER_WATERMARK="__controller__",e.CATCH_WATERMARK="__catch__",e.ENTRY_PROVIDER_WATERMARK="__entryProvider__"})(Tf)),Tf}var Hy;function Uk(){if(Hy)return Kl;Hy=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.Catch=t;const e=xe();function t(...r){return n=>{Reflect.defineMetadata(e.CATCH_WATERMARK,!0,n),Reflect.defineMetadata(e.FILTER_CATCH_EXCEPTIONS,r,n)}}return Kl}var Yl={},Af={},Vy;function ne(){return Vy||(Vy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbol=e.isEmpty=e.isNil=e.isConstructor=e.isNumber=e.isString=e.isFunction=e.stripEndSlash=e.normalizePath=e.addLeadingSlash=e.isPlainObject=e.isObject=e.isUndefined=void 0;const t=h=>typeof h>"u";e.isUndefined=t;const r=h=>!(0,e.isNil)(h)&&typeof h=="object";e.isObject=r;const n=h=>{if(!(0,e.isObject)(h))return!1;const m=Object.getPrototypeOf(h);if(m===null)return!0;const v=Object.prototype.hasOwnProperty.call(m,"constructor")&&m.constructor;return typeof v=="function"&&v instanceof v&&Function.prototype.toString.call(v)===Function.prototype.toString.call(Object)};e.isPlainObject=n;const o=h=>h&&typeof h=="string"?h.charAt(0)!=="/"&&h.substring(0,2)!=="{/"?"/"+h:h:"";e.addLeadingSlash=o;const i=h=>h?h.startsWith("/")?("/"+h.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+h.replace(/\/+$/,""):"/";e.normalizePath=i;const s=h=>h[h.length-1]==="/"?h.slice(0,h.length-1):h;e.stripEndSlash=s;const a=h=>typeof h=="function";e.isFunction=a;const c=h=>typeof h=="string";e.isString=c;const u=h=>typeof h=="number";e.isNumber=u;const p=h=>h==="constructor";e.isConstructor=p;const l=h=>(0,e.isUndefined)(h)||h===null;e.isNil=l;const d=h=>!(h&&h.length>0);e.isEmpty=d;const f=h=>typeof h=="symbol";e.isSymbol=f})(Af)),Af}var Gy;function zk(){if(Gy)return Yl;Gy=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.Controller=r;const e=xe(),t=ne();function r(n){const[i,s,a,c]=(0,t.isUndefined)(n)?["/",void 0,void 0,void 0]:(0,t.isString)(n)||Array.isArray(n)?[n,void 0,void 0,void 0]:[n.path||"/",n.host,{scope:n.scope,durable:n.durable},Array.isArray(n.version)?Array.from(new Set(n.version)):n.version];return u=>{Reflect.defineMetadata(e.CONTROLLER_WATERMARK,!0,u),Reflect.defineMetadata(e.PATH_METADATA,i,u),Reflect.defineMetadata(e.HOST_METADATA,s,u),Reflect.defineMetadata(e.SCOPE_OPTIONS_METADATA,a,u),Reflect.defineMetadata(e.VERSION_METADATA,c,u)}}return Yl}var Cn={},Wy;function Bk(){if(Wy)return Cn;Wy=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.Dependencies=void 0,Cn.flatten=t;const e=xe();function t(n){const o=[].concat(...n);return o.some(Array.isArray)?t(o):o}const r=(...n)=>{const o=t(n);return i=>{Reflect.defineMetadata(e.PARAMTYPES_METADATA,o,i)}};return Cn.Dependencies=r,Cn}var Ti={},Xl={},Zy;function xl(){if(Zy)return Xl;Zy=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.extendArrayMetadata=e;function e(t,r,n){const i=[...Reflect.getMetadata(t,n)||[],...r];Reflect.defineMetadata(t,i,n)}return Xl}var jn={},Ky;function gp(){if(Ky)return jn;Ky=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.InvalidDecoratorItemException=void 0,jn.validateEach=t;class e extends Error{constructor(n,o,i){const s=`Invalid ${o} passed to ${n}() decorator (${i}).`;super(s),this.msg=s}what(){return this.msg}}jn.InvalidDecoratorItemException=e;function t(r,n,o,i,s){if(!r||!r.name)return!0;if(n.some(c=>!o(c)))throw new e(i,s,r.name);return!0}return jn}var Yy;function Hk(){if(Yy)return Ti;Yy=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.UseFilters=void 0;const e=xe(),t=xl(),r=ne(),n=gp(),o=(...s)=>i(...s);Ti.UseFilters=o;function i(...s){return(a,c,u)=>{const p=l=>l&&((0,r.isFunction)(l)||(0,r.isFunction)(l.catch));return u?((0,n.validateEach)(a.constructor,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,u.value),u):((0,n.validateEach)(a,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,a),a)}}return Ti}var Jl={},Xy;function Vk(){if(Xy)return Jl;Xy=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.Inject=r;const e=xe(),t=ne();function r(n){const o=arguments.length>0;return(i,s,a)=>{let c=n||Reflect.getMetadata("design:type",i,s);if(!c&&!o&&(c=Reflect.getMetadata(e.PARAMTYPES_METADATA,i,s)?.[a]),!(0,t.isUndefined)(a)){let p=Reflect.getMetadata(e.SELF_DECLARED_DEPS_METADATA,i)||[];p=[...p,{index:a,param:c}],Reflect.defineMetadata(e.SELF_DECLARED_DEPS_METADATA,p,i);return}let u=Reflect.getMetadata(e.PROPERTY_DEPS_METADATA,i.constructor)||[];u=[...u,{key:s,type:c}],Reflect.defineMetadata(e.PROPERTY_DEPS_METADATA,u,i.constructor)}}return Jl}var Ai={},Rf={},Jy;function _n(){if(Jy)return Rf;Jy=1;for(var e=256,t=[],r=256,n;e--;)t[e]=(e+256).toString(16).substring(1);function o(i){var s=0,a=i||11;if(!n||e+a>r*2)for(n="",e=0;s<r;s++)n+=t[Math.random()*256|0];return n.substring(e,e+++a)}return Rf.uid=o,Rf}var Qy;function gn(){if(Qy)return Ai;Qy=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.Injectable=r,Ai.mixin=n;const e=_n(),t=xe();function r(o){return i=>{Reflect.defineMetadata(t.INJECTABLE_WATERMARK,!0,i),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,o,i)}}function n(o){return Object.defineProperty(o,"name",{value:(0,e.uid)(21)}),r()(o),o}return Ai}var Ql={},$y;function Ol(){if($y)return Ql;$y=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.Optional=r;const e=xe(),t=ne();function r(){return(n,o,i)=>{if(!(0,t.isUndefined)(i)){const a=Reflect.getMetadata(e.OPTIONAL_DEPS_METADATA,n)||[];Reflect.defineMetadata(e.OPTIONAL_DEPS_METADATA,[...a,i],n);return}const s=Reflect.getMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,n.constructor)||[];Reflect.defineMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,[...s,o],n.constructor)}}return Ql}var Ri={},eb;function Gk(){if(eb)return Ri;eb=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.SetMetadata=void 0;const e=(t,r)=>{const n=(o,i,s)=>s?(Reflect.defineMetadata(t,r,s.value),s):(Reflect.defineMetadata(t,r,o),o);return n.KEY=t,n};return Ri.SetMetadata=e,Ri}var $l={},tb;function Wk(){if(tb)return $l;tb=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.UseGuards=o;const e=xe(),t=xl(),r=ne(),n=gp();function o(...i){return(s,a,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.canActivate));return c?((0,n.validateEach)(s.constructor,i,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,i,c.value),c):((0,n.validateEach)(s,i,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,i,s),s)}}return $l}var ed={},rb;function Zk(){if(rb)return ed;rb=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.UseInterceptors=o;const e=xe(),t=xl(),r=ne(),n=gp();function o(...i){return(s,a,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.intercept));return c?((0,n.validateEach)(s.constructor,i,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,i,c.value),c):((0,n.validateEach)(s,i,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,i,s),s)}}return ed}var td={},nb;function Kk(){if(nb)return td;nb=1,Object.defineProperty(td,"__esModule",{value:!0}),td.UsePipes=o;const e=xe(),t=xl(),r=ne(),n=gp();function o(...i){return(s,a,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.transform));return c?((0,t.extendArrayMetadata)(e.PIPES_METADATA,i,c.value),c):((0,n.validateEach)(s,i,u,"@UsePipes","pipe"),(0,t.extendArrayMetadata)(e.PIPES_METADATA,i,s),s)}}return td}var rd={},ib;function Yk(){if(ib)return rd;ib=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.applyDecorators=e;function e(...t){return(r,n,o)=>{for(const i of t){if(r instanceof Function&&!o){i(r);continue}i(r,n,o)}}}return rd}var nd={},ab;function Xk(){if(ab)return nd;ab=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.Version=t;const e=xe();function t(r){return Array.isArray(r)&&(r=Array.from(new Set(r))),(n,o,i)=>(Reflect.defineMetadata(e.VERSION_METADATA,r,i.value),i)}return nd}var ob;function ar(){return ob||(ob=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Lk(),e),t.__exportStar(Uk(),e),t.__exportStar(zk(),e),t.__exportStar(Bk(),e),t.__exportStar(Hk(),e),t.__exportStar(Vk(),e),t.__exportStar(gn(),e),t.__exportStar(Ol(),e),t.__exportStar(Gk(),e),t.__exportStar(Wk(),e),t.__exportStar(Zk(),e),t.__exportStar(Kk(),e),t.__exportStar(Yk(),e),t.__exportStar(Xk(),e)})(Pf)),Pf}var Mf={},id={},sb;function Jk(){if(sb)return id;sb=1,Object.defineProperty(id,"__esModule",{value:!0}),id.Global=t;const e=xe();function t(){return r=>{Reflect.defineMetadata(e.GLOBAL_MODULE_METADATA,!0,r)}}return id}var ad={},If={},cb;function Qk(){return cb||(cb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=o;const t=xe(),r=(i,s)=>`Invalid property '${s}' passed into the @Module() decorator.`;e.INVALID_MODULE_CONFIG_MESSAGE=r;const n=[t.MODULE_METADATA.IMPORTS,t.MODULE_METADATA.EXPORTS,t.MODULE_METADATA.CONTROLLERS,t.MODULE_METADATA.PROVIDERS];function o(i){const s=a=>{if(!n.includes(a))throw new Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${a}`)};i.forEach(s)}})(If)),If}var ub;function $k(){if(ub)return ad;ub=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.Module=t;const e=Qk();function t(r){const n=Object.keys(r);return(0,e.validateModuleKeys)(n),o=>{for(const i in r)Object.hasOwnProperty.call(r,i)&&Reflect.defineMetadata(i,r[i],o)}}return ad}var lb;function eD(){return lb||(lb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Jk(),e),t.__exportStar($k(),e)})(Mf)),Mf}var Cf={},jf={},Mi={},db;function di(){if(db)return Mi;db=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.RequestMethod=void 0;var e;return(function(t){t[t.GET=0]="GET",t[t.POST=1]="POST",t[t.PUT=2]="PUT",t[t.DELETE=3]="DELETE",t[t.PATCH=4]="PATCH",t[t.ALL=5]="ALL",t[t.OPTIONS=6]="OPTIONS",t[t.HEAD=7]="HEAD",t[t.SEARCH=8]="SEARCH",t[t.PROPFIND=9]="PROPFIND",t[t.PROPPATCH=10]="PROPPATCH",t[t.MKCOL=11]="MKCOL",t[t.COPY=12]="COPY",t[t.MOVE=13]="MOVE",t[t.LOCK=14]="LOCK",t[t.UNLOCK=15]="UNLOCK"})(e||(Mi.RequestMethod=e={})),Mi}var pb;function tD(){return pb||(pb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Unlock=e.Lock=e.Move=e.Copy=e.Mkcol=e.Proppatch=e.Propfind=e.Search=e.All=e.Head=e.Options=e.Patch=e.Put=e.Delete=e.Get=e.Post=e.RequestMapping=void 0;const t=xe(),r=di(),n={[t.PATH_METADATA]:"/",[t.METHOD_METADATA]:r.RequestMethod.GET},o=(s=n)=>{const a=s[t.PATH_METADATA],c=a&&a.length?a:"/",u=s[t.METHOD_METADATA]||r.RequestMethod.GET;return(p,l,d)=>(Reflect.defineMetadata(t.PATH_METADATA,c,d.value),Reflect.defineMetadata(t.METHOD_METADATA,u,d.value),d)};e.RequestMapping=o;const i=s=>a=>(0,e.RequestMapping)({[t.PATH_METADATA]:a,[t.METHOD_METADATA]:s});e.Post=i(r.RequestMethod.POST),e.Get=i(r.RequestMethod.GET),e.Delete=i(r.RequestMethod.DELETE),e.Put=i(r.RequestMethod.PUT),e.Patch=i(r.RequestMethod.PATCH),e.Options=i(r.RequestMethod.OPTIONS),e.Head=i(r.RequestMethod.HEAD),e.All=i(r.RequestMethod.ALL),e.Search=i(r.RequestMethod.SEARCH),e.Propfind=i(r.RequestMethod.PROPFIND),e.Proppatch=i(r.RequestMethod.PROPPATCH),e.Mkcol=i(r.RequestMethod.MKCOL),e.Copy=i(r.RequestMethod.COPY),e.Move=i(r.RequestMethod.MOVE),e.Lock=i(r.RequestMethod.LOCK),e.Unlock=i(r.RequestMethod.UNLOCK)})(jf)),jf}var Nf={},Ii={},fb;function yp(){if(fb)return Ii;fb=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.RouteParamtypes=void 0;var e;return(function(t){t[t.REQUEST=0]="REQUEST",t[t.RESPONSE=1]="RESPONSE",t[t.NEXT=2]="NEXT",t[t.BODY=3]="BODY",t[t.QUERY=4]="QUERY",t[t.PARAM=5]="PARAM",t[t.HEADERS=6]="HEADERS",t[t.SESSION=7]="SESSION",t[t.FILE=8]="FILE",t[t.FILES=9]="FILES",t[t.HOST=10]="HOST",t[t.IP=11]="IP",t[t.RAW_BODY=12]="RAW_BODY",t[t.ACK=13]="ACK"})(e||(Ii.RouteParamtypes=e={})),Ii}var hb;function rD(){return hb||(hb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Res=e.Req=e.Headers=e.Session=e.Ip=e.Next=e.Response=e.Request=void 0,e.assignMetadata=o,e.UploadedFile=c,e.UploadedFiles=u,e.Query=p,e.Body=l,e.RawBody=d,e.Param=f,e.HostParam=h;const t=xe(),r=yp(),n=ne();function o(m,v,_,g,...y){return{...m,[`${v}:${_}`]:{index:_,data:g,pipes:y}}}function i(m){return v=>(_,g,y)=>{const b=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,_.constructor,g)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,o(b,m,y,v),_.constructor,g)}}const s=m=>(v,..._)=>(g,y,b)=>{const E=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,g.constructor,y)||{},x=(0,n.isNil)(v)||(0,n.isString)(v),O=x?v:void 0,S=x?_:[v,..._];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,o(E,m,b,O,...S),g.constructor,y)};e.Request=i(r.RouteParamtypes.REQUEST);const a=m=>(v,_,g)=>(m?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,m?.passthrough,v.constructor,_),i(r.RouteParamtypes.RESPONSE)()(v,_,g));e.Response=a,e.Next=i(r.RouteParamtypes.NEXT),e.Ip=i(r.RouteParamtypes.IP),e.Session=i(r.RouteParamtypes.SESSION);function c(m,...v){return s(r.RouteParamtypes.FILE)(m,...v)}function u(...m){return s(r.RouteParamtypes.FILES)(void 0,...m)}e.Headers=i(r.RouteParamtypes.HEADERS);function p(m,...v){return s(r.RouteParamtypes.QUERY)(m,...v)}function l(m,...v){return s(r.RouteParamtypes.BODY)(m,...v)}function d(...m){return s(r.RouteParamtypes.RAW_BODY)(void 0,...m)}function f(m,...v){return s(r.RouteParamtypes.PARAM)(m,...v)}function h(m){return i(r.RouteParamtypes.HOST)(m)}e.Req=e.Request,e.Res=e.Response})(Nf)),Nf}var od={},vb;function nD(){if(vb)return od;vb=1,Object.defineProperty(od,"__esModule",{value:!0}),od.HttpCode=t;const e=xe();function t(r){return(n,o,i)=>(Reflect.defineMetadata(e.HTTP_CODE_METADATA,r,i.value),i)}return od}var sd={},cd={},mb;function iD(){if(mb)return cd;mb=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.assignCustomParameterMetadata=t;const e=xe();function t(r,n,o,i,s,...a){return{...r,[`${n}${e.CUSTOM_ROUTE_ARGS_METADATA}:${o}`]:{index:o,factory:i,data:s,pipes:a}}}return cd}var _b;function aD(){if(_b)return sd;_b=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.createParamDecorator=o;const e=_n(),t=xe(),r=iD(),n=ne();function o(i,s=[]){const a=(0,e.uid)(21);return(c,...u)=>(p,l,d)=>{const f=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,p.constructor,l)||{},h=g=>g&&((0,n.isFunction)(g)&&g.prototype&&(0,n.isFunction)(g.prototype.transform)||(0,n.isFunction)(g.transform)),m=(0,n.isNil)(c)||!h(c),v=m?c:void 0,_=m?u:[c,...u];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,(0,r.assignCustomParameterMetadata)(f,a,d,i,v,..._),p.constructor,l),s.forEach(g=>g(p,l,d))}}return sd}var ud={},gb;function oD(){if(gb)return ud;gb=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.Render=t;const e=xe();function t(r){return(n,o,i)=>(Reflect.defineMetadata(e.RENDER_METADATA,r,i.value),i)}return ud}var ld={},yb;function sD(){if(yb)return ld;yb=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.Header=r;const e=xe(),t=xl();function r(n,o){return(i,s,a)=>((0,t.extendArrayMetadata)(e.HEADERS_METADATA,[{name:n,value:o}],a.value),a)}return ld}var dd={},bb;function cD(){if(bb)return dd;bb=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.Redirect=t;const e=xe();function t(r="",n){return(o,i,s)=>(Reflect.defineMetadata(e.REDIRECT_METADATA,{statusCode:n,url:r},s.value),s)}return dd}var pd={},Eb;function uD(){if(Eb)return pd;Eb=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.Sse=r;const e=xe(),t=di();function r(n,o={[e.METHOD_METADATA]:t.RequestMethod.GET}){return(i,s,a)=>(n=n&&n.length?n:"/",Reflect.defineMetadata(e.PATH_METADATA,n,a.value),Reflect.defineMetadata(e.METHOD_METADATA,o[e.METHOD_METADATA],a.value),Reflect.defineMetadata(e.SSE_METADATA,!0,a.value),a)}return pd}var xb;function lD(){return xb||(xb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(tD(),e),t.__exportStar(rD(),e),t.__exportStar(nD(),e),t.__exportStar(aD(),e),t.__exportStar(oD(),e),t.__exportStar(sD(),e),t.__exportStar(cD(),e),t.__exportStar(uD(),e)})(Cf)),Cf}var Ob;function fg(){return Ob||(Ob=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(ar(),e),t.__exportStar(eD(),e),t.__exportStar(lD(),e)})(Sf)),Sf}var qf={},Ci={},wb;function je(){if(wb)return Ci;wb=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.HttpStatus=void 0;var e;return(function(t){t[t.CONTINUE=100]="CONTINUE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.PROCESSING=102]="PROCESSING",t[t.EARLYHINTS=103]="EARLYHINTS",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.MULTI_STATUS=207]="MULTI_STATUS",t[t.ALREADY_REPORTED=208]="ALREADY_REPORTED",t[t.CONTENT_DIFFERENT=210]="CONTENT_DIFFERENT",t[t.AMBIGUOUS=300]="AMBIGUOUS",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.FOUND=302]="FOUND",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",t[t.URI_TOO_LONG=414]="URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",t[t.MISDIRECTED=421]="MISDIRECTED",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.LOCKED=423]="LOCKED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.UNRECOVERABLE_ERROR=456]="UNRECOVERABLE_ERROR",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.LOOP_DETECTED=508]="LOOP_DETECTED"})(e||(Ci.HttpStatus=e={})),Ci}var ji={},Sb;function dD(){if(Sb)return ji;Sb=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.ShutdownSignal=void 0;var e;return(function(t){t.SIGHUP="SIGHUP",t.SIGINT="SIGINT",t.SIGQUIT="SIGQUIT",t.SIGILL="SIGILL",t.SIGTRAP="SIGTRAP",t.SIGABRT="SIGABRT",t.SIGBUS="SIGBUS",t.SIGFPE="SIGFPE",t.SIGSEGV="SIGSEGV",t.SIGUSR2="SIGUSR2",t.SIGTERM="SIGTERM"})(e||(ji.ShutdownSignal=e={})),ji}var Ni={},Pb;function pD(){if(Pb)return Ni;Pb=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.VersioningType=void 0;var e;return(function(t){t[t.URI=0]="URI",t[t.HEADER=1]="HEADER",t[t.MEDIA_TYPE=2]="MEDIA_TYPE",t[t.CUSTOM=3]="CUSTOM"})(e||(Ni.VersioningType=e={})),Ni}var Tb;function wl(){return Tb||(Tb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(di(),e),t.__exportStar(je(),e),t.__exportStar(dD(),e),t.__exportStar(pD(),e)})(qf)),qf}var Ff={},qi={},Fi={},ki={},Ab;function tC(){if(Ab)return ki;Ab=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.IntrinsicException=void 0;class e extends Error{}return ki.IntrinsicException=e,ki}var Rb;function He(){if(Rb)return Fi;Rb=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.HttpException=void 0;const e=ne(),t=tC();class r extends t.IntrinsicException{constructor(o,i,s){super(),this.response=o,this.status=i,this.options=s,this.initMessage(),this.initName(),this.initCause()}initCause(){if(this.options?.cause){this.cause=this.options.cause;return}}initMessage(){(0,e.isString)(this.response)?this.message=this.response:(0,e.isObject)(this.response)&&(0,e.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(" ")??"Error")}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(o,i,s){return o?(0,e.isString)(o)||Array.isArray(o)||(0,e.isNumber)(o)?{message:o,error:i,statusCode:s}:o:{message:i,statusCode:s}}static getDescriptionFrom(o){return(0,e.isString)(o)?o:o?.description}static getHttpExceptionOptionsFrom(o){return(0,e.isString)(o)?{}:o}static extractDescriptionAndOptionsFrom(o){const i=(0,e.isString)(o)?o:o?.description,s=(0,e.isString)(o)?{}:o;return{description:i,httpExceptionOptions:s}}}return Fi.HttpException=r,Fi}var Mb;function fD(){if(Mb)return qi;Mb=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.BadGatewayException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Bad Gateway"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.BAD_GATEWAY),e.HttpStatus.BAD_GATEWAY,a)}}return qi.BadGatewayException=r,qi}var Di={},Ib;function hD(){if(Ib)return Di;Ib=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.BadRequestException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Bad Request"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.BAD_REQUEST),e.HttpStatus.BAD_REQUEST,a)}}return Di.BadRequestException=r,Di}var Li={},Cb;function vD(){if(Cb)return Li;Cb=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.ConflictException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Conflict"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.CONFLICT),e.HttpStatus.CONFLICT,a)}}return Li.ConflictException=r,Li}var Ui={},jb;function mD(){if(jb)return Ui;jb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.ForbiddenException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Forbidden"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.FORBIDDEN),e.HttpStatus.FORBIDDEN,a)}}return Ui.ForbiddenException=r,Ui}var zi={},Nb;function _D(){if(Nb)return zi;Nb=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.GatewayTimeoutException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Gateway Timeout"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.GATEWAY_TIMEOUT),e.HttpStatus.GATEWAY_TIMEOUT,a)}}return zi.GatewayTimeoutException=r,zi}var Bi={},qb;function gD(){if(qb)return Bi;qb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.GoneException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Gone"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.GONE),e.HttpStatus.GONE,a)}}return Bi.GoneException=r,Bi}var Hi={},Fb;function yD(){if(Fb)return Hi;Fb=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.HttpVersionNotSupportedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="HTTP Version Not Supported"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,a)}}return Hi.HttpVersionNotSupportedException=r,Hi}var Vi={},kb;function bD(){if(kb)return Vi;kb=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.ImATeapotException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="I'm a teapot"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.I_AM_A_TEAPOT),e.HttpStatus.I_AM_A_TEAPOT,a)}}return Vi.ImATeapotException=r,Vi}var Gi={},Db;function ED(){if(Db)return Gi;Db=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.InternalServerErrorException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Internal Server Error"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.INTERNAL_SERVER_ERROR),e.HttpStatus.INTERNAL_SERVER_ERROR,a)}}return Gi.InternalServerErrorException=r,Gi}var Wi={},Lb;function xD(){if(Lb)return Wi;Lb=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.MethodNotAllowedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Method Not Allowed"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.METHOD_NOT_ALLOWED),e.HttpStatus.METHOD_NOT_ALLOWED,a)}}return Wi.MethodNotAllowedException=r,Wi}var Zi={},Ub;function OD(){if(Ub)return Zi;Ub=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.MisdirectedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Misdirected"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.MISDIRECTED),e.HttpStatus.MISDIRECTED,a)}}return Zi.MisdirectedException=r,Zi}var Ki={},zb;function wD(){if(zb)return Ki;zb=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.NotAcceptableException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Not Acceptable"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_ACCEPTABLE),e.HttpStatus.NOT_ACCEPTABLE,a)}}return Ki.NotAcceptableException=r,Ki}var Yi={},Bb;function SD(){if(Bb)return Yi;Bb=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.NotFoundException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Not Found"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_FOUND),e.HttpStatus.NOT_FOUND,a)}}return Yi.NotFoundException=r,Yi}var Xi={},Hb;function PD(){if(Hb)return Xi;Hb=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.NotImplementedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Not Implemented"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_IMPLEMENTED),e.HttpStatus.NOT_IMPLEMENTED,a)}}return Xi.NotImplementedException=r,Xi}var Ji={},Vb;function TD(){if(Vb)return Ji;Vb=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.PayloadTooLargeException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Payload Too Large"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.PAYLOAD_TOO_LARGE),e.HttpStatus.PAYLOAD_TOO_LARGE,a)}}return Ji.PayloadTooLargeException=r,Ji}var Qi={},Gb;function AD(){if(Gb)return Qi;Gb=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.PreconditionFailedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Precondition Failed"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.PRECONDITION_FAILED),e.HttpStatus.PRECONDITION_FAILED,a)}}return Qi.PreconditionFailedException=r,Qi}var $i={},Wb;function RD(){if(Wb)return $i;Wb=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.RequestTimeoutException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Request Timeout"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.REQUEST_TIMEOUT),e.HttpStatus.REQUEST_TIMEOUT,a)}}return $i.RequestTimeoutException=r,$i}var ea={},Zb;function MD(){if(Zb)return ea;Zb=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.ServiceUnavailableException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Service Unavailable"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.SERVICE_UNAVAILABLE),e.HttpStatus.SERVICE_UNAVAILABLE,a)}}return ea.ServiceUnavailableException=r,ea}var ta={},Kb;function ID(){if(Kb)return ta;Kb=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.UnauthorizedException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Unauthorized"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.UNAUTHORIZED),e.HttpStatus.UNAUTHORIZED,a)}}return ta.UnauthorizedException=r,ta}var ra={},Yb;function CD(){if(Yb)return ra;Yb=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.UnprocessableEntityException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Unprocessable Entity"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.UNPROCESSABLE_ENTITY),e.HttpStatus.UNPROCESSABLE_ENTITY,a)}}return ra.UnprocessableEntityException=r,ra}var na={},Xb;function jD(){if(Xb)return na;Xb=1,Object.defineProperty(na,"__esModule",{value:!0}),na.UnsupportedMediaTypeException=void 0;const e=je(),t=He();class r extends t.HttpException{constructor(o,i="Unsupported Media Type"){const{description:s,httpExceptionOptions:a}=t.HttpException.extractDescriptionAndOptionsFrom(i);super(t.HttpException.createBody(o,s,e.HttpStatus.UNSUPPORTED_MEDIA_TYPE),e.HttpStatus.UNSUPPORTED_MEDIA_TYPE,a)}}return na.UnsupportedMediaTypeException=r,na}var Jb;function hg(){return Jb||(Jb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(fD(),e),t.__exportStar(hD(),e),t.__exportStar(vD(),e),t.__exportStar(mD(),e),t.__exportStar(_D(),e),t.__exportStar(gD(),e),t.__exportStar(yD(),e),t.__exportStar(He(),e),t.__exportStar(bD(),e),t.__exportStar(ED(),e),t.__exportStar(tC(),e),t.__exportStar(xD(),e),t.__exportStar(OD(),e),t.__exportStar(wD(),e),t.__exportStar(SD(),e),t.__exportStar(PD(),e),t.__exportStar(TD(),e),t.__exportStar(AD(),e),t.__exportStar(RD(),e),t.__exportStar(MD(),e),t.__exportStar(ID(),e),t.__exportStar(CD(),e),t.__exportStar(jD(),e)})(Ff)),Ff}var kf={},ia={},Df={},Nn={},Lf={},Qb;function or(){return Qb||(Qb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.yellow=e.clc=e.isColorAllowed=void 0;const t=()=>!process.env.NO_COLOR;e.isColorAllowed=t;const r=n=>o=>(0,e.isColorAllowed)()?n(o):o;e.clc={bold:r(n=>`\x1B[1m${n}\x1B[0m`),green:r(n=>`\x1B[32m${n}\x1B[39m`),yellow:r(n=>`\x1B[33m${n}\x1B[39m`),red:r(n=>`\x1B[31m${n}\x1B[39m`),magentaBright:r(n=>`\x1B[95m${n}\x1B[39m`),cyanBright:r(n=>`\x1B[96m${n}\x1B[39m`)},e.yellow=r(n=>`\x1B[38;5;3m${n}\x1B[39m`)})(Lf)),Lf}var fd={},$b;function rC(){if($b)return fd;$b=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.isLogLevelEnabled=t;const e={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};function t(r,n){if(!n||Array.isArray(n)&&n?.length===0)return!1;if(n.includes(r))return!0;let o=-1/0;for(const s of n){const a=e[s];a>o&&(o=a)}return e[r]>=o}return fd}var eE;function vg(){if(eE)return Nn;eE=1;var e;Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.ConsoleLogger=void 0;const t=ae(),r=ui,n=ar(),o=or(),i=ne(),s=rC(),a=5,c=["log","error","warn","debug","verbose","fatal"],u=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let p=e=class{constructor(d,f){let[h,m]=(0,i.isString)(d)?[d,f]:f?[void 0,f]:[d?.context,d];m=m??{},m.logLevels??=c,m.colors??=m.colors??(m.json?!1:(0,o.isColorAllowed)()),m.prefix??="Nest",this.options=m,this.inspectOptions=this.getInspectOptions(),h&&(this.context=h,this.originalContext=h)}log(d,...f){if(!this.isLevelEnabled("log"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"log")}error(d,...f){if(!this.isLevelEnabled("error"))return;const{messages:h,context:m,stack:v}=this.getContextAndStackAndMessagesToPrint([d,...f]);this.printMessages(h,m,"error","stderr",v),this.printStackTrace(v)}warn(d,...f){if(!this.isLevelEnabled("warn"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"warn")}debug(d,...f){if(!this.isLevelEnabled("debug"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"debug")}verbose(d,...f){if(!this.isLevelEnabled("verbose"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"verbose")}fatal(d,...f){if(!this.isLevelEnabled("fatal"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"fatal")}setLogLevels(d){this.options||(this.options={}),this.options.logLevels=d}setContext(d){this.context=d}resetContext(){this.context=this.originalContext}isLevelEnabled(d){const f=this.options?.logLevels;return(0,s.isLogLevelEnabled)(d,f)}getTimestamp(){return u.format(Date.now())}printMessages(d,f="",h="log",m,v){d.forEach(_=>{if(this.options.json){this.printAsJson(_,{context:f,logLevel:h,writeStreamType:m,errorStack:v});return}const g=this.formatPid(process.pid),y=this.formatContext(f),b=this.updateAndGetTimestampDiff(),E=h.toUpperCase().padStart(7," "),x=this.formatMessage(h,_,g,E,y,b);this.options.forceConsole?m==="stderr"?console.error(x.trim()):console.log(x.trim()):process[m??"stdout"].write(x)})}printAsJson(d,f){const h=this.getJsonLogObject(d,f),m=!this.options.colors&&this.inspectOptions.compact===!0?JSON.stringify(h,this.stringifyReplacer):(0,r.inspect)(h,this.inspectOptions);this.options.forceConsole?f.writeStreamType==="stderr"?console.error(m):console.log(m):process[f.writeStreamType??"stdout"].write(`${m}
|
|
4
4
|
`)}getJsonLogObject(d,f){const h={level:f.logLevel,pid:process.pid,timestamp:Date.now(),message:d};return f.context&&(h.context=f.context),f.errorStack&&(h.stack=f.errorStack),h}formatPid(d){return`[${this.options.prefix}] ${d} - `}formatContext(d){return d?(d=`[${d}] `,this.options.colors?(0,o.yellow)(d):d):""}formatMessage(d,f,h,m,v,_){const g=this.stringifyMessage(f,d);return h=this.colorize(h,d),m=this.colorize(m,d),`${h}${this.getTimestamp()} ${m} ${v}${g}${_}
|
|
5
5
|
`}stringifyMessage(d,f){if((0,i.isFunction)(d))return Function.prototype.toString.call(d).startsWith("class ")?this.stringifyMessage(d.name,f):this.stringifyMessage(d(),f);if(typeof d=="string")return this.colorize(d,f);const h=(0,r.inspect)(d,this.inspectOptions);return(0,i.isPlainObject)(d)?`Object(${Object.keys(d).length}) ${h}`:Array.isArray(d)?`Array(${d.length}) ${h}`:h}colorize(d,f){return!this.options.colors||this.options.json?d:this.getColorByLogLevel(f)(d)}printStackTrace(d){!d||this.options.json||(this.options.forceConsole?console.error(d):process.stderr.write(`${d}
|
|
6
|
-
`))}updateAndGetTimestampDiff(){const f=e.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-e.lastTimestampAt):"";return e.lastTimestampAt=Date.now(),f}formatTimestampDiff(d){const f=` +${d}ms`;return this.options.colors?(0,o.yellow)(f):f}getInspectOptions(){let d=this.options.breakLength;typeof d>"u"&&(d=this.options.colors?this.options.compact?1/0:void 0:this.options.compact===!1?void 0:1/0);const f={depth:this.options.depth??a,sorted:this.options.sorted,showHidden:this.options.showHidden,compact:this.options.compact??!!this.options.json,colors:this.options.colors,breakLength:d};return typeof this.options.maxArrayLength<"u"&&(f.maxArrayLength=this.options.maxArrayLength),typeof this.options.maxStringLength<"u"&&(f.maxStringLength=this.options.maxStringLength),f}stringifyReplacer(d,f){return typeof f=="bigint"||typeof f=="symbol"?f.toString():f instanceof Map||f instanceof Set||f instanceof Error?`${(0,r.inspect)(f,this.inspectOptions)}`:f}getContextAndMessagesToPrint(d){if(d?.length<=1)return{messages:d,context:this.context};const f=d[d.length-1];return(0,i.isString)(f)?{context:f,messages:d.slice(0,d.length-1)}:{messages:d,context:this.context}}getContextAndStackAndMessagesToPrint(d){if(d.length===2)return this.isStackFormat(d[1])?{messages:[d[0]],stack:d[1],context:this.context}:{...this.getContextAndMessagesToPrint(d)};const{messages:f,context:h}=this.getContextAndMessagesToPrint(d);if(f?.length<=1)return{messages:f,context:h};const m=f[f.length-1];return!(0,i.isString)(m)&&!(0,i.isUndefined)(m)?{messages:f,context:h}:{stack:m,messages:f.slice(0,f.length-1),context:h}}isStackFormat(d){return!(0,i.isString)(d)&&!(0,i.isUndefined)(d)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(d)}getColorByLogLevel(d){switch(d){case"debug":return o.clc.magentaBright;case"warn":return o.clc.yellow;case"error":return o.clc.red;case"verbose":return o.clc.cyanBright;case"fatal":return o.clc.bold;default:return o.clc.green}}};return qn.ConsoleLogger=p,qn.ConsoleLogger=p=e=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__param(1,(0,n.Optional)()),t.__metadata("design:paramtypes",[Object,Object])],p),qn}var nr={},Uf={},hd={},vd={},nE;function sC(){if(nE)return vd;nE=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.isLogLevel=t;const e=yt();function t(r){return e.LOG_LEVELS.includes(r)}return vd}var iE;function cC(){if(iE)return hd;iE=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.filterLogLevels=r;const e=yt(),t=sC();function r(n=""){const o=n.replaceAll(" ","").toLowerCase();if(o[0]===">"){const i=o[1]==="=",s=e.LOG_LEVELS.indexOf(o.substring(i?2:1));if(s===-1)throw new Error(`parse error (unknown log level): ${o}`);return e.LOG_LEVELS.slice(i?s:s+1)}else if(o.includes(","))return o.split(",").filter(t.isLogLevel);return(0,t.isLogLevel)(o)?[o]:e.LOG_LEVELS}return hd}var aE;function LD(){return aE||(aE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(cC(),e),t.__exportStar(oC(),e),t.__exportStar(sC(),e)})(Uf)),Uf}var oE;function yt(){if(oE)return nr;oE=1;var e;Object.defineProperty(nr,"__esModule",{value:!0}),nr.Logger=nr.LOG_LEVELS=void 0;const t=ae(),r=ar(),n=ne(),o=_g(),i=LD();nr.LOG_LEVELS=["verbose","debug","log","warn","error","fatal"];const s=new o.ConsoleLogger,a=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let c=e=class{constructor(p,l={}){this.context=p,this.options=l}get localInstance(){return e.staticInstanceRef===s?this.registerLocalInstanceRef():e.staticInstanceRef instanceof e&&Object.getPrototypeOf(e.staticInstanceRef).constructor===e?this.registerLocalInstanceRef():e.staticInstanceRef}error(p,...l){l=this.context?(l.length?l:[void 0]).concat(this.context):l,this.localInstance?.error(p,...l)}log(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.log(p,...l)}warn(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.warn(p,...l)}debug(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.debug?.(p,...l)}verbose(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.verbose?.(p,...l)}fatal(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.fatal?.(p,...l)}static error(p,...l){this.staticInstanceRef?.error(p,...l)}static log(p,...l){this.staticInstanceRef?.log(p,...l)}static warn(p,...l){this.staticInstanceRef?.warn(p,...l)}static debug(p,...l){this.staticInstanceRef?.debug?.(p,...l)}static verbose(p,...l){this.staticInstanceRef?.verbose?.(p,...l)}static fatal(p,...l){this.staticInstanceRef?.fatal?.(p,...l)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(p=>p.methodRef(...p.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return a.format(Date.now())}static overrideLogger(p){if(Array.isArray(p))return e.logLevels=p,this.staticInstanceRef?.setLogLevels?.(p);if((0,n.isObject)(p)){if(p instanceof e&&p.constructor!==e){const l='Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.';throw this.staticInstanceRef?.error(l),new Error(l)}this.staticInstanceRef=p}else this.staticInstanceRef=void 0}static isLevelEnabled(p){const l=e.logLevels;return(0,i.isLogLevelEnabled)(p,l)}registerLocalInstanceRef(){return this.localInstanceRef?this.localInstanceRef:(this.localInstanceRef=new o.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:e.logLevels}),this.localInstanceRef)}};return nr.Logger=c,c.logBuffer=new Array,c.staticInstanceRef=s,c.WrapBuffer=(u,p,l)=>{const d=l.value;l.value=function(...f){if(e.isBufferAttached){e.logBuffer.push({methodRef:d.bind(this),arguments:f});return}return d.call(this,...f)}},t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"error",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"log",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"warn",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"debug",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"verbose",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"fatal",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"error",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"log",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"warn",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"debug",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"verbose",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"fatal",null),nr.Logger=c=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,r.Optional)()),t.__param(1,(0,r.Optional)()),t.__metadata("design:paramtypes",[String,Object])],c),nr}var sE;function uC(){return sE||(sE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(_g(),e),t.__exportStar(yt(),e),t.__exportStar(cC(),e)})(Df)),Df}var cE;function UD(){if(cE)return aa;cE=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.StreamableFile=void 0;const e=mp,t=li,r=wl(),n=uC(),o=ne();class i{constructor(a,c={}){this.options=c,this.logger=new n.Logger("StreamableFile"),this.handleError=(u,p)=>{if(!p.destroyed){if(p.headersSent){p.end();return}p.statusCode=r.HttpStatus.BAD_REQUEST,p.send(u.message)}},this.logError=u=>{this.logger.error(u)},t.types.isUint8Array(a)?(this.stream=new e.Readable,this.stream.push(a),this.stream.push(null),this.options.length??=a.length):a.pipe&&(0,o.isFunction)(a.pipe)&&(this.stream=a)}getStream(){return this.stream}getHeaders(){const{type:a="application/octet-stream",disposition:c=void 0,length:u=void 0}=this.options;return{type:a,disposition:c,length:u}}get errorHandler(){return this.handleError}setErrorHandler(a){return this.handleError=a,this}get errorLogger(){return this.logError}setErrorLogger(a){return this.logError=a,this}}return aa.StreamableFile=i,aa}var uE;function lC(){return uE||(uE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(UD(),e)})(kf)),kf}var zf={},Bf={},lE;function zD(){return lE||(lE=1,Object.defineProperty(Bf,"__esModule",{value:!0})),Bf}var Hf={},dE;function BD(){return dE||(dE=1,Object.defineProperty(Hf,"__esModule",{value:!0})),Hf}var Vf={},pE;function HD(){return pE||(pE=1,Object.defineProperty(Vf,"__esModule",{value:!0})),Vf}var Gf={},fE;function VD(){return fE||(fE=1,Object.defineProperty(Gf,"__esModule",{value:!0})),Gf}var Wf={},hE;function GD(){return hE||(hE=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Zf={},vE;function WD(){return vE||(vE=1,Object.defineProperty(Zf,"__esModule",{value:!0})),Zf}var Kf={},mE;function ZD(){return mE||(mE=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Yf={},_E;function KD(){return _E||(_E=1,Object.defineProperty(Yf,"__esModule",{value:!0})),Yf}var Xf={},gE;function YD(){return gE||(gE=1,Object.defineProperty(Xf,"__esModule",{value:!0})),Xf}var Jf={},yE;function XD(){return yE||(yE=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var Qf={},bE;function JD(){return bE||(bE=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var $f={},EE;function QD(){return EE||(EE=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var eh={},xE;function $D(){return xE||(xE=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},OE;function eL(){return OE||(OE=1,Object.defineProperty(th,"__esModule",{value:!0})),th}var rh={},wE;function tL(){return wE||(wE=1,Object.defineProperty(rh,"__esModule",{value:!0})),rh}var nh={},ih={},SE;function rL(){return SE||(SE=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},TE;function nL(){return TE||(TE=1,Object.defineProperty(ah,"__esModule",{value:!0})),ah}var oh={},PE;function iL(){return PE||(PE=1,Object.defineProperty(oh,"__esModule",{value:!0})),oh}var sh={},AE;function aL(){return AE||(AE=1,Object.defineProperty(sh,"__esModule",{value:!0})),sh}var ch={},RE;function oL(){return RE||(RE=1,Object.defineProperty(ch,"__esModule",{value:!0})),ch}var ME;function sL(){return ME||(ME=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(rL(),e),t.__exportStar(nL(),e),t.__exportStar(iL(),e),t.__exportStar(aL(),e),t.__exportStar(oL(),e)})(nh)),nh}var uh={},lh={},IE;function cL(){return IE||(IE=1,Object.defineProperty(lh,"__esModule",{value:!0})),lh}var dh={},CE;function uL(){return CE||(CE=1,Object.defineProperty(dh,"__esModule",{value:!0})),dh}var ph={},jE;function lL(){return jE||(jE=1,Object.defineProperty(ph,"__esModule",{value:!0})),ph}var fh={},qE;function dL(){return qE||(qE=1,Object.defineProperty(fh,"__esModule",{value:!0})),fh}var hh={},NE;function pL(){return NE||(NE=1,Object.defineProperty(hh,"__esModule",{value:!0})),hh}var FE;function fL(){return FE||(FE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(cL(),e),t.__exportStar(uL(),e),t.__exportStar(lL(),e),t.__exportStar(dL(),e),t.__exportStar(pL(),e)})(uh)),uh}var vh={},kE;function hL(){return kE||(kE=1,Object.defineProperty(vh,"__esModule",{value:!0})),vh}var mh={},DE;function vL(){return DE||(DE=1,Object.defineProperty(mh,"__esModule",{value:!0})),mh}var _h={},gh={},LE;function mL(){return LE||(LE=1,Object.defineProperty(gh,"__esModule",{value:!0})),gh}var yh={},UE;function _L(){return UE||(UE=1,Object.defineProperty(yh,"__esModule",{value:!0})),yh}var bh={},zE;function gL(){return zE||(zE=1,Object.defineProperty(bh,"__esModule",{value:!0})),bh}var Eh={},BE;function yL(){return BE||(BE=1,Object.defineProperty(Eh,"__esModule",{value:!0})),Eh}var HE;function bL(){return HE||(HE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(mL(),e),t.__exportStar(_L(),e),t.__exportStar(gL(),e),t.__exportStar(yL(),e)})(_h)),_h}var xh={},Oh={},VE;function EL(){return VE||(VE=1,Object.defineProperty(Oh,"__esModule",{value:!0})),Oh}var wh={},GE;function xL(){return GE||(GE=1,Object.defineProperty(wh,"__esModule",{value:!0})),wh}var Sh={},WE;function OL(){return WE||(WE=1,Object.defineProperty(Sh,"__esModule",{value:!0})),Sh}var Th={},ZE;function wL(){return ZE||(ZE=1,Object.defineProperty(Th,"__esModule",{value:!0})),Th}var Ph={},KE;function SL(){return KE||(KE=1,Object.defineProperty(Ph,"__esModule",{value:!0})),Ph}var Ah={},YE;function TL(){return YE||(YE=1,Object.defineProperty(Ah,"__esModule",{value:!0})),Ah}var Rh={},XE;function PL(){return XE||(XE=1,Object.defineProperty(Rh,"__esModule",{value:!0})),Rh}var Mh={},JE;function AL(){return JE||(JE=1,Object.defineProperty(Mh,"__esModule",{value:!0})),Mh}var QE;function RL(){return QE||(QE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(EL(),e),t.__exportStar(xL(),e),t.__exportStar(OL(),e),t.__exportStar(wL(),e),t.__exportStar(SL(),e),t.__exportStar(TL(),e),t.__exportStar(PL(),e),t.__exportStar(AL(),e)})(xh)),xh}var Ih={},$E;function ML(){return $E||($E=1,Object.defineProperty(Ih,"__esModule",{value:!0})),Ih}var Ch={},ex;function IL(){return ex||(ex=1,Object.defineProperty(Ch,"__esModule",{value:!0})),Ch}var jh={},tx;function CL(){return tx||(tx=1,Object.defineProperty(jh,"__esModule",{value:!0})),jh}var qh={},rx;function jL(){return rx||(rx=1,Object.defineProperty(qh,"__esModule",{value:!0})),qh}var oa={},nx;function qL(){if(nx)return oa;nx=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.Scope=void 0;var e;return(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.TRANSIENT=1]="TRANSIENT",t[t.REQUEST=2]="REQUEST"})(e||(oa.Scope=e={})),oa}var Nh={},ix;function NL(){return ix||(ix=1,Object.defineProperty(Nh,"__esModule",{value:!0})),Nh}var Fh={},ax;function FL(){return ax||(ax=1,Object.defineProperty(Fh,"__esModule",{value:!0})),Fh}var sa={},ox;function dC(){return ox||(ox=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.VERSION_NEUTRAL=void 0,sa.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")),sa}var kh={},sx;function kL(){return sx||(sx=1,Object.defineProperty(kh,"__esModule",{value:!0})),kh}var cx;function bp(){return cx||(cx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(zD(),e),t.__exportStar(BD(),e),t.__exportStar(HD(),e),t.__exportStar(VD(),e),t.__exportStar(GD(),e),t.__exportStar(WD(),e),t.__exportStar(ZD(),e),t.__exportStar(KD(),e),t.__exportStar(YD(),e),t.__exportStar(XD(),e),t.__exportStar(JD(),e),t.__exportStar(QD(),e),t.__exportStar($D(),e),t.__exportStar(eL(),e),t.__exportStar(tL(),e),t.__exportStar(sL(),e),t.__exportStar(fL(),e),t.__exportStar(hL(),e),t.__exportStar(vL(),e),t.__exportStar(bL(),e),t.__exportStar(RL(),e),t.__exportStar(ML(),e),t.__exportStar(IL(),e),t.__exportStar(CL(),e),t.__exportStar(jL(),e),t.__exportStar(qL(),e),t.__exportStar(NL(),e),t.__exportStar(FL(),e),t.__exportStar(dC(),e),t.__exportStar(kL(),e)})(zf)),zf}var Dh={},ca={},ua={},ux;function sr(){if(ux)return ua;ux=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.randomStringGenerator=void 0;const e=_n(),t=()=>(0,e.uid)(21);return ua.randomStringGenerator=t,ua}var ht={},lx;function DL(){return lx||(lx=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.ASYNC_OPTIONS_METADATA_KEYS=ht.CONFIGURABLE_MODULE_ID=ht.ASYNC_METHOD_SUFFIX=ht.DEFAULT_FACTORY_CLASS_METHOD_KEY=ht.DEFAULT_METHOD_KEY=void 0,ht.DEFAULT_METHOD_KEY="register",ht.DEFAULT_FACTORY_CLASS_METHOD_KEY="create",ht.ASYNC_METHOD_SUFFIX="Async",ht.CONFIGURABLE_MODULE_ID="CONFIGURABLE_MODULE_ID",ht.ASYNC_OPTIONS_METADATA_KEYS=["useFactory","useClass","useExisting","inject","imports","provideInjectionTokensFrom"]),ht}var Lh={},md={},dx;function LL(){if(dx)return md;dx=1,Object.defineProperty(md,"__esModule",{value:!0}),md.generateOptionsInjectionToken=t;const e=sr();function t(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,e.randomStringGenerator)()}]`}return md}var _d={},px;function UL(){if(px)return _d;px=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.getInjectionProviders=n;const e=ne();function t(o){return!(0,e.isUndefined)(o.token)&&!(0,e.isUndefined)(o.optional)&&!o.prototype}const r=o=>t(o)?o.token:o;function n(o,i){const s=[];let a=i.map(r);for(;a.length>0;){const c=(o??[]).filter(u=>!s.includes(u)&&(a.includes(u)||a.includes(u?.provide)));s.push(...c),a=c.filter(u=>u?.inject).flatMap(u=>u.inject).map(r)}return s}return _d}var fx;function zL(){return fx||(fx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(LL(),e),t.__exportStar(UL(),e)})(Lh)),Lh}var hx;function BL(){if(hx)return ca;hx=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.ConfigurableModuleBuilder=void 0;const e=yt(),t=sr(),r=DL(),n=zL();class o{constructor(s={},a){this.options=s,this.logger=new e.Logger(o.name),a&&(this.staticMethodKey=a.staticMethodKey,this.factoryClassMethodKey=a.factoryClassMethodKey,this.transformModuleDefinition=a.transformModuleDefinition,this.extras=a.extras)}setExtras(s,a=c=>c){const c=new o(this.options,this);return c.extras=s,c.transformModuleDefinition=a,c}setClassMethodName(s){const a=new o(this.options,this);return a.staticMethodKey=s,a}setFactoryMethodName(s){const a=new o(this.options,this);return a.factoryClassMethodKey=s,a}build(){return this.staticMethodKey??=r.DEFAULT_METHOD_KEY,this.factoryClassMethodKey??=r.DEFAULT_FACTORY_CLASS_METHOD_KEY,this.options.optionsInjectionToken??=this.options.moduleName?this.constructInjectionTokenString():(0,n.generateOptionsInjectionToken)(),this.transformModuleDefinition??=s=>s,{ConfigurableModuleClass:this.createConfigurableModuleCls(),MODULE_OPTIONS_TOKEN:this.options.optionsInjectionToken,ASYNC_OPTIONS_TYPE:this.createTypeProxy("ASYNC_OPTIONS_TYPE"),OPTIONS_TYPE:this.createTypeProxy("OPTIONS_TYPE")}}constructInjectionTokenString(){return`${this.options.moduleName.trim().split(/(?=[A-Z])/).join("_").toUpperCase()}_MODULE_OPTIONS`}createConfigurableModuleCls(){const s=this,a=this.staticMethodKey+r.ASYNC_METHOD_SUFFIX;class c{static[s.staticMethodKey](p){const l=[{provide:s.options.optionsInjectionToken,useValue:this.omitExtras(p,s.extras)}];return s.options.alwaysTransient&&l.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,t.randomStringGenerator)()}),s.transformModuleDefinition({module:this,providers:l},{...s.extras,...p})}static[a](p){const l=this.createAsyncProviders(p);return s.options.alwaysTransient&&l.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,t.randomStringGenerator)()}),s.transformModuleDefinition({module:this,imports:p.imports||[],providers:l},{...s.extras,...this.extractExtrasFromAsyncOptions(p,s.extras)})}static omitExtras(p,l){if(!l)return p;const d={},f=Object.keys(l);return Object.keys(p).filter(h=>!f.includes(h)).forEach(h=>{d[h]=p[h]}),d}static extractExtrasFromAsyncOptions(p,l){if(!l)return{};const d={};return Object.keys(p).filter(f=>!r.ASYNC_OPTIONS_METADATA_KEYS.includes(f)).forEach(f=>{d[f]=p[f]}),d}static createAsyncProviders(p){return p.useExisting||p.useFactory?p.inject&&p.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(p),...(0,n.getInjectionProviders)(p.provideInjectionTokensFrom,p.inject)]:[this.createAsyncOptionsProvider(p)]:[this.createAsyncOptionsProvider(p),{provide:p.useClass,useClass:p.useClass}]}static createAsyncOptionsProvider(p){return p.useFactory?{provide:s.options.optionsInjectionToken,useFactory:p.useFactory,inject:p.inject||[]}:{provide:s.options.optionsInjectionToken,useFactory:async l=>await l[s.factoryClassMethodKey](),inject:[p.useExisting||p.useClass]}}}return c}createTypeProxy(s){return new Proxy({},{get:()=>{throw new Error(`"${s}" is not supposed to be used as a value.`)}})}}return ca.ConfigurableModuleBuilder=o,ca}var Uh={},zh={},vx;function HL(){return vx||(vx=1,Object.defineProperty(zh,"__esModule",{value:!0})),zh}var Bh={},mx;function VL(){return mx||(mx=1,Object.defineProperty(Bh,"__esModule",{value:!0})),Bh}var Hh={},_x;function GL(){return _x||(_x=1,Object.defineProperty(Hh,"__esModule",{value:!0})),Hh}var gx;function WL(){return gx||(gx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(HL(),e),t.__exportStar(VL(),e),t.__exportStar(GL(),e)})(Uh)),Uh}var yx;function ZL(){return yx||(yx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(BL(),e),t.__exportStar(WL(),e)})(Dh)),Dh}var Vh={},Nn={},bx;function KL(){if(bx)return Nn;bx=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.DefaultValuePipe=void 0;const e=ae(),t=gn(),r=ne();let n=class{constructor(i){this.defaultValue=i}transform(i,s){return(0,r.isNil)(i)||(0,r.isNumber)(i)&&isNaN(i)?this.defaultValue:i}};return Nn.DefaultValuePipe=n,Nn.DefaultValuePipe=n=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],n),Nn}var Gh={},la={},da={},Ex;function gg(){if(Ex)return da;Ex=1,Object.defineProperty(da,"__esModule",{value:!0}),da.FileValidator=void 0;class e{constructor(r){this.validationOptions=r}}return da.FileValidator=e,da}var Wh,xx;function YL(){return xx||(xx=1,Wh={loadEsm:e=>import(e)}),Wh}var Ox;function pC(){if(Ox)return la;Ox=1,Object.defineProperty(la,"__esModule",{value:!0}),la.FileTypeValidator=void 0;const e=iC,t=yt(),r=gg(),n=YL(),o=new t.Logger("FileTypeValidator");class i extends r.FileValidator{buildErrorMessage(a){const{errorMessage:c,...u}=this.validationOptions;if(c)return typeof c=="function"?c({file:a,config:u}):c;if(a?.mimetype){const p=`Validation failed (current file type is ${a.mimetype}, expected type is ${this.validationOptions.fileType})`;return this.validationOptions.fallbackToMimetype?`${p} - magic number detection failed, used mimetype fallback`:p}return`Validation failed (expected type is ${this.validationOptions.fileType})`}async isValid(a){if(!this.validationOptions)return!0;const c=!!a&&"mimetype"in a;if(this.validationOptions.skipMagicNumbersValidation)return c&&!!a.mimetype.match(this.validationOptions.fileType);if(!c)return!1;if(!a.buffer)return this.validationOptions.fallbackToMimetype?!!a.mimetype.match(this.validationOptions.fileType):!1;try{let u;try{const d=require.resolve("file-type");u=(0,e.pathToFileURL)(d).href}catch{u="file-type"}const{fileTypeFromBuffer:p}=await(0,n.loadEsm)(u),l=await p(a.buffer);return l?!!l.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!a.mimetype.match(this.validationOptions.fileType):!1}catch(u){const p=u instanceof Error?u.message:String(u);return(p.includes("ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING")||p.includes("Cannot find module")||p.includes("ERR_MODULE_NOT_FOUND"))&&o.warn(`Failed to load the "file-type" package for magic number validation. If you are using Jest, run it with NODE_OPTIONS="--experimental-vm-modules". Error: ${p}`),this.validationOptions.fallbackToMimetype?!!a.mimetype.match(this.validationOptions.fileType):!1}}}return la.FileTypeValidator=i,la}var pa={},wx;function fC(){if(wx)return pa;wx=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.MaxFileSizeValidator=void 0;const e=gg();class t extends e.FileValidator{buildErrorMessage(n){const{errorMessage:o,message:i,...s}=this.validationOptions;return o?typeof o=="function"?o({file:n,config:s}):o:i?typeof i=="function"?i(this.validationOptions.maxSize):i:n?.size?`Validation failed (current file size is ${n.size}, expected size is less than ${this.validationOptions.maxSize})`:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(n){return!this.validationOptions||!n?!0:"size"in n&&n.size<this.validationOptions.maxSize}}return pa.MaxFileSizeValidator=t,pa}var Zh={},Sx;function XL(){return Sx||(Sx=1,Object.defineProperty(Zh,"__esModule",{value:!0})),Zh}var Fn={},fa={},Tx;function tr(){if(Tx)return fa;Tx=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.HttpErrorByCode=void 0;const e=wl(),t=mg();return fa.HttpErrorByCode={[e.HttpStatus.BAD_GATEWAY]:t.BadGatewayException,[e.HttpStatus.BAD_REQUEST]:t.BadRequestException,[e.HttpStatus.CONFLICT]:t.ConflictException,[e.HttpStatus.FORBIDDEN]:t.ForbiddenException,[e.HttpStatus.GATEWAY_TIMEOUT]:t.GatewayTimeoutException,[e.HttpStatus.GONE]:t.GoneException,[e.HttpStatus.I_AM_A_TEAPOT]:t.ImATeapotException,[e.HttpStatus.INTERNAL_SERVER_ERROR]:t.InternalServerErrorException,[e.HttpStatus.METHOD_NOT_ALLOWED]:t.MethodNotAllowedException,[e.HttpStatus.NOT_ACCEPTABLE]:t.NotAcceptableException,[e.HttpStatus.NOT_FOUND]:t.NotFoundException,[e.HttpStatus.NOT_IMPLEMENTED]:t.NotImplementedException,[e.HttpStatus.PAYLOAD_TOO_LARGE]:t.PayloadTooLargeException,[e.HttpStatus.PRECONDITION_FAILED]:t.PreconditionFailedException,[e.HttpStatus.REQUEST_TIMEOUT]:t.RequestTimeoutException,[e.HttpStatus.SERVICE_UNAVAILABLE]:t.ServiceUnavailableException,[e.HttpStatus.UNAUTHORIZED]:t.UnauthorizedException,[e.HttpStatus.UNPROCESSABLE_ENTITY]:t.UnprocessableEntityException,[e.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:t.UnsupportedMediaTypeException},fa}var Px;function hC(){if(Px)return Fn;Px=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.ParseFilePipe=void 0;const e=ae(),t=ar(),r=wl(),n=tr(),o=ne();let i=class{constructor(a={}){const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST,validators:p=[],fileIsRequired:l}=a;this.exceptionFactory=c||(d=>new n.HttpErrorByCode[u](d)),this.validators=p,this.fileIsRequired=l??!0}async transform(a){const c=this.thereAreNoFilesIn(a);if(c&&this.fileIsRequired)throw this.exceptionFactory("File is required");return!c&&this.validators.length&&await this.validateFilesOrFile(a),a}async validateFilesOrFile(a){Array.isArray(a)?await Promise.all(a.map(c=>this.validate(c))):await this.validate(a)}thereAreNoFilesIn(a){const c=Array.isArray(a)&&(0,o.isEmpty)(a),u=(0,o.isObject)(a)&&(0,o.isEmpty)(Object.keys(a));return(0,o.isUndefined)(a)||c||u}async validate(a){for(const c of this.validators)await this.validateOrThrow(a,c);return a}async validateOrThrow(a,c){if(!await c.isValid(a)){const p=c.buildErrorMessage(a);throw this.exceptionFactory(p)}}getValidators(){return this.validators}};return Fn.ParseFilePipe=i,Fn.ParseFilePipe=i=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],i),Fn}var ha={},Ax;function JL(){if(Ax)return ha;Ax=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.ParseFilePipeBuilder=void 0;const e=pC(),t=fC(),r=hC();class n{constructor(){this.validators=[]}addMaxSizeValidator(i){return this.addValidator(new t.MaxFileSizeValidator(i))}addFileTypeValidator(i){return this.addValidator(new e.FileTypeValidator(i))}addValidator(i){return this.validators.push(i),this}build(i){const s=new r.ParseFilePipe({...i,validators:this.validators});return this.validators=[],s}}return ha.ParseFilePipeBuilder=n,ha}var Rx;function QL(){return Rx||(Rx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(pC(),e),t.__exportStar(gg(),e),t.__exportStar(fC(),e),t.__exportStar(XL(),e),t.__exportStar(hC(),e),t.__exportStar(JL(),e)})(Gh)),Gh}var kn={},Dn={},Ln={},Er={},gd={},Mx;function $L(){if(Mx)return gd;Mx=1,Object.defineProperty(gd,"__esModule",{value:!0});class e{constructor(r){this.toConcat=r}next(){if(this.toConcat.length===0)return{done:!0};const r=this.toConcat[0].next();return r.done?(this.toConcat.shift(),this.next()):r}}return gd.ConcatIterator=e,gd}var yd={},Ix;function eU(){if(Ix)return yd;Ix=1,Object.defineProperty(yd,"__esModule",{value:!0});class e{constructor(r,n){this.source=r,this.predicate=n}next(){let r;do r=this.source.next();while(!r.done&&!this.predicate(r.value));return r}}return yd.FilterIterator=e,yd}var bd={},Un={},Cx;function vC(){if(Cx)return Un;Cx=1,Object.defineProperty(Un,"__esModule",{value:!0});function e(n){return typeof n=="object"&&n!==null&&typeof n.next=="function"}Un.isIterator=e;function t(n){return typeof n=="object"&&n!==null&&typeof n[Symbol.iterator]=="function"}Un.isIterable=t;function r(n){if(e(n))return n;if(t(n))return n[Symbol.iterator]();throw new Error("Passed collection is neither an Iterator nor an Iterable")}return Un.toIterator=r,Un}var jx;function tU(){if(jx)return bd;jx=1,Object.defineProperty(bd,"__esModule",{value:!0});const e=vC();class t{constructor(n){this.outer=n}next(){if(this.inner){const i=this.inner.next();if(!i.done)return i;this.inner=void 0}const{value:n,done:o}=this.outer.next();return e.isIterable(n)?(this.inner=n[Symbol.iterator](),this.next()):{value:n,done:o}}}return bd.FlattenIterator=t,bd}var Ed={},qx;function rU(){if(qx)return Ed;qx=1,Object.defineProperty(Ed,"__esModule",{value:!0});class e{constructor(r,n){this.source=r,this.iteratee=n}next(){const{value:r,done:n}=this.source.next();return{value:!n&&this.iteratee(r),done:n}}}return Ed.MapIterator=e,Ed}var xd={},Nx;function nU(){if(Nx)return xd;Nx=1,Object.defineProperty(xd,"__esModule",{value:!0});class e{constructor(r,n,o=1/0){this.source=r,this.start=n,this.end=o,this.i=0}next(){for(;this.i<this.start;){const r=this.source.next();if(r.done)return r;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}return xd.SliceIterator=e,xd}var Od={},Fx;function iU(){if(Fx)return Od;Fx=1,Object.defineProperty(Od,"__esModule",{value:!0});class e{constructor(r,n){this.a=r,this.b=n}next(){const r=this.a.next();if(r.done)return{done:!0};const n=this.b.next();return n.done?{done:!0}:{value:[r.value,n.value],done:!1}}}return Od.ZipIterator=e,Od}var kx;function aU(){if(kx)return Er;kx=1,Object.defineProperty(Er,"__esModule",{value:!0});const e=$L(),t=eU(),r=tU(),n=rU(),o=nU(),i=vC(),s=iU();class a{constructor(l){this.source=l}next(){return this.source.next()}[Symbol.iterator](){return this}map(l){return new a(new n.MapIterator(this.source,l))}filter(l){return new a(new t.FilterIterator(this.source,l))}concat(l){return new a(new e.ConcatIterator([this.source,i.toIterator(l)]))}take(l){return new a(new o.SliceIterator(this.source,0,l+1))}drop(l){return new a(new o.SliceIterator(this.source,l,1/0))}slice(l,d=1/0){return new a(new o.SliceIterator(this.source,l,d))}flatten(){return new a(new r.FlattenIterator(this.source))}reduce(l,d){let f;if(d===void 0){if(f=this.source.next(),f.done)throw new TypeError("Reduce of empty Iterator with no initial value");d=f.value}for(;f=this.source.next(),!f.done;)d=l(d,f.value);return d}find(l){let d;for(;;){if(d=this.source.next(),d.done)return;if(l(d.value))return d.value}}includes(l){let d;do if(d=this.source.next(),!d.done&&d.value===l)return!0;while(!d.done);return!1}some(l){let d;do if(d=this.source.next(),!d.done&&l(d.value))return!0;while(!d.done);return!1}every(l){let d;do if(d=this.source.next(),!d.done&&!l(d.value))return!1;while(!d.done);return!0}forEach(l){let d;for(;d=this.source.next(),!d.done;)l(d.value)}join(l=","){let d="",f;for(;f=this.source.next(),!f.done;)d+=l+f.value;return d.substr(l.length)}toArray(){return Array.from(this)}toSet(){const l=new Set;for(;;){const{value:d,done:f}=this.next();if(f)return l;l.add(d)}}toMap(){return new Map(this)}}Er.IteratorWithOperators=a;function c(p){return new a(i.toIterator(p))}Er.iterate=c;function u(p,l){return new a(new s.ZipIterator(i.toIterator(p),i.toIterator(l)))}return Er.zip=u,Er.default=c,Er}var Dx;function Ve(){if(Dx)return Ln;Dx=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=aU();return Ln.iterate=e.iterate,Ln.zip=e.zip,Ln.default=e.iterate,Ln}function yg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wd={},Lx;function Sl(){if(Lx)return wd;Lx=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.loadPackage=n;const e=yt(),t=(o,i)=>`The "${o}" package is missing. Please, make sure to install it to take advantage of ${i}.`,r=new e.Logger("PackageLoader");function n(o,i,s){try{return s?s():yg(o)}catch{r.error(t(o,i)),e.Logger.flush(),process.exit(1)}}return wd}const oU={},sU=Object.freeze(Object.defineProperty({__proto__:null,default:oU},Symbol.toStringTag,{value:"Module"})),cU=di(sU),uU={},lU=Object.freeze(Object.defineProperty({__proto__:null,default:uU},Symbol.toStringTag,{value:"Module"})),mC=di(lU);var Ux;function _C(){if(Ux)return Dn;Ux=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.ValidationPipe=void 0;const e=ae(),t=Ve(),r=li,n=vg(),o=ar(),i=je(),s=tr(),a=Sl(),c=ne();let u={},p={};const l=[Date,RegExp,Error,Map,Set,WeakMap,WeakSet];let d=class{constructor(h){h=h||{};const{transform:m,disableErrorMessages:v,errorHttpStatusCode:_,expectedType:g,transformOptions:y,validateCustomDecorators:b,...E}=h;this.validatorOptions={forbidUnknownValues:!1,...E},this.isTransformEnabled=!!m,this.transformOptions=y,this.isDetailedOutputDisabled=v,this.validateCustomDecorators=b||!1,this.errorHttpStatusCode=_||i.HttpStatus.BAD_REQUEST,this.expectedType=g,this.exceptionFactory=h.exceptionFactory||this.createExceptionFactory(),u=this.loadValidator(h.validatorPackage),p=this.loadTransformer(h.transformerPackage)}loadValidator(h){return h??(0,a.loadPackage)("class-validator","ValidationPipe",()=>cU)}loadTransformer(h){return h??(0,a.loadPackage)("class-transformer","ValidationPipe",()=>mC)}async transform(h,m){this.expectedType&&(m={...m,metatype:this.expectedType});const v=m.metatype;if(!v||!this.toValidate(m))return this.isTransformEnabled?this.transformPrimitive(h,m):h;const _=h;h=this.toEmptyIfNil(h,v);const g=h!==_,y=this.isPrimitive(h);this.stripProtoKeys(h);let b=p.plainToInstance(v,h,this.transformOptions);const E=b,x=b.constructor!==v;x&&!y?b.constructor=v:x&&(b={constructor:v});const O=await this.validate(b,this.validatorOptions);if(O.length>0)throw await this.exceptionFactory(O);return _===void 0&&E===""?_:(y&&(b=E),this.isTransformEnabled?b:g?_:Object.keys(this.validatorOptions).length>1?p.classToPlain(b,this.transformOptions):h)}createExceptionFactory(){return(h=[])=>{if(this.isDetailedOutputDisabled)return new s.HttpErrorByCode[this.errorHttpStatusCode];const m=this.flattenValidationErrors(h);return new s.HttpErrorByCode[this.errorHttpStatusCode](m)}}toValidate(h){const{metatype:m,type:v}=h;return v==="custom"&&!this.validateCustomDecorators?!1:![String,Boolean,Number,Array,Object,Buffer,Date].some(g=>m===g)&&!(0,c.isNil)(m)}transformPrimitive(h,m){if(!m.data)return h;const{type:v,metatype:_}=m;return v!=="param"&&v!=="query"?h:_===Boolean?(0,c.isUndefined)(h)?void 0:h===!0||h==="true":_===Number?(0,c.isUndefined)(h)?void 0:+h:_===String&&!(0,c.isUndefined)(h)?String(h):h}toEmptyIfNil(h,m){return(0,c.isNil)(h)?typeof m=="function"||m&&"prototype"in m&&m.prototype?.constructor?{}:"":h}stripProtoKeys(h){if(h==null||typeof h!="object"||r.types.isTypedArray(h)||l.some(v=>h instanceof v))return;if(Array.isArray(h)){for(const v of h)this.stripProtoKeys(v);return}delete h.__proto__,delete h.prototype;const m=h?.constructor;m&&!l.includes(m)&&delete h.constructor;for(const v in h)this.stripProtoKeys(h[v])}isPrimitive(h){return["number","boolean","string"].includes(typeof h)}validate(h,m){return u.validate(h,m)}flattenValidationErrors(h){return(0,t.iterate)(h).map(m=>this.mapChildrenToValidationErrors(m)).flatten().filter(m=>!!m.constraints).map(m=>Object.values(m.constraints)).flatten().toArray()}mapChildrenToValidationErrors(h,m){if(!(h.children&&h.children.length))return[h];const v=[];m=m?`${m}.${h.property}`:h.property;for(const _ of h.children)_.children&&_.children.length&&v.push(...this.mapChildrenToValidationErrors(_,m)),v.push(this.prependConstraintsWithParentProp(m,_));return v}prependConstraintsWithParentProp(h,m){const v={};for(const _ in m.constraints)v[_]=`${h}.${m.constraints[_]}`;return{...m,constraints:v}}};return Dn.ValidationPipe=d,Dn.ValidationPipe=d=e.__decorate([(0,o.Injectable)(),e.__param(0,(0,n.Optional)()),e.__metadata("design:paramtypes",[Object])],d),Dn}var zx;function dU(){if(zx)return kn;zx=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.ParseArrayPipe=void 0;const e=ae(),t=gn(),r=Ol(),n=je(),o=tr(),i=ne(),s=_C(),a="Validation failed (parsable array expected)",c=",";let u=class{constructor(l={}){this.options=l,this.validationPipe=new s.ValidationPipe({transform:!0,validateCustomDecorators:!0,...l});const{exceptionFactory:d,errorHttpStatusCode:f=n.HttpStatus.BAD_REQUEST}=l;this.exceptionFactory=d||(h=>new o.HttpErrorByCode[f](h))}async transform(l,d){if(!l&&!this.options.optional)throw this.exceptionFactory(a);if((0,i.isNil)(l)&&this.options.optional)return l;if(!Array.isArray(l))if((0,i.isString)(l))try{l=l.trim().split(this.options.separator||c)}catch{throw this.exceptionFactory(a)}else throw this.exceptionFactory(a);if(this.options.items){const f={metatype:this.options.items,type:"query"},h=this.isExpectedTypePrimitive(),m=(v,_)=>{if(this.options.items!==String)try{v=JSON.parse(v)}catch{}return h?this.validatePrimitive(v,_):this.validationPipe.transform(v,f)};if(this.options.stopAtFirstError===!1){let v=[];const _=l;for(let g=0;g<_.length;g++)try{_[g]=await m(_[g])}catch(y){let b;if(y.getResponse){const E=y.getResponse();Array.isArray(E.message)?b=E.message.map(x=>`[${g}] ${x}`):b=`[${g}] ${E.message}`}else b=y;v=v.concat(b)}if(v.length>0)throw this.exceptionFactory(v);return _}else l=await Promise.all(l.map(m))}return l}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(l,d){if(this.options.items===Number){const f=l!==null&&l!==""?+l:NaN;if(isNaN(f))throw this.exceptionFactory(`${(0,i.isUndefined)(d)?"":`[${d}] `}item must be a number`);return f}else if(this.options.items===String){if(!(0,i.isString)(l))return`${l}`}else if(this.options.items===Boolean&&typeof l!="boolean")throw this.exceptionFactory(`${(0,i.isUndefined)(d)?"":`[${d}] `}item must be a boolean value`);return l}};return kn.ParseArrayPipe=u,kn.ParseArrayPipe=u=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],u),kn}var zn={},Bx;function pU(){if(Bx)return zn;Bx=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.ParseBoolPipe=void 0;const e=ae(),t=gn(),r=Ol(),n=je(),o=tr(),i=ne();let s=class{constructor(c){this.options=c,c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=n.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new o.HttpErrorByCode[p](l))}async transform(c,u){if((0,i.isNil)(c)&&this.options?.optional)return c;if(this.isTrue(c))return!0;if(this.isFalse(c))return!1;throw this.exceptionFactory("Validation failed (boolean string is expected)")}isTrue(c){return c===!0||c==="true"}isFalse(c){return c===!1||c==="false"}};return zn.ParseBoolPipe=s,zn.ParseBoolPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),zn}var Bn={},Hx;function fU(){if(Hx)return Bn;Hx=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.ParseDatePipe=void 0;const e=ae(),t=gn(),r=je(),n=tr(),o=ne();let i=class{constructor(a={}){this.options=a;const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=a;this.exceptionFactory=c||(p=>new n.HttpErrorByCode[u](p))}transform(a){if(this.options.optional&&(0,o.isNil)(a))return this.options.default?this.options.default():a;if(!a)throw this.exceptionFactory("Validation failed (no Date provided)");const c=new Date(a);if(isNaN(c.getTime()))throw this.exceptionFactory("Validation failed (invalid date format)");return c}};return Bn.ParseDatePipe=i,Bn.ParseDatePipe=i=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],i),Bn}var Hn={},Vx;function hU(){if(Vx)return Hn;Vx=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.ParseEnumPipe=void 0;const e=ae(),t=ar(),r=ve(),n=tr(),o=ne();let i=class{constructor(a,c){if(this.enumType=a,this.options=c,!a)throw new Error('"ParseEnumPipe" requires "enumType" argument specified (to validate input values).');c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=r.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new n.HttpErrorByCode[p](l))}async transform(a,c){if((0,o.isNil)(a)&&this.options?.optional)return a;if(!this.isEnum(a))throw this.exceptionFactory("Validation failed (enum string is expected)");return a}isEnum(a){return Object.keys(this.enumType).map(u=>this.enumType[u]).includes(a)}};return Hn.ParseEnumPipe=i,Hn.ParseEnumPipe=i=e.__decorate([(0,t.Injectable)(),e.__param(1,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],i),Hn}var Vn={},Gx;function vU(){if(Gx)return Vn;Gx=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.ParseFloatPipe=void 0;const e=ae(),t=ar(),r=ve(),n=tr(),o=ne();let i=class{constructor(a){this.options=a,a=a||{};const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=a;this.exceptionFactory=c||(p=>new n.HttpErrorByCode[u](p))}async transform(a,c){if((0,o.isNil)(a)&&this.options?.optional)return a;if(!this.isNumeric(a))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(a)}isNumeric(a){return["string","number"].includes(typeof a)&&!isNaN(parseFloat(a))&&isFinite(a)}};return Vn.ParseFloatPipe=i,Vn.ParseFloatPipe=i=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],i),Vn}var Gn={},Wx;function mU(){if(Wx)return Gn;Wx=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.ParseIntPipe=void 0;const e=ae(),t=gn(),r=Ol(),n=je(),o=tr(),i=ne();let s=class{constructor(c){this.options=c,c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=n.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new o.HttpErrorByCode[p](l))}async transform(c,u){if((0,i.isNil)(c)&&this.options?.optional)return c;if(!this.isNumeric(c))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseInt(c,10)}isNumeric(c){return["string","number"].includes(typeof c)&&/^-?\d+$/.test(c)&&isFinite(c)}};return Gn.ParseIntPipe=s,Gn.ParseIntPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),Gn}var Wn={},Zx;function _U(){if(Zx)return Wn;Zx=1;var e;Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.ParseUUIDPipe=void 0;const t=ae(),r=gn(),n=Ol(),o=je(),i=tr(),s=ne();let a=e=class{constructor(u){this.options=u,u=u||{};const{exceptionFactory:p,errorHttpStatusCode:l=o.HttpStatus.BAD_REQUEST,version:d}=u;this.version=d,this.exceptionFactory=p||(f=>new i.HttpErrorByCode[l](f))}async transform(u,p){if((0,s.isNil)(u)&&this.options?.optional)return u;if(!this.isUUID(u,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:""} is expected)`);return u}isUUID(u,p="all"){if(!(0,s.isString)(u))throw this.exceptionFactory("The value passed as UUID is not a string");return e.uuidRegExps[p]?.test(u)}};return Wn.ParseUUIDPipe=a,a.uuidRegExps={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},Wn.ParseUUIDPipe=a=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata("design:paramtypes",[Object])],a),Wn}var Kx;function gU(){return Kx||(Kx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(KL(),e),t.__exportStar(QL(),e),t.__exportStar(dU(),e),t.__exportStar(pU(),e),t.__exportStar(fU(),e),t.__exportStar(hU(),e),t.__exportStar(vU(),e),t.__exportStar(mU(),e),t.__exportStar(_U(),e),t.__exportStar(_C(),e)})(Vh)),Vh}var Kh={},Zn={},Yh={},va={},xr={},ma={},Yx;function qe(){if(Yx)return ma;Yx=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.isFunction=void 0;function e(t){return typeof t=="function"}return ma.isFunction=e,ma}var Xx;function ce(){if(Xx)return xr;Xx=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.operate=xr.hasLift=void 0;var e=qe();function t(n){return e.isFunction(n?.lift)}xr.hasLift=t;function r(n){return function(o){if(t(o))return o.lift(function(i){try{return n(i,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}return xr.operate=r,xr}var De={},_a={},Jx;function bg(){return Jx||(Jx=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.isArrayLike=void 0,_a.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})),_a}var ga={},Qx;function gC(){if(Qx)return ga;Qx=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.isPromise=void 0;var e=qe();function t(r){return e.isFunction(r?.then)}return ga.isPromise=t,ga}var ya={},ba={},ct={},Ea={},xa={},$x;function yn(){if($x)return xa;$x=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.createErrorClass=void 0;function e(t){var r=function(o){Error.call(o),o.stack=new Error().stack},n=t(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}return xa.createErrorClass=e,xa}var eO;function yC(){if(eO)return Ea;eO=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.UnsubscriptionError=void 0;var e=yn();return Ea.UnsubscriptionError=e.createErrorClass(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
6
|
+
`))}updateAndGetTimestampDiff(){const f=e.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-e.lastTimestampAt):"";return e.lastTimestampAt=Date.now(),f}formatTimestampDiff(d){const f=` +${d}ms`;return this.options.colors?(0,o.yellow)(f):f}getInspectOptions(){let d=this.options.breakLength;typeof d>"u"&&(d=this.options.colors?this.options.compact?1/0:void 0:this.options.compact===!1?void 0:1/0);const f={depth:this.options.depth??a,sorted:this.options.sorted,showHidden:this.options.showHidden,compact:this.options.compact??!!this.options.json,colors:this.options.colors,breakLength:d};return typeof this.options.maxArrayLength<"u"&&(f.maxArrayLength=this.options.maxArrayLength),typeof this.options.maxStringLength<"u"&&(f.maxStringLength=this.options.maxStringLength),f}stringifyReplacer(d,f){return typeof f=="bigint"||typeof f=="symbol"?f.toString():f instanceof Map||f instanceof Set||f instanceof Error?`${(0,r.inspect)(f,this.inspectOptions)}`:f}getContextAndMessagesToPrint(d){if(d?.length<=1)return{messages:d,context:this.context};const f=d[d.length-1];return(0,i.isString)(f)?{context:f,messages:d.slice(0,d.length-1)}:{messages:d,context:this.context}}getContextAndStackAndMessagesToPrint(d){if(d.length===2)return this.isStackFormat(d[1])?{messages:[d[0]],stack:d[1],context:this.context}:{...this.getContextAndMessagesToPrint(d)};const{messages:f,context:h}=this.getContextAndMessagesToPrint(d);if(f?.length<=1)return{messages:f,context:h};const m=f[f.length-1];return!(0,i.isString)(m)&&!(0,i.isUndefined)(m)?{messages:f,context:h}:{stack:m,messages:f.slice(0,f.length-1),context:h}}isStackFormat(d){return!(0,i.isString)(d)&&!(0,i.isUndefined)(d)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(d)}getColorByLogLevel(d){switch(d){case"debug":return o.clc.magentaBright;case"warn":return o.clc.yellow;case"error":return o.clc.red;case"verbose":return o.clc.cyanBright;case"fatal":return o.clc.bold;default:return o.clc.green}}};return Nn.ConsoleLogger=p,Nn.ConsoleLogger=p=e=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__param(1,(0,n.Optional)()),t.__metadata("design:paramtypes",[Object,Object])],p),Nn}var rr={},Uf={},hd={},vd={},tE;function nC(){if(tE)return vd;tE=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.isLogLevel=t;const e=yt();function t(r){return e.LOG_LEVELS.includes(r)}return vd}var rE;function iC(){if(rE)return hd;rE=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.filterLogLevels=r;const e=yt(),t=nC();function r(n=""){const o=n.replaceAll(" ","").toLowerCase();if(o[0]===">"){const i=o[1]==="=",s=e.LOG_LEVELS.indexOf(o.substring(i?2:1));if(s===-1)throw new Error(`parse error (unknown log level): ${o}`);return e.LOG_LEVELS.slice(i?s:s+1)}else if(o.includes(","))return o.split(",").filter(t.isLogLevel);return(0,t.isLogLevel)(o)?[o]:e.LOG_LEVELS}return hd}var nE;function ND(){return nE||(nE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(iC(),e),t.__exportStar(rC(),e),t.__exportStar(nC(),e)})(Uf)),Uf}var iE;function yt(){if(iE)return rr;iE=1;var e;Object.defineProperty(rr,"__esModule",{value:!0}),rr.Logger=rr.LOG_LEVELS=void 0;const t=ae(),r=ar(),n=ne(),o=vg(),i=ND();rr.LOG_LEVELS=["verbose","debug","log","warn","error","fatal"];const s=new o.ConsoleLogger,a=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let c=e=class{constructor(p,l={}){this.context=p,this.options=l}get localInstance(){return e.staticInstanceRef===s?this.registerLocalInstanceRef():e.staticInstanceRef instanceof e&&Object.getPrototypeOf(e.staticInstanceRef).constructor===e?this.registerLocalInstanceRef():e.staticInstanceRef}error(p,...l){l=this.context?(l.length?l:[void 0]).concat(this.context):l,this.localInstance?.error(p,...l)}log(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.log(p,...l)}warn(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.warn(p,...l)}debug(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.debug?.(p,...l)}verbose(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.verbose?.(p,...l)}fatal(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.fatal?.(p,...l)}static error(p,...l){this.staticInstanceRef?.error(p,...l)}static log(p,...l){this.staticInstanceRef?.log(p,...l)}static warn(p,...l){this.staticInstanceRef?.warn(p,...l)}static debug(p,...l){this.staticInstanceRef?.debug?.(p,...l)}static verbose(p,...l){this.staticInstanceRef?.verbose?.(p,...l)}static fatal(p,...l){this.staticInstanceRef?.fatal?.(p,...l)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(p=>p.methodRef(...p.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return a.format(Date.now())}static overrideLogger(p){if(Array.isArray(p))return e.logLevels=p,this.staticInstanceRef?.setLogLevels?.(p);if((0,n.isObject)(p)){if(p instanceof e&&p.constructor!==e){const l='Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.';throw this.staticInstanceRef?.error(l),new Error(l)}this.staticInstanceRef=p}else this.staticInstanceRef=void 0}static isLevelEnabled(p){const l=e.logLevels;return(0,i.isLogLevelEnabled)(p,l)}registerLocalInstanceRef(){return this.localInstanceRef?this.localInstanceRef:(this.localInstanceRef=new o.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:e.logLevels}),this.localInstanceRef)}};return rr.Logger=c,c.logBuffer=new Array,c.staticInstanceRef=s,c.WrapBuffer=(u,p,l)=>{const d=l.value;l.value=function(...f){if(e.isBufferAttached){e.logBuffer.push({methodRef:d.bind(this),arguments:f});return}return d.call(this,...f)}},t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"error",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"log",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"warn",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"debug",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"verbose",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"fatal",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"error",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"log",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"warn",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"debug",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"verbose",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"fatal",null),rr.Logger=c=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,r.Optional)()),t.__param(1,(0,r.Optional)()),t.__metadata("design:paramtypes",[String,Object])],c),rr}var aE;function aC(){return aE||(aE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(vg(),e),t.__exportStar(yt(),e),t.__exportStar(iC(),e)})(Df)),Df}var oE;function qD(){if(oE)return ia;oE=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.StreamableFile=void 0;const e=mp,t=ui,r=wl(),n=aC(),o=ne();class i{constructor(a,c={}){this.options=c,this.logger=new n.Logger("StreamableFile"),this.handleError=(u,p)=>{if(!p.destroyed){if(p.headersSent){p.end();return}p.statusCode=r.HttpStatus.BAD_REQUEST,p.send(u.message)}},this.logError=u=>{this.logger.error(u)},t.types.isUint8Array(a)?(this.stream=new e.Readable,this.stream.push(a),this.stream.push(null),this.options.length??=a.length):a.pipe&&(0,o.isFunction)(a.pipe)&&(this.stream=a)}getStream(){return this.stream}getHeaders(){const{type:a="application/octet-stream",disposition:c=void 0,length:u=void 0}=this.options;return{type:a,disposition:c,length:u}}get errorHandler(){return this.handleError}setErrorHandler(a){return this.handleError=a,this}get errorLogger(){return this.logError}setErrorLogger(a){return this.logError=a,this}}return ia.StreamableFile=i,ia}var sE;function oC(){return sE||(sE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(qD(),e)})(kf)),kf}var zf={},Bf={},cE;function FD(){return cE||(cE=1,Object.defineProperty(Bf,"__esModule",{value:!0})),Bf}var Hf={},uE;function kD(){return uE||(uE=1,Object.defineProperty(Hf,"__esModule",{value:!0})),Hf}var Vf={},lE;function DD(){return lE||(lE=1,Object.defineProperty(Vf,"__esModule",{value:!0})),Vf}var Gf={},dE;function LD(){return dE||(dE=1,Object.defineProperty(Gf,"__esModule",{value:!0})),Gf}var Wf={},pE;function UD(){return pE||(pE=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Zf={},fE;function zD(){return fE||(fE=1,Object.defineProperty(Zf,"__esModule",{value:!0})),Zf}var Kf={},hE;function BD(){return hE||(hE=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Yf={},vE;function HD(){return vE||(vE=1,Object.defineProperty(Yf,"__esModule",{value:!0})),Yf}var Xf={},mE;function VD(){return mE||(mE=1,Object.defineProperty(Xf,"__esModule",{value:!0})),Xf}var Jf={},_E;function GD(){return _E||(_E=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var Qf={},gE;function WD(){return gE||(gE=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var $f={},yE;function ZD(){return yE||(yE=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var eh={},bE;function KD(){return bE||(bE=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},EE;function YD(){return EE||(EE=1,Object.defineProperty(th,"__esModule",{value:!0})),th}var rh={},xE;function XD(){return xE||(xE=1,Object.defineProperty(rh,"__esModule",{value:!0})),rh}var nh={},ih={},OE;function JD(){return OE||(OE=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},wE;function QD(){return wE||(wE=1,Object.defineProperty(ah,"__esModule",{value:!0})),ah}var oh={},SE;function $D(){return SE||(SE=1,Object.defineProperty(oh,"__esModule",{value:!0})),oh}var sh={},PE;function eL(){return PE||(PE=1,Object.defineProperty(sh,"__esModule",{value:!0})),sh}var ch={},TE;function tL(){return TE||(TE=1,Object.defineProperty(ch,"__esModule",{value:!0})),ch}var AE;function rL(){return AE||(AE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(JD(),e),t.__exportStar(QD(),e),t.__exportStar($D(),e),t.__exportStar(eL(),e),t.__exportStar(tL(),e)})(nh)),nh}var uh={},lh={},RE;function nL(){return RE||(RE=1,Object.defineProperty(lh,"__esModule",{value:!0})),lh}var dh={},ME;function iL(){return ME||(ME=1,Object.defineProperty(dh,"__esModule",{value:!0})),dh}var ph={},IE;function aL(){return IE||(IE=1,Object.defineProperty(ph,"__esModule",{value:!0})),ph}var fh={},CE;function oL(){return CE||(CE=1,Object.defineProperty(fh,"__esModule",{value:!0})),fh}var hh={},jE;function sL(){return jE||(jE=1,Object.defineProperty(hh,"__esModule",{value:!0})),hh}var NE;function cL(){return NE||(NE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(nL(),e),t.__exportStar(iL(),e),t.__exportStar(aL(),e),t.__exportStar(oL(),e),t.__exportStar(sL(),e)})(uh)),uh}var vh={},qE;function uL(){return qE||(qE=1,Object.defineProperty(vh,"__esModule",{value:!0})),vh}var mh={},FE;function lL(){return FE||(FE=1,Object.defineProperty(mh,"__esModule",{value:!0})),mh}var _h={},gh={},kE;function dL(){return kE||(kE=1,Object.defineProperty(gh,"__esModule",{value:!0})),gh}var yh={},DE;function pL(){return DE||(DE=1,Object.defineProperty(yh,"__esModule",{value:!0})),yh}var bh={},LE;function fL(){return LE||(LE=1,Object.defineProperty(bh,"__esModule",{value:!0})),bh}var Eh={},UE;function hL(){return UE||(UE=1,Object.defineProperty(Eh,"__esModule",{value:!0})),Eh}var zE;function vL(){return zE||(zE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(dL(),e),t.__exportStar(pL(),e),t.__exportStar(fL(),e),t.__exportStar(hL(),e)})(_h)),_h}var xh={},Oh={},BE;function mL(){return BE||(BE=1,Object.defineProperty(Oh,"__esModule",{value:!0})),Oh}var wh={},HE;function _L(){return HE||(HE=1,Object.defineProperty(wh,"__esModule",{value:!0})),wh}var Sh={},VE;function gL(){return VE||(VE=1,Object.defineProperty(Sh,"__esModule",{value:!0})),Sh}var Ph={},GE;function yL(){return GE||(GE=1,Object.defineProperty(Ph,"__esModule",{value:!0})),Ph}var Th={},WE;function bL(){return WE||(WE=1,Object.defineProperty(Th,"__esModule",{value:!0})),Th}var Ah={},ZE;function EL(){return ZE||(ZE=1,Object.defineProperty(Ah,"__esModule",{value:!0})),Ah}var Rh={},KE;function xL(){return KE||(KE=1,Object.defineProperty(Rh,"__esModule",{value:!0})),Rh}var Mh={},YE;function OL(){return YE||(YE=1,Object.defineProperty(Mh,"__esModule",{value:!0})),Mh}var XE;function wL(){return XE||(XE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(mL(),e),t.__exportStar(_L(),e),t.__exportStar(gL(),e),t.__exportStar(yL(),e),t.__exportStar(bL(),e),t.__exportStar(EL(),e),t.__exportStar(xL(),e),t.__exportStar(OL(),e)})(xh)),xh}var Ih={},JE;function SL(){return JE||(JE=1,Object.defineProperty(Ih,"__esModule",{value:!0})),Ih}var Ch={},QE;function PL(){return QE||(QE=1,Object.defineProperty(Ch,"__esModule",{value:!0})),Ch}var jh={},$E;function TL(){return $E||($E=1,Object.defineProperty(jh,"__esModule",{value:!0})),jh}var Nh={},ex;function AL(){return ex||(ex=1,Object.defineProperty(Nh,"__esModule",{value:!0})),Nh}var aa={},tx;function RL(){if(tx)return aa;tx=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.Scope=void 0;var e;return(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.TRANSIENT=1]="TRANSIENT",t[t.REQUEST=2]="REQUEST"})(e||(aa.Scope=e={})),aa}var qh={},rx;function ML(){return rx||(rx=1,Object.defineProperty(qh,"__esModule",{value:!0})),qh}var Fh={},nx;function IL(){return nx||(nx=1,Object.defineProperty(Fh,"__esModule",{value:!0})),Fh}var oa={},ix;function sC(){return ix||(ix=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.VERSION_NEUTRAL=void 0,oa.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")),oa}var kh={},ax;function CL(){return ax||(ax=1,Object.defineProperty(kh,"__esModule",{value:!0})),kh}var ox;function bp(){return ox||(ox=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(FD(),e),t.__exportStar(kD(),e),t.__exportStar(DD(),e),t.__exportStar(LD(),e),t.__exportStar(UD(),e),t.__exportStar(zD(),e),t.__exportStar(BD(),e),t.__exportStar(HD(),e),t.__exportStar(VD(),e),t.__exportStar(GD(),e),t.__exportStar(WD(),e),t.__exportStar(ZD(),e),t.__exportStar(KD(),e),t.__exportStar(YD(),e),t.__exportStar(XD(),e),t.__exportStar(rL(),e),t.__exportStar(cL(),e),t.__exportStar(uL(),e),t.__exportStar(lL(),e),t.__exportStar(vL(),e),t.__exportStar(wL(),e),t.__exportStar(SL(),e),t.__exportStar(PL(),e),t.__exportStar(TL(),e),t.__exportStar(AL(),e),t.__exportStar(RL(),e),t.__exportStar(ML(),e),t.__exportStar(IL(),e),t.__exportStar(sC(),e),t.__exportStar(CL(),e)})(zf)),zf}var Dh={},sa={},ca={},sx;function sr(){if(sx)return ca;sx=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.randomStringGenerator=void 0;const e=_n(),t=()=>(0,e.uid)(21);return ca.randomStringGenerator=t,ca}var ht={},cx;function jL(){return cx||(cx=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.ASYNC_OPTIONS_METADATA_KEYS=ht.CONFIGURABLE_MODULE_ID=ht.ASYNC_METHOD_SUFFIX=ht.DEFAULT_FACTORY_CLASS_METHOD_KEY=ht.DEFAULT_METHOD_KEY=void 0,ht.DEFAULT_METHOD_KEY="register",ht.DEFAULT_FACTORY_CLASS_METHOD_KEY="create",ht.ASYNC_METHOD_SUFFIX="Async",ht.CONFIGURABLE_MODULE_ID="CONFIGURABLE_MODULE_ID",ht.ASYNC_OPTIONS_METADATA_KEYS=["useFactory","useClass","useExisting","inject","imports","provideInjectionTokensFrom"]),ht}var Lh={},md={},ux;function NL(){if(ux)return md;ux=1,Object.defineProperty(md,"__esModule",{value:!0}),md.generateOptionsInjectionToken=t;const e=sr();function t(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,e.randomStringGenerator)()}]`}return md}var _d={},lx;function qL(){if(lx)return _d;lx=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.getInjectionProviders=n;const e=ne();function t(o){return!(0,e.isUndefined)(o.token)&&!(0,e.isUndefined)(o.optional)&&!o.prototype}const r=o=>t(o)?o.token:o;function n(o,i){const s=[];let a=i.map(r);for(;a.length>0;){const c=(o??[]).filter(u=>!s.includes(u)&&(a.includes(u)||a.includes(u?.provide)));s.push(...c),a=c.filter(u=>u?.inject).flatMap(u=>u.inject).map(r)}return s}return _d}var dx;function FL(){return dx||(dx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(NL(),e),t.__exportStar(qL(),e)})(Lh)),Lh}var px;function kL(){if(px)return sa;px=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.ConfigurableModuleBuilder=void 0;const e=yt(),t=sr(),r=jL(),n=FL();class o{constructor(s={},a){this.options=s,this.logger=new e.Logger(o.name),a&&(this.staticMethodKey=a.staticMethodKey,this.factoryClassMethodKey=a.factoryClassMethodKey,this.transformModuleDefinition=a.transformModuleDefinition,this.extras=a.extras)}setExtras(s,a=c=>c){const c=new o(this.options,this);return c.extras=s,c.transformModuleDefinition=a,c}setClassMethodName(s){const a=new o(this.options,this);return a.staticMethodKey=s,a}setFactoryMethodName(s){const a=new o(this.options,this);return a.factoryClassMethodKey=s,a}build(){return this.staticMethodKey??=r.DEFAULT_METHOD_KEY,this.factoryClassMethodKey??=r.DEFAULT_FACTORY_CLASS_METHOD_KEY,this.options.optionsInjectionToken??=this.options.moduleName?this.constructInjectionTokenString():(0,n.generateOptionsInjectionToken)(),this.transformModuleDefinition??=s=>s,{ConfigurableModuleClass:this.createConfigurableModuleCls(),MODULE_OPTIONS_TOKEN:this.options.optionsInjectionToken,ASYNC_OPTIONS_TYPE:this.createTypeProxy("ASYNC_OPTIONS_TYPE"),OPTIONS_TYPE:this.createTypeProxy("OPTIONS_TYPE")}}constructInjectionTokenString(){return`${this.options.moduleName.trim().split(/(?=[A-Z])/).join("_").toUpperCase()}_MODULE_OPTIONS`}createConfigurableModuleCls(){const s=this,a=this.staticMethodKey+r.ASYNC_METHOD_SUFFIX;class c{static[s.staticMethodKey](p){const l=[{provide:s.options.optionsInjectionToken,useValue:this.omitExtras(p,s.extras)}];return s.options.alwaysTransient&&l.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,t.randomStringGenerator)()}),s.transformModuleDefinition({module:this,providers:l},{...s.extras,...p})}static[a](p){const l=this.createAsyncProviders(p);return s.options.alwaysTransient&&l.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,t.randomStringGenerator)()}),s.transformModuleDefinition({module:this,imports:p.imports||[],providers:l},{...s.extras,...this.extractExtrasFromAsyncOptions(p,s.extras)})}static omitExtras(p,l){if(!l)return p;const d={},f=Object.keys(l);return Object.keys(p).filter(h=>!f.includes(h)).forEach(h=>{d[h]=p[h]}),d}static extractExtrasFromAsyncOptions(p,l){if(!l)return{};const d={};return Object.keys(p).filter(f=>!r.ASYNC_OPTIONS_METADATA_KEYS.includes(f)).forEach(f=>{d[f]=p[f]}),d}static createAsyncProviders(p){return p.useExisting||p.useFactory?p.inject&&p.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(p),...(0,n.getInjectionProviders)(p.provideInjectionTokensFrom,p.inject)]:[this.createAsyncOptionsProvider(p)]:[this.createAsyncOptionsProvider(p),{provide:p.useClass,useClass:p.useClass}]}static createAsyncOptionsProvider(p){return p.useFactory?{provide:s.options.optionsInjectionToken,useFactory:p.useFactory,inject:p.inject||[]}:{provide:s.options.optionsInjectionToken,useFactory:async l=>await l[s.factoryClassMethodKey](),inject:[p.useExisting||p.useClass]}}}return c}createTypeProxy(s){return new Proxy({},{get:()=>{throw new Error(`"${s}" is not supposed to be used as a value.`)}})}}return sa.ConfigurableModuleBuilder=o,sa}var Uh={},zh={},fx;function DL(){return fx||(fx=1,Object.defineProperty(zh,"__esModule",{value:!0})),zh}var Bh={},hx;function LL(){return hx||(hx=1,Object.defineProperty(Bh,"__esModule",{value:!0})),Bh}var Hh={},vx;function UL(){return vx||(vx=1,Object.defineProperty(Hh,"__esModule",{value:!0})),Hh}var mx;function zL(){return mx||(mx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(DL(),e),t.__exportStar(LL(),e),t.__exportStar(UL(),e)})(Uh)),Uh}var _x;function BL(){return _x||(_x=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(kL(),e),t.__exportStar(zL(),e)})(Dh)),Dh}var Vh={},qn={},gx;function HL(){if(gx)return qn;gx=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.DefaultValuePipe=void 0;const e=ae(),t=gn(),r=ne();let n=class{constructor(i){this.defaultValue=i}transform(i,s){return(0,r.isNil)(i)||(0,r.isNumber)(i)&&isNaN(i)?this.defaultValue:i}};return qn.DefaultValuePipe=n,qn.DefaultValuePipe=n=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],n),qn}var Gh={},ua={},la={},yx;function mg(){if(yx)return la;yx=1,Object.defineProperty(la,"__esModule",{value:!0}),la.FileValidator=void 0;class e{constructor(r){this.validationOptions=r}}return la.FileValidator=e,la}var Wh,bx;function VL(){return bx||(bx=1,Wh={loadEsm:e=>import(e)}),Wh}var Ex;function cC(){if(Ex)return ua;Ex=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.FileTypeValidator=void 0;const e=eC,t=yt(),r=mg(),n=VL(),o=new t.Logger("FileTypeValidator");class i extends r.FileValidator{buildErrorMessage(a){const{errorMessage:c,...u}=this.validationOptions;if(c)return typeof c=="function"?c({file:a,config:u}):c;if(a?.mimetype){const p=`Validation failed (current file type is ${a.mimetype}, expected type is ${this.validationOptions.fileType})`;return this.validationOptions.fallbackToMimetype?`${p} - magic number detection failed, used mimetype fallback`:p}return`Validation failed (expected type is ${this.validationOptions.fileType})`}async isValid(a){if(!this.validationOptions)return!0;const c=!!a&&"mimetype"in a;if(this.validationOptions.skipMagicNumbersValidation)return c&&!!a.mimetype.match(this.validationOptions.fileType);if(!c)return!1;if(!a.buffer)return this.validationOptions.fallbackToMimetype?!!a.mimetype.match(this.validationOptions.fileType):!1;try{let u;try{const d=require.resolve("file-type");u=(0,e.pathToFileURL)(d).href}catch{u="file-type"}const{fileTypeFromBuffer:p}=await(0,n.loadEsm)(u),l=await p(a.buffer);return l?!!l.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!a.mimetype.match(this.validationOptions.fileType):!1}catch(u){const p=u instanceof Error?u.message:String(u);return(p.includes("ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING")||p.includes("Cannot find module")||p.includes("ERR_MODULE_NOT_FOUND"))&&o.warn(`Failed to load the "file-type" package for magic number validation. If you are using Jest, run it with NODE_OPTIONS="--experimental-vm-modules". Error: ${p}`),this.validationOptions.fallbackToMimetype?!!a.mimetype.match(this.validationOptions.fileType):!1}}}return ua.FileTypeValidator=i,ua}var da={},xx;function uC(){if(xx)return da;xx=1,Object.defineProperty(da,"__esModule",{value:!0}),da.MaxFileSizeValidator=void 0;const e=mg();class t extends e.FileValidator{buildErrorMessage(n){const{errorMessage:o,message:i,...s}=this.validationOptions;return o?typeof o=="function"?o({file:n,config:s}):o:i?typeof i=="function"?i(this.validationOptions.maxSize):i:n?.size?`Validation failed (current file size is ${n.size}, expected size is less than ${this.validationOptions.maxSize})`:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(n){return!this.validationOptions||!n?!0:"size"in n&&n.size<this.validationOptions.maxSize}}return da.MaxFileSizeValidator=t,da}var Zh={},Ox;function GL(){return Ox||(Ox=1,Object.defineProperty(Zh,"__esModule",{value:!0})),Zh}var Fn={},pa={},wx;function er(){if(wx)return pa;wx=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.HttpErrorByCode=void 0;const e=wl(),t=hg();return pa.HttpErrorByCode={[e.HttpStatus.BAD_GATEWAY]:t.BadGatewayException,[e.HttpStatus.BAD_REQUEST]:t.BadRequestException,[e.HttpStatus.CONFLICT]:t.ConflictException,[e.HttpStatus.FORBIDDEN]:t.ForbiddenException,[e.HttpStatus.GATEWAY_TIMEOUT]:t.GatewayTimeoutException,[e.HttpStatus.GONE]:t.GoneException,[e.HttpStatus.I_AM_A_TEAPOT]:t.ImATeapotException,[e.HttpStatus.INTERNAL_SERVER_ERROR]:t.InternalServerErrorException,[e.HttpStatus.METHOD_NOT_ALLOWED]:t.MethodNotAllowedException,[e.HttpStatus.NOT_ACCEPTABLE]:t.NotAcceptableException,[e.HttpStatus.NOT_FOUND]:t.NotFoundException,[e.HttpStatus.NOT_IMPLEMENTED]:t.NotImplementedException,[e.HttpStatus.PAYLOAD_TOO_LARGE]:t.PayloadTooLargeException,[e.HttpStatus.PRECONDITION_FAILED]:t.PreconditionFailedException,[e.HttpStatus.REQUEST_TIMEOUT]:t.RequestTimeoutException,[e.HttpStatus.SERVICE_UNAVAILABLE]:t.ServiceUnavailableException,[e.HttpStatus.UNAUTHORIZED]:t.UnauthorizedException,[e.HttpStatus.UNPROCESSABLE_ENTITY]:t.UnprocessableEntityException,[e.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:t.UnsupportedMediaTypeException},pa}var Sx;function lC(){if(Sx)return Fn;Sx=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.ParseFilePipe=void 0;const e=ae(),t=ar(),r=wl(),n=er(),o=ne();let i=class{constructor(a={}){const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST,validators:p=[],fileIsRequired:l}=a;this.exceptionFactory=c||(d=>new n.HttpErrorByCode[u](d)),this.validators=p,this.fileIsRequired=l??!0}async transform(a){const c=this.thereAreNoFilesIn(a);if(c&&this.fileIsRequired)throw this.exceptionFactory("File is required");return!c&&this.validators.length&&await this.validateFilesOrFile(a),a}async validateFilesOrFile(a){Array.isArray(a)?await Promise.all(a.map(c=>this.validate(c))):await this.validate(a)}thereAreNoFilesIn(a){const c=Array.isArray(a)&&(0,o.isEmpty)(a),u=(0,o.isObject)(a)&&(0,o.isEmpty)(Object.keys(a));return(0,o.isUndefined)(a)||c||u}async validate(a){for(const c of this.validators)await this.validateOrThrow(a,c);return a}async validateOrThrow(a,c){if(!await c.isValid(a)){const p=c.buildErrorMessage(a);throw this.exceptionFactory(p)}}getValidators(){return this.validators}};return Fn.ParseFilePipe=i,Fn.ParseFilePipe=i=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],i),Fn}var fa={},Px;function WL(){if(Px)return fa;Px=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.ParseFilePipeBuilder=void 0;const e=cC(),t=uC(),r=lC();class n{constructor(){this.validators=[]}addMaxSizeValidator(i){return this.addValidator(new t.MaxFileSizeValidator(i))}addFileTypeValidator(i){return this.addValidator(new e.FileTypeValidator(i))}addValidator(i){return this.validators.push(i),this}build(i){const s=new r.ParseFilePipe({...i,validators:this.validators});return this.validators=[],s}}return fa.ParseFilePipeBuilder=n,fa}var Tx;function ZL(){return Tx||(Tx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(cC(),e),t.__exportStar(mg(),e),t.__exportStar(uC(),e),t.__exportStar(GL(),e),t.__exportStar(lC(),e),t.__exportStar(WL(),e)})(Gh)),Gh}var kn={},Dn={},Ln={},Er={},gd={},Ax;function KL(){if(Ax)return gd;Ax=1,Object.defineProperty(gd,"__esModule",{value:!0});class e{constructor(r){this.toConcat=r}next(){if(this.toConcat.length===0)return{done:!0};const r=this.toConcat[0].next();return r.done?(this.toConcat.shift(),this.next()):r}}return gd.ConcatIterator=e,gd}var yd={},Rx;function YL(){if(Rx)return yd;Rx=1,Object.defineProperty(yd,"__esModule",{value:!0});class e{constructor(r,n){this.source=r,this.predicate=n}next(){let r;do r=this.source.next();while(!r.done&&!this.predicate(r.value));return r}}return yd.FilterIterator=e,yd}var bd={},Un={},Mx;function dC(){if(Mx)return Un;Mx=1,Object.defineProperty(Un,"__esModule",{value:!0});function e(n){return typeof n=="object"&&n!==null&&typeof n.next=="function"}Un.isIterator=e;function t(n){return typeof n=="object"&&n!==null&&typeof n[Symbol.iterator]=="function"}Un.isIterable=t;function r(n){if(e(n))return n;if(t(n))return n[Symbol.iterator]();throw new Error("Passed collection is neither an Iterator nor an Iterable")}return Un.toIterator=r,Un}var Ix;function XL(){if(Ix)return bd;Ix=1,Object.defineProperty(bd,"__esModule",{value:!0});const e=dC();class t{constructor(n){this.outer=n}next(){if(this.inner){const i=this.inner.next();if(!i.done)return i;this.inner=void 0}const{value:n,done:o}=this.outer.next();return e.isIterable(n)?(this.inner=n[Symbol.iterator](),this.next()):{value:n,done:o}}}return bd.FlattenIterator=t,bd}var Ed={},Cx;function JL(){if(Cx)return Ed;Cx=1,Object.defineProperty(Ed,"__esModule",{value:!0});class e{constructor(r,n){this.source=r,this.iteratee=n}next(){const{value:r,done:n}=this.source.next();return{value:!n&&this.iteratee(r),done:n}}}return Ed.MapIterator=e,Ed}var xd={},jx;function QL(){if(jx)return xd;jx=1,Object.defineProperty(xd,"__esModule",{value:!0});class e{constructor(r,n,o=1/0){this.source=r,this.start=n,this.end=o,this.i=0}next(){for(;this.i<this.start;){const r=this.source.next();if(r.done)return r;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}return xd.SliceIterator=e,xd}var Od={},Nx;function $L(){if(Nx)return Od;Nx=1,Object.defineProperty(Od,"__esModule",{value:!0});class e{constructor(r,n){this.a=r,this.b=n}next(){const r=this.a.next();if(r.done)return{done:!0};const n=this.b.next();return n.done?{done:!0}:{value:[r.value,n.value],done:!1}}}return Od.ZipIterator=e,Od}var qx;function eU(){if(qx)return Er;qx=1,Object.defineProperty(Er,"__esModule",{value:!0});const e=KL(),t=YL(),r=XL(),n=JL(),o=QL(),i=dC(),s=$L();class a{constructor(l){this.source=l}next(){return this.source.next()}[Symbol.iterator](){return this}map(l){return new a(new n.MapIterator(this.source,l))}filter(l){return new a(new t.FilterIterator(this.source,l))}concat(l){return new a(new e.ConcatIterator([this.source,i.toIterator(l)]))}take(l){return new a(new o.SliceIterator(this.source,0,l+1))}drop(l){return new a(new o.SliceIterator(this.source,l,1/0))}slice(l,d=1/0){return new a(new o.SliceIterator(this.source,l,d))}flatten(){return new a(new r.FlattenIterator(this.source))}reduce(l,d){let f;if(d===void 0){if(f=this.source.next(),f.done)throw new TypeError("Reduce of empty Iterator with no initial value");d=f.value}for(;f=this.source.next(),!f.done;)d=l(d,f.value);return d}find(l){let d;for(;;){if(d=this.source.next(),d.done)return;if(l(d.value))return d.value}}includes(l){let d;do if(d=this.source.next(),!d.done&&d.value===l)return!0;while(!d.done);return!1}some(l){let d;do if(d=this.source.next(),!d.done&&l(d.value))return!0;while(!d.done);return!1}every(l){let d;do if(d=this.source.next(),!d.done&&!l(d.value))return!1;while(!d.done);return!0}forEach(l){let d;for(;d=this.source.next(),!d.done;)l(d.value)}join(l=","){let d="",f;for(;f=this.source.next(),!f.done;)d+=l+f.value;return d.substr(l.length)}toArray(){return Array.from(this)}toSet(){const l=new Set;for(;;){const{value:d,done:f}=this.next();if(f)return l;l.add(d)}}toMap(){return new Map(this)}}Er.IteratorWithOperators=a;function c(p){return new a(i.toIterator(p))}Er.iterate=c;function u(p,l){return new a(new s.ZipIterator(i.toIterator(p),i.toIterator(l)))}return Er.zip=u,Er.default=c,Er}var Fx;function Ve(){if(Fx)return Ln;Fx=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=eU();return Ln.iterate=e.iterate,Ln.zip=e.zip,Ln.default=e.iterate,Ln}function _g(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wd={},kx;function Sl(){if(kx)return wd;kx=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.loadPackage=n;const e=yt(),t=(o,i)=>`The "${o}" package is missing. Please, make sure to install it to take advantage of ${i}.`,r=new e.Logger("PackageLoader");function n(o,i,s){try{return s?s():_g(o)}catch{r.error(t(o,i)),e.Logger.flush(),process.exit(1)}}return wd}const tU={},rU=Object.freeze(Object.defineProperty({__proto__:null,default:tU},Symbol.toStringTag,{value:"Module"})),nU=li(rU),iU={},aU=Object.freeze(Object.defineProperty({__proto__:null,default:iU},Symbol.toStringTag,{value:"Module"})),pC=li(aU);var Dx;function fC(){if(Dx)return Dn;Dx=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.ValidationPipe=void 0;const e=ae(),t=Ve(),r=ui,n=fg(),o=ar(),i=je(),s=er(),a=Sl(),c=ne();let u={},p={};const l=[Date,RegExp,Error,Map,Set,WeakMap,WeakSet];let d=class{constructor(h){h=h||{};const{transform:m,disableErrorMessages:v,errorHttpStatusCode:_,expectedType:g,transformOptions:y,validateCustomDecorators:b,...E}=h;this.validatorOptions={forbidUnknownValues:!1,...E},this.isTransformEnabled=!!m,this.transformOptions=y,this.isDetailedOutputDisabled=v,this.validateCustomDecorators=b||!1,this.errorHttpStatusCode=_||i.HttpStatus.BAD_REQUEST,this.expectedType=g,this.exceptionFactory=h.exceptionFactory||this.createExceptionFactory(),u=this.loadValidator(h.validatorPackage),p=this.loadTransformer(h.transformerPackage)}loadValidator(h){return h??(0,a.loadPackage)("class-validator","ValidationPipe",()=>nU)}loadTransformer(h){return h??(0,a.loadPackage)("class-transformer","ValidationPipe",()=>pC)}async transform(h,m){this.expectedType&&(m={...m,metatype:this.expectedType});const v=m.metatype;if(!v||!this.toValidate(m))return this.isTransformEnabled?this.transformPrimitive(h,m):h;const _=h;h=this.toEmptyIfNil(h,v);const g=h!==_,y=this.isPrimitive(h);this.stripProtoKeys(h);let b=p.plainToInstance(v,h,this.transformOptions);const E=b,x=b.constructor!==v;x&&!y?b.constructor=v:x&&(b={constructor:v});const O=await this.validate(b,this.validatorOptions);if(O.length>0)throw await this.exceptionFactory(O);return _===void 0&&E===""?_:(y&&(b=E),this.isTransformEnabled?b:g?_:Object.keys(this.validatorOptions).length>1?p.classToPlain(b,this.transformOptions):h)}createExceptionFactory(){return(h=[])=>{if(this.isDetailedOutputDisabled)return new s.HttpErrorByCode[this.errorHttpStatusCode];const m=this.flattenValidationErrors(h);return new s.HttpErrorByCode[this.errorHttpStatusCode](m)}}toValidate(h){const{metatype:m,type:v}=h;return v==="custom"&&!this.validateCustomDecorators?!1:![String,Boolean,Number,Array,Object,Buffer,Date].some(g=>m===g)&&!(0,c.isNil)(m)}transformPrimitive(h,m){if(!m.data)return h;const{type:v,metatype:_}=m;return v!=="param"&&v!=="query"?h:_===Boolean?(0,c.isUndefined)(h)?void 0:h===!0||h==="true":_===Number?(0,c.isUndefined)(h)?void 0:+h:_===String&&!(0,c.isUndefined)(h)?String(h):h}toEmptyIfNil(h,m){return(0,c.isNil)(h)?typeof m=="function"||m&&"prototype"in m&&m.prototype?.constructor?{}:"":h}stripProtoKeys(h){if(h==null||typeof h!="object"||r.types.isTypedArray(h)||l.some(v=>h instanceof v))return;if(Array.isArray(h)){for(const v of h)this.stripProtoKeys(v);return}delete h.__proto__,delete h.prototype;const m=h?.constructor;m&&!l.includes(m)&&delete h.constructor;for(const v in h)this.stripProtoKeys(h[v])}isPrimitive(h){return["number","boolean","string"].includes(typeof h)}validate(h,m){return u.validate(h,m)}flattenValidationErrors(h){return(0,t.iterate)(h).map(m=>this.mapChildrenToValidationErrors(m)).flatten().filter(m=>!!m.constraints).map(m=>Object.values(m.constraints)).flatten().toArray()}mapChildrenToValidationErrors(h,m){if(!(h.children&&h.children.length))return[h];const v=[];m=m?`${m}.${h.property}`:h.property;for(const _ of h.children)_.children&&_.children.length&&v.push(...this.mapChildrenToValidationErrors(_,m)),v.push(this.prependConstraintsWithParentProp(m,_));return v}prependConstraintsWithParentProp(h,m){const v={};for(const _ in m.constraints)v[_]=`${h}.${m.constraints[_]}`;return{...m,constraints:v}}};return Dn.ValidationPipe=d,Dn.ValidationPipe=d=e.__decorate([(0,o.Injectable)(),e.__param(0,(0,n.Optional)()),e.__metadata("design:paramtypes",[Object])],d),Dn}var Lx;function oU(){if(Lx)return kn;Lx=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.ParseArrayPipe=void 0;const e=ae(),t=gn(),r=Ol(),n=je(),o=er(),i=ne(),s=fC(),a="Validation failed (parsable array expected)",c=",";let u=class{constructor(l={}){this.options=l,this.validationPipe=new s.ValidationPipe({transform:!0,validateCustomDecorators:!0,...l});const{exceptionFactory:d,errorHttpStatusCode:f=n.HttpStatus.BAD_REQUEST}=l;this.exceptionFactory=d||(h=>new o.HttpErrorByCode[f](h))}async transform(l,d){if(!l&&!this.options.optional)throw this.exceptionFactory(a);if((0,i.isNil)(l)&&this.options.optional)return l;if(!Array.isArray(l))if((0,i.isString)(l))try{l=l.trim().split(this.options.separator||c)}catch{throw this.exceptionFactory(a)}else throw this.exceptionFactory(a);if(this.options.items){const f={metatype:this.options.items,type:"query"},h=this.isExpectedTypePrimitive(),m=(v,_)=>{if(this.options.items!==String)try{v=JSON.parse(v)}catch{}return h?this.validatePrimitive(v,_):this.validationPipe.transform(v,f)};if(this.options.stopAtFirstError===!1){let v=[];const _=l;for(let g=0;g<_.length;g++)try{_[g]=await m(_[g])}catch(y){let b;if(y.getResponse){const E=y.getResponse();Array.isArray(E.message)?b=E.message.map(x=>`[${g}] ${x}`):b=`[${g}] ${E.message}`}else b=y;v=v.concat(b)}if(v.length>0)throw this.exceptionFactory(v);return _}else l=await Promise.all(l.map(m))}return l}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(l,d){if(this.options.items===Number){const f=l!==null&&l!==""?+l:NaN;if(isNaN(f))throw this.exceptionFactory(`${(0,i.isUndefined)(d)?"":`[${d}] `}item must be a number`);return f}else if(this.options.items===String){if(!(0,i.isString)(l))return`${l}`}else if(this.options.items===Boolean&&typeof l!="boolean")throw this.exceptionFactory(`${(0,i.isUndefined)(d)?"":`[${d}] `}item must be a boolean value`);return l}};return kn.ParseArrayPipe=u,kn.ParseArrayPipe=u=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],u),kn}var zn={},Ux;function sU(){if(Ux)return zn;Ux=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.ParseBoolPipe=void 0;const e=ae(),t=gn(),r=Ol(),n=je(),o=er(),i=ne();let s=class{constructor(c){this.options=c,c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=n.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new o.HttpErrorByCode[p](l))}async transform(c,u){if((0,i.isNil)(c)&&this.options?.optional)return c;if(this.isTrue(c))return!0;if(this.isFalse(c))return!1;throw this.exceptionFactory("Validation failed (boolean string is expected)")}isTrue(c){return c===!0||c==="true"}isFalse(c){return c===!1||c==="false"}};return zn.ParseBoolPipe=s,zn.ParseBoolPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),zn}var Bn={},zx;function cU(){if(zx)return Bn;zx=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.ParseDatePipe=void 0;const e=ae(),t=gn(),r=je(),n=er(),o=ne();let i=class{constructor(a={}){this.options=a;const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=a;this.exceptionFactory=c||(p=>new n.HttpErrorByCode[u](p))}transform(a){if(this.options.optional&&(0,o.isNil)(a))return this.options.default?this.options.default():a;if(!a)throw this.exceptionFactory("Validation failed (no Date provided)");const c=new Date(a);if(isNaN(c.getTime()))throw this.exceptionFactory("Validation failed (invalid date format)");return c}};return Bn.ParseDatePipe=i,Bn.ParseDatePipe=i=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],i),Bn}var Hn={},Bx;function uU(){if(Bx)return Hn;Bx=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.ParseEnumPipe=void 0;const e=ae(),t=ar(),r=ve(),n=er(),o=ne();let i=class{constructor(a,c){if(this.enumType=a,this.options=c,!a)throw new Error('"ParseEnumPipe" requires "enumType" argument specified (to validate input values).');c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=r.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new n.HttpErrorByCode[p](l))}async transform(a,c){if((0,o.isNil)(a)&&this.options?.optional)return a;if(!this.isEnum(a))throw this.exceptionFactory("Validation failed (enum string is expected)");return a}isEnum(a){return Object.keys(this.enumType).map(u=>this.enumType[u]).includes(a)}};return Hn.ParseEnumPipe=i,Hn.ParseEnumPipe=i=e.__decorate([(0,t.Injectable)(),e.__param(1,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],i),Hn}var Vn={},Hx;function lU(){if(Hx)return Vn;Hx=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.ParseFloatPipe=void 0;const e=ae(),t=ar(),r=ve(),n=er(),o=ne();let i=class{constructor(a){this.options=a,a=a||{};const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=a;this.exceptionFactory=c||(p=>new n.HttpErrorByCode[u](p))}async transform(a,c){if((0,o.isNil)(a)&&this.options?.optional)return a;if(!this.isNumeric(a))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(a)}isNumeric(a){return["string","number"].includes(typeof a)&&!isNaN(parseFloat(a))&&isFinite(a)}};return Vn.ParseFloatPipe=i,Vn.ParseFloatPipe=i=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],i),Vn}var Gn={},Vx;function dU(){if(Vx)return Gn;Vx=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.ParseIntPipe=void 0;const e=ae(),t=gn(),r=Ol(),n=je(),o=er(),i=ne();let s=class{constructor(c){this.options=c,c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=n.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new o.HttpErrorByCode[p](l))}async transform(c,u){if((0,i.isNil)(c)&&this.options?.optional)return c;if(!this.isNumeric(c))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseInt(c,10)}isNumeric(c){return["string","number"].includes(typeof c)&&/^-?\d+$/.test(c)&&isFinite(c)}};return Gn.ParseIntPipe=s,Gn.ParseIntPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),Gn}var Wn={},Gx;function pU(){if(Gx)return Wn;Gx=1;var e;Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.ParseUUIDPipe=void 0;const t=ae(),r=gn(),n=Ol(),o=je(),i=er(),s=ne();let a=e=class{constructor(u){this.options=u,u=u||{};const{exceptionFactory:p,errorHttpStatusCode:l=o.HttpStatus.BAD_REQUEST,version:d}=u;this.version=d,this.exceptionFactory=p||(f=>new i.HttpErrorByCode[l](f))}async transform(u,p){if((0,s.isNil)(u)&&this.options?.optional)return u;if(!this.isUUID(u,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:""} is expected)`);return u}isUUID(u,p="all"){if(!(0,s.isString)(u))throw this.exceptionFactory("The value passed as UUID is not a string");return e.uuidRegExps[p]?.test(u)}};return Wn.ParseUUIDPipe=a,a.uuidRegExps={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},Wn.ParseUUIDPipe=a=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata("design:paramtypes",[Object])],a),Wn}var Wx;function fU(){return Wx||(Wx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(HL(),e),t.__exportStar(ZL(),e),t.__exportStar(oU(),e),t.__exportStar(sU(),e),t.__exportStar(cU(),e),t.__exportStar(uU(),e),t.__exportStar(lU(),e),t.__exportStar(dU(),e),t.__exportStar(pU(),e),t.__exportStar(fC(),e)})(Vh)),Vh}var Kh={},Zn={},Yh={},ha={},xr={},va={},Zx;function Ne(){if(Zx)return va;Zx=1,Object.defineProperty(va,"__esModule",{value:!0}),va.isFunction=void 0;function e(t){return typeof t=="function"}return va.isFunction=e,va}var Kx;function ce(){if(Kx)return xr;Kx=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.operate=xr.hasLift=void 0;var e=Ne();function t(n){return e.isFunction(n?.lift)}xr.hasLift=t;function r(n){return function(o){if(t(o))return o.lift(function(i){try{return n(i,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}return xr.operate=r,xr}var De={},ma={},Yx;function gg(){return Yx||(Yx=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.isArrayLike=void 0,ma.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})),ma}var _a={},Xx;function hC(){if(Xx)return _a;Xx=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.isPromise=void 0;var e=Ne();function t(r){return e.isFunction(r?.then)}return _a.isPromise=t,_a}var ga={},ya={},ct={},ba={},Ea={},Jx;function yn(){if(Jx)return Ea;Jx=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.createErrorClass=void 0;function e(t){var r=function(o){Error.call(o),o.stack=new Error().stack},n=t(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}return Ea.createErrorClass=e,Ea}var Qx;function vC(){if(Qx)return ba;Qx=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.UnsubscriptionError=void 0;var e=yn();return ba.UnsubscriptionError=e.createErrorClass(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
7
7
|
`+n.map(function(o,i){return i+1+") "+o.toString()}).join(`
|
|
8
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}}),Ea}var Oa={},tO;function cr(){if(tO)return Oa;tO=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.arrRemove=void 0;function e(t,r){if(t){var n=t.indexOf(r);0<=n&&t.splice(n,1)}}return Oa.arrRemove=e,Oa}var rO;function bt(){if(rO)return ct;rO=1;var e=ct&&ct.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},t=ct&&ct.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},r=ct&&ct.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(ct,"__esModule",{value:!0}),ct.isSubscription=ct.EMPTY_SUBSCRIPTION=ct.Subscription=void 0;var n=qe(),o=yC(),i=cr(),s=(function(){function u(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._finalizers=null}return u.prototype.unsubscribe=function(){var p,l,d,f,h;if(!this.closed){this.closed=!0;var m=this._parentage;if(m)if(this._parentage=null,Array.isArray(m))try{for(var v=e(m),_=v.next();!_.done;_=v.next()){var g=_.value;g.remove(this)}}catch(S){p={error:S}}finally{try{_&&!_.done&&(l=v.return)&&l.call(v)}finally{if(p)throw p.error}}else m.remove(this);var y=this.initialTeardown;if(n.isFunction(y))try{y()}catch(S){h=S instanceof o.UnsubscriptionError?S.errors:[S]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var E=e(b),x=E.next();!x.done;x=E.next()){var O=x.value;try{c(O)}catch(S){h=h??[],S instanceof o.UnsubscriptionError?h=r(r([],t(h)),t(S.errors)):h.push(S)}}}catch(S){d={error:S}}finally{try{x&&!x.done&&(f=E.return)&&f.call(E)}finally{if(d)throw d.error}}}if(h)throw new o.UnsubscriptionError(h)}},u.prototype.add=function(p){var l;if(p&&p!==this)if(this.closed)c(p);else{if(p instanceof u){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._finalizers=(l=this._finalizers)!==null&&l!==void 0?l:[]).push(p)}},u.prototype._hasParent=function(p){var l=this._parentage;return l===p||Array.isArray(l)&&l.includes(p)},u.prototype._addParent=function(p){var l=this._parentage;this._parentage=Array.isArray(l)?(l.push(p),l):l?[l,p]:p},u.prototype._removeParent=function(p){var l=this._parentage;l===p?this._parentage=null:Array.isArray(l)&&i.arrRemove(l,p)},u.prototype.remove=function(p){var l=this._finalizers;l&&i.arrRemove(l,p),p instanceof u&&p._removeParent(this)},u.EMPTY=(function(){var p=new u;return p.closed=!0,p})(),u})();ct.Subscription=s,ct.EMPTY_SUBSCRIPTION=s.EMPTY;function a(u){return u instanceof s||u&&"closed"in u&&n.isFunction(u.remove)&&n.isFunction(u.add)&&n.isFunction(u.unsubscribe)}ct.isSubscription=a;function c(u){n.isFunction(u)?u():u.unsubscribe()}return ct}var wa={},nO;function Tl(){return nO||(nO=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.config=void 0,wa.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}),wa}var Sa={},Or={},iO;function bC(){return iO||(iO=1,(function(e){var t=Or&&Or.__read||function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,c=[],u;try{for(;(o===void 0||o-- >0)&&!(a=s.next()).done;)c.push(a.value)}catch(p){u={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},r=Or&&Or.__spreadArray||function(n,o){for(var i=0,s=o.length,a=n.length;i<s;i++,a++)n[a]=o[i];return n};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a=e.timeoutProvider.delegate;return a?.setTimeout?a.setTimeout.apply(a,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(n){var o=e.timeoutProvider.delegate;return(o?.clearTimeout||clearTimeout)(n)},delegate:void 0}})(Or)),Or}var aO;function EC(){if(aO)return Sa;aO=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.reportUnhandledError=void 0;var e=Tl(),t=bC();function r(n){t.timeoutProvider.setTimeout(function(){var o=e.config.onUnhandledError;if(o)o(n);else throw n})}return Sa.reportUnhandledError=r,Sa}var Ta={},oO;function nt(){if(oO)return Ta;oO=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.noop=void 0;function e(){}return Ta.noop=e,Ta}var wt={},sO;function yU(){if(sO)return wt;sO=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.createNotification=wt.nextNotification=wt.errorNotification=wt.COMPLETE_NOTIFICATION=void 0,wt.COMPLETE_NOTIFICATION=(function(){return r("C",void 0,void 0)})();function e(n){return r("E",void 0,n)}wt.errorNotification=e;function t(n){return r("N",n,void 0)}wt.nextNotification=t;function r(n,o,i){return{kind:n,value:o,error:i}}return wt.createNotification=r,wt}var wr={},cO;function Eg(){if(cO)return wr;cO=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.captureError=wr.errorContext=void 0;var e=Tl(),t=null;function r(o){if(e.config.useDeprecatedSynchronousErrorHandling){var i=!t;if(i&&(t={errorThrown:!1,error:null}),o(),i){var s=t,a=s.errorThrown,c=s.error;if(t=null,a)throw c}}else o()}wr.errorContext=r;function n(o){e.config.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}return wr.captureError=n,wr}var uO;function Pl(){return uO||(uO=1,(function(e){var t=ba&&ba.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&(E[O]=x[O])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");g(y,b);function E(){this.constructor=y}y.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var r=qe(),n=bt(),o=Tl(),i=EC(),s=nt(),a=yU(),c=bC(),u=Eg(),p=(function(g){t(y,g);function y(b){var E=g.call(this)||this;return E.isStopped=!1,b?(E.destination=b,n.isSubscription(b)&&b.add(E)):E.destination=e.EMPTY_OBSERVER,E}return y.create=function(b,E,x){return new h(b,E,x)},y.prototype.next=function(b){this.isStopped?_(a.nextNotification(b),this):this._next(b)},y.prototype.error=function(b){this.isStopped?_(a.errorNotification(b),this):(this.isStopped=!0,this._error(b))},y.prototype.complete=function(){this.isStopped?_(a.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},y.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,g.prototype.unsubscribe.call(this),this.destination=null)},y.prototype._next=function(b){this.destination.next(b)},y.prototype._error=function(b){try{this.destination.error(b)}finally{this.unsubscribe()}},y.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},y})(n.Subscription);e.Subscriber=p;var l=Function.prototype.bind;function d(g,y){return l.call(g,y)}var f=(function(){function g(y){this.partialObserver=y}return g.prototype.next=function(y){var b=this.partialObserver;if(b.next)try{b.next(y)}catch(E){m(E)}},g.prototype.error=function(y){var b=this.partialObserver;if(b.error)try{b.error(y)}catch(E){m(E)}else m(y)},g.prototype.complete=function(){var y=this.partialObserver;if(y.complete)try{y.complete()}catch(b){m(b)}},g})(),h=(function(g){t(y,g);function y(b,E,x){var O=g.call(this)||this,S;if(r.isFunction(b)||!b)S={next:b??void 0,error:E??void 0,complete:x??void 0};else{var w;O&&o.config.useDeprecatedNextContext?(w=Object.create(b),w.unsubscribe=function(){return O.unsubscribe()},S={next:b.next&&d(b.next,w),error:b.error&&d(b.error,w),complete:b.complete&&d(b.complete,w)}):S=b}return O.destination=new f(S),O}return y})(p);e.SafeSubscriber=h;function m(g){o.config.useDeprecatedSynchronousErrorHandling?u.captureError(g):i.reportUnhandledError(g)}function v(g){throw g}function _(g,y){var b=o.config.onStoppedNotification;b&&c.timeoutProvider.setTimeout(function(){return b(g,y)})}e.EMPTY_OBSERVER={closed:!0,next:s.noop,error:v,complete:s.noop}})(ba)),ba}var Pa={},lO;function Ep(){return lO||(lO=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.observable=void 0,Pa.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()),Pa}var Sr={},Aa={},dO;function it(){if(dO)return Aa;dO=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.identity=void 0;function e(t){return t}return Aa.identity=e,Aa}var pO;function xp(){if(pO)return Sr;pO=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.pipeFromArray=Sr.pipe=void 0;var e=it();function t(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return r(n)}Sr.pipe=t;function r(n){return n.length===0?e.identity:n.length===1?n[0]:function(i){return n.reduce(function(s,a){return a(s)},i)}}return Sr.pipeFromArray=r,Sr}var fO;function Fe(){if(fO)return ya;fO=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.Observable=void 0;var e=Pl(),t=bt(),r=Ep(),n=xp(),o=Tl(),i=qe(),s=Eg(),a=(function(){function l(d){d&&(this._subscribe=d)}return l.prototype.lift=function(d){var f=new l;return f.source=this,f.operator=d,f},l.prototype.subscribe=function(d,f,h){var m=this,v=p(d)?d:new e.SafeSubscriber(d,f,h);return s.errorContext(function(){var _=m,g=_.operator,y=_.source;v.add(g?g.call(v,y):y?m._subscribe(v):m._trySubscribe(v))}),v},l.prototype._trySubscribe=function(d){try{return this._subscribe(d)}catch(f){d.error(f)}},l.prototype.forEach=function(d,f){var h=this;return f=c(f),new f(function(m,v){var _=new e.SafeSubscriber({next:function(g){try{d(g)}catch(y){v(y),_.unsubscribe()}},error:v,complete:m});h.subscribe(_)})},l.prototype._subscribe=function(d){var f;return(f=this.source)===null||f===void 0?void 0:f.subscribe(d)},l.prototype[r.observable]=function(){return this},l.prototype.pipe=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return n.pipeFromArray(d)(this)},l.prototype.toPromise=function(d){var f=this;return d=c(d),new d(function(h,m){var v;f.subscribe(function(_){return v=_},function(_){return m(_)},function(){return h(v)})})},l.create=function(d){return new l(d)},l})();ya.Observable=a;function c(l){var d;return(d=l??o.config.Promise)!==null&&d!==void 0?d:Promise}function u(l){return l&&i.isFunction(l.next)&&i.isFunction(l.error)&&i.isFunction(l.complete)}function p(l){return l&&l instanceof e.Subscriber||u(l)&&t.isSubscription(l)}return ya}var Ra={},hO;function xC(){if(hO)return Ra;hO=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.isInteropObservable=void 0;var e=Ep(),t=qe();function r(n){return t.isFunction(n[e.observable])}return Ra.isInteropObservable=r,Ra}var Ma={},vO;function OC(){if(vO)return Ma;vO=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.isAsyncIterable=void 0;var e=qe();function t(r){return Symbol.asyncIterator&&e.isFunction(r?.[Symbol.asyncIterator])}return Ma.isAsyncIterable=t,Ma}var Ia={},mO;function wC(){if(mO)return Ia;mO=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.createInvalidObservableTypeError=void 0;function e(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}return Ia.createInvalidObservableTypeError=e,Ia}var Ca={},Tr={},_O;function SC(){if(_O)return Tr;_O=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.iterator=Tr.getSymbolIterator=void 0;function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}return Tr.getSymbolIterator=e,Tr.iterator=e(),Tr}var gO;function TC(){if(gO)return Ca;gO=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.isIterable=void 0;var e=SC(),t=qe();function r(n){return t.isFunction(n?.[e.iterator])}return Ca.isIterable=r,Ca}var vt={},yO;function xg(){if(yO)return vt;yO=1;var e=vt&&vt.__generator||function(s,a){var c={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,p,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(v){return h([m,v])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,p&&(l=m[0]&2?p.return:m[0]?p.throw||((l=p.return)&&l.call(p),0):p.next)&&!(l=l.call(p,m[1])).done)return l;switch(p=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,p=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(l=c.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){c.label=m[1];break}if(m[0]===6&&c.label<l[1]){c.label=l[1],l=m;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(m);break}l[2]&&c.ops.pop(),c.trys.pop();continue}m=a.call(s,c)}catch(v){m=[6,v],p=0}finally{u=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},t=vt&&vt.__await||function(s){return this instanceof t?(this.v=s,this):new t(s)},r=vt&&vt.__asyncGenerator||function(s,a,c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=c.apply(s,a||[]),p,l=[];return p={},d("next"),d("throw"),d("return"),p[Symbol.asyncIterator]=function(){return this},p;function d(g){u[g]&&(p[g]=function(y){return new Promise(function(b,E){l.push([g,y,b,E])>1||f(g,y)})})}function f(g,y){try{h(u[g](y))}catch(b){_(l[0][3],b)}}function h(g){g.value instanceof t?Promise.resolve(g.value.v).then(m,v):_(l[0][2],g)}function m(g){f("next",g)}function v(g){f("throw",g)}function _(g,y){g(y),l.shift(),l.length&&f(l[0][0],l[0][1])}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.isReadableStreamLike=vt.readableStreamLikeToAsyncGenerator=void 0;var n=qe();function o(s){return r(this,arguments,function(){var c,u,p,l;return e(this,function(d){switch(d.label){case 0:c=s.getReader(),d.label=1;case 1:d.trys.push([1,,9,10]),d.label=2;case 2:return[4,t(c.read())];case 3:return u=d.sent(),p=u.value,l=u.done,l?[4,t(void 0)]:[3,5];case 4:return[2,d.sent()];case 5:return[4,t(p)];case 6:return[4,d.sent()];case 7:return d.sent(),[3,2];case 8:return[3,10];case 9:return c.releaseLock(),[7];case 10:return[2]}})})}vt.readableStreamLikeToAsyncGenerator=o;function i(s){return n.isFunction(s?.getReader)}return vt.isReadableStreamLike=i,vt}var bO;function we(){if(bO)return De;bO=1;var e=De&&De.__awaiter||function(O,S,w,A){function T(P){return P instanceof w?P:new w(function(N){N(P)})}return new(w||(w=Promise))(function(P,N){function D(k){try{F(A.next(k))}catch(Z){N(Z)}}function V(k){try{F(A.throw(k))}catch(Z){N(Z)}}function F(k){k.done?P(k.value):T(k.value).then(D,V)}F((A=A.apply(O,S||[])).next())})},t=De&&De.__generator||function(O,S){var w={label:0,sent:function(){if(P[0]&1)throw P[1];return P[1]},trys:[],ops:[]},A,T,P,N;return N={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(N[Symbol.iterator]=function(){return this}),N;function D(F){return function(k){return V([F,k])}}function V(F){if(A)throw new TypeError("Generator is already executing.");for(;w;)try{if(A=1,T&&(P=F[0]&2?T.return:F[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,F[1])).done)return P;switch(T=0,P&&(F=[F[0]&2,P.value]),F[0]){case 0:case 1:P=F;break;case 4:return w.label++,{value:F[1],done:!1};case 5:w.label++,T=F[1],F=[0];continue;case 7:F=w.ops.pop(),w.trys.pop();continue;default:if(P=w.trys,!(P=P.length>0&&P[P.length-1])&&(F[0]===6||F[0]===2)){w=0;continue}if(F[0]===3&&(!P||F[1]>P[0]&&F[1]<P[3])){w.label=F[1];break}if(F[0]===6&&w.label<P[1]){w.label=P[1],P=F;break}if(P&&w.label<P[2]){w.label=P[2],w.ops.push(F);break}P[2]&&w.ops.pop(),w.trys.pop();continue}F=S.call(O,w)}catch(k){F=[6,k],T=0}finally{A=P=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},r=De&&De.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S=O[Symbol.asyncIterator],w;return S?S.call(O):(O=typeof n=="function"?n(O):O[Symbol.iterator](),w={},A("next"),A("throw"),A("return"),w[Symbol.asyncIterator]=function(){return this},w);function A(P){w[P]=O[P]&&function(N){return new Promise(function(D,V){N=O[P](N),T(D,V,N.done,N.value)})}}function T(P,N,D,V){Promise.resolve(V).then(function(F){P({value:F,done:D})},N)}},n=De&&De.__values||function(O){var S=typeof Symbol=="function"&&Symbol.iterator,w=S&&O[S],A=0;if(w)return w.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&A>=O.length&&(O=void 0),{value:O&&O[A++],done:!O}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(De,"__esModule",{value:!0}),De.fromReadableStreamLike=De.fromAsyncIterable=De.fromIterable=De.fromPromise=De.fromArrayLike=De.fromInteropObservable=De.innerFrom=void 0;var o=bg(),i=gC(),s=Fe(),a=xC(),c=OC(),u=wC(),p=TC(),l=xg(),d=qe(),f=EC(),h=Ep();function m(O){if(O instanceof s.Observable)return O;if(O!=null){if(a.isInteropObservable(O))return v(O);if(o.isArrayLike(O))return _(O);if(i.isPromise(O))return g(O);if(c.isAsyncIterable(O))return b(O);if(p.isIterable(O))return y(O);if(l.isReadableStreamLike(O))return E(O)}throw u.createInvalidObservableTypeError(O)}De.innerFrom=m;function v(O){return new s.Observable(function(S){var w=O[h.observable]();if(d.isFunction(w.subscribe))return w.subscribe(S);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}De.fromInteropObservable=v;function _(O){return new s.Observable(function(S){for(var w=0;w<O.length&&!S.closed;w++)S.next(O[w]);S.complete()})}De.fromArrayLike=_;function g(O){return new s.Observable(function(S){O.then(function(w){S.closed||(S.next(w),S.complete())},function(w){return S.error(w)}).then(null,f.reportUnhandledError)})}De.fromPromise=g;function y(O){return new s.Observable(function(S){var w,A;try{for(var T=n(O),P=T.next();!P.done;P=T.next()){var N=P.value;if(S.next(N),S.closed)return}}catch(D){w={error:D}}finally{try{P&&!P.done&&(A=T.return)&&A.call(T)}finally{if(w)throw w.error}}S.complete()})}De.fromIterable=y;function b(O){return new s.Observable(function(S){x(O,S).catch(function(w){return S.error(w)})})}De.fromAsyncIterable=b;function E(O){return b(l.readableStreamLikeToAsyncGenerator(O))}De.fromReadableStreamLike=E;function x(O,S){var w,A,T,P;return e(this,void 0,void 0,function(){var N,D;return t(this,function(V){switch(V.label){case 0:V.trys.push([0,5,6,11]),w=r(O),V.label=1;case 1:return[4,w.next()];case 2:if(A=V.sent(),!!A.done)return[3,4];if(N=A.value,S.next(N),S.closed)return[2];V.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return D=V.sent(),T={error:D},[3,11];case 6:return V.trys.push([6,,9,10]),A&&!A.done&&(P=w.return)?[4,P.call(w)]:[3,8];case 7:V.sent(),V.label=8;case 8:return[3,10];case 9:if(T)throw T.error;return[7];case 10:return[7];case 11:return S.complete(),[2]}})})}return De}var Nt={},EO;function pe(){if(EO)return Nt;EO=1;var e=Nt&&Nt.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.OperatorSubscriber=Nt.createOperatorSubscriber=void 0;var t=Pl();function r(o,i,s,a,c){return new n(o,i,s,a,c)}Nt.createOperatorSubscriber=r;var n=(function(o){e(i,o);function i(s,a,c,u,p,l){var d=o.call(this,s)||this;return d.onFinalize=p,d.shouldUnsubscribe=l,d._next=a?function(f){try{a(f)}catch(h){s.error(h)}}:o.prototype._next,d._error=u?function(f){try{u(f)}catch(h){s.error(h)}finally{this.unsubscribe()}}:o.prototype._error,d._complete=c?function(){try{c()}catch(f){s.error(f)}finally{this.unsubscribe()}}:o.prototype._complete,d}return i.prototype.unsubscribe=function(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;o.prototype.unsubscribe.call(this),!a&&((s=this.onFinalize)===null||s===void 0||s.call(this))}},i})(t.Subscriber);return Nt.OperatorSubscriber=n,Nt}var xO;function Og(){if(xO)return va;xO=1,Object.defineProperty(va,"__esModule",{value:!0}),va.audit=void 0;var e=ce(),t=we(),r=pe();function n(o){return e.operate(function(i,s){var a=!1,c=null,u=null,p=!1,l=function(){if(u?.unsubscribe(),u=null,a){a=!1;var f=c;c=null,s.next(f)}p&&s.complete()},d=function(){u=null,p&&s.complete()};i.subscribe(r.createOperatorSubscriber(s,function(f){a=!0,c=f,u||t.innerFrom(o(f)).subscribe(u=r.createOperatorSubscriber(s,l,d))},function(){p=!0,(!a||!u||u.closed)&&s.complete()}))})}return va.audit=n,va}var ja={},Xh={},Pr={},Ar={},OO;function bU(){if(OO)return Ar;OO=1;var e=Ar&&Ar.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.Action=void 0;var t=bt(),r=(function(n){e(o,n);function o(i,s){return n.call(this)||this}return o.prototype.schedule=function(i,s){return this},o})(t.Subscription);return Ar.Action=r,Ar}var Rr={},wO;function EU(){return wO||(wO=1,(function(e){var t=Rr&&Rr.__read||function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,c=[],u;try{for(;(o===void 0||o-- >0)&&!(a=s.next()).done;)c.push(a.value)}catch(p){u={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},r=Rr&&Rr.__spreadArray||function(n,o){for(var i=0,s=o.length,a=n.length;i<s;i++,a++)n[a]=o[i];return n};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a=e.intervalProvider.delegate;return a?.setInterval?a.setInterval.apply(a,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(n){var o=e.intervalProvider.delegate;return(o?.clearInterval||clearInterval)(n)},delegate:void 0}})(Rr)),Rr}var SO;function Al(){if(SO)return Pr;SO=1;var e=Pr&&Pr.__extends||(function(){var i=function(s,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(c[p]=u[p])},i(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");i(s,a);function c(){this.constructor=s}s.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}})();Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.AsyncAction=void 0;var t=bU(),r=EU(),n=cr(),o=(function(i){e(s,i);function s(a,c){var u=i.call(this,a,c)||this;return u.scheduler=a,u.work=c,u.pending=!1,u}return s.prototype.schedule=function(a,c){var u;if(c===void 0&&(c=0),this.closed)return this;this.state=a;var p=this.id,l=this.scheduler;return p!=null&&(this.id=this.recycleAsyncId(l,p,c)),this.pending=!0,this.delay=c,this.id=(u=this.id)!==null&&u!==void 0?u:this.requestAsyncId(l,this.id,c),this},s.prototype.requestAsyncId=function(a,c,u){return u===void 0&&(u=0),r.intervalProvider.setInterval(a.flush.bind(a,this),u)},s.prototype.recycleAsyncId=function(a,c,u){if(u===void 0&&(u=0),u!=null&&this.delay===u&&this.pending===!1)return c;c!=null&&r.intervalProvider.clearInterval(c)},s.prototype.execute=function(a,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var u=this._execute(a,c);if(u)return u;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},s.prototype._execute=function(a,c){var u=!1,p;try{this.work(a)}catch(l){u=!0,p=l||new Error("Scheduled action threw falsy error")}if(u)return this.unsubscribe(),p},s.prototype.unsubscribe=function(){if(!this.closed){var a=this,c=a.id,u=a.scheduler,p=u.actions;this.work=this.state=this.scheduler=null,this.pending=!1,n.arrRemove(p,this),c!=null&&(this.id=this.recycleAsyncId(u,c,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},s})(t.Action);return Pr.AsyncAction=o,Pr}var Mr={},qa={},Jh={},TO;function wg(){return TO||(TO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})(Jh)),Jh}var PO;function PC(){if(PO)return qa;PO=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.Scheduler=void 0;var e=wg(),t=(function(){function r(n,o){o===void 0&&(o=r.now),this.schedulerActionCtor=n,this.now=o}return r.prototype.schedule=function(n,o,i){return o===void 0&&(o=0),new this.schedulerActionCtor(this,n).schedule(i,o)},r.now=e.dateTimestampProvider.now,r})();return qa.Scheduler=t,qa}var AO;function Rl(){if(AO)return Mr;AO=1;var e=Mr&&Mr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.AsyncScheduler=void 0;var t=PC(),r=(function(n){e(o,n);function o(i,s){s===void 0&&(s=t.Scheduler.now);var a=n.call(this,i,s)||this;return a.actions=[],a._active=!1,a}return o.prototype.flush=function(i){var s=this.actions;if(this._active){s.push(i);return}var a;this._active=!0;do if(a=i.execute(i.state,i.delay))break;while(i=s.shift());if(this._active=!1,a){for(;i=s.shift();)i.unsubscribe();throw a}},o})(t.Scheduler);return Mr.AsyncScheduler=r,Mr}var RO;function mt(){return RO||(RO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var t=Al(),r=Rl();e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})(Xh)),Xh}var Na={},Fa={},MO;function Op(){if(MO)return Fa;MO=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.isScheduler=void 0;var e=qe();function t(r){return r&&e.isFunction(r.schedule)}return Fa.isScheduler=t,Fa}var ka={},IO;function Sg(){if(IO)return ka;IO=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.isValidDate=void 0;function e(t){return t instanceof Date&&!isNaN(t)}return ka.isValidDate=e,ka}var CO;function bn(){if(CO)return Na;CO=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.timer=void 0;var e=Fe(),t=mt(),r=Op(),n=Sg();function o(i,s,a){i===void 0&&(i=0),a===void 0&&(a=t.async);var c=-1;return s!=null&&(r.isScheduler(s)?a=s:c=s),new e.Observable(function(u){var p=n.isValidDate(i)?+i-a.now():i;p<0&&(p=0);var l=0;return a.schedule(function(){u.closed||(u.next(l++),0<=c?this.schedule(void 0,c):u.complete())},p)})}return Na.timer=o,Na}var jO;function AC(){if(jO)return ja;jO=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.auditTime=void 0;var e=mt(),t=Og(),r=bn();function n(o,i){return i===void 0&&(i=e.asyncScheduler),t.audit(function(){return r.timer(o,i)})}return ja.auditTime=n,ja}var Da={},qO;function RC(){if(qO)return Da;qO=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.buffer=void 0;var e=ce(),t=nt(),r=pe(),n=we();function o(i){return e.operate(function(s,a){var c=[];return s.subscribe(r.createOperatorSubscriber(a,function(u){return c.push(u)},function(){a.next(c),a.complete()})),n.innerFrom(i).subscribe(r.createOperatorSubscriber(a,function(){var u=c;c=[],a.next(u)},t.noop)),function(){c=null}})}return Da.buffer=o,Da}var Ir={},NO;function MC(){if(NO)return Ir;NO=1;var e=Ir&&Ir.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&i[s],c=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.bufferCount=void 0;var t=ce(),r=pe(),n=cr();function o(i,s){return s===void 0&&(s=null),s=s??i,t.operate(function(a,c){var u=[],p=0;a.subscribe(r.createOperatorSubscriber(c,function(l){var d,f,h,m,v=null;p++%s===0&&u.push([]);try{for(var _=e(u),g=_.next();!g.done;g=_.next()){var y=g.value;y.push(l),i<=y.length&&(v=v??[],v.push(y))}}catch(x){d={error:x}}finally{try{g&&!g.done&&(f=_.return)&&f.call(_)}finally{if(d)throw d.error}}if(v)try{for(var b=e(v),E=b.next();!E.done;E=b.next()){var y=E.value;n.arrRemove(u,y),c.next(y)}}catch(x){h={error:x}}finally{try{E&&!E.done&&(m=b.return)&&m.call(b)}finally{if(h)throw h.error}}},function(){var l,d;try{for(var f=e(u),h=f.next();!h.done;h=f.next()){var m=h.value;c.next(m)}}catch(v){l={error:v}}finally{try{h&&!h.done&&(d=f.return)&&d.call(f)}finally{if(l)throw l.error}}c.complete()},void 0,function(){u=null}))})}return Ir.bufferCount=o,Ir}var Cr={},Ft={},FO;function _t(){if(FO)return Ft;FO=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.popNumber=Ft.popScheduler=Ft.popResultSelector=void 0;var e=qe(),t=Op();function r(s){return s[s.length-1]}function n(s){return e.isFunction(r(s))?s.pop():void 0}Ft.popResultSelector=n;function o(s){return t.isScheduler(r(s))?s.pop():void 0}Ft.popScheduler=o;function i(s,a){return typeof r(s)=="number"?s.pop():a}return Ft.popNumber=i,Ft}var La={},kO;function ur(){if(kO)return La;kO=1,Object.defineProperty(La,"__esModule",{value:!0}),La.executeSchedule=void 0;function e(t,r,n,o,i){o===void 0&&(o=0),i===void 0&&(i=!1);var s=r.schedule(function(){n(),i?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(s),!i)return s}return La.executeSchedule=e,La}var DO;function IC(){if(DO)return Cr;DO=1;var e=Cr&&Cr.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.bufferTime=void 0;var t=bt(),r=ce(),n=pe(),o=cr(),i=mt(),s=_t(),a=ur();function c(u){for(var p,l,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=(p=s.popScheduler(d))!==null&&p!==void 0?p:i.asyncScheduler,m=(l=d[0])!==null&&l!==void 0?l:null,v=d[1]||1/0;return r.operate(function(_,g){var y=[],b=!1,E=function(S){var w=S.buffer,A=S.subs;A.unsubscribe(),o.arrRemove(y,S),g.next(w),b&&x()},x=function(){if(y){var S=new t.Subscription;g.add(S);var w=[],A={buffer:w,subs:S};y.push(A),a.executeSchedule(S,h,function(){return E(A)},u)}};m!==null&&m>=0?a.executeSchedule(g,h,x,m,!0):b=!0,x();var O=n.createOperatorSubscriber(g,function(S){var w,A,T=y.slice();try{for(var P=e(T),N=P.next();!N.done;N=P.next()){var D=N.value,V=D.buffer;V.push(S),v<=V.length&&E(D)}}catch(F){w={error:F}}finally{try{N&&!N.done&&(A=P.return)&&A.call(P)}finally{if(w)throw w.error}}},function(){for(;y?.length;)g.next(y.shift().buffer);O?.unsubscribe(),g.complete(),g.unsubscribe()},void 0,function(){return y=null});_.subscribe(O)})}return Cr.bufferTime=c,Cr}var jr={},LO;function CC(){if(LO)return jr;LO=1;var e=jr&&jr.__values||function(c){var u=typeof Symbol=="function"&&Symbol.iterator,p=u&&c[u],l=0;if(p)return p.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&l>=c.length&&(c=void 0),{value:c&&c[l++],done:!c}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(jr,"__esModule",{value:!0}),jr.bufferToggle=void 0;var t=bt(),r=ce(),n=we(),o=pe(),i=nt(),s=cr();function a(c,u){return r.operate(function(p,l){var d=[];n.innerFrom(c).subscribe(o.createOperatorSubscriber(l,function(f){var h=[];d.push(h);var m=new t.Subscription,v=function(){s.arrRemove(d,h),l.next(h),m.unsubscribe()};m.add(n.innerFrom(u(f)).subscribe(o.createOperatorSubscriber(l,v,i.noop)))},i.noop)),p.subscribe(o.createOperatorSubscriber(l,function(f){var h,m;try{for(var v=e(d),_=v.next();!_.done;_=v.next()){var g=_.value;g.push(f)}}catch(y){h={error:y}}finally{try{_&&!_.done&&(m=v.return)&&m.call(v)}finally{if(h)throw h.error}}},function(){for(;d.length>0;)l.next(d.shift());l.complete()}))})}return jr.bufferToggle=a,jr}var Ua={},UO;function jC(){if(UO)return Ua;UO=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.bufferWhen=void 0;var e=ce(),t=nt(),r=pe(),n=we();function o(i){return e.operate(function(s,a){var c=null,u=null,p=function(){u?.unsubscribe();var l=c;c=[],l&&a.next(l),n.innerFrom(i()).subscribe(u=r.createOperatorSubscriber(a,p,t.noop))};p(),s.subscribe(r.createOperatorSubscriber(a,function(l){return c?.push(l)},function(){c&&a.next(c),a.complete()},void 0,function(){return c=u=null}))})}return Ua.bufferWhen=o,Ua}var za={},zO;function qC(){if(zO)return za;zO=1,Object.defineProperty(za,"__esModule",{value:!0}),za.catchError=void 0;var e=we(),t=pe(),r=ce();function n(o){return r.operate(function(i,s){var a=null,c=!1,u;a=i.subscribe(t.createOperatorSubscriber(s,void 0,void 0,function(p){u=e.innerFrom(o(p,n(o)(i))),a?(a.unsubscribe(),a=null,u.subscribe(s)):c=!0})),c&&(a.unsubscribe(),a=null,u.subscribe(s))})}return za.catchError=n,za}var Ba={},Ha={},qr={},Va={},BO;function NC(){if(BO)return Va;BO=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.argsArgArrayOrObject=void 0;var e=Array.isArray,t=Object.getPrototypeOf,r=Object.prototype,n=Object.keys;function o(s){if(s.length===1){var a=s[0];if(e(a))return{args:a,keys:null};if(i(a)){var c=n(a);return{args:c.map(function(u){return a[u]}),keys:c}}}return{args:s,keys:null}}Va.argsArgArrayOrObject=o;function i(s){return s&&typeof s=="object"&&t(s)===r}return Va}var Ga={},Wa={},Za={},Ka={},HO;function Ml(){if(HO)return Ka;HO=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.observeOn=void 0;var e=ur(),t=ce(),r=pe();function n(o,i){return i===void 0&&(i=0),t.operate(function(s,a){s.subscribe(r.createOperatorSubscriber(a,function(c){return e.executeSchedule(a,o,function(){return a.next(c)},i)},function(){return e.executeSchedule(a,o,function(){return a.complete()},i)},function(c){return e.executeSchedule(a,o,function(){return a.error(c)},i)}))})}return Ka.observeOn=n,Ka}var Ya={},VO;function Il(){if(VO)return Ya;VO=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.subscribeOn=void 0;var e=ce();function t(r,n){return n===void 0&&(n=0),e.operate(function(o,i){i.add(r.schedule(function(){return o.subscribe(i)},n))})}return Ya.subscribeOn=t,Ya}var GO;function xU(){if(GO)return Za;GO=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.scheduleObservable=void 0;var e=we(),t=Ml(),r=Il();function n(o,i){return e.innerFrom(o).pipe(r.subscribeOn(i),t.observeOn(i))}return Za.scheduleObservable=n,Za}var Xa={},WO;function OU(){if(WO)return Xa;WO=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.schedulePromise=void 0;var e=we(),t=Ml(),r=Il();function n(o,i){return e.innerFrom(o).pipe(r.subscribeOn(i),t.observeOn(i))}return Xa.schedulePromise=n,Xa}var Ja={},ZO;function wU(){if(ZO)return Ja;ZO=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.scheduleArray=void 0;var e=Fe();function t(r,n){return new e.Observable(function(o){var i=0;return n.schedule(function(){i===r.length?o.complete():(o.next(r[i++]),o.closed||this.schedule())})})}return Ja.scheduleArray=t,Ja}var Qa={},KO;function FC(){if(KO)return Qa;KO=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.scheduleIterable=void 0;var e=Fe(),t=SC(),r=qe(),n=ur();function o(i,s){return new e.Observable(function(a){var c;return n.executeSchedule(a,s,function(){c=i[t.iterator](),n.executeSchedule(a,s,function(){var u,p,l;try{u=c.next(),p=u.value,l=u.done}catch(d){a.error(d);return}l?a.complete():a.next(p)},0,!0)}),function(){return r.isFunction(c?.return)&&c.return()}})}return Qa.scheduleIterable=o,Qa}var $a={},YO;function kC(){if(YO)return $a;YO=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.scheduleAsyncIterable=void 0;var e=Fe(),t=ur();function r(n,o){if(!n)throw new Error("Iterable cannot be null");return new e.Observable(function(i){t.executeSchedule(i,o,function(){var s=n[Symbol.asyncIterator]();t.executeSchedule(i,o,function(){s.next().then(function(a){a.done?i.complete():i.next(a.value)})},0,!0)})})}return $a.scheduleAsyncIterable=r,$a}var eo={},XO;function SU(){if(XO)return eo;XO=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.scheduleReadableStreamLike=void 0;var e=kC(),t=xg();function r(n,o){return e.scheduleAsyncIterable(t.readableStreamLikeToAsyncGenerator(n),o)}return eo.scheduleReadableStreamLike=r,eo}var JO;function DC(){if(JO)return Wa;JO=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.scheduled=void 0;var e=xU(),t=OU(),r=wU(),n=FC(),o=kC(),i=xC(),s=gC(),a=bg(),c=TC(),u=OC(),p=wC(),l=xg(),d=SU();function f(h,m){if(h!=null){if(i.isInteropObservable(h))return e.scheduleObservable(h,m);if(a.isArrayLike(h))return r.scheduleArray(h,m);if(s.isPromise(h))return t.schedulePromise(h,m);if(u.isAsyncIterable(h))return o.scheduleAsyncIterable(h,m);if(c.isIterable(h))return n.scheduleIterable(h,m);if(l.isReadableStreamLike(h))return d.scheduleReadableStreamLike(h,m)}throw p.createInvalidObservableTypeError(h)}return Wa.scheduled=f,Wa}var QO;function lr(){if(QO)return Ga;QO=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.from=void 0;var e=DC(),t=we();function r(n,o){return o?e.scheduled(n,o):t.innerFrom(n)}return Ga.from=r,Ga}var kt={},to={},$O;function dr(){if($O)return to;$O=1,Object.defineProperty(to,"__esModule",{value:!0}),to.map=void 0;var e=ce(),t=pe();function r(n,o){return e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){s.next(n.call(o,c,a++))}))})}return to.map=r,to}var ew;function En(){if(ew)return kt;ew=1;var e=kt&&kt.__read||function(s,a){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(a===void 0||a-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},t=kt&&kt.__spreadArray||function(s,a){for(var c=0,u=a.length,p=s.length;c<u;c++,p++)s[p]=a[c];return s};Object.defineProperty(kt,"__esModule",{value:!0}),kt.mapOneOrManyArgs=void 0;var r=dr(),n=Array.isArray;function o(s,a){return n(a)?s.apply(void 0,t([],e(a))):s(a)}function i(s){return r.map(function(a){return o(s,a)})}return kt.mapOneOrManyArgs=i,kt}var ro={},tw;function LC(){if(tw)return ro;tw=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.createObject=void 0;function e(t,r){return t.reduce(function(n,o,i){return n[o]=r[i],n},{})}return ro.createObject=e,ro}var rw;function Tg(){if(rw)return qr;rw=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.combineLatestInit=qr.combineLatest=void 0;var e=Fe(),t=NC(),r=lr(),n=it(),o=En(),i=_t(),s=LC(),a=pe(),c=ur();function u(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=i.popScheduler(d),m=i.popResultSelector(d),v=t.argsArgArrayOrObject(d),_=v.args,g=v.keys;if(_.length===0)return r.from([],h);var y=new e.Observable(p(_,h,g?function(b){return s.createObject(g,b)}:n.identity));return m?y.pipe(o.mapOneOrManyArgs(m)):y}qr.combineLatest=u;function p(d,f,h){return h===void 0&&(h=n.identity),function(m){l(f,function(){for(var v=d.length,_=new Array(v),g=v,y=v,b=function(x){l(f,function(){var O=r.from(d[x],f),S=!1;O.subscribe(a.createOperatorSubscriber(m,function(w){_[x]=w,S||(S=!0,y--),y||m.next(h(_.slice()))},function(){--g||m.complete()}))},m)},E=0;E<v;E++)b(E)},m)}}qr.combineLatestInit=p;function l(d,f,h){d?c.executeSchedule(h,d,f):f()}return qr}var no={},io={},ao={},nw;function Pg(){if(nw)return ao;nw=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.mergeInternals=void 0;var e=we(),t=ur(),r=pe();function n(o,i,s,a,c,u,p,l){var d=[],f=0,h=0,m=!1,v=function(){m&&!d.length&&!f&&i.complete()},_=function(y){return f<a?g(y):d.push(y)},g=function(y){u&&i.next(y),f++;var b=!1;e.innerFrom(s(y,h++)).subscribe(r.createOperatorSubscriber(i,function(E){c?.(E),u?_(E):i.next(E)},function(){b=!0},void 0,function(){if(b)try{f--;for(var E=function(){var x=d.shift();p?t.executeSchedule(i,p,function(){return g(x)}):g(x)};d.length&&f<a;)E();v()}catch(x){i.error(x)}}))};return o.subscribe(r.createOperatorSubscriber(i,_,function(){m=!0,v()})),function(){l?.()}}return ao.mergeInternals=n,ao}var iw;function rr(){if(iw)return io;iw=1,Object.defineProperty(io,"__esModule",{value:!0}),io.mergeMap=void 0;var e=dr(),t=we(),r=ce(),n=Pg(),o=qe();function i(s,a,c){return c===void 0&&(c=1/0),o.isFunction(a)?i(function(u,p){return e.map(function(l,d){return a(u,l,p,d)})(t.innerFrom(s(u,p)))},c):(typeof a=="number"&&(c=a),r.operate(function(u,p){return n.mergeInternals(u,p,s,c)}))}return io.mergeMap=i,io}var oo={},so={},co={},aw;function UC(){if(aw)return co;aw=1,Object.defineProperty(co,"__esModule",{value:!0}),co.scanInternals=void 0;var e=pe();function t(r,n,o,i,s){return function(a,c){var u=o,p=n,l=0;a.subscribe(e.createOperatorSubscriber(c,function(d){var f=l++;p=u?r(p,d,f):(u=!0,d),i&&c.next(p)},s&&(function(){u&&c.next(p),c.complete()})))}}return co.scanInternals=t,co}var ow;function fi(){if(ow)return so;ow=1,Object.defineProperty(so,"__esModule",{value:!0}),so.reduce=void 0;var e=UC(),t=ce();function r(n,o){return t.operate(e.scanInternals(n,o,arguments.length>=2,!1,!0))}return so.reduce=r,so}var sw;function Ag(){if(sw)return oo;sw=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.toArray=void 0;var e=fi(),t=ce(),r=function(o,i){return o.push(i),o};function n(){return t.operate(function(o,i){e.reduce(r,[])(o).subscribe(i)})}return oo.toArray=n,oo}var cw;function zC(){if(cw)return no;cw=1,Object.defineProperty(no,"__esModule",{value:!0}),no.joinAllInternals=void 0;var e=it(),t=En(),r=xp(),n=rr(),o=Ag();function i(s,a){return r.pipe(o.toArray(),n.mergeMap(function(c){return s(c)}),a?t.mapOneOrManyArgs(a):e.identity)}return no.joinAllInternals=i,no}var uw;function Rg(){if(uw)return Ha;uw=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.combineLatestAll=void 0;var e=Tg(),t=zC();function r(n){return t.joinAllInternals(e.combineLatest,n)}return Ha.combineLatestAll=r,Ha}var lw;function BC(){if(lw)return Ba;lw=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.combineAll=void 0;var e=Rg();return Ba.combineAll=e.combineLatestAll,Ba}var Dt={},uo={},dw;function hi(){if(dw)return uo;dw=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.argsOrArgArray=void 0;var e=Array.isArray;function t(r){return r.length===1&&e(r[0])?r[0]:r}return uo.argsOrArgArray=t,uo}var pw;function HC(){if(pw)return Dt;pw=1;var e=Dt&&Dt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Dt&&Dt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.combineLatest=void 0;var r=Tg(),n=ce(),o=hi(),i=En(),s=xp(),a=_t();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=a.popResultSelector(u);return l?s.pipe(c.apply(void 0,t([],e(u))),i.mapOneOrManyArgs(l)):n.operate(function(d,f){r.combineLatestInit(t([d],e(o.argsOrArgArray(u))))(f)})}return Dt.combineLatest=c,Dt}var Lt={},fw;function VC(){if(fw)return Lt;fw=1;var e=Lt&&Lt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=Lt&&Lt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.combineLatestWith=void 0;var r=HC();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.combineLatest.apply(void 0,t([],e(o)))}return Lt.combineLatestWith=n,Lt}var Ut={},lo={},po={},hw;function Cl(){if(hw)return po;hw=1,Object.defineProperty(po,"__esModule",{value:!0}),po.mergeAll=void 0;var e=rr(),t=it();function r(n){return n===void 0&&(n=1/0),e.mergeMap(t.identity,n)}return po.mergeAll=r,po}var vw;function wp(){if(vw)return lo;vw=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.concatAll=void 0;var e=Cl();function t(){return e.mergeAll(1)}return lo.concatAll=t,lo}var mw;function GC(){if(mw)return Ut;mw=1;var e=Ut&&Ut.__read||function(a,c){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var p=u.call(a),l,d=[],f;try{for(;(c===void 0||c-- >0)&&!(l=p.next()).done;)d.push(l.value)}catch(h){f={error:h}}finally{try{l&&!l.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return d},t=Ut&&Ut.__spreadArray||function(a,c){for(var u=0,p=c.length,l=a.length;u<p;u++,l++)a[l]=c[u];return a};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.concat=void 0;var r=ce(),n=wp(),o=_t(),i=lr();function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var u=o.popScheduler(a);return r.operate(function(p,l){n.concatAll()(i.from(t([p],e(a)),u)).subscribe(l)})}return Ut.concat=s,Ut}var fo={},_w;function Mg(){if(_w)return fo;_w=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.concatMap=void 0;var e=rr(),t=qe();function r(n,o){return t.isFunction(o)?e.mergeMap(n,o,1):e.mergeMap(n,1)}return fo.concatMap=r,fo}var ho={},gw;function WC(){if(gw)return ho;gw=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.concatMapTo=void 0;var e=Mg(),t=qe();function r(n,o){return t.isFunction(o)?e.concatMap(function(){return n},o):e.concatMap(function(){return n})}return ho.concatMapTo=r,ho}var zt={},yw;function ZC(){if(yw)return zt;yw=1;var e=zt&&zt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=zt&&zt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(zt,"__esModule",{value:!0}),zt.concatWith=void 0;var r=GC();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.concat.apply(void 0,t([],e(o)))}return zt.concatWith=n,zt}var vo={},St={},mo={},bw;function KC(){if(bw)return mo;bw=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.ObjectUnsubscribedError=void 0;var e=yn();return mo.ObjectUnsubscribedError=e.createErrorClass(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),mo}var Ew;function at(){if(Ew)return St;Ew=1;var e=St&&St.__extends||(function(){var u=function(p,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},u(p,l)};return function(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(p,l);function d(){this.constructor=p}p.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}})(),t=St&&St.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(St,"__esModule",{value:!0}),St.AnonymousSubject=St.Subject=void 0;var r=Fe(),n=bt(),o=KC(),i=cr(),s=Eg(),a=(function(u){e(p,u);function p(){var l=u.call(this)||this;return l.closed=!1,l.currentObservers=null,l.observers=[],l.isStopped=!1,l.hasError=!1,l.thrownError=null,l}return p.prototype.lift=function(l){var d=new c(this,this);return d.operator=l,d},p.prototype._throwIfClosed=function(){if(this.closed)throw new o.ObjectUnsubscribedError},p.prototype.next=function(l){var d=this;s.errorContext(function(){var f,h;if(d._throwIfClosed(),!d.isStopped){d.currentObservers||(d.currentObservers=Array.from(d.observers));try{for(var m=t(d.currentObservers),v=m.next();!v.done;v=m.next()){var _=v.value;_.next(l)}}catch(g){f={error:g}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(f)throw f.error}}}})},p.prototype.error=function(l){var d=this;s.errorContext(function(){if(d._throwIfClosed(),!d.isStopped){d.hasError=d.isStopped=!0,d.thrownError=l;for(var f=d.observers;f.length;)f.shift().error(l)}})},p.prototype.complete=function(){var l=this;s.errorContext(function(){if(l._throwIfClosed(),!l.isStopped){l.isStopped=!0;for(var d=l.observers;d.length;)d.shift().complete()}})},p.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(p.prototype,"observed",{get:function(){var l;return((l=this.observers)===null||l===void 0?void 0:l.length)>0},enumerable:!1,configurable:!0}),p.prototype._trySubscribe=function(l){return this._throwIfClosed(),u.prototype._trySubscribe.call(this,l)},p.prototype._subscribe=function(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)},p.prototype._innerSubscribe=function(l){var d=this,f=this,h=f.hasError,m=f.isStopped,v=f.observers;return h||m?n.EMPTY_SUBSCRIPTION:(this.currentObservers=null,v.push(l),new n.Subscription(function(){d.currentObservers=null,i.arrRemove(v,l)}))},p.prototype._checkFinalizedStatuses=function(l){var d=this,f=d.hasError,h=d.thrownError,m=d.isStopped;f?l.error(h):m&&l.complete()},p.prototype.asObservable=function(){var l=new r.Observable;return l.source=this,l},p.create=function(l,d){return new c(l,d)},p})(r.Observable);St.Subject=a;var c=(function(u){e(p,u);function p(l,d){var f=u.call(this)||this;return f.destination=l,f.source=d,f}return p.prototype.next=function(l){var d,f;(f=(d=this.destination)===null||d===void 0?void 0:d.next)===null||f===void 0||f.call(d,l)},p.prototype.error=function(l){var d,f;(f=(d=this.destination)===null||d===void 0?void 0:d.error)===null||f===void 0||f.call(d,l)},p.prototype.complete=function(){var l,d;(d=(l=this.destination)===null||l===void 0?void 0:l.complete)===null||d===void 0||d.call(l)},p.prototype._subscribe=function(l){var d,f;return(f=(d=this.source)===null||d===void 0?void 0:d.subscribe(l))!==null&&f!==void 0?f:n.EMPTY_SUBSCRIPTION},p})(a);return St.AnonymousSubject=c,St}var _o={},xw;function TU(){if(xw)return _o;xw=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.fromSubscribable=void 0;var e=Fe();function t(r){return new e.Observable(function(n){return r.subscribe(n)})}return _o.fromSubscribable=t,_o}var Ow;function Sp(){if(Ow)return vo;Ow=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.connect=void 0;var e=at(),t=we(),r=ce(),n=TU(),o={connector:function(){return new e.Subject}};function i(s,a){a===void 0&&(a=o);var c=a.connector;return r.operate(function(u,p){var l=c();t.innerFrom(s(n.fromSubscribable(l))).subscribe(p),p.add(u.subscribe(l))})}return vo.connect=i,vo}var go={},ww;function YC(){if(ww)return go;ww=1,Object.defineProperty(go,"__esModule",{value:!0}),go.count=void 0;var e=fi();function t(r){return e.reduce(function(n,o,i){return!r||r(o,i)?n+1:n},0)}return go.count=t,go}var yo={},Sw;function XC(){if(Sw)return yo;Sw=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.debounce=void 0;var e=ce(),t=nt(),r=pe(),n=we();function o(i){return e.operate(function(s,a){var c=!1,u=null,p=null,l=function(){if(p?.unsubscribe(),p=null,c){c=!1;var d=u;u=null,a.next(d)}};s.subscribe(r.createOperatorSubscriber(a,function(d){p?.unsubscribe(),c=!0,u=d,p=r.createOperatorSubscriber(a,l,t.noop),n.innerFrom(i(d)).subscribe(p)},function(){l(),a.complete()},void 0,function(){u=p=null}))})}return yo.debounce=o,yo}var bo={},Tw;function JC(){if(Tw)return bo;Tw=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.debounceTime=void 0;var e=mt(),t=ce(),r=pe();function n(o,i){return i===void 0&&(i=e.asyncScheduler),t.operate(function(s,a){var c=null,u=null,p=null,l=function(){if(c){c.unsubscribe(),c=null;var f=u;u=null,a.next(f)}};function d(){var f=p+o,h=i.now();if(h<f){c=this.schedule(void 0,f-h),a.add(c);return}l()}s.subscribe(r.createOperatorSubscriber(a,function(f){u=f,p=i.now(),c||(c=i.schedule(d,o),a.add(c))},function(){l(),a.complete()},void 0,function(){u=c=null}))})}return bo.debounceTime=n,bo}var Eo={},Pw;function jl(){if(Pw)return Eo;Pw=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.defaultIfEmpty=void 0;var e=ce(),t=pe();function r(n){return e.operate(function(o,i){var s=!1;o.subscribe(t.createOperatorSubscriber(i,function(a){s=!0,i.next(a)},function(){s||i.next(n),i.complete()}))})}return Eo.defaultIfEmpty=r,Eo}var xo={},Oo={},wo={},Aw;function Tp(){if(Aw)return wo;Aw=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.concat=void 0;var e=wp(),t=_t(),r=lr();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.concatAll()(r.from(o,t.popScheduler(o)))}return wo.concat=n,wo}var So={},Qh={},Rw;function It(){return Rw||(Rw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var t=Fe();e.EMPTY=new t.Observable(function(o){return o.complete()});function r(o){return o?n(o):e.EMPTY}e.empty=r;function n(o){return new t.Observable(function(i){return o.schedule(function(){return i.complete()})})}})(Qh)),Qh}var Mw;function ql(){if(Mw)return So;Mw=1,Object.defineProperty(So,"__esModule",{value:!0}),So.take=void 0;var e=It(),t=ce(),r=pe();function n(o){return o<=0?function(){return e.EMPTY}:t.operate(function(i,s){var a=0;i.subscribe(r.createOperatorSubscriber(s,function(c){++a<=o&&(s.next(c),o<=a&&s.complete())}))})}return So.take=n,So}var To={},Iw;function Ig(){if(Iw)return To;Iw=1,Object.defineProperty(To,"__esModule",{value:!0}),To.ignoreElements=void 0;var e=ce(),t=pe(),r=nt();function n(){return e.operate(function(o,i){o.subscribe(t.createOperatorSubscriber(i,r.noop))})}return To.ignoreElements=n,To}var Po={},Cw;function Cg(){if(Cw)return Po;Cw=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.mapTo=void 0;var e=dr();function t(r){return e.map(function(){return r})}return Po.mapTo=t,Po}var jw;function jg(){if(jw)return Oo;jw=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.delayWhen=void 0;var e=Tp(),t=ql(),r=Ig(),n=Cg(),o=rr(),i=we();function s(a,c){return c?function(u){return e.concat(c.pipe(t.take(1),r.ignoreElements()),u.pipe(s(a)))}:o.mergeMap(function(u,p){return i.innerFrom(a(u,p)).pipe(t.take(1),n.mapTo(u))})}return Oo.delayWhen=s,Oo}var qw;function QC(){if(qw)return xo;qw=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.delay=void 0;var e=mt(),t=jg(),r=bn();function n(o,i){i===void 0&&(i=e.asyncScheduler);var s=r.timer(o,i);return t.delayWhen(function(){return s})}return xo.delay=n,xo}var Ao={},$h={},Ro={},Nw;function qg(){if(Nw)return Ro;Nw=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.of=void 0;var e=_t(),t=lr();function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.popScheduler(n);return t.from(n,i)}return Ro.of=r,Ro}var Mo={},Fw;function $C(){if(Fw)return Mo;Fw=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.throwError=void 0;var e=Fe(),t=qe();function r(n,o){var i=t.isFunction(n)?n:function(){return n},s=function(a){return a.error(i())};return new e.Observable(o?function(a){return o.schedule(s,0,a)}:s)}return Mo.throwError=r,Mo}var kw;function Ng(){return kw||(kw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=It(),r=qg(),n=$C(),o=qe();(function(a){a.NEXT="N",a.ERROR="E",a.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var i=(function(){function a(c,u,p){this.kind=c,this.value=u,this.error=p,this.hasValue=c==="N"}return a.prototype.observe=function(c){return s(this,c)},a.prototype.do=function(c,u,p){var l=this,d=l.kind,f=l.value,h=l.error;return d==="N"?c?.(f):d==="E"?u?.(h):p?.()},a.prototype.accept=function(c,u,p){var l;return o.isFunction((l=c)===null||l===void 0?void 0:l.next)?this.observe(c):this.do(c,u,p)},a.prototype.toObservable=function(){var c=this,u=c.kind,p=c.value,l=c.error,d=u==="N"?r.of(p):u==="E"?n.throwError(function(){return l}):u==="C"?t.EMPTY:0;if(!d)throw new TypeError("Unexpected notification kind "+u);return d},a.createNext=function(c){return new a("N",c)},a.createError=function(c){return new a("E",void 0,c)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a})();e.Notification=i;function s(a,c){var u,p,l,d=a,f=d.kind,h=d.value,m=d.error;if(typeof f!="string")throw new TypeError('Invalid notification, missing "kind"');f==="N"?(u=c.next)===null||u===void 0||u.call(c,h):f==="E"?(p=c.error)===null||p===void 0||p.call(c,m):(l=c.complete)===null||l===void 0||l.call(c)}e.observeNotification=s})($h)),$h}var Dw;function ej(){if(Dw)return Ao;Dw=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.dematerialize=void 0;var e=Ng(),t=ce(),r=pe();function n(){return t.operate(function(o,i){o.subscribe(r.createOperatorSubscriber(i,function(s){return e.observeNotification(s,i)}))})}return Ao.dematerialize=n,Ao}var Io={},Lw;function tj(){if(Lw)return Io;Lw=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.distinct=void 0;var e=ce(),t=pe(),r=nt(),n=we();function o(i,s){return e.operate(function(a,c){var u=new Set;a.subscribe(t.createOperatorSubscriber(c,function(p){var l=i?i(p):p;u.has(l)||(u.add(l),c.next(p))})),s&&n.innerFrom(s).subscribe(t.createOperatorSubscriber(c,function(){return u.clear()},r.noop))})}return Io.distinct=o,Io}var Co={},Uw;function Fg(){if(Uw)return Co;Uw=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.distinctUntilChanged=void 0;var e=it(),t=ce(),r=pe();function n(i,s){return s===void 0&&(s=e.identity),i=i??o,t.operate(function(a,c){var u,p=!0;a.subscribe(r.createOperatorSubscriber(c,function(l){var d=s(l);(p||!i(u,d))&&(p=!1,u=d,c.next(l))}))})}Co.distinctUntilChanged=n;function o(i,s){return i===s}return Co}var jo={},zw;function rj(){if(zw)return jo;zw=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.distinctUntilKeyChanged=void 0;var e=Fg();function t(r,n){return e.distinctUntilChanged(function(o,i){return n?n(o[r],i[r]):o[r]===i[r]})}return jo.distinctUntilKeyChanged=t,jo}var qo={},No={},Bw;function nj(){if(Bw)return No;Bw=1,Object.defineProperty(No,"__esModule",{value:!0}),No.ArgumentOutOfRangeError=void 0;var e=yn();return No.ArgumentOutOfRangeError=e.createErrorClass(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),No}var Fo={},Hw;function pr(){if(Hw)return Fo;Hw=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.filter=void 0;var e=ce(),t=pe();function r(n,o){return e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){return n.call(o,c,a++)&&s.next(c)}))})}return Fo.filter=r,Fo}var ko={},Do={},Vw;function xn(){if(Vw)return Do;Vw=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.EmptyError=void 0;var e=yn();return Do.EmptyError=e.createErrorClass(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}),Do}var Gw;function Nl(){if(Gw)return ko;Gw=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.throwIfEmpty=void 0;var e=xn(),t=ce(),r=pe();function n(i){return i===void 0&&(i=o),t.operate(function(s,a){var c=!1;s.subscribe(r.createOperatorSubscriber(a,function(u){c=!0,a.next(u)},function(){return c?a.complete():a.error(i())}))})}ko.throwIfEmpty=n;function o(){return new e.EmptyError}return ko}var Ww;function ij(){if(Ww)return qo;Ww=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.elementAt=void 0;var e=nj(),t=pr(),r=Nl(),n=jl(),o=ql();function i(s,a){if(s<0)throw new e.ArgumentOutOfRangeError;var c=arguments.length>=2;return function(u){return u.pipe(t.filter(function(p,l){return l===s}),o.take(1),c?n.defaultIfEmpty(a):r.throwIfEmpty(function(){return new e.ArgumentOutOfRangeError}))}}return qo.elementAt=i,qo}var Bt={},Zw;function aj(){if(Zw)return Bt;Zw=1;var e=Bt&&Bt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Bt&&Bt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.endWith=void 0;var r=Tp(),n=qg();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return function(a){return r.concat(a,n.of.apply(void 0,t([],e(i))))}}return Bt.endWith=o,Bt}var Lo={},Kw;function oj(){if(Kw)return Lo;Kw=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.every=void 0;var e=ce(),t=pe();function r(n,o){return e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){n.call(o,c,a++,i)||(s.next(!1),s.complete())},function(){s.next(!0),s.complete()}))})}return Lo.every=r,Lo}var Uo={},zo={},Bo={},Yw;function kg(){if(Yw)return Bo;Yw=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.exhaustMap=void 0;var e=dr(),t=we(),r=ce(),n=pe();function o(i,s){return s?function(a){return a.pipe(o(function(c,u){return t.innerFrom(i(c,u)).pipe(e.map(function(p,l){return s(c,p,u,l)}))}))}:r.operate(function(a,c){var u=0,p=null,l=!1;a.subscribe(n.createOperatorSubscriber(c,function(d){p||(p=n.createOperatorSubscriber(c,void 0,function(){p=null,l&&c.complete()}),t.innerFrom(i(d,u++)).subscribe(p))},function(){l=!0,!p&&c.complete()}))})}return Bo.exhaustMap=o,Bo}var Xw;function Dg(){if(Xw)return zo;Xw=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.exhaustAll=void 0;var e=kg(),t=it();function r(){return e.exhaustMap(t.identity)}return zo.exhaustAll=r,zo}var Jw;function sj(){if(Jw)return Uo;Jw=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.exhaust=void 0;var e=Dg();return Uo.exhaust=e.exhaustAll,Uo}var Ho={},Qw;function cj(){if(Qw)return Ho;Qw=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.expand=void 0;var e=ce(),t=Pg();function r(n,o,i){return o===void 0&&(o=1/0),o=(o||0)<1?1/0:o,e.operate(function(s,a){return t.mergeInternals(s,a,n,o,void 0,!0,i)})}return Ho.expand=r,Ho}var Vo={},$w;function uj(){if($w)return Vo;$w=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.finalize=void 0;var e=ce();function t(r){return e.operate(function(n,o){try{n.subscribe(o)}finally{o.add(r)}})}return Vo.finalize=t,Vo}var Nr={},eS;function Lg(){if(eS)return Nr;eS=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.createFind=Nr.find=void 0;var e=ce(),t=pe();function r(o,i){return e.operate(n(o,i,"value"))}Nr.find=r;function n(o,i,s){var a=s==="index";return function(c,u){var p=0;c.subscribe(t.createOperatorSubscriber(u,function(l){var d=p++;o.call(i,l,d,c)&&(u.next(a?d:l),u.complete())},function(){u.next(a?-1:void 0),u.complete()}))}}return Nr.createFind=n,Nr}var Go={},tS;function lj(){if(tS)return Go;tS=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.findIndex=void 0;var e=ce(),t=Lg();function r(n,o){return e.operate(t.createFind(n,o,"index"))}return Go.findIndex=r,Go}var Wo={},rS;function dj(){if(rS)return Wo;rS=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.first=void 0;var e=xn(),t=pr(),r=ql(),n=jl(),o=Nl(),i=it();function s(a,c){var u=arguments.length>=2;return function(p){return p.pipe(a?t.filter(function(l,d){return a(l,d,p)}):i.identity,r.take(1),u?n.defaultIfEmpty(c):o.throwIfEmpty(function(){return new e.EmptyError}))}}return Wo.first=s,Wo}var Zo={},nS;function pj(){if(nS)return Zo;nS=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.groupBy=void 0;var e=Fe(),t=we(),r=at(),n=ce(),o=pe();function i(s,a,c,u){return n.operate(function(p,l){var d;!a||typeof a=="function"?d=a:(c=a.duration,d=a.element,u=a.connector);var f=new Map,h=function(b){f.forEach(b),b(l)},m=function(b){return h(function(E){return E.error(b)})},v=0,_=!1,g=new o.OperatorSubscriber(l,function(b){try{var E=s(b),x=f.get(E);if(!x){f.set(E,x=u?u():new r.Subject);var O=y(E,x);if(l.next(O),c){var S=o.createOperatorSubscriber(x,function(){x.complete(),S?.unsubscribe()},void 0,void 0,function(){return f.delete(E)});g.add(t.innerFrom(c(O)).subscribe(S))}}x.next(d?d(b):b)}catch(w){m(w)}},function(){return h(function(b){return b.complete()})},m,function(){return f.clear()},function(){return _=!0,v===0});p.subscribe(g);function y(b,E){var x=new e.Observable(function(O){v++;var S=E.subscribe(O);return function(){S.unsubscribe(),--v===0&&_&&g.unsubscribe()}});return x.key=b,x}})}return Zo.groupBy=i,Zo}var Ko={},iS;function fj(){if(iS)return Ko;iS=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.isEmpty=void 0;var e=ce(),t=pe();function r(){return e.operate(function(n,o){n.subscribe(t.createOperatorSubscriber(o,function(){o.next(!1),o.complete()},function(){o.next(!0),o.complete()}))})}return Ko.isEmpty=r,Ko}var Yo={},Fr={},aS;function Ug(){if(aS)return Fr;aS=1;var e=Fr&&Fr.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&i[s],c=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.takeLast=void 0;var t=It(),r=ce(),n=pe();function o(i){return i<=0?function(){return t.EMPTY}:r.operate(function(s,a){var c=[];s.subscribe(n.createOperatorSubscriber(a,function(u){c.push(u),i<c.length&&c.shift()},function(){var u,p;try{for(var l=e(c),d=l.next();!d.done;d=l.next()){var f=d.value;a.next(f)}}catch(h){u={error:h}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(u)throw u.error}}a.complete()},void 0,function(){c=null}))})}return Fr.takeLast=o,Fr}var oS;function hj(){if(oS)return Yo;oS=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.last=void 0;var e=xn(),t=pr(),r=Ug(),n=Nl(),o=jl(),i=it();function s(a,c){var u=arguments.length>=2;return function(p){return p.pipe(a?t.filter(function(l,d){return a(l,d,p)}):i.identity,r.takeLast(1),u?o.defaultIfEmpty(c):n.throwIfEmpty(function(){return new e.EmptyError}))}}return Yo.last=s,Yo}var Xo={},sS;function vj(){if(sS)return Xo;sS=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.materialize=void 0;var e=Ng(),t=ce(),r=pe();function n(){return t.operate(function(o,i){o.subscribe(r.createOperatorSubscriber(i,function(s){i.next(e.Notification.createNext(s))},function(){i.next(e.Notification.createComplete()),i.complete()},function(s){i.next(e.Notification.createError(s)),i.complete()}))})}return Xo.materialize=n,Xo}var Jo={},cS;function mj(){if(cS)return Jo;cS=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.max=void 0;var e=fi(),t=qe();function r(n){return e.reduce(t.isFunction(n)?function(o,i){return n(o,i)>0?o:i}:function(o,i){return o>i?o:i})}return Jo.max=r,Jo}var Ht={},uS;function _j(){if(uS)return Ht;uS=1;var e=Ht&&Ht.__read||function(a,c){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var p=u.call(a),l,d=[],f;try{for(;(c===void 0||c-- >0)&&!(l=p.next()).done;)d.push(l.value)}catch(h){f={error:h}}finally{try{l&&!l.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return d},t=Ht&&Ht.__spreadArray||function(a,c){for(var u=0,p=c.length,l=a.length;u<p;u++,l++)a[l]=c[u];return a};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.merge=void 0;var r=ce(),n=Cl(),o=_t(),i=lr();function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var u=o.popScheduler(a),p=o.popNumber(a,1/0);return r.operate(function(l,d){n.mergeAll(p)(i.from(t([l],e(a)),u)).subscribe(d)})}return Ht.merge=s,Ht}var Qo={},lS;function gj(){if(lS)return Qo;lS=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.flatMap=void 0;var e=rr();return Qo.flatMap=e.mergeMap,Qo}var $o={},dS;function yj(){if(dS)return $o;dS=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.mergeMapTo=void 0;var e=rr(),t=qe();function r(n,o,i){return i===void 0&&(i=1/0),t.isFunction(o)?e.mergeMap(function(){return n},o,i):(typeof o=="number"&&(i=o),e.mergeMap(function(){return n},i))}return $o.mergeMapTo=r,$o}var es={},pS;function bj(){if(pS)return es;pS=1,Object.defineProperty(es,"__esModule",{value:!0}),es.mergeScan=void 0;var e=ce(),t=Pg();function r(n,o,i){return i===void 0&&(i=1/0),e.operate(function(s,a){var c=o;return t.mergeInternals(s,a,function(u,p){return n(c,u,p)},i,function(u){c=u},!1,void 0,function(){return c=null})})}return es.mergeScan=r,es}var Vt={},fS;function Ej(){if(fS)return Vt;fS=1;var e=Vt&&Vt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=Vt&&Vt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.mergeWith=void 0;var r=_j();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.merge.apply(void 0,t([],e(o)))}return Vt.mergeWith=n,Vt}var ts={},hS;function xj(){if(hS)return ts;hS=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.min=void 0;var e=fi(),t=qe();function r(n){return e.reduce(t.isFunction(n)?function(o,i){return n(o,i)<0?o:i}:function(o,i){return o<i?o:i})}return ts.min=r,ts}var rs={},kr={},ns={},vS;function zg(){if(vS)return ns;vS=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.refCount=void 0;var e=ce(),t=pe();function r(){return e.operate(function(n,o){var i=null;n._refCount++;var s=t.createOperatorSubscriber(o,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount){i=null;return}var a=n._connection,c=i;i=null,a&&(!c||a===c)&&a.unsubscribe(),o.unsubscribe()});n.subscribe(s),s.closed||(i=n.connect())})}return ns.refCount=r,ns}var mS;function Pp(){if(mS)return kr;mS=1;var e=kr&&kr.__extends||(function(){var a=function(c,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(p[d]=l[d])},a(c,u)};return function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(c,u);function p(){this.constructor=c}c.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}})();Object.defineProperty(kr,"__esModule",{value:!0}),kr.ConnectableObservable=void 0;var t=Fe(),r=bt(),n=zg(),o=pe(),i=ce(),s=(function(a){e(c,a);function c(u,p){var l=a.call(this)||this;return l.source=u,l.subjectFactory=p,l._subject=null,l._refCount=0,l._connection=null,i.hasLift(u)&&(l.lift=u.lift),l}return c.prototype._subscribe=function(u){return this.getSubject().subscribe(u)},c.prototype.getSubject=function(){var u=this._subject;return(!u||u.isStopped)&&(this._subject=this.subjectFactory()),this._subject},c.prototype._teardown=function(){this._refCount=0;var u=this._connection;this._subject=this._connection=null,u?.unsubscribe()},c.prototype.connect=function(){var u=this,p=this._connection;if(!p){p=this._connection=new r.Subscription;var l=this.getSubject();p.add(this.source.subscribe(o.createOperatorSubscriber(l,void 0,function(){u._teardown(),l.complete()},function(d){u._teardown(),l.error(d)},function(){return u._teardown()}))),p.closed&&(this._connection=null,p=r.Subscription.EMPTY)}return p},c.prototype.refCount=function(){return n.refCount()(this)},c})(t.Observable);return kr.ConnectableObservable=s,kr}var _S;function Ap(){if(_S)return rs;_S=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.multicast=void 0;var e=Pp(),t=qe(),r=Sp();function n(o,i){var s=t.isFunction(o)?o:function(){return o};return t.isFunction(i)?r.connect(i,{connector:s}):function(a){return new e.ConnectableObservable(a,s)}}return rs.multicast=n,rs}var Tt={},is={},gS;function Oj(){if(gS)return is;gS=1,Object.defineProperty(is,"__esModule",{value:!0}),is.onErrorResumeNext=void 0;var e=Fe(),t=hi(),r=pe(),n=nt(),o=we();function i(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=t.argsOrArgArray(s);return new e.Observable(function(u){var p=0,l=function(){if(p<c.length){var d=void 0;try{d=o.innerFrom(c[p++])}catch{l();return}var f=new r.OperatorSubscriber(u,void 0,n.noop,n.noop);d.subscribe(f),f.add(l)}else u.complete()};l()})}return is.onErrorResumeNext=i,is}var yS;function wj(){if(yS)return Tt;yS=1;var e=Tt&&Tt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Tt&&Tt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.onErrorResumeNext=Tt.onErrorResumeNextWith=void 0;var r=hi(),n=Oj();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=r.argsOrArgArray(i);return function(c){return n.onErrorResumeNext.apply(void 0,t([c],e(a)))}}return Tt.onErrorResumeNextWith=o,Tt.onErrorResumeNext=o,Tt}var as={},bS;function Sj(){if(bS)return as;bS=1,Object.defineProperty(as,"__esModule",{value:!0}),as.pairwise=void 0;var e=ce(),t=pe();function r(){return e.operate(function(n,o){var i,s=!1;n.subscribe(t.createOperatorSubscriber(o,function(a){var c=i;i=a,s&&o.next([c,a]),s=!0}))})}return as.pairwise=r,as}var os={},ss={},ES;function Tj(){if(ES)return ss;ES=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.not=void 0;function e(t,r){return function(n,o){return!t.call(r,n,o)}}return ss.not=e,ss}var xS;function PU(){if(xS)return os;xS=1,Object.defineProperty(os,"__esModule",{value:!0}),os.partition=void 0;var e=Tj(),t=pr();function r(n,o){return function(i){return[t.filter(n,o)(i),t.filter(e.not(n,o))(i)]}}return os.partition=r,os}var cs={},OS;function Pj(){if(OS)return cs;OS=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.pluck=void 0;var e=dr();function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r.length;if(o===0)throw new Error("list of properties cannot be empty.");return e.map(function(i){for(var s=i,a=0;a<o;a++){var c=s?.[r[a]];if(typeof c<"u")s=c;else return}return s})}return cs.pluck=t,cs}var us={},wS;function Aj(){if(wS)return us;wS=1,Object.defineProperty(us,"__esModule",{value:!0}),us.publish=void 0;var e=at(),t=Ap(),r=Sp();function n(o){return o?function(i){return r.connect(o)(i)}:function(i){return t.multicast(new e.Subject)(i)}}return us.publish=n,us}var ls={},Dr={},SS;function Rj(){if(SS)return Dr;SS=1;var e=Dr&&Dr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.BehaviorSubject=void 0;var t=at(),r=(function(n){e(o,n);function o(i){var s=n.call(this)||this;return s._value=i,s}return Object.defineProperty(o.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),o.prototype._subscribe=function(i){var s=n.prototype._subscribe.call(this,i);return!s.closed&&i.next(this._value),s},o.prototype.getValue=function(){var i=this,s=i.hasError,a=i.thrownError,c=i._value;if(s)throw a;return this._throwIfClosed(),c},o.prototype.next=function(i){n.prototype.next.call(this,this._value=i)},o})(t.Subject);return Dr.BehaviorSubject=r,Dr}var TS;function Mj(){if(TS)return ls;TS=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.publishBehavior=void 0;var e=Rj(),t=Pp();function r(n){return function(o){var i=new e.BehaviorSubject(n);return new t.ConnectableObservable(o,function(){return i})}}return ls.publishBehavior=r,ls}var ds={},Lr={},PS;function Bg(){if(PS)return Lr;PS=1;var e=Lr&&Lr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.AsyncSubject=void 0;var t=at(),r=(function(n){e(o,n);function o(){var i=n!==null&&n.apply(this,arguments)||this;return i._value=null,i._hasValue=!1,i._isComplete=!1,i}return o.prototype._checkFinalizedStatuses=function(i){var s=this,a=s.hasError,c=s._hasValue,u=s._value,p=s.thrownError,l=s.isStopped,d=s._isComplete;a?i.error(p):(l||d)&&(c&&i.next(u),i.complete())},o.prototype.next=function(i){this.isStopped||(this._value=i,this._hasValue=!0)},o.prototype.complete=function(){var i=this,s=i._hasValue,a=i._value,c=i._isComplete;c||(this._isComplete=!0,s&&n.prototype.next.call(this,a),n.prototype.complete.call(this))},o})(t.Subject);return Lr.AsyncSubject=r,Lr}var AS;function Ij(){if(AS)return ds;AS=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.publishLast=void 0;var e=Bg(),t=Pp();function r(){return function(n){var o=new e.AsyncSubject;return new t.ConnectableObservable(n,function(){return o})}}return ds.publishLast=r,ds}var ps={},Ur={},RS;function Hg(){if(RS)return Ur;RS=1;var e=Ur&&Ur.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.ReplaySubject=void 0;var t=at(),r=wg(),n=(function(o){e(i,o);function i(s,a,c){s===void 0&&(s=1/0),a===void 0&&(a=1/0),c===void 0&&(c=r.dateTimestampProvider);var u=o.call(this)||this;return u._bufferSize=s,u._windowTime=a,u._timestampProvider=c,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=a===1/0,u._bufferSize=Math.max(1,s),u._windowTime=Math.max(1,a),u}return i.prototype.next=function(s){var a=this,c=a.isStopped,u=a._buffer,p=a._infiniteTimeWindow,l=a._timestampProvider,d=a._windowTime;c||(u.push(s),!p&&u.push(l.now()+d)),this._trimBuffer(),o.prototype.next.call(this,s)},i.prototype._subscribe=function(s){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(s),c=this,u=c._infiniteTimeWindow,p=c._buffer,l=p.slice(),d=0;d<l.length&&!s.closed;d+=u?1:2)s.next(l[d]);return this._checkFinalizedStatuses(s),a},i.prototype._trimBuffer=function(){var s=this,a=s._bufferSize,c=s._timestampProvider,u=s._buffer,p=s._infiniteTimeWindow,l=(p?1:2)*a;if(a<1/0&&l<u.length&&u.splice(0,u.length-l),!p){for(var d=c.now(),f=0,h=1;h<u.length&&u[h]<=d;h+=2)f=h;f&&u.splice(0,f+1)}},i})(t.Subject);return Ur.ReplaySubject=n,Ur}var MS;function Cj(){if(MS)return ps;MS=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.publishReplay=void 0;var e=Hg(),t=Ap(),r=qe();function n(o,i,s,a){s&&!r.isFunction(s)&&(a=s);var c=r.isFunction(s)?s:void 0;return function(u){return t.multicast(new e.ReplaySubject(o,i,a),c)(u)}}return ps.publishReplay=n,ps}var Gt={},Wt={},zr={},IS;function jj(){if(IS)return zr;IS=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.raceInit=zr.race=void 0;var e=Fe(),t=we(),r=hi(),n=pe();function o(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return s=r.argsOrArgArray(s),s.length===1?t.innerFrom(s[0]):new e.Observable(i(s))}zr.race=o;function i(s){return function(a){for(var c=[],u=function(l){c.push(t.innerFrom(s[l]).subscribe(n.createOperatorSubscriber(a,function(d){if(c){for(var f=0;f<c.length;f++)f!==l&&c[f].unsubscribe();c=null}a.next(d)})))},p=0;c&&!a.closed&&p<s.length;p++)u(p)}}return zr.raceInit=i,zr}var CS;function Vg(){if(CS)return Wt;CS=1;var e=Wt&&Wt.__read||function(s,a){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(a===void 0||a-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},t=Wt&&Wt.__spreadArray||function(s,a){for(var c=0,u=a.length,p=s.length;c<u;c++,p++)s[p]=a[c];return s};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.raceWith=void 0;var r=jj(),n=ce(),o=it();function i(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return s.length?n.operate(function(c,u){r.raceInit(t([c],e(s)))(u)}):o.identity}return Wt.raceWith=i,Wt}var jS;function AU(){if(jS)return Gt;jS=1;var e=Gt&&Gt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Gt&&Gt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.race=void 0;var r=hi(),n=Vg();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return n.raceWith.apply(void 0,t([],e(r.argsOrArgArray(i))))}return Gt.race=o,Gt}var fs={},qS;function qj(){if(qS)return fs;qS=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.repeat=void 0;var e=It(),t=ce(),r=pe(),n=we(),o=bn();function i(s){var a,c=1/0,u;return s!=null&&(typeof s=="object"?(a=s.count,c=a===void 0?1/0:a,u=s.delay):c=s),c<=0?function(){return e.EMPTY}:t.operate(function(p,l){var d=0,f,h=function(){if(f?.unsubscribe(),f=null,u!=null){var v=typeof u=="number"?o.timer(u):n.innerFrom(u(d)),_=r.createOperatorSubscriber(l,function(){_.unsubscribe(),m()});v.subscribe(_)}else m()},m=function(){var v=!1;f=p.subscribe(r.createOperatorSubscriber(l,void 0,function(){++d<c?f?h():v=!0:l.complete()})),v&&h()};m()})}return fs.repeat=i,fs}var hs={},NS;function Nj(){if(NS)return hs;NS=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.repeatWhen=void 0;var e=we(),t=at(),r=ce(),n=pe();function o(i){return r.operate(function(s,a){var c,u=!1,p,l=!1,d=!1,f=function(){return d&&l&&(a.complete(),!0)},h=function(){return p||(p=new t.Subject,e.innerFrom(i(p)).subscribe(n.createOperatorSubscriber(a,function(){c?m():u=!0},function(){l=!0,f()}))),p},m=function(){d=!1,c=s.subscribe(n.createOperatorSubscriber(a,void 0,function(){d=!0,!f()&&h().next()})),u&&(c.unsubscribe(),c=null,u=!1,m())};m()})}return hs.repeatWhen=o,hs}var vs={},FS;function Fj(){if(FS)return vs;FS=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.retry=void 0;var e=ce(),t=pe(),r=it(),n=bn(),o=we();function i(s){s===void 0&&(s=1/0);var a;s&&typeof s=="object"?a=s:a={count:s};var c=a.count,u=c===void 0?1/0:c,p=a.delay,l=a.resetOnSuccess,d=l===void 0?!1:l;return u<=0?r.identity:e.operate(function(f,h){var m=0,v,_=function(){var g=!1;v=f.subscribe(t.createOperatorSubscriber(h,function(y){d&&(m=0),h.next(y)},void 0,function(y){if(m++<u){var b=function(){v?(v.unsubscribe(),v=null,_()):g=!0};if(p!=null){var E=typeof p=="number"?n.timer(p):o.innerFrom(p(y,m)),x=t.createOperatorSubscriber(h,function(){x.unsubscribe(),b()},function(){h.complete()});E.subscribe(x)}else b()}else h.error(y)})),g&&(v.unsubscribe(),v=null,_())};_()})}return vs.retry=i,vs}var ms={},kS;function kj(){if(kS)return ms;kS=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.retryWhen=void 0;var e=we(),t=at(),r=ce(),n=pe();function o(i){return r.operate(function(s,a){var c,u=!1,p,l=function(){c=s.subscribe(n.createOperatorSubscriber(a,void 0,void 0,function(d){p||(p=new t.Subject,e.innerFrom(i(p)).subscribe(n.createOperatorSubscriber(a,function(){return c?l():u=!0}))),p&&p.next(d)})),u&&(c.unsubscribe(),c=null,u=!1,l())};l()})}return ms.retryWhen=o,ms}var _s={},DS;function Gg(){if(DS)return _s;DS=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.sample=void 0;var e=we(),t=ce(),r=nt(),n=pe();function o(i){return t.operate(function(s,a){var c=!1,u=null;s.subscribe(n.createOperatorSubscriber(a,function(p){c=!0,u=p})),e.innerFrom(i).subscribe(n.createOperatorSubscriber(a,function(){if(c){c=!1;var p=u;u=null,a.next(p)}},r.noop))})}return _s.sample=o,_s}var gs={},ys={},LS;function Dj(){if(LS)return ys;LS=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.interval=void 0;var e=mt(),t=bn();function r(n,o){return n===void 0&&(n=0),o===void 0&&(o=e.asyncScheduler),n<0&&(n=0),t.timer(n,n,o)}return ys.interval=r,ys}var US;function Lj(){if(US)return gs;US=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.sampleTime=void 0;var e=mt(),t=Gg(),r=Dj();function n(o,i){return i===void 0&&(i=e.asyncScheduler),t.sample(r.interval(o,i))}return gs.sampleTime=n,gs}var bs={},zS;function Uj(){if(zS)return bs;zS=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.scan=void 0;var e=ce(),t=UC();function r(n,o){return e.operate(t.scanInternals(n,o,arguments.length>=2,!0))}return bs.scan=r,bs}var Es={},BS;function zj(){if(BS)return Es;BS=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.sequenceEqual=void 0;var e=ce(),t=pe(),r=we();function n(i,s){return s===void 0&&(s=function(a,c){return a===c}),e.operate(function(a,c){var u=o(),p=o(),l=function(f){c.next(f),c.complete()},d=function(f,h){var m=t.createOperatorSubscriber(c,function(v){var _=h.buffer,g=h.complete;_.length===0?g?l(!1):f.buffer.push(v):!s(v,_.shift())&&l(!1)},function(){f.complete=!0;var v=h.complete,_=h.buffer;v&&l(_.length===0),m?.unsubscribe()});return m};a.subscribe(d(u,p)),r.innerFrom(i).subscribe(d(p,u))})}Es.sequenceEqual=n;function o(){return{buffer:[],complete:!1}}return Es}var Zt={},HS;function Wg(){if(HS)return Zt;HS=1;var e=Zt&&Zt.__read||function(c,u){var p=typeof Symbol=="function"&&c[Symbol.iterator];if(!p)return c;var l=p.call(c),d,f=[],h;try{for(;(u===void 0||u-- >0)&&!(d=l.next()).done;)f.push(d.value)}catch(m){h={error:m}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(h)throw h.error}}return f},t=Zt&&Zt.__spreadArray||function(c,u){for(var p=0,l=u.length,d=c.length;p<l;p++,d++)c[d]=u[p];return c};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.share=void 0;var r=we(),n=at(),o=Pl(),i=ce();function s(c){c===void 0&&(c={});var u=c.connector,p=u===void 0?function(){return new n.Subject}:u,l=c.resetOnError,d=l===void 0?!0:l,f=c.resetOnComplete,h=f===void 0?!0:f,m=c.resetOnRefCountZero,v=m===void 0?!0:m;return function(_){var g,y,b,E=0,x=!1,O=!1,S=function(){y?.unsubscribe(),y=void 0},w=function(){S(),g=b=void 0,x=O=!1},A=function(){var T=g;w(),T?.unsubscribe()};return i.operate(function(T,P){E++,!O&&!x&&S();var N=b=b??p();P.add(function(){E--,E===0&&!O&&!x&&(y=a(A,v))}),N.subscribe(P),!g&&E>0&&(g=new o.SafeSubscriber({next:function(D){return N.next(D)},error:function(D){O=!0,S(),y=a(w,d,D),N.error(D)},complete:function(){x=!0,S(),y=a(w,h),N.complete()}}),r.innerFrom(T).subscribe(g))})(_)}}Zt.share=s;function a(c,u){for(var p=[],l=2;l<arguments.length;l++)p[l-2]=arguments[l];if(u===!0){c();return}if(u!==!1){var d=new o.SafeSubscriber({next:function(){d.unsubscribe(),c()}});return r.innerFrom(u.apply(void 0,t([],e(p)))).subscribe(d)}}return Zt}var xs={},VS;function Bj(){if(VS)return xs;VS=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.shareReplay=void 0;var e=Hg(),t=Wg();function r(n,o,i){var s,a,c,u,p=!1;return n&&typeof n=="object"?(s=n.bufferSize,u=s===void 0?1/0:s,a=n.windowTime,o=a===void 0?1/0:a,c=n.refCount,p=c===void 0?!1:c,i=n.scheduler):u=n??1/0,t.share({connector:function(){return new e.ReplaySubject(u,o,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:p})}return xs.shareReplay=r,xs}var Os={},ws={},GS;function Hj(){if(GS)return ws;GS=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.SequenceError=void 0;var e=yn();return ws.SequenceError=e.createErrorClass(function(t){return function(n){t(this),this.name="SequenceError",this.message=n}}),ws}var Ss={},WS;function Vj(){if(WS)return Ss;WS=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.NotFoundError=void 0;var e=yn();return Ss.NotFoundError=e.createErrorClass(function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}}),Ss}var ZS;function Gj(){if(ZS)return Os;ZS=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.single=void 0;var e=xn(),t=Hj(),r=Vj(),n=ce(),o=pe();function i(s){return n.operate(function(a,c){var u=!1,p,l=!1,d=0;a.subscribe(o.createOperatorSubscriber(c,function(f){l=!0,(!s||s(f,d++,a))&&(u&&c.error(new t.SequenceError("Too many matching values")),u=!0,p=f)},function(){u?(c.next(p),c.complete()):c.error(l?new r.NotFoundError("No matching values"):new e.EmptyError)}))})}return Os.single=i,Os}var Ts={},KS;function Wj(){if(KS)return Ts;KS=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.skip=void 0;var e=pr();function t(r){return e.filter(function(n,o){return r<=o})}return Ts.skip=t,Ts}var Ps={},YS;function Zj(){if(YS)return Ps;YS=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.skipLast=void 0;var e=it(),t=ce(),r=pe();function n(o){return o<=0?e.identity:t.operate(function(i,s){var a=new Array(o),c=0;return i.subscribe(r.createOperatorSubscriber(s,function(u){var p=c++;if(p<o)a[p]=u;else{var l=p%o,d=a[l];a[l]=u,s.next(d)}})),function(){a=null}})}return Ps.skipLast=n,Ps}var As={},XS;function Kj(){if(XS)return As;XS=1,Object.defineProperty(As,"__esModule",{value:!0}),As.skipUntil=void 0;var e=ce(),t=pe(),r=we(),n=nt();function o(i){return e.operate(function(s,a){var c=!1,u=t.createOperatorSubscriber(a,function(){u?.unsubscribe(),c=!0},n.noop);r.innerFrom(i).subscribe(u),s.subscribe(t.createOperatorSubscriber(a,function(p){return c&&a.next(p)}))})}return As.skipUntil=o,As}var Rs={},JS;function Yj(){if(JS)return Rs;JS=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.skipWhile=void 0;var e=ce(),t=pe();function r(n){return e.operate(function(o,i){var s=!1,a=0;o.subscribe(t.createOperatorSubscriber(i,function(c){return(s||(s=!n(c,a++)))&&i.next(c)}))})}return Rs.skipWhile=r,Rs}var Ms={},QS;function Xj(){if(QS)return Ms;QS=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.startWith=void 0;var e=Tp(),t=_t(),r=ce();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=t.popScheduler(o);return r.operate(function(a,c){(s?e.concat(o,a,s):e.concat(o,a)).subscribe(c)})}return Ms.startWith=n,Ms}var Is={},Cs={},$S;function Fl(){if($S)return Cs;$S=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.switchMap=void 0;var e=we(),t=ce(),r=pe();function n(o,i){return t.operate(function(s,a){var c=null,u=0,p=!1,l=function(){return p&&!c&&a.complete()};s.subscribe(r.createOperatorSubscriber(a,function(d){c?.unsubscribe();var f=0,h=u++;e.innerFrom(o(d,h)).subscribe(c=r.createOperatorSubscriber(a,function(m){return a.next(i?i(d,m,h,f++):m)},function(){c=null,l()}))},function(){p=!0,l()}))})}return Cs.switchMap=n,Cs}var e0;function Jj(){if(e0)return Is;e0=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.switchAll=void 0;var e=Fl(),t=it();function r(){return e.switchMap(t.identity)}return Is.switchAll=r,Is}var js={},t0;function Qj(){if(t0)return js;t0=1,Object.defineProperty(js,"__esModule",{value:!0}),js.switchMapTo=void 0;var e=Fl(),t=qe();function r(n,o){return t.isFunction(o)?e.switchMap(function(){return n},o):e.switchMap(function(){return n})}return js.switchMapTo=r,js}var qs={},r0;function $j(){if(r0)return qs;r0=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.switchScan=void 0;var e=Fl(),t=ce();function r(n,o){return t.operate(function(i,s){var a=o;return e.switchMap(function(c,u){return n(a,c,u)},function(c,u){return a=u,u})(i).subscribe(s),function(){a=null}})}return qs.switchScan=r,qs}var Ns={},n0;function eq(){if(n0)return Ns;n0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.takeUntil=void 0;var e=ce(),t=pe(),r=we(),n=nt();function o(i){return e.operate(function(s,a){r.innerFrom(i).subscribe(t.createOperatorSubscriber(a,function(){return a.complete()},n.noop)),!a.closed&&s.subscribe(a)})}return Ns.takeUntil=o,Ns}var Fs={},i0;function tq(){if(i0)return Fs;i0=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.takeWhile=void 0;var e=ce(),t=pe();function r(n,o){return o===void 0&&(o=!1),e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){var u=n(c,a++);(u||o)&&s.next(c),!u&&s.complete()}))})}return Fs.takeWhile=r,Fs}var ks={},a0;function rq(){if(a0)return ks;a0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.tap=void 0;var e=qe(),t=ce(),r=pe(),n=it();function o(i,s,a){var c=e.isFunction(i)||s||a?{next:i,error:s,complete:a}:i;return c?t.operate(function(u,p){var l;(l=c.subscribe)===null||l===void 0||l.call(c);var d=!0;u.subscribe(r.createOperatorSubscriber(p,function(f){var h;(h=c.next)===null||h===void 0||h.call(c,f),p.next(f)},function(){var f;d=!1,(f=c.complete)===null||f===void 0||f.call(c),p.complete()},function(f){var h;d=!1,(h=c.error)===null||h===void 0||h.call(c,f),p.error(f)},function(){var f,h;d&&((f=c.unsubscribe)===null||f===void 0||f.call(c)),(h=c.finalize)===null||h===void 0||h.call(c)}))}):n.identity}return ks.tap=o,ks}var Ds={},o0;function Zg(){if(o0)return Ds;o0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.throttle=void 0;var e=ce(),t=pe(),r=we();function n(o,i){return e.operate(function(s,a){var c=i??{},u=c.leading,p=u===void 0?!0:u,l=c.trailing,d=l===void 0?!1:l,f=!1,h=null,m=null,v=!1,_=function(){m?.unsubscribe(),m=null,d&&(b(),v&&a.complete())},g=function(){m=null,v&&a.complete()},y=function(E){return m=r.innerFrom(o(E)).subscribe(t.createOperatorSubscriber(a,_,g))},b=function(){if(f){f=!1;var E=h;h=null,a.next(E),!v&&y(E)}};s.subscribe(t.createOperatorSubscriber(a,function(E){f=!0,h=E,!(m&&!m.closed)&&(p?b():y(E))},function(){v=!0,!(d&&f&&m&&!m.closed)&&a.complete()}))})}return Ds.throttle=n,Ds}var Ls={},s0;function nq(){if(s0)return Ls;s0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.throttleTime=void 0;var e=mt(),t=Zg(),r=bn();function n(o,i,s){i===void 0&&(i=e.asyncScheduler);var a=r.timer(o,i);return t.throttle(function(){return a},s)}return Ls.throttleTime=n,Ls}var Br={},c0;function iq(){if(c0)return Br;c0=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.TimeInterval=Br.timeInterval=void 0;var e=mt(),t=ce(),r=pe();function n(i){return i===void 0&&(i=e.asyncScheduler),t.operate(function(s,a){var c=i.now();s.subscribe(r.createOperatorSubscriber(a,function(u){var p=i.now(),l=p-c;c=p,a.next(new o(u,l))}))})}Br.timeInterval=n;var o=(function(){function i(s,a){this.value=s,this.interval=a}return i})();return Br.TimeInterval=o,Br}var ev={},u0;function ap(){return u0||(u0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var t=mt(),r=Sg(),n=ce(),o=we(),i=yn(),s=pe(),a=ur();e.TimeoutError=i.createErrorClass(function(p){return function(d){d===void 0&&(d=null),p(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=d}});function c(p,l){var d=r.isValidDate(p)?{first:p}:typeof p=="number"?{each:p}:p,f=d.first,h=d.each,m=d.with,v=m===void 0?u:m,_=d.scheduler,g=_===void 0?l??t.asyncScheduler:_,y=d.meta,b=y===void 0?null:y;if(f==null&&h==null)throw new TypeError("No timeout provided.");return n.operate(function(E,x){var O,S,w=null,A=0,T=function(P){S=a.executeSchedule(x,g,function(){try{O.unsubscribe(),o.innerFrom(v({meta:b,lastValue:w,seen:A})).subscribe(x)}catch(N){x.error(N)}},P)};O=E.subscribe(s.createOperatorSubscriber(x,function(P){S?.unsubscribe(),A++,x.next(w=P),h>0&&T(h)},void 0,void 0,function(){S?.closed||S?.unsubscribe(),w=null})),!A&&T(f!=null?typeof f=="number"?f:+f-g.now():h)})}e.timeout=c;function u(p){throw new e.TimeoutError(p)}})(ev)),ev}var Us={},l0;function aq(){if(l0)return Us;l0=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.timeoutWith=void 0;var e=mt(),t=Sg(),r=ap();function n(o,i,s){var a,c,u;if(s=s??e.async,t.isValidDate(o)?a=o:typeof o=="number"&&(c=o),i)u=function(){return i};else throw new TypeError("No observable provided to switch to");if(a==null&&c==null)throw new TypeError("No timeout provided.");return r.timeout({first:a,each:c,scheduler:s,with:u})}return Us.timeoutWith=n,Us}var zs={},d0;function oq(){if(d0)return zs;d0=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.timestamp=void 0;var e=wg(),t=dr();function r(n){return n===void 0&&(n=e.dateTimestampProvider),t.map(function(o){return{value:o,timestamp:n.now()}})}return zs.timestamp=r,zs}var Bs={},p0;function sq(){if(p0)return Bs;p0=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.window=void 0;var e=at(),t=ce(),r=pe(),n=nt(),o=we();function i(s){return t.operate(function(a,c){var u=new e.Subject;c.next(u.asObservable());var p=function(l){u.error(l),c.error(l)};return a.subscribe(r.createOperatorSubscriber(c,function(l){return u?.next(l)},function(){u.complete(),c.complete()},p)),o.innerFrom(s).subscribe(r.createOperatorSubscriber(c,function(){u.complete(),c.next(u=new e.Subject)},n.noop,p)),function(){u?.unsubscribe(),u=null}})}return Bs.window=i,Bs}var Hr={},f0;function cq(){if(f0)return Hr;f0=1;var e=Hr&&Hr.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&i[s],c=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.windowCount=void 0;var t=at(),r=ce(),n=pe();function o(i,s){s===void 0&&(s=0);var a=s>0?s:i;return r.operate(function(c,u){var p=[new t.Subject],l=0;u.next(p[0].asObservable()),c.subscribe(n.createOperatorSubscriber(u,function(d){var f,h;try{for(var m=e(p),v=m.next();!v.done;v=m.next()){var _=v.value;_.next(d)}}catch(b){f={error:b}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(f)throw f.error}}var g=l-i+1;if(g>=0&&g%a===0&&p.shift().complete(),++l%a===0){var y=new t.Subject;p.push(y),u.next(y.asObservable())}},function(){for(;p.length>0;)p.shift().complete();u.complete()},function(d){for(;p.length>0;)p.shift().error(d);u.error(d)},function(){p=null}))})}return Hr.windowCount=o,Hr}var Hs={},h0;function uq(){if(h0)return Hs;h0=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.windowTime=void 0;var e=at(),t=mt(),r=bt(),n=ce(),o=pe(),i=cr(),s=_t(),a=ur();function c(u){for(var p,l,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=(p=s.popScheduler(d))!==null&&p!==void 0?p:t.asyncScheduler,m=(l=d[0])!==null&&l!==void 0?l:null,v=d[1]||1/0;return n.operate(function(_,g){var y=[],b=!1,E=function(w){var A=w.window,T=w.subs;A.complete(),T.unsubscribe(),i.arrRemove(y,w),b&&x()},x=function(){if(y){var w=new r.Subscription;g.add(w);var A=new e.Subject,T={window:A,subs:w,seen:0};y.push(T),g.next(A.asObservable()),a.executeSchedule(w,h,function(){return E(T)},u)}};m!==null&&m>=0?a.executeSchedule(g,h,x,m,!0):b=!0,x();var O=function(w){return y.slice().forEach(w)},S=function(w){O(function(A){var T=A.window;return w(T)}),w(g),g.unsubscribe()};return _.subscribe(o.createOperatorSubscriber(g,function(w){O(function(A){A.window.next(w),v<=++A.seen&&E(A)})},function(){return S(function(w){return w.complete()})},function(w){return S(function(A){return A.error(w)})})),function(){y=null}})}return Hs.windowTime=c,Hs}var Vr={},v0;function lq(){if(v0)return Vr;v0=1;var e=Vr&&Vr.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.windowToggle=void 0;var t=at(),r=bt(),n=ce(),o=we(),i=pe(),s=nt(),a=cr();function c(u,p){return n.operate(function(l,d){var f=[],h=function(m){for(;0<f.length;)f.shift().error(m);d.error(m)};o.innerFrom(u).subscribe(i.createOperatorSubscriber(d,function(m){var v=new t.Subject;f.push(v);var _=new r.Subscription,g=function(){a.arrRemove(f,v),v.complete(),_.unsubscribe()},y;try{y=o.innerFrom(p(m))}catch(b){h(b);return}d.next(v.asObservable()),_.add(y.subscribe(i.createOperatorSubscriber(d,g,s.noop,h)))},s.noop)),l.subscribe(i.createOperatorSubscriber(d,function(m){var v,_,g=f.slice();try{for(var y=e(g),b=y.next();!b.done;b=y.next()){var E=b.value;E.next(m)}}catch(x){v={error:x}}finally{try{b&&!b.done&&(_=y.return)&&_.call(y)}finally{if(v)throw v.error}}},function(){for(;0<f.length;)f.shift().complete();d.complete()},h,function(){for(;0<f.length;)f.shift().unsubscribe()}))})}return Vr.windowToggle=c,Vr}var Vs={},m0;function dq(){if(m0)return Vs;m0=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.windowWhen=void 0;var e=at(),t=ce(),r=pe(),n=we();function o(i){return t.operate(function(s,a){var c,u,p=function(d){c.error(d),a.error(d)},l=function(){u?.unsubscribe(),c?.complete(),c=new e.Subject,a.next(c.asObservable());var d;try{d=n.innerFrom(i())}catch(f){p(f);return}d.subscribe(u=r.createOperatorSubscriber(a,l,l,p))};l(),s.subscribe(r.createOperatorSubscriber(a,function(d){return c.next(d)},function(){c.complete(),a.complete()},p,function(){u?.unsubscribe(),c=null}))})}return Vs.windowWhen=o,Vs}var Kt={},_0;function pq(){if(_0)return Kt;_0=1;var e=Kt&&Kt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Kt&&Kt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.withLatestFrom=void 0;var r=ce(),n=pe(),o=we(),i=it(),s=nt(),a=_t();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=a.popResultSelector(u);return r.operate(function(d,f){for(var h=u.length,m=new Array(h),v=u.map(function(){return!1}),_=!1,g=function(b){o.innerFrom(u[b]).subscribe(n.createOperatorSubscriber(f,function(E){m[b]=E,!_&&!v[b]&&(v[b]=!0,(_=v.every(i.identity))&&(v=null))},s.noop))},y=0;y<h;y++)g(y);d.subscribe(n.createOperatorSubscriber(f,function(b){if(_){var E=t([b],e(m));f.next(l?l.apply(void 0,t([],e(E))):E)}}))})}return Kt.withLatestFrom=c,Kt}var Yt={},Xt={},g0;function Kg(){if(g0)return Xt;g0=1;var e=Xt&&Xt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Xt&&Xt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.zip=void 0;var r=Fe(),n=we(),o=hi(),i=It(),s=pe(),a=_t();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=a.popResultSelector(u),d=o.argsOrArgArray(u);return d.length?new r.Observable(function(f){var h=d.map(function(){return[]}),m=d.map(function(){return!1});f.add(function(){h=m=null});for(var v=function(g){n.innerFrom(d[g]).subscribe(s.createOperatorSubscriber(f,function(y){if(h[g].push(y),h.every(function(E){return E.length})){var b=h.map(function(E){return E.shift()});f.next(l?l.apply(void 0,t([],e(b))):b),h.some(function(E,x){return!E.length&&m[x]})&&f.complete()}},function(){m[g]=!0,!h[g].length&&f.complete()}))},_=0;!f.closed&&_<d.length;_++)v(_);return function(){h=m=null}}):i.EMPTY}return Xt.zip=c,Xt}var y0;function fq(){if(y0)return Yt;y0=1;var e=Yt&&Yt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Yt&&Yt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.zip=void 0;var r=Kg(),n=ce();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return n.operate(function(a,c){r.zip.apply(void 0,t([a],e(i))).subscribe(c)})}return Yt.zip=o,Yt}var Gs={},b0;function hq(){if(b0)return Gs;b0=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.zipAll=void 0;var e=Kg(),t=zC();function r(n){return t.joinAllInternals(e.zip,n)}return Gs.zipAll=r,Gs}var Jt={},E0;function vq(){if(E0)return Jt;E0=1;var e=Jt&&Jt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=Jt&&Jt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.zipWith=void 0;var r=fq();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.zip.apply(void 0,t([],e(o)))}return Jt.zipWith=n,Jt}var x0;function Yg(){return x0||(x0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=e.merge=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.concat=e.combineLatestWith=e.combineLatest=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=void 0,e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.race=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.partition=e.pairwise=e.onErrorResumeNext=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=void 0,e.zipWith=e.zipAll=e.zip=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=void 0;var t=Og();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return t.audit}});var r=AC();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return r.auditTime}});var n=RC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return n.buffer}});var o=MC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return o.bufferCount}});var i=IC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return i.bufferTime}});var s=CC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return s.bufferToggle}});var a=jC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return a.bufferWhen}});var c=qC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return c.catchError}});var u=BC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return u.combineAll}});var p=Rg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var l=HC();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return l.combineLatest}});var d=VC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return d.combineLatestWith}});var f=GC();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return f.concat}});var h=wp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return h.concatAll}});var m=Mg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return m.concatMap}});var v=WC();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var _=ZC();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return _.concatWith}});var g=Sp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return g.connect}});var y=YC();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return y.count}});var b=XC();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return b.debounce}});var E=JC();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return E.debounceTime}});var x=jl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return x.defaultIfEmpty}});var O=QC();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return O.delay}});var S=jg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return S.delayWhen}});var w=ej();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return w.dematerialize}});var A=tj();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return A.distinct}});var T=Fg();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return T.distinctUntilChanged}});var P=rj();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return P.distinctUntilKeyChanged}});var N=ij();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return N.elementAt}});var D=aj();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return D.endWith}});var V=oj();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return V.every}});var F=sj();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return F.exhaust}});var k=Dg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return k.exhaustAll}});var Z=kg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Z.exhaustMap}});var J=cj();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return J.expand}});var U=pr();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return U.filter}});var $=uj();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return $.finalize}});var C=Lg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return C.find}});var q=lj();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return q.findIndex}});var L=dj();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return L.first}});var B=pj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return B.groupBy}});var M=Ig();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return M.ignoreElements}});var j=fj();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return j.isEmpty}});var z=hj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return z.last}});var Y=dr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Y.map}});var te=Cg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return te.mapTo}});var R=vj();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return R.materialize}});var I=mj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return I.max}});var W=_j();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return W.merge}});var Q=Cl();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return Q.mergeAll}});var oe=gj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return oe.flatMap}});var ee=rr();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var le=yj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return le.mergeMapTo}});var _e=bj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return _e.mergeScan}});var be=Ej();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return be.mergeWith}});var Te=xj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Te.min}});var Re=Ap();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return Re.multicast}});var Ee=Ml();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return Ee.observeOn}});var Pe=wj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Pe.onErrorResumeNext}});var me=Sj();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return me.pairwise}});var Ne=PU();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Ne.partition}});var Ke=Pj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Ke.pluck}});var ye=Aj();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return ye.publish}});var Ge=Mj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Ge.publishBehavior}});var Oi=Ij();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return Oi.publishLast}});var wi=Cj();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return wi.publishReplay}});var gr=AU();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return gr.race}});var H=Vg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return H.raceWith}});var G=fi();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return G.reduce}});var K=qj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return K.repeat}});var re=Nj();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return re.repeatWhen}});var fe=Fj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return fe.retry}});var Be=kj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Be.retryWhen}});var Ue=zg();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return Ue.refCount}});var Oe=Gg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return Oe.sample}});var ie=Lj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return ie.sampleTime}});var se=Uj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return se.scan}});var ue=zj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return ue.sequenceEqual}});var de=Wg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return de.share}});var Se=Bj();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Se.shareReplay}});var Me=Gj();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return Me.single}});var ke=Wj();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return ke.skip}});var st=Zj();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return st.skipLast}});var Rn=Kj();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Rn.skipUntil}});var Si=Yj();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Si.skipWhile}});var Ti=Xj();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Ti.startWith}});var Wp=Il();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Wp.subscribeOn}});var Zp=Jj();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Zp.switchAll}});var Kp=Fl();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Kp.switchMap}});var Yp=Qj();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return Yp.switchMapTo}});var Xp=$j();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Xp.switchScan}});var Jp=ql();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Jp.take}});var Qp=Ug();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return Qp.takeLast}});var $p=eq();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return $p.takeUntil}});var ef=tq();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return ef.takeWhile}});var tf=rq();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return tf.tap}});var rf=Zg();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return rf.throttle}});var nf=nq();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return nf.throttleTime}});var af=Nl();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return af.throwIfEmpty}});var of=iq();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return of.timeInterval}});var sf=ap();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return sf.timeout}});var cf=aq();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return cf.timeoutWith}});var uf=oq();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return uf.timestamp}});var lf=Ag();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return lf.toArray}});var df=sq();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return df.window}});var pf=cq();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return pf.windowCount}});var ff=uq();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return ff.windowTime}});var hf=lq();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return hf.windowToggle}});var vf=dq();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return vf.windowWhen}});var mf=pq();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return mf.withLatestFrom}});var _f=fq();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return _f.zip}});var gf=hq();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return gf.zipAll}});var yf=vq();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return yf.zipWith}})})(Yh)),Yh}var Ws={},O0;function mq(){return O0||(O0=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.CLASS_SERIALIZER_OPTIONS=void 0,Ws.CLASS_SERIALIZER_OPTIONS="class_serializer:options"),Ws}var w0;function RU(){if(w0)return Zn;w0=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ClassSerializerInterceptor=void 0;const e=ae(),t=Yg(),r=ar(),n=lC(),o=Sl(),i=ne(),s=mq();let a={};const c="Reflector";let u=class{constructor(l,d={}){this.reflector=l,this.defaultOptions=d,a=d?.transformerPackage??(0,o.loadPackage)("class-transformer","ClassSerializerInterceptor",()=>mC),d?.transformerPackage}intercept(l,d){const f=this.getContextOptions(l),h={...this.defaultOptions,...f};return d.handle().pipe((0,t.map)(m=>this.serialize(m,h)))}serialize(l,d){return!(0,i.isObject)(l)||l instanceof n.StreamableFile?l:Array.isArray(l)?l.map(f=>this.transformToPlain(f,d)):this.transformToPlain(l,d)}transformToPlain(l,d){if(!l)return l;if(!d.type||l instanceof d.type)return a.classToPlain(l,d);const f=a.plainToInstance(d.type,l,d);return a.classToPlain(f,d)}getContextOptions(l){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[l.getHandler(),l.getClass()])}};return Zn.ClassSerializerInterceptor=u,Zn.ClassSerializerInterceptor=u=e.__decorate([(0,r.Injectable)(),e.__param(0,(0,r.Inject)(c)),e.__param(1,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],u),Zn}var tv={},Zs={},S0;function MU(){if(S0)return Zs;S0=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.SerializeOptions=void 0;const e=vg(),t=mq(),r=n=>(0,e.SetMetadata)(t.CLASS_SERIALIZER_OPTIONS,n);return Zs.SerializeOptions=r,Zs}var T0;function IU(){return T0||(T0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(MU(),e)})(tv)),tv}var rv={},P0;function CU(){return P0||(P0=1,Object.defineProperty(rv,"__esModule",{value:!0})),rv}var A0;function jU(){return A0||(A0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(RU(),e),t.__exportStar(IU(),e),t.__exportStar(CU(),e)})(Kh)),Kh}var nv={},Ks={},R0;function qU(){if(R0)return Ks;R0=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.forwardRef=void 0;const e=t=>({forwardRef:t});return Ks.forwardRef=e,Ks}var M0;function NU(){return M0||(M0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(qU(),e)})(nv)),nv}var I0;function ve(){return I0||(I0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;const t=ae();hg(),t.__exportStar(vg(),e),t.__exportStar(wl(),e),t.__exportStar(mg(),e),t.__exportStar(lC(),e);var r=bp();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"VERSION_NEUTRAL",{enumerable:!0,get:function(){return r.VERSION_NEUTRAL}}),t.__exportStar(ZL(),e),t.__exportStar(gU(),e),t.__exportStar(jU(),e),t.__exportStar(uC(),e),t.__exportStar(NU(),e)})(Of)),Of}var pt={},Rt={exports:{}};const FU="17.2.3",kU={version:FU};var C0;function _q(){if(C0)return Rt.exports;C0=1;const e=ci,t=er,r=vp,n=ui,i=kU.version,s=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","📡 add observability to secrets: https://dotenvx.com/ops","👥 sync secrets across teammates & machines: https://dotenvx.com/ops","🗂️ backup and recover secrets: https://dotenvx.com/ops","✅ audit secrets and track compliance: https://dotenvx.com/ops","🔄 add secrets lifecycle management: https://dotenvx.com/ops","🔑 add access controls to secrets: https://dotenvx.com/ops","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function a(){return s[Math.floor(Math.random()*s.length)]}function c(T){return typeof T=="string"?!["false","0","no","off",""].includes(T.toLowerCase()):!!T}function u(){return process.stdout.isTTY}function p(T){return u()?`\x1B[2m${T}\x1B[0m`:T}const l=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function d(T){const P={};let N=T.toString();N=N.replace(/\r\n?/mg,`
|
|
9
|
-
`);let D;for(;(D=l.exec(
|
|
10
|
-
`),F=F.replace(/\\r/g,"\r")),P[V]=F}return P}function f(T){T=T||{};const P=y(T);T.path=P;const N=A.configDotenv(T);if(!N.parsed){const k=new Error(`MISSING_DATA: Cannot parse ${P} for an unknown reason`);throw k.code="MISSING_DATA",k}const D=_(T).split(","),V=D.length;let F;for(let k=0;k<V;k++)try{const Z=D[k].trim(),J=g(N,Z);F=A.decrypt(J.ciphertext,J.key);break}catch(Z){if(k+1>=V)throw Z}return A.parse(F)}function h(T){console.error(`[dotenv@${i}][WARN] ${T}`)}function m(T){console.log(`[dotenv@${i}][DEBUG] ${T}`)}function v(T){console.log(`[dotenv@${i}] ${T}`)}function _(T){return T&&T.DOTENV_KEY&&T.DOTENV_KEY.length>0?T.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function g(T,P){let N;try{N=new URL(P)}catch(Z){if(Z.code==="ERR_INVALID_URL"){const J=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw J.code="INVALID_DOTENV_KEY",J}throw Z}const D=N.password;if(!D){const Z=new Error("INVALID_DOTENV_KEY: Missing key part");throw Z.code="INVALID_DOTENV_KEY",Z}const V=N.searchParams.get("environment");if(!V){const Z=new Error("INVALID_DOTENV_KEY: Missing environment part");throw Z.code="INVALID_DOTENV_KEY",Z}const F=`DOTENV_VAULT_${V.toUpperCase()}`,k=T.parsed[F];if(!k){const Z=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${F} in your .env.vault file.`);throw Z.code="NOT_FOUND_DOTENV_ENVIRONMENT",Z}return{ciphertext:k,key:D}}function y(T){let P=null;if(T&&T.path&&T.path.length>0)if(Array.isArray(T.path))for(const N of T.path)e.existsSync(N)&&(P=N.endsWith(".vault")?N:`${N}.vault`);else P=T.path.endsWith(".vault")?T.path:`${T.path}.vault`;else P=t.resolve(process.cwd(),".env.vault");return e.existsSync(P)?P:null}function b(T){return T[0]==="~"?t.join(r.homedir(),T.slice(1)):T}function E(T){const P=c(process.env.DOTENV_CONFIG_DEBUG||T&&T.debug),N=c(process.env.DOTENV_CONFIG_QUIET||T&&T.quiet);(P||!N)&&v("Loading env from encrypted .env.vault");const D=A._parseVault(T);let V=process.env;return T&&T.processEnv!=null&&(V=T.processEnv),A.populate(V,D,T),{parsed:D}}function x(T){const P=t.resolve(process.cwd(),".env");let N="utf8",D=process.env;T&&T.processEnv!=null&&(D=T.processEnv);let V=c(D.DOTENV_CONFIG_DEBUG||T&&T.debug),F=c(D.DOTENV_CONFIG_QUIET||T&&T.quiet);T&&T.encoding?N=T.encoding:V&&m("No encoding is specified. UTF-8 is used by default");let k=[P];if(T&&T.path)if(!Array.isArray(T.path))k=[b(T.path)];else{k=[];for(const $ of T.path)k.push(b($))}let Z;const J={};for(const $ of k)try{const C=A.parse(e.readFileSync($,{encoding:N}));A.populate(J,C,T)}catch(C){V&&m(`Failed to load ${$} ${C.message}`),Z=C}const U=A.populate(D,J,T);if(V=c(D.DOTENV_CONFIG_DEBUG||V),F=c(D.DOTENV_CONFIG_QUIET||F),V||!F){const $=Object.keys(U).length,C=[];for(const q of k)try{const L=t.relative(process.cwd(),q);C.push(L)}catch(L){V&&m(`Failed to load ${q} ${L.message}`),Z=L}v(`injecting env (${$}) from ${C.join(",")} ${p(`-- tip: ${a()}`)}`)}return Z?{parsed:J,error:Z}:{parsed:J}}function O(T){if(_(T).length===0)return A.configDotenv(T);const P=y(T);return P?A._configVault(T):(h(`You set DOTENV_KEY but you are missing a .env.vault file at ${P}. Did you forget to build it?`),A.configDotenv(T))}function S(T,P){const N=Buffer.from(P.slice(-64),"hex");let D=Buffer.from(T,"base64");const V=D.subarray(0,12),F=D.subarray(-16);D=D.subarray(12,-16);try{const k=n.createDecipheriv("aes-256-gcm",N,V);return k.setAuthTag(F),`${k.update(D)}${k.final()}`}catch(k){const Z=k instanceof RangeError,J=k.message==="Invalid key length",U=k.message==="Unsupported state or unable to authenticate data";if(Z||J){const $=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw $.code="INVALID_DOTENV_KEY",$}else if(U){const $=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw $.code="DECRYPTION_FAILED",$}else throw k}}function w(T,P,N={}){const D=!!(N&&N.debug),V=!!(N&&N.override),F={};if(typeof P!="object"){const k=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw k.code="OBJECT_REQUIRED",k}for(const k of Object.keys(P))Object.prototype.hasOwnProperty.call(T,k)?(V===!0&&(T[k]=P[k],F[k]=P[k]),D&&m(V===!0?`"${k}" is already defined and WAS overwritten`:`"${k}" is already defined and was NOT overwritten`)):(T[k]=P[k],F[k]=P[k]);return F}const A={configDotenv:x,_configVault:E,_parseVault:f,config:O,decrypt:S,parse:d,populate:w};return Rt.exports.configDotenv=A.configDotenv,Rt.exports._configVault=A._configVault,Rt.exports._parseVault=A._parseVault,Rt.exports.config=A.config,Rt.exports.decrypt=A.decrypt,Rt.exports.parse=A.parse,Rt.exports.populate=A.populate,Rt.exports=A,Rt.exports}var iv={},j0;function DU(){if(j0)return iv;j0=1;function e(n){return n.replace(/\\\$/g,"$")}function t(n,o,i){const s={...i,...o},a=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;let c=n,u;const p=new Set;for(;(u=a.exec(c))!==null;){p.add(c);const[l,d,f]=u,h=d||f,m=/(:\+|\+|:-|-)/,v=h.match(m),_=v?v[0]:null,g=h.split(_);let y,b;const E=g.shift();if([":+","+"].includes(_)?(y=s[E]?g.join(_):"",b=null):(y=g.join(_),b=s[E]),b?p.has(b)?c=c.replace(l,y):c=c.replace(l,b):c=c.replace(l,y),c===i[E])break;a.lastIndex=0}return c}function r(n){const o={};let i=process.env;n&&n.processEnv!=null&&(i=n.processEnv);for(const s in n.parsed){let a=n.parsed[s];i[s]&&i[s]!==a?a=i[s]:a=t(a,i,o),n.parsed[s]=e(a),o[s]=e(a)}for(const s in n.parsed)i[s]=n.parsed[s];return n}return iv.expand=r,iv}var ir={},Ye={},q0;function kl(){return q0||(q0=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.AS_PROVIDER_METHOD_KEY=Ye.VALIDATED_ENV_PROPNAME=Ye.PARTIAL_CONFIGURATION_PROPNAME=Ye.PARTIAL_CONFIGURATION_KEY=Ye.VALIDATED_ENV_LOADER=Ye.CONFIGURATION_LOADER=Ye.CONFIGURATION_TOKEN=Ye.CONFIGURATION_SERVICE_TOKEN=void 0,Ye.CONFIGURATION_SERVICE_TOKEN=Symbol("CONFIG_SERVICE"),Ye.CONFIGURATION_TOKEN="CONFIGURATION_TOKEN",Ye.CONFIGURATION_LOADER="CONFIGURATION_LOADER",Ye.VALIDATED_ENV_LOADER="VALIDATED_ENV_LOADER",Ye.PARTIAL_CONFIGURATION_KEY="PARTIAL_CONFIGURATION_KEY",Ye.PARTIAL_CONFIGURATION_PROPNAME="KEY",Ye.VALIDATED_ENV_PROPNAME="_PROCESS_ENV_VALIDATED",Ye.AS_PROVIDER_METHOD_KEY="asProvider"),Ye}var We={},av,N0;function Rp(){if(N0)return av;N0=1;var e=Array.isArray;return av=e,av}var ov,F0;function LU(){if(F0)return ov;F0=1;var e=typeof ft=="object"&&ft&&ft.Object===Object&&ft;return ov=e,ov}var sv,k0;function Xg(){if(k0)return sv;k0=1;var e=LU(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return sv=r,sv}var cv,D0;function Jg(){if(D0)return cv;D0=1;var e=Xg(),t=e.Symbol;return cv=t,cv}var uv,L0;function UU(){if(L0)return uv;L0=1;var e=Jg(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(s){var a=r.call(s,o),c=s[o];try{s[o]=void 0;var u=!0}catch{}var p=n.call(s);return u&&(a?s[o]=c:delete s[o]),p}return uv=i,uv}var lv,U0;function zU(){if(U0)return lv;U0=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return lv=r,lv}var dv,z0;function Qg(){if(z0)return dv;z0=1;var e=Jg(),t=UU(),r=zU(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?o:n:i&&i in Object(a)?t(a):r(a)}return dv=s,dv}var pv,B0;function $g(){if(B0)return pv;B0=1;function e(t){return t!=null&&typeof t=="object"}return pv=e,pv}var fv,H0;function ey(){if(H0)return fv;H0=1;var e=Qg(),t=$g(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return fv=n,fv}var hv,V0;function BU(){if(V0)return hv;V0=1;var e=Rp(),t=ey(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,s){if(e(i))return!1;var a=typeof i;return a=="number"||a=="symbol"||a=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||s!=null&&i in Object(s)}return hv=o,hv}var vv,G0;function ty(){if(G0)return vv;G0=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return vv=e,vv}var mv,W0;function HU(){if(W0)return mv;W0=1;var e=Qg(),t=ty(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function s(a){if(!t(a))return!1;var c=e(a);return c==n||c==o||c==r||c==i}return mv=s,mv}var _v,Z0;function VU(){if(Z0)return _v;Z0=1;var e=Xg(),t=e["__core-js_shared__"];return _v=t,_v}var gv,K0;function GU(){if(K0)return gv;K0=1;var e=VU(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return gv=r,gv}var yv,Y0;function WU(){if(Y0)return yv;Y0=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return yv=r,yv}var bv,X0;function ZU(){if(X0)return bv;X0=1;var e=HU(),t=GU(),r=ty(),n=WU(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,c=s.toString,u=a.hasOwnProperty,p=RegExp("^"+c.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var f=e(d)?p:i;return f.test(n(d))}return bv=l,bv}var Ev,J0;function KU(){if(J0)return Ev;J0=1;function e(t,r){return t?.[r]}return Ev=e,Ev}var xv,Q0;function ry(){if(Q0)return xv;Q0=1;var e=ZU(),t=KU();function r(n,o){var i=t(n,o);return e(i)?i:void 0}return xv=r,xv}var Ov,$0;function Mp(){if($0)return Ov;$0=1;var e=ry(),t=e(Object,"create");return Ov=t,Ov}var wv,e1;function YU(){if(e1)return wv;e1=1;var e=Mp();function t(){this.__data__=e?e(null):{},this.size=0}return wv=t,wv}var Sv,t1;function XU(){if(t1)return Sv;t1=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Sv=e,Sv}var Tv,r1;function JU(){if(r1)return Tv;r1=1;var e=Mp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(i){var s=this.__data__;if(e){var a=s[i];return a===t?void 0:a}return n.call(s,i)?s[i]:void 0}return Tv=o,Tv}var Pv,n1;function QU(){if(n1)return Pv;n1=1;var e=Mp(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var i=this.__data__;return e?i[o]!==void 0:r.call(i,o)}return Pv=n,Pv}var Av,i1;function $U(){if(i1)return Av;i1=1;var e=Mp(),t="__lodash_hash_undefined__";function r(n,o){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&o===void 0?t:o,this}return Av=r,Av}var Rv,a1;function ez(){if(a1)return Rv;a1=1;var e=YU(),t=XU(),r=JU(),n=QU(),o=$U();function i(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Rv=i,Rv}var Mv,o1;function tz(){if(o1)return Mv;o1=1;function e(){this.__data__=[],this.size=0}return Mv=e,Mv}var Iv,s1;function gq(){if(s1)return Iv;s1=1;function e(t,r){return t===r||t!==t&&r!==r}return Iv=e,Iv}var Cv,c1;function Ip(){if(c1)return Cv;c1=1;var e=gq();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Cv=t,Cv}var jv,u1;function rz(){if(u1)return jv;u1=1;var e=Ip(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():r.call(i,s,1),--this.size,!0}return jv=n,jv}var qv,l1;function nz(){if(l1)return qv;l1=1;var e=Ip();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return qv=t,qv}var Nv,d1;function iz(){if(d1)return Nv;d1=1;var e=Ip();function t(r){return e(this.__data__,r)>-1}return Nv=t,Nv}var Fv,p1;function az(){if(p1)return Fv;p1=1;var e=Ip();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return Fv=t,Fv}var kv,f1;function oz(){if(f1)return kv;f1=1;var e=tz(),t=rz(),r=nz(),n=iz(),o=az();function i(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,kv=i,kv}var Dv,h1;function sz(){if(h1)return Dv;h1=1;var e=ry(),t=Xg(),r=e(t,"Map");return Dv=r,Dv}var Lv,v1;function cz(){if(v1)return Lv;v1=1;var e=ez(),t=oz(),r=sz();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Lv=n,Lv}var Uv,m1;function uz(){if(m1)return Uv;m1=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Uv=e,Uv}var zv,_1;function Cp(){if(_1)return zv;_1=1;var e=uz();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return zv=t,zv}var Bv,g1;function lz(){if(g1)return Bv;g1=1;var e=Cp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Bv=t,Bv}var Hv,y1;function dz(){if(y1)return Hv;y1=1;var e=Cp();function t(r){return e(this,r).get(r)}return Hv=t,Hv}var Vv,b1;function pz(){if(b1)return Vv;b1=1;var e=Cp();function t(r){return e(this,r).has(r)}return Vv=t,Vv}var Gv,E1;function fz(){if(E1)return Gv;E1=1;var e=Cp();function t(r,n){var o=e(this,r),i=o.size;return o.set(r,n),this.size+=o.size==i?0:1,this}return Gv=t,Gv}var Wv,x1;function hz(){if(x1)return Wv;x1=1;var e=cz(),t=lz(),r=dz(),n=pz(),o=fz();function i(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Wv=i,Wv}var Zv,O1;function vz(){if(O1)return Zv;O1=1;var e=hz(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var s=arguments,a=o?o.apply(this,s):s[0],c=i.cache;if(c.has(a))return c.get(a);var u=n.apply(this,s);return i.cache=c.set(a,u)||c,u};return i.cache=new(r.Cache||e),i}return r.Cache=e,Zv=r,Zv}var Kv,w1;function mz(){if(w1)return Kv;w1=1;var e=vz(),t=500;function r(n){var o=e(n,function(s){return i.size===t&&i.clear(),s}),i=o.cache;return o}return Kv=r,Kv}var Yv,S1;function _z(){if(S1)return Yv;S1=1;var e=mz(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(s,a,c,u){i.push(c?u.replace(r,"$1"):a||s)}),i});return Yv=n,Yv}var Xv,T1;function gz(){if(T1)return Xv;T1=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n<o;)i[n]=r(t[n],n,t);return i}return Xv=e,Xv}var Jv,P1;function yz(){if(P1)return Jv;P1=1;var e=Jg(),t=gz(),r=Rp(),n=ey(),o=e?e.prototype:void 0,i=o?o.toString:void 0;function s(a){if(typeof a=="string")return a;if(r(a))return t(a,s)+"";if(n(a))return i?i.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return Jv=s,Jv}var Qv,A1;function bz(){if(A1)return Qv;A1=1;var e=yz();function t(r){return r==null?"":e(r)}return Qv=t,Qv}var $v,R1;function ny(){if(R1)return $v;R1=1;var e=Rp(),t=BU(),r=_z(),n=bz();function o(i,s){return e(i)?i:t(i,s)?[i]:r(n(i))}return $v=o,$v}var em,M1;function iy(){if(M1)return em;M1=1;var e=ey();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return em=t,em}var tm,I1;function Ez(){if(I1)return tm;I1=1;var e=ny(),t=iy();function r(n,o){o=e(o,n);for(var i=0,s=o.length;n!=null&&i<s;)n=n[t(o[i++])];return i&&i==s?n:void 0}return tm=r,tm}var rm,C1;function xz(){if(C1)return rm;C1=1;var e=Ez();function t(r,n,o){var i=r==null?void 0:e(r,n);return i===void 0?o:i}return rm=t,rm}var nm,j1;function Oz(){if(j1)return nm;j1=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,o){return n!=null&&t.call(n,o)}return nm=r,nm}var im,q1;function wz(){if(q1)return im;q1=1;var e=Qg(),t=$g(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return im=n,im}var am,N1;function Sz(){if(N1)return am;N1=1;var e=wz(),t=$g(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!o.call(s,"callee")};return am=i,am}var om,F1;function yq(){if(F1)return om;F1=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var i=typeof n;return o=o??e,!!o&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return om=r,om}var sm,k1;function Tz(){if(k1)return sm;k1=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return sm=t,sm}var cm,D1;function Pz(){if(D1)return cm;D1=1;var e=ny(),t=Sz(),r=Rp(),n=yq(),o=Tz(),i=iy();function s(a,c,u){c=e(c,a);for(var p=-1,l=c.length,d=!1;++p<l;){var f=i(c[p]);if(!(d=a!=null&&u(a,f)))break;a=a[f]}return d||++p!=l?d:(l=a==null?0:a.length,!!l&&o(l)&&n(f,l)&&(r(a)||t(a)))}return cm=s,cm}var um,L1;function Az(){if(L1)return um;L1=1;var e=Oz(),t=Pz();function r(n,o){return n!=null&&t(n,o,e)}return um=r,um}var lm,U1;function Rz(){if(U1)return lm;U1=1;var e=ry(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return lm=t,lm}var dm,z1;function Mz(){if(z1)return dm;z1=1;var e=Rz();function t(r,n,o){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[n]=o}return dm=t,dm}var pm,B1;function Iz(){if(B1)return pm;B1=1;var e=Mz(),t=gq(),r=Object.prototype,n=r.hasOwnProperty;function o(i,s,a){var c=i[s];(!(n.call(i,s)&&t(c,a))||a===void 0&&!(s in i))&&e(i,s,a)}return pm=o,pm}var fm,H1;function Cz(){if(H1)return fm;H1=1;var e=Iz(),t=ny(),r=yq(),n=ty(),o=iy();function i(s,a,c,u){if(!n(s))return s;a=t(a,s);for(var p=-1,l=a.length,d=l-1,f=s;f!=null&&++p<l;){var h=o(a[p]),m=c;if(h==="__proto__"||h==="constructor"||h==="prototype")return s;if(p!=d){var v=f[h];m=u?u(v,h,f):void 0,m===void 0&&(m=n(v)?v:r(a[p+1])?[]:{})}e(f,h,m),f=f[h]}return s}return fm=i,fm}var hm,V1;function bq(){if(V1)return hm;V1=1;var e=Cz();function t(r,n,o){return r==null?r:e(r,n,o)}return hm=t,hm}var Gr={},Ys={},vm={},G1;function jz(){return G1||(G1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}})(vm)),vm}var Wr={},W1;function Eq(){return W1||(W1=1,(function(e){var t=Wr&&Wr.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},r=Wr&&Wr.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var n=bt();e.animationFrameProvider={schedule:function(o){var i=requestAnimationFrame,s=cancelAnimationFrame,a=e.animationFrameProvider.delegate;a&&(i=a.requestAnimationFrame,s=a.cancelAnimationFrame);var c=i(function(u){s=void 0,o(u)});return new n.Subscription(function(){return s?.(c)})},requestAnimationFrame:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=e.animationFrameProvider.delegate;return(s?.requestAnimationFrame||requestAnimationFrame).apply(void 0,r([],t(o)))},cancelAnimationFrame:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=e.animationFrameProvider.delegate;return(s?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,r([],t(o)))},delegate:void 0}})(Wr)),Wr}var Z1;function qz(){if(Z1)return Ys;Z1=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.animationFrames=void 0;var e=Fe(),t=jz(),r=Eq();function n(s){return s?o(s):i}Ys.animationFrames=n;function o(s){return new e.Observable(function(a){var c=s||t.performanceTimestampProvider,u=c.now(),p=0,l=function(){a.closed||(p=r.animationFrameProvider.requestAnimationFrame(function(d){p=0;var f=c.now();a.next({timestamp:s?f:d,elapsed:f-u}),l()}))};return l(),function(){p&&r.animationFrameProvider.cancelAnimationFrame(p)}})}var i=o();return Ys}var mm={},Zr={},Kr={},Yr={},K1;function Nz(){if(K1)return Yr;K1=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.TestTools=Yr.Immediate=void 0;var e=1,t,r={};function n(o){return o in r?(delete r[o],!0):!1}return Yr.Immediate={setImmediate:function(o){var i=e++;return r[i]=!0,t||(t=Promise.resolve()),t.then(function(){return n(i)&&o()}),i},clearImmediate:function(o){n(o)}},Yr.TestTools={pending:function(){return Object.keys(r).length}},Yr}var Y1;function Fz(){return Y1||(Y1=1,(function(e){var t=Kr&&Kr.__read||function(s,a){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(a===void 0||a-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},r=Kr&&Kr.__spreadArray||function(s,a){for(var c=0,u=a.length,p=s.length;c<u;c++,p++)s[p]=a[c];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var n=Nz(),o=n.Immediate.setImmediate,i=n.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=e.immediateProvider.delegate;return(c?.setImmediate||o).apply(void 0,r([],t(s)))},clearImmediate:function(s){var a=e.immediateProvider.delegate;return(a?.clearImmediate||i)(s)},delegate:void 0}})(Kr)),Kr}var X1;function kz(){if(X1)return Zr;X1=1;var e=Zr&&Zr.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.AsapAction=void 0;var t=Al(),r=Fz(),n=(function(o){e(i,o);function i(s,a){var c=o.call(this,s,a)||this;return c.scheduler=s,c.work=a,c}return i.prototype.requestAsyncId=function(s,a,c){return c===void 0&&(c=0),c!==null&&c>0?o.prototype.requestAsyncId.call(this,s,a,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.immediateProvider.setImmediate(s.flush.bind(s,void 0))))},i.prototype.recycleAsyncId=function(s,a,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,s,a,c);var p=s.actions;a!=null&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==a&&(r.immediateProvider.clearImmediate(a),s._scheduled===a&&(s._scheduled=void 0))},i})(t.AsyncAction);return Zr.AsapAction=n,Zr}var Xr={},J1;function Dz(){if(J1)return Xr;J1=1;var e=Xr&&Xr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.AsapScheduler=void 0;var t=Rl(),r=(function(n){e(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o.prototype.flush=function(i){this._active=!0;var s=this._scheduled;this._scheduled=void 0;var a=this.actions,c;i=i||a.shift();do if(c=i.execute(i.state,i.delay))break;while((i=a[0])&&i.id===s&&a.shift());if(this._active=!1,c){for(;(i=a[0])&&i.id===s&&a.shift();)i.unsubscribe();throw c}},o})(t.AsyncScheduler);return Xr.AsapScheduler=r,Xr}var Q1;function Lz(){return Q1||(Q1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var t=kz(),r=Dz();e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})(mm)),mm}var _m={},Jr={},$1;function Uz(){if($1)return Jr;$1=1;var e=Jr&&Jr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.QueueAction=void 0;var t=Al(),r=(function(n){e(o,n);function o(i,s){var a=n.call(this,i,s)||this;return a.scheduler=i,a.work=s,a}return o.prototype.schedule=function(i,s){return s===void 0&&(s=0),s>0?n.prototype.schedule.call(this,i,s):(this.delay=s,this.state=i,this.scheduler.flush(this),this)},o.prototype.execute=function(i,s){return s>0||this.closed?n.prototype.execute.call(this,i,s):this._execute(i,s)},o.prototype.requestAsyncId=function(i,s,a){return a===void 0&&(a=0),a!=null&&a>0||a==null&&this.delay>0?n.prototype.requestAsyncId.call(this,i,s,a):(i.flush(this),0)},o})(t.AsyncAction);return Jr.QueueAction=r,Jr}var Qr={},eT;function zz(){if(eT)return Qr;eT=1;var e=Qr&&Qr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.QueueScheduler=void 0;var t=Rl(),r=(function(n){e(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o})(t.AsyncScheduler);return Qr.QueueScheduler=r,Qr}var tT;function Bz(){return tT||(tT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var t=Uz(),r=zz();e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})(_m)),_m}var gm={},$r={},rT;function Hz(){if(rT)return $r;rT=1;var e=$r&&$r.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty($r,"__esModule",{value:!0}),$r.AnimationFrameAction=void 0;var t=Al(),r=Eq(),n=(function(o){e(i,o);function i(s,a){var c=o.call(this,s,a)||this;return c.scheduler=s,c.work=a,c}return i.prototype.requestAsyncId=function(s,a,c){return c===void 0&&(c=0),c!==null&&c>0?o.prototype.requestAsyncId.call(this,s,a,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.animationFrameProvider.requestAnimationFrame(function(){return s.flush(void 0)})))},i.prototype.recycleAsyncId=function(s,a,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,s,a,c);var p=s.actions;a!=null&&a===s._scheduled&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==a&&(r.animationFrameProvider.cancelAnimationFrame(a),s._scheduled=void 0)},i})(t.AsyncAction);return $r.AnimationFrameAction=n,$r}var en={},nT;function Vz(){if(nT)return en;nT=1;var e=en&&en.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(en,"__esModule",{value:!0}),en.AnimationFrameScheduler=void 0;var t=Rl(),r=(function(n){e(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o.prototype.flush=function(i){this._active=!0;var s;i?s=i.id:(s=this._scheduled,this._scheduled=void 0);var a=this.actions,c;i=i||a.shift();do if(c=i.execute(i.state,i.delay))break;while((i=a[0])&&i.id===s&&a.shift());if(this._active=!1,c){for(;(i=a[0])&&i.id===s&&a.shift();)i.unsubscribe();throw c}},o})(t.AsyncScheduler);return en.AnimationFrameScheduler=r,en}var iT;function Gz(){return iT||(iT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=Hz(),r=Vz();e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})(gm)),gm}var Qt={},aT;function Wz(){if(aT)return Qt;aT=1;var e=Qt&&Qt.__extends||(function(){var s=function(a,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var l in p)Object.prototype.hasOwnProperty.call(p,l)&&(u[l]=p[l])},s(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(a,c);function u(){this.constructor=a}a.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}})();Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.VirtualAction=Qt.VirtualTimeScheduler=void 0;var t=Al(),r=bt(),n=Rl(),o=(function(s){e(a,s);function a(c,u){c===void 0&&(c=i),u===void 0&&(u=1/0);var p=s.call(this,c,function(){return p.frame})||this;return p.maxFrames=u,p.frame=0,p.index=-1,p}return a.prototype.flush=function(){for(var c=this,u=c.actions,p=c.maxFrames,l,d;(d=u[0])&&d.delay<=p&&(u.shift(),this.frame=d.delay,!(l=d.execute(d.state,d.delay))););if(l){for(;d=u.shift();)d.unsubscribe();throw l}},a.frameTimeFactor=10,a})(n.AsyncScheduler);Qt.VirtualTimeScheduler=o;var i=(function(s){e(a,s);function a(c,u,p){p===void 0&&(p=c.index+=1);var l=s.call(this,c,u)||this;return l.scheduler=c,l.work=u,l.index=p,l.active=!0,l.index=c.index=p,l}return a.prototype.schedule=function(c,u){if(u===void 0&&(u=0),Number.isFinite(u)){if(!this.id)return s.prototype.schedule.call(this,c,u);this.active=!1;var p=new a(this.scheduler,this.work);return this.add(p),p.schedule(c,u)}else return r.Subscription.EMPTY},a.prototype.requestAsyncId=function(c,u,p){p===void 0&&(p=0),this.delay=c.frame+p;var l=c.actions;return l.push(this),l.sort(a.sortActions),1},a.prototype.recycleAsyncId=function(c,u,p){},a.prototype._execute=function(c,u){if(this.active===!0)return s.prototype._execute.call(this,c,u)},a.sortActions=function(c,u){return c.delay===u.delay?c.index===u.index?0:c.index>u.index?1:-1:c.delay>u.delay?1:-1},a})(t.AsyncAction);return Qt.VirtualAction=i,Qt}var Xs={},oT;function Zz(){if(oT)return Xs;oT=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.isObservable=void 0;var e=Fe(),t=qe();function r(n){return!!n&&(n instanceof e.Observable||t.isFunction(n.lift)&&t.isFunction(n.subscribe))}return Xs.isObservable=r,Xs}var Js={},sT;function Kz(){if(sT)return Js;sT=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.lastValueFrom=void 0;var e=xn();function t(r,n){var o=typeof n=="object";return new Promise(function(i,s){var a=!1,c;r.subscribe({next:function(u){c=u,a=!0},error:s,complete:function(){a?i(c):o?i(n.defaultValue):s(new e.EmptyError)}})})}return Js.lastValueFrom=t,Js}var Qs={},cT;function Yz(){if(cT)return Qs;cT=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.firstValueFrom=void 0;var e=xn(),t=Pl();function r(n,o){var i=typeof o=="object";return new Promise(function(s,a){var c=new t.SafeSubscriber({next:function(u){s(u),c.unsubscribe()},error:a,complete:function(){i?s(o.defaultValue):a(new e.EmptyError)}});n.subscribe(c)})}return Qs.firstValueFrom=r,Qs}var $s={},$t={},uT;function xq(){if(uT)return $t;uT=1;var e=$t&&$t.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=$t&&$t.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty($t,"__esModule",{value:!0}),$t.bindCallbackInternals=void 0;var r=Op(),n=Fe(),o=Il(),i=En(),s=Ml(),a=Bg();function c(u,p,l,d){if(l)if(r.isScheduler(l))d=l;else return function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(u,p,d).apply(this,f).pipe(i.mapOneOrManyArgs(l))};return d?function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(u,p).apply(this,f).pipe(o.subscribeOn(d),s.observeOn(d))}:function(){for(var f=this,h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=new a.AsyncSubject,_=!0;return new n.Observable(function(g){var y=v.subscribe(g);if(_){_=!1;var b=!1,E=!1;p.apply(f,t(t([],e(h)),[function(){for(var x=[],O=0;O<arguments.length;O++)x[O]=arguments[O];if(u){var S=x.shift();if(S!=null){v.error(S);return}}v.next(1<x.length?x:x[0]),E=!0,b&&v.complete()}])),E&&v.complete(),b=!0}return y})}}return $t.bindCallbackInternals=c,$t}var lT;function Xz(){if(lT)return $s;lT=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.bindCallback=void 0;var e=xq();function t(r,n,o){return e.bindCallbackInternals(!1,r,n,o)}return $s.bindCallback=t,$s}var ec={},dT;function Jz(){if(dT)return ec;dT=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.bindNodeCallback=void 0;var e=xq();function t(r,n,o){return e.bindCallbackInternals(!0,r,n,o)}return ec.bindNodeCallback=t,ec}var tc={},rc={},pT;function jp(){if(pT)return rc;pT=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.defer=void 0;var e=Fe(),t=we();function r(n){return new e.Observable(function(o){t.innerFrom(n()).subscribe(o)})}return rc.defer=r,rc}var fT;function Qz(){if(fT)return tc;fT=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.connectable=void 0;var e=at(),t=Fe(),r=jp(),n={connector:function(){return new e.Subject},resetOnDisconnect:!0};function o(i,s){s===void 0&&(s=n);var a=null,c=s.connector,u=s.resetOnDisconnect,p=u===void 0?!0:u,l=c(),d=new t.Observable(function(f){return l.subscribe(f)});return d.connect=function(){return(!a||a.closed)&&(a=r.defer(function(){return i}).subscribe(l),p&&a.add(function(){return l=c()})),a},d}return tc.connectable=o,tc}var nc={},hT;function $z(){if(hT)return nc;hT=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.forkJoin=void 0;var e=Fe(),t=NC(),r=we(),n=_t(),o=pe(),i=En(),s=LC();function a(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var p=n.popResultSelector(c),l=t.argsArgArrayOrObject(c),d=l.args,f=l.keys,h=new e.Observable(function(m){var v=d.length;if(!v){m.complete();return}for(var _=new Array(v),g=v,y=v,b=function(x){var O=!1;r.innerFrom(d[x]).subscribe(o.createOperatorSubscriber(m,function(S){O||(O=!0,y--),_[x]=S},function(){return g--},void 0,function(){(!g||!O)&&(y||m.next(f?s.createObject(f,_):_),m.complete())}))},E=0;E<v;E++)b(E)});return p?h.pipe(i.mapOneOrManyArgs(p)):h}return nc.forkJoin=a,nc}var tn={},vT;function eB(){if(vT)return tn;vT=1;var e=tn&&tn.__read||function(m,v){var _=typeof Symbol=="function"&&m[Symbol.iterator];if(!_)return m;var g=_.call(m),y,b=[],E;try{for(;(v===void 0||v-- >0)&&!(y=g.next()).done;)b.push(y.value)}catch(x){E={error:x}}finally{try{y&&!y.done&&(_=g.return)&&_.call(g)}finally{if(E)throw E.error}}return b};Object.defineProperty(tn,"__esModule",{value:!0}),tn.fromEvent=void 0;var t=we(),r=Fe(),n=rr(),o=bg(),i=qe(),s=En(),a=["addListener","removeListener"],c=["addEventListener","removeEventListener"],u=["on","off"];function p(m,v,_,g){if(i.isFunction(_)&&(g=_,_=void 0),g)return p(m,v,_).pipe(s.mapOneOrManyArgs(g));var y=e(h(m)?c.map(function(x){return function(O){return m[x](v,O,_)}}):d(m)?a.map(l(m,v)):f(m)?u.map(l(m,v)):[],2),b=y[0],E=y[1];if(!b&&o.isArrayLike(m))return n.mergeMap(function(x){return p(x,v,_)})(t.innerFrom(m));if(!b)throw new TypeError("Invalid event target");return new r.Observable(function(x){var O=function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return x.next(1<S.length?S:S[0])};return b(O),function(){return E(O)}})}tn.fromEvent=p;function l(m,v){return function(_){return function(g){return m[_](v,g)}}}function d(m){return i.isFunction(m.addListener)&&i.isFunction(m.removeListener)}function f(m){return i.isFunction(m.on)&&i.isFunction(m.off)}function h(m){return i.isFunction(m.addEventListener)&&i.isFunction(m.removeEventListener)}return tn}var ic={},mT;function tB(){if(mT)return ic;mT=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.fromEventPattern=void 0;var e=Fe(),t=qe(),r=En();function n(o,i,s){return s?n(o,i).pipe(r.mapOneOrManyArgs(s)):new e.Observable(function(a){var c=function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];return a.next(p.length===1?p[0]:p)},u=o(c);return t.isFunction(i)?function(){return i(c,u)}:void 0})}return ic.fromEventPattern=n,ic}var rn={},_T;function rB(){if(_T)return rn;_T=1;var e=rn&&rn.__generator||function(s,a){var c={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,p,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(v){return h([m,v])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,p&&(l=m[0]&2?p.return:m[0]?p.throw||((l=p.return)&&l.call(p),0):p.next)&&!(l=l.call(p,m[1])).done)return l;switch(p=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,p=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(l=c.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){c.label=m[1];break}if(m[0]===6&&c.label<l[1]){c.label=l[1],l=m;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(m);break}l[2]&&c.ops.pop(),c.trys.pop();continue}m=a.call(s,c)}catch(v){m=[6,v],p=0}finally{u=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.generate=void 0;var t=it(),r=Op(),n=jp(),o=FC();function i(s,a,c,u,p){var l,d,f,h;arguments.length===1?(l=s,h=l.initialState,a=l.condition,c=l.iterate,d=l.resultSelector,f=d===void 0?t.identity:d,p=l.scheduler):(h=s,!u||r.isScheduler(u)?(f=t.identity,p=u):f=u);function m(){var v;return e(this,function(_){switch(_.label){case 0:v=h,_.label=1;case 1:return!a||a(v)?[4,f(v)]:[3,4];case 2:_.sent(),_.label=3;case 3:return v=c(v),[3,1];case 4:return[2]}})}return n.defer(p?function(){return o.scheduleIterable(m(),p)}:m)}return rn.generate=i,rn}var ac={},gT;function nB(){if(gT)return ac;gT=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.iif=void 0;var e=jp();function t(r,n,o){return e.defer(function(){return r()?n:o})}return ac.iif=t,ac}var oc={},yT;function iB(){if(yT)return oc;yT=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.merge=void 0;var e=Cl(),t=we(),r=It(),n=_t(),o=lr();function i(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=n.popScheduler(s),u=n.popNumber(s,1/0),p=s;return p.length?p.length===1?t.innerFrom(p[0]):e.mergeAll(u)(o.from(p,c)):r.EMPTY}return oc.merge=i,oc}var ym={},bT;function ET(){return bT||(bT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var t=Fe(),r=nt();e.NEVER=new t.Observable(r.noop);function n(){return e.NEVER}e.never=n})(ym)),ym}var sc={},xT;function aB(){if(xT)return sc;xT=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.pairs=void 0;var e=lr();function t(r,n){return e.from(Object.entries(r),n)}return sc.pairs=t,sc}var cc={},OT;function oB(){if(OT)return cc;OT=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.partition=void 0;var e=Tj(),t=pr(),r=we();function n(o,i,s){return[t.filter(i,s)(r.innerFrom(o)),t.filter(e.not(i,s))(r.innerFrom(o))]}return cc.partition=n,cc}var uc={},wT;function sB(){if(wT)return uc;wT=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.range=void 0;var e=Fe(),t=It();function r(n,o,i){if(o==null&&(o=n,n=0),o<=0)return t.EMPTY;var s=o+n;return new e.Observable(i?function(a){var c=n;return i.schedule(function(){c<s?(a.next(c++),this.schedule()):a.complete()})}:function(a){for(var c=n;c<s&&!a.closed;)a.next(c++);a.complete()})}return uc.range=r,uc}var lc={},ST;function cB(){if(ST)return lc;ST=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.using=void 0;var e=Fe(),t=we(),r=It();function n(o,i){return new e.Observable(function(s){var a=o(),c=i(a),u=c?t.innerFrom(c):r.EMPTY;return u.subscribe(s),function(){a&&a.unsubscribe()}})}return lc.using=n,lc}var bm={},TT;function uB(){return TT||(TT=1,Object.defineProperty(bm,"__esModule",{value:!0})),bm}var PT;function On(){return PT||(PT=1,(function(e){var t=Gr&&Gr.__createBinding||(Object.create?(function(Mn,In,qt,yr){yr===void 0&&(yr=qt),Object.defineProperty(Mn,yr,{enumerable:!0,get:function(){return In[qt]}})}):(function(Mn,In,qt,yr){yr===void 0&&(yr=qt),Mn[yr]=In[qt]})),r=Gr&&Gr.__exportStar||function(Mn,In){for(var qt in Mn)qt!=="default"&&!Object.prototype.hasOwnProperty.call(In,qt)&&t(In,Mn,qt)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var n=Fe();Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return n.Observable}});var o=Pp();Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var i=Ep();Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return i.observable}});var s=qz();Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return s.animationFrames}});var a=at();Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return a.Subject}});var c=Rj();Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var u=Hg();Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return u.ReplaySubject}});var p=Bg();Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var l=Lz();Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return l.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return l.asapScheduler}});var d=mt();Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var f=Bz();Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return f.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return f.queueScheduler}});var h=Gz();Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return h.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return h.animationFrameScheduler}});var m=Wz();Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return m.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return m.VirtualAction}});var v=PC();Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var _=bt();Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return _.Subscription}});var g=Pl();Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var y=Ng();Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return y.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return y.NotificationKind}});var b=xp();Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return b.pipe}});var E=nt();Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return E.noop}});var x=it();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return x.identity}});var O=Zz();Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return O.isObservable}});var S=Kz();Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});var w=Yz();Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return w.firstValueFrom}});var A=nj();Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var T=xn();Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return T.EmptyError}});var P=Vj();Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return P.NotFoundError}});var N=KC();Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return N.ObjectUnsubscribedError}});var D=Hj();Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return D.SequenceError}});var V=ap();Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return V.TimeoutError}});var F=yC();Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var k=Xz();Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return k.bindCallback}});var Z=Jz();Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return Z.bindNodeCallback}});var J=Tg();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return J.combineLatest}});var U=Tp();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return U.concat}});var $=Qz();Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return $.connectable}});var C=jp();Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return C.defer}});var q=It();Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return q.empty}});var L=$z();Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return L.forkJoin}});var B=lr();Object.defineProperty(e,"from",{enumerable:!0,get:function(){return B.from}});var M=eB();Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return M.fromEvent}});var j=tB();Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return j.fromEventPattern}});var z=rB();Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return z.generate}});var Y=nB();Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var te=Dj();Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return te.interval}});var R=iB();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return R.merge}});var I=ET();Object.defineProperty(e,"never",{enumerable:!0,get:function(){return I.never}});var W=qg();Object.defineProperty(e,"of",{enumerable:!0,get:function(){return W.of}});var Q=Oj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var oe=aB();Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return oe.pairs}});var ee=oB();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return ee.partition}});var le=jj();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return le.race}});var _e=sB();Object.defineProperty(e,"range",{enumerable:!0,get:function(){return _e.range}});var be=$C();Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return be.throwError}});var Te=bn();Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Te.timer}});var Re=cB();Object.defineProperty(e,"using",{enumerable:!0,get:function(){return Re.using}});var Ee=Kg();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Ee.zip}});var Pe=DC();Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return Pe.scheduled}});var me=It();Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return me.EMPTY}});var Ne=ET();Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return Ne.NEVER}}),r(uB(),e);var Ke=Tl();Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Ke.config}});var ye=Og();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return ye.audit}});var Ge=AC();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Ge.auditTime}});var Oi=RC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return Oi.buffer}});var wi=MC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return wi.bufferCount}});var gr=IC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return gr.bufferTime}});var H=CC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return H.bufferToggle}});var G=jC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return G.bufferWhen}});var K=qC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return K.catchError}});var re=BC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return re.combineAll}});var fe=Rg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return fe.combineLatestAll}});var Be=VC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Be.combineLatestWith}});var Ue=wp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Ue.concatAll}});var Oe=Mg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Oe.concatMap}});var ie=WC();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return ie.concatMapTo}});var se=ZC();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return se.concatWith}});var ue=Sp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return ue.connect}});var de=YC();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return de.count}});var Se=XC();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Se.debounce}});var Me=JC();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Me.debounceTime}});var ke=jl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return ke.defaultIfEmpty}});var st=QC();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return st.delay}});var Rn=jg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return Rn.delayWhen}});var Si=ej();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Si.dematerialize}});var Ti=tj();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Ti.distinct}});var Wp=Fg();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Wp.distinctUntilChanged}});var Zp=rj();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Zp.distinctUntilKeyChanged}});var Kp=ij();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Kp.elementAt}});var Yp=aj();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Yp.endWith}});var Xp=oj();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Xp.every}});var Jp=sj();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return Jp.exhaust}});var Qp=Dg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Qp.exhaustAll}});var $p=kg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return $p.exhaustMap}});var ef=cj();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return ef.expand}});var tf=pr();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return tf.filter}});var rf=uj();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return rf.finalize}});var nf=Lg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return nf.find}});var af=lj();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return af.findIndex}});var of=dj();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return of.first}});var sf=pj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return sf.groupBy}});var cf=Ig();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return cf.ignoreElements}});var uf=fj();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return uf.isEmpty}});var lf=hj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return lf.last}});var df=dr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return df.map}});var pf=Cg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return pf.mapTo}});var ff=vj();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return ff.materialize}});var hf=mj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return hf.max}});var vf=Cl();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return vf.mergeAll}});var mf=gj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return mf.flatMap}});var _f=rr();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return _f.mergeMap}});var gf=yj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return gf.mergeMapTo}});var yf=bj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return yf.mergeScan}});var yF=Ej();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return yF.mergeWith}});var bF=xj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return bF.min}});var EF=Ap();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return EF.multicast}});var xF=Ml();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return xF.observeOn}});var OF=wj();Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return OF.onErrorResumeNextWith}});var wF=Sj();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return wF.pairwise}});var SF=Pj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return SF.pluck}});var TF=Aj();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return TF.publish}});var PF=Mj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return PF.publishBehavior}});var AF=Ij();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return AF.publishLast}});var RF=Cj();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return RF.publishReplay}});var MF=Vg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return MF.raceWith}});var IF=fi();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return IF.reduce}});var CF=qj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return CF.repeat}});var jF=Nj();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return jF.repeatWhen}});var qF=Fj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return qF.retry}});var NF=kj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return NF.retryWhen}});var FF=zg();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return FF.refCount}});var kF=Gg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return kF.sample}});var DF=Lj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return DF.sampleTime}});var LF=Uj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return LF.scan}});var UF=zj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return UF.sequenceEqual}});var zF=Wg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return zF.share}});var BF=Bj();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return BF.shareReplay}});var HF=Gj();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return HF.single}});var VF=Wj();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return VF.skip}});var GF=Zj();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return GF.skipLast}});var WF=Kj();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return WF.skipUntil}});var ZF=Yj();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return ZF.skipWhile}});var KF=Xj();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return KF.startWith}});var YF=Il();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return YF.subscribeOn}});var XF=Jj();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return XF.switchAll}});var JF=Fl();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return JF.switchMap}});var QF=Qj();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return QF.switchMapTo}});var $F=$j();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return $F.switchScan}});var ek=ql();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return ek.take}});var tk=Ug();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return tk.takeLast}});var rk=eq();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return rk.takeUntil}});var nk=tq();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return nk.takeWhile}});var ik=rq();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return ik.tap}});var ak=Zg();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return ak.throttle}});var ok=nq();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return ok.throttleTime}});var sk=Nl();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return sk.throwIfEmpty}});var ck=iq();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return ck.timeInterval}});var uk=ap();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return uk.timeout}});var lk=aq();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return lk.timeoutWith}});var dk=oq();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return dk.timestamp}});var pk=Ag();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return pk.toArray}});var fk=sq();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return fk.window}});var hk=cq();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return hk.windowCount}});var vk=uq();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return vk.windowTime}});var mk=lq();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return mk.windowToggle}});var _k=dq();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return _k.windowWhen}});var gk=pq();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return gk.withLatestFrom}});var yk=hq();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return yk.zipAll}});var bk=vq();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return bk.zipWith}})})(Gr)),Gr}var AT;function ay(){if(AT)return We;AT=1;var e=We&&We.__createBinding||(Object.create?(function(_,g,y,b){b===void 0&&(b=y);var E=Object.getOwnPropertyDescriptor(g,y);(!E||("get"in E?!g.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return g[y]}}),Object.defineProperty(_,b,E)}):(function(_,g,y,b){b===void 0&&(b=y),_[b]=g[y]})),t=We&&We.__setModuleDefault||(Object.create?(function(_,g){Object.defineProperty(_,"default",{enumerable:!0,value:g})}):function(_,g){_.default=g}),r=We&&We.__decorate||function(_,g,y,b){var E=arguments.length,x=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,y):b,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(_,g,y,b);else for(var S=_.length-1;S>=0;S--)(O=_[S])&&(x=(E<3?O(x):E>3?O(g,y,x):O(g,y))||x);return E>3&&x&&Object.defineProperty(g,y,x),x},n=We&&We.__importStar||(function(){var _=function(g){return _=Object.getOwnPropertyNames||function(y){var b=[];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(b[b.length]=E);return b},_(g)};return function(g){if(g&&g.__esModule)return g;var y={};if(g!=null)for(var b=_(g),E=0;E<b.length;E++)b[E]!=="default"&&e(y,g,b[E]);return t(y,g),y}})(),o=We&&We.__metadata||function(_,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,g)},i=We&&We.__param||function(_,g){return function(y,b){g(y,b,_)}},s=We&&We.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(We,"__esModule",{value:!0}),We.ConfigService=void 0;const a=ve(),c=ne(),u=n(_q()),p=s(ci),l=s(xz()),d=s(Az()),f=s(bq()),h=On(),m=kl();let v=class{set isCacheEnabled(g){this._isCacheEnabled=g}get isCacheEnabled(){return this._isCacheEnabled}set skipProcessEnv(g){this._skipProcessEnv=g}get skipProcessEnv(){return this._skipProcessEnv}constructor(g={}){this.internalConfig=g,this.cache={},this._changes$=new h.Subject,this._skipProcessEnv=!1,this._isCacheEnabled=!1,this.envFilePaths=[]}get changes$(){return this._changes$.asObservable()}get(g,y,b){const E=this.getFromInternalConfig(g);if(!(0,c.isUndefined)(E))return E;const x=this.getFromValidatedEnv(g);if(!(0,c.isUndefined)(x))return x;const O=this.isGetOptionsObject(y)&&!b?void 0:y;if(!this._skipProcessEnv){const S=this.getFromProcessEnv(g,O);if(!(0,c.isUndefined)(S))return S}return O}getOrThrow(g,y,b){const E=this.get(g,y,b);if((0,c.isUndefined)(E))throw new TypeError(`Configuration key "${g.toString()}" does not exist`);return E}set(g,y){const b=this.get(g);(0,f.default)(this.internalConfig,g,y),typeof g=="string"&&(process.env[g]=String(y),this.updateInterpolatedEnv(g,String(y))),this.isCacheEnabled&&this.setInCacheIfDefined(g,y),this._changes$.next({path:g,oldValue:b,newValue:y})}setEnvFilePaths(g){this.envFilePaths=g}getFromCache(g,y){const b=(0,l.default)(this.cache,g);return(0,c.isUndefined)(b)?y:b}getFromValidatedEnv(g){return(0,l.default)(this.internalConfig[m.VALIDATED_ENV_PROPNAME],g)}getFromProcessEnv(g,y){if(this.isCacheEnabled&&(0,d.default)(this.cache,g)){const E=this.getFromCache(g,y);return(0,c.isUndefined)(E)?y:E}const b=(0,l.default)(process.env,g);return this.setInCacheIfDefined(g,b),b}getFromInternalConfig(g){return(0,l.default)(this.internalConfig,g)}setInCacheIfDefined(g,y){typeof y>"u"||(0,f.default)(this.cache,g,y)}isGetOptionsObject(g){return g&&g?.infer&&Object.keys(g).length===1}updateInterpolatedEnv(g,y){let b={};for(const x of this.envFilePaths)p.default.existsSync(x)&&(b=Object.assign(u.parse(p.default.readFileSync(x)),b));const E=new RegExp(`\\$\\{?${g}\\}?`,"g");for(const[x,O]of Object.entries(b))E.test(O)&&(process.env[x]=O.replace(E,y))}};return We.ConfigService=v,We.ConfigService=v=r([(0,a.Injectable)(),i(0,(0,a.Optional)()),i(0,(0,a.Inject)(m.CONFIGURATION_TOKEN)),o("design:paramtypes",[Object])],v),We}var RT;function lB(){if(RT)return ir;RT=1;var e=ir&&ir.__decorate||function(i,s,a,c){var u=arguments.length,p=u<3?s:c===null?c=Object.getOwnPropertyDescriptor(s,a):c,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,s,a,c);else for(var d=i.length-1;d>=0;d--)(l=i[d])&&(p=(u<3?l(p):u>3?l(s,a,p):l(s,a))||p);return u>3&&p&&Object.defineProperty(s,a,p),p};Object.defineProperty(ir,"__esModule",{value:!0}),ir.ConfigHostModule=void 0;const t=ve(),r=kl(),n=ay();let o=class{};return ir.ConfigHostModule=o,ir.ConfigHostModule=o=e([(0,t.Global)(),(0,t.Module)({providers:[{provide:r.CONFIGURATION_TOKEN,useFactory:()=>({})},{provide:r.CONFIGURATION_SERVICE_TOKEN,useClass:n.ConfigService}],exports:[r.CONFIGURATION_TOKEN,r.CONFIGURATION_SERVICE_TOKEN]})],o),ir}var Sd={},Td={},MT;function oy(){if(MT)return Td;MT=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.getConfigToken=e;function e(t){return`CONFIGURATION(${t.toString()})`}return Td}var IT;function dB(){if(IT)return Sd;IT=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.createConfigProvider=r;const e=oy(),t=ui;function r(n){return{provide:n.KEY||(0,e.getConfigToken)((0,t.randomUUID)()),useFactory:n,inject:[]}}return Sd}var Pd={},CT;function pB(){if(CT)return Pd;CT=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.getRegistrationToken=t;const e=kl();function t(r){return r[e.PARTIAL_CONFIGURATION_KEY]}return Pd}var Kn={},jT;function fB(){if(jT)return Kn;jT=1;var e=Kn&&Kn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.mergeConfigObject=r;const t=e(bq());function r(n,o,i){if(i)return(0,t.default)(n,i,o),o;Object.assign(n,o)}return Kn}var qT;function Oq(){if(qT)return pt;qT=1;var e=pt&&pt.__createBinding||(Object.create?(function(g,y,b,E){E===void 0&&(E=b);var x=Object.getOwnPropertyDescriptor(y,b);(!x||("get"in x?!y.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return y[b]}}),Object.defineProperty(g,E,x)}):(function(g,y,b,E){E===void 0&&(E=b),g[E]=y[b]})),t=pt&&pt.__setModuleDefault||(Object.create?(function(g,y){Object.defineProperty(g,"default",{enumerable:!0,value:y})}):function(g,y){g.default=y}),r=pt&&pt.__decorate||function(g,y,b,E){var x=arguments.length,O=x<3?y:E===null?E=Object.getOwnPropertyDescriptor(y,b):E,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(g,y,b,E);else for(var w=g.length-1;w>=0;w--)(S=g[w])&&(O=(x<3?S(O):x>3?S(y,b,O):S(y,b))||O);return x>3&&O&&Object.defineProperty(y,b,O),O},n=pt&&pt.__importStar||(function(){var g=function(y){return g=Object.getOwnPropertyNames||function(b){var E=[];for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(E[E.length]=x);return E},g(y)};return function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var E=g(y),x=0;x<E.length;x++)E[x]!=="default"&&e(b,y,E[x]);return t(b,y),b}})(),o;Object.defineProperty(pt,"__esModule",{value:!0}),pt.ConfigModule=void 0;const i=ve(),s=ne(),a=n(_q()),c=DU(),u=n(ci),p=er,l=lB(),d=kl(),f=ay(),h=dB(),m=pB(),v=fB();let _=o=class{static get envVariablesLoaded(){return this._envVariablesLoaded}static async forRoot(y={}){const b=Array.isArray(y.envFilePath)?y.envFilePath:[y.envFilePath||(0,p.resolve)(process.cwd(),".env")];let E,x=y.ignoreEnvFile?{}:this.loadEnvFile(b,y);if(!y.ignoreEnvVars&&y.validatePredefined!==!1&&(x={...x,...process.env}),y.validate){const P=y.validate(x);E=P,this.assignVariablesToProcess(P)}else if(y.validationSchema){const P=this.getSchemaValidationOptions(y),{error:N,value:D}=y.validationSchema.validate(x,P);if(N)throw new Error(`Config validation error: ${N.message}`);E=D,this.assignVariablesToProcess(D)}else this.assignVariablesToProcess(x);const O=y.load&&y.load.length,w=(await Promise.all(y.load||[])).map(P=>(0,h.createConfigProvider)(P)).filter(P=>P),A=w.map(P=>P.provide),T={provide:f.ConfigService,useFactory:P=>{const N=P;return y.cache&&(N.isCacheEnabled=!0),y.skipProcessEnv&&(N.skipProcessEnv=!0),P.setEnvFilePaths(b),P},inject:[d.CONFIGURATION_SERVICE_TOKEN,...A]};if(w.push(T),E){const P={provide:d.VALIDATED_ENV_LOADER,useFactory:N=>{N[d.VALIDATED_ENV_PROPNAME]=E},inject:[d.CONFIGURATION_TOKEN]};w.push(P)}return this.environmentVariablesLoadedSignal(),{module:o,global:y.isGlobal,providers:O?[...w,{provide:d.CONFIGURATION_LOADER,useFactory:(P,...N)=>{N.forEach((D,V)=>this.mergePartial(P,D,w[V]))},inject:[d.CONFIGURATION_TOKEN,...A]}]:w,exports:[f.ConfigService,...A]}}static forFeature(y){const b=(0,h.createConfigProvider)(y),E={provide:f.ConfigService,useFactory:x=>x,inject:[d.CONFIGURATION_SERVICE_TOKEN,b.provide]};return{module:o,providers:[b,E,{provide:d.CONFIGURATION_LOADER,useFactory:(x,O)=>{this.mergePartial(x,O,b)},inject:[d.CONFIGURATION_TOKEN,b.provide]}],exports:[f.ConfigService,b.provide]}}static loadEnvFile(y,b){let E={};for(const x of y)if(u.existsSync(x)&&(E=Object.assign(a.parse(u.readFileSync(x)),E),b.expandVariables)){const O=typeof b.expandVariables=="object"?b.expandVariables:{};E=(0,c.expand)({...O,parsed:E}).parsed||E}return E}static assignVariablesToProcess(y){if(!(0,s.isObject)(y))return;Object.keys(y).filter(E=>!(E in process.env)).forEach(E=>{const x=y[E];typeof x=="string"?process.env[E]=x:(typeof x=="boolean"||typeof x=="number")&&(process.env[E]=`${x}`)})}static mergePartial(y,b,E){const x=E.useFactory,O=(0,m.getRegistrationToken)(x);(0,v.mergeConfigObject)(y,b,O)}static getSchemaValidationOptions(y){return y.validationOptions?(typeof y.validationOptions.allowUnknown>"u"&&(y.validationOptions.allowUnknown=!0),y.validationOptions):{abortEarly:!1,allowUnknown:!0}}};return pt.ConfigModule=_,_._envVariablesLoaded=new Promise(g=>o.environmentVariablesLoadedSignal=g),pt.ConfigModule=_=o=r([(0,i.Module)({imports:[l.ConfigHostModule],providers:[{provide:f.ConfigService,useExisting:d.CONFIGURATION_SERVICE_TOKEN}],exports:[l.ConfigHostModule,f.ConfigService]})],_),pt}var NT;function hB(){if(NT)return Pi;NT=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.ConditionalModule=void 0;const e=ve(),t=Oq(),r=o=>o?.forwardRef?o.forwardRef()?.name:o.module?o.module?.name:o.name;class n{static async registerWhen(i,s,a){const{timeout:c=5e3,debug:u=!0}=a??{},p=r(i)||i.toString(),l=setTimeout(()=>{throw new Error(`Nest was not able to resolve the config variables within ${c} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${p} should be registered or not`)},c);l.unref();const d={module:n,imports:[],exports:[]};if(typeof s=="string"){const h=s;s=m=>m[h]?.toLowerCase()!=="false"}return await t.ConfigModule.envVariablesLoaded,clearTimeout(l),s(process.env)?(d.imports.push(i),d.exports.push(i)):u&&e.Logger.debug(`${s.toString()} evaluated to false. Skipping the registration of ${p}`,n.name),d}}return Pi.ConditionalModule=n,Pi}var nn={},Em={},FT;function vB(){return FT||(FT=1,Object.defineProperty(Em,"__esModule",{value:!0})),Em}var xm={},kT;function mB(){return kT||(kT=1,Object.defineProperty(xm,"__esModule",{value:!0})),xm}var Om={},DT;function _B(){return DT||(DT=1,Object.defineProperty(Om,"__esModule",{value:!0})),Om}var wm={},LT;function gB(){return LT||(LT=1,Object.defineProperty(wm,"__esModule",{value:!0})),wm}var UT;function yB(){return UT||(UT=1,(function(e){var t=nn&&nn.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=nn&&nn.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(vB(),e),r(mB(),e),r(_B(),e),r(gB(),e)})(nn)),nn}var an={},Ad={},zT;function bB(){if(zT)return Ad;zT=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.registerAs=n;const e=wq(),t=kl(),r=oy();function n(o,i){const s=(a,c)=>{Object.defineProperty(i,a,{configurable:!1,enumerable:!1,value:c,writable:!1})};return s(t.PARTIAL_CONFIGURATION_KEY,o),s(t.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(o)),s(t.AS_PROVIDER_METHOD_KEY,()=>({imports:[e.ConfigModule.forFeature(i)],useFactory:a=>a,inject:[(0,r.getConfigToken)(o)]})),i}return Ad}var BT;function EB(){return BT||(BT=1,(function(e){var t=an&&an.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=an&&an.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(bB(),e),r(oy(),e)})(an)),an}var on={},Sm={},HT;function xB(){return HT||(HT=1,Object.defineProperty(Sm,"__esModule",{value:!0})),Sm}var Tm={},VT;function OB(){return VT||(VT=1,Object.defineProperty(Tm,"__esModule",{value:!0})),Tm}var Pm={},GT;function wB(){return GT||(GT=1,Object.defineProperty(Pm,"__esModule",{value:!0})),Pm}var WT;function SB(){return WT||(WT=1,(function(e){var t=on&&on.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=on&&on.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(xB(),e),r(OB(),e),r(wB(),e)})(on)),on}var ZT;function wq(){return ZT||(ZT=1,(function(e){var t=br&&br.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=br&&br.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(hB(),e),r(Oq(),e),r(ay(),e),r(yB(),e),r(EB(),e),r(SB(),e)})(br)),br}var KT;function TB(){return KT||(KT=1,(function(e){function t(r){for(var n in r)e.hasOwnProperty(n)||(e[n]=r[n])}e.__esModule=!0,t(wq())})(xf)),xf}var op=TB();const PB=(e,t=process.env)=>{const r=e.safeParse(t);if(!r.success)throw new Error(`Invalid environment variables: ${JSON.stringify(r.error.issues)}`);return r.data},AB=[];for(let e=0;e<256;++e)AB.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function he(e,t,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=s.prototype,p=Object.keys(u);for(let l=0;l<p.length;l++){const d=p[l];d in a||(a[d]=u[d].bind(a))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var c;const u=r?.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ii extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Sq extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Tq={};function fn(e){return Tq}function Pq(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,n])=>t.indexOf(+r)===-1).map(([r,n])=>n)}function sg(e,t){return typeof t=="bigint"?t.toString():t}function sy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function cy(e){return e==null}function uy(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function RB(e,t){const r=(e.toString().split(".")[1]||"").length,n=t.toString();let o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const i=r>o?r:o,s=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return s%a/10**i}const YT=Symbol("evaluating");function Ie(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==YT)return n===void 0&&(n=YT,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function wn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function fr(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function XT(e){return JSON.stringify(e)}const Aq="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function sp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const MB=sy(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function gl(e){if(sp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(sp(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Rq(e){return gl(e)?{...e}:Array.isArray(e)?[...e]:e}const IB=new Set(["string","number","symbol"]);function CB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Ze(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function jB(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const qB={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function NB(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=fr(e._zod.def,{get shape(){const i={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return wn(this,"shape",i),i},checks:[]});return hr(e,o)}function FB(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=fr(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return wn(this,"shape",i),i},checks:[]});return hr(e,o)}function kB(e,t){if(!gl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=fr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return wn(this,"shape",o),o}});return hr(e,n)}function DB(e,t){if(!gl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=fr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return wn(this,"shape",n),n}});return hr(e,r)}function LB(e,t){const r=fr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return wn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return hr(e,r)}function UB(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=fr(t._zod.def,{get shape(){const i=t._zod.def.shape,s={...i};if(r)for(const a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=e?new e({type:"optional",innerType:i[a]}):i[a])}else for(const a in i)s[a]=e?new e({type:"optional",innerType:i[a]}):i[a];return wn(this,"shape",s),s},checks:[]});return hr(t,o)}function zB(e,t,r){const n=fr(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return wn(this,"shape",i),i}});return hr(t,n)}function ri(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Mq(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Rd(e){return typeof e=="string"?e:e?.message}function hn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Rd(e.inst?._zod.def?.error?.(e))??Rd(t?.error?.(e))??Rd(r.customError?.(e))??Rd(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function ly(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function yl(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const Iq=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,sg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cq=he("$ZodError",Iq),jq=he("$ZodError",Iq,{Parent:Error});function BB(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function HB(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const c=i.path[a];a===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return n(e),r}const dy=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ii;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>hn(c,i,fn())));throw Aq(a,o?.callee),a}return s.value},py=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>hn(c,i,fn())));throw Aq(a,o?.callee),a}return s.value},qp=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ii;return i.issues.length?{success:!1,error:new(e??Cq)(i.issues.map(s=>hn(s,o,fn())))}:{success:!0,data:i.value}},VB=qp(jq),Np=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>hn(s,o,fn())))}:{success:!0,data:i.value}},GB=Np(jq),WB=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return dy(e)(t,r,o)},ZB=e=>(t,r,n)=>dy(e)(t,r,n),KB=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return py(e)(t,r,o)},YB=e=>async(t,r,n)=>py(e)(t,r,n),XB=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return qp(e)(t,r,o)},JB=e=>(t,r,n)=>qp(e)(t,r,n),QB=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Np(e)(t,r,o)},$B=e=>async(t,r,n)=>Np(e)(t,r,n),eH=/^-?\d+$/,tH=/^-?\d+(?:\.\d+)?$/,Ct=he("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),qq={number:"number",bigint:"bigint",object:"date"},Nq=he("$ZodCheckLessThan",(e,t)=>{Ct.init(e,t);const r=qq[typeof t.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fq=he("$ZodCheckGreaterThan",(e,t)=>{Ct.init(e,t);const r=qq[typeof t.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rH=he("$ZodCheckMultipleOf",(e,t)=>{Ct.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):RB(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),nH=he("$ZodCheckNumberFormat",(e,t)=>{Ct.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),n=r?"int":"number",[o,i]=qB[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=o,a.maximum=i,r&&(a.pattern=eH)}),e._zod.check=s=>{const a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),iH=he("$ZodCheckMaxLength",(e,t)=>{var r;Ct.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!cy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const i=ly(o);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),aH=he("$ZodCheckMinLength",(e,t)=>{var r;Ct.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!cy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const i=ly(o);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),oH=he("$ZodCheckLengthEquals",(e,t)=>{var r;Ct.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!cy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=ly(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),sH=he("$ZodCheckOverwrite",(e,t)=>{Ct.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class cH{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
8
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}}),ba}var xa={},$x;function cr(){if($x)return xa;$x=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.arrRemove=void 0;function e(t,r){if(t){var n=t.indexOf(r);0<=n&&t.splice(n,1)}}return xa.arrRemove=e,xa}var eO;function bt(){if(eO)return ct;eO=1;var e=ct&&ct.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},t=ct&&ct.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},r=ct&&ct.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(ct,"__esModule",{value:!0}),ct.isSubscription=ct.EMPTY_SUBSCRIPTION=ct.Subscription=void 0;var n=Ne(),o=vC(),i=cr(),s=(function(){function u(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._finalizers=null}return u.prototype.unsubscribe=function(){var p,l,d,f,h;if(!this.closed){this.closed=!0;var m=this._parentage;if(m)if(this._parentage=null,Array.isArray(m))try{for(var v=e(m),_=v.next();!_.done;_=v.next()){var g=_.value;g.remove(this)}}catch(S){p={error:S}}finally{try{_&&!_.done&&(l=v.return)&&l.call(v)}finally{if(p)throw p.error}}else m.remove(this);var y=this.initialTeardown;if(n.isFunction(y))try{y()}catch(S){h=S instanceof o.UnsubscriptionError?S.errors:[S]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var E=e(b),x=E.next();!x.done;x=E.next()){var O=x.value;try{c(O)}catch(S){h=h??[],S instanceof o.UnsubscriptionError?h=r(r([],t(h)),t(S.errors)):h.push(S)}}}catch(S){d={error:S}}finally{try{x&&!x.done&&(f=E.return)&&f.call(E)}finally{if(d)throw d.error}}}if(h)throw new o.UnsubscriptionError(h)}},u.prototype.add=function(p){var l;if(p&&p!==this)if(this.closed)c(p);else{if(p instanceof u){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._finalizers=(l=this._finalizers)!==null&&l!==void 0?l:[]).push(p)}},u.prototype._hasParent=function(p){var l=this._parentage;return l===p||Array.isArray(l)&&l.includes(p)},u.prototype._addParent=function(p){var l=this._parentage;this._parentage=Array.isArray(l)?(l.push(p),l):l?[l,p]:p},u.prototype._removeParent=function(p){var l=this._parentage;l===p?this._parentage=null:Array.isArray(l)&&i.arrRemove(l,p)},u.prototype.remove=function(p){var l=this._finalizers;l&&i.arrRemove(l,p),p instanceof u&&p._removeParent(this)},u.EMPTY=(function(){var p=new u;return p.closed=!0,p})(),u})();ct.Subscription=s,ct.EMPTY_SUBSCRIPTION=s.EMPTY;function a(u){return u instanceof s||u&&"closed"in u&&n.isFunction(u.remove)&&n.isFunction(u.add)&&n.isFunction(u.unsubscribe)}ct.isSubscription=a;function c(u){n.isFunction(u)?u():u.unsubscribe()}return ct}var Oa={},tO;function Pl(){return tO||(tO=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.config=void 0,Oa.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}),Oa}var wa={},Or={},rO;function mC(){return rO||(rO=1,(function(e){var t=Or&&Or.__read||function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,c=[],u;try{for(;(o===void 0||o-- >0)&&!(a=s.next()).done;)c.push(a.value)}catch(p){u={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},r=Or&&Or.__spreadArray||function(n,o){for(var i=0,s=o.length,a=n.length;i<s;i++,a++)n[a]=o[i];return n};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a=e.timeoutProvider.delegate;return a?.setTimeout?a.setTimeout.apply(a,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(n){var o=e.timeoutProvider.delegate;return(o?.clearTimeout||clearTimeout)(n)},delegate:void 0}})(Or)),Or}var nO;function _C(){if(nO)return wa;nO=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.reportUnhandledError=void 0;var e=Pl(),t=mC();function r(n){t.timeoutProvider.setTimeout(function(){var o=e.config.onUnhandledError;if(o)o(n);else throw n})}return wa.reportUnhandledError=r,wa}var Sa={},iO;function nt(){if(iO)return Sa;iO=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.noop=void 0;function e(){}return Sa.noop=e,Sa}var wt={},aO;function hU(){if(aO)return wt;aO=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.createNotification=wt.nextNotification=wt.errorNotification=wt.COMPLETE_NOTIFICATION=void 0,wt.COMPLETE_NOTIFICATION=(function(){return r("C",void 0,void 0)})();function e(n){return r("E",void 0,n)}wt.errorNotification=e;function t(n){return r("N",n,void 0)}wt.nextNotification=t;function r(n,o,i){return{kind:n,value:o,error:i}}return wt.createNotification=r,wt}var wr={},oO;function yg(){if(oO)return wr;oO=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.captureError=wr.errorContext=void 0;var e=Pl(),t=null;function r(o){if(e.config.useDeprecatedSynchronousErrorHandling){var i=!t;if(i&&(t={errorThrown:!1,error:null}),o(),i){var s=t,a=s.errorThrown,c=s.error;if(t=null,a)throw c}}else o()}wr.errorContext=r;function n(o){e.config.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}return wr.captureError=n,wr}var sO;function Tl(){return sO||(sO=1,(function(e){var t=ya&&ya.__extends||(function(){var g=function(y,b){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&(E[O]=x[O])},g(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");g(y,b);function E(){this.constructor=y}y.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var r=Ne(),n=bt(),o=Pl(),i=_C(),s=nt(),a=hU(),c=mC(),u=yg(),p=(function(g){t(y,g);function y(b){var E=g.call(this)||this;return E.isStopped=!1,b?(E.destination=b,n.isSubscription(b)&&b.add(E)):E.destination=e.EMPTY_OBSERVER,E}return y.create=function(b,E,x){return new h(b,E,x)},y.prototype.next=function(b){this.isStopped?_(a.nextNotification(b),this):this._next(b)},y.prototype.error=function(b){this.isStopped?_(a.errorNotification(b),this):(this.isStopped=!0,this._error(b))},y.prototype.complete=function(){this.isStopped?_(a.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},y.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,g.prototype.unsubscribe.call(this),this.destination=null)},y.prototype._next=function(b){this.destination.next(b)},y.prototype._error=function(b){try{this.destination.error(b)}finally{this.unsubscribe()}},y.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},y})(n.Subscription);e.Subscriber=p;var l=Function.prototype.bind;function d(g,y){return l.call(g,y)}var f=(function(){function g(y){this.partialObserver=y}return g.prototype.next=function(y){var b=this.partialObserver;if(b.next)try{b.next(y)}catch(E){m(E)}},g.prototype.error=function(y){var b=this.partialObserver;if(b.error)try{b.error(y)}catch(E){m(E)}else m(y)},g.prototype.complete=function(){var y=this.partialObserver;if(y.complete)try{y.complete()}catch(b){m(b)}},g})(),h=(function(g){t(y,g);function y(b,E,x){var O=g.call(this)||this,S;if(r.isFunction(b)||!b)S={next:b??void 0,error:E??void 0,complete:x??void 0};else{var w;O&&o.config.useDeprecatedNextContext?(w=Object.create(b),w.unsubscribe=function(){return O.unsubscribe()},S={next:b.next&&d(b.next,w),error:b.error&&d(b.error,w),complete:b.complete&&d(b.complete,w)}):S=b}return O.destination=new f(S),O}return y})(p);e.SafeSubscriber=h;function m(g){o.config.useDeprecatedSynchronousErrorHandling?u.captureError(g):i.reportUnhandledError(g)}function v(g){throw g}function _(g,y){var b=o.config.onStoppedNotification;b&&c.timeoutProvider.setTimeout(function(){return b(g,y)})}e.EMPTY_OBSERVER={closed:!0,next:s.noop,error:v,complete:s.noop}})(ya)),ya}var Pa={},cO;function Ep(){return cO||(cO=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.observable=void 0,Pa.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()),Pa}var Sr={},Ta={},uO;function it(){if(uO)return Ta;uO=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.identity=void 0;function e(t){return t}return Ta.identity=e,Ta}var lO;function xp(){if(lO)return Sr;lO=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.pipeFromArray=Sr.pipe=void 0;var e=it();function t(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return r(n)}Sr.pipe=t;function r(n){return n.length===0?e.identity:n.length===1?n[0]:function(i){return n.reduce(function(s,a){return a(s)},i)}}return Sr.pipeFromArray=r,Sr}var dO;function Fe(){if(dO)return ga;dO=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.Observable=void 0;var e=Tl(),t=bt(),r=Ep(),n=xp(),o=Pl(),i=Ne(),s=yg(),a=(function(){function l(d){d&&(this._subscribe=d)}return l.prototype.lift=function(d){var f=new l;return f.source=this,f.operator=d,f},l.prototype.subscribe=function(d,f,h){var m=this,v=p(d)?d:new e.SafeSubscriber(d,f,h);return s.errorContext(function(){var _=m,g=_.operator,y=_.source;v.add(g?g.call(v,y):y?m._subscribe(v):m._trySubscribe(v))}),v},l.prototype._trySubscribe=function(d){try{return this._subscribe(d)}catch(f){d.error(f)}},l.prototype.forEach=function(d,f){var h=this;return f=c(f),new f(function(m,v){var _=new e.SafeSubscriber({next:function(g){try{d(g)}catch(y){v(y),_.unsubscribe()}},error:v,complete:m});h.subscribe(_)})},l.prototype._subscribe=function(d){var f;return(f=this.source)===null||f===void 0?void 0:f.subscribe(d)},l.prototype[r.observable]=function(){return this},l.prototype.pipe=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return n.pipeFromArray(d)(this)},l.prototype.toPromise=function(d){var f=this;return d=c(d),new d(function(h,m){var v;f.subscribe(function(_){return v=_},function(_){return m(_)},function(){return h(v)})})},l.create=function(d){return new l(d)},l})();ga.Observable=a;function c(l){var d;return(d=l??o.config.Promise)!==null&&d!==void 0?d:Promise}function u(l){return l&&i.isFunction(l.next)&&i.isFunction(l.error)&&i.isFunction(l.complete)}function p(l){return l&&l instanceof e.Subscriber||u(l)&&t.isSubscription(l)}return ga}var Aa={},pO;function gC(){if(pO)return Aa;pO=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.isInteropObservable=void 0;var e=Ep(),t=Ne();function r(n){return t.isFunction(n[e.observable])}return Aa.isInteropObservable=r,Aa}var Ra={},fO;function yC(){if(fO)return Ra;fO=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.isAsyncIterable=void 0;var e=Ne();function t(r){return Symbol.asyncIterator&&e.isFunction(r?.[Symbol.asyncIterator])}return Ra.isAsyncIterable=t,Ra}var Ma={},hO;function bC(){if(hO)return Ma;hO=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.createInvalidObservableTypeError=void 0;function e(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}return Ma.createInvalidObservableTypeError=e,Ma}var Ia={},Pr={},vO;function EC(){if(vO)return Pr;vO=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.iterator=Pr.getSymbolIterator=void 0;function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}return Pr.getSymbolIterator=e,Pr.iterator=e(),Pr}var mO;function xC(){if(mO)return Ia;mO=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.isIterable=void 0;var e=EC(),t=Ne();function r(n){return t.isFunction(n?.[e.iterator])}return Ia.isIterable=r,Ia}var vt={},_O;function bg(){if(_O)return vt;_O=1;var e=vt&&vt.__generator||function(s,a){var c={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,p,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(v){return h([m,v])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,p&&(l=m[0]&2?p.return:m[0]?p.throw||((l=p.return)&&l.call(p),0):p.next)&&!(l=l.call(p,m[1])).done)return l;switch(p=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,p=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(l=c.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){c.label=m[1];break}if(m[0]===6&&c.label<l[1]){c.label=l[1],l=m;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(m);break}l[2]&&c.ops.pop(),c.trys.pop();continue}m=a.call(s,c)}catch(v){m=[6,v],p=0}finally{u=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},t=vt&&vt.__await||function(s){return this instanceof t?(this.v=s,this):new t(s)},r=vt&&vt.__asyncGenerator||function(s,a,c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=c.apply(s,a||[]),p,l=[];return p={},d("next"),d("throw"),d("return"),p[Symbol.asyncIterator]=function(){return this},p;function d(g){u[g]&&(p[g]=function(y){return new Promise(function(b,E){l.push([g,y,b,E])>1||f(g,y)})})}function f(g,y){try{h(u[g](y))}catch(b){_(l[0][3],b)}}function h(g){g.value instanceof t?Promise.resolve(g.value.v).then(m,v):_(l[0][2],g)}function m(g){f("next",g)}function v(g){f("throw",g)}function _(g,y){g(y),l.shift(),l.length&&f(l[0][0],l[0][1])}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.isReadableStreamLike=vt.readableStreamLikeToAsyncGenerator=void 0;var n=Ne();function o(s){return r(this,arguments,function(){var c,u,p,l;return e(this,function(d){switch(d.label){case 0:c=s.getReader(),d.label=1;case 1:d.trys.push([1,,9,10]),d.label=2;case 2:return[4,t(c.read())];case 3:return u=d.sent(),p=u.value,l=u.done,l?[4,t(void 0)]:[3,5];case 4:return[2,d.sent()];case 5:return[4,t(p)];case 6:return[4,d.sent()];case 7:return d.sent(),[3,2];case 8:return[3,10];case 9:return c.releaseLock(),[7];case 10:return[2]}})})}vt.readableStreamLikeToAsyncGenerator=o;function i(s){return n.isFunction(s?.getReader)}return vt.isReadableStreamLike=i,vt}var gO;function we(){if(gO)return De;gO=1;var e=De&&De.__awaiter||function(O,S,w,A){function P(T){return T instanceof w?T:new w(function(q){q(T)})}return new(w||(w=Promise))(function(T,q){function D(F){try{k(A.next(F))}catch(Z){q(Z)}}function V(F){try{k(A.throw(F))}catch(Z){q(Z)}}function k(F){F.done?T(F.value):P(F.value).then(D,V)}k((A=A.apply(O,S||[])).next())})},t=De&&De.__generator||function(O,S){var w={label:0,sent:function(){if(T[0]&1)throw T[1];return T[1]},trys:[],ops:[]},A,P,T,q;return q={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function D(k){return function(F){return V([k,F])}}function V(k){if(A)throw new TypeError("Generator is already executing.");for(;w;)try{if(A=1,P&&(T=k[0]&2?P.return:k[0]?P.throw||((T=P.return)&&T.call(P),0):P.next)&&!(T=T.call(P,k[1])).done)return T;switch(P=0,T&&(k=[k[0]&2,T.value]),k[0]){case 0:case 1:T=k;break;case 4:return w.label++,{value:k[1],done:!1};case 5:w.label++,P=k[1],k=[0];continue;case 7:k=w.ops.pop(),w.trys.pop();continue;default:if(T=w.trys,!(T=T.length>0&&T[T.length-1])&&(k[0]===6||k[0]===2)){w=0;continue}if(k[0]===3&&(!T||k[1]>T[0]&&k[1]<T[3])){w.label=k[1];break}if(k[0]===6&&w.label<T[1]){w.label=T[1],T=k;break}if(T&&w.label<T[2]){w.label=T[2],w.ops.push(k);break}T[2]&&w.ops.pop(),w.trys.pop();continue}k=S.call(O,w)}catch(F){k=[6,F],P=0}finally{A=T=0}if(k[0]&5)throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}},r=De&&De.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S=O[Symbol.asyncIterator],w;return S?S.call(O):(O=typeof n=="function"?n(O):O[Symbol.iterator](),w={},A("next"),A("throw"),A("return"),w[Symbol.asyncIterator]=function(){return this},w);function A(T){w[T]=O[T]&&function(q){return new Promise(function(D,V){q=O[T](q),P(D,V,q.done,q.value)})}}function P(T,q,D,V){Promise.resolve(V).then(function(k){T({value:k,done:D})},q)}},n=De&&De.__values||function(O){var S=typeof Symbol=="function"&&Symbol.iterator,w=S&&O[S],A=0;if(w)return w.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&A>=O.length&&(O=void 0),{value:O&&O[A++],done:!O}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(De,"__esModule",{value:!0}),De.fromReadableStreamLike=De.fromAsyncIterable=De.fromIterable=De.fromPromise=De.fromArrayLike=De.fromInteropObservable=De.innerFrom=void 0;var o=gg(),i=hC(),s=Fe(),a=gC(),c=yC(),u=bC(),p=xC(),l=bg(),d=Ne(),f=_C(),h=Ep();function m(O){if(O instanceof s.Observable)return O;if(O!=null){if(a.isInteropObservable(O))return v(O);if(o.isArrayLike(O))return _(O);if(i.isPromise(O))return g(O);if(c.isAsyncIterable(O))return b(O);if(p.isIterable(O))return y(O);if(l.isReadableStreamLike(O))return E(O)}throw u.createInvalidObservableTypeError(O)}De.innerFrom=m;function v(O){return new s.Observable(function(S){var w=O[h.observable]();if(d.isFunction(w.subscribe))return w.subscribe(S);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}De.fromInteropObservable=v;function _(O){return new s.Observable(function(S){for(var w=0;w<O.length&&!S.closed;w++)S.next(O[w]);S.complete()})}De.fromArrayLike=_;function g(O){return new s.Observable(function(S){O.then(function(w){S.closed||(S.next(w),S.complete())},function(w){return S.error(w)}).then(null,f.reportUnhandledError)})}De.fromPromise=g;function y(O){return new s.Observable(function(S){var w,A;try{for(var P=n(O),T=P.next();!T.done;T=P.next()){var q=T.value;if(S.next(q),S.closed)return}}catch(D){w={error:D}}finally{try{T&&!T.done&&(A=P.return)&&A.call(P)}finally{if(w)throw w.error}}S.complete()})}De.fromIterable=y;function b(O){return new s.Observable(function(S){x(O,S).catch(function(w){return S.error(w)})})}De.fromAsyncIterable=b;function E(O){return b(l.readableStreamLikeToAsyncGenerator(O))}De.fromReadableStreamLike=E;function x(O,S){var w,A,P,T;return e(this,void 0,void 0,function(){var q,D;return t(this,function(V){switch(V.label){case 0:V.trys.push([0,5,6,11]),w=r(O),V.label=1;case 1:return[4,w.next()];case 2:if(A=V.sent(),!!A.done)return[3,4];if(q=A.value,S.next(q),S.closed)return[2];V.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return D=V.sent(),P={error:D},[3,11];case 6:return V.trys.push([6,,9,10]),A&&!A.done&&(T=w.return)?[4,T.call(w)]:[3,8];case 7:V.sent(),V.label=8;case 8:return[3,10];case 9:if(P)throw P.error;return[7];case 10:return[7];case 11:return S.complete(),[2]}})})}return De}var qt={},yO;function pe(){if(yO)return qt;yO=1;var e=qt&&qt.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty(qt,"__esModule",{value:!0}),qt.OperatorSubscriber=qt.createOperatorSubscriber=void 0;var t=Tl();function r(o,i,s,a,c){return new n(o,i,s,a,c)}qt.createOperatorSubscriber=r;var n=(function(o){e(i,o);function i(s,a,c,u,p,l){var d=o.call(this,s)||this;return d.onFinalize=p,d.shouldUnsubscribe=l,d._next=a?function(f){try{a(f)}catch(h){s.error(h)}}:o.prototype._next,d._error=u?function(f){try{u(f)}catch(h){s.error(h)}finally{this.unsubscribe()}}:o.prototype._error,d._complete=c?function(){try{c()}catch(f){s.error(f)}finally{this.unsubscribe()}}:o.prototype._complete,d}return i.prototype.unsubscribe=function(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;o.prototype.unsubscribe.call(this),!a&&((s=this.onFinalize)===null||s===void 0||s.call(this))}},i})(t.Subscriber);return qt.OperatorSubscriber=n,qt}var bO;function Eg(){if(bO)return ha;bO=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.audit=void 0;var e=ce(),t=we(),r=pe();function n(o){return e.operate(function(i,s){var a=!1,c=null,u=null,p=!1,l=function(){if(u?.unsubscribe(),u=null,a){a=!1;var f=c;c=null,s.next(f)}p&&s.complete()},d=function(){u=null,p&&s.complete()};i.subscribe(r.createOperatorSubscriber(s,function(f){a=!0,c=f,u||t.innerFrom(o(f)).subscribe(u=r.createOperatorSubscriber(s,l,d))},function(){p=!0,(!a||!u||u.closed)&&s.complete()}))})}return ha.audit=n,ha}var Ca={},Xh={},Tr={},Ar={},EO;function vU(){if(EO)return Ar;EO=1;var e=Ar&&Ar.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.Action=void 0;var t=bt(),r=(function(n){e(o,n);function o(i,s){return n.call(this)||this}return o.prototype.schedule=function(i,s){return this},o})(t.Subscription);return Ar.Action=r,Ar}var Rr={},xO;function mU(){return xO||(xO=1,(function(e){var t=Rr&&Rr.__read||function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,c=[],u;try{for(;(o===void 0||o-- >0)&&!(a=s.next()).done;)c.push(a.value)}catch(p){u={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},r=Rr&&Rr.__spreadArray||function(n,o){for(var i=0,s=o.length,a=n.length;i<s;i++,a++)n[a]=o[i];return n};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a=e.intervalProvider.delegate;return a?.setInterval?a.setInterval.apply(a,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(n){var o=e.intervalProvider.delegate;return(o?.clearInterval||clearInterval)(n)},delegate:void 0}})(Rr)),Rr}var OO;function Al(){if(OO)return Tr;OO=1;var e=Tr&&Tr.__extends||(function(){var i=function(s,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(c[p]=u[p])},i(s,a)};return function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");i(s,a);function c(){this.constructor=s}s.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}})();Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.AsyncAction=void 0;var t=vU(),r=mU(),n=cr(),o=(function(i){e(s,i);function s(a,c){var u=i.call(this,a,c)||this;return u.scheduler=a,u.work=c,u.pending=!1,u}return s.prototype.schedule=function(a,c){var u;if(c===void 0&&(c=0),this.closed)return this;this.state=a;var p=this.id,l=this.scheduler;return p!=null&&(this.id=this.recycleAsyncId(l,p,c)),this.pending=!0,this.delay=c,this.id=(u=this.id)!==null&&u!==void 0?u:this.requestAsyncId(l,this.id,c),this},s.prototype.requestAsyncId=function(a,c,u){return u===void 0&&(u=0),r.intervalProvider.setInterval(a.flush.bind(a,this),u)},s.prototype.recycleAsyncId=function(a,c,u){if(u===void 0&&(u=0),u!=null&&this.delay===u&&this.pending===!1)return c;c!=null&&r.intervalProvider.clearInterval(c)},s.prototype.execute=function(a,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var u=this._execute(a,c);if(u)return u;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},s.prototype._execute=function(a,c){var u=!1,p;try{this.work(a)}catch(l){u=!0,p=l||new Error("Scheduled action threw falsy error")}if(u)return this.unsubscribe(),p},s.prototype.unsubscribe=function(){if(!this.closed){var a=this,c=a.id,u=a.scheduler,p=u.actions;this.work=this.state=this.scheduler=null,this.pending=!1,n.arrRemove(p,this),c!=null&&(this.id=this.recycleAsyncId(u,c,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},s})(t.Action);return Tr.AsyncAction=o,Tr}var Mr={},ja={},Jh={},wO;function xg(){return wO||(wO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})(Jh)),Jh}var SO;function OC(){if(SO)return ja;SO=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.Scheduler=void 0;var e=xg(),t=(function(){function r(n,o){o===void 0&&(o=r.now),this.schedulerActionCtor=n,this.now=o}return r.prototype.schedule=function(n,o,i){return o===void 0&&(o=0),new this.schedulerActionCtor(this,n).schedule(i,o)},r.now=e.dateTimestampProvider.now,r})();return ja.Scheduler=t,ja}var PO;function Rl(){if(PO)return Mr;PO=1;var e=Mr&&Mr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.AsyncScheduler=void 0;var t=OC(),r=(function(n){e(o,n);function o(i,s){s===void 0&&(s=t.Scheduler.now);var a=n.call(this,i,s)||this;return a.actions=[],a._active=!1,a}return o.prototype.flush=function(i){var s=this.actions;if(this._active){s.push(i);return}var a;this._active=!0;do if(a=i.execute(i.state,i.delay))break;while(i=s.shift());if(this._active=!1,a){for(;i=s.shift();)i.unsubscribe();throw a}},o})(t.Scheduler);return Mr.AsyncScheduler=r,Mr}var TO;function mt(){return TO||(TO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var t=Al(),r=Rl();e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})(Xh)),Xh}var Na={},qa={},AO;function Op(){if(AO)return qa;AO=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.isScheduler=void 0;var e=Ne();function t(r){return r&&e.isFunction(r.schedule)}return qa.isScheduler=t,qa}var Fa={},RO;function Og(){if(RO)return Fa;RO=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.isValidDate=void 0;function e(t){return t instanceof Date&&!isNaN(t)}return Fa.isValidDate=e,Fa}var MO;function bn(){if(MO)return Na;MO=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.timer=void 0;var e=Fe(),t=mt(),r=Op(),n=Og();function o(i,s,a){i===void 0&&(i=0),a===void 0&&(a=t.async);var c=-1;return s!=null&&(r.isScheduler(s)?a=s:c=s),new e.Observable(function(u){var p=n.isValidDate(i)?+i-a.now():i;p<0&&(p=0);var l=0;return a.schedule(function(){u.closed||(u.next(l++),0<=c?this.schedule(void 0,c):u.complete())},p)})}return Na.timer=o,Na}var IO;function wC(){if(IO)return Ca;IO=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.auditTime=void 0;var e=mt(),t=Eg(),r=bn();function n(o,i){return i===void 0&&(i=e.asyncScheduler),t.audit(function(){return r.timer(o,i)})}return Ca.auditTime=n,Ca}var ka={},CO;function SC(){if(CO)return ka;CO=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.buffer=void 0;var e=ce(),t=nt(),r=pe(),n=we();function o(i){return e.operate(function(s,a){var c=[];return s.subscribe(r.createOperatorSubscriber(a,function(u){return c.push(u)},function(){a.next(c),a.complete()})),n.innerFrom(i).subscribe(r.createOperatorSubscriber(a,function(){var u=c;c=[],a.next(u)},t.noop)),function(){c=null}})}return ka.buffer=o,ka}var Ir={},jO;function PC(){if(jO)return Ir;jO=1;var e=Ir&&Ir.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&i[s],c=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.bufferCount=void 0;var t=ce(),r=pe(),n=cr();function o(i,s){return s===void 0&&(s=null),s=s??i,t.operate(function(a,c){var u=[],p=0;a.subscribe(r.createOperatorSubscriber(c,function(l){var d,f,h,m,v=null;p++%s===0&&u.push([]);try{for(var _=e(u),g=_.next();!g.done;g=_.next()){var y=g.value;y.push(l),i<=y.length&&(v=v??[],v.push(y))}}catch(x){d={error:x}}finally{try{g&&!g.done&&(f=_.return)&&f.call(_)}finally{if(d)throw d.error}}if(v)try{for(var b=e(v),E=b.next();!E.done;E=b.next()){var y=E.value;n.arrRemove(u,y),c.next(y)}}catch(x){h={error:x}}finally{try{E&&!E.done&&(m=b.return)&&m.call(b)}finally{if(h)throw h.error}}},function(){var l,d;try{for(var f=e(u),h=f.next();!h.done;h=f.next()){var m=h.value;c.next(m)}}catch(v){l={error:v}}finally{try{h&&!h.done&&(d=f.return)&&d.call(f)}finally{if(l)throw l.error}}c.complete()},void 0,function(){u=null}))})}return Ir.bufferCount=o,Ir}var Cr={},Ft={},NO;function _t(){if(NO)return Ft;NO=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.popNumber=Ft.popScheduler=Ft.popResultSelector=void 0;var e=Ne(),t=Op();function r(s){return s[s.length-1]}function n(s){return e.isFunction(r(s))?s.pop():void 0}Ft.popResultSelector=n;function o(s){return t.isScheduler(r(s))?s.pop():void 0}Ft.popScheduler=o;function i(s,a){return typeof r(s)=="number"?s.pop():a}return Ft.popNumber=i,Ft}var Da={},qO;function ur(){if(qO)return Da;qO=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.executeSchedule=void 0;function e(t,r,n,o,i){o===void 0&&(o=0),i===void 0&&(i=!1);var s=r.schedule(function(){n(),i?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(s),!i)return s}return Da.executeSchedule=e,Da}var FO;function TC(){if(FO)return Cr;FO=1;var e=Cr&&Cr.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.bufferTime=void 0;var t=bt(),r=ce(),n=pe(),o=cr(),i=mt(),s=_t(),a=ur();function c(u){for(var p,l,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=(p=s.popScheduler(d))!==null&&p!==void 0?p:i.asyncScheduler,m=(l=d[0])!==null&&l!==void 0?l:null,v=d[1]||1/0;return r.operate(function(_,g){var y=[],b=!1,E=function(S){var w=S.buffer,A=S.subs;A.unsubscribe(),o.arrRemove(y,S),g.next(w),b&&x()},x=function(){if(y){var S=new t.Subscription;g.add(S);var w=[],A={buffer:w,subs:S};y.push(A),a.executeSchedule(S,h,function(){return E(A)},u)}};m!==null&&m>=0?a.executeSchedule(g,h,x,m,!0):b=!0,x();var O=n.createOperatorSubscriber(g,function(S){var w,A,P=y.slice();try{for(var T=e(P),q=T.next();!q.done;q=T.next()){var D=q.value,V=D.buffer;V.push(S),v<=V.length&&E(D)}}catch(k){w={error:k}}finally{try{q&&!q.done&&(A=T.return)&&A.call(T)}finally{if(w)throw w.error}}},function(){for(;y?.length;)g.next(y.shift().buffer);O?.unsubscribe(),g.complete(),g.unsubscribe()},void 0,function(){return y=null});_.subscribe(O)})}return Cr.bufferTime=c,Cr}var jr={},kO;function AC(){if(kO)return jr;kO=1;var e=jr&&jr.__values||function(c){var u=typeof Symbol=="function"&&Symbol.iterator,p=u&&c[u],l=0;if(p)return p.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&l>=c.length&&(c=void 0),{value:c&&c[l++],done:!c}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(jr,"__esModule",{value:!0}),jr.bufferToggle=void 0;var t=bt(),r=ce(),n=we(),o=pe(),i=nt(),s=cr();function a(c,u){return r.operate(function(p,l){var d=[];n.innerFrom(c).subscribe(o.createOperatorSubscriber(l,function(f){var h=[];d.push(h);var m=new t.Subscription,v=function(){s.arrRemove(d,h),l.next(h),m.unsubscribe()};m.add(n.innerFrom(u(f)).subscribe(o.createOperatorSubscriber(l,v,i.noop)))},i.noop)),p.subscribe(o.createOperatorSubscriber(l,function(f){var h,m;try{for(var v=e(d),_=v.next();!_.done;_=v.next()){var g=_.value;g.push(f)}}catch(y){h={error:y}}finally{try{_&&!_.done&&(m=v.return)&&m.call(v)}finally{if(h)throw h.error}}},function(){for(;d.length>0;)l.next(d.shift());l.complete()}))})}return jr.bufferToggle=a,jr}var La={},DO;function RC(){if(DO)return La;DO=1,Object.defineProperty(La,"__esModule",{value:!0}),La.bufferWhen=void 0;var e=ce(),t=nt(),r=pe(),n=we();function o(i){return e.operate(function(s,a){var c=null,u=null,p=function(){u?.unsubscribe();var l=c;c=[],l&&a.next(l),n.innerFrom(i()).subscribe(u=r.createOperatorSubscriber(a,p,t.noop))};p(),s.subscribe(r.createOperatorSubscriber(a,function(l){return c?.push(l)},function(){c&&a.next(c),a.complete()},void 0,function(){return c=u=null}))})}return La.bufferWhen=o,La}var Ua={},LO;function MC(){if(LO)return Ua;LO=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.catchError=void 0;var e=we(),t=pe(),r=ce();function n(o){return r.operate(function(i,s){var a=null,c=!1,u;a=i.subscribe(t.createOperatorSubscriber(s,void 0,void 0,function(p){u=e.innerFrom(o(p,n(o)(i))),a?(a.unsubscribe(),a=null,u.subscribe(s)):c=!0})),c&&(a.unsubscribe(),a=null,u.subscribe(s))})}return Ua.catchError=n,Ua}var za={},Ba={},Nr={},Ha={},UO;function IC(){if(UO)return Ha;UO=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.argsArgArrayOrObject=void 0;var e=Array.isArray,t=Object.getPrototypeOf,r=Object.prototype,n=Object.keys;function o(s){if(s.length===1){var a=s[0];if(e(a))return{args:a,keys:null};if(i(a)){var c=n(a);return{args:c.map(function(u){return a[u]}),keys:c}}}return{args:s,keys:null}}Ha.argsArgArrayOrObject=o;function i(s){return s&&typeof s=="object"&&t(s)===r}return Ha}var Va={},Ga={},Wa={},Za={},zO;function Ml(){if(zO)return Za;zO=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.observeOn=void 0;var e=ur(),t=ce(),r=pe();function n(o,i){return i===void 0&&(i=0),t.operate(function(s,a){s.subscribe(r.createOperatorSubscriber(a,function(c){return e.executeSchedule(a,o,function(){return a.next(c)},i)},function(){return e.executeSchedule(a,o,function(){return a.complete()},i)},function(c){return e.executeSchedule(a,o,function(){return a.error(c)},i)}))})}return Za.observeOn=n,Za}var Ka={},BO;function Il(){if(BO)return Ka;BO=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.subscribeOn=void 0;var e=ce();function t(r,n){return n===void 0&&(n=0),e.operate(function(o,i){i.add(r.schedule(function(){return o.subscribe(i)},n))})}return Ka.subscribeOn=t,Ka}var HO;function _U(){if(HO)return Wa;HO=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.scheduleObservable=void 0;var e=we(),t=Ml(),r=Il();function n(o,i){return e.innerFrom(o).pipe(r.subscribeOn(i),t.observeOn(i))}return Wa.scheduleObservable=n,Wa}var Ya={},VO;function gU(){if(VO)return Ya;VO=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.schedulePromise=void 0;var e=we(),t=Ml(),r=Il();function n(o,i){return e.innerFrom(o).pipe(r.subscribeOn(i),t.observeOn(i))}return Ya.schedulePromise=n,Ya}var Xa={},GO;function yU(){if(GO)return Xa;GO=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.scheduleArray=void 0;var e=Fe();function t(r,n){return new e.Observable(function(o){var i=0;return n.schedule(function(){i===r.length?o.complete():(o.next(r[i++]),o.closed||this.schedule())})})}return Xa.scheduleArray=t,Xa}var Ja={},WO;function CC(){if(WO)return Ja;WO=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.scheduleIterable=void 0;var e=Fe(),t=EC(),r=Ne(),n=ur();function o(i,s){return new e.Observable(function(a){var c;return n.executeSchedule(a,s,function(){c=i[t.iterator](),n.executeSchedule(a,s,function(){var u,p,l;try{u=c.next(),p=u.value,l=u.done}catch(d){a.error(d);return}l?a.complete():a.next(p)},0,!0)}),function(){return r.isFunction(c?.return)&&c.return()}})}return Ja.scheduleIterable=o,Ja}var Qa={},ZO;function jC(){if(ZO)return Qa;ZO=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.scheduleAsyncIterable=void 0;var e=Fe(),t=ur();function r(n,o){if(!n)throw new Error("Iterable cannot be null");return new e.Observable(function(i){t.executeSchedule(i,o,function(){var s=n[Symbol.asyncIterator]();t.executeSchedule(i,o,function(){s.next().then(function(a){a.done?i.complete():i.next(a.value)})},0,!0)})})}return Qa.scheduleAsyncIterable=r,Qa}var $a={},KO;function bU(){if(KO)return $a;KO=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.scheduleReadableStreamLike=void 0;var e=jC(),t=bg();function r(n,o){return e.scheduleAsyncIterable(t.readableStreamLikeToAsyncGenerator(n),o)}return $a.scheduleReadableStreamLike=r,$a}var YO;function NC(){if(YO)return Ga;YO=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.scheduled=void 0;var e=_U(),t=gU(),r=yU(),n=CC(),o=jC(),i=gC(),s=hC(),a=gg(),c=xC(),u=yC(),p=bC(),l=bg(),d=bU();function f(h,m){if(h!=null){if(i.isInteropObservable(h))return e.scheduleObservable(h,m);if(a.isArrayLike(h))return r.scheduleArray(h,m);if(s.isPromise(h))return t.schedulePromise(h,m);if(u.isAsyncIterable(h))return o.scheduleAsyncIterable(h,m);if(c.isIterable(h))return n.scheduleIterable(h,m);if(l.isReadableStreamLike(h))return d.scheduleReadableStreamLike(h,m)}throw p.createInvalidObservableTypeError(h)}return Ga.scheduled=f,Ga}var XO;function lr(){if(XO)return Va;XO=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.from=void 0;var e=NC(),t=we();function r(n,o){return o?e.scheduled(n,o):t.innerFrom(n)}return Va.from=r,Va}var kt={},eo={},JO;function dr(){if(JO)return eo;JO=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.map=void 0;var e=ce(),t=pe();function r(n,o){return e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){s.next(n.call(o,c,a++))}))})}return eo.map=r,eo}var QO;function En(){if(QO)return kt;QO=1;var e=kt&&kt.__read||function(s,a){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(a===void 0||a-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},t=kt&&kt.__spreadArray||function(s,a){for(var c=0,u=a.length,p=s.length;c<u;c++,p++)s[p]=a[c];return s};Object.defineProperty(kt,"__esModule",{value:!0}),kt.mapOneOrManyArgs=void 0;var r=dr(),n=Array.isArray;function o(s,a){return n(a)?s.apply(void 0,t([],e(a))):s(a)}function i(s){return r.map(function(a){return o(s,a)})}return kt.mapOneOrManyArgs=i,kt}var to={},$O;function qC(){if($O)return to;$O=1,Object.defineProperty(to,"__esModule",{value:!0}),to.createObject=void 0;function e(t,r){return t.reduce(function(n,o,i){return n[o]=r[i],n},{})}return to.createObject=e,to}var ew;function wg(){if(ew)return Nr;ew=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.combineLatestInit=Nr.combineLatest=void 0;var e=Fe(),t=IC(),r=lr(),n=it(),o=En(),i=_t(),s=qC(),a=pe(),c=ur();function u(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=i.popScheduler(d),m=i.popResultSelector(d),v=t.argsArgArrayOrObject(d),_=v.args,g=v.keys;if(_.length===0)return r.from([],h);var y=new e.Observable(p(_,h,g?function(b){return s.createObject(g,b)}:n.identity));return m?y.pipe(o.mapOneOrManyArgs(m)):y}Nr.combineLatest=u;function p(d,f,h){return h===void 0&&(h=n.identity),function(m){l(f,function(){for(var v=d.length,_=new Array(v),g=v,y=v,b=function(x){l(f,function(){var O=r.from(d[x],f),S=!1;O.subscribe(a.createOperatorSubscriber(m,function(w){_[x]=w,S||(S=!0,y--),y||m.next(h(_.slice()))},function(){--g||m.complete()}))},m)},E=0;E<v;E++)b(E)},m)}}Nr.combineLatestInit=p;function l(d,f,h){d?c.executeSchedule(h,d,f):f()}return Nr}var ro={},no={},io={},tw;function Sg(){if(tw)return io;tw=1,Object.defineProperty(io,"__esModule",{value:!0}),io.mergeInternals=void 0;var e=we(),t=ur(),r=pe();function n(o,i,s,a,c,u,p,l){var d=[],f=0,h=0,m=!1,v=function(){m&&!d.length&&!f&&i.complete()},_=function(y){return f<a?g(y):d.push(y)},g=function(y){u&&i.next(y),f++;var b=!1;e.innerFrom(s(y,h++)).subscribe(r.createOperatorSubscriber(i,function(E){c?.(E),u?_(E):i.next(E)},function(){b=!0},void 0,function(){if(b)try{f--;for(var E=function(){var x=d.shift();p?t.executeSchedule(i,p,function(){return g(x)}):g(x)};d.length&&f<a;)E();v()}catch(x){i.error(x)}}))};return o.subscribe(r.createOperatorSubscriber(i,_,function(){m=!0,v()})),function(){l?.()}}return io.mergeInternals=n,io}var rw;function tr(){if(rw)return no;rw=1,Object.defineProperty(no,"__esModule",{value:!0}),no.mergeMap=void 0;var e=dr(),t=we(),r=ce(),n=Sg(),o=Ne();function i(s,a,c){return c===void 0&&(c=1/0),o.isFunction(a)?i(function(u,p){return e.map(function(l,d){return a(u,l,p,d)})(t.innerFrom(s(u,p)))},c):(typeof a=="number"&&(c=a),r.operate(function(u,p){return n.mergeInternals(u,p,s,c)}))}return no.mergeMap=i,no}var ao={},oo={},so={},nw;function FC(){if(nw)return so;nw=1,Object.defineProperty(so,"__esModule",{value:!0}),so.scanInternals=void 0;var e=pe();function t(r,n,o,i,s){return function(a,c){var u=o,p=n,l=0;a.subscribe(e.createOperatorSubscriber(c,function(d){var f=l++;p=u?r(p,d,f):(u=!0,d),i&&c.next(p)},s&&(function(){u&&c.next(p),c.complete()})))}}return so.scanInternals=t,so}var iw;function pi(){if(iw)return oo;iw=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.reduce=void 0;var e=FC(),t=ce();function r(n,o){return t.operate(e.scanInternals(n,o,arguments.length>=2,!1,!0))}return oo.reduce=r,oo}var aw;function Pg(){if(aw)return ao;aw=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.toArray=void 0;var e=pi(),t=ce(),r=function(o,i){return o.push(i),o};function n(){return t.operate(function(o,i){e.reduce(r,[])(o).subscribe(i)})}return ao.toArray=n,ao}var ow;function kC(){if(ow)return ro;ow=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.joinAllInternals=void 0;var e=it(),t=En(),r=xp(),n=tr(),o=Pg();function i(s,a){return r.pipe(o.toArray(),n.mergeMap(function(c){return s(c)}),a?t.mapOneOrManyArgs(a):e.identity)}return ro.joinAllInternals=i,ro}var sw;function Tg(){if(sw)return Ba;sw=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.combineLatestAll=void 0;var e=wg(),t=kC();function r(n){return t.joinAllInternals(e.combineLatest,n)}return Ba.combineLatestAll=r,Ba}var cw;function DC(){if(cw)return za;cw=1,Object.defineProperty(za,"__esModule",{value:!0}),za.combineAll=void 0;var e=Tg();return za.combineAll=e.combineLatestAll,za}var Dt={},co={},uw;function fi(){if(uw)return co;uw=1,Object.defineProperty(co,"__esModule",{value:!0}),co.argsOrArgArray=void 0;var e=Array.isArray;function t(r){return r.length===1&&e(r[0])?r[0]:r}return co.argsOrArgArray=t,co}var lw;function LC(){if(lw)return Dt;lw=1;var e=Dt&&Dt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Dt&&Dt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.combineLatest=void 0;var r=wg(),n=ce(),o=fi(),i=En(),s=xp(),a=_t();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=a.popResultSelector(u);return l?s.pipe(c.apply(void 0,t([],e(u))),i.mapOneOrManyArgs(l)):n.operate(function(d,f){r.combineLatestInit(t([d],e(o.argsOrArgArray(u))))(f)})}return Dt.combineLatest=c,Dt}var Lt={},dw;function UC(){if(dw)return Lt;dw=1;var e=Lt&&Lt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=Lt&&Lt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.combineLatestWith=void 0;var r=LC();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.combineLatest.apply(void 0,t([],e(o)))}return Lt.combineLatestWith=n,Lt}var Ut={},uo={},lo={},pw;function Cl(){if(pw)return lo;pw=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.mergeAll=void 0;var e=tr(),t=it();function r(n){return n===void 0&&(n=1/0),e.mergeMap(t.identity,n)}return lo.mergeAll=r,lo}var fw;function wp(){if(fw)return uo;fw=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.concatAll=void 0;var e=Cl();function t(){return e.mergeAll(1)}return uo.concatAll=t,uo}var hw;function zC(){if(hw)return Ut;hw=1;var e=Ut&&Ut.__read||function(a,c){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var p=u.call(a),l,d=[],f;try{for(;(c===void 0||c-- >0)&&!(l=p.next()).done;)d.push(l.value)}catch(h){f={error:h}}finally{try{l&&!l.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return d},t=Ut&&Ut.__spreadArray||function(a,c){for(var u=0,p=c.length,l=a.length;u<p;u++,l++)a[l]=c[u];return a};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.concat=void 0;var r=ce(),n=wp(),o=_t(),i=lr();function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var u=o.popScheduler(a);return r.operate(function(p,l){n.concatAll()(i.from(t([p],e(a)),u)).subscribe(l)})}return Ut.concat=s,Ut}var po={},vw;function Ag(){if(vw)return po;vw=1,Object.defineProperty(po,"__esModule",{value:!0}),po.concatMap=void 0;var e=tr(),t=Ne();function r(n,o){return t.isFunction(o)?e.mergeMap(n,o,1):e.mergeMap(n,1)}return po.concatMap=r,po}var fo={},mw;function BC(){if(mw)return fo;mw=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.concatMapTo=void 0;var e=Ag(),t=Ne();function r(n,o){return t.isFunction(o)?e.concatMap(function(){return n},o):e.concatMap(function(){return n})}return fo.concatMapTo=r,fo}var zt={},_w;function HC(){if(_w)return zt;_w=1;var e=zt&&zt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=zt&&zt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(zt,"__esModule",{value:!0}),zt.concatWith=void 0;var r=zC();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.concat.apply(void 0,t([],e(o)))}return zt.concatWith=n,zt}var ho={},St={},vo={},gw;function VC(){if(gw)return vo;gw=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.ObjectUnsubscribedError=void 0;var e=yn();return vo.ObjectUnsubscribedError=e.createErrorClass(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vo}var yw;function at(){if(yw)return St;yw=1;var e=St&&St.__extends||(function(){var u=function(p,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},u(p,l)};return function(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(p,l);function d(){this.constructor=p}p.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}})(),t=St&&St.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(St,"__esModule",{value:!0}),St.AnonymousSubject=St.Subject=void 0;var r=Fe(),n=bt(),o=VC(),i=cr(),s=yg(),a=(function(u){e(p,u);function p(){var l=u.call(this)||this;return l.closed=!1,l.currentObservers=null,l.observers=[],l.isStopped=!1,l.hasError=!1,l.thrownError=null,l}return p.prototype.lift=function(l){var d=new c(this,this);return d.operator=l,d},p.prototype._throwIfClosed=function(){if(this.closed)throw new o.ObjectUnsubscribedError},p.prototype.next=function(l){var d=this;s.errorContext(function(){var f,h;if(d._throwIfClosed(),!d.isStopped){d.currentObservers||(d.currentObservers=Array.from(d.observers));try{for(var m=t(d.currentObservers),v=m.next();!v.done;v=m.next()){var _=v.value;_.next(l)}}catch(g){f={error:g}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(f)throw f.error}}}})},p.prototype.error=function(l){var d=this;s.errorContext(function(){if(d._throwIfClosed(),!d.isStopped){d.hasError=d.isStopped=!0,d.thrownError=l;for(var f=d.observers;f.length;)f.shift().error(l)}})},p.prototype.complete=function(){var l=this;s.errorContext(function(){if(l._throwIfClosed(),!l.isStopped){l.isStopped=!0;for(var d=l.observers;d.length;)d.shift().complete()}})},p.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(p.prototype,"observed",{get:function(){var l;return((l=this.observers)===null||l===void 0?void 0:l.length)>0},enumerable:!1,configurable:!0}),p.prototype._trySubscribe=function(l){return this._throwIfClosed(),u.prototype._trySubscribe.call(this,l)},p.prototype._subscribe=function(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)},p.prototype._innerSubscribe=function(l){var d=this,f=this,h=f.hasError,m=f.isStopped,v=f.observers;return h||m?n.EMPTY_SUBSCRIPTION:(this.currentObservers=null,v.push(l),new n.Subscription(function(){d.currentObservers=null,i.arrRemove(v,l)}))},p.prototype._checkFinalizedStatuses=function(l){var d=this,f=d.hasError,h=d.thrownError,m=d.isStopped;f?l.error(h):m&&l.complete()},p.prototype.asObservable=function(){var l=new r.Observable;return l.source=this,l},p.create=function(l,d){return new c(l,d)},p})(r.Observable);St.Subject=a;var c=(function(u){e(p,u);function p(l,d){var f=u.call(this)||this;return f.destination=l,f.source=d,f}return p.prototype.next=function(l){var d,f;(f=(d=this.destination)===null||d===void 0?void 0:d.next)===null||f===void 0||f.call(d,l)},p.prototype.error=function(l){var d,f;(f=(d=this.destination)===null||d===void 0?void 0:d.error)===null||f===void 0||f.call(d,l)},p.prototype.complete=function(){var l,d;(d=(l=this.destination)===null||l===void 0?void 0:l.complete)===null||d===void 0||d.call(l)},p.prototype._subscribe=function(l){var d,f;return(f=(d=this.source)===null||d===void 0?void 0:d.subscribe(l))!==null&&f!==void 0?f:n.EMPTY_SUBSCRIPTION},p})(a);return St.AnonymousSubject=c,St}var mo={},bw;function EU(){if(bw)return mo;bw=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.fromSubscribable=void 0;var e=Fe();function t(r){return new e.Observable(function(n){return r.subscribe(n)})}return mo.fromSubscribable=t,mo}var Ew;function Sp(){if(Ew)return ho;Ew=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.connect=void 0;var e=at(),t=we(),r=ce(),n=EU(),o={connector:function(){return new e.Subject}};function i(s,a){a===void 0&&(a=o);var c=a.connector;return r.operate(function(u,p){var l=c();t.innerFrom(s(n.fromSubscribable(l))).subscribe(p),p.add(u.subscribe(l))})}return ho.connect=i,ho}var _o={},xw;function GC(){if(xw)return _o;xw=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.count=void 0;var e=pi();function t(r){return e.reduce(function(n,o,i){return!r||r(o,i)?n+1:n},0)}return _o.count=t,_o}var go={},Ow;function WC(){if(Ow)return go;Ow=1,Object.defineProperty(go,"__esModule",{value:!0}),go.debounce=void 0;var e=ce(),t=nt(),r=pe(),n=we();function o(i){return e.operate(function(s,a){var c=!1,u=null,p=null,l=function(){if(p?.unsubscribe(),p=null,c){c=!1;var d=u;u=null,a.next(d)}};s.subscribe(r.createOperatorSubscriber(a,function(d){p?.unsubscribe(),c=!0,u=d,p=r.createOperatorSubscriber(a,l,t.noop),n.innerFrom(i(d)).subscribe(p)},function(){l(),a.complete()},void 0,function(){u=p=null}))})}return go.debounce=o,go}var yo={},ww;function ZC(){if(ww)return yo;ww=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.debounceTime=void 0;var e=mt(),t=ce(),r=pe();function n(o,i){return i===void 0&&(i=e.asyncScheduler),t.operate(function(s,a){var c=null,u=null,p=null,l=function(){if(c){c.unsubscribe(),c=null;var f=u;u=null,a.next(f)}};function d(){var f=p+o,h=i.now();if(h<f){c=this.schedule(void 0,f-h),a.add(c);return}l()}s.subscribe(r.createOperatorSubscriber(a,function(f){u=f,p=i.now(),c||(c=i.schedule(d,o),a.add(c))},function(){l(),a.complete()},void 0,function(){u=c=null}))})}return yo.debounceTime=n,yo}var bo={},Sw;function jl(){if(Sw)return bo;Sw=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.defaultIfEmpty=void 0;var e=ce(),t=pe();function r(n){return e.operate(function(o,i){var s=!1;o.subscribe(t.createOperatorSubscriber(i,function(a){s=!0,i.next(a)},function(){s||i.next(n),i.complete()}))})}return bo.defaultIfEmpty=r,bo}var Eo={},xo={},Oo={},Pw;function Pp(){if(Pw)return Oo;Pw=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.concat=void 0;var e=wp(),t=_t(),r=lr();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.concatAll()(r.from(o,t.popScheduler(o)))}return Oo.concat=n,Oo}var wo={},Qh={},Tw;function It(){return Tw||(Tw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var t=Fe();e.EMPTY=new t.Observable(function(o){return o.complete()});function r(o){return o?n(o):e.EMPTY}e.empty=r;function n(o){return new t.Observable(function(i){return o.schedule(function(){return i.complete()})})}})(Qh)),Qh}var Aw;function Nl(){if(Aw)return wo;Aw=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.take=void 0;var e=It(),t=ce(),r=pe();function n(o){return o<=0?function(){return e.EMPTY}:t.operate(function(i,s){var a=0;i.subscribe(r.createOperatorSubscriber(s,function(c){++a<=o&&(s.next(c),o<=a&&s.complete())}))})}return wo.take=n,wo}var So={},Rw;function Rg(){if(Rw)return So;Rw=1,Object.defineProperty(So,"__esModule",{value:!0}),So.ignoreElements=void 0;var e=ce(),t=pe(),r=nt();function n(){return e.operate(function(o,i){o.subscribe(t.createOperatorSubscriber(i,r.noop))})}return So.ignoreElements=n,So}var Po={},Mw;function Mg(){if(Mw)return Po;Mw=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.mapTo=void 0;var e=dr();function t(r){return e.map(function(){return r})}return Po.mapTo=t,Po}var Iw;function Ig(){if(Iw)return xo;Iw=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.delayWhen=void 0;var e=Pp(),t=Nl(),r=Rg(),n=Mg(),o=tr(),i=we();function s(a,c){return c?function(u){return e.concat(c.pipe(t.take(1),r.ignoreElements()),u.pipe(s(a)))}:o.mergeMap(function(u,p){return i.innerFrom(a(u,p)).pipe(t.take(1),n.mapTo(u))})}return xo.delayWhen=s,xo}var Cw;function KC(){if(Cw)return Eo;Cw=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.delay=void 0;var e=mt(),t=Ig(),r=bn();function n(o,i){i===void 0&&(i=e.asyncScheduler);var s=r.timer(o,i);return t.delayWhen(function(){return s})}return Eo.delay=n,Eo}var To={},$h={},Ao={},jw;function Cg(){if(jw)return Ao;jw=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.of=void 0;var e=_t(),t=lr();function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.popScheduler(n);return t.from(n,i)}return Ao.of=r,Ao}var Ro={},Nw;function YC(){if(Nw)return Ro;Nw=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.throwError=void 0;var e=Fe(),t=Ne();function r(n,o){var i=t.isFunction(n)?n:function(){return n},s=function(a){return a.error(i())};return new e.Observable(o?function(a){return o.schedule(s,0,a)}:s)}return Ro.throwError=r,Ro}var qw;function jg(){return qw||(qw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=It(),r=Cg(),n=YC(),o=Ne();(function(a){a.NEXT="N",a.ERROR="E",a.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var i=(function(){function a(c,u,p){this.kind=c,this.value=u,this.error=p,this.hasValue=c==="N"}return a.prototype.observe=function(c){return s(this,c)},a.prototype.do=function(c,u,p){var l=this,d=l.kind,f=l.value,h=l.error;return d==="N"?c?.(f):d==="E"?u?.(h):p?.()},a.prototype.accept=function(c,u,p){var l;return o.isFunction((l=c)===null||l===void 0?void 0:l.next)?this.observe(c):this.do(c,u,p)},a.prototype.toObservable=function(){var c=this,u=c.kind,p=c.value,l=c.error,d=u==="N"?r.of(p):u==="E"?n.throwError(function(){return l}):u==="C"?t.EMPTY:0;if(!d)throw new TypeError("Unexpected notification kind "+u);return d},a.createNext=function(c){return new a("N",c)},a.createError=function(c){return new a("E",void 0,c)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a})();e.Notification=i;function s(a,c){var u,p,l,d=a,f=d.kind,h=d.value,m=d.error;if(typeof f!="string")throw new TypeError('Invalid notification, missing "kind"');f==="N"?(u=c.next)===null||u===void 0||u.call(c,h):f==="E"?(p=c.error)===null||p===void 0||p.call(c,m):(l=c.complete)===null||l===void 0||l.call(c)}e.observeNotification=s})($h)),$h}var Fw;function XC(){if(Fw)return To;Fw=1,Object.defineProperty(To,"__esModule",{value:!0}),To.dematerialize=void 0;var e=jg(),t=ce(),r=pe();function n(){return t.operate(function(o,i){o.subscribe(r.createOperatorSubscriber(i,function(s){return e.observeNotification(s,i)}))})}return To.dematerialize=n,To}var Mo={},kw;function JC(){if(kw)return Mo;kw=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.distinct=void 0;var e=ce(),t=pe(),r=nt(),n=we();function o(i,s){return e.operate(function(a,c){var u=new Set;a.subscribe(t.createOperatorSubscriber(c,function(p){var l=i?i(p):p;u.has(l)||(u.add(l),c.next(p))})),s&&n.innerFrom(s).subscribe(t.createOperatorSubscriber(c,function(){return u.clear()},r.noop))})}return Mo.distinct=o,Mo}var Io={},Dw;function Ng(){if(Dw)return Io;Dw=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.distinctUntilChanged=void 0;var e=it(),t=ce(),r=pe();function n(i,s){return s===void 0&&(s=e.identity),i=i??o,t.operate(function(a,c){var u,p=!0;a.subscribe(r.createOperatorSubscriber(c,function(l){var d=s(l);(p||!i(u,d))&&(p=!1,u=d,c.next(l))}))})}Io.distinctUntilChanged=n;function o(i,s){return i===s}return Io}var Co={},Lw;function QC(){if(Lw)return Co;Lw=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.distinctUntilKeyChanged=void 0;var e=Ng();function t(r,n){return e.distinctUntilChanged(function(o,i){return n?n(o[r],i[r]):o[r]===i[r]})}return Co.distinctUntilKeyChanged=t,Co}var jo={},No={},Uw;function $C(){if(Uw)return No;Uw=1,Object.defineProperty(No,"__esModule",{value:!0}),No.ArgumentOutOfRangeError=void 0;var e=yn();return No.ArgumentOutOfRangeError=e.createErrorClass(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),No}var qo={},zw;function pr(){if(zw)return qo;zw=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.filter=void 0;var e=ce(),t=pe();function r(n,o){return e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){return n.call(o,c,a++)&&s.next(c)}))})}return qo.filter=r,qo}var Fo={},ko={},Bw;function xn(){if(Bw)return ko;Bw=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.EmptyError=void 0;var e=yn();return ko.EmptyError=e.createErrorClass(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}),ko}var Hw;function ql(){if(Hw)return Fo;Hw=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.throwIfEmpty=void 0;var e=xn(),t=ce(),r=pe();function n(i){return i===void 0&&(i=o),t.operate(function(s,a){var c=!1;s.subscribe(r.createOperatorSubscriber(a,function(u){c=!0,a.next(u)},function(){return c?a.complete():a.error(i())}))})}Fo.throwIfEmpty=n;function o(){return new e.EmptyError}return Fo}var Vw;function ej(){if(Vw)return jo;Vw=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.elementAt=void 0;var e=$C(),t=pr(),r=ql(),n=jl(),o=Nl();function i(s,a){if(s<0)throw new e.ArgumentOutOfRangeError;var c=arguments.length>=2;return function(u){return u.pipe(t.filter(function(p,l){return l===s}),o.take(1),c?n.defaultIfEmpty(a):r.throwIfEmpty(function(){return new e.ArgumentOutOfRangeError}))}}return jo.elementAt=i,jo}var Bt={},Gw;function tj(){if(Gw)return Bt;Gw=1;var e=Bt&&Bt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Bt&&Bt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.endWith=void 0;var r=Pp(),n=Cg();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return function(a){return r.concat(a,n.of.apply(void 0,t([],e(i))))}}return Bt.endWith=o,Bt}var Do={},Ww;function rj(){if(Ww)return Do;Ww=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.every=void 0;var e=ce(),t=pe();function r(n,o){return e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){n.call(o,c,a++,i)||(s.next(!1),s.complete())},function(){s.next(!0),s.complete()}))})}return Do.every=r,Do}var Lo={},Uo={},zo={},Zw;function qg(){if(Zw)return zo;Zw=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.exhaustMap=void 0;var e=dr(),t=we(),r=ce(),n=pe();function o(i,s){return s?function(a){return a.pipe(o(function(c,u){return t.innerFrom(i(c,u)).pipe(e.map(function(p,l){return s(c,p,u,l)}))}))}:r.operate(function(a,c){var u=0,p=null,l=!1;a.subscribe(n.createOperatorSubscriber(c,function(d){p||(p=n.createOperatorSubscriber(c,void 0,function(){p=null,l&&c.complete()}),t.innerFrom(i(d,u++)).subscribe(p))},function(){l=!0,!p&&c.complete()}))})}return zo.exhaustMap=o,zo}var Kw;function Fg(){if(Kw)return Uo;Kw=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.exhaustAll=void 0;var e=qg(),t=it();function r(){return e.exhaustMap(t.identity)}return Uo.exhaustAll=r,Uo}var Yw;function nj(){if(Yw)return Lo;Yw=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.exhaust=void 0;var e=Fg();return Lo.exhaust=e.exhaustAll,Lo}var Bo={},Xw;function ij(){if(Xw)return Bo;Xw=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.expand=void 0;var e=ce(),t=Sg();function r(n,o,i){return o===void 0&&(o=1/0),o=(o||0)<1?1/0:o,e.operate(function(s,a){return t.mergeInternals(s,a,n,o,void 0,!0,i)})}return Bo.expand=r,Bo}var Ho={},Jw;function aj(){if(Jw)return Ho;Jw=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.finalize=void 0;var e=ce();function t(r){return e.operate(function(n,o){try{n.subscribe(o)}finally{o.add(r)}})}return Ho.finalize=t,Ho}var qr={},Qw;function kg(){if(Qw)return qr;Qw=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.createFind=qr.find=void 0;var e=ce(),t=pe();function r(o,i){return e.operate(n(o,i,"value"))}qr.find=r;function n(o,i,s){var a=s==="index";return function(c,u){var p=0;c.subscribe(t.createOperatorSubscriber(u,function(l){var d=p++;o.call(i,l,d,c)&&(u.next(a?d:l),u.complete())},function(){u.next(a?-1:void 0),u.complete()}))}}return qr.createFind=n,qr}var Vo={},$w;function oj(){if($w)return Vo;$w=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.findIndex=void 0;var e=ce(),t=kg();function r(n,o){return e.operate(t.createFind(n,o,"index"))}return Vo.findIndex=r,Vo}var Go={},eS;function sj(){if(eS)return Go;eS=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.first=void 0;var e=xn(),t=pr(),r=Nl(),n=jl(),o=ql(),i=it();function s(a,c){var u=arguments.length>=2;return function(p){return p.pipe(a?t.filter(function(l,d){return a(l,d,p)}):i.identity,r.take(1),u?n.defaultIfEmpty(c):o.throwIfEmpty(function(){return new e.EmptyError}))}}return Go.first=s,Go}var Wo={},tS;function cj(){if(tS)return Wo;tS=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.groupBy=void 0;var e=Fe(),t=we(),r=at(),n=ce(),o=pe();function i(s,a,c,u){return n.operate(function(p,l){var d;!a||typeof a=="function"?d=a:(c=a.duration,d=a.element,u=a.connector);var f=new Map,h=function(b){f.forEach(b),b(l)},m=function(b){return h(function(E){return E.error(b)})},v=0,_=!1,g=new o.OperatorSubscriber(l,function(b){try{var E=s(b),x=f.get(E);if(!x){f.set(E,x=u?u():new r.Subject);var O=y(E,x);if(l.next(O),c){var S=o.createOperatorSubscriber(x,function(){x.complete(),S?.unsubscribe()},void 0,void 0,function(){return f.delete(E)});g.add(t.innerFrom(c(O)).subscribe(S))}}x.next(d?d(b):b)}catch(w){m(w)}},function(){return h(function(b){return b.complete()})},m,function(){return f.clear()},function(){return _=!0,v===0});p.subscribe(g);function y(b,E){var x=new e.Observable(function(O){v++;var S=E.subscribe(O);return function(){S.unsubscribe(),--v===0&&_&&g.unsubscribe()}});return x.key=b,x}})}return Wo.groupBy=i,Wo}var Zo={},rS;function uj(){if(rS)return Zo;rS=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.isEmpty=void 0;var e=ce(),t=pe();function r(){return e.operate(function(n,o){n.subscribe(t.createOperatorSubscriber(o,function(){o.next(!1),o.complete()},function(){o.next(!0),o.complete()}))})}return Zo.isEmpty=r,Zo}var Ko={},Fr={},nS;function Dg(){if(nS)return Fr;nS=1;var e=Fr&&Fr.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&i[s],c=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.takeLast=void 0;var t=It(),r=ce(),n=pe();function o(i){return i<=0?function(){return t.EMPTY}:r.operate(function(s,a){var c=[];s.subscribe(n.createOperatorSubscriber(a,function(u){c.push(u),i<c.length&&c.shift()},function(){var u,p;try{for(var l=e(c),d=l.next();!d.done;d=l.next()){var f=d.value;a.next(f)}}catch(h){u={error:h}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(u)throw u.error}}a.complete()},void 0,function(){c=null}))})}return Fr.takeLast=o,Fr}var iS;function lj(){if(iS)return Ko;iS=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.last=void 0;var e=xn(),t=pr(),r=Dg(),n=ql(),o=jl(),i=it();function s(a,c){var u=arguments.length>=2;return function(p){return p.pipe(a?t.filter(function(l,d){return a(l,d,p)}):i.identity,r.takeLast(1),u?o.defaultIfEmpty(c):n.throwIfEmpty(function(){return new e.EmptyError}))}}return Ko.last=s,Ko}var Yo={},aS;function dj(){if(aS)return Yo;aS=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.materialize=void 0;var e=jg(),t=ce(),r=pe();function n(){return t.operate(function(o,i){o.subscribe(r.createOperatorSubscriber(i,function(s){i.next(e.Notification.createNext(s))},function(){i.next(e.Notification.createComplete()),i.complete()},function(s){i.next(e.Notification.createError(s)),i.complete()}))})}return Yo.materialize=n,Yo}var Xo={},oS;function pj(){if(oS)return Xo;oS=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.max=void 0;var e=pi(),t=Ne();function r(n){return e.reduce(t.isFunction(n)?function(o,i){return n(o,i)>0?o:i}:function(o,i){return o>i?o:i})}return Xo.max=r,Xo}var Ht={},sS;function fj(){if(sS)return Ht;sS=1;var e=Ht&&Ht.__read||function(a,c){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var p=u.call(a),l,d=[],f;try{for(;(c===void 0||c-- >0)&&!(l=p.next()).done;)d.push(l.value)}catch(h){f={error:h}}finally{try{l&&!l.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return d},t=Ht&&Ht.__spreadArray||function(a,c){for(var u=0,p=c.length,l=a.length;u<p;u++,l++)a[l]=c[u];return a};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.merge=void 0;var r=ce(),n=Cl(),o=_t(),i=lr();function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var u=o.popScheduler(a),p=o.popNumber(a,1/0);return r.operate(function(l,d){n.mergeAll(p)(i.from(t([l],e(a)),u)).subscribe(d)})}return Ht.merge=s,Ht}var Jo={},cS;function hj(){if(cS)return Jo;cS=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.flatMap=void 0;var e=tr();return Jo.flatMap=e.mergeMap,Jo}var Qo={},uS;function vj(){if(uS)return Qo;uS=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.mergeMapTo=void 0;var e=tr(),t=Ne();function r(n,o,i){return i===void 0&&(i=1/0),t.isFunction(o)?e.mergeMap(function(){return n},o,i):(typeof o=="number"&&(i=o),e.mergeMap(function(){return n},i))}return Qo.mergeMapTo=r,Qo}var $o={},lS;function mj(){if(lS)return $o;lS=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.mergeScan=void 0;var e=ce(),t=Sg();function r(n,o,i){return i===void 0&&(i=1/0),e.operate(function(s,a){var c=o;return t.mergeInternals(s,a,function(u,p){return n(c,u,p)},i,function(u){c=u},!1,void 0,function(){return c=null})})}return $o.mergeScan=r,$o}var Vt={},dS;function _j(){if(dS)return Vt;dS=1;var e=Vt&&Vt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=Vt&&Vt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.mergeWith=void 0;var r=fj();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.merge.apply(void 0,t([],e(o)))}return Vt.mergeWith=n,Vt}var es={},pS;function gj(){if(pS)return es;pS=1,Object.defineProperty(es,"__esModule",{value:!0}),es.min=void 0;var e=pi(),t=Ne();function r(n){return e.reduce(t.isFunction(n)?function(o,i){return n(o,i)<0?o:i}:function(o,i){return o<i?o:i})}return es.min=r,es}var ts={},kr={},rs={},fS;function Lg(){if(fS)return rs;fS=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.refCount=void 0;var e=ce(),t=pe();function r(){return e.operate(function(n,o){var i=null;n._refCount++;var s=t.createOperatorSubscriber(o,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount){i=null;return}var a=n._connection,c=i;i=null,a&&(!c||a===c)&&a.unsubscribe(),o.unsubscribe()});n.subscribe(s),s.closed||(i=n.connect())})}return rs.refCount=r,rs}var hS;function Tp(){if(hS)return kr;hS=1;var e=kr&&kr.__extends||(function(){var a=function(c,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(p[d]=l[d])},a(c,u)};return function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(c,u);function p(){this.constructor=c}c.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}})();Object.defineProperty(kr,"__esModule",{value:!0}),kr.ConnectableObservable=void 0;var t=Fe(),r=bt(),n=Lg(),o=pe(),i=ce(),s=(function(a){e(c,a);function c(u,p){var l=a.call(this)||this;return l.source=u,l.subjectFactory=p,l._subject=null,l._refCount=0,l._connection=null,i.hasLift(u)&&(l.lift=u.lift),l}return c.prototype._subscribe=function(u){return this.getSubject().subscribe(u)},c.prototype.getSubject=function(){var u=this._subject;return(!u||u.isStopped)&&(this._subject=this.subjectFactory()),this._subject},c.prototype._teardown=function(){this._refCount=0;var u=this._connection;this._subject=this._connection=null,u?.unsubscribe()},c.prototype.connect=function(){var u=this,p=this._connection;if(!p){p=this._connection=new r.Subscription;var l=this.getSubject();p.add(this.source.subscribe(o.createOperatorSubscriber(l,void 0,function(){u._teardown(),l.complete()},function(d){u._teardown(),l.error(d)},function(){return u._teardown()}))),p.closed&&(this._connection=null,p=r.Subscription.EMPTY)}return p},c.prototype.refCount=function(){return n.refCount()(this)},c})(t.Observable);return kr.ConnectableObservable=s,kr}var vS;function Ap(){if(vS)return ts;vS=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.multicast=void 0;var e=Tp(),t=Ne(),r=Sp();function n(o,i){var s=t.isFunction(o)?o:function(){return o};return t.isFunction(i)?r.connect(i,{connector:s}):function(a){return new e.ConnectableObservable(a,s)}}return ts.multicast=n,ts}var Pt={},ns={},mS;function yj(){if(mS)return ns;mS=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.onErrorResumeNext=void 0;var e=Fe(),t=fi(),r=pe(),n=nt(),o=we();function i(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=t.argsOrArgArray(s);return new e.Observable(function(u){var p=0,l=function(){if(p<c.length){var d=void 0;try{d=o.innerFrom(c[p++])}catch{l();return}var f=new r.OperatorSubscriber(u,void 0,n.noop,n.noop);d.subscribe(f),f.add(l)}else u.complete()};l()})}return ns.onErrorResumeNext=i,ns}var _S;function bj(){if(_S)return Pt;_S=1;var e=Pt&&Pt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Pt&&Pt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.onErrorResumeNext=Pt.onErrorResumeNextWith=void 0;var r=fi(),n=yj();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=r.argsOrArgArray(i);return function(c){return n.onErrorResumeNext.apply(void 0,t([c],e(a)))}}return Pt.onErrorResumeNextWith=o,Pt.onErrorResumeNext=o,Pt}var is={},gS;function Ej(){if(gS)return is;gS=1,Object.defineProperty(is,"__esModule",{value:!0}),is.pairwise=void 0;var e=ce(),t=pe();function r(){return e.operate(function(n,o){var i,s=!1;n.subscribe(t.createOperatorSubscriber(o,function(a){var c=i;i=a,s&&o.next([c,a]),s=!0}))})}return is.pairwise=r,is}var as={},os={},yS;function xj(){if(yS)return os;yS=1,Object.defineProperty(os,"__esModule",{value:!0}),os.not=void 0;function e(t,r){return function(n,o){return!t.call(r,n,o)}}return os.not=e,os}var bS;function xU(){if(bS)return as;bS=1,Object.defineProperty(as,"__esModule",{value:!0}),as.partition=void 0;var e=xj(),t=pr();function r(n,o){return function(i){return[t.filter(n,o)(i),t.filter(e.not(n,o))(i)]}}return as.partition=r,as}var ss={},ES;function Oj(){if(ES)return ss;ES=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.pluck=void 0;var e=dr();function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r.length;if(o===0)throw new Error("list of properties cannot be empty.");return e.map(function(i){for(var s=i,a=0;a<o;a++){var c=s?.[r[a]];if(typeof c<"u")s=c;else return}return s})}return ss.pluck=t,ss}var cs={},xS;function wj(){if(xS)return cs;xS=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.publish=void 0;var e=at(),t=Ap(),r=Sp();function n(o){return o?function(i){return r.connect(o)(i)}:function(i){return t.multicast(new e.Subject)(i)}}return cs.publish=n,cs}var us={},Dr={},OS;function Sj(){if(OS)return Dr;OS=1;var e=Dr&&Dr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.BehaviorSubject=void 0;var t=at(),r=(function(n){e(o,n);function o(i){var s=n.call(this)||this;return s._value=i,s}return Object.defineProperty(o.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),o.prototype._subscribe=function(i){var s=n.prototype._subscribe.call(this,i);return!s.closed&&i.next(this._value),s},o.prototype.getValue=function(){var i=this,s=i.hasError,a=i.thrownError,c=i._value;if(s)throw a;return this._throwIfClosed(),c},o.prototype.next=function(i){n.prototype.next.call(this,this._value=i)},o})(t.Subject);return Dr.BehaviorSubject=r,Dr}var wS;function Pj(){if(wS)return us;wS=1,Object.defineProperty(us,"__esModule",{value:!0}),us.publishBehavior=void 0;var e=Sj(),t=Tp();function r(n){return function(o){var i=new e.BehaviorSubject(n);return new t.ConnectableObservable(o,function(){return i})}}return us.publishBehavior=r,us}var ls={},Lr={},SS;function Ug(){if(SS)return Lr;SS=1;var e=Lr&&Lr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.AsyncSubject=void 0;var t=at(),r=(function(n){e(o,n);function o(){var i=n!==null&&n.apply(this,arguments)||this;return i._value=null,i._hasValue=!1,i._isComplete=!1,i}return o.prototype._checkFinalizedStatuses=function(i){var s=this,a=s.hasError,c=s._hasValue,u=s._value,p=s.thrownError,l=s.isStopped,d=s._isComplete;a?i.error(p):(l||d)&&(c&&i.next(u),i.complete())},o.prototype.next=function(i){this.isStopped||(this._value=i,this._hasValue=!0)},o.prototype.complete=function(){var i=this,s=i._hasValue,a=i._value,c=i._isComplete;c||(this._isComplete=!0,s&&n.prototype.next.call(this,a),n.prototype.complete.call(this))},o})(t.Subject);return Lr.AsyncSubject=r,Lr}var PS;function Tj(){if(PS)return ls;PS=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.publishLast=void 0;var e=Ug(),t=Tp();function r(){return function(n){var o=new e.AsyncSubject;return new t.ConnectableObservable(n,function(){return o})}}return ls.publishLast=r,ls}var ds={},Ur={},TS;function zg(){if(TS)return Ur;TS=1;var e=Ur&&Ur.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.ReplaySubject=void 0;var t=at(),r=xg(),n=(function(o){e(i,o);function i(s,a,c){s===void 0&&(s=1/0),a===void 0&&(a=1/0),c===void 0&&(c=r.dateTimestampProvider);var u=o.call(this)||this;return u._bufferSize=s,u._windowTime=a,u._timestampProvider=c,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=a===1/0,u._bufferSize=Math.max(1,s),u._windowTime=Math.max(1,a),u}return i.prototype.next=function(s){var a=this,c=a.isStopped,u=a._buffer,p=a._infiniteTimeWindow,l=a._timestampProvider,d=a._windowTime;c||(u.push(s),!p&&u.push(l.now()+d)),this._trimBuffer(),o.prototype.next.call(this,s)},i.prototype._subscribe=function(s){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(s),c=this,u=c._infiniteTimeWindow,p=c._buffer,l=p.slice(),d=0;d<l.length&&!s.closed;d+=u?1:2)s.next(l[d]);return this._checkFinalizedStatuses(s),a},i.prototype._trimBuffer=function(){var s=this,a=s._bufferSize,c=s._timestampProvider,u=s._buffer,p=s._infiniteTimeWindow,l=(p?1:2)*a;if(a<1/0&&l<u.length&&u.splice(0,u.length-l),!p){for(var d=c.now(),f=0,h=1;h<u.length&&u[h]<=d;h+=2)f=h;f&&u.splice(0,f+1)}},i})(t.Subject);return Ur.ReplaySubject=n,Ur}var AS;function Aj(){if(AS)return ds;AS=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.publishReplay=void 0;var e=zg(),t=Ap(),r=Ne();function n(o,i,s,a){s&&!r.isFunction(s)&&(a=s);var c=r.isFunction(s)?s:void 0;return function(u){return t.multicast(new e.ReplaySubject(o,i,a),c)(u)}}return ds.publishReplay=n,ds}var Gt={},Wt={},zr={},RS;function Rj(){if(RS)return zr;RS=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.raceInit=zr.race=void 0;var e=Fe(),t=we(),r=fi(),n=pe();function o(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return s=r.argsOrArgArray(s),s.length===1?t.innerFrom(s[0]):new e.Observable(i(s))}zr.race=o;function i(s){return function(a){for(var c=[],u=function(l){c.push(t.innerFrom(s[l]).subscribe(n.createOperatorSubscriber(a,function(d){if(c){for(var f=0;f<c.length;f++)f!==l&&c[f].unsubscribe();c=null}a.next(d)})))},p=0;c&&!a.closed&&p<s.length;p++)u(p)}}return zr.raceInit=i,zr}var MS;function Bg(){if(MS)return Wt;MS=1;var e=Wt&&Wt.__read||function(s,a){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(a===void 0||a-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},t=Wt&&Wt.__spreadArray||function(s,a){for(var c=0,u=a.length,p=s.length;c<u;c++,p++)s[p]=a[c];return s};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.raceWith=void 0;var r=Rj(),n=ce(),o=it();function i(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return s.length?n.operate(function(c,u){r.raceInit(t([c],e(s)))(u)}):o.identity}return Wt.raceWith=i,Wt}var IS;function OU(){if(IS)return Gt;IS=1;var e=Gt&&Gt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Gt&&Gt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.race=void 0;var r=fi(),n=Bg();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return n.raceWith.apply(void 0,t([],e(r.argsOrArgArray(i))))}return Gt.race=o,Gt}var ps={},CS;function Mj(){if(CS)return ps;CS=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.repeat=void 0;var e=It(),t=ce(),r=pe(),n=we(),o=bn();function i(s){var a,c=1/0,u;return s!=null&&(typeof s=="object"?(a=s.count,c=a===void 0?1/0:a,u=s.delay):c=s),c<=0?function(){return e.EMPTY}:t.operate(function(p,l){var d=0,f,h=function(){if(f?.unsubscribe(),f=null,u!=null){var v=typeof u=="number"?o.timer(u):n.innerFrom(u(d)),_=r.createOperatorSubscriber(l,function(){_.unsubscribe(),m()});v.subscribe(_)}else m()},m=function(){var v=!1;f=p.subscribe(r.createOperatorSubscriber(l,void 0,function(){++d<c?f?h():v=!0:l.complete()})),v&&h()};m()})}return ps.repeat=i,ps}var fs={},jS;function Ij(){if(jS)return fs;jS=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.repeatWhen=void 0;var e=we(),t=at(),r=ce(),n=pe();function o(i){return r.operate(function(s,a){var c,u=!1,p,l=!1,d=!1,f=function(){return d&&l&&(a.complete(),!0)},h=function(){return p||(p=new t.Subject,e.innerFrom(i(p)).subscribe(n.createOperatorSubscriber(a,function(){c?m():u=!0},function(){l=!0,f()}))),p},m=function(){d=!1,c=s.subscribe(n.createOperatorSubscriber(a,void 0,function(){d=!0,!f()&&h().next()})),u&&(c.unsubscribe(),c=null,u=!1,m())};m()})}return fs.repeatWhen=o,fs}var hs={},NS;function Cj(){if(NS)return hs;NS=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.retry=void 0;var e=ce(),t=pe(),r=it(),n=bn(),o=we();function i(s){s===void 0&&(s=1/0);var a;s&&typeof s=="object"?a=s:a={count:s};var c=a.count,u=c===void 0?1/0:c,p=a.delay,l=a.resetOnSuccess,d=l===void 0?!1:l;return u<=0?r.identity:e.operate(function(f,h){var m=0,v,_=function(){var g=!1;v=f.subscribe(t.createOperatorSubscriber(h,function(y){d&&(m=0),h.next(y)},void 0,function(y){if(m++<u){var b=function(){v?(v.unsubscribe(),v=null,_()):g=!0};if(p!=null){var E=typeof p=="number"?n.timer(p):o.innerFrom(p(y,m)),x=t.createOperatorSubscriber(h,function(){x.unsubscribe(),b()},function(){h.complete()});E.subscribe(x)}else b()}else h.error(y)})),g&&(v.unsubscribe(),v=null,_())};_()})}return hs.retry=i,hs}var vs={},qS;function jj(){if(qS)return vs;qS=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.retryWhen=void 0;var e=we(),t=at(),r=ce(),n=pe();function o(i){return r.operate(function(s,a){var c,u=!1,p,l=function(){c=s.subscribe(n.createOperatorSubscriber(a,void 0,void 0,function(d){p||(p=new t.Subject,e.innerFrom(i(p)).subscribe(n.createOperatorSubscriber(a,function(){return c?l():u=!0}))),p&&p.next(d)})),u&&(c.unsubscribe(),c=null,u=!1,l())};l()})}return vs.retryWhen=o,vs}var ms={},FS;function Hg(){if(FS)return ms;FS=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.sample=void 0;var e=we(),t=ce(),r=nt(),n=pe();function o(i){return t.operate(function(s,a){var c=!1,u=null;s.subscribe(n.createOperatorSubscriber(a,function(p){c=!0,u=p})),e.innerFrom(i).subscribe(n.createOperatorSubscriber(a,function(){if(c){c=!1;var p=u;u=null,a.next(p)}},r.noop))})}return ms.sample=o,ms}var _s={},gs={},kS;function Nj(){if(kS)return gs;kS=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.interval=void 0;var e=mt(),t=bn();function r(n,o){return n===void 0&&(n=0),o===void 0&&(o=e.asyncScheduler),n<0&&(n=0),t.timer(n,n,o)}return gs.interval=r,gs}var DS;function qj(){if(DS)return _s;DS=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.sampleTime=void 0;var e=mt(),t=Hg(),r=Nj();function n(o,i){return i===void 0&&(i=e.asyncScheduler),t.sample(r.interval(o,i))}return _s.sampleTime=n,_s}var ys={},LS;function Fj(){if(LS)return ys;LS=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.scan=void 0;var e=ce(),t=FC();function r(n,o){return e.operate(t.scanInternals(n,o,arguments.length>=2,!0))}return ys.scan=r,ys}var bs={},US;function kj(){if(US)return bs;US=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.sequenceEqual=void 0;var e=ce(),t=pe(),r=we();function n(i,s){return s===void 0&&(s=function(a,c){return a===c}),e.operate(function(a,c){var u=o(),p=o(),l=function(f){c.next(f),c.complete()},d=function(f,h){var m=t.createOperatorSubscriber(c,function(v){var _=h.buffer,g=h.complete;_.length===0?g?l(!1):f.buffer.push(v):!s(v,_.shift())&&l(!1)},function(){f.complete=!0;var v=h.complete,_=h.buffer;v&&l(_.length===0),m?.unsubscribe()});return m};a.subscribe(d(u,p)),r.innerFrom(i).subscribe(d(p,u))})}bs.sequenceEqual=n;function o(){return{buffer:[],complete:!1}}return bs}var Zt={},zS;function Vg(){if(zS)return Zt;zS=1;var e=Zt&&Zt.__read||function(c,u){var p=typeof Symbol=="function"&&c[Symbol.iterator];if(!p)return c;var l=p.call(c),d,f=[],h;try{for(;(u===void 0||u-- >0)&&!(d=l.next()).done;)f.push(d.value)}catch(m){h={error:m}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(h)throw h.error}}return f},t=Zt&&Zt.__spreadArray||function(c,u){for(var p=0,l=u.length,d=c.length;p<l;p++,d++)c[d]=u[p];return c};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.share=void 0;var r=we(),n=at(),o=Tl(),i=ce();function s(c){c===void 0&&(c={});var u=c.connector,p=u===void 0?function(){return new n.Subject}:u,l=c.resetOnError,d=l===void 0?!0:l,f=c.resetOnComplete,h=f===void 0?!0:f,m=c.resetOnRefCountZero,v=m===void 0?!0:m;return function(_){var g,y,b,E=0,x=!1,O=!1,S=function(){y?.unsubscribe(),y=void 0},w=function(){S(),g=b=void 0,x=O=!1},A=function(){var P=g;w(),P?.unsubscribe()};return i.operate(function(P,T){E++,!O&&!x&&S();var q=b=b??p();T.add(function(){E--,E===0&&!O&&!x&&(y=a(A,v))}),q.subscribe(T),!g&&E>0&&(g=new o.SafeSubscriber({next:function(D){return q.next(D)},error:function(D){O=!0,S(),y=a(w,d,D),q.error(D)},complete:function(){x=!0,S(),y=a(w,h),q.complete()}}),r.innerFrom(P).subscribe(g))})(_)}}Zt.share=s;function a(c,u){for(var p=[],l=2;l<arguments.length;l++)p[l-2]=arguments[l];if(u===!0){c();return}if(u!==!1){var d=new o.SafeSubscriber({next:function(){d.unsubscribe(),c()}});return r.innerFrom(u.apply(void 0,t([],e(p)))).subscribe(d)}}return Zt}var Es={},BS;function Dj(){if(BS)return Es;BS=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.shareReplay=void 0;var e=zg(),t=Vg();function r(n,o,i){var s,a,c,u,p=!1;return n&&typeof n=="object"?(s=n.bufferSize,u=s===void 0?1/0:s,a=n.windowTime,o=a===void 0?1/0:a,c=n.refCount,p=c===void 0?!1:c,i=n.scheduler):u=n??1/0,t.share({connector:function(){return new e.ReplaySubject(u,o,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:p})}return Es.shareReplay=r,Es}var xs={},Os={},HS;function Lj(){if(HS)return Os;HS=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.SequenceError=void 0;var e=yn();return Os.SequenceError=e.createErrorClass(function(t){return function(n){t(this),this.name="SequenceError",this.message=n}}),Os}var ws={},VS;function Uj(){if(VS)return ws;VS=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.NotFoundError=void 0;var e=yn();return ws.NotFoundError=e.createErrorClass(function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}}),ws}var GS;function zj(){if(GS)return xs;GS=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.single=void 0;var e=xn(),t=Lj(),r=Uj(),n=ce(),o=pe();function i(s){return n.operate(function(a,c){var u=!1,p,l=!1,d=0;a.subscribe(o.createOperatorSubscriber(c,function(f){l=!0,(!s||s(f,d++,a))&&(u&&c.error(new t.SequenceError("Too many matching values")),u=!0,p=f)},function(){u?(c.next(p),c.complete()):c.error(l?new r.NotFoundError("No matching values"):new e.EmptyError)}))})}return xs.single=i,xs}var Ss={},WS;function Bj(){if(WS)return Ss;WS=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.skip=void 0;var e=pr();function t(r){return e.filter(function(n,o){return r<=o})}return Ss.skip=t,Ss}var Ps={},ZS;function Hj(){if(ZS)return Ps;ZS=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.skipLast=void 0;var e=it(),t=ce(),r=pe();function n(o){return o<=0?e.identity:t.operate(function(i,s){var a=new Array(o),c=0;return i.subscribe(r.createOperatorSubscriber(s,function(u){var p=c++;if(p<o)a[p]=u;else{var l=p%o,d=a[l];a[l]=u,s.next(d)}})),function(){a=null}})}return Ps.skipLast=n,Ps}var Ts={},KS;function Vj(){if(KS)return Ts;KS=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.skipUntil=void 0;var e=ce(),t=pe(),r=we(),n=nt();function o(i){return e.operate(function(s,a){var c=!1,u=t.createOperatorSubscriber(a,function(){u?.unsubscribe(),c=!0},n.noop);r.innerFrom(i).subscribe(u),s.subscribe(t.createOperatorSubscriber(a,function(p){return c&&a.next(p)}))})}return Ts.skipUntil=o,Ts}var As={},YS;function Gj(){if(YS)return As;YS=1,Object.defineProperty(As,"__esModule",{value:!0}),As.skipWhile=void 0;var e=ce(),t=pe();function r(n){return e.operate(function(o,i){var s=!1,a=0;o.subscribe(t.createOperatorSubscriber(i,function(c){return(s||(s=!n(c,a++)))&&i.next(c)}))})}return As.skipWhile=r,As}var Rs={},XS;function Wj(){if(XS)return Rs;XS=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.startWith=void 0;var e=Pp(),t=_t(),r=ce();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=t.popScheduler(o);return r.operate(function(a,c){(s?e.concat(o,a,s):e.concat(o,a)).subscribe(c)})}return Rs.startWith=n,Rs}var Ms={},Is={},JS;function Fl(){if(JS)return Is;JS=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.switchMap=void 0;var e=we(),t=ce(),r=pe();function n(o,i){return t.operate(function(s,a){var c=null,u=0,p=!1,l=function(){return p&&!c&&a.complete()};s.subscribe(r.createOperatorSubscriber(a,function(d){c?.unsubscribe();var f=0,h=u++;e.innerFrom(o(d,h)).subscribe(c=r.createOperatorSubscriber(a,function(m){return a.next(i?i(d,m,h,f++):m)},function(){c=null,l()}))},function(){p=!0,l()}))})}return Is.switchMap=n,Is}var QS;function Zj(){if(QS)return Ms;QS=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.switchAll=void 0;var e=Fl(),t=it();function r(){return e.switchMap(t.identity)}return Ms.switchAll=r,Ms}var Cs={},$S;function Kj(){if($S)return Cs;$S=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.switchMapTo=void 0;var e=Fl(),t=Ne();function r(n,o){return t.isFunction(o)?e.switchMap(function(){return n},o):e.switchMap(function(){return n})}return Cs.switchMapTo=r,Cs}var js={},e0;function Yj(){if(e0)return js;e0=1,Object.defineProperty(js,"__esModule",{value:!0}),js.switchScan=void 0;var e=Fl(),t=ce();function r(n,o){return t.operate(function(i,s){var a=o;return e.switchMap(function(c,u){return n(a,c,u)},function(c,u){return a=u,u})(i).subscribe(s),function(){a=null}})}return js.switchScan=r,js}var Ns={},t0;function Xj(){if(t0)return Ns;t0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.takeUntil=void 0;var e=ce(),t=pe(),r=we(),n=nt();function o(i){return e.operate(function(s,a){r.innerFrom(i).subscribe(t.createOperatorSubscriber(a,function(){return a.complete()},n.noop)),!a.closed&&s.subscribe(a)})}return Ns.takeUntil=o,Ns}var qs={},r0;function Jj(){if(r0)return qs;r0=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.takeWhile=void 0;var e=ce(),t=pe();function r(n,o){return o===void 0&&(o=!1),e.operate(function(i,s){var a=0;i.subscribe(t.createOperatorSubscriber(s,function(c){var u=n(c,a++);(u||o)&&s.next(c),!u&&s.complete()}))})}return qs.takeWhile=r,qs}var Fs={},n0;function Qj(){if(n0)return Fs;n0=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.tap=void 0;var e=Ne(),t=ce(),r=pe(),n=it();function o(i,s,a){var c=e.isFunction(i)||s||a?{next:i,error:s,complete:a}:i;return c?t.operate(function(u,p){var l;(l=c.subscribe)===null||l===void 0||l.call(c);var d=!0;u.subscribe(r.createOperatorSubscriber(p,function(f){var h;(h=c.next)===null||h===void 0||h.call(c,f),p.next(f)},function(){var f;d=!1,(f=c.complete)===null||f===void 0||f.call(c),p.complete()},function(f){var h;d=!1,(h=c.error)===null||h===void 0||h.call(c,f),p.error(f)},function(){var f,h;d&&((f=c.unsubscribe)===null||f===void 0||f.call(c)),(h=c.finalize)===null||h===void 0||h.call(c)}))}):n.identity}return Fs.tap=o,Fs}var ks={},i0;function Gg(){if(i0)return ks;i0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.throttle=void 0;var e=ce(),t=pe(),r=we();function n(o,i){return e.operate(function(s,a){var c=i??{},u=c.leading,p=u===void 0?!0:u,l=c.trailing,d=l===void 0?!1:l,f=!1,h=null,m=null,v=!1,_=function(){m?.unsubscribe(),m=null,d&&(b(),v&&a.complete())},g=function(){m=null,v&&a.complete()},y=function(E){return m=r.innerFrom(o(E)).subscribe(t.createOperatorSubscriber(a,_,g))},b=function(){if(f){f=!1;var E=h;h=null,a.next(E),!v&&y(E)}};s.subscribe(t.createOperatorSubscriber(a,function(E){f=!0,h=E,!(m&&!m.closed)&&(p?b():y(E))},function(){v=!0,!(d&&f&&m&&!m.closed)&&a.complete()}))})}return ks.throttle=n,ks}var Ds={},a0;function $j(){if(a0)return Ds;a0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.throttleTime=void 0;var e=mt(),t=Gg(),r=bn();function n(o,i,s){i===void 0&&(i=e.asyncScheduler);var a=r.timer(o,i);return t.throttle(function(){return a},s)}return Ds.throttleTime=n,Ds}var Br={},o0;function eN(){if(o0)return Br;o0=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.TimeInterval=Br.timeInterval=void 0;var e=mt(),t=ce(),r=pe();function n(i){return i===void 0&&(i=e.asyncScheduler),t.operate(function(s,a){var c=i.now();s.subscribe(r.createOperatorSubscriber(a,function(u){var p=i.now(),l=p-c;c=p,a.next(new o(u,l))}))})}Br.timeInterval=n;var o=(function(){function i(s,a){this.value=s,this.interval=a}return i})();return Br.TimeInterval=o,Br}var ev={},s0;function ap(){return s0||(s0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var t=mt(),r=Og(),n=ce(),o=we(),i=yn(),s=pe(),a=ur();e.TimeoutError=i.createErrorClass(function(p){return function(d){d===void 0&&(d=null),p(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=d}});function c(p,l){var d=r.isValidDate(p)?{first:p}:typeof p=="number"?{each:p}:p,f=d.first,h=d.each,m=d.with,v=m===void 0?u:m,_=d.scheduler,g=_===void 0?l??t.asyncScheduler:_,y=d.meta,b=y===void 0?null:y;if(f==null&&h==null)throw new TypeError("No timeout provided.");return n.operate(function(E,x){var O,S,w=null,A=0,P=function(T){S=a.executeSchedule(x,g,function(){try{O.unsubscribe(),o.innerFrom(v({meta:b,lastValue:w,seen:A})).subscribe(x)}catch(q){x.error(q)}},T)};O=E.subscribe(s.createOperatorSubscriber(x,function(T){S?.unsubscribe(),A++,x.next(w=T),h>0&&P(h)},void 0,void 0,function(){S?.closed||S?.unsubscribe(),w=null})),!A&&P(f!=null?typeof f=="number"?f:+f-g.now():h)})}e.timeout=c;function u(p){throw new e.TimeoutError(p)}})(ev)),ev}var Ls={},c0;function tN(){if(c0)return Ls;c0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.timeoutWith=void 0;var e=mt(),t=Og(),r=ap();function n(o,i,s){var a,c,u;if(s=s??e.async,t.isValidDate(o)?a=o:typeof o=="number"&&(c=o),i)u=function(){return i};else throw new TypeError("No observable provided to switch to");if(a==null&&c==null)throw new TypeError("No timeout provided.");return r.timeout({first:a,each:c,scheduler:s,with:u})}return Ls.timeoutWith=n,Ls}var Us={},u0;function rN(){if(u0)return Us;u0=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.timestamp=void 0;var e=xg(),t=dr();function r(n){return n===void 0&&(n=e.dateTimestampProvider),t.map(function(o){return{value:o,timestamp:n.now()}})}return Us.timestamp=r,Us}var zs={},l0;function nN(){if(l0)return zs;l0=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.window=void 0;var e=at(),t=ce(),r=pe(),n=nt(),o=we();function i(s){return t.operate(function(a,c){var u=new e.Subject;c.next(u.asObservable());var p=function(l){u.error(l),c.error(l)};return a.subscribe(r.createOperatorSubscriber(c,function(l){return u?.next(l)},function(){u.complete(),c.complete()},p)),o.innerFrom(s).subscribe(r.createOperatorSubscriber(c,function(){u.complete(),c.next(u=new e.Subject)},n.noop,p)),function(){u?.unsubscribe(),u=null}})}return zs.window=i,zs}var Hr={},d0;function iN(){if(d0)return Hr;d0=1;var e=Hr&&Hr.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,a=s&&i[s],c=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.windowCount=void 0;var t=at(),r=ce(),n=pe();function o(i,s){s===void 0&&(s=0);var a=s>0?s:i;return r.operate(function(c,u){var p=[new t.Subject],l=0;u.next(p[0].asObservable()),c.subscribe(n.createOperatorSubscriber(u,function(d){var f,h;try{for(var m=e(p),v=m.next();!v.done;v=m.next()){var _=v.value;_.next(d)}}catch(b){f={error:b}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(f)throw f.error}}var g=l-i+1;if(g>=0&&g%a===0&&p.shift().complete(),++l%a===0){var y=new t.Subject;p.push(y),u.next(y.asObservable())}},function(){for(;p.length>0;)p.shift().complete();u.complete()},function(d){for(;p.length>0;)p.shift().error(d);u.error(d)},function(){p=null}))})}return Hr.windowCount=o,Hr}var Bs={},p0;function aN(){if(p0)return Bs;p0=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.windowTime=void 0;var e=at(),t=mt(),r=bt(),n=ce(),o=pe(),i=cr(),s=_t(),a=ur();function c(u){for(var p,l,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=(p=s.popScheduler(d))!==null&&p!==void 0?p:t.asyncScheduler,m=(l=d[0])!==null&&l!==void 0?l:null,v=d[1]||1/0;return n.operate(function(_,g){var y=[],b=!1,E=function(w){var A=w.window,P=w.subs;A.complete(),P.unsubscribe(),i.arrRemove(y,w),b&&x()},x=function(){if(y){var w=new r.Subscription;g.add(w);var A=new e.Subject,P={window:A,subs:w,seen:0};y.push(P),g.next(A.asObservable()),a.executeSchedule(w,h,function(){return E(P)},u)}};m!==null&&m>=0?a.executeSchedule(g,h,x,m,!0):b=!0,x();var O=function(w){return y.slice().forEach(w)},S=function(w){O(function(A){var P=A.window;return w(P)}),w(g),g.unsubscribe()};return _.subscribe(o.createOperatorSubscriber(g,function(w){O(function(A){A.window.next(w),v<=++A.seen&&E(A)})},function(){return S(function(w){return w.complete()})},function(w){return S(function(A){return A.error(w)})})),function(){y=null}})}return Bs.windowTime=c,Bs}var Vr={},f0;function oN(){if(f0)return Vr;f0=1;var e=Vr&&Vr.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.windowToggle=void 0;var t=at(),r=bt(),n=ce(),o=we(),i=pe(),s=nt(),a=cr();function c(u,p){return n.operate(function(l,d){var f=[],h=function(m){for(;0<f.length;)f.shift().error(m);d.error(m)};o.innerFrom(u).subscribe(i.createOperatorSubscriber(d,function(m){var v=new t.Subject;f.push(v);var _=new r.Subscription,g=function(){a.arrRemove(f,v),v.complete(),_.unsubscribe()},y;try{y=o.innerFrom(p(m))}catch(b){h(b);return}d.next(v.asObservable()),_.add(y.subscribe(i.createOperatorSubscriber(d,g,s.noop,h)))},s.noop)),l.subscribe(i.createOperatorSubscriber(d,function(m){var v,_,g=f.slice();try{for(var y=e(g),b=y.next();!b.done;b=y.next()){var E=b.value;E.next(m)}}catch(x){v={error:x}}finally{try{b&&!b.done&&(_=y.return)&&_.call(y)}finally{if(v)throw v.error}}},function(){for(;0<f.length;)f.shift().complete();d.complete()},h,function(){for(;0<f.length;)f.shift().unsubscribe()}))})}return Vr.windowToggle=c,Vr}var Hs={},h0;function sN(){if(h0)return Hs;h0=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.windowWhen=void 0;var e=at(),t=ce(),r=pe(),n=we();function o(i){return t.operate(function(s,a){var c,u,p=function(d){c.error(d),a.error(d)},l=function(){u?.unsubscribe(),c?.complete(),c=new e.Subject,a.next(c.asObservable());var d;try{d=n.innerFrom(i())}catch(f){p(f);return}d.subscribe(u=r.createOperatorSubscriber(a,l,l,p))};l(),s.subscribe(r.createOperatorSubscriber(a,function(d){return c.next(d)},function(){c.complete(),a.complete()},p,function(){u?.unsubscribe(),c=null}))})}return Hs.windowWhen=o,Hs}var Kt={},v0;function cN(){if(v0)return Kt;v0=1;var e=Kt&&Kt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Kt&&Kt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.withLatestFrom=void 0;var r=ce(),n=pe(),o=we(),i=it(),s=nt(),a=_t();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=a.popResultSelector(u);return r.operate(function(d,f){for(var h=u.length,m=new Array(h),v=u.map(function(){return!1}),_=!1,g=function(b){o.innerFrom(u[b]).subscribe(n.createOperatorSubscriber(f,function(E){m[b]=E,!_&&!v[b]&&(v[b]=!0,(_=v.every(i.identity))&&(v=null))},s.noop))},y=0;y<h;y++)g(y);d.subscribe(n.createOperatorSubscriber(f,function(b){if(_){var E=t([b],e(m));f.next(l?l.apply(void 0,t([],e(E))):E)}}))})}return Kt.withLatestFrom=c,Kt}var Yt={},Xt={},m0;function Wg(){if(m0)return Xt;m0=1;var e=Xt&&Xt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Xt&&Xt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.zip=void 0;var r=Fe(),n=we(),o=fi(),i=It(),s=pe(),a=_t();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=a.popResultSelector(u),d=o.argsOrArgArray(u);return d.length?new r.Observable(function(f){var h=d.map(function(){return[]}),m=d.map(function(){return!1});f.add(function(){h=m=null});for(var v=function(g){n.innerFrom(d[g]).subscribe(s.createOperatorSubscriber(f,function(y){if(h[g].push(y),h.every(function(E){return E.length})){var b=h.map(function(E){return E.shift()});f.next(l?l.apply(void 0,t([],e(b))):b),h.some(function(E,x){return!E.length&&m[x]})&&f.complete()}},function(){m[g]=!0,!h[g].length&&f.complete()}))},_=0;!f.closed&&_<d.length;_++)v(_);return function(){h=m=null}}):i.EMPTY}return Xt.zip=c,Xt}var _0;function uN(){if(_0)return Yt;_0=1;var e=Yt&&Yt.__read||function(i,s){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var c=a.call(i),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(l)throw l.error}}return p},t=Yt&&Yt.__spreadArray||function(i,s){for(var a=0,c=s.length,u=i.length;a<c;a++,u++)i[u]=s[a];return i};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.zip=void 0;var r=Wg(),n=ce();function o(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return n.operate(function(a,c){r.zip.apply(void 0,t([a],e(i))).subscribe(c)})}return Yt.zip=o,Yt}var Vs={},g0;function lN(){if(g0)return Vs;g0=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.zipAll=void 0;var e=Wg(),t=kC();function r(n){return t.joinAllInternals(e.zip,n)}return Vs.zipAll=r,Vs}var Jt={},y0;function dN(){if(y0)return Jt;y0=1;var e=Jt&&Jt.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},t=Jt&&Jt.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.zipWith=void 0;var r=uN();function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.zip.apply(void 0,t([],e(o)))}return Jt.zipWith=n,Jt}var b0;function Zg(){return b0||(b0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=e.merge=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.concat=e.combineLatestWith=e.combineLatest=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=void 0,e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.race=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.partition=e.pairwise=e.onErrorResumeNext=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=void 0,e.zipWith=e.zipAll=e.zip=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=void 0;var t=Eg();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return t.audit}});var r=wC();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return r.auditTime}});var n=SC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return n.buffer}});var o=PC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return o.bufferCount}});var i=TC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return i.bufferTime}});var s=AC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return s.bufferToggle}});var a=RC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return a.bufferWhen}});var c=MC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return c.catchError}});var u=DC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return u.combineAll}});var p=Tg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var l=LC();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return l.combineLatest}});var d=UC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return d.combineLatestWith}});var f=zC();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return f.concat}});var h=wp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return h.concatAll}});var m=Ag();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return m.concatMap}});var v=BC();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var _=HC();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return _.concatWith}});var g=Sp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return g.connect}});var y=GC();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return y.count}});var b=WC();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return b.debounce}});var E=ZC();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return E.debounceTime}});var x=jl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return x.defaultIfEmpty}});var O=KC();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return O.delay}});var S=Ig();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return S.delayWhen}});var w=XC();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return w.dematerialize}});var A=JC();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return A.distinct}});var P=Ng();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return P.distinctUntilChanged}});var T=QC();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return T.distinctUntilKeyChanged}});var q=ej();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return q.elementAt}});var D=tj();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return D.endWith}});var V=rj();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return V.every}});var k=nj();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return k.exhaust}});var F=Fg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return F.exhaustAll}});var Z=qg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Z.exhaustMap}});var J=ij();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return J.expand}});var U=pr();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return U.filter}});var Q=aj();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Q.finalize}});var C=kg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return C.find}});var N=oj();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return N.findIndex}});var L=sj();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return L.first}});var B=cj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return B.groupBy}});var M=Rg();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return M.ignoreElements}});var j=uj();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return j.isEmpty}});var z=lj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return z.last}});var Y=dr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Y.map}});var ee=Mg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return ee.mapTo}});var R=dj();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return R.materialize}});var I=pj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return I.max}});var W=fj();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return W.merge}});var $=Cl();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return $.mergeAll}});var oe=hj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return oe.flatMap}});var te=tr();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return te.mergeMap}});var le=vj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return le.mergeMapTo}});var _e=mj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return _e.mergeScan}});var be=_j();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return be.mergeWith}});var Pe=gj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Pe.min}});var Re=Ap();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return Re.multicast}});var Ee=Ml();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return Ee.observeOn}});var Te=bj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Te.onErrorResumeNext}});var me=Ej();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return me.pairwise}});var qe=xU();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return qe.partition}});var Ke=Oj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Ke.pluck}});var ye=wj();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return ye.publish}});var Ge=Pj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Ge.publishBehavior}});var xi=Tj();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return xi.publishLast}});var Oi=Aj();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Oi.publishReplay}});var gr=OU();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return gr.race}});var H=Bg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return H.raceWith}});var G=pi();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return G.reduce}});var K=Mj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return K.repeat}});var re=Ij();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return re.repeatWhen}});var fe=Cj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return fe.retry}});var Be=jj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Be.retryWhen}});var Ue=Lg();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return Ue.refCount}});var Oe=Hg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return Oe.sample}});var ie=qj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return ie.sampleTime}});var se=Fj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return se.scan}});var ue=kj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return ue.sequenceEqual}});var de=Vg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return de.share}});var Se=Dj();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Se.shareReplay}});var Me=zj();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return Me.single}});var ke=Bj();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return ke.skip}});var st=Hj();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return st.skipLast}});var Rn=Vj();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Rn.skipUntil}});var wi=Gj();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return wi.skipWhile}});var Si=Wj();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Si.startWith}});var Wp=Il();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Wp.subscribeOn}});var Zp=Zj();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Zp.switchAll}});var Kp=Fl();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Kp.switchMap}});var Yp=Kj();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return Yp.switchMapTo}});var Xp=Yj();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Xp.switchScan}});var Jp=Nl();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Jp.take}});var Qp=Dg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return Qp.takeLast}});var $p=Xj();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return $p.takeUntil}});var ef=Jj();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return ef.takeWhile}});var tf=Qj();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return tf.tap}});var rf=Gg();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return rf.throttle}});var nf=$j();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return nf.throttleTime}});var af=ql();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return af.throwIfEmpty}});var of=eN();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return of.timeInterval}});var sf=ap();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return sf.timeout}});var cf=tN();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return cf.timeoutWith}});var uf=rN();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return uf.timestamp}});var lf=Pg();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return lf.toArray}});var df=nN();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return df.window}});var pf=iN();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return pf.windowCount}});var ff=aN();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return ff.windowTime}});var hf=oN();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return hf.windowToggle}});var vf=sN();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return vf.windowWhen}});var mf=cN();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return mf.withLatestFrom}});var _f=uN();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return _f.zip}});var gf=lN();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return gf.zipAll}});var yf=dN();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return yf.zipWith}})})(Yh)),Yh}var Gs={},E0;function pN(){return E0||(E0=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.CLASS_SERIALIZER_OPTIONS=void 0,Gs.CLASS_SERIALIZER_OPTIONS="class_serializer:options"),Gs}var x0;function wU(){if(x0)return Zn;x0=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ClassSerializerInterceptor=void 0;const e=ae(),t=Zg(),r=ar(),n=oC(),o=Sl(),i=ne(),s=pN();let a={};const c="Reflector";let u=class{constructor(l,d={}){this.reflector=l,this.defaultOptions=d,a=d?.transformerPackage??(0,o.loadPackage)("class-transformer","ClassSerializerInterceptor",()=>pC),d?.transformerPackage}intercept(l,d){const f=this.getContextOptions(l),h={...this.defaultOptions,...f};return d.handle().pipe((0,t.map)(m=>this.serialize(m,h)))}serialize(l,d){return!(0,i.isObject)(l)||l instanceof n.StreamableFile?l:Array.isArray(l)?l.map(f=>this.transformToPlain(f,d)):this.transformToPlain(l,d)}transformToPlain(l,d){if(!l)return l;if(!d.type||l instanceof d.type)return a.classToPlain(l,d);const f=a.plainToInstance(d.type,l,d);return a.classToPlain(f,d)}getContextOptions(l){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[l.getHandler(),l.getClass()])}};return Zn.ClassSerializerInterceptor=u,Zn.ClassSerializerInterceptor=u=e.__decorate([(0,r.Injectable)(),e.__param(0,(0,r.Inject)(c)),e.__param(1,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],u),Zn}var tv={},Ws={},O0;function SU(){if(O0)return Ws;O0=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.SerializeOptions=void 0;const e=fg(),t=pN(),r=n=>(0,e.SetMetadata)(t.CLASS_SERIALIZER_OPTIONS,n);return Ws.SerializeOptions=r,Ws}var w0;function PU(){return w0||(w0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(SU(),e)})(tv)),tv}var rv={},S0;function TU(){return S0||(S0=1,Object.defineProperty(rv,"__esModule",{value:!0})),rv}var P0;function AU(){return P0||(P0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(wU(),e),t.__exportStar(PU(),e),t.__exportStar(TU(),e)})(Kh)),Kh}var nv={},Zs={},T0;function RU(){if(T0)return Zs;T0=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.forwardRef=void 0;const e=t=>({forwardRef:t});return Zs.forwardRef=e,Zs}var A0;function MU(){return A0||(A0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(RU(),e)})(nv)),nv}var R0;function ve(){return R0||(R0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;const t=ae();pg(),t.__exportStar(fg(),e),t.__exportStar(wl(),e),t.__exportStar(hg(),e),t.__exportStar(oC(),e);var r=bp();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"VERSION_NEUTRAL",{enumerable:!0,get:function(){return r.VERSION_NEUTRAL}}),t.__exportStar(BL(),e),t.__exportStar(fU(),e),t.__exportStar(AU(),e),t.__exportStar(aC(),e),t.__exportStar(MU(),e)})(Of)),Of}var pt={},Rt={exports:{}};const IU="17.2.3",CU={version:IU};var M0;function fN(){if(M0)return Rt.exports;M0=1;const e=El,t=ir,r=vp,n=ci,i=CU.version,s=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","📡 add observability to secrets: https://dotenvx.com/ops","👥 sync secrets across teammates & machines: https://dotenvx.com/ops","🗂️ backup and recover secrets: https://dotenvx.com/ops","✅ audit secrets and track compliance: https://dotenvx.com/ops","🔄 add secrets lifecycle management: https://dotenvx.com/ops","🔑 add access controls to secrets: https://dotenvx.com/ops","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function a(){return s[Math.floor(Math.random()*s.length)]}function c(P){return typeof P=="string"?!["false","0","no","off",""].includes(P.toLowerCase()):!!P}function u(){return process.stdout.isTTY}function p(P){return u()?`\x1B[2m${P}\x1B[0m`:P}const l=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function d(P){const T={};let q=P.toString();q=q.replace(/\r\n?/mg,`
|
|
9
|
+
`);let D;for(;(D=l.exec(q))!=null;){const V=D[1];let k=D[2]||"";k=k.trim();const F=k[0];k=k.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),F==='"'&&(k=k.replace(/\\n/g,`
|
|
10
|
+
`),k=k.replace(/\\r/g,"\r")),T[V]=k}return T}function f(P){P=P||{};const T=y(P);P.path=T;const q=A.configDotenv(P);if(!q.parsed){const F=new Error(`MISSING_DATA: Cannot parse ${T} for an unknown reason`);throw F.code="MISSING_DATA",F}const D=_(P).split(","),V=D.length;let k;for(let F=0;F<V;F++)try{const Z=D[F].trim(),J=g(q,Z);k=A.decrypt(J.ciphertext,J.key);break}catch(Z){if(F+1>=V)throw Z}return A.parse(k)}function h(P){console.error(`[dotenv@${i}][WARN] ${P}`)}function m(P){console.log(`[dotenv@${i}][DEBUG] ${P}`)}function v(P){console.log(`[dotenv@${i}] ${P}`)}function _(P){return P&&P.DOTENV_KEY&&P.DOTENV_KEY.length>0?P.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function g(P,T){let q;try{q=new URL(T)}catch(Z){if(Z.code==="ERR_INVALID_URL"){const J=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw J.code="INVALID_DOTENV_KEY",J}throw Z}const D=q.password;if(!D){const Z=new Error("INVALID_DOTENV_KEY: Missing key part");throw Z.code="INVALID_DOTENV_KEY",Z}const V=q.searchParams.get("environment");if(!V){const Z=new Error("INVALID_DOTENV_KEY: Missing environment part");throw Z.code="INVALID_DOTENV_KEY",Z}const k=`DOTENV_VAULT_${V.toUpperCase()}`,F=P.parsed[k];if(!F){const Z=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${k} in your .env.vault file.`);throw Z.code="NOT_FOUND_DOTENV_ENVIRONMENT",Z}return{ciphertext:F,key:D}}function y(P){let T=null;if(P&&P.path&&P.path.length>0)if(Array.isArray(P.path))for(const q of P.path)e.existsSync(q)&&(T=q.endsWith(".vault")?q:`${q}.vault`);else T=P.path.endsWith(".vault")?P.path:`${P.path}.vault`;else T=t.resolve(process.cwd(),".env.vault");return e.existsSync(T)?T:null}function b(P){return P[0]==="~"?t.join(r.homedir(),P.slice(1)):P}function E(P){const T=c(process.env.DOTENV_CONFIG_DEBUG||P&&P.debug),q=c(process.env.DOTENV_CONFIG_QUIET||P&&P.quiet);(T||!q)&&v("Loading env from encrypted .env.vault");const D=A._parseVault(P);let V=process.env;return P&&P.processEnv!=null&&(V=P.processEnv),A.populate(V,D,P),{parsed:D}}function x(P){const T=t.resolve(process.cwd(),".env");let q="utf8",D=process.env;P&&P.processEnv!=null&&(D=P.processEnv);let V=c(D.DOTENV_CONFIG_DEBUG||P&&P.debug),k=c(D.DOTENV_CONFIG_QUIET||P&&P.quiet);P&&P.encoding?q=P.encoding:V&&m("No encoding is specified. UTF-8 is used by default");let F=[T];if(P&&P.path)if(!Array.isArray(P.path))F=[b(P.path)];else{F=[];for(const Q of P.path)F.push(b(Q))}let Z;const J={};for(const Q of F)try{const C=A.parse(e.readFileSync(Q,{encoding:q}));A.populate(J,C,P)}catch(C){V&&m(`Failed to load ${Q} ${C.message}`),Z=C}const U=A.populate(D,J,P);if(V=c(D.DOTENV_CONFIG_DEBUG||V),k=c(D.DOTENV_CONFIG_QUIET||k),V||!k){const Q=Object.keys(U).length,C=[];for(const N of F)try{const L=t.relative(process.cwd(),N);C.push(L)}catch(L){V&&m(`Failed to load ${N} ${L.message}`),Z=L}v(`injecting env (${Q}) from ${C.join(",")} ${p(`-- tip: ${a()}`)}`)}return Z?{parsed:J,error:Z}:{parsed:J}}function O(P){if(_(P).length===0)return A.configDotenv(P);const T=y(P);return T?A._configVault(P):(h(`You set DOTENV_KEY but you are missing a .env.vault file at ${T}. Did you forget to build it?`),A.configDotenv(P))}function S(P,T){const q=Buffer.from(T.slice(-64),"hex");let D=Buffer.from(P,"base64");const V=D.subarray(0,12),k=D.subarray(-16);D=D.subarray(12,-16);try{const F=n.createDecipheriv("aes-256-gcm",q,V);return F.setAuthTag(k),`${F.update(D)}${F.final()}`}catch(F){const Z=F instanceof RangeError,J=F.message==="Invalid key length",U=F.message==="Unsupported state or unable to authenticate data";if(Z||J){const Q=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw Q.code="INVALID_DOTENV_KEY",Q}else if(U){const Q=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw Q.code="DECRYPTION_FAILED",Q}else throw F}}function w(P,T,q={}){const D=!!(q&&q.debug),V=!!(q&&q.override),k={};if(typeof T!="object"){const F=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw F.code="OBJECT_REQUIRED",F}for(const F of Object.keys(T))Object.prototype.hasOwnProperty.call(P,F)?(V===!0&&(P[F]=T[F],k[F]=T[F]),D&&m(V===!0?`"${F}" is already defined and WAS overwritten`:`"${F}" is already defined and was NOT overwritten`)):(P[F]=T[F],k[F]=T[F]);return k}const A={configDotenv:x,_configVault:E,_parseVault:f,config:O,decrypt:S,parse:d,populate:w};return Rt.exports.configDotenv=A.configDotenv,Rt.exports._configVault=A._configVault,Rt.exports._parseVault=A._parseVault,Rt.exports.config=A.config,Rt.exports.decrypt=A.decrypt,Rt.exports.parse=A.parse,Rt.exports.populate=A.populate,Rt.exports=A,Rt.exports}var iv={},I0;function jU(){if(I0)return iv;I0=1;function e(n){return n.replace(/\\\$/g,"$")}function t(n,o,i){const s={...i,...o},a=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;let c=n,u;const p=new Set;for(;(u=a.exec(c))!==null;){p.add(c);const[l,d,f]=u,h=d||f,m=/(:\+|\+|:-|-)/,v=h.match(m),_=v?v[0]:null,g=h.split(_);let y,b;const E=g.shift();if([":+","+"].includes(_)?(y=s[E]?g.join(_):"",b=null):(y=g.join(_),b=s[E]),b?p.has(b)?c=c.replace(l,y):c=c.replace(l,b):c=c.replace(l,y),c===i[E])break;a.lastIndex=0}return c}function r(n){const o={};let i=process.env;n&&n.processEnv!=null&&(i=n.processEnv);for(const s in n.parsed){let a=n.parsed[s];i[s]&&i[s]!==a?a=i[s]:a=t(a,i,o),n.parsed[s]=e(a),o[s]=e(a)}for(const s in n.parsed)i[s]=n.parsed[s];return n}return iv.expand=r,iv}var nr={},Ye={},C0;function kl(){return C0||(C0=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.AS_PROVIDER_METHOD_KEY=Ye.VALIDATED_ENV_PROPNAME=Ye.PARTIAL_CONFIGURATION_PROPNAME=Ye.PARTIAL_CONFIGURATION_KEY=Ye.VALIDATED_ENV_LOADER=Ye.CONFIGURATION_LOADER=Ye.CONFIGURATION_TOKEN=Ye.CONFIGURATION_SERVICE_TOKEN=void 0,Ye.CONFIGURATION_SERVICE_TOKEN=Symbol("CONFIG_SERVICE"),Ye.CONFIGURATION_TOKEN="CONFIGURATION_TOKEN",Ye.CONFIGURATION_LOADER="CONFIGURATION_LOADER",Ye.VALIDATED_ENV_LOADER="VALIDATED_ENV_LOADER",Ye.PARTIAL_CONFIGURATION_KEY="PARTIAL_CONFIGURATION_KEY",Ye.PARTIAL_CONFIGURATION_PROPNAME="KEY",Ye.VALIDATED_ENV_PROPNAME="_PROCESS_ENV_VALIDATED",Ye.AS_PROVIDER_METHOD_KEY="asProvider"),Ye}var We={},av,j0;function Rp(){if(j0)return av;j0=1;var e=Array.isArray;return av=e,av}var ov,N0;function NU(){if(N0)return ov;N0=1;var e=typeof ft=="object"&&ft&&ft.Object===Object&&ft;return ov=e,ov}var sv,q0;function Kg(){if(q0)return sv;q0=1;var e=NU(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return sv=r,sv}var cv,F0;function Yg(){if(F0)return cv;F0=1;var e=Kg(),t=e.Symbol;return cv=t,cv}var uv,k0;function qU(){if(k0)return uv;k0=1;var e=Yg(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(s){var a=r.call(s,o),c=s[o];try{s[o]=void 0;var u=!0}catch{}var p=n.call(s);return u&&(a?s[o]=c:delete s[o]),p}return uv=i,uv}var lv,D0;function FU(){if(D0)return lv;D0=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return lv=r,lv}var dv,L0;function Xg(){if(L0)return dv;L0=1;var e=Yg(),t=qU(),r=FU(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?o:n:i&&i in Object(a)?t(a):r(a)}return dv=s,dv}var pv,U0;function Jg(){if(U0)return pv;U0=1;function e(t){return t!=null&&typeof t=="object"}return pv=e,pv}var fv,z0;function Qg(){if(z0)return fv;z0=1;var e=Xg(),t=Jg(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return fv=n,fv}var hv,B0;function kU(){if(B0)return hv;B0=1;var e=Rp(),t=Qg(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,s){if(e(i))return!1;var a=typeof i;return a=="number"||a=="symbol"||a=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||s!=null&&i in Object(s)}return hv=o,hv}var vv,H0;function $g(){if(H0)return vv;H0=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return vv=e,vv}var mv,V0;function DU(){if(V0)return mv;V0=1;var e=Xg(),t=$g(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function s(a){if(!t(a))return!1;var c=e(a);return c==n||c==o||c==r||c==i}return mv=s,mv}var _v,G0;function LU(){if(G0)return _v;G0=1;var e=Kg(),t=e["__core-js_shared__"];return _v=t,_v}var gv,W0;function UU(){if(W0)return gv;W0=1;var e=LU(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return gv=r,gv}var yv,Z0;function zU(){if(Z0)return yv;Z0=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return yv=r,yv}var bv,K0;function BU(){if(K0)return bv;K0=1;var e=DU(),t=UU(),r=$g(),n=zU(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,c=s.toString,u=a.hasOwnProperty,p=RegExp("^"+c.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var f=e(d)?p:i;return f.test(n(d))}return bv=l,bv}var Ev,Y0;function HU(){if(Y0)return Ev;Y0=1;function e(t,r){return t?.[r]}return Ev=e,Ev}var xv,X0;function ey(){if(X0)return xv;X0=1;var e=BU(),t=HU();function r(n,o){var i=t(n,o);return e(i)?i:void 0}return xv=r,xv}var Ov,J0;function Mp(){if(J0)return Ov;J0=1;var e=ey(),t=e(Object,"create");return Ov=t,Ov}var wv,Q0;function VU(){if(Q0)return wv;Q0=1;var e=Mp();function t(){this.__data__=e?e(null):{},this.size=0}return wv=t,wv}var Sv,$0;function GU(){if($0)return Sv;$0=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Sv=e,Sv}var Pv,e1;function WU(){if(e1)return Pv;e1=1;var e=Mp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(i){var s=this.__data__;if(e){var a=s[i];return a===t?void 0:a}return n.call(s,i)?s[i]:void 0}return Pv=o,Pv}var Tv,t1;function ZU(){if(t1)return Tv;t1=1;var e=Mp(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var i=this.__data__;return e?i[o]!==void 0:r.call(i,o)}return Tv=n,Tv}var Av,r1;function KU(){if(r1)return Av;r1=1;var e=Mp(),t="__lodash_hash_undefined__";function r(n,o){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&o===void 0?t:o,this}return Av=r,Av}var Rv,n1;function YU(){if(n1)return Rv;n1=1;var e=VU(),t=GU(),r=WU(),n=ZU(),o=KU();function i(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Rv=i,Rv}var Mv,i1;function XU(){if(i1)return Mv;i1=1;function e(){this.__data__=[],this.size=0}return Mv=e,Mv}var Iv,a1;function hN(){if(a1)return Iv;a1=1;function e(t,r){return t===r||t!==t&&r!==r}return Iv=e,Iv}var Cv,o1;function Ip(){if(o1)return Cv;o1=1;var e=hN();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Cv=t,Cv}var jv,s1;function JU(){if(s1)return jv;s1=1;var e=Ip(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():r.call(i,s,1),--this.size,!0}return jv=n,jv}var Nv,c1;function QU(){if(c1)return Nv;c1=1;var e=Ip();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return Nv=t,Nv}var qv,u1;function $U(){if(u1)return qv;u1=1;var e=Ip();function t(r){return e(this.__data__,r)>-1}return qv=t,qv}var Fv,l1;function ez(){if(l1)return Fv;l1=1;var e=Ip();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return Fv=t,Fv}var kv,d1;function tz(){if(d1)return kv;d1=1;var e=XU(),t=JU(),r=QU(),n=$U(),o=ez();function i(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,kv=i,kv}var Dv,p1;function rz(){if(p1)return Dv;p1=1;var e=ey(),t=Kg(),r=e(t,"Map");return Dv=r,Dv}var Lv,f1;function nz(){if(f1)return Lv;f1=1;var e=YU(),t=tz(),r=rz();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Lv=n,Lv}var Uv,h1;function iz(){if(h1)return Uv;h1=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Uv=e,Uv}var zv,v1;function Cp(){if(v1)return zv;v1=1;var e=iz();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return zv=t,zv}var Bv,m1;function az(){if(m1)return Bv;m1=1;var e=Cp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Bv=t,Bv}var Hv,_1;function oz(){if(_1)return Hv;_1=1;var e=Cp();function t(r){return e(this,r).get(r)}return Hv=t,Hv}var Vv,g1;function sz(){if(g1)return Vv;g1=1;var e=Cp();function t(r){return e(this,r).has(r)}return Vv=t,Vv}var Gv,y1;function cz(){if(y1)return Gv;y1=1;var e=Cp();function t(r,n){var o=e(this,r),i=o.size;return o.set(r,n),this.size+=o.size==i?0:1,this}return Gv=t,Gv}var Wv,b1;function uz(){if(b1)return Wv;b1=1;var e=nz(),t=az(),r=oz(),n=sz(),o=cz();function i(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Wv=i,Wv}var Zv,E1;function lz(){if(E1)return Zv;E1=1;var e=uz(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var s=arguments,a=o?o.apply(this,s):s[0],c=i.cache;if(c.has(a))return c.get(a);var u=n.apply(this,s);return i.cache=c.set(a,u)||c,u};return i.cache=new(r.Cache||e),i}return r.Cache=e,Zv=r,Zv}var Kv,x1;function dz(){if(x1)return Kv;x1=1;var e=lz(),t=500;function r(n){var o=e(n,function(s){return i.size===t&&i.clear(),s}),i=o.cache;return o}return Kv=r,Kv}var Yv,O1;function pz(){if(O1)return Yv;O1=1;var e=dz(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(s,a,c,u){i.push(c?u.replace(r,"$1"):a||s)}),i});return Yv=n,Yv}var Xv,w1;function fz(){if(w1)return Xv;w1=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n<o;)i[n]=r(t[n],n,t);return i}return Xv=e,Xv}var Jv,S1;function hz(){if(S1)return Jv;S1=1;var e=Yg(),t=fz(),r=Rp(),n=Qg(),o=e?e.prototype:void 0,i=o?o.toString:void 0;function s(a){if(typeof a=="string")return a;if(r(a))return t(a,s)+"";if(n(a))return i?i.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return Jv=s,Jv}var Qv,P1;function vz(){if(P1)return Qv;P1=1;var e=hz();function t(r){return r==null?"":e(r)}return Qv=t,Qv}var $v,T1;function ty(){if(T1)return $v;T1=1;var e=Rp(),t=kU(),r=pz(),n=vz();function o(i,s){return e(i)?i:t(i,s)?[i]:r(n(i))}return $v=o,$v}var em,A1;function ry(){if(A1)return em;A1=1;var e=Qg();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return em=t,em}var tm,R1;function mz(){if(R1)return tm;R1=1;var e=ty(),t=ry();function r(n,o){o=e(o,n);for(var i=0,s=o.length;n!=null&&i<s;)n=n[t(o[i++])];return i&&i==s?n:void 0}return tm=r,tm}var rm,M1;function _z(){if(M1)return rm;M1=1;var e=mz();function t(r,n,o){var i=r==null?void 0:e(r,n);return i===void 0?o:i}return rm=t,rm}var nm,I1;function gz(){if(I1)return nm;I1=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,o){return n!=null&&t.call(n,o)}return nm=r,nm}var im,C1;function yz(){if(C1)return im;C1=1;var e=Xg(),t=Jg(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return im=n,im}var am,j1;function bz(){if(j1)return am;j1=1;var e=yz(),t=Jg(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!o.call(s,"callee")};return am=i,am}var om,N1;function vN(){if(N1)return om;N1=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var i=typeof n;return o=o??e,!!o&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return om=r,om}var sm,q1;function Ez(){if(q1)return sm;q1=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return sm=t,sm}var cm,F1;function xz(){if(F1)return cm;F1=1;var e=ty(),t=bz(),r=Rp(),n=vN(),o=Ez(),i=ry();function s(a,c,u){c=e(c,a);for(var p=-1,l=c.length,d=!1;++p<l;){var f=i(c[p]);if(!(d=a!=null&&u(a,f)))break;a=a[f]}return d||++p!=l?d:(l=a==null?0:a.length,!!l&&o(l)&&n(f,l)&&(r(a)||t(a)))}return cm=s,cm}var um,k1;function Oz(){if(k1)return um;k1=1;var e=gz(),t=xz();function r(n,o){return n!=null&&t(n,o,e)}return um=r,um}var lm,D1;function wz(){if(D1)return lm;D1=1;var e=ey(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return lm=t,lm}var dm,L1;function Sz(){if(L1)return dm;L1=1;var e=wz();function t(r,n,o){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[n]=o}return dm=t,dm}var pm,U1;function Pz(){if(U1)return pm;U1=1;var e=Sz(),t=hN(),r=Object.prototype,n=r.hasOwnProperty;function o(i,s,a){var c=i[s];(!(n.call(i,s)&&t(c,a))||a===void 0&&!(s in i))&&e(i,s,a)}return pm=o,pm}var fm,z1;function Tz(){if(z1)return fm;z1=1;var e=Pz(),t=ty(),r=vN(),n=$g(),o=ry();function i(s,a,c,u){if(!n(s))return s;a=t(a,s);for(var p=-1,l=a.length,d=l-1,f=s;f!=null&&++p<l;){var h=o(a[p]),m=c;if(h==="__proto__"||h==="constructor"||h==="prototype")return s;if(p!=d){var v=f[h];m=u?u(v,h,f):void 0,m===void 0&&(m=n(v)?v:r(a[p+1])?[]:{})}e(f,h,m),f=f[h]}return s}return fm=i,fm}var hm,B1;function mN(){if(B1)return hm;B1=1;var e=Tz();function t(r,n,o){return r==null?r:e(r,n,o)}return hm=t,hm}var Gr={},Ks={},vm={},H1;function Az(){return H1||(H1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}})(vm)),vm}var Wr={},V1;function _N(){return V1||(V1=1,(function(e){var t=Wr&&Wr.__read||function(o,i){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var a=s.call(o),c,u=[],p;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return u},r=Wr&&Wr.__spreadArray||function(o,i){for(var s=0,a=i.length,c=o.length;s<a;s++,c++)o[c]=i[s];return o};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var n=bt();e.animationFrameProvider={schedule:function(o){var i=requestAnimationFrame,s=cancelAnimationFrame,a=e.animationFrameProvider.delegate;a&&(i=a.requestAnimationFrame,s=a.cancelAnimationFrame);var c=i(function(u){s=void 0,o(u)});return new n.Subscription(function(){return s?.(c)})},requestAnimationFrame:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=e.animationFrameProvider.delegate;return(s?.requestAnimationFrame||requestAnimationFrame).apply(void 0,r([],t(o)))},cancelAnimationFrame:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=e.animationFrameProvider.delegate;return(s?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,r([],t(o)))},delegate:void 0}})(Wr)),Wr}var G1;function Rz(){if(G1)return Ks;G1=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.animationFrames=void 0;var e=Fe(),t=Az(),r=_N();function n(s){return s?o(s):i}Ks.animationFrames=n;function o(s){return new e.Observable(function(a){var c=s||t.performanceTimestampProvider,u=c.now(),p=0,l=function(){a.closed||(p=r.animationFrameProvider.requestAnimationFrame(function(d){p=0;var f=c.now();a.next({timestamp:s?f:d,elapsed:f-u}),l()}))};return l(),function(){p&&r.animationFrameProvider.cancelAnimationFrame(p)}})}var i=o();return Ks}var mm={},Zr={},Kr={},Yr={},W1;function Mz(){if(W1)return Yr;W1=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.TestTools=Yr.Immediate=void 0;var e=1,t,r={};function n(o){return o in r?(delete r[o],!0):!1}return Yr.Immediate={setImmediate:function(o){var i=e++;return r[i]=!0,t||(t=Promise.resolve()),t.then(function(){return n(i)&&o()}),i},clearImmediate:function(o){n(o)}},Yr.TestTools={pending:function(){return Object.keys(r).length}},Yr}var Z1;function Iz(){return Z1||(Z1=1,(function(e){var t=Kr&&Kr.__read||function(s,a){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(a===void 0||a-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},r=Kr&&Kr.__spreadArray||function(s,a){for(var c=0,u=a.length,p=s.length;c<u;c++,p++)s[p]=a[c];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var n=Mz(),o=n.Immediate.setImmediate,i=n.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=e.immediateProvider.delegate;return(c?.setImmediate||o).apply(void 0,r([],t(s)))},clearImmediate:function(s){var a=e.immediateProvider.delegate;return(a?.clearImmediate||i)(s)},delegate:void 0}})(Kr)),Kr}var K1;function Cz(){if(K1)return Zr;K1=1;var e=Zr&&Zr.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.AsapAction=void 0;var t=Al(),r=Iz(),n=(function(o){e(i,o);function i(s,a){var c=o.call(this,s,a)||this;return c.scheduler=s,c.work=a,c}return i.prototype.requestAsyncId=function(s,a,c){return c===void 0&&(c=0),c!==null&&c>0?o.prototype.requestAsyncId.call(this,s,a,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.immediateProvider.setImmediate(s.flush.bind(s,void 0))))},i.prototype.recycleAsyncId=function(s,a,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,s,a,c);var p=s.actions;a!=null&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==a&&(r.immediateProvider.clearImmediate(a),s._scheduled===a&&(s._scheduled=void 0))},i})(t.AsyncAction);return Zr.AsapAction=n,Zr}var Xr={},Y1;function jz(){if(Y1)return Xr;Y1=1;var e=Xr&&Xr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.AsapScheduler=void 0;var t=Rl(),r=(function(n){e(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o.prototype.flush=function(i){this._active=!0;var s=this._scheduled;this._scheduled=void 0;var a=this.actions,c;i=i||a.shift();do if(c=i.execute(i.state,i.delay))break;while((i=a[0])&&i.id===s&&a.shift());if(this._active=!1,c){for(;(i=a[0])&&i.id===s&&a.shift();)i.unsubscribe();throw c}},o})(t.AsyncScheduler);return Xr.AsapScheduler=r,Xr}var X1;function Nz(){return X1||(X1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var t=Cz(),r=jz();e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})(mm)),mm}var _m={},Jr={},J1;function qz(){if(J1)return Jr;J1=1;var e=Jr&&Jr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.QueueAction=void 0;var t=Al(),r=(function(n){e(o,n);function o(i,s){var a=n.call(this,i,s)||this;return a.scheduler=i,a.work=s,a}return o.prototype.schedule=function(i,s){return s===void 0&&(s=0),s>0?n.prototype.schedule.call(this,i,s):(this.delay=s,this.state=i,this.scheduler.flush(this),this)},o.prototype.execute=function(i,s){return s>0||this.closed?n.prototype.execute.call(this,i,s):this._execute(i,s)},o.prototype.requestAsyncId=function(i,s,a){return a===void 0&&(a=0),a!=null&&a>0||a==null&&this.delay>0?n.prototype.requestAsyncId.call(this,i,s,a):(i.flush(this),0)},o})(t.AsyncAction);return Jr.QueueAction=r,Jr}var Qr={},Q1;function Fz(){if(Q1)return Qr;Q1=1;var e=Qr&&Qr.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.QueueScheduler=void 0;var t=Rl(),r=(function(n){e(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o})(t.AsyncScheduler);return Qr.QueueScheduler=r,Qr}var $1;function kz(){return $1||($1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var t=qz(),r=Fz();e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})(_m)),_m}var gm={},$r={},eP;function Dz(){if(eP)return $r;eP=1;var e=$r&&$r.__extends||(function(){var o=function(i,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u])},o(i,s)};return function(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(i,s);function a(){this.constructor=i}i.prototype=s===null?Object.create(s):(a.prototype=s.prototype,new a)}})();Object.defineProperty($r,"__esModule",{value:!0}),$r.AnimationFrameAction=void 0;var t=Al(),r=_N(),n=(function(o){e(i,o);function i(s,a){var c=o.call(this,s,a)||this;return c.scheduler=s,c.work=a,c}return i.prototype.requestAsyncId=function(s,a,c){return c===void 0&&(c=0),c!==null&&c>0?o.prototype.requestAsyncId.call(this,s,a,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.animationFrameProvider.requestAnimationFrame(function(){return s.flush(void 0)})))},i.prototype.recycleAsyncId=function(s,a,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,s,a,c);var p=s.actions;a!=null&&a===s._scheduled&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==a&&(r.animationFrameProvider.cancelAnimationFrame(a),s._scheduled=void 0)},i})(t.AsyncAction);return $r.AnimationFrameAction=n,$r}var en={},tP;function Lz(){if(tP)return en;tP=1;var e=en&&en.__extends||(function(){var n=function(o,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c])},n(o,i)};return function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(o,i);function s(){this.constructor=o}o.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}})();Object.defineProperty(en,"__esModule",{value:!0}),en.AnimationFrameScheduler=void 0;var t=Rl(),r=(function(n){e(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o.prototype.flush=function(i){this._active=!0;var s;i?s=i.id:(s=this._scheduled,this._scheduled=void 0);var a=this.actions,c;i=i||a.shift();do if(c=i.execute(i.state,i.delay))break;while((i=a[0])&&i.id===s&&a.shift());if(this._active=!1,c){for(;(i=a[0])&&i.id===s&&a.shift();)i.unsubscribe();throw c}},o})(t.AsyncScheduler);return en.AnimationFrameScheduler=r,en}var rP;function Uz(){return rP||(rP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=Dz(),r=Lz();e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})(gm)),gm}var Qt={},nP;function zz(){if(nP)return Qt;nP=1;var e=Qt&&Qt.__extends||(function(){var s=function(a,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var l in p)Object.prototype.hasOwnProperty.call(p,l)&&(u[l]=p[l])},s(a,c)};return function(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(a,c);function u(){this.constructor=a}a.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}})();Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.VirtualAction=Qt.VirtualTimeScheduler=void 0;var t=Al(),r=bt(),n=Rl(),o=(function(s){e(a,s);function a(c,u){c===void 0&&(c=i),u===void 0&&(u=1/0);var p=s.call(this,c,function(){return p.frame})||this;return p.maxFrames=u,p.frame=0,p.index=-1,p}return a.prototype.flush=function(){for(var c=this,u=c.actions,p=c.maxFrames,l,d;(d=u[0])&&d.delay<=p&&(u.shift(),this.frame=d.delay,!(l=d.execute(d.state,d.delay))););if(l){for(;d=u.shift();)d.unsubscribe();throw l}},a.frameTimeFactor=10,a})(n.AsyncScheduler);Qt.VirtualTimeScheduler=o;var i=(function(s){e(a,s);function a(c,u,p){p===void 0&&(p=c.index+=1);var l=s.call(this,c,u)||this;return l.scheduler=c,l.work=u,l.index=p,l.active=!0,l.index=c.index=p,l}return a.prototype.schedule=function(c,u){if(u===void 0&&(u=0),Number.isFinite(u)){if(!this.id)return s.prototype.schedule.call(this,c,u);this.active=!1;var p=new a(this.scheduler,this.work);return this.add(p),p.schedule(c,u)}else return r.Subscription.EMPTY},a.prototype.requestAsyncId=function(c,u,p){p===void 0&&(p=0),this.delay=c.frame+p;var l=c.actions;return l.push(this),l.sort(a.sortActions),1},a.prototype.recycleAsyncId=function(c,u,p){},a.prototype._execute=function(c,u){if(this.active===!0)return s.prototype._execute.call(this,c,u)},a.sortActions=function(c,u){return c.delay===u.delay?c.index===u.index?0:c.index>u.index?1:-1:c.delay>u.delay?1:-1},a})(t.AsyncAction);return Qt.VirtualAction=i,Qt}var Ys={},iP;function Bz(){if(iP)return Ys;iP=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.isObservable=void 0;var e=Fe(),t=Ne();function r(n){return!!n&&(n instanceof e.Observable||t.isFunction(n.lift)&&t.isFunction(n.subscribe))}return Ys.isObservable=r,Ys}var Xs={},aP;function Hz(){if(aP)return Xs;aP=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.lastValueFrom=void 0;var e=xn();function t(r,n){var o=typeof n=="object";return new Promise(function(i,s){var a=!1,c;r.subscribe({next:function(u){c=u,a=!0},error:s,complete:function(){a?i(c):o?i(n.defaultValue):s(new e.EmptyError)}})})}return Xs.lastValueFrom=t,Xs}var Js={},oP;function Vz(){if(oP)return Js;oP=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.firstValueFrom=void 0;var e=xn(),t=Tl();function r(n,o){var i=typeof o=="object";return new Promise(function(s,a){var c=new t.SafeSubscriber({next:function(u){s(u),c.unsubscribe()},error:a,complete:function(){i?s(o.defaultValue):a(new e.EmptyError)}});n.subscribe(c)})}return Js.firstValueFrom=r,Js}var Qs={},$t={},sP;function gN(){if(sP)return $t;sP=1;var e=$t&&$t.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=$t&&$t.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty($t,"__esModule",{value:!0}),$t.bindCallbackInternals=void 0;var r=Op(),n=Fe(),o=Il(),i=En(),s=Ml(),a=Ug();function c(u,p,l,d){if(l)if(r.isScheduler(l))d=l;else return function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(u,p,d).apply(this,f).pipe(i.mapOneOrManyArgs(l))};return d?function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(u,p).apply(this,f).pipe(o.subscribeOn(d),s.observeOn(d))}:function(){for(var f=this,h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=new a.AsyncSubject,_=!0;return new n.Observable(function(g){var y=v.subscribe(g);if(_){_=!1;var b=!1,E=!1;p.apply(f,t(t([],e(h)),[function(){for(var x=[],O=0;O<arguments.length;O++)x[O]=arguments[O];if(u){var S=x.shift();if(S!=null){v.error(S);return}}v.next(1<x.length?x:x[0]),E=!0,b&&v.complete()}])),E&&v.complete(),b=!0}return y})}}return $t.bindCallbackInternals=c,$t}var cP;function Gz(){if(cP)return Qs;cP=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.bindCallback=void 0;var e=gN();function t(r,n,o){return e.bindCallbackInternals(!1,r,n,o)}return Qs.bindCallback=t,Qs}var $s={},uP;function Wz(){if(uP)return $s;uP=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.bindNodeCallback=void 0;var e=gN();function t(r,n,o){return e.bindCallbackInternals(!0,r,n,o)}return $s.bindNodeCallback=t,$s}var ec={},tc={},lP;function jp(){if(lP)return tc;lP=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.defer=void 0;var e=Fe(),t=we();function r(n){return new e.Observable(function(o){t.innerFrom(n()).subscribe(o)})}return tc.defer=r,tc}var dP;function Zz(){if(dP)return ec;dP=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.connectable=void 0;var e=at(),t=Fe(),r=jp(),n={connector:function(){return new e.Subject},resetOnDisconnect:!0};function o(i,s){s===void 0&&(s=n);var a=null,c=s.connector,u=s.resetOnDisconnect,p=u===void 0?!0:u,l=c(),d=new t.Observable(function(f){return l.subscribe(f)});return d.connect=function(){return(!a||a.closed)&&(a=r.defer(function(){return i}).subscribe(l),p&&a.add(function(){return l=c()})),a},d}return ec.connectable=o,ec}var rc={},pP;function Kz(){if(pP)return rc;pP=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.forkJoin=void 0;var e=Fe(),t=IC(),r=we(),n=_t(),o=pe(),i=En(),s=qC();function a(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var p=n.popResultSelector(c),l=t.argsArgArrayOrObject(c),d=l.args,f=l.keys,h=new e.Observable(function(m){var v=d.length;if(!v){m.complete();return}for(var _=new Array(v),g=v,y=v,b=function(x){var O=!1;r.innerFrom(d[x]).subscribe(o.createOperatorSubscriber(m,function(S){O||(O=!0,y--),_[x]=S},function(){return g--},void 0,function(){(!g||!O)&&(y||m.next(f?s.createObject(f,_):_),m.complete())}))},E=0;E<v;E++)b(E)});return p?h.pipe(i.mapOneOrManyArgs(p)):h}return rc.forkJoin=a,rc}var tn={},fP;function Yz(){if(fP)return tn;fP=1;var e=tn&&tn.__read||function(m,v){var _=typeof Symbol=="function"&&m[Symbol.iterator];if(!_)return m;var g=_.call(m),y,b=[],E;try{for(;(v===void 0||v-- >0)&&!(y=g.next()).done;)b.push(y.value)}catch(x){E={error:x}}finally{try{y&&!y.done&&(_=g.return)&&_.call(g)}finally{if(E)throw E.error}}return b};Object.defineProperty(tn,"__esModule",{value:!0}),tn.fromEvent=void 0;var t=we(),r=Fe(),n=tr(),o=gg(),i=Ne(),s=En(),a=["addListener","removeListener"],c=["addEventListener","removeEventListener"],u=["on","off"];function p(m,v,_,g){if(i.isFunction(_)&&(g=_,_=void 0),g)return p(m,v,_).pipe(s.mapOneOrManyArgs(g));var y=e(h(m)?c.map(function(x){return function(O){return m[x](v,O,_)}}):d(m)?a.map(l(m,v)):f(m)?u.map(l(m,v)):[],2),b=y[0],E=y[1];if(!b&&o.isArrayLike(m))return n.mergeMap(function(x){return p(x,v,_)})(t.innerFrom(m));if(!b)throw new TypeError("Invalid event target");return new r.Observable(function(x){var O=function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return x.next(1<S.length?S:S[0])};return b(O),function(){return E(O)}})}tn.fromEvent=p;function l(m,v){return function(_){return function(g){return m[_](v,g)}}}function d(m){return i.isFunction(m.addListener)&&i.isFunction(m.removeListener)}function f(m){return i.isFunction(m.on)&&i.isFunction(m.off)}function h(m){return i.isFunction(m.addEventListener)&&i.isFunction(m.removeEventListener)}return tn}var nc={},hP;function Xz(){if(hP)return nc;hP=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.fromEventPattern=void 0;var e=Fe(),t=Ne(),r=En();function n(o,i,s){return s?n(o,i).pipe(r.mapOneOrManyArgs(s)):new e.Observable(function(a){var c=function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];return a.next(p.length===1?p[0]:p)},u=o(c);return t.isFunction(i)?function(){return i(c,u)}:void 0})}return nc.fromEventPattern=n,nc}var rn={},vP;function Jz(){if(vP)return rn;vP=1;var e=rn&&rn.__generator||function(s,a){var c={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,p,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(v){return h([m,v])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,p&&(l=m[0]&2?p.return:m[0]?p.throw||((l=p.return)&&l.call(p),0):p.next)&&!(l=l.call(p,m[1])).done)return l;switch(p=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,p=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(l=c.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){c.label=m[1];break}if(m[0]===6&&c.label<l[1]){c.label=l[1],l=m;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(m);break}l[2]&&c.ops.pop(),c.trys.pop();continue}m=a.call(s,c)}catch(v){m=[6,v],p=0}finally{u=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.generate=void 0;var t=it(),r=Op(),n=jp(),o=CC();function i(s,a,c,u,p){var l,d,f,h;arguments.length===1?(l=s,h=l.initialState,a=l.condition,c=l.iterate,d=l.resultSelector,f=d===void 0?t.identity:d,p=l.scheduler):(h=s,!u||r.isScheduler(u)?(f=t.identity,p=u):f=u);function m(){var v;return e(this,function(_){switch(_.label){case 0:v=h,_.label=1;case 1:return!a||a(v)?[4,f(v)]:[3,4];case 2:_.sent(),_.label=3;case 3:return v=c(v),[3,1];case 4:return[2]}})}return n.defer(p?function(){return o.scheduleIterable(m(),p)}:m)}return rn.generate=i,rn}var ic={},mP;function Qz(){if(mP)return ic;mP=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.iif=void 0;var e=jp();function t(r,n,o){return e.defer(function(){return r()?n:o})}return ic.iif=t,ic}var ac={},_P;function $z(){if(_P)return ac;_P=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.merge=void 0;var e=Cl(),t=we(),r=It(),n=_t(),o=lr();function i(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var c=n.popScheduler(s),u=n.popNumber(s,1/0),p=s;return p.length?p.length===1?t.innerFrom(p[0]):e.mergeAll(u)(o.from(p,c)):r.EMPTY}return ac.merge=i,ac}var ym={},gP;function yP(){return gP||(gP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var t=Fe(),r=nt();e.NEVER=new t.Observable(r.noop);function n(){return e.NEVER}e.never=n})(ym)),ym}var oc={},bP;function eB(){if(bP)return oc;bP=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.pairs=void 0;var e=lr();function t(r,n){return e.from(Object.entries(r),n)}return oc.pairs=t,oc}var sc={},EP;function tB(){if(EP)return sc;EP=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.partition=void 0;var e=xj(),t=pr(),r=we();function n(o,i,s){return[t.filter(i,s)(r.innerFrom(o)),t.filter(e.not(i,s))(r.innerFrom(o))]}return sc.partition=n,sc}var cc={},xP;function rB(){if(xP)return cc;xP=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.range=void 0;var e=Fe(),t=It();function r(n,o,i){if(o==null&&(o=n,n=0),o<=0)return t.EMPTY;var s=o+n;return new e.Observable(i?function(a){var c=n;return i.schedule(function(){c<s?(a.next(c++),this.schedule()):a.complete()})}:function(a){for(var c=n;c<s&&!a.closed;)a.next(c++);a.complete()})}return cc.range=r,cc}var uc={},OP;function nB(){if(OP)return uc;OP=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.using=void 0;var e=Fe(),t=we(),r=It();function n(o,i){return new e.Observable(function(s){var a=o(),c=i(a),u=c?t.innerFrom(c):r.EMPTY;return u.subscribe(s),function(){a&&a.unsubscribe()}})}return uc.using=n,uc}var bm={},wP;function iB(){return wP||(wP=1,Object.defineProperty(bm,"__esModule",{value:!0})),bm}var SP;function On(){return SP||(SP=1,(function(e){var t=Gr&&Gr.__createBinding||(Object.create?(function(Mn,In,Nt,yr){yr===void 0&&(yr=Nt),Object.defineProperty(Mn,yr,{enumerable:!0,get:function(){return In[Nt]}})}):(function(Mn,In,Nt,yr){yr===void 0&&(yr=Nt),Mn[yr]=In[Nt]})),r=Gr&&Gr.__exportStar||function(Mn,In){for(var Nt in Mn)Nt!=="default"&&!Object.prototype.hasOwnProperty.call(In,Nt)&&t(In,Mn,Nt)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var n=Fe();Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return n.Observable}});var o=Tp();Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var i=Ep();Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return i.observable}});var s=Rz();Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return s.animationFrames}});var a=at();Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return a.Subject}});var c=Sj();Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var u=zg();Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return u.ReplaySubject}});var p=Ug();Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var l=Nz();Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return l.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return l.asapScheduler}});var d=mt();Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var f=kz();Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return f.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return f.queueScheduler}});var h=Uz();Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return h.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return h.animationFrameScheduler}});var m=zz();Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return m.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return m.VirtualAction}});var v=OC();Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var _=bt();Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return _.Subscription}});var g=Tl();Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var y=jg();Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return y.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return y.NotificationKind}});var b=xp();Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return b.pipe}});var E=nt();Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return E.noop}});var x=it();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return x.identity}});var O=Bz();Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return O.isObservable}});var S=Hz();Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});var w=Vz();Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return w.firstValueFrom}});var A=$C();Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var P=xn();Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var T=Uj();Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var q=VC();Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return q.ObjectUnsubscribedError}});var D=Lj();Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return D.SequenceError}});var V=ap();Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return V.TimeoutError}});var k=vC();Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return k.UnsubscriptionError}});var F=Gz();Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return F.bindCallback}});var Z=Wz();Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return Z.bindNodeCallback}});var J=wg();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return J.combineLatest}});var U=Pp();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return U.concat}});var Q=Zz();Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return Q.connectable}});var C=jp();Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return C.defer}});var N=It();Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return N.empty}});var L=Kz();Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return L.forkJoin}});var B=lr();Object.defineProperty(e,"from",{enumerable:!0,get:function(){return B.from}});var M=Yz();Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return M.fromEvent}});var j=Xz();Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return j.fromEventPattern}});var z=Jz();Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return z.generate}});var Y=Qz();Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var ee=Nj();Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return ee.interval}});var R=$z();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return R.merge}});var I=yP();Object.defineProperty(e,"never",{enumerable:!0,get:function(){return I.never}});var W=Cg();Object.defineProperty(e,"of",{enumerable:!0,get:function(){return W.of}});var $=yj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return $.onErrorResumeNext}});var oe=eB();Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return oe.pairs}});var te=tB();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return te.partition}});var le=Rj();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return le.race}});var _e=rB();Object.defineProperty(e,"range",{enumerable:!0,get:function(){return _e.range}});var be=YC();Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return be.throwError}});var Pe=bn();Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Pe.timer}});var Re=nB();Object.defineProperty(e,"using",{enumerable:!0,get:function(){return Re.using}});var Ee=Wg();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Ee.zip}});var Te=NC();Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return Te.scheduled}});var me=It();Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return me.EMPTY}});var qe=yP();Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return qe.NEVER}}),r(iB(),e);var Ke=Pl();Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Ke.config}});var ye=Eg();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return ye.audit}});var Ge=wC();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Ge.auditTime}});var xi=SC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return xi.buffer}});var Oi=PC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return Oi.bufferCount}});var gr=TC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return gr.bufferTime}});var H=AC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return H.bufferToggle}});var G=RC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return G.bufferWhen}});var K=MC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return K.catchError}});var re=DC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return re.combineAll}});var fe=Tg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return fe.combineLatestAll}});var Be=UC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Be.combineLatestWith}});var Ue=wp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Ue.concatAll}});var Oe=Ag();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Oe.concatMap}});var ie=BC();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return ie.concatMapTo}});var se=HC();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return se.concatWith}});var ue=Sp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return ue.connect}});var de=GC();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return de.count}});var Se=WC();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Se.debounce}});var Me=ZC();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Me.debounceTime}});var ke=jl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return ke.defaultIfEmpty}});var st=KC();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return st.delay}});var Rn=Ig();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return Rn.delayWhen}});var wi=XC();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return wi.dematerialize}});var Si=JC();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Si.distinct}});var Wp=Ng();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Wp.distinctUntilChanged}});var Zp=QC();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Zp.distinctUntilKeyChanged}});var Kp=ej();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Kp.elementAt}});var Yp=tj();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Yp.endWith}});var Xp=rj();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Xp.every}});var Jp=nj();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return Jp.exhaust}});var Qp=Fg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Qp.exhaustAll}});var $p=qg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return $p.exhaustMap}});var ef=ij();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return ef.expand}});var tf=pr();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return tf.filter}});var rf=aj();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return rf.finalize}});var nf=kg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return nf.find}});var af=oj();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return af.findIndex}});var of=sj();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return of.first}});var sf=cj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return sf.groupBy}});var cf=Rg();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return cf.ignoreElements}});var uf=uj();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return uf.isEmpty}});var lf=lj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return lf.last}});var df=dr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return df.map}});var pf=Mg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return pf.mapTo}});var ff=dj();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return ff.materialize}});var hf=pj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return hf.max}});var vf=Cl();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return vf.mergeAll}});var mf=hj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return mf.flatMap}});var _f=tr();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return _f.mergeMap}});var gf=vj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return gf.mergeMapTo}});var yf=mj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return yf.mergeScan}});var hF=_j();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return hF.mergeWith}});var vF=gj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return vF.min}});var mF=Ap();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return mF.multicast}});var _F=Ml();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return _F.observeOn}});var gF=bj();Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return gF.onErrorResumeNextWith}});var yF=Ej();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return yF.pairwise}});var bF=Oj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return bF.pluck}});var EF=wj();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return EF.publish}});var xF=Pj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return xF.publishBehavior}});var OF=Tj();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return OF.publishLast}});var wF=Aj();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return wF.publishReplay}});var SF=Bg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return SF.raceWith}});var PF=pi();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return PF.reduce}});var TF=Mj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return TF.repeat}});var AF=Ij();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return AF.repeatWhen}});var RF=Cj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return RF.retry}});var MF=jj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return MF.retryWhen}});var IF=Lg();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return IF.refCount}});var CF=Hg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return CF.sample}});var jF=qj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return jF.sampleTime}});var NF=Fj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return NF.scan}});var qF=kj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return qF.sequenceEqual}});var FF=Vg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return FF.share}});var kF=Dj();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return kF.shareReplay}});var DF=zj();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return DF.single}});var LF=Bj();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return LF.skip}});var UF=Hj();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return UF.skipLast}});var zF=Vj();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return zF.skipUntil}});var BF=Gj();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return BF.skipWhile}});var HF=Wj();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return HF.startWith}});var VF=Il();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return VF.subscribeOn}});var GF=Zj();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return GF.switchAll}});var WF=Fl();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return WF.switchMap}});var ZF=Kj();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return ZF.switchMapTo}});var KF=Yj();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return KF.switchScan}});var YF=Nl();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return YF.take}});var XF=Dg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return XF.takeLast}});var JF=Xj();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return JF.takeUntil}});var QF=Jj();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return QF.takeWhile}});var $F=Qj();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return $F.tap}});var ek=Gg();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return ek.throttle}});var tk=$j();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return tk.throttleTime}});var rk=ql();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return rk.throwIfEmpty}});var nk=eN();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return nk.timeInterval}});var ik=ap();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return ik.timeout}});var ak=tN();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return ak.timeoutWith}});var ok=rN();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return ok.timestamp}});var sk=Pg();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return sk.toArray}});var ck=nN();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return ck.window}});var uk=iN();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return uk.windowCount}});var lk=aN();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return lk.windowTime}});var dk=oN();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return dk.windowToggle}});var pk=sN();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return pk.windowWhen}});var fk=cN();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return fk.withLatestFrom}});var hk=lN();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return hk.zipAll}});var vk=dN();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return vk.zipWith}})})(Gr)),Gr}var PP;function ny(){if(PP)return We;PP=1;var e=We&&We.__createBinding||(Object.create?(function(_,g,y,b){b===void 0&&(b=y);var E=Object.getOwnPropertyDescriptor(g,y);(!E||("get"in E?!g.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return g[y]}}),Object.defineProperty(_,b,E)}):(function(_,g,y,b){b===void 0&&(b=y),_[b]=g[y]})),t=We&&We.__setModuleDefault||(Object.create?(function(_,g){Object.defineProperty(_,"default",{enumerable:!0,value:g})}):function(_,g){_.default=g}),r=We&&We.__decorate||function(_,g,y,b){var E=arguments.length,x=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,y):b,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(_,g,y,b);else for(var S=_.length-1;S>=0;S--)(O=_[S])&&(x=(E<3?O(x):E>3?O(g,y,x):O(g,y))||x);return E>3&&x&&Object.defineProperty(g,y,x),x},n=We&&We.__importStar||(function(){var _=function(g){return _=Object.getOwnPropertyNames||function(y){var b=[];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(b[b.length]=E);return b},_(g)};return function(g){if(g&&g.__esModule)return g;var y={};if(g!=null)for(var b=_(g),E=0;E<b.length;E++)b[E]!=="default"&&e(y,g,b[E]);return t(y,g),y}})(),o=We&&We.__metadata||function(_,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,g)},i=We&&We.__param||function(_,g){return function(y,b){g(y,b,_)}},s=We&&We.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(We,"__esModule",{value:!0}),We.ConfigService=void 0;const a=ve(),c=ne(),u=n(fN()),p=s(El),l=s(_z()),d=s(Oz()),f=s(mN()),h=On(),m=kl();let v=class{set isCacheEnabled(g){this._isCacheEnabled=g}get isCacheEnabled(){return this._isCacheEnabled}set skipProcessEnv(g){this._skipProcessEnv=g}get skipProcessEnv(){return this._skipProcessEnv}constructor(g={}){this.internalConfig=g,this.cache={},this._changes$=new h.Subject,this._skipProcessEnv=!1,this._isCacheEnabled=!1,this.envFilePaths=[]}get changes$(){return this._changes$.asObservable()}get(g,y,b){const E=this.getFromInternalConfig(g);if(!(0,c.isUndefined)(E))return E;const x=this.getFromValidatedEnv(g);if(!(0,c.isUndefined)(x))return x;const O=this.isGetOptionsObject(y)&&!b?void 0:y;if(!this._skipProcessEnv){const S=this.getFromProcessEnv(g,O);if(!(0,c.isUndefined)(S))return S}return O}getOrThrow(g,y,b){const E=this.get(g,y,b);if((0,c.isUndefined)(E))throw new TypeError(`Configuration key "${g.toString()}" does not exist`);return E}set(g,y){const b=this.get(g);(0,f.default)(this.internalConfig,g,y),typeof g=="string"&&(process.env[g]=String(y),this.updateInterpolatedEnv(g,String(y))),this.isCacheEnabled&&this.setInCacheIfDefined(g,y),this._changes$.next({path:g,oldValue:b,newValue:y})}setEnvFilePaths(g){this.envFilePaths=g}getFromCache(g,y){const b=(0,l.default)(this.cache,g);return(0,c.isUndefined)(b)?y:b}getFromValidatedEnv(g){return(0,l.default)(this.internalConfig[m.VALIDATED_ENV_PROPNAME],g)}getFromProcessEnv(g,y){if(this.isCacheEnabled&&(0,d.default)(this.cache,g)){const E=this.getFromCache(g,y);return(0,c.isUndefined)(E)?y:E}const b=(0,l.default)(process.env,g);return this.setInCacheIfDefined(g,b),b}getFromInternalConfig(g){return(0,l.default)(this.internalConfig,g)}setInCacheIfDefined(g,y){typeof y>"u"||(0,f.default)(this.cache,g,y)}isGetOptionsObject(g){return g&&g?.infer&&Object.keys(g).length===1}updateInterpolatedEnv(g,y){let b={};for(const x of this.envFilePaths)p.default.existsSync(x)&&(b=Object.assign(u.parse(p.default.readFileSync(x)),b));const E=new RegExp(`\\$\\{?${g}\\}?`,"g");for(const[x,O]of Object.entries(b))E.test(O)&&(process.env[x]=O.replace(E,y))}};return We.ConfigService=v,We.ConfigService=v=r([(0,a.Injectable)(),i(0,(0,a.Optional)()),i(0,(0,a.Inject)(m.CONFIGURATION_TOKEN)),o("design:paramtypes",[Object])],v),We}var TP;function aB(){if(TP)return nr;TP=1;var e=nr&&nr.__decorate||function(i,s,a,c){var u=arguments.length,p=u<3?s:c===null?c=Object.getOwnPropertyDescriptor(s,a):c,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,s,a,c);else for(var d=i.length-1;d>=0;d--)(l=i[d])&&(p=(u<3?l(p):u>3?l(s,a,p):l(s,a))||p);return u>3&&p&&Object.defineProperty(s,a,p),p};Object.defineProperty(nr,"__esModule",{value:!0}),nr.ConfigHostModule=void 0;const t=ve(),r=kl(),n=ny();let o=class{};return nr.ConfigHostModule=o,nr.ConfigHostModule=o=e([(0,t.Global)(),(0,t.Module)({providers:[{provide:r.CONFIGURATION_TOKEN,useFactory:()=>({})},{provide:r.CONFIGURATION_SERVICE_TOKEN,useClass:n.ConfigService}],exports:[r.CONFIGURATION_TOKEN,r.CONFIGURATION_SERVICE_TOKEN]})],o),nr}var Sd={},Pd={},AP;function iy(){if(AP)return Pd;AP=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.getConfigToken=e;function e(t){return`CONFIGURATION(${t.toString()})`}return Pd}var RP;function oB(){if(RP)return Sd;RP=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.createConfigProvider=r;const e=iy(),t=ci;function r(n){return{provide:n.KEY||(0,e.getConfigToken)((0,t.randomUUID)()),useFactory:n,inject:[]}}return Sd}var Td={},MP;function sB(){if(MP)return Td;MP=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.getRegistrationToken=t;const e=kl();function t(r){return r[e.PARTIAL_CONFIGURATION_KEY]}return Td}var Kn={},IP;function cB(){if(IP)return Kn;IP=1;var e=Kn&&Kn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.mergeConfigObject=r;const t=e(mN());function r(n,o,i){if(i)return(0,t.default)(n,i,o),o;Object.assign(n,o)}return Kn}var CP;function yN(){if(CP)return pt;CP=1;var e=pt&&pt.__createBinding||(Object.create?(function(g,y,b,E){E===void 0&&(E=b);var x=Object.getOwnPropertyDescriptor(y,b);(!x||("get"in x?!y.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return y[b]}}),Object.defineProperty(g,E,x)}):(function(g,y,b,E){E===void 0&&(E=b),g[E]=y[b]})),t=pt&&pt.__setModuleDefault||(Object.create?(function(g,y){Object.defineProperty(g,"default",{enumerable:!0,value:y})}):function(g,y){g.default=y}),r=pt&&pt.__decorate||function(g,y,b,E){var x=arguments.length,O=x<3?y:E===null?E=Object.getOwnPropertyDescriptor(y,b):E,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(g,y,b,E);else for(var w=g.length-1;w>=0;w--)(S=g[w])&&(O=(x<3?S(O):x>3?S(y,b,O):S(y,b))||O);return x>3&&O&&Object.defineProperty(y,b,O),O},n=pt&&pt.__importStar||(function(){var g=function(y){return g=Object.getOwnPropertyNames||function(b){var E=[];for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(E[E.length]=x);return E},g(y)};return function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var E=g(y),x=0;x<E.length;x++)E[x]!=="default"&&e(b,y,E[x]);return t(b,y),b}})(),o;Object.defineProperty(pt,"__esModule",{value:!0}),pt.ConfigModule=void 0;const i=ve(),s=ne(),a=n(fN()),c=jU(),u=n(El),p=ir,l=aB(),d=kl(),f=ny(),h=oB(),m=sB(),v=cB();let _=o=class{static get envVariablesLoaded(){return this._envVariablesLoaded}static async forRoot(y={}){const b=Array.isArray(y.envFilePath)?y.envFilePath:[y.envFilePath||(0,p.resolve)(process.cwd(),".env")];let E,x=y.ignoreEnvFile?{}:this.loadEnvFile(b,y);if(!y.ignoreEnvVars&&y.validatePredefined!==!1&&(x={...x,...process.env}),y.validate){const T=y.validate(x);E=T,this.assignVariablesToProcess(T)}else if(y.validationSchema){const T=this.getSchemaValidationOptions(y),{error:q,value:D}=y.validationSchema.validate(x,T);if(q)throw new Error(`Config validation error: ${q.message}`);E=D,this.assignVariablesToProcess(D)}else this.assignVariablesToProcess(x);const O=y.load&&y.load.length,w=(await Promise.all(y.load||[])).map(T=>(0,h.createConfigProvider)(T)).filter(T=>T),A=w.map(T=>T.provide),P={provide:f.ConfigService,useFactory:T=>{const q=T;return y.cache&&(q.isCacheEnabled=!0),y.skipProcessEnv&&(q.skipProcessEnv=!0),T.setEnvFilePaths(b),T},inject:[d.CONFIGURATION_SERVICE_TOKEN,...A]};if(w.push(P),E){const T={provide:d.VALIDATED_ENV_LOADER,useFactory:q=>{q[d.VALIDATED_ENV_PROPNAME]=E},inject:[d.CONFIGURATION_TOKEN]};w.push(T)}return this.environmentVariablesLoadedSignal(),{module:o,global:y.isGlobal,providers:O?[...w,{provide:d.CONFIGURATION_LOADER,useFactory:(T,...q)=>{q.forEach((D,V)=>this.mergePartial(T,D,w[V]))},inject:[d.CONFIGURATION_TOKEN,...A]}]:w,exports:[f.ConfigService,...A]}}static forFeature(y){const b=(0,h.createConfigProvider)(y),E={provide:f.ConfigService,useFactory:x=>x,inject:[d.CONFIGURATION_SERVICE_TOKEN,b.provide]};return{module:o,providers:[b,E,{provide:d.CONFIGURATION_LOADER,useFactory:(x,O)=>{this.mergePartial(x,O,b)},inject:[d.CONFIGURATION_TOKEN,b.provide]}],exports:[f.ConfigService,b.provide]}}static loadEnvFile(y,b){let E={};for(const x of y)if(u.existsSync(x)&&(E=Object.assign(a.parse(u.readFileSync(x)),E),b.expandVariables)){const O=typeof b.expandVariables=="object"?b.expandVariables:{};E=(0,c.expand)({...O,parsed:E}).parsed||E}return E}static assignVariablesToProcess(y){if(!(0,s.isObject)(y))return;Object.keys(y).filter(E=>!(E in process.env)).forEach(E=>{const x=y[E];typeof x=="string"?process.env[E]=x:(typeof x=="boolean"||typeof x=="number")&&(process.env[E]=`${x}`)})}static mergePartial(y,b,E){const x=E.useFactory,O=(0,m.getRegistrationToken)(x);(0,v.mergeConfigObject)(y,b,O)}static getSchemaValidationOptions(y){return y.validationOptions?(typeof y.validationOptions.allowUnknown>"u"&&(y.validationOptions.allowUnknown=!0),y.validationOptions):{abortEarly:!1,allowUnknown:!0}}};return pt.ConfigModule=_,_._envVariablesLoaded=new Promise(g=>o.environmentVariablesLoadedSignal=g),pt.ConfigModule=_=o=r([(0,i.Module)({imports:[l.ConfigHostModule],providers:[{provide:f.ConfigService,useExisting:d.CONFIGURATION_SERVICE_TOKEN}],exports:[l.ConfigHostModule,f.ConfigService]})],_),pt}var jP;function uB(){if(jP)return Pi;jP=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.ConditionalModule=void 0;const e=ve(),t=yN(),r=o=>o?.forwardRef?o.forwardRef()?.name:o.module?o.module?.name:o.name;class n{static async registerWhen(i,s,a){const{timeout:c=5e3,debug:u=!0}=a??{},p=r(i)||i.toString(),l=setTimeout(()=>{throw new Error(`Nest was not able to resolve the config variables within ${c} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${p} should be registered or not`)},c);l.unref();const d={module:n,imports:[],exports:[]};if(typeof s=="string"){const h=s;s=m=>m[h]?.toLowerCase()!=="false"}return await t.ConfigModule.envVariablesLoaded,clearTimeout(l),s(process.env)?(d.imports.push(i),d.exports.push(i)):u&&e.Logger.debug(`${s.toString()} evaluated to false. Skipping the registration of ${p}`,n.name),d}}return Pi.ConditionalModule=n,Pi}var nn={},Em={},NP;function lB(){return NP||(NP=1,Object.defineProperty(Em,"__esModule",{value:!0})),Em}var xm={},qP;function dB(){return qP||(qP=1,Object.defineProperty(xm,"__esModule",{value:!0})),xm}var Om={},FP;function pB(){return FP||(FP=1,Object.defineProperty(Om,"__esModule",{value:!0})),Om}var wm={},kP;function fB(){return kP||(kP=1,Object.defineProperty(wm,"__esModule",{value:!0})),wm}var DP;function hB(){return DP||(DP=1,(function(e){var t=nn&&nn.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=nn&&nn.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(lB(),e),r(dB(),e),r(pB(),e),r(fB(),e)})(nn)),nn}var an={},Ad={},LP;function vB(){if(LP)return Ad;LP=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.registerAs=n;const e=bN(),t=kl(),r=iy();function n(o,i){const s=(a,c)=>{Object.defineProperty(i,a,{configurable:!1,enumerable:!1,value:c,writable:!1})};return s(t.PARTIAL_CONFIGURATION_KEY,o),s(t.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(o)),s(t.AS_PROVIDER_METHOD_KEY,()=>({imports:[e.ConfigModule.forFeature(i)],useFactory:a=>a,inject:[(0,r.getConfigToken)(o)]})),i}return Ad}var UP;function mB(){return UP||(UP=1,(function(e){var t=an&&an.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=an&&an.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(vB(),e),r(iy(),e)})(an)),an}var on={},Sm={},zP;function _B(){return zP||(zP=1,Object.defineProperty(Sm,"__esModule",{value:!0})),Sm}var Pm={},BP;function gB(){return BP||(BP=1,Object.defineProperty(Pm,"__esModule",{value:!0})),Pm}var Tm={},HP;function yB(){return HP||(HP=1,Object.defineProperty(Tm,"__esModule",{value:!0})),Tm}var VP;function bB(){return VP||(VP=1,(function(e){var t=on&&on.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=on&&on.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(_B(),e),r(gB(),e),r(yB(),e)})(on)),on}var GP;function bN(){return GP||(GP=1,(function(e){var t=br&&br.__createBinding||(Object.create?(function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}):(function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]})),r=br&&br.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(uB(),e),r(yN(),e),r(ny(),e),r(hB(),e),r(mB(),e),r(bB(),e)})(br)),br}var WP;function EB(){return WP||(WP=1,(function(e){function t(r){for(var n in r)e.hasOwnProperty(n)||(e[n]=r[n])}e.__esModule=!0,t(bN())})(xf)),xf}var op=EB();const xB=(e,t=process.env)=>{const r=e.safeParse(t);if(!r.success)throw new Error(`Invalid environment variables: ${JSON.stringify(r.error.issues)}`);return r.data},OB=[];for(let e=0;e<256;++e)OB.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function he(e,t,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=s.prototype,p=Object.keys(u);for(let l=0;l<p.length;l++){const d=p[l];d in a||(a[d]=u[d].bind(a))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var c;const u=r?.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ii extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class EN extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const xN={};function fn(e){return xN}function ON(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,n])=>t.indexOf(+r)===-1).map(([r,n])=>n)}function ag(e,t){return typeof t=="bigint"?t.toString():t}function ay(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function oy(e){return e==null}function sy(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function wB(e,t){const r=(e.toString().split(".")[1]||"").length,n=t.toString();let o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const i=r>o?r:o,s=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return s%a/10**i}const ZP=Symbol("evaluating");function Ie(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==ZP)return n===void 0&&(n=ZP,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function wn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function fr(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function KP(e){return JSON.stringify(e)}const wN="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function sp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const SB=ay(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function _l(e){if(sp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(sp(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function SN(e){return _l(e)?{...e}:Array.isArray(e)?[...e]:e}const PB=new Set(["string","number","symbol"]);function TB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Ze(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function AB(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const RB={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function MB(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=fr(e._zod.def,{get shape(){const i={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return wn(this,"shape",i),i},checks:[]});return hr(e,o)}function IB(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=fr(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return wn(this,"shape",i),i},checks:[]});return hr(e,o)}function CB(e,t){if(!_l(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=fr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return wn(this,"shape",o),o}});return hr(e,n)}function jB(e,t){if(!_l(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=fr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return wn(this,"shape",n),n}});return hr(e,r)}function NB(e,t){const r=fr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return wn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return hr(e,r)}function qB(e,t,r){const n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=fr(t._zod.def,{get shape(){const i=t._zod.def.shape,s={...i};if(r)for(const a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=e?new e({type:"optional",innerType:i[a]}):i[a])}else for(const a in i)s[a]=e?new e({type:"optional",innerType:i[a]}):i[a];return wn(this,"shape",s),s},checks:[]});return hr(t,o)}function FB(e,t,r){const n=fr(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return wn(this,"shape",i),i}});return hr(t,n)}function ri(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function PN(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Rd(e){return typeof e=="string"?e:e?.message}function hn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Rd(e.inst?._zod.def?.error?.(e))??Rd(t?.error?.(e))??Rd(r.customError?.(e))??Rd(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function cy(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gl(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const TN=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ag,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},AN=he("$ZodError",TN),RN=he("$ZodError",TN,{Parent:Error});function kB(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function DB(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const c=i.path[a];a===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return n(e),r}const uy=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ii;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>hn(c,i,fn())));throw wN(a,o?.callee),a}return s.value},ly=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>hn(c,i,fn())));throw wN(a,o?.callee),a}return s.value},Np=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ii;return i.issues.length?{success:!1,error:new(e??AN)(i.issues.map(s=>hn(s,o,fn())))}:{success:!0,data:i.value}},LB=Np(RN),qp=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>hn(s,o,fn())))}:{success:!0,data:i.value}},UB=qp(RN),zB=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return uy(e)(t,r,o)},BB=e=>(t,r,n)=>uy(e)(t,r,n),HB=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ly(e)(t,r,o)},VB=e=>async(t,r,n)=>ly(e)(t,r,n),GB=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Np(e)(t,r,o)},WB=e=>(t,r,n)=>Np(e)(t,r,n),ZB=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return qp(e)(t,r,o)},KB=e=>async(t,r,n)=>qp(e)(t,r,n),YB=/^-?\d+$/,XB=/^-?\d+(?:\.\d+)?$/,Ct=he("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),MN={number:"number",bigint:"bigint",object:"date"},IN=he("$ZodCheckLessThan",(e,t)=>{Ct.init(e,t);const r=MN[typeof t.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),CN=he("$ZodCheckGreaterThan",(e,t)=>{Ct.init(e,t);const r=MN[typeof t.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),JB=he("$ZodCheckMultipleOf",(e,t)=>{Ct.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):wB(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),QB=he("$ZodCheckNumberFormat",(e,t)=>{Ct.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),n=r?"int":"number",[o,i]=RB[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=o,a.maximum=i,r&&(a.pattern=YB)}),e._zod.check=s=>{const a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),$B=he("$ZodCheckMaxLength",(e,t)=>{var r;Ct.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!oy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const i=cy(o);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),eH=he("$ZodCheckMinLength",(e,t)=>{var r;Ct.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!oy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const i=cy(o);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),tH=he("$ZodCheckLengthEquals",(e,t)=>{var r;Ct.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!oy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=cy(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),rH=he("$ZodCheckOverwrite",(e,t)=>{Ct.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class nH{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
11
11
|
`).filter(i=>i),n=Math.min(...r.map(i=>i.length-i.trimStart().length)),o=r.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(const i of o)this.content.push(i)}compile(){const t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
|
|
12
|
-
`))}}const
|
|
12
|
+
`))}}const iH={major:4,minor:3,patch:6},Xe=he("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=iH;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,c)=>{let u=ri(s),p;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(s))continue}else if(u)continue;const d=s.issues.length,f=l._zod.check(s);if(f instanceof Promise&&c?.async===!1)throw new ii;if(p||f instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await f,s.issues.length!==d&&(u||(u=ri(s,d)))});else{if(s.issues.length===d)continue;u||(u=ri(s,d))}}return p?p.then(()=>s):s},i=(s,a,c)=>{if(ri(s))return s.aborted=!0,s;const u=o(a,n,c);if(u instanceof Promise){if(c.async===!1)throw new ii;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(p=>i(p,s,a)):i(u,s,a)}const c=e._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new ii;return c.then(u=>o(u,n,a))}return o(c,n,a)}}Ie(e,"~standard",()=>({validate:o=>{try{const i=LB(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return UB(e,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),jN=he("$ZodNumber",(e,t)=>{Xe.init(e,t),e._zod.pattern=e._zod.bag.pattern??XB,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),r}}),aH=he("$ZodNumberFormat",(e,t)=>{QB.init(e,t),jN.init(e,t)}),oH=he("$ZodUnknown",(e,t)=>{Xe.init(e,t),e._zod.parse=r=>r}),sH=he("$ZodNever",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function YP(e,t,r){e.issues.length&&t.issues.push(...PN(r,e.issues)),t.value[r]=e.value}const cH=he("$ZodArray",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],c=t.element._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>YP(u,r,s))):YP(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function cp(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...PN(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function NN(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=AB(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function qN(e,t,r,n,o,i){const s=[],a=o.keySet,c=o.catchall._zod,u=c.def.type,p=c.optout==="optional";for(const l in t){if(a.has(l))continue;if(u==="never"){s.push(l);continue}const d=c.run({value:t[l],issues:[]},n);d instanceof Promise?e.push(d.then(f=>cp(f,r,l,t,p))):cp(d,r,l,t,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}const uH=he("$ZodObject",(e,t)=>{if(Xe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const a={...s};return Object.defineProperty(t,"shape",{value:a}),a}})}const r=ay(()=>NN(t));Ie(e._zod,"propValues",()=>{const s=t.shape,a={};for(const c in s){const u=s[c]._zod;if(u.values){a[c]??(a[c]=new Set);for(const p of u.values)a[c].add(p)}}return a});const n=sp,o=t.catchall;let i;e._zod.parse=(s,a)=>{i??(i=r.value);const c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};const u=[],p=i.shape;for(const l of i.keys){const d=p[l],f=d._zod.optout==="optional",h=d._zod.run({value:c[l],issues:[]},a);h instanceof Promise?u.push(h.then(m=>cp(m,s,l,c,f))):cp(h,s,l,c,f)}return o?qN(u,c,s,a,r.value,e):u.length?Promise.all(u).then(()=>s):s}}),lH=he("$ZodObjectJIT",(e,t)=>{uH.init(e,t);const r=e._zod.parse,n=ay(()=>NN(t)),o=l=>{const d=new nH(["shape","payload","ctx"]),f=n.value,h=g=>{const y=KP(g);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};d.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const g of f.keys)m[g]=`key_${v++}`;d.write("const newResult = {};");for(const g of f.keys){const y=m[g],b=KP(g),E=l[g]?._zod?.optout==="optional";d.write(`const ${y} = ${h(g)};`),E?d.write(`
|
|
13
13
|
if (${y}.issues.length) {
|
|
14
14
|
if (${b} in input) {
|
|
15
15
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
newResult[${b}] = ${y}.value;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
`)}d.write("payload.value = newResult;"),d.write("return payload;");const _=d.compile();return(g,y)=>_(l,g,y)};let i;const s=sp,a=!Tq.jitless,c=a&&MB.value,u=t.catchall;let p;e._zod.parse=(l,d)=>{p??(p=n.value);const f=l.value;return s(f)?a&&c&&d?.async===!1&&d.jitless!==!0?(i||(i=o(t.shape)),l=i(l,d),u?Lq([],f,l,d,p,e):l):r(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l)}});function QT(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ri(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>hn(s,n,fn())))}),t)}const mH=he("$ZodUnion",(e,t)=>{Xe.init(e,t),Ie(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ie(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ie(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ie(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>uy(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(c=>QT(c,o,e,i)):QT(a,o,e,i)}}),_H=he("$ZodIntersection",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([a,c])=>$T(r,a,c)):$T(r,i,s)}});function cg(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(gl(e)&&gl(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=cg(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=cg(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function $T(e,t,r){const n=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(a);for(const a of r.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(a);const i=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&o&&e.issues.push({...o,keys:i}),ri(e))return e;const s=cg(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const gH=he("$ZodEnum",(e,t)=>{Xe.init(e,t);const r=Pq(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>IB.has(typeof o)).map(o=>typeof o=="string"?CB(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),yH=he("$ZodTransform",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Sq(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(r.value=i,r));if(o instanceof Promise)throw new ii;return r.value=o,r}});function eP(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Uq=he("$ZodOptional",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ie(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${uy(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>eP(i,r.value)):eP(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),bH=he("$ZodExactOptional",(e,t)=>{Uq.init(e,t),Ie(e._zod,"values",()=>t.innerType._zod.values),Ie(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),EH=he("$ZodNullable",(e,t)=>{Xe.init(e,t),Ie(e._zod,"optin",()=>t.innerType._zod.optin),Ie(e._zod,"optout",()=>t.innerType._zod.optout),Ie(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${uy(r.source)}|null)$`):void 0}),Ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),xH=he("$ZodDefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>tP(i,t)):tP(o,t)}});function tP(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const OH=he("$ZodPrefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),wH=he("$ZodNonOptional",(e,t)=>{Xe.init(e,t),Ie(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>rP(i,e)):rP(o,e)}});function rP(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const SH=he("$ZodCatch",(e,t)=>{Xe.init(e,t),Ie(e._zod,"optin",()=>t.innerType._zod.optin),Ie(e._zod,"optout",()=>t.innerType._zod.optout),Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>hn(s,n,fn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>hn(i,n,fn()))},input:r.value}),r.issues=[]),r)}}),TH=he("$ZodPipe",(e,t)=>{Xe.init(e,t),Ie(e._zod,"values",()=>t.in._zod.values),Ie(e._zod,"optin",()=>t.in._zod.optin),Ie(e._zod,"optout",()=>t.out._zod.optout),Ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Md(s,t.in,n)):Md(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Md(i,t.out,n)):Md(o,t.out,n)}});function Md(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const PH=he("$ZodReadonly",(e,t)=>{Xe.init(e,t),Ie(e._zod,"propValues",()=>t.innerType._zod.propValues),Ie(e._zod,"values",()=>t.innerType._zod.values),Ie(e._zod,"optin",()=>t.innerType?._zod?.optin),Ie(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(nP):nP(o)}});function nP(e){return e.value=Object.freeze(e.value),e}const AH=he("$ZodCustom",(e,t)=>{Ct.init(e,t),Xe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>iP(i,r,n,e));iP(o,r,n,e)}});function iP(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(yl(o))}}var aP;class RH{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function MH(){return new RH}(aP=globalThis).__zod_globalRegistry??(aP.__zod_globalRegistry=MH());const ml=globalThis.__zod_globalRegistry;function IH(e,t){return new e({type:"number",checks:[],...Ze(t)})}function CH(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ze(t)})}function jH(e){return new e({type:"unknown"})}function qH(e,t){return new e({type:"never",...Ze(t)})}function oP(e,t){return new Nq({check:"less_than",...Ze(t),value:e,inclusive:!1})}function Am(e,t){return new Nq({check:"less_than",...Ze(t),value:e,inclusive:!0})}function sP(e,t){return new Fq({check:"greater_than",...Ze(t),value:e,inclusive:!1})}function Rm(e,t){return new Fq({check:"greater_than",...Ze(t),value:e,inclusive:!0})}function cP(e,t){return new rH({check:"multiple_of",...Ze(t),value:e})}function NH(e,t){return new iH({check:"max_length",...Ze(t),maximum:e})}function uP(e,t){return new aH({check:"min_length",...Ze(t),minimum:e})}function FH(e,t){return new oH({check:"length_equals",...Ze(t),length:e})}function kH(e){return new sH({check:"overwrite",tx:e})}function DH(e,t,r){return new e({type:"array",element:t,...Ze(r)})}function LH(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Ze(r)})}function UH(e){const t=zH(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(yl(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(yl(o))}},e(r.value,r)));return t}function zH(e,t){const r=new Ct({check:"custom",...Ze(t)});return r._zod.check=e,r}function zq(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ml,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function tt(e,t,r={path:[],schemaPath:[]}){var n;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{const l=s.schema,d=t.processors[o.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);d(e,t,l,u)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),tt(p,t,u),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&<(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Bq(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const s of e.seen.entries()){const a=e.metadataRegistry.get(s[0])?.id;if(a){const c=n.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,s[0])}}const o=s=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const p=e.external.registry.get(s[0])?.id,l=e.external.uri??(f=>f);if(p)return{ref:l(p)};const d=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=d,{defId:d,ref:`${l("__shared")}#/${a}/${d}`}}if(s[1]===r)return{ref:"#"};const c=`#/${a}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);const p=a.schema;for(const l in p)delete p[l];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
46
|
+
`)}d.write("payload.value = newResult;"),d.write("return payload;");const _=d.compile();return(g,y)=>_(l,g,y)};let i;const s=sp,a=!xN.jitless,c=a&&SB.value,u=t.catchall;let p;e._zod.parse=(l,d)=>{p??(p=n.value);const f=l.value;return s(f)?a&&c&&d?.async===!1&&d.jitless!==!0?(i||(i=o(t.shape)),l=i(l,d),u?qN([],f,l,d,p,e):l):r(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l)}});function XP(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ri(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>hn(s,n,fn())))}),t)}const dH=he("$ZodUnion",(e,t)=>{Xe.init(e,t),Ie(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ie(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ie(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ie(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>sy(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(c=>XP(c,o,e,i)):XP(a,o,e,i)}}),pH=he("$ZodIntersection",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([a,c])=>JP(r,a,c)):JP(r,i,s)}});function og(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_l(e)&&_l(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=og(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=og(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function JP(e,t,r){const n=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(a);for(const a of r.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(a);const i=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&o&&e.issues.push({...o,keys:i}),ri(e))return e;const s=og(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const fH=he("$ZodEnum",(e,t)=>{Xe.init(e,t);const r=ON(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>PB.has(typeof o)).map(o=>typeof o=="string"?TB(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),hH=he("$ZodTransform",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new EN(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(r.value=i,r));if(o instanceof Promise)throw new ii;return r.value=o,r}});function QP(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const FN=he("$ZodOptional",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ie(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${sy(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>QP(i,r.value)):QP(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),vH=he("$ZodExactOptional",(e,t)=>{FN.init(e,t),Ie(e._zod,"values",()=>t.innerType._zod.values),Ie(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),mH=he("$ZodNullable",(e,t)=>{Xe.init(e,t),Ie(e._zod,"optin",()=>t.innerType._zod.optin),Ie(e._zod,"optout",()=>t.innerType._zod.optout),Ie(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${sy(r.source)}|null)$`):void 0}),Ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),_H=he("$ZodDefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>$P(i,t)):$P(o,t)}});function $P(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const gH=he("$ZodPrefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),yH=he("$ZodNonOptional",(e,t)=>{Xe.init(e,t),Ie(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>eT(i,e)):eT(o,e)}});function eT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const bH=he("$ZodCatch",(e,t)=>{Xe.init(e,t),Ie(e._zod,"optin",()=>t.innerType._zod.optin),Ie(e._zod,"optout",()=>t.innerType._zod.optout),Ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>hn(s,n,fn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>hn(i,n,fn()))},input:r.value}),r.issues=[]),r)}}),EH=he("$ZodPipe",(e,t)=>{Xe.init(e,t),Ie(e._zod,"values",()=>t.in._zod.values),Ie(e._zod,"optin",()=>t.in._zod.optin),Ie(e._zod,"optout",()=>t.out._zod.optout),Ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Md(s,t.in,n)):Md(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Md(i,t.out,n)):Md(o,t.out,n)}});function Md(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const xH=he("$ZodReadonly",(e,t)=>{Xe.init(e,t),Ie(e._zod,"propValues",()=>t.innerType._zod.propValues),Ie(e._zod,"values",()=>t.innerType._zod.values),Ie(e._zod,"optin",()=>t.innerType?._zod?.optin),Ie(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(tT):tT(o)}});function tT(e){return e.value=Object.freeze(e.value),e}const OH=he("$ZodCustom",(e,t)=>{Ct.init(e,t),Xe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>rT(i,r,n,e));rT(o,r,n,e)}});function rT(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(gl(o))}}var nT;class wH{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function SH(){return new wH}(nT=globalThis).__zod_globalRegistry??(nT.__zod_globalRegistry=SH());const vl=globalThis.__zod_globalRegistry;function PH(e,t){return new e({type:"number",checks:[],...Ze(t)})}function TH(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ze(t)})}function AH(e){return new e({type:"unknown"})}function RH(e,t){return new e({type:"never",...Ze(t)})}function iT(e,t){return new IN({check:"less_than",...Ze(t),value:e,inclusive:!1})}function Am(e,t){return new IN({check:"less_than",...Ze(t),value:e,inclusive:!0})}function aT(e,t){return new CN({check:"greater_than",...Ze(t),value:e,inclusive:!1})}function Rm(e,t){return new CN({check:"greater_than",...Ze(t),value:e,inclusive:!0})}function oT(e,t){return new JB({check:"multiple_of",...Ze(t),value:e})}function MH(e,t){return new $B({check:"max_length",...Ze(t),maximum:e})}function sT(e,t){return new eH({check:"min_length",...Ze(t),minimum:e})}function IH(e,t){return new tH({check:"length_equals",...Ze(t),length:e})}function CH(e){return new rH({check:"overwrite",tx:e})}function jH(e,t,r){return new e({type:"array",element:t,...Ze(r)})}function NH(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Ze(r)})}function qH(e){const t=FH(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(gl(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(gl(o))}},e(r.value,r)));return t}function FH(e,t){const r=new Ct({check:"custom",...Ze(t)});return r._zod.check=e,r}function kN(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??vl,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function tt(e,t,r={path:[],schemaPath:[]}){var n;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{const l=s.schema,d=t.processors[o.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);d(e,t,l,u)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),tt(p,t,u),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&<(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function DN(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const s of e.seen.entries()){const a=e.metadataRegistry.get(s[0])?.id;if(a){const c=n.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,s[0])}}const o=s=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const p=e.external.registry.get(s[0])?.id,l=e.external.uri??(f=>f);if(p)return{ref:l(p)};const d=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=d,{defId:d,ref:`${l("__shared")}#/${a}/${d}`}}if(s[1]===r)return{ref:"#"};const c=`#/${a}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);const p=a.schema;for(const l in p)delete p[l];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
47
47
|
|
|
48
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const a=s[1];if(t===s[0]){i(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function Hq(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=s=>{const a=e.seen.get(s);if(a.ref===null)return;const c=a.def??a.schema,u={...c},p=a.ref;if(a.ref=null,p){n(p);const d=e.seen.get(p),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),s._zod.parent===p)for(const h in c)h==="$ref"||h==="allOf"||h in u||delete c[h];if(f.$ref&&d.def)for(const h in c)h==="$ref"||h==="allOf"||h in d.def&&JSON.stringify(c[h])===JSON.stringify(d.def[h])&&delete c[h]}const l=s._zod.parent;if(l&&l!==p){n(l);const d=e.seen.get(l);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(const f in c)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(c[f])===JSON.stringify(d.def[f])&&delete c[f]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(s)}Object.assign(o,r.def??r.schema);const i=e.external?.defs??{};for(const s of e.seen.entries()){const a=s[1];a.def&&a.defId&&(i[a.defId]=a.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const s=JSON.parse(JSON.stringify(o));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:up(t,"input",e.processors),output:up(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function lt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return lt(n.element,r);if(n.type==="set")return lt(n.valueType,r);if(n.type==="lazy")return lt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return lt(n.innerType,r);if(n.type==="intersection")return lt(n.left,r)||lt(n.right,r);if(n.type==="record"||n.type==="map")return lt(n.keyType,r)||lt(n.valueType,r);if(n.type==="pipe")return lt(n.in,r)||lt(n.out,r);if(n.type==="object"){for(const o in n.shape)if(lt(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(const o of n.options)if(lt(o,r))return!0;return!1}if(n.type==="tuple"){for(const o of n.items)if(lt(o,r))return!0;return!!(n.rest&<(n.rest,r))}return!1}const BH=(e,t={})=>r=>{const n=zq({...r,processors:t});return tt(e,n),Bq(n,e),Hq(n,e)},up=(e,t,r={})=>n=>{const{libraryOptions:o,target:i}=n??{},s=zq({...o??{},target:i,io:t,processors:r});return tt(e,s),Bq(s,e),Hq(s,e)},HH=(e,t,r,n)=>{const o=r,{minimum:i,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=p,o.exclusiveMinimum=!0):o.exclusiveMinimum=p),typeof i=="number"&&(o.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof s=="number"&&(o.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},VH=(e,t,r,n)=>{r.not={}},GH=(e,t,r,n)=>{},WH=(e,t,r,n)=>{const o=e._zod.def,i=Pq(o.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},ZH=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},KH=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},YH=(e,t,r,n)=>{const o=r,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=tt(i.element,t,{...n,path:[...n.path,"items"]})},XH=(e,t,r,n)=>{const o=r,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const u in s)o.properties[u]=tt(s[u],t,{...n,path:[...n.path,"properties",u]});const a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=tt(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},JH=(e,t,r,n)=>{const o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>tt(a,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},QH=(e,t,r,n)=>{const o=e._zod.def,i=tt(o.left,t,{...n,path:[...n.path,"allOf",0]}),s=tt(o.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];r.allOf=c},$H=(e,t,r,n)=>{const o=e._zod.def,i=tt(o.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},eV=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},tV=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},rV=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},nV=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},iV=(e,t,r,n)=>{const o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;tt(i,t,n);const s=t.seen.get(e);s.ref=i},aV=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},Vq=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},oV=(e,t)=>{Cq.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>HB(e,r)},flatten:{value:r=>BB(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,sg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,sg,2)}},isEmpty:{get(){return e.issues.length===0}}})},Et=he("ZodError",oV,{Parent:Error}),sV=dy(Et),cV=py(Et),uV=qp(Et),lV=Np(Et),dV=WB(Et),pV=ZB(Et),fV=KB(Et),hV=YB(Et),vV=XB(Et),mV=JB(Et),_V=QB(Et),gV=$B(Et),Je=he("ZodType",(e,t)=>(Xe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:up(e,"input"),output:up(e,"output")}}),e.toJSONSchema=BH(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(fr(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>hr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>sV(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>uV(e,r,n),e.parseAsync=async(r,n)=>cV(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>lV(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>dV(e,r,n),e.decode=(r,n)=>pV(e,r,n),e.encodeAsync=async(r,n)=>fV(e,r,n),e.decodeAsync=async(r,n)=>hV(e,r,n),e.safeEncode=(r,n)=>vV(e,r,n),e.safeDecode=(r,n)=>mV(e,r,n),e.safeEncodeAsync=async(r,n)=>_V(e,r,n),e.safeDecodeAsync=async(r,n)=>gV(e,r,n),e.refine=(r,n)=>e.check(KV(r,n)),e.superRefine=r=>e.check(YV(r)),e.overwrite=r=>e.check(kH(r)),e.optional=()=>fP(e),e.exactOptional=()=>NV(e),e.nullable=()=>hP(e),e.nullish=()=>fP(hP(e)),e.nonoptional=r=>zV(e,r),e.array=()=>wV(e),e.or=r=>AV([e,r]),e.and=r=>MV(e,r),e.transform=r=>vP(e,jV(r)),e.default=r=>DV(e,r),e.prefault=r=>UV(e,r),e.catch=r=>HV(e,r),e.pipe=r=>vP(e,r),e.readonly=()=>WV(e),e.describe=r=>{const n=e.clone();return ml.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return ml.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ml.get(e);const n=e.clone();return ml.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Gq=he("ZodNumber",(e,t)=>{kq.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,o,i)=>HH(e,n,o),e.gt=(n,o)=>e.check(sP(n,o)),e.gte=(n,o)=>e.check(Rm(n,o)),e.min=(n,o)=>e.check(Rm(n,o)),e.lt=(n,o)=>e.check(oP(n,o)),e.lte=(n,o)=>e.check(Am(n,o)),e.max=(n,o)=>e.check(Am(n,o)),e.int=n=>e.check(dP(n)),e.safe=n=>e.check(dP(n)),e.positive=n=>e.check(sP(0,n)),e.nonnegative=n=>e.check(Rm(0,n)),e.negative=n=>e.check(oP(0,n)),e.nonpositive=n=>e.check(Am(0,n)),e.multipleOf=(n,o)=>e.check(cP(n,o)),e.step=(n,o)=>e.check(cP(n,o)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function lP(e){return IH(Gq,e)}const yV=he("ZodNumberFormat",(e,t)=>{lH.init(e,t),Gq.init(e,t)});function dP(e){return CH(yV,e)}const bV=he("ZodUnknown",(e,t)=>{dH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>GH()});function pP(){return jH(bV)}const EV=he("ZodNever",(e,t)=>{pH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>VH(e,r,n)});function xV(e){return qH(EV,e)}const OV=he("ZodArray",(e,t)=>{fH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>YH(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(uP(r,n)),e.nonempty=r=>e.check(uP(1,r)),e.max=(r,n)=>e.check(NH(r,n)),e.length=(r,n)=>e.check(FH(r,n)),e.unwrap=()=>e.element});function wV(e,t){return DH(OV,e,t)}const SV=he("ZodObject",(e,t)=>{vH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>XH(e,r,n,o),Ie(e,"shape",()=>t.shape),e.keyof=()=>IV(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:pP()}),e.loose=()=>e.clone({...e._zod.def,catchall:pP()}),e.strict=()=>e.clone({...e._zod.def,catchall:xV()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>kB(e,r),e.safeExtend=r=>DB(e,r),e.merge=r=>LB(e,r),e.pick=r=>NB(e,r),e.omit=r=>FB(e,r),e.partial=(...r)=>UB(Wq,e,r[0]),e.required=(...r)=>zB(Zq,e,r[0])});function TV(e,t){const r={type:"object",shape:e??{},...Ze(t)};return new SV(r)}const PV=he("ZodUnion",(e,t)=>{mH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>JH(e,r,n,o),e.options=t.options});function AV(e,t){return new PV({type:"union",options:e,...Ze(t)})}const RV=he("ZodIntersection",(e,t)=>{_H.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>QH(e,r,n,o)});function MV(e,t){return new RV({type:"intersection",left:e,right:t})}const ug=he("ZodEnum",(e,t)=>{gH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,o,i)=>WH(e,n,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ug({...t,checks:[],...Ze(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ug({...t,checks:[],...Ze(o),entries:i})}});function IV(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ug({type:"enum",entries:r,...Ze(t)})}const CV=he("ZodTransform",(e,t)=>{yH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>KH(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Sq(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(yl(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(yl(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function jV(e){return new CV({type:"transform",transform:e})}const Wq=he("ZodOptional",(e,t)=>{Uq.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Vq(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function fP(e){return new Wq({type:"optional",innerType:e})}const qV=he("ZodExactOptional",(e,t)=>{bH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>Vq(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function NV(e){return new qV({type:"optional",innerType:e})}const FV=he("ZodNullable",(e,t)=>{EH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>$H(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function hP(e){return new FV({type:"nullable",innerType:e})}const kV=he("ZodDefault",(e,t)=>{xH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>tV(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function DV(e,t){return new kV({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Rq(t)}})}const LV=he("ZodPrefault",(e,t)=>{OH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>rV(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function UV(e,t){return new LV({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Rq(t)}})}const Zq=he("ZodNonOptional",(e,t)=>{wH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>eV(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function zV(e,t){return new Zq({type:"nonoptional",innerType:e,...Ze(t)})}const BV=he("ZodCatch",(e,t)=>{SH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>nV(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function HV(e,t){return new BV({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const VV=he("ZodPipe",(e,t)=>{TH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>iV(e,r,n,o),e.in=t.in,e.out=t.out});function vP(e,t){return new VV({type:"pipe",in:e,out:t})}const GV=he("ZodReadonly",(e,t)=>{PH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>aV(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function WV(e){return new GV({type:"readonly",innerType:e})}const ZV=he("ZodCustom",(e,t)=>{AH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ZH(e,r)});function KV(e,t={}){return LH(ZV,e,t)}function YV(e){return UH(e)}TV({page:lP(),pageSize:lP()});function X(e,t,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=s.prototype,p=Object.keys(u);for(let l=0;l<p.length;l++){const d=p[l];d in a||(a[d]=u[d].bind(a))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var c;const u=r?.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ai extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Kq extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Yq={};function vn(e){return Yq}function Xq(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function lg(e,t){return typeof t=="bigint"?t.toString():t}function fy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function hy(e){return e==null}function vy(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const mP=Symbol("evaluating");function Ce(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==mP)return n===void 0&&(n=mP,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Sn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vr(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function _P(e){return JSON.stringify(e)}function XV(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Jq="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function lp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const JV=fy(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function bl(e){if(lp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(lp(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Qq(e){return bl(e)?{...e}:Array.isArray(e)?[...e]:e}const QV=new Set(["string","number","symbol"]);function Fp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ge(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $V(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function eG(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=vr(e._zod.def,{get shape(){const s={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=r.shape[a])}return Sn(this,"shape",s),s},checks:[]});return mr(e,i)}function tG(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=vr(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return Sn(this,"shape",s),s},checks:[]});return mr(e,i)}function rG(e,t){if(!bl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=vr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Sn(this,"shape",i),i}});return mr(e,o)}function nG(e,t){if(!bl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=vr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Sn(this,"shape",n),n}});return mr(e,r)}function iG(e,t){const r=vr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Sn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return mr(e,r)}function aG(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=vr(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(r)for(const u in r){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Sn(this,"shape",c),c},checks:[]});return mr(t,s)}function oG(e,t,r){const n=vr(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return Sn(this,"shape",i),i}});return mr(t,n)}function ni(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function $q(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Id(e){return typeof e=="string"?e:e?.message}function mn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Id(e.inst?._zod.def?.error?.(e))??Id(t?.error?.(e))??Id(r.customError?.(e))??Id(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function my(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function El(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const eN=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,lg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tN=X("$ZodError",eN),rN=X("$ZodError",eN,{Parent:Error});function sG(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function cG(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const c=i.path[a];a===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return n(e),r}const _y=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ai;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>mn(c,i,vn())));throw Jq(a,o?.callee),a}return s.value},gy=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>mn(c,i,vn())));throw Jq(a,o?.callee),a}return s.value},kp=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ai;return i.issues.length?{success:!1,error:new(e??tN)(i.issues.map(s=>mn(s,o,vn())))}:{success:!0,data:i.value}},uG=kp(rN),Dp=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>mn(s,o,vn())))}:{success:!0,data:i.value}},lG=Dp(rN),dG=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return _y(e)(t,r,o)},pG=e=>(t,r,n)=>_y(e)(t,r,n),fG=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return gy(e)(t,r,o)},hG=e=>async(t,r,n)=>gy(e)(t,r,n),vG=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return kp(e)(t,r,o)},mG=e=>(t,r,n)=>kp(e)(t,r,n),_G=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Dp(e)(t,r,o)},gG=e=>async(t,r,n)=>Dp(e)(t,r,n),yG=/^[cC][^\s-]{8,}$/,bG=/^[0-9a-z]+$/,EG=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xG=/^[0-9a-vA-V]{20}$/,OG=/^[A-Za-z0-9]{27}$/,wG=/^[a-zA-Z0-9_-]{21}$/,SG=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,TG=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,gP=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,PG=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,AG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function RG(){return new RegExp(AG,"u")}const MG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,IG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,CG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,jG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,qG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nN=/^[A-Za-z0-9_-]*$/,NG=/^\+[1-9]\d{6,14}$/,iN="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",FG=new RegExp(`^${iN}$`);function aN(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function kG(e){return new RegExp(`^${aN(e)}$`)}function DG(e){const t=aN({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${iN}T(?:${n})$`)}const LG=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},UG=/^[^A-Z]*$/,zG=/^[^a-z]*$/,jt=X("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),BG=X("$ZodCheckMaxLength",(e,t)=>{var r;jt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!hy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=my(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),HG=X("$ZodCheckMinLength",(e,t)=>{var r;jt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!hy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=my(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),VG=X("$ZodCheckLengthEquals",(e,t)=>{var r;jt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!hy(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=my(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Lp=X("$ZodCheckStringFormat",(e,t)=>{var r,n;jt.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),GG=X("$ZodCheckRegex",(e,t)=>{Lp.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),WG=X("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=UG),Lp.init(e,t)}),ZG=X("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zG),Lp.init(e,t)}),KG=X("$ZodCheckIncludes",(e,t)=>{jt.init(e,t);const r=Fp(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),YG=X("$ZodCheckStartsWith",(e,t)=>{jt.init(e,t);const r=new RegExp(`^${Fp(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),XG=X("$ZodCheckEndsWith",(e,t)=>{jt.init(e,t);const r=new RegExp(`.*${Fp(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),JG=X("$ZodCheckOverwrite",(e,t)=>{jt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class QG{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
48
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const a=s[1];if(t===s[0]){i(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function LN(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=s=>{const a=e.seen.get(s);if(a.ref===null)return;const c=a.def??a.schema,u={...c},p=a.ref;if(a.ref=null,p){n(p);const d=e.seen.get(p),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),s._zod.parent===p)for(const h in c)h==="$ref"||h==="allOf"||h in u||delete c[h];if(f.$ref&&d.def)for(const h in c)h==="$ref"||h==="allOf"||h in d.def&&JSON.stringify(c[h])===JSON.stringify(d.def[h])&&delete c[h]}const l=s._zod.parent;if(l&&l!==p){n(l);const d=e.seen.get(l);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(const f in c)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(c[f])===JSON.stringify(d.def[f])&&delete c[f]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(s)}Object.assign(o,r.def??r.schema);const i=e.external?.defs??{};for(const s of e.seen.entries()){const a=s[1];a.def&&a.defId&&(i[a.defId]=a.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const s=JSON.parse(JSON.stringify(o));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:up(t,"input",e.processors),output:up(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function lt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return lt(n.element,r);if(n.type==="set")return lt(n.valueType,r);if(n.type==="lazy")return lt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return lt(n.innerType,r);if(n.type==="intersection")return lt(n.left,r)||lt(n.right,r);if(n.type==="record"||n.type==="map")return lt(n.keyType,r)||lt(n.valueType,r);if(n.type==="pipe")return lt(n.in,r)||lt(n.out,r);if(n.type==="object"){for(const o in n.shape)if(lt(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(const o of n.options)if(lt(o,r))return!0;return!1}if(n.type==="tuple"){for(const o of n.items)if(lt(o,r))return!0;return!!(n.rest&<(n.rest,r))}return!1}const kH=(e,t={})=>r=>{const n=kN({...r,processors:t});return tt(e,n),DN(n,e),LN(n,e)},up=(e,t,r={})=>n=>{const{libraryOptions:o,target:i}=n??{},s=kN({...o??{},target:i,io:t,processors:r});return tt(e,s),DN(s,e),LN(s,e)},DH=(e,t,r,n)=>{const o=r,{minimum:i,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=p,o.exclusiveMinimum=!0):o.exclusiveMinimum=p),typeof i=="number"&&(o.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof s=="number"&&(o.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},LH=(e,t,r,n)=>{r.not={}},UH=(e,t,r,n)=>{},zH=(e,t,r,n)=>{const o=e._zod.def,i=ON(o.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},BH=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},HH=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},VH=(e,t,r,n)=>{const o=r,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=tt(i.element,t,{...n,path:[...n.path,"items"]})},GH=(e,t,r,n)=>{const o=r,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const u in s)o.properties[u]=tt(s[u],t,{...n,path:[...n.path,"properties",u]});const a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=tt(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},WH=(e,t,r,n)=>{const o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>tt(a,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},ZH=(e,t,r,n)=>{const o=e._zod.def,i=tt(o.left,t,{...n,path:[...n.path,"allOf",0]}),s=tt(o.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];r.allOf=c},KH=(e,t,r,n)=>{const o=e._zod.def,i=tt(o.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},YH=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},XH=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},JH=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},QH=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},$H=(e,t,r,n)=>{const o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;tt(i,t,n);const s=t.seen.get(e);s.ref=i},eV=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},UN=(e,t,r,n)=>{const o=e._zod.def;tt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},tV=(e,t)=>{AN.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>DB(e,r)},flatten:{value:r=>kB(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ag,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ag,2)}},isEmpty:{get(){return e.issues.length===0}}})},Et=he("ZodError",tV,{Parent:Error}),rV=uy(Et),nV=ly(Et),iV=Np(Et),aV=qp(Et),oV=zB(Et),sV=BB(Et),cV=HB(Et),uV=VB(Et),lV=GB(Et),dV=WB(Et),pV=ZB(Et),fV=KB(Et),Je=he("ZodType",(e,t)=>(Xe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:up(e,"input"),output:up(e,"output")}}),e.toJSONSchema=kH(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(fr(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>hr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>rV(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>iV(e,r,n),e.parseAsync=async(r,n)=>nV(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>aV(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>oV(e,r,n),e.decode=(r,n)=>sV(e,r,n),e.encodeAsync=async(r,n)=>cV(e,r,n),e.decodeAsync=async(r,n)=>uV(e,r,n),e.safeEncode=(r,n)=>lV(e,r,n),e.safeDecode=(r,n)=>dV(e,r,n),e.safeEncodeAsync=async(r,n)=>pV(e,r,n),e.safeDecodeAsync=async(r,n)=>fV(e,r,n),e.refine=(r,n)=>e.check(HV(r,n)),e.superRefine=r=>e.check(VV(r)),e.overwrite=r=>e.check(CH(r)),e.optional=()=>dT(e),e.exactOptional=()=>MV(e),e.nullable=()=>pT(e),e.nullish=()=>dT(pT(e)),e.nonoptional=r=>FV(e,r),e.array=()=>yV(e),e.or=r=>OV([e,r]),e.and=r=>SV(e,r),e.transform=r=>fT(e,AV(r)),e.default=r=>jV(e,r),e.prefault=r=>qV(e,r),e.catch=r=>DV(e,r),e.pipe=r=>fT(e,r),e.readonly=()=>zV(e),e.describe=r=>{const n=e.clone();return vl.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return vl.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return vl.get(e);const n=e.clone();return vl.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),zN=he("ZodNumber",(e,t)=>{jN.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,o,i)=>DH(e,n,o),e.gt=(n,o)=>e.check(aT(n,o)),e.gte=(n,o)=>e.check(Rm(n,o)),e.min=(n,o)=>e.check(Rm(n,o)),e.lt=(n,o)=>e.check(iT(n,o)),e.lte=(n,o)=>e.check(Am(n,o)),e.max=(n,o)=>e.check(Am(n,o)),e.int=n=>e.check(uT(n)),e.safe=n=>e.check(uT(n)),e.positive=n=>e.check(aT(0,n)),e.nonnegative=n=>e.check(Rm(0,n)),e.negative=n=>e.check(iT(0,n)),e.nonpositive=n=>e.check(Am(0,n)),e.multipleOf=(n,o)=>e.check(oT(n,o)),e.step=(n,o)=>e.check(oT(n,o)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function cT(e){return PH(zN,e)}const hV=he("ZodNumberFormat",(e,t)=>{aH.init(e,t),zN.init(e,t)});function uT(e){return TH(hV,e)}const vV=he("ZodUnknown",(e,t)=>{oH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UH()});function lT(){return AH(vV)}const mV=he("ZodNever",(e,t)=>{sH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>LH(e,r,n)});function _V(e){return RH(mV,e)}const gV=he("ZodArray",(e,t)=>{cH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>VH(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(sT(r,n)),e.nonempty=r=>e.check(sT(1,r)),e.max=(r,n)=>e.check(MH(r,n)),e.length=(r,n)=>e.check(IH(r,n)),e.unwrap=()=>e.element});function yV(e,t){return jH(gV,e,t)}const bV=he("ZodObject",(e,t)=>{lH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>GH(e,r,n,o),Ie(e,"shape",()=>t.shape),e.keyof=()=>PV(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:lT()}),e.loose=()=>e.clone({...e._zod.def,catchall:lT()}),e.strict=()=>e.clone({...e._zod.def,catchall:_V()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>CB(e,r),e.safeExtend=r=>jB(e,r),e.merge=r=>NB(e,r),e.pick=r=>MB(e,r),e.omit=r=>IB(e,r),e.partial=(...r)=>qB(BN,e,r[0]),e.required=(...r)=>FB(HN,e,r[0])});function EV(e,t){const r={type:"object",shape:e??{},...Ze(t)};return new bV(r)}const xV=he("ZodUnion",(e,t)=>{dH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>WH(e,r,n,o),e.options=t.options});function OV(e,t){return new xV({type:"union",options:e,...Ze(t)})}const wV=he("ZodIntersection",(e,t)=>{pH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ZH(e,r,n,o)});function SV(e,t){return new wV({type:"intersection",left:e,right:t})}const sg=he("ZodEnum",(e,t)=>{fH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,o,i)=>zH(e,n,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new sg({...t,checks:[],...Ze(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new sg({...t,checks:[],...Ze(o),entries:i})}});function PV(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new sg({type:"enum",entries:r,...Ze(t)})}const TV=he("ZodTransform",(e,t)=>{hH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>HH(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new EN(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(gl(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(gl(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function AV(e){return new TV({type:"transform",transform:e})}const BN=he("ZodOptional",(e,t)=>{FN.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UN(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function dT(e){return new BN({type:"optional",innerType:e})}const RV=he("ZodExactOptional",(e,t)=>{vH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UN(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function MV(e){return new RV({type:"optional",innerType:e})}const IV=he("ZodNullable",(e,t)=>{mH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>KH(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function pT(e){return new IV({type:"nullable",innerType:e})}const CV=he("ZodDefault",(e,t)=>{_H.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>XH(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function jV(e,t){return new CV({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():SN(t)}})}const NV=he("ZodPrefault",(e,t)=>{gH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>JH(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function qV(e,t){return new NV({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():SN(t)}})}const HN=he("ZodNonOptional",(e,t)=>{yH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>YH(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function FV(e,t){return new HN({type:"nonoptional",innerType:e,...Ze(t)})}const kV=he("ZodCatch",(e,t)=>{bH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>QH(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function DV(e,t){return new kV({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const LV=he("ZodPipe",(e,t)=>{EH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>$H(e,r,n,o),e.in=t.in,e.out=t.out});function fT(e,t){return new LV({type:"pipe",in:e,out:t})}const UV=he("ZodReadonly",(e,t)=>{xH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>eV(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function zV(e){return new UV({type:"readonly",innerType:e})}const BV=he("ZodCustom",(e,t)=>{OH.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,o)=>BH(e,r)});function HV(e,t={}){return NH(BV,e,t)}function VV(e){return qH(e)}EV({page:cT(),pageSize:cT()});function X(e,t,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=s.prototype,p=Object.keys(u);for(let l=0;l<p.length;l++){const d=p[l];d in a||(a[d]=u[d].bind(a))}}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var c;const u=r?.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ai extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class VN extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const GN={};function vn(e){return GN}function WN(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function cg(e,t){return typeof t=="bigint"?t.toString():t}function dy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function py(e){return e==null}function fy(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const hT=Symbol("evaluating");function Ce(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==hT)return n===void 0&&(n=hT,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Sn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vr(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function vT(e){return JSON.stringify(e)}function GV(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ZN="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function lp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const WV=dy(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function yl(e){if(lp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(lp(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function KN(e){return yl(e)?{...e}:Array.isArray(e)?[...e]:e}const ZV=new Set(["string","number","symbol"]);function Fp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ge(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function KV(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function YV(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=vr(e._zod.def,{get shape(){const s={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=r.shape[a])}return Sn(this,"shape",s),s},checks:[]});return mr(e,i)}function XV(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=vr(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return Sn(this,"shape",s),s},checks:[]});return mr(e,i)}function JV(e,t){if(!yl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=vr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Sn(this,"shape",i),i}});return mr(e,o)}function QV(e,t){if(!yl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=vr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Sn(this,"shape",n),n}});return mr(e,r)}function $V(e,t){const r=vr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Sn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return mr(e,r)}function eG(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=vr(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(r)for(const u in r){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Sn(this,"shape",c),c},checks:[]});return mr(t,s)}function tG(e,t,r){const n=vr(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return Sn(this,"shape",i),i}});return mr(t,n)}function ni(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function YN(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Id(e){return typeof e=="string"?e:e?.message}function mn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=Id(e.inst?._zod.def?.error?.(e))??Id(t?.error?.(e))??Id(r.customError?.(e))??Id(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function hy(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bl(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const XN=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,cg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},JN=X("$ZodError",XN),QN=X("$ZodError",XN,{Parent:Error});function rG(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function nG(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const c=i.path[a];a===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return n(e),r}const vy=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ai;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>mn(c,i,vn())));throw ZN(a,o?.callee),a}return s.value},my=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(c=>mn(c,i,vn())));throw ZN(a,o?.callee),a}return s.value},kp=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ai;return i.issues.length?{success:!1,error:new(e??JN)(i.issues.map(s=>mn(s,o,vn())))}:{success:!0,data:i.value}},iG=kp(QN),Dp=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>mn(s,o,vn())))}:{success:!0,data:i.value}},aG=Dp(QN),oG=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return vy(e)(t,r,o)},sG=e=>(t,r,n)=>vy(e)(t,r,n),cG=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return my(e)(t,r,o)},uG=e=>async(t,r,n)=>my(e)(t,r,n),lG=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return kp(e)(t,r,o)},dG=e=>(t,r,n)=>kp(e)(t,r,n),pG=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Dp(e)(t,r,o)},fG=e=>async(t,r,n)=>Dp(e)(t,r,n),hG=/^[cC][^\s-]{8,}$/,vG=/^[0-9a-z]+$/,mG=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_G=/^[0-9a-vA-V]{20}$/,gG=/^[A-Za-z0-9]{27}$/,yG=/^[a-zA-Z0-9_-]{21}$/,bG=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,EG=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,mT=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xG=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,OG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function wG(){return new RegExp(OG,"u")}const SG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,TG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,AG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,RG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,$N=/^[A-Za-z0-9_-]*$/,MG=/^\+[1-9]\d{6,14}$/,eq="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",IG=new RegExp(`^${eq}$`);function tq(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function CG(e){return new RegExp(`^${tq(e)}$`)}function jG(e){const t=tq({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${eq}T(?:${n})$`)}const NG=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},qG=/^[^A-Z]*$/,FG=/^[^a-z]*$/,jt=X("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),kG=X("$ZodCheckMaxLength",(e,t)=>{var r;jt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!py(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=hy(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),DG=X("$ZodCheckMinLength",(e,t)=>{var r;jt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!py(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=hy(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),LG=X("$ZodCheckLengthEquals",(e,t)=>{var r;jt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!py(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=hy(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Lp=X("$ZodCheckStringFormat",(e,t)=>{var r,n;jt.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),UG=X("$ZodCheckRegex",(e,t)=>{Lp.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zG=X("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=qG),Lp.init(e,t)}),BG=X("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=FG),Lp.init(e,t)}),HG=X("$ZodCheckIncludes",(e,t)=>{jt.init(e,t);const r=Fp(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),VG=X("$ZodCheckStartsWith",(e,t)=>{jt.init(e,t);const r=new RegExp(`^${Fp(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),GG=X("$ZodCheckEndsWith",(e,t)=>{jt.init(e,t);const r=new RegExp(`.*${Fp(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),WG=X("$ZodCheckOverwrite",(e,t)=>{jt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class ZG{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
49
49
|
`).filter(s=>s),o=Math.min(...n.map(s=>s.length-s.trimStart().length)),i=n.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,o.join(`
|
|
50
|
-
`))}}const
|
|
50
|
+
`))}}const KG={major:4,minor:3,patch:6},Qe=X("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=KG;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,c)=>{let u=ni(s),p;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(s))continue}else if(u)continue;const d=s.issues.length,f=l._zod.check(s);if(f instanceof Promise&&c?.async===!1)throw new ai;if(p||f instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await f,s.issues.length!==d&&(u||(u=ni(s,d)))});else{if(s.issues.length===d)continue;u||(u=ni(s,d))}}return p?p.then(()=>s):s},i=(s,a,c)=>{if(ni(s))return s.aborted=!0,s;const u=o(a,n,c);if(u instanceof Promise){if(c.async===!1)throw new ai;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(p=>i(p,s,a)):i(u,s,a)}const c=e._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new ai;return c.then(u=>o(u,n,a))}return o(c,n,a)}}Ce(e,"~standard",()=>({validate:o=>{try{const i=iG(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return aG(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),_y=X("$ZodString",(e,t)=>{Qe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??NG(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Le=X("$ZodStringFormat",(e,t)=>{Lp.init(e,t),_y.init(e,t)}),YG=X("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=EG),Le.init(e,t)}),XG=X("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=mT(n))}else t.pattern??(t.pattern=mT());Le.init(e,t)}),JG=X("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xG),Le.init(e,t)}),QG=X("$ZodURL",(e,t)=>{Le.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),$G=X("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=wG()),Le.init(e,t)}),e2=X("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=yG),Le.init(e,t)}),t2=X("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hG),Le.init(e,t)}),r2=X("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vG),Le.init(e,t)}),n2=X("$ZodULID",(e,t)=>{t.pattern??(t.pattern=mG),Le.init(e,t)}),i2=X("$ZodXID",(e,t)=>{t.pattern??(t.pattern=_G),Le.init(e,t)}),a2=X("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=gG),Le.init(e,t)}),o2=X("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=jG(t)),Le.init(e,t)}),s2=X("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=IG),Le.init(e,t)}),c2=X("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=CG(t)),Le.init(e,t)}),u2=X("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=bG),Le.init(e,t)}),l2=X("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=SG),Le.init(e,t),e._zod.bag.format="ipv4"}),d2=X("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=PG),Le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),p2=X("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=TG),Le.init(e,t)}),f2=X("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=AG),Le.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[o,i]=n;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rq(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const h2=X("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=RG),Le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{rq(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function v2(e){if(!$N.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return rq(r)}const m2=X("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=$N),Le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{v2(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),_2=X("$ZodE164",(e,t)=>{t.pattern??(t.pattern=MG),Le.init(e,t)});function g2(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const y2=X("$ZodJWT",(e,t)=>{Le.init(e,t),e._zod.check=r=>{g2(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),b2=X("$ZodUnknown",(e,t)=>{Qe.init(e,t),e._zod.parse=r=>r}),E2=X("$ZodNever",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function _T(e,t,r){e.issues.length&&t.issues.push(...YN(r,e.issues)),t.value[r]=e.value}const x2=X("$ZodArray",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],c=t.element._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>_T(u,r,s))):_T(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function dp(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...YN(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function nq(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=KV(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function iq(e,t,r,n,o,i){const s=[],a=o.keySet,c=o.catchall._zod,u=c.def.type,p=c.optout==="optional";for(const l in t){if(a.has(l))continue;if(u==="never"){s.push(l);continue}const d=c.run({value:t[l],issues:[]},n);d instanceof Promise?e.push(d.then(f=>dp(f,r,l,t,p))):dp(d,r,l,t,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}const O2=X("$ZodObject",(e,t)=>{if(Qe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}const n=dy(()=>nq(t));Ce(e._zod,"propValues",()=>{const a=t.shape,c={};for(const u in a){const p=a[u]._zod;if(p.values){c[u]??(c[u]=new Set);for(const l of p.values)c[u].add(l)}}return c});const o=lp,i=t.catchall;let s;e._zod.parse=(a,c)=>{s??(s=n.value);const u=a.value;if(!o(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const p=[],l=s.shape;for(const d of s.keys){const f=l[d],h=f._zod.optout==="optional",m=f._zod.run({value:u[d],issues:[]},c);m instanceof Promise?p.push(m.then(v=>dp(v,a,d,u,h))):dp(m,a,d,u,h)}return i?iq(p,u,a,c,n.value,e):p.length?Promise.all(p).then(()=>a):a}}),w2=X("$ZodObjectJIT",(e,t)=>{O2.init(e,t);const r=e._zod.parse,n=dy(()=>nq(t)),o=d=>{const f=new ZG(["shape","payload","ctx"]),h=n.value,m=y=>{const b=vT(y);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};f.write("const input = payload.value;");const v=Object.create(null);let _=0;for(const y of h.keys)v[y]=`key_${_++}`;f.write("const newResult = {};");for(const y of h.keys){const b=v[y],E=vT(y),O=d[y]?._zod?.optout==="optional";f.write(`const ${b} = ${m(y)};`),O?f.write(`
|
|
51
51
|
if (${b}.issues.length) {
|
|
52
52
|
if (${E} in input) {
|
|
53
53
|
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
@@ -81,9 +81,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
81
81
|
newResult[${E}] = ${b}.value;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
`)}f.write("payload.value = newResult;"),f.write("return payload;");const g=f.compile();return(y,b)=>g(d,y,b)};let i;const s=lp,a=!Yq.jitless,u=a&&JV.value,p=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=n.value);const h=d.value;return s(h)?a&&u&&f?.async===!1&&f.jitless!==!0?(i||(i=o(t.shape)),d=i(d,f),p?cN([],h,d,f,l,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function bP(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ni(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>mn(s,n,vn())))}),t)}const M2=X("$ZodUnion",(e,t)=>{Qe.init(e,t),Ce(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ce(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ce(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ce(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>vy(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(c=>bP(c,o,e,i)):bP(a,o,e,i)}}),I2=X("$ZodIntersection",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>EP(r,c,u)):EP(r,i,s)}});function dg(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(bl(e)&&bl(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=dg(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=dg(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function EP(e,t,r){const n=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(a);for(const a of r.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(a);const i=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&o&&e.issues.push({...o,keys:i}),ni(e))return e;const s=dg(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const C2=X("$ZodEnum",(e,t)=>{Qe.init(e,t);const r=Xq(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>QV.has(typeof o)).map(o=>typeof o=="string"?Fp(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),j2=X("$ZodTransform",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Kq(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ai;return r.value=o,r}});function xP(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const uN=X("$ZodOptional",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ce(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${vy(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>xP(i,r.value)):xP(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),q2=X("$ZodExactOptional",(e,t)=>{uN.init(e,t),Ce(e._zod,"values",()=>t.innerType._zod.values),Ce(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),N2=X("$ZodNullable",(e,t)=>{Qe.init(e,t),Ce(e._zod,"optin",()=>t.innerType._zod.optin),Ce(e._zod,"optout",()=>t.innerType._zod.optout),Ce(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${vy(r.source)}|null)$`):void 0}),Ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),F2=X("$ZodDefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",Ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>OP(i,t)):OP(o,t)}});function OP(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const k2=X("$ZodPrefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",Ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),D2=X("$ZodNonOptional",(e,t)=>{Qe.init(e,t),Ce(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>wP(i,e)):wP(o,e)}});function wP(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const L2=X("$ZodCatch",(e,t)=>{Qe.init(e,t),Ce(e._zod,"optin",()=>t.innerType._zod.optin),Ce(e._zod,"optout",()=>t.innerType._zod.optout),Ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>mn(s,n,vn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>mn(i,n,vn()))},input:r.value}),r.issues=[]),r)}}),U2=X("$ZodPipe",(e,t)=>{Qe.init(e,t),Ce(e._zod,"values",()=>t.in._zod.values),Ce(e._zod,"optin",()=>t.in._zod.optin),Ce(e._zod,"optout",()=>t.out._zod.optout),Ce(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Cd(s,t.in,n)):Cd(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Cd(i,t.out,n)):Cd(o,t.out,n)}});function Cd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const z2=X("$ZodReadonly",(e,t)=>{Qe.init(e,t),Ce(e._zod,"propValues",()=>t.innerType._zod.propValues),Ce(e._zod,"values",()=>t.innerType._zod.values),Ce(e._zod,"optin",()=>t.innerType?._zod?.optin),Ce(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(SP):SP(o)}});function SP(e){return e.value=Object.freeze(e.value),e}const B2=X("$ZodCustom",(e,t)=>{jt.init(e,t),Qe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>TP(i,r,n,e));TP(o,r,n,e)}});function TP(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(El(o))}}var PP;class H2{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function V2(){return new H2}(PP=globalThis).__zod_globalRegistry??(PP.__zod_globalRegistry=V2());const _l=globalThis.__zod_globalRegistry;function G2(e,t){return new e({type:"string",...ge(t)})}function W2(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ge(t)})}function AP(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ge(t)})}function Z2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ge(t)})}function K2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ge(t)})}function Y2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ge(t)})}function X2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ge(t)})}function J2(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ge(t)})}function Q2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ge(t)})}function $2(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ge(t)})}function eW(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ge(t)})}function tW(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ge(t)})}function rW(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ge(t)})}function nW(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ge(t)})}function iW(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ge(t)})}function aW(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ge(t)})}function oW(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ge(t)})}function sW(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ge(t)})}function cW(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ge(t)})}function uW(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ge(t)})}function lW(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ge(t)})}function dW(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ge(t)})}function pW(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ge(t)})}function fW(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ge(t)})}function hW(e,t){return new e({type:"string",format:"date",check:"string_format",...ge(t)})}function vW(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ge(t)})}function mW(e,t){return new e({type:"string",format:"duration",check:"string_format",...ge(t)})}function _W(e){return new e({type:"unknown"})}function gW(e,t){return new e({type:"never",...ge(t)})}function lN(e,t){return new BG({check:"max_length",...ge(t),maximum:e})}function pp(e,t){return new HG({check:"min_length",...ge(t),minimum:e})}function dN(e,t){return new VG({check:"length_equals",...ge(t),length:e})}function yW(e,t){return new GG({check:"string_format",format:"regex",...ge(t),pattern:e})}function bW(e){return new WG({check:"string_format",format:"lowercase",...ge(e)})}function EW(e){return new ZG({check:"string_format",format:"uppercase",...ge(e)})}function xW(e,t){return new KG({check:"string_format",format:"includes",...ge(t),includes:e})}function OW(e,t){return new YG({check:"string_format",format:"starts_with",...ge(t),prefix:e})}function wW(e,t){return new XG({check:"string_format",format:"ends_with",...ge(t),suffix:e})}function vi(e){return new JG({check:"overwrite",tx:e})}function SW(e){return vi(t=>t.normalize(e))}function TW(){return vi(e=>e.trim())}function PW(){return vi(e=>e.toLowerCase())}function AW(){return vi(e=>e.toUpperCase())}function RW(){return vi(e=>XV(e))}function MW(e,t,r){return new e({type:"array",element:t,...ge(r)})}function IW(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ge(r)})}function CW(e){const t=jW(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(El(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(El(o))}},e(r.value,r)));return t}function jW(e,t){const r=new jt({check:"custom",...ge(t)});return r._zod.check=e,r}function pN(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??_l,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function rt(e,t,r={path:[],schemaPath:[]}){var n;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{const d=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,d,p)}const l=e._zod.parent;l&&(s.ref||(s.ref=l),rt(l,t,p),t.seen.get(l).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&&dt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function fN(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const s of e.seen.entries()){const a=e.metadataRegistry.get(s[0])?.id;if(a){const c=n.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,s[0])}}const o=s=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const l=e.external.registry.get(s[0])?.id,d=e.external.uri??(h=>h);if(l)return{ref:d(l)};const f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${d("__shared")}#/${a}/${f}`}}if(s[1]===r)return{ref:"#"};const u=`#/${a}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},i=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);const p=a.schema;for(const l in p)delete p[l];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
84
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");const g=f.compile();return(y,b)=>g(d,y,b)};let i;const s=lp,a=!GN.jitless,u=a&&WV.value,p=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=n.value);const h=d.value;return s(h)?a&&u&&f?.async===!1&&f.jitless!==!0?(i||(i=o(t.shape)),d=i(d,f),p?iq([],h,d,f,l,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function gT(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ni(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>mn(s,n,vn())))}),t)}const S2=X("$ZodUnion",(e,t)=>{Qe.init(e,t),Ce(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ce(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ce(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ce(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>fy(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(c=>gT(c,o,e,i)):gT(a,o,e,i)}}),P2=X("$ZodIntersection",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>yT(r,c,u)):yT(r,i,s)}});function ug(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yl(e)&&yl(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=ug(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=ug(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function yT(e,t,r){const n=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(a);for(const a of r.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(a);const i=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&o&&e.issues.push({...o,keys:i}),ni(e))return e;const s=ug(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const T2=X("$ZodEnum",(e,t)=>{Qe.init(e,t);const r=WN(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>ZV.has(typeof o)).map(o=>typeof o=="string"?Fp(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),A2=X("$ZodTransform",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new VN(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ai;return r.value=o,r}});function bT(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const aq=X("$ZodOptional",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ce(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fy(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>bT(i,r.value)):bT(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),R2=X("$ZodExactOptional",(e,t)=>{aq.init(e,t),Ce(e._zod,"values",()=>t.innerType._zod.values),Ce(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),M2=X("$ZodNullable",(e,t)=>{Qe.init(e,t),Ce(e._zod,"optin",()=>t.innerType._zod.optin),Ce(e._zod,"optout",()=>t.innerType._zod.optout),Ce(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fy(r.source)}|null)$`):void 0}),Ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),I2=X("$ZodDefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",Ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>ET(i,t)):ET(o,t)}});function ET(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const C2=X("$ZodPrefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",Ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),j2=X("$ZodNonOptional",(e,t)=>{Qe.init(e,t),Ce(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>xT(i,e)):xT(o,e)}});function xT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const N2=X("$ZodCatch",(e,t)=>{Qe.init(e,t),Ce(e._zod,"optin",()=>t.innerType._zod.optin),Ce(e._zod,"optout",()=>t.innerType._zod.optout),Ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>mn(s,n,vn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>mn(i,n,vn()))},input:r.value}),r.issues=[]),r)}}),q2=X("$ZodPipe",(e,t)=>{Qe.init(e,t),Ce(e._zod,"values",()=>t.in._zod.values),Ce(e._zod,"optin",()=>t.in._zod.optin),Ce(e._zod,"optout",()=>t.out._zod.optout),Ce(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Cd(s,t.in,n)):Cd(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Cd(i,t.out,n)):Cd(o,t.out,n)}});function Cd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const F2=X("$ZodReadonly",(e,t)=>{Qe.init(e,t),Ce(e._zod,"propValues",()=>t.innerType._zod.propValues),Ce(e._zod,"values",()=>t.innerType._zod.values),Ce(e._zod,"optin",()=>t.innerType?._zod?.optin),Ce(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(OT):OT(o)}});function OT(e){return e.value=Object.freeze(e.value),e}const k2=X("$ZodCustom",(e,t)=>{jt.init(e,t),Qe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>wT(i,r,n,e));wT(o,r,n,e)}});function wT(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(bl(o))}}var ST;class D2{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function L2(){return new D2}(ST=globalThis).__zod_globalRegistry??(ST.__zod_globalRegistry=L2());const ml=globalThis.__zod_globalRegistry;function U2(e,t){return new e({type:"string",...ge(t)})}function z2(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ge(t)})}function PT(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ge(t)})}function B2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ge(t)})}function H2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ge(t)})}function V2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ge(t)})}function G2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ge(t)})}function W2(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ge(t)})}function Z2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ge(t)})}function K2(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ge(t)})}function Y2(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ge(t)})}function X2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ge(t)})}function J2(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ge(t)})}function Q2(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ge(t)})}function $2(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ge(t)})}function eW(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ge(t)})}function tW(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ge(t)})}function rW(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ge(t)})}function nW(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ge(t)})}function iW(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ge(t)})}function aW(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ge(t)})}function oW(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ge(t)})}function sW(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ge(t)})}function cW(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ge(t)})}function uW(e,t){return new e({type:"string",format:"date",check:"string_format",...ge(t)})}function lW(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ge(t)})}function dW(e,t){return new e({type:"string",format:"duration",check:"string_format",...ge(t)})}function pW(e){return new e({type:"unknown"})}function fW(e,t){return new e({type:"never",...ge(t)})}function oq(e,t){return new kG({check:"max_length",...ge(t),maximum:e})}function pp(e,t){return new DG({check:"min_length",...ge(t),minimum:e})}function sq(e,t){return new LG({check:"length_equals",...ge(t),length:e})}function hW(e,t){return new UG({check:"string_format",format:"regex",...ge(t),pattern:e})}function vW(e){return new zG({check:"string_format",format:"lowercase",...ge(e)})}function mW(e){return new BG({check:"string_format",format:"uppercase",...ge(e)})}function _W(e,t){return new HG({check:"string_format",format:"includes",...ge(t),includes:e})}function gW(e,t){return new VG({check:"string_format",format:"starts_with",...ge(t),prefix:e})}function yW(e,t){return new GG({check:"string_format",format:"ends_with",...ge(t),suffix:e})}function hi(e){return new WG({check:"overwrite",tx:e})}function bW(e){return hi(t=>t.normalize(e))}function EW(){return hi(e=>e.trim())}function xW(){return hi(e=>e.toLowerCase())}function OW(){return hi(e=>e.toUpperCase())}function wW(){return hi(e=>GV(e))}function SW(e,t,r){return new e({type:"array",element:t,...ge(r)})}function PW(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ge(r)})}function TW(e){const t=AW(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(bl(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(bl(o))}},e(r.value,r)));return t}function AW(e,t){const r=new jt({check:"custom",...ge(t)});return r._zod.check=e,r}function cq(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ml,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function rt(e,t,r={path:[],schemaPath:[]}){var n;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{const d=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,d,p)}const l=e._zod.parent;l&&(s.ref||(s.ref=l),rt(l,t,p),t.seen.get(l).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),t.io==="input"&&dt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function uq(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const s of e.seen.entries()){const a=e.metadataRegistry.get(s[0])?.id;if(a){const c=n.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,s[0])}}const o=s=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const l=e.external.registry.get(s[0])?.id,d=e.external.uri??(h=>h);if(l)return{ref:d(l)};const f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${d("__shared")}#/${a}/${f}`}}if(s[1]===r)return{ref:"#"};const u=`#/${a}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},i=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);const p=a.schema;for(const l in p)delete p[l];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
85
85
|
|
|
86
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const a=s[1];if(t===s[0]){i(s);continue}if(e.external){const u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function hN(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=s=>{const a=e.seen.get(s);if(a.ref===null)return;const c=a.def??a.schema,u={...c},p=a.ref;if(a.ref=null,p){n(p);const d=e.seen.get(p),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),s._zod.parent===p)for(const m in c)m==="$ref"||m==="allOf"||m in u||delete c[m];if(f.$ref&&d.def)for(const m in c)m==="$ref"||m==="allOf"||m in d.def&&JSON.stringify(c[m])===JSON.stringify(d.def[m])&&delete c[m]}const l=s._zod.parent;if(l&&l!==p){n(l);const d=e.seen.get(l);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(const f in c)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(c[f])===JSON.stringify(d.def[f])&&delete c[f]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(s)}Object.assign(o,r.def??r.schema);const i=e.external?.defs??{};for(const s of e.seen.entries()){const a=s[1];a.def&&a.defId&&(i[a.defId]=a.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const s=JSON.parse(JSON.stringify(o));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:fp(t,"input",e.processors),output:fp(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function dt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return dt(n.element,r);if(n.type==="set")return dt(n.valueType,r);if(n.type==="lazy")return dt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return dt(n.innerType,r);if(n.type==="intersection")return dt(n.left,r)||dt(n.right,r);if(n.type==="record"||n.type==="map")return dt(n.keyType,r)||dt(n.valueType,r);if(n.type==="pipe")return dt(n.in,r)||dt(n.out,r);if(n.type==="object"){for(const o in n.shape)if(dt(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(const o of n.options)if(dt(o,r))return!0;return!1}if(n.type==="tuple"){for(const o of n.items)if(dt(o,r))return!0;return!!(n.rest&&dt(n.rest,r))}return!1}const qW=(e,t={})=>r=>{const n=pN({...r,processors:t});return rt(e,n),fN(n,e),hN(n,e)},fp=(e,t,r={})=>n=>{const{libraryOptions:o,target:i}=n??{},s=pN({...o??{},target:i,io:t,processors:r});return rt(e,s),fN(s,e),hN(s,e)},NW={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},FW=(e,t,r,n)=>{const o=r;o.type="string";const{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=NW[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){const p=[...c];p.length===1?o.pattern=p[0].source:p.length>1&&(o.allOf=[...p.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},kW=(e,t,r,n)=>{r.not={}},DW=(e,t,r,n)=>{},LW=(e,t,r,n)=>{const o=e._zod.def,i=Xq(o.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},UW=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zW=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},BW=(e,t,r,n)=>{const o=r,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=rt(i.element,t,{...n,path:[...n.path,"items"]})},HW=(e,t,r,n)=>{const o=r,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const u in s)o.properties[u]=rt(s[u],t,{...n,path:[...n.path,"properties",u]});const a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=rt(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},VW=(e,t,r,n)=>{const o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>rt(a,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},GW=(e,t,r,n)=>{const o=e._zod.def,i=rt(o.left,t,{...n,path:[...n.path,"allOf",0]}),s=rt(o.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];r.allOf=c},WW=(e,t,r,n)=>{const o=e._zod.def,i=rt(o.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},ZW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},KW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},YW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},XW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},JW=(e,t,r,n)=>{const o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;rt(i,t,n);const s=t.seen.get(e);s.ref=i},QW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},vN=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},$W=X("ZodISODateTime",(e,t)=>{d2.init(e,t),ze.init(e,t)});function e3(e){return fW($W,e)}const t3=X("ZodISODate",(e,t)=>{p2.init(e,t),ze.init(e,t)});function r3(e){return hW(t3,e)}const n3=X("ZodISOTime",(e,t)=>{f2.init(e,t),ze.init(e,t)});function i3(e){return vW(n3,e)}const a3=X("ZodISODuration",(e,t)=>{h2.init(e,t),ze.init(e,t)});function o3(e){return mW(a3,e)}const s3=(e,t)=>{tN.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>cG(e,r)},flatten:{value:r=>sG(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,lg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,lg,2)}},isEmpty:{get(){return e.issues.length===0}}})},xt=X("ZodError",s3,{Parent:Error}),c3=_y(xt),u3=gy(xt),l3=kp(xt),d3=Dp(xt),p3=dG(xt),f3=pG(xt),h3=fG(xt),v3=hG(xt),m3=vG(xt),_3=mG(xt),g3=_G(xt),y3=gG(xt),$e=X("ZodType",(e,t)=>(Qe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fp(e,"input"),output:fp(e,"output")}}),e.toJSONSchema=qW(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(vr(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>mr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>c3(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>l3(e,r,n),e.parseAsync=async(r,n)=>u3(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>d3(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>p3(e,r,n),e.decode=(r,n)=>f3(e,r,n),e.encodeAsync=async(r,n)=>h3(e,r,n),e.decodeAsync=async(r,n)=>v3(e,r,n),e.safeEncode=(r,n)=>m3(e,r,n),e.safeDecode=(r,n)=>_3(e,r,n),e.safeEncodeAsync=async(r,n)=>g3(e,r,n),e.safeDecodeAsync=async(r,n)=>y3(e,r,n),e.refine=(r,n)=>e.check(lZ(r,n)),e.superRefine=r=>e.check(dZ(r)),e.overwrite=r=>e.check(vi(r)),e.optional=()=>IP(e),e.exactOptional=()=>J3(e),e.nullable=()=>CP(e),e.nullish=()=>IP(CP(e)),e.nonoptional=r=>nZ(e,r),e.array=()=>_N(e),e.or=r=>G3([e,r]),e.and=r=>Z3(e,r),e.transform=r=>jP(e,Y3(r)),e.default=r=>eZ(e,r),e.prefault=r=>rZ(e,r),e.catch=r=>aZ(e,r),e.pipe=r=>jP(e,r),e.readonly=()=>cZ(e),e.describe=r=>{const n=e.clone();return _l.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return _l.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return _l.get(e);const n=e.clone();return _l.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),mN=X("_ZodString",(e,t)=>{yy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(n,o,i)=>FW(e,n,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(yW(...n)),e.includes=(...n)=>e.check(xW(...n)),e.startsWith=(...n)=>e.check(OW(...n)),e.endsWith=(...n)=>e.check(wW(...n)),e.min=(...n)=>e.check(pp(...n)),e.max=(...n)=>e.check(lN(...n)),e.length=(...n)=>e.check(dN(...n)),e.nonempty=(...n)=>e.check(pp(1,...n)),e.lowercase=n=>e.check(bW(n)),e.uppercase=n=>e.check(EW(n)),e.trim=()=>e.check(TW()),e.normalize=(...n)=>e.check(SW(...n)),e.toLowerCase=()=>e.check(PW()),e.toUpperCase=()=>e.check(AW()),e.slugify=()=>e.check(RW())}),b3=X("ZodString",(e,t)=>{yy.init(e,t),mN.init(e,t),e.email=r=>e.check(W2(E3,r)),e.url=r=>e.check(J2(x3,r)),e.jwt=r=>e.check(pW(k3,r)),e.emoji=r=>e.check(Q2(O3,r)),e.guid=r=>e.check(AP(RP,r)),e.uuid=r=>e.check(Z2(jd,r)),e.uuidv4=r=>e.check(K2(jd,r)),e.uuidv6=r=>e.check(Y2(jd,r)),e.uuidv7=r=>e.check(X2(jd,r)),e.nanoid=r=>e.check($2(w3,r)),e.guid=r=>e.check(AP(RP,r)),e.cuid=r=>e.check(eW(S3,r)),e.cuid2=r=>e.check(tW(T3,r)),e.ulid=r=>e.check(rW(P3,r)),e.base64=r=>e.check(uW(q3,r)),e.base64url=r=>e.check(lW(N3,r)),e.xid=r=>e.check(nW(A3,r)),e.ksuid=r=>e.check(iW(R3,r)),e.ipv4=r=>e.check(aW(M3,r)),e.ipv6=r=>e.check(oW(I3,r)),e.cidrv4=r=>e.check(sW(C3,r)),e.cidrv6=r=>e.check(cW(j3,r)),e.e164=r=>e.check(dW(F3,r)),e.datetime=r=>e.check(e3(r)),e.date=r=>e.check(r3(r)),e.time=r=>e.check(i3(r)),e.duration=r=>e.check(o3(r))});function Mt(e){return G2(b3,e)}const ze=X("ZodStringFormat",(e,t)=>{Le.init(e,t),mN.init(e,t)}),E3=X("ZodEmail",(e,t)=>{r2.init(e,t),ze.init(e,t)}),RP=X("ZodGUID",(e,t)=>{e2.init(e,t),ze.init(e,t)}),jd=X("ZodUUID",(e,t)=>{t2.init(e,t),ze.init(e,t)}),x3=X("ZodURL",(e,t)=>{n2.init(e,t),ze.init(e,t)}),O3=X("ZodEmoji",(e,t)=>{i2.init(e,t),ze.init(e,t)}),w3=X("ZodNanoID",(e,t)=>{a2.init(e,t),ze.init(e,t)}),S3=X("ZodCUID",(e,t)=>{o2.init(e,t),ze.init(e,t)}),T3=X("ZodCUID2",(e,t)=>{s2.init(e,t),ze.init(e,t)}),P3=X("ZodULID",(e,t)=>{c2.init(e,t),ze.init(e,t)}),A3=X("ZodXID",(e,t)=>{u2.init(e,t),ze.init(e,t)}),R3=X("ZodKSUID",(e,t)=>{l2.init(e,t),ze.init(e,t)}),M3=X("ZodIPv4",(e,t)=>{v2.init(e,t),ze.init(e,t)}),I3=X("ZodIPv6",(e,t)=>{m2.init(e,t),ze.init(e,t)}),C3=X("ZodCIDRv4",(e,t)=>{_2.init(e,t),ze.init(e,t)}),j3=X("ZodCIDRv6",(e,t)=>{g2.init(e,t),ze.init(e,t)}),q3=X("ZodBase64",(e,t)=>{y2.init(e,t),ze.init(e,t)}),N3=X("ZodBase64URL",(e,t)=>{E2.init(e,t),ze.init(e,t)}),F3=X("ZodE164",(e,t)=>{x2.init(e,t),ze.init(e,t)}),k3=X("ZodJWT",(e,t)=>{w2.init(e,t),ze.init(e,t)}),D3=X("ZodUnknown",(e,t)=>{S2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>DW()});function MP(){return _W(D3)}const L3=X("ZodNever",(e,t)=>{T2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>kW(e,r,n)});function U3(e){return gW(L3,e)}const z3=X("ZodArray",(e,t)=>{P2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>BW(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(pp(r,n)),e.nonempty=r=>e.check(pp(1,r)),e.max=(r,n)=>e.check(lN(r,n)),e.length=(r,n)=>e.check(dN(r,n)),e.unwrap=()=>e.element});function _N(e,t){return MW(z3,e,t)}const B3=X("ZodObject",(e,t)=>{R2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>HW(e,r,n,o),Ce(e,"shape",()=>t.shape),e.keyof=()=>gN(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:MP()}),e.loose=()=>e.clone({...e._zod.def,catchall:MP()}),e.strict=()=>e.clone({...e._zod.def,catchall:U3()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>rG(e,r),e.safeExtend=r=>nG(e,r),e.merge=r=>iG(e,r),e.pick=r=>eG(e,r),e.omit=r=>tG(e,r),e.partial=(...r)=>aG(yN,e,r[0]),e.required=(...r)=>oG(bN,e,r[0])});function H3(e,t){const r={type:"object",shape:e??{},...ge(t)};return new B3(r)}const V3=X("ZodUnion",(e,t)=>{M2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>VW(e,r,n,o),e.options=t.options});function G3(e,t){return new V3({type:"union",options:e,...ge(t)})}const W3=X("ZodIntersection",(e,t)=>{I2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>GW(e,r,n,o)});function Z3(e,t){return new W3({type:"intersection",left:e,right:t})}const pg=X("ZodEnum",(e,t)=>{C2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(n,o,i)=>LW(e,n,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new pg({...t,checks:[],...ge(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new pg({...t,checks:[],...ge(o),entries:i})}});function gN(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new pg({type:"enum",entries:r,...ge(t)})}const K3=X("ZodTransform",(e,t)=>{j2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>zW(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Kq(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(El(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(El(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function Y3(e){return new K3({type:"transform",transform:e})}const yN=X("ZodOptional",(e,t)=>{uN.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>vN(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function IP(e){return new yN({type:"optional",innerType:e})}const X3=X("ZodExactOptional",(e,t)=>{q2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>vN(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function J3(e){return new X3({type:"optional",innerType:e})}const Q3=X("ZodNullable",(e,t)=>{N2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>WW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function CP(e){return new Q3({type:"nullable",innerType:e})}const $3=X("ZodDefault",(e,t)=>{F2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>KW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function eZ(e,t){return new $3({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Qq(t)}})}const tZ=X("ZodPrefault",(e,t)=>{k2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>YW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function rZ(e,t){return new tZ({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Qq(t)}})}const bN=X("ZodNonOptional",(e,t)=>{D2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ZW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function nZ(e,t){return new bN({type:"nonoptional",innerType:e,...ge(t)})}const iZ=X("ZodCatch",(e,t)=>{L2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>XW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function aZ(e,t){return new iZ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const oZ=X("ZodPipe",(e,t)=>{U2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>JW(e,r,n,o),e.in=t.in,e.out=t.out});function jP(e,t){return new oZ({type:"pipe",in:e,out:t})}const sZ=X("ZodReadonly",(e,t)=>{z2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>QW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function cZ(e){return new sZ({type:"readonly",innerType:e})}const uZ=X("ZodCustom",(e,t)=>{B2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UW(e,r)});function lZ(e,t={}){return IW(uZ,e,t)}function dZ(e){return CW(e)}const oi="nestjs-app-config",pZ=_N(gN(["verbose","debug","log","warn","error","fatal"])).default(["log"]),EN=H3({APP_PORT:Mt().transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:"APP_PORT must be a valid number"}).refine(e=>e>0,{message:"APP_PORT must be a positive number"}),LOGGER_PROVIDER:Mt().optional(),LOGGER_LEVELS:Mt().optional().default("verbose,debug,log,warn,error,fatal").transform(e=>e.split(",").map(t=>t.trim())),CORS_ORIGIN:Mt().default("*"),CORS_METHODS:Mt().default("GET,POST,PUT,DELETE,PATCH,OPTIONS").transform(e=>e.split(",").map(t=>t.trim())),CORS_ALLOWED_HEADERS:Mt().default("Content-Type,Authorization").transform(e=>e.split(",").map(t=>t.trim())),CORS_CREDENTIALS:Mt().default("true").transform(e=>e.toLowerCase()==="true"),CORS_MAX_AGE:Mt().default("3600").transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:"CORS_MAX_AGE must be a valid number"}),CORE_API_VERSION:Mt().default("latest"),LOG_LEVELS:Mt().default("verbose,debug,log,warn,error,fatal").transform(e=>{const t=e.split(",");return pZ.parse(t)})}),fZ=e=>op.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[op.registerAs(e,()=>PB(EN))]}),hZ=()=>fZ(oi);var Pt=ve(),Mm={},Im={},dc={},qP;function xN(){if(qP)return dc;qP=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.AbstractHttpAdapter=void 0;class e{constructor(r){this.instance=r}async init(){}use(...r){return this.instance.use(...r)}get(...r){return this.instance.get(...r)}post(...r){return this.instance.post(...r)}head(...r){return this.instance.head(...r)}delete(...r){return this.instance.delete(...r)}put(...r){return this.instance.put(...r)}patch(...r){return this.instance.patch(...r)}propfind(...r){return this.instance.propfind(...r)}proppatch(...r){return this.instance.proppatch(...r)}mkcol(...r){return this.instance.mkcol(...r)}copy(...r){return this.instance.copy(...r)}move(...r){return this.instance.move(...r)}lock(...r){return this.instance.lock(...r)}unlock(...r){return this.instance.unlock(...r)}all(...r){return this.instance.all(...r)}search(...r){return this.instance.search(...r)}options(...r){return this.instance.options(...r)}listen(r,n,o){return this.instance.listen(r,n,o)}getHttpServer(){return this.httpServer}setHttpServer(r){this.httpServer=r}setInstance(r){this.instance=r}getInstance(){return this.instance}normalizePath(r){return r}setOnRouteTriggered(r){this.onRouteTriggered=r}getOnRouteTriggered(){return this.onRouteTriggered}setOnRequestHook(r){}setOnResponseHook(r){}}return dc.AbstractHttpAdapter=e,dc}var NP;function vZ(){return NP||(NP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(xN(),e)})(Im)),Im}var pc={},FP;function _r(){if(FP)return pc;FP=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.ApplicationConfig=void 0;class e{constructor(r=null){this.ioAdapter=r,this.globalPrefix="",this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(r){this.globalPrefix=r}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(r){this.globalPrefixOptions=r}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(r){this.ioAdapter=r}getIoAdapter(){return this.ioAdapter}addGlobalPipe(r){this.globalPipes.push(r)}useGlobalPipes(...r){this.globalPipes=this.globalPipes.concat(r)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(r){this.globalFilters.push(r)}useGlobalFilters(...r){this.globalFilters=this.globalFilters.concat(r)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(r){this.globalInterceptors.push(r)}useGlobalInterceptors(...r){this.globalInterceptors=this.globalInterceptors.concat(r)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(r){this.globalGuards.push(r)}useGlobalGuards(...r){this.globalGuards=this.globalGuards.concat(r)}addGlobalRequestInterceptor(r){this.globalRequestInterceptors.push(r)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(r){this.globalRequestPipes.push(r)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(r){this.globalRequestFilters.push(r)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(r){this.globalRequestGuards.push(r)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(r){Array.isArray(r.defaultVersion)&&(r.defaultVersion=Array.from(new Set(r.defaultVersion))),this.versioningOptions=r}getVersioning(){return this.versioningOptions}}return pc.ApplicationConfig=e,pc}var Cm={},kP;function mi(){return kP||(kP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ENHANCER_TOKEN_TO_SUBTYPE_MAP=e.APP_FILTER=e.APP_GUARD=e.APP_PIPE=e.APP_INTERCEPTOR=e.MESSAGES=void 0,e.MESSAGES={APPLICATION_START:"Starting Nest application...",APPLICATION_READY:"Nest application successfully started",MICROSERVICE_READY:"Nest microservice successfully started",UNKNOWN_EXCEPTION_MESSAGE:"Internal server error",ERROR_DURING_SHUTDOWN:"Error happened during shutdown",CALL_LISTEN_FIRST:"app.listen() needs to be called before calling app.getUrl()"},e.APP_INTERCEPTOR="APP_INTERCEPTOR",e.APP_PIPE="APP_PIPE",e.APP_GUARD="APP_GUARD",e.APP_FILTER="APP_FILTER",e.ENHANCER_TOKEN_TO_SUBTYPE_MAP={[e.APP_GUARD]:"guard",[e.APP_INTERCEPTOR]:"interceptor",[e.APP_PIPE]:"pipe",[e.APP_FILTER]:"filter"}})(Cm)),Cm}var jm={},Yn={},fc={},DP;function Tn(){if(DP)return fc;DP=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.MetadataScanner=void 0;const e=ne();class t{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(n,o,i){if(!o)return[];const s=new Map,a=[];do for(const c of Object.getOwnPropertyNames(o)){if(s.has(c))continue;s.set(c,!0);const u=Object.getOwnPropertyDescriptor(o,c);if(u.set||u.get||(0,e.isConstructor)(c)||!(0,e.isFunction)(o[c]))continue;const p=i(c);(0,e.isNil)(p)||a.push(p)}while((o=Reflect.getPrototypeOf(o))&&o!==Object.prototype);return a}*getAllFilteredMethodNames(n){yield*this.getAllMethodNames(n)}getAllMethodNames(n){if(!n)return[];if(this.cachedScannedPrototypes.has(n))return this.cachedScannedPrototypes.get(n);const o=new Map,i=[];this.cachedScannedPrototypes.set(n,i);do for(const s of Object.getOwnPropertyNames(n)){if(o.has(s))continue;o.set(s,!0);const a=Object.getOwnPropertyDescriptor(n,s);a.set||a.get||(0,e.isConstructor)(s)||!(0,e.isFunction)(n[s])||i.push(s)}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype);return i}}return fc.MetadataScanner=t,fc}var Xn={},hc={},LP;function _i(){if(LP)return hc;LP=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.ModulesContainer=void 0;const e=On(),t=_n();class r extends Map{constructor(){super(...arguments),this._applicationId=(0,t.uid)(21),this._rpcTargetRegistry$=new e.ReplaySubject}get applicationId(){return this._applicationId}getById(o){return Array.from(this.values()).find(i=>i.id===o)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(o){this._rpcTargetRegistry$.next(o)}}return hc.ModulesContainer=r,hc}var vc={},UP;function ON(){if(UP)return vc;UP=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.DiscoverableMetaHostCollection=void 0;class e{static addClassMetaHostLink(r,n){this.metaHostLinks.set(r,n)}static inspectProvider(r,n){return this.inspectInstanceWrapper(r,n,this.providersByMetaKey)}static inspectController(r,n){return this.inspectInstanceWrapper(r,n,this.controllersByMetaKey)}static insertByMetaKey(r,n,o){if(o.has(r))o.get(r).add(n);else{const i=new Set;i.add(n),o.set(r,i)}}static getProvidersByMetaKey(r,n){return this.providersByMetaKey.get(r)?.get(n)??new Set}static getControllersByMetaKey(r,n){return this.controllersByMetaKey.get(r)?.get(n)??new Set}static inspectInstanceWrapper(r,n,o){const i=e.getMetaKeyByInstanceWrapper(n);if(!i)return;let s;o.has(r)?s=o.get(r):(s=new Map,o.set(r,s)),this.insertByMetaKey(i,n,s)}static getMetaKeyByInstanceWrapper(r){return this.metaHostLinks.get(r.metatype||r.inject?r.instance?.constructor??r.metatype:r.metatype)}}return vc.DiscoverableMetaHostCollection=e,e.metaHostLinks=new Map,e.providersByMetaKey=new WeakMap,e.controllersByMetaKey=new WeakMap,vc}var zP;function wN(){if(zP)return Xn;zP=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.DiscoveryService=void 0;const e=ae(),t=ve(),r=_n(),n=_i(),o=ON();let i=class{constructor(a){this.modulesContainer=a}static createDecorator(){const a=(0,r.uid)(21),c=u=>(p,l,d)=>{d||o.DiscoverableMetaHostCollection.addClassMetaHostLink(p,a),(0,t.SetMetadata)(a,u??{})(p,l,d)};return c.KEY=a,c}getProviders(a={},c=this.getModules(a)){if("metadataKey"in a){const p=o.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,a.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.providers.values()]);return(0,t.flatten)(u)}getControllers(a={},c=this.getModules(a)){if("metadataKey"in a){const p=o.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,a.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.controllers.values()]);return(0,t.flatten)(u)}getMetadataByDecorator(a,c,u){if(u)return Reflect.getMetadata(a.KEY,c.instance[u]);const p=c.instance?.constructor??c.metatype;return Reflect.getMetadata(a.KEY,p)}getModules(a={}){return"include"in a?this.includeWhitelisted(a.include):[...this.modulesContainer.values()]}includeWhitelisted(a){return[...this.modulesContainer.values()].filter(({metatype:u})=>a.some(p=>p===u))}};return Xn.DiscoveryService=i,Xn.DiscoveryService=i=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[n.ModulesContainer])],i),Xn}var BP;function mZ(){if(BP)return Yn;BP=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.DiscoveryModule=void 0;const e=ae(),t=ve(),r=Tn(),n=wN();let o=class{};return Yn.DiscoveryModule=o,Yn.DiscoveryModule=o=e.__decorate([(0,t.Module)({providers:[r.MetadataScanner,n.DiscoveryService],exports:[r.MetadataScanner,n.DiscoveryService]})],o),Yn}var HP;function _Z(){return HP||(HP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(mZ(),e),t.__exportStar(wN(),e)})(jm)),jm}var qm={},mc={},_c={},VP;function Dl(){if(VP)return _c;VP=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.HttpAdapterHost=void 0;const e=On();class t{constructor(){this._listen$=new e.Subject,this._init$=new e.ReplaySubject,this.isListening=!1}set httpAdapter(n){this._httpAdapter=n,this._init$.next(),this._init$.complete()}get httpAdapter(){return this._httpAdapter}get listen$(){return this._listen$.asObservable()}get init$(){return this._init$.asObservable()}set listening(n){this.isListening=n,n&&(this._listen$.next(),this._listen$.complete())}get listening(){return this.isListening}}return _c.HttpAdapterHost=t,_c}var GP;function SN(){if(GP)return mc;GP=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.BaseExceptionFilter=void 0;const e=ae(),t=ve(),r=ne(),n=mi(),o=Dl();class i{constructor(a){this.applicationRef=a}catch(a,c){const u=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(a instanceof t.HttpException))return this.handleUnknownError(a,c,u);const p=a.getResponse(),l=(0,r.isObject)(p)?p:{statusCode:a.getStatus(),message:p},d=c.getArgByIndex(1);u.isHeadersSent(d)?u.end(d):u.reply(d,l,a.getStatus())}handleUnknownError(a,c,u){const p=this.isHttpError(a)?{statusCode:a.statusCode,message:a.message}:{statusCode:t.HttpStatus.INTERNAL_SERVER_ERROR,message:n.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE},l=c.getArgByIndex(1);u.isHeadersSent(l)?u.end(l):u.reply(l,p,p.statusCode),a instanceof t.IntrinsicException||i.logger.error(a)}isExceptionObject(a){return(0,r.isObject)(a)&&!!a.message}isHttpError(a){return a?.statusCode&&a?.message}}return mc.BaseExceptionFilter=i,i.logger=new t.Logger("ExceptionsHandler"),e.__decorate([(0,t.Optional)(),(0,t.Inject)(),e.__metadata("design:type",o.HttpAdapterHost)],i.prototype,"httpAdapterHost",void 0),mc}var WP;function gZ(){return WP||(WP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(SN(),e)})(qm)),qm}var Nm={},Jn={},sn={},ZP;function Pn(){return ZP||(ZP=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.REQUEST_CONTEXT_ID=sn.REQUEST=void 0,sn.REQUEST="REQUEST",sn.REQUEST_CONTEXT_ID=Symbol("REQUEST_CONTEXT_ID")),sn}var KP;function Ll(){if(KP)return Jn;KP=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.ContextIdFactory=void 0,Jn.createContextId=r;const e=ne(),t=Pn();function r(){return{id:Math.random()}}class n{static create(){return r()}static getByRequest(i,s=["raw"]){if(!i)return n.create();if(i[t.REQUEST_CONTEXT_ID])return i[t.REQUEST_CONTEXT_ID];for(const u of s)if(i[u]?.[t.REQUEST_CONTEXT_ID])return i[u][t.REQUEST_CONTEXT_ID];if(!this.strategy)return n.create();const a=r(),c=this.strategy.attach(a,i);return this.isContextIdResolverWithPayload(c)?(a.getParent=c.resolve,a.payload=c.payload):a.getParent=c,a}static apply(i){this.strategy=i}static isContextIdResolverWithPayload(i){return(0,e.isObject)(i)}}return Jn.ContextIdFactory=n,Jn}var gc={},yc={},cn={},YP;function ot(){if(YP)return cn;YP=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.STATIC_CONTEXT=cn.CONTROLLER_ID_KEY=void 0,cn.CONTROLLER_ID_KEY="CONTROLLER_ID";const e=1;return cn.STATIC_CONTEXT=Object.freeze({id:e}),cn}var bc={},Ec={},XP;function Up(){if(XP)return Ec;XP=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.ContextCreator=void 0;const e=ot();class t{createContext(n,o,i,s=e.STATIC_CONTEXT,a){const c=this.getGlobalMetadata&&this.getGlobalMetadata(s,a),u=this.reflectClassMetadata(n,i),p=this.reflectMethodMetadata(o,i);return[...this.createConcreteContext(c||[],s,a),...this.createConcreteContext(u,s,a),...this.createConcreteContext(p,s,a)]}reflectClassMetadata(n,o){const i=Object.getPrototypeOf(n);return Reflect.getMetadata(o,i.constructor)}reflectMethodMetadata(n,o){return Reflect.getMetadata(o,n)}getContextId(n,o){return n.getParent?n.getParent({token:o.token,isTreeDurable:o.isDependencyTreeDurable()}):n}}return Ec.ContextCreator=t,Ec}var JP;function TN(){if(JP)return bc;JP=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.BaseExceptionFilterContext=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a){super(),this.container=a}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&((0,t.isFunction)(p.catch)||p.name)).map(p=>this.getFilterInstance(p,c,u)).filter(p=>!!p).map(p=>({func:p.catch.bind(p),exceptionMetatypes:this.reflectCatchExceptions(p)})).toArray()}getFilterInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.catch)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(a)}reflectCatchExceptions(a){const c=Object.getPrototypeOf(a);return Reflect.getMetadata(e.FILTER_CATCH_EXCEPTIONS,c.constructor)||[]}}return bc.BaseExceptionFilterContext=i,bc}var xc={},Oc={},QP;function PN(){if(QP)return Oc;QP=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.selectExceptionFilterMetadata=void 0;const e=(t,r)=>t.find(({exceptionMetatypes:n})=>!n.length||n.some(o=>r instanceof o));return Oc.selectExceptionFilterMetadata=e,Oc}var wc={},Sc={},$P;function et(){if($P)return Sc;$P=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.RuntimeException=void 0;class e extends Error{constructor(r=""){super(r)}what(){return this.message}}return Sc.RuntimeException=e,Sc}var Ae={},eA;function Ot(){if(eA)return Ae;eA=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=Ae.INVALID_EXCEPTION_FILTER=Ae.UNHANDLED_RUNTIME_EXCEPTION=Ae.INVALID_MIDDLEWARE_CONFIGURATION=Ae.UNKNOWN_REQUEST_MAPPING=Ae.INVALID_CLASS_SCOPE_MESSAGE=Ae.INVALID_CLASS_MESSAGE=Ae.UNKNOWN_EXPORT_MESSAGE=Ae.UNDEFINED_MODULE_MESSAGE=Ae.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=Ae.INVALID_MODULE_MESSAGE=Ae.UNDEFINED_FORWARDREF_MESSAGE=Ae.INVALID_MIDDLEWARE_MESSAGE=Ae.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;const e=ne(),t=m=>m?.forwardRef?m.forwardRef()?.name:m?.module?m.module?.name:m?.name,r=(m,v,_=!0)=>t(m)||(0,e.isSymbol)(m)&&m.toString()||(m?_?`"${m}"`:m:void 0)||v,n=m=>m&&t(m.metatype)||"current",o=m=>(m||[]).map(t).join(" -> "),i=(m,v,_)=>{const{index:g,name:y,dependencies:b,key:E}=v,x=n(_),O=r(y,"dependency"),S=!(0,e.isNil)(g)&&b&&(b[g]===void 0||b[g]===Object||typeof b[g]=="function"&&b[g].name==="Object");let w;S?w=`
|
|
86
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const a=s[1];if(t===s[0]){i(s);continue}if(e.external){const u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function lq(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=s=>{const a=e.seen.get(s);if(a.ref===null)return;const c=a.def??a.schema,u={...c},p=a.ref;if(a.ref=null,p){n(p);const d=e.seen.get(p),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(f)):Object.assign(c,f),Object.assign(c,u),s._zod.parent===p)for(const m in c)m==="$ref"||m==="allOf"||m in u||delete c[m];if(f.$ref&&d.def)for(const m in c)m==="$ref"||m==="allOf"||m in d.def&&JSON.stringify(c[m])===JSON.stringify(d.def[m])&&delete c[m]}const l=s._zod.parent;if(l&&l!==p){n(l);const d=e.seen.get(l);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(const f in c)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(c[f])===JSON.stringify(d.def[f])&&delete c[f]}e.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(s)}Object.assign(o,r.def??r.schema);const i=e.external?.defs??{};for(const s of e.seen.entries()){const a=s[1];a.def&&a.defId&&(i[a.defId]=a.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const s=JSON.parse(JSON.stringify(o));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:fp(t,"input",e.processors),output:fp(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function dt(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return dt(n.element,r);if(n.type==="set")return dt(n.valueType,r);if(n.type==="lazy")return dt(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return dt(n.innerType,r);if(n.type==="intersection")return dt(n.left,r)||dt(n.right,r);if(n.type==="record"||n.type==="map")return dt(n.keyType,r)||dt(n.valueType,r);if(n.type==="pipe")return dt(n.in,r)||dt(n.out,r);if(n.type==="object"){for(const o in n.shape)if(dt(n.shape[o],r))return!0;return!1}if(n.type==="union"){for(const o of n.options)if(dt(o,r))return!0;return!1}if(n.type==="tuple"){for(const o of n.items)if(dt(o,r))return!0;return!!(n.rest&&dt(n.rest,r))}return!1}const RW=(e,t={})=>r=>{const n=cq({...r,processors:t});return rt(e,n),uq(n,e),lq(n,e)},fp=(e,t,r={})=>n=>{const{libraryOptions:o,target:i}=n??{},s=cq({...o??{},target:i,io:t,processors:r});return rt(e,s),uq(s,e),lq(s,e)},MW={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},IW=(e,t,r,n)=>{const o=r;o.type="string";const{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=MW[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){const p=[...c];p.length===1?o.pattern=p[0].source:p.length>1&&(o.allOf=[...p.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},CW=(e,t,r,n)=>{r.not={}},jW=(e,t,r,n)=>{},NW=(e,t,r,n)=>{const o=e._zod.def,i=WN(o.entries);i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},qW=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},FW=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},kW=(e,t,r,n)=>{const o=r,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=rt(i.element,t,{...n,path:[...n.path,"items"]})},DW=(e,t,r,n)=>{const o=r,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const u in s)o.properties[u]=rt(s[u],t,{...n,path:[...n.path,"properties",u]});const a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(o.required=Array.from(c)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=rt(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},LW=(e,t,r,n)=>{const o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>rt(a,t,{...n,path:[...n.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},UW=(e,t,r,n)=>{const o=e._zod.def,i=rt(o.left,t,{...n,path:[...n.path,"allOf",0]}),s=rt(o.right,t,{...n,path:[...n.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];r.allOf=c},zW=(e,t,r,n)=>{const o=e._zod.def,i=rt(o.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},BW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},HW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},VW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},GW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},WW=(e,t,r,n)=>{const o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;rt(i,t,n);const s=t.seen.get(e);s.ref=i},ZW=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType,r.readOnly=!0},dq=(e,t,r,n)=>{const o=e._zod.def;rt(o.innerType,t,n);const i=t.seen.get(e);i.ref=o.innerType},KW=X("ZodISODateTime",(e,t)=>{o2.init(e,t),ze.init(e,t)});function YW(e){return cW(KW,e)}const XW=X("ZodISODate",(e,t)=>{s2.init(e,t),ze.init(e,t)});function JW(e){return uW(XW,e)}const QW=X("ZodISOTime",(e,t)=>{c2.init(e,t),ze.init(e,t)});function $W(e){return lW(QW,e)}const e3=X("ZodISODuration",(e,t)=>{u2.init(e,t),ze.init(e,t)});function t3(e){return dW(e3,e)}const r3=(e,t)=>{JN.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>nG(e,r)},flatten:{value:r=>rG(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,cg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,cg,2)}},isEmpty:{get(){return e.issues.length===0}}})},xt=X("ZodError",r3,{Parent:Error}),n3=vy(xt),i3=my(xt),a3=kp(xt),o3=Dp(xt),s3=oG(xt),c3=sG(xt),u3=cG(xt),l3=uG(xt),d3=lG(xt),p3=dG(xt),f3=pG(xt),h3=fG(xt),$e=X("ZodType",(e,t)=>(Qe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fp(e,"input"),output:fp(e,"output")}}),e.toJSONSchema=RW(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(vr(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>mr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>n3(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>a3(e,r,n),e.parseAsync=async(r,n)=>i3(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>o3(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>s3(e,r,n),e.decode=(r,n)=>c3(e,r,n),e.encodeAsync=async(r,n)=>u3(e,r,n),e.decodeAsync=async(r,n)=>l3(e,r,n),e.safeEncode=(r,n)=>d3(e,r,n),e.safeDecode=(r,n)=>p3(e,r,n),e.safeEncodeAsync=async(r,n)=>f3(e,r,n),e.safeDecodeAsync=async(r,n)=>h3(e,r,n),e.refine=(r,n)=>e.check(aZ(r,n)),e.superRefine=r=>e.check(oZ(r)),e.overwrite=r=>e.check(hi(r)),e.optional=()=>RT(e),e.exactOptional=()=>W3(e),e.nullable=()=>MT(e),e.nullish=()=>RT(MT(e)),e.nonoptional=r=>Q3(e,r),e.array=()=>fq(e),e.or=r=>U3([e,r]),e.and=r=>B3(e,r),e.transform=r=>IT(e,V3(r)),e.default=r=>Y3(e,r),e.prefault=r=>J3(e,r),e.catch=r=>eZ(e,r),e.pipe=r=>IT(e,r),e.readonly=()=>nZ(e),e.describe=r=>{const n=e.clone();return ml.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return ml.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ml.get(e);const n=e.clone();return ml.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),pq=X("_ZodString",(e,t)=>{_y.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(n,o,i)=>IW(e,n,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(hW(...n)),e.includes=(...n)=>e.check(_W(...n)),e.startsWith=(...n)=>e.check(gW(...n)),e.endsWith=(...n)=>e.check(yW(...n)),e.min=(...n)=>e.check(pp(...n)),e.max=(...n)=>e.check(oq(...n)),e.length=(...n)=>e.check(sq(...n)),e.nonempty=(...n)=>e.check(pp(1,...n)),e.lowercase=n=>e.check(vW(n)),e.uppercase=n=>e.check(mW(n)),e.trim=()=>e.check(EW()),e.normalize=(...n)=>e.check(bW(...n)),e.toLowerCase=()=>e.check(xW()),e.toUpperCase=()=>e.check(OW()),e.slugify=()=>e.check(wW())}),v3=X("ZodString",(e,t)=>{_y.init(e,t),pq.init(e,t),e.email=r=>e.check(z2(m3,r)),e.url=r=>e.check(W2(_3,r)),e.jwt=r=>e.check(sW(C3,r)),e.emoji=r=>e.check(Z2(g3,r)),e.guid=r=>e.check(PT(TT,r)),e.uuid=r=>e.check(B2(jd,r)),e.uuidv4=r=>e.check(H2(jd,r)),e.uuidv6=r=>e.check(V2(jd,r)),e.uuidv7=r=>e.check(G2(jd,r)),e.nanoid=r=>e.check(K2(y3,r)),e.guid=r=>e.check(PT(TT,r)),e.cuid=r=>e.check(Y2(b3,r)),e.cuid2=r=>e.check(X2(E3,r)),e.ulid=r=>e.check(J2(x3,r)),e.base64=r=>e.check(iW(R3,r)),e.base64url=r=>e.check(aW(M3,r)),e.xid=r=>e.check(Q2(O3,r)),e.ksuid=r=>e.check($2(w3,r)),e.ipv4=r=>e.check(eW(S3,r)),e.ipv6=r=>e.check(tW(P3,r)),e.cidrv4=r=>e.check(rW(T3,r)),e.cidrv6=r=>e.check(nW(A3,r)),e.e164=r=>e.check(oW(I3,r)),e.datetime=r=>e.check(YW(r)),e.date=r=>e.check(JW(r)),e.time=r=>e.check($W(r)),e.duration=r=>e.check(t3(r))});function Mt(e){return U2(v3,e)}const ze=X("ZodStringFormat",(e,t)=>{Le.init(e,t),pq.init(e,t)}),m3=X("ZodEmail",(e,t)=>{JG.init(e,t),ze.init(e,t)}),TT=X("ZodGUID",(e,t)=>{YG.init(e,t),ze.init(e,t)}),jd=X("ZodUUID",(e,t)=>{XG.init(e,t),ze.init(e,t)}),_3=X("ZodURL",(e,t)=>{QG.init(e,t),ze.init(e,t)}),g3=X("ZodEmoji",(e,t)=>{$G.init(e,t),ze.init(e,t)}),y3=X("ZodNanoID",(e,t)=>{e2.init(e,t),ze.init(e,t)}),b3=X("ZodCUID",(e,t)=>{t2.init(e,t),ze.init(e,t)}),E3=X("ZodCUID2",(e,t)=>{r2.init(e,t),ze.init(e,t)}),x3=X("ZodULID",(e,t)=>{n2.init(e,t),ze.init(e,t)}),O3=X("ZodXID",(e,t)=>{i2.init(e,t),ze.init(e,t)}),w3=X("ZodKSUID",(e,t)=>{a2.init(e,t),ze.init(e,t)}),S3=X("ZodIPv4",(e,t)=>{l2.init(e,t),ze.init(e,t)}),P3=X("ZodIPv6",(e,t)=>{d2.init(e,t),ze.init(e,t)}),T3=X("ZodCIDRv4",(e,t)=>{p2.init(e,t),ze.init(e,t)}),A3=X("ZodCIDRv6",(e,t)=>{f2.init(e,t),ze.init(e,t)}),R3=X("ZodBase64",(e,t)=>{h2.init(e,t),ze.init(e,t)}),M3=X("ZodBase64URL",(e,t)=>{m2.init(e,t),ze.init(e,t)}),I3=X("ZodE164",(e,t)=>{_2.init(e,t),ze.init(e,t)}),C3=X("ZodJWT",(e,t)=>{y2.init(e,t),ze.init(e,t)}),j3=X("ZodUnknown",(e,t)=>{b2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>jW()});function AT(){return pW(j3)}const N3=X("ZodNever",(e,t)=>{E2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>CW(e,r,n)});function q3(e){return fW(N3,e)}const F3=X("ZodArray",(e,t)=>{x2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>kW(e,r,n,o),e.element=t.element,e.min=(r,n)=>e.check(pp(r,n)),e.nonempty=r=>e.check(pp(1,r)),e.max=(r,n)=>e.check(oq(r,n)),e.length=(r,n)=>e.check(sq(r,n)),e.unwrap=()=>e.element});function fq(e,t){return SW(F3,e,t)}const k3=X("ZodObject",(e,t)=>{w2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>DW(e,r,n,o),Ce(e,"shape",()=>t.shape),e.keyof=()=>hq(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:AT()}),e.loose=()=>e.clone({...e._zod.def,catchall:AT()}),e.strict=()=>e.clone({...e._zod.def,catchall:q3()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>JV(e,r),e.safeExtend=r=>QV(e,r),e.merge=r=>$V(e,r),e.pick=r=>YV(e,r),e.omit=r=>XV(e,r),e.partial=(...r)=>eG(vq,e,r[0]),e.required=(...r)=>tG(mq,e,r[0])});function D3(e,t){const r={type:"object",shape:e??{},...ge(t)};return new k3(r)}const L3=X("ZodUnion",(e,t)=>{S2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>LW(e,r,n,o),e.options=t.options});function U3(e,t){return new L3({type:"union",options:e,...ge(t)})}const z3=X("ZodIntersection",(e,t)=>{P2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>UW(e,r,n,o)});function B3(e,t){return new z3({type:"intersection",left:e,right:t})}const lg=X("ZodEnum",(e,t)=>{T2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(n,o,i)=>NW(e,n,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new lg({...t,checks:[],...ge(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new lg({...t,checks:[],...ge(o),entries:i})}});function hq(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new lg({type:"enum",entries:r,...ge(t)})}const H3=X("ZodTransform",(e,t)=>{A2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>FW(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new VN(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(bl(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(bl(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function V3(e){return new H3({type:"transform",transform:e})}const vq=X("ZodOptional",(e,t)=>{aq.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>dq(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function RT(e){return new vq({type:"optional",innerType:e})}const G3=X("ZodExactOptional",(e,t)=>{R2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>dq(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function W3(e){return new G3({type:"optional",innerType:e})}const Z3=X("ZodNullable",(e,t)=>{M2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>zW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function MT(e){return new Z3({type:"nullable",innerType:e})}const K3=X("ZodDefault",(e,t)=>{I2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>HW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Y3(e,t){return new K3({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():KN(t)}})}const X3=X("ZodPrefault",(e,t)=>{C2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>VW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function J3(e,t){return new X3({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():KN(t)}})}const mq=X("ZodNonOptional",(e,t)=>{j2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>BW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function Q3(e,t){return new mq({type:"nonoptional",innerType:e,...ge(t)})}const $3=X("ZodCatch",(e,t)=>{N2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>GW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eZ(e,t){return new $3({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const tZ=X("ZodPipe",(e,t)=>{q2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>WW(e,r,n,o),e.in=t.in,e.out=t.out});function IT(e,t){return new tZ({type:"pipe",in:e,out:t})}const rZ=X("ZodReadonly",(e,t)=>{F2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>ZW(e,r,n,o),e.unwrap=()=>e._zod.def.innerType});function nZ(e){return new rZ({type:"readonly",innerType:e})}const iZ=X("ZodCustom",(e,t)=>{k2.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,n,o)=>qW(e,r)});function aZ(e,t={}){return PW(iZ,e,t)}function oZ(e){return TW(e)}const oi="nestjs-app-config",sZ=fq(hq(["verbose","debug","log","warn","error","fatal"])).default(["log"]),_q=D3({APP_PORT:Mt().transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:"APP_PORT must be a valid number"}).refine(e=>e>0,{message:"APP_PORT must be a positive number"}),LOGGER_PROVIDER:Mt().optional(),LOGGER_LEVELS:Mt().optional().default("verbose,debug,log,warn,error,fatal").transform(e=>e.split(",").map(t=>t.trim())),CORS_ORIGIN:Mt().default("*"),CORS_METHODS:Mt().default("GET,POST,PUT,DELETE,PATCH,OPTIONS").transform(e=>e.split(",").map(t=>t.trim())),CORS_ALLOWED_HEADERS:Mt().default("Content-Type,Authorization").transform(e=>e.split(",").map(t=>t.trim())),CORS_CREDENTIALS:Mt().default("true").transform(e=>e.toLowerCase()==="true"),CORS_MAX_AGE:Mt().default("3600").transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:"CORS_MAX_AGE must be a valid number"}),CORE_API_VERSION:Mt().default("latest"),LOG_LEVELS:Mt().default("verbose,debug,log,warn,error,fatal").transform(e=>{const t=e.split(",");return sZ.parse(t)})}),cZ=e=>op.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[op.registerAs(e,()=>xB(_q))]}),uZ=()=>cZ(oi);var Tt=ve(),Mm={},Im={},lc={},CT;function gq(){if(CT)return lc;CT=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.AbstractHttpAdapter=void 0;class e{constructor(r){this.instance=r}async init(){}use(...r){return this.instance.use(...r)}get(...r){return this.instance.get(...r)}post(...r){return this.instance.post(...r)}head(...r){return this.instance.head(...r)}delete(...r){return this.instance.delete(...r)}put(...r){return this.instance.put(...r)}patch(...r){return this.instance.patch(...r)}propfind(...r){return this.instance.propfind(...r)}proppatch(...r){return this.instance.proppatch(...r)}mkcol(...r){return this.instance.mkcol(...r)}copy(...r){return this.instance.copy(...r)}move(...r){return this.instance.move(...r)}lock(...r){return this.instance.lock(...r)}unlock(...r){return this.instance.unlock(...r)}all(...r){return this.instance.all(...r)}search(...r){return this.instance.search(...r)}options(...r){return this.instance.options(...r)}listen(r,n,o){return this.instance.listen(r,n,o)}getHttpServer(){return this.httpServer}setHttpServer(r){this.httpServer=r}setInstance(r){this.instance=r}getInstance(){return this.instance}normalizePath(r){return r}setOnRouteTriggered(r){this.onRouteTriggered=r}getOnRouteTriggered(){return this.onRouteTriggered}setOnRequestHook(r){}setOnResponseHook(r){}}return lc.AbstractHttpAdapter=e,lc}var jT;function lZ(){return jT||(jT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(gq(),e)})(Im)),Im}var dc={},NT;function _r(){if(NT)return dc;NT=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.ApplicationConfig=void 0;class e{constructor(r=null){this.ioAdapter=r,this.globalPrefix="",this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(r){this.globalPrefix=r}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(r){this.globalPrefixOptions=r}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(r){this.ioAdapter=r}getIoAdapter(){return this.ioAdapter}addGlobalPipe(r){this.globalPipes.push(r)}useGlobalPipes(...r){this.globalPipes=this.globalPipes.concat(r)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(r){this.globalFilters.push(r)}useGlobalFilters(...r){this.globalFilters=this.globalFilters.concat(r)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(r){this.globalInterceptors.push(r)}useGlobalInterceptors(...r){this.globalInterceptors=this.globalInterceptors.concat(r)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(r){this.globalGuards.push(r)}useGlobalGuards(...r){this.globalGuards=this.globalGuards.concat(r)}addGlobalRequestInterceptor(r){this.globalRequestInterceptors.push(r)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(r){this.globalRequestPipes.push(r)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(r){this.globalRequestFilters.push(r)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(r){this.globalRequestGuards.push(r)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(r){Array.isArray(r.defaultVersion)&&(r.defaultVersion=Array.from(new Set(r.defaultVersion))),this.versioningOptions=r}getVersioning(){return this.versioningOptions}}return dc.ApplicationConfig=e,dc}var Cm={},qT;function vi(){return qT||(qT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ENHANCER_TOKEN_TO_SUBTYPE_MAP=e.APP_FILTER=e.APP_GUARD=e.APP_PIPE=e.APP_INTERCEPTOR=e.MESSAGES=void 0,e.MESSAGES={APPLICATION_START:"Starting Nest application...",APPLICATION_READY:"Nest application successfully started",MICROSERVICE_READY:"Nest microservice successfully started",UNKNOWN_EXCEPTION_MESSAGE:"Internal server error",ERROR_DURING_SHUTDOWN:"Error happened during shutdown",CALL_LISTEN_FIRST:"app.listen() needs to be called before calling app.getUrl()"},e.APP_INTERCEPTOR="APP_INTERCEPTOR",e.APP_PIPE="APP_PIPE",e.APP_GUARD="APP_GUARD",e.APP_FILTER="APP_FILTER",e.ENHANCER_TOKEN_TO_SUBTYPE_MAP={[e.APP_GUARD]:"guard",[e.APP_INTERCEPTOR]:"interceptor",[e.APP_PIPE]:"pipe",[e.APP_FILTER]:"filter"}})(Cm)),Cm}var jm={},Yn={},pc={},FT;function Pn(){if(FT)return pc;FT=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.MetadataScanner=void 0;const e=ne();class t{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(n,o,i){if(!o)return[];const s=new Map,a=[];do for(const c of Object.getOwnPropertyNames(o)){if(s.has(c))continue;s.set(c,!0);const u=Object.getOwnPropertyDescriptor(o,c);if(u.set||u.get||(0,e.isConstructor)(c)||!(0,e.isFunction)(o[c]))continue;const p=i(c);(0,e.isNil)(p)||a.push(p)}while((o=Reflect.getPrototypeOf(o))&&o!==Object.prototype);return a}*getAllFilteredMethodNames(n){yield*this.getAllMethodNames(n)}getAllMethodNames(n){if(!n)return[];if(this.cachedScannedPrototypes.has(n))return this.cachedScannedPrototypes.get(n);const o=new Map,i=[];this.cachedScannedPrototypes.set(n,i);do for(const s of Object.getOwnPropertyNames(n)){if(o.has(s))continue;o.set(s,!0);const a=Object.getOwnPropertyDescriptor(n,s);a.set||a.get||(0,e.isConstructor)(s)||!(0,e.isFunction)(n[s])||i.push(s)}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype);return i}}return pc.MetadataScanner=t,pc}var Xn={},fc={},kT;function mi(){if(kT)return fc;kT=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.ModulesContainer=void 0;const e=On(),t=_n();class r extends Map{constructor(){super(...arguments),this._applicationId=(0,t.uid)(21),this._rpcTargetRegistry$=new e.ReplaySubject}get applicationId(){return this._applicationId}getById(o){return Array.from(this.values()).find(i=>i.id===o)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(o){this._rpcTargetRegistry$.next(o)}}return fc.ModulesContainer=r,fc}var hc={},DT;function yq(){if(DT)return hc;DT=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.DiscoverableMetaHostCollection=void 0;class e{static addClassMetaHostLink(r,n){this.metaHostLinks.set(r,n)}static inspectProvider(r,n){return this.inspectInstanceWrapper(r,n,this.providersByMetaKey)}static inspectController(r,n){return this.inspectInstanceWrapper(r,n,this.controllersByMetaKey)}static insertByMetaKey(r,n,o){if(o.has(r))o.get(r).add(n);else{const i=new Set;i.add(n),o.set(r,i)}}static getProvidersByMetaKey(r,n){return this.providersByMetaKey.get(r)?.get(n)??new Set}static getControllersByMetaKey(r,n){return this.controllersByMetaKey.get(r)?.get(n)??new Set}static inspectInstanceWrapper(r,n,o){const i=e.getMetaKeyByInstanceWrapper(n);if(!i)return;let s;o.has(r)?s=o.get(r):(s=new Map,o.set(r,s)),this.insertByMetaKey(i,n,s)}static getMetaKeyByInstanceWrapper(r){return this.metaHostLinks.get(r.metatype||r.inject?r.instance?.constructor??r.metatype:r.metatype)}}return hc.DiscoverableMetaHostCollection=e,e.metaHostLinks=new Map,e.providersByMetaKey=new WeakMap,e.controllersByMetaKey=new WeakMap,hc}var LT;function bq(){if(LT)return Xn;LT=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.DiscoveryService=void 0;const e=ae(),t=ve(),r=_n(),n=mi(),o=yq();let i=class{constructor(a){this.modulesContainer=a}static createDecorator(){const a=(0,r.uid)(21),c=u=>(p,l,d)=>{d||o.DiscoverableMetaHostCollection.addClassMetaHostLink(p,a),(0,t.SetMetadata)(a,u??{})(p,l,d)};return c.KEY=a,c}getProviders(a={},c=this.getModules(a)){if("metadataKey"in a){const p=o.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,a.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.providers.values()]);return(0,t.flatten)(u)}getControllers(a={},c=this.getModules(a)){if("metadataKey"in a){const p=o.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,a.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.controllers.values()]);return(0,t.flatten)(u)}getMetadataByDecorator(a,c,u){if(u)return Reflect.getMetadata(a.KEY,c.instance[u]);const p=c.instance?.constructor??c.metatype;return Reflect.getMetadata(a.KEY,p)}getModules(a={}){return"include"in a?this.includeWhitelisted(a.include):[...this.modulesContainer.values()]}includeWhitelisted(a){return[...this.modulesContainer.values()].filter(({metatype:u})=>a.some(p=>p===u))}};return Xn.DiscoveryService=i,Xn.DiscoveryService=i=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[n.ModulesContainer])],i),Xn}var UT;function dZ(){if(UT)return Yn;UT=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.DiscoveryModule=void 0;const e=ae(),t=ve(),r=Pn(),n=bq();let o=class{};return Yn.DiscoveryModule=o,Yn.DiscoveryModule=o=e.__decorate([(0,t.Module)({providers:[r.MetadataScanner,n.DiscoveryService],exports:[r.MetadataScanner,n.DiscoveryService]})],o),Yn}var zT;function pZ(){return zT||(zT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(dZ(),e),t.__exportStar(bq(),e)})(jm)),jm}var Nm={},vc={},mc={},BT;function Dl(){if(BT)return mc;BT=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.HttpAdapterHost=void 0;const e=On();class t{constructor(){this._listen$=new e.Subject,this._init$=new e.ReplaySubject,this.isListening=!1}set httpAdapter(n){this._httpAdapter=n,this._init$.next(),this._init$.complete()}get httpAdapter(){return this._httpAdapter}get listen$(){return this._listen$.asObservable()}get init$(){return this._init$.asObservable()}set listening(n){this.isListening=n,n&&(this._listen$.next(),this._listen$.complete())}get listening(){return this.isListening}}return mc.HttpAdapterHost=t,mc}var HT;function Eq(){if(HT)return vc;HT=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.BaseExceptionFilter=void 0;const e=ae(),t=ve(),r=ne(),n=vi(),o=Dl();class i{constructor(a){this.applicationRef=a}catch(a,c){const u=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(a instanceof t.HttpException))return this.handleUnknownError(a,c,u);const p=a.getResponse(),l=(0,r.isObject)(p)?p:{statusCode:a.getStatus(),message:p},d=c.getArgByIndex(1);u.isHeadersSent(d)?u.end(d):u.reply(d,l,a.getStatus())}handleUnknownError(a,c,u){const p=this.isHttpError(a)?{statusCode:a.statusCode,message:a.message}:{statusCode:t.HttpStatus.INTERNAL_SERVER_ERROR,message:n.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE},l=c.getArgByIndex(1);u.isHeadersSent(l)?u.end(l):u.reply(l,p,p.statusCode),a instanceof t.IntrinsicException||i.logger.error(a)}isExceptionObject(a){return(0,r.isObject)(a)&&!!a.message}isHttpError(a){return a?.statusCode&&a?.message}}return vc.BaseExceptionFilter=i,i.logger=new t.Logger("ExceptionsHandler"),e.__decorate([(0,t.Optional)(),(0,t.Inject)(),e.__metadata("design:type",o.HttpAdapterHost)],i.prototype,"httpAdapterHost",void 0),vc}var VT;function fZ(){return VT||(VT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(Eq(),e)})(Nm)),Nm}var qm={},Jn={},sn={},GT;function Tn(){return GT||(GT=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.REQUEST_CONTEXT_ID=sn.REQUEST=void 0,sn.REQUEST="REQUEST",sn.REQUEST_CONTEXT_ID=Symbol("REQUEST_CONTEXT_ID")),sn}var WT;function Ll(){if(WT)return Jn;WT=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.ContextIdFactory=void 0,Jn.createContextId=r;const e=ne(),t=Tn();function r(){return{id:Math.random()}}class n{static create(){return r()}static getByRequest(i,s=["raw"]){if(!i)return n.create();if(i[t.REQUEST_CONTEXT_ID])return i[t.REQUEST_CONTEXT_ID];for(const u of s)if(i[u]?.[t.REQUEST_CONTEXT_ID])return i[u][t.REQUEST_CONTEXT_ID];if(!this.strategy)return n.create();const a=r(),c=this.strategy.attach(a,i);return this.isContextIdResolverWithPayload(c)?(a.getParent=c.resolve,a.payload=c.payload):a.getParent=c,a}static apply(i){this.strategy=i}static isContextIdResolverWithPayload(i){return(0,e.isObject)(i)}}return Jn.ContextIdFactory=n,Jn}var _c={},gc={},cn={},ZT;function ot(){if(ZT)return cn;ZT=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.STATIC_CONTEXT=cn.CONTROLLER_ID_KEY=void 0,cn.CONTROLLER_ID_KEY="CONTROLLER_ID";const e=1;return cn.STATIC_CONTEXT=Object.freeze({id:e}),cn}var yc={},bc={},KT;function Up(){if(KT)return bc;KT=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.ContextCreator=void 0;const e=ot();class t{createContext(n,o,i,s=e.STATIC_CONTEXT,a){const c=this.getGlobalMetadata&&this.getGlobalMetadata(s,a),u=this.reflectClassMetadata(n,i),p=this.reflectMethodMetadata(o,i);return[...this.createConcreteContext(c||[],s,a),...this.createConcreteContext(u,s,a),...this.createConcreteContext(p,s,a)]}reflectClassMetadata(n,o){const i=Object.getPrototypeOf(n);return Reflect.getMetadata(o,i.constructor)}reflectMethodMetadata(n,o){return Reflect.getMetadata(o,n)}getContextId(n,o){return n.getParent?n.getParent({token:o.token,isTreeDurable:o.isDependencyTreeDurable()}):n}}return bc.ContextCreator=t,bc}var YT;function xq(){if(YT)return yc;YT=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.BaseExceptionFilterContext=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a){super(),this.container=a}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&((0,t.isFunction)(p.catch)||p.name)).map(p=>this.getFilterInstance(p,c,u)).filter(p=>!!p).map(p=>({func:p.catch.bind(p),exceptionMetatypes:this.reflectCatchExceptions(p)})).toArray()}getFilterInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.catch)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(a)}reflectCatchExceptions(a){const c=Object.getPrototypeOf(a);return Reflect.getMetadata(e.FILTER_CATCH_EXCEPTIONS,c.constructor)||[]}}return yc.BaseExceptionFilterContext=i,yc}var Ec={},xc={},XT;function Oq(){if(XT)return xc;XT=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.selectExceptionFilterMetadata=void 0;const e=(t,r)=>t.find(({exceptionMetatypes:n})=>!n.length||n.some(o=>r instanceof o));return xc.selectExceptionFilterMetadata=e,xc}var Oc={},wc={},JT;function et(){if(JT)return wc;JT=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.RuntimeException=void 0;class e extends Error{constructor(r=""){super(r)}what(){return this.message}}return wc.RuntimeException=e,wc}var Ae={},QT;function Ot(){if(QT)return Ae;QT=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=Ae.INVALID_EXCEPTION_FILTER=Ae.UNHANDLED_RUNTIME_EXCEPTION=Ae.INVALID_MIDDLEWARE_CONFIGURATION=Ae.UNKNOWN_REQUEST_MAPPING=Ae.INVALID_CLASS_SCOPE_MESSAGE=Ae.INVALID_CLASS_MESSAGE=Ae.UNKNOWN_EXPORT_MESSAGE=Ae.UNDEFINED_MODULE_MESSAGE=Ae.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=Ae.INVALID_MODULE_MESSAGE=Ae.UNDEFINED_FORWARDREF_MESSAGE=Ae.INVALID_MIDDLEWARE_MESSAGE=Ae.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;const e=ne(),t=m=>m?.forwardRef?m.forwardRef()?.name:m?.module?m.module?.name:m?.name,r=(m,v,_=!0)=>t(m)||(0,e.isSymbol)(m)&&m.toString()||(m?_?`"${m}"`:m:void 0)||v,n=m=>m&&t(m.metatype)||"current",o=m=>(m||[]).map(t).join(" -> "),i=(m,v,_)=>{const{index:g,name:y,dependencies:b,key:E}=v,x=n(_),O=r(y,"dependency"),S=!(0,e.isNil)(g)&&b&&(b[g]===void 0||b[g]===Object||typeof b[g]=="function"&&b[g].name==="Object");let w;S?w=`
|
|
87
87
|
|
|
88
88
|
Potential solutions:
|
|
89
89
|
- The dependency at index [${g}] appears to be undefined at runtime
|
|
@@ -113,7 +113,7 @@ Potential solutions:
|
|
|
113
113
|
imports: [ /* the Module containing ${O} */ ]
|
|
114
114
|
})
|
|
115
115
|
|
|
116
|
-
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`;let A=`Nest can't resolve dependencies of the ${m.toString()}`;if((0,e.isNil)(g))return A+=`. Please make sure that the "${E.toString()}" property is available in the current context.${w}`,A;const
|
|
116
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`;let A=`Nest can't resolve dependencies of the ${m.toString()}`;if((0,e.isNil)(g))return A+=`. Please make sure that the "${E.toString()}" property is available in the current context.${w}`,A;const P=(b||[]).map(D=>r(D,"+",!1));P[g]="?";const T=!S&&y!==void 0?` ${O}`:"",q=S?"current":x;return A+=" (",A+=P.join(", "),A+=`). Please make sure that the argument${T} at index [${g}]`,A+=` is available in the ${q} module.`,A+=w,A};Ae.UNKNOWN_DEPENDENCIES_MESSAGE=i;const s=(m,v)=>`The middleware doesn't provide the 'use' method (${v})`;Ae.INVALID_MIDDLEWARE_MESSAGE=s;const a=m=>`Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it.
|
|
117
117
|
|
|
118
118
|
(Read more: https://docs.nestjs.com/fundamentals/circular-dependency)
|
|
119
119
|
Scope [${o(m)}]
|
|
@@ -137,34 +137,34 @@ Possible Solutions:
|
|
|
137
137
|
- Is ${m} part of the relevant providers/imports within ${v}?
|
|
138
138
|
|
|
139
139
|
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors
|
|
140
|
-
`);Ae.UNKNOWN_EXPORT_MESSAGE=l;const d=(m,v)=>`ModuleRef cannot instantiate class (${v} is not constructable).`;Ae.INVALID_CLASS_MESSAGE=d;const f=(m,v)=>`${v||"This class"} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`;Ae.INVALID_CLASS_SCOPE_MESSAGE=f;const h=m=>{const v=m.name;return v?`An invalid controller has been detected. "${v}" does not have the @Controller() decorator but it is being listed in the "controllers" array of some module.`:"An invalid controller has been detected. Perhaps, one of your controllers is missing the @Controller() decorator."};return Ae.UNKNOWN_REQUEST_MAPPING=h,Ae.INVALID_MIDDLEWARE_CONFIGURATION="An invalid middleware configuration has been passed inside the module 'configure()' method.",Ae.UNHANDLED_RUNTIME_EXCEPTION="Unhandled Runtime Exception.",Ae.INVALID_EXCEPTION_FILTER="Invalid exception filters (@UseFilters()).",Ae.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION="Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)",Ae}var tA;function AN(){if(tA)return wc;tA=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.InvalidExceptionFilterException=void 0;const e=et(),t=Ot();class r extends e.RuntimeException{constructor(){super(t.INVALID_EXCEPTION_FILTER)}}return wc.InvalidExceptionFilterException=r,wc}var Tc={},rA;function yZ(){if(rA)return Tc;rA=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.ExternalExceptionFilter=void 0;const e=ve();class t{catch(n,o){throw n instanceof Error&&!(n instanceof e.IntrinsicException)&&t.logger.error(n),n}}return Tc.ExternalExceptionFilter=t,t.logger=new e.Logger("ExceptionsHandler"),Tc}var nA;function bZ(){if(nA)return xc;nA=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.ExternalExceptionsHandler=void 0;const e=PN(),t=ne(),r=AN(),n=yZ();class o extends n.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,a){const c=this.invokeCustomFilters(s,a);return c||super.catch(s,a)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,a){if((0,t.isEmpty)(this.filters))return null;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c?c.func(s,a):null}}return xc.ExternalExceptionsHandler=o,xc}var iA;function EZ(){if(iA)return yc;iA=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.ExternalExceptionFilterContext=void 0;const e=xe(),t=ne(),r=Ve(),n=ot(),o=TN(),i=bZ();class s extends o.BaseExceptionFilterContext{constructor(c,u){super(c),this.config=u}create(c,u,p,l=n.STATIC_CONTEXT,d){this.moduleContext=p;const f=new i.ExternalExceptionsHandler,h=this.createContext(c,u,e.EXCEPTION_FILTERS_METADATA,l,d);return(0,t.isEmpty)(h)||f.setCustomFilters(h.reverse()),f}getGlobalMetadata(c=n.STATIC_CONTEXT,u){if(!this.config)return[];const p=this.config.getGlobalFilters();if(c===n.STATIC_CONTEXT&&!u)return p;const l=this.config.getGlobalRequestFilters(),d=(0,r.iterate)(l).map(f=>f.getInstanceByContextId(c,u)).filter(f=>!!f).map(f=>f.instance).toArray();return p.concat(d)}}return yc.ExternalExceptionFilterContext=s,yc}var Fm={},Pc={},aA;function RN(){return aA||(aA=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.FORBIDDEN_MESSAGE=void 0,Pc.FORBIDDEN_MESSAGE="Forbidden resource"),Pc}var Ac={},Rc={},oA;function An(){if(oA)return Rc;oA=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.ExecutionContextHost=void 0;class e{constructor(r,n=null,o=null){this.args=r,this.constructorRef=n,this.handler=o,this.contextType="http"}setType(r){r&&(this.contextType=r)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(r){return this.args[r]}switchToRpc(){return Object.assign(this,{getData:()=>this.getArgByIndex(0),getContext:()=>this.getArgByIndex(1)})}switchToHttp(){return Object.assign(this,{getRequest:()=>this.getArgByIndex(0),getResponse:()=>this.getArgByIndex(1),getNext:()=>this.getArgByIndex(2)})}switchToWs(){return Object.assign(this,{getClient:()=>this.getArgByIndex(0),getData:()=>this.getArgByIndex(1),getPattern:()=>this.getArgByIndex(this.getArgs().length-1)})}}return Rc.ExecutionContextHost=e,Rc}var sA;function xZ(){if(sA)return Ac;sA=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.GuardsConsumer=void 0;const e=ne(),t=On(),r=An();class n{async tryActivate(i,s,a,c,u){if(!i||(0,e.isEmpty)(i))return!0;const p=this.createContext(s,a,c);p.setType(u);for(const l of i){const d=l.canActivate(p);if(typeof d=="boolean"){if(!d)return!1;continue}if(!await this.pickResult(d))return!1}return!0}createContext(i,s,a){return new r.ExecutionContextHost(i,s.constructor,a)}async pickResult(i){return i instanceof t.Observable?(0,t.lastValueFrom)(i):i}}return Ac.GuardsConsumer=n,Ac}var Mc={},cA;function OZ(){if(cA)return Mc;cA=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.GuardsContextCreator=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a,c){super(),this.container=a,this.config=c}create(a,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(a,c,e.GUARDS_METADATA,p,l)}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&(p.name||p.canActivate)).map(p=>this.getGuardInstance(p,c,u)).filter(p=>!!p&&(0,t.isFunction)(p.canActivate)).toArray()}getGuardInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.canActivate)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);return u?u.injectables.get(a):void 0}getGlobalMetadata(a=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalGuards();if(a===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestGuards(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(a,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Mc.GuardsContextCreator=i,Mc}var uA;function by(){return uA||(uA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(RN(),e),t.__exportStar(xZ(),e),t.__exportStar(OZ(),e)})(Fm)),Fm}var km={},Ic={},lA;function wZ(){if(lA)return Ic;lA=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.InterceptorsConsumer=void 0;const e=ne(),t=Ak,r=On(),n=Yg(),o=An();class i{async intercept(a,c,u,p,l,d){if((0,e.isEmpty)(a))return l();const f=this.createContext(c,u,p);f.setType(d);const h=async(m=0)=>{if(m>=a.length)return(0,r.defer)(t.AsyncResource.bind(()=>this.transformDeferred(l)));const v={handle:()=>(0,r.defer)(t.AsyncResource.bind(()=>h(m+1))).pipe((0,n.mergeAll)())};return a[m].intercept(f,v)};return(0,r.defer)(()=>h()).pipe((0,n.mergeAll)())}createContext(a,c,u){return new o.ExecutionContextHost(a,c.constructor,u)}transformDeferred(a){return(0,r.from)(a()).pipe((0,n.switchMap)(c=>c instanceof Promise||c instanceof r.Observable?c:Promise.resolve(c)))}}return Ic.InterceptorsConsumer=i,Ic}var Cc={},dA;function SZ(){if(dA)return Cc;dA=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.InterceptorsContextCreator=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a,c){super(),this.container=a,this.config=c}create(a,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(a,c,e.INTERCEPTORS_METADATA,p,l)}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&(p.name||p.intercept)).map(p=>this.getInterceptorInstance(p,c,u)).filter(p=>p?(0,t.isFunction)(p.intercept):!1).toArray()}getInterceptorInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.intercept)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(a)}getGlobalMetadata(a=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalInterceptors();if(a===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestInterceptors(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(a,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Cc.InterceptorsContextCreator=i,Cc}var pA;function MN(){return pA||(pA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(wZ(),e),t.__exportStar(SZ(),e)})(km)),km}var Dm={},jc={},fA;function IN(){if(fA)return jc;fA=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.ParamsTokenFactory=void 0;const e=yp();class t{exchangeEnumForString(n){switch(n){case e.RouteParamtypes.BODY:return"body";case e.RouteParamtypes.PARAM:return"param";case e.RouteParamtypes.QUERY:return"query";default:return"custom"}}}return jc.ParamsTokenFactory=t,jc}var qc={},hA;function TZ(){if(hA)return qc;hA=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.PipesConsumer=void 0;const e=IN();class t{constructor(){this.paramsTokenFactory=new e.ParamsTokenFactory}async apply(n,{metatype:o,type:i,data:s},a){const c=this.paramsTokenFactory.exchangeEnumForString(i);return this.applyPipes(n,{metatype:o,type:c,data:s},a)}async applyPipes(n,{metatype:o,type:i,data:s},a){return a.reduce(async(c,u)=>{const p=await c;return u.transform(p,{metatype:o,type:i,data:s})},Promise.resolve(n))}}return qc.PipesConsumer=t,qc}var Nc={},vA;function PZ(){if(vA)return Nc;vA=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.PipesContextCreator=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a,c){super(),this.container=a,this.config=c}create(a,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(a,c,e.PIPES_METADATA,p,l)}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&(p.name||p.transform)).map(p=>this.getPipeInstance(p,c,u)).filter(p=>!!p&&p.transform&&(0,t.isFunction)(p.transform)).toArray()}getPipeInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.transform)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(a)}getGlobalMetadata(a=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalPipes();if(a===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestPipes(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(a,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}setModuleContext(a){this.moduleContext=a}}return Nc.PipesContextCreator=i,Nc}var mA;function CN(){return mA||(mA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(IN(),e),t.__exportStar(TZ(),e),t.__exportStar(PZ(),e)})(Dm)),Dm}var Fc={},_A;function jN(){if(_A)return Fc;_A=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.ContextUtils=void 0;const e=xe(),t=ne(),r=An();class n{mapParamType(i){return i.split(":")[0]}reflectCallbackParamtypes(i,s){return Reflect.getMetadata(e.PARAMTYPES_METADATA,i,s)}reflectCallbackMetadata(i,s,a){return Reflect.getMetadata(a,i.constructor,s)}reflectPassthrough(i,s){return Reflect.getMetadata(e.RESPONSE_PASSTHROUGH_METADATA,i.constructor,s)}getArgumentsLength(i,s){return i.length?Math.max(...i.map(a=>s[a].index))+1:0}createNullArray(i){const s=new Array(i);for(let a=0;a<i;++a)s[a]=void 0;return s}mergeParamsMetatypes(i,s){return s?i.map(a=>({...a,metatype:s[a.index]})):i}getCustomFactory(i,s,a){return(0,t.isFunction)(i)?(...c)=>i(s,a(c)):()=>null}getContextFactory(i,s,a){const c=s&&s.constructor;return u=>{const p=new r.ExecutionContextHost(u,c,a);return p.setType(i),p}}}return Fc.ContextUtils=n,Fc}var kc={},gA;function AZ(){if(gA)return kc;gA=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.ExternalErrorProxy=void 0;const e=An();class t{createProxy(n,o,i){return async(...s)=>{try{return await n(...s)}catch(a){const c=new e.ExecutionContextHost(s);return c.setType(i),o.next(a,c)}}}}return kc.ExternalErrorProxy=t,kc}var Lm={},yA;function qN(){return yA||(yA=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;const r=ot();e.HANDLER_METADATA_SYMBOL=Symbol.for("handler_metadata:cache");class n{constructor(){this[t]=new Map}set(i,s,a){const c=this.getMetadataKey(i,s);this[e.HANDLER_METADATA_SYMBOL].set(c,a)}get(i,s){const a=this.getMetadataKey(i,s);return this[e.HANDLER_METADATA_SYMBOL].get(a)}getMetadataKey(i,s){const a=i.constructor;return(a&&(a[r.CONTROLLER_ID_KEY]||a.name))+s}}e.HandlerMetadataStorage=n,t=e.HANDLER_METADATA_SYMBOL})(Lm)),Lm}var bA;function Ey(){if(bA)return gc;bA=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.ExternalContextCreator=void 0;const e=ve(),t=xe(),r=ne(),n=On(),o=EZ(),i=by(),s=RN(),a=ot(),c=MN(),u=CN(),p=jN(),l=AZ(),d=qN();class f{constructor(m,v,_,g,y,b,E,x){this.guardsContextCreator=m,this.guardsConsumer=v,this.interceptorsContextCreator=_,this.interceptorsConsumer=g,this.modulesContainer=y,this.pipesContextCreator=b,this.pipesConsumer=E,this.filtersContextCreator=x,this.contextUtils=new p.ContextUtils,this.externalErrorProxy=new l.ExternalErrorProxy,this.handlerMetadataStorage=new d.HandlerMetadataStorage}static fromContainer(m){const v=new i.GuardsContextCreator(m,m.applicationConfig),_=new i.GuardsConsumer,g=new c.InterceptorsContextCreator(m,m.applicationConfig),y=new c.InterceptorsConsumer,b=new u.PipesContextCreator(m,m.applicationConfig),E=new u.PipesConsumer,x=new o.ExternalExceptionFilterContext(m,m.applicationConfig),O=new f(v,_,g,y,m.getModules(),b,E,x);return O.container=m,O}create(m,v,_,g,y,b=a.STATIC_CONTEXT,E,x={interceptors:!0,guards:!0,filters:!0},O="http"){const S=this.getContextModuleKey(m.constructor),{argsLength:w,paramtypes:A,getParamsMetadata:T}=this.getMetadata(m,_,g,y,O),P=this.pipesContextCreator.create(m,v,S,b,E),N=this.guardsContextCreator.create(m,v,S,b,E),D=this.filtersContextCreator.create(m,v,S,b,E),V=x.interceptors?this.interceptorsContextCreator.create(m,v,S,b,E):[],F=T(S,b,E),k=F?this.contextUtils.mergeParamsMetatypes(F,A):[],Z=x.guards?this.createGuardsFn(N,m,v,O):null,J=this.createPipesFn(P,k),U=(C,...q)=>async()=>J?(await J(C,...q),v.apply(m,C)):v.apply(m,q),$=async(...C)=>{const q=this.contextUtils.createNullArray(w);Z&&await Z(C);const L=await this.interceptorsConsumer.intercept(V,C,m,v,U(q,...C),O);return this.transformToResult(L)};return x.filters?this.externalErrorProxy.createProxy($,D,O):$}getMetadata(m,v,_,g,y){const b=this.handlerMetadataStorage.get(m,v);if(b)return b;const E=this.contextUtils.reflectCallbackMetadata(m,v,_||"")||{},x=Object.keys(E),O=this.contextUtils.getArgumentsLength(x,E),S=this.contextUtils.reflectCallbackParamtypes(m,v),w=this.contextUtils.getContextFactory(y,m,m[v]),T={argsLength:O,paramtypes:S,getParamsMetadata:(P,N=a.STATIC_CONTEXT,D)=>g?this.exchangeKeysForValues(x,E,P,g,N,D,w):null};return this.handlerMetadataStorage.set(m,v,T),T}getContextModuleKey(m){if(!m)return"";const _=this.modulesContainer.entries();for(const[g,y]of _)if(y.hasProvider(m))return g;return""}exchangeKeysForValues(m,v,_,g,y=a.STATIC_CONTEXT,b,E=this.contextUtils.getContextFactory("http")){return this.pipesContextCreator.setModuleContext(_),m.map(x=>{const{index:O,data:S,pipes:w}=v[x],A=this.pipesContextCreator.createConcreteContext(w,y,b),T=this.contextUtils.mapParamType(x);if(x.includes(t.CUSTOM_ROUTE_ARGS_METADATA)){const{factory:D}=v[x],V=this.contextUtils.getCustomFactory(D,S,E);return{index:O,extractValue:V,type:T,data:S,pipes:A}}const P=Number(T);return{index:O,extractValue:(...D)=>g.exchangeKeyForValue(P,S,D),type:P,data:S,pipes:A}})}createPipesFn(m,v){const _=async(g,...y)=>{const b=async E=>{const{index:x,extractValue:O,type:S,data:w,metatype:A,pipes:T}=E,P=O(...y);g[x]=await this.getParamValue(P,{metatype:A,type:S,data:w},m.concat(T))};await Promise.all(v.map(b))};return v.length?_:null}async getParamValue(m,{metatype:v,type:_,data:g},y){return(0,r.isEmpty)(y)?m:this.pipesConsumer.apply(m,{metatype:v,type:_,data:g},y)}async transformToResult(m){return(0,n.isObservable)(m)?(0,n.lastValueFrom)(m):m}createGuardsFn(m,v,_,g){const y=async b=>{if(!await this.guardsConsumer.tryActivate(m,b,v,_,g))throw new e.ForbiddenException(s.FORBIDDEN_MESSAGE)};return m.length?y:null}registerRequestProvider(m,v){this.container.registerRequestProvider(m,v)}}return gc.ExternalContextCreator=f,gc}var EA;function RZ(){return EA||(EA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Ll(),e),t.__exportStar(Ey(),e),t.__exportStar(Dl(),e)})(Nm)),Nm}var Um={},Dc={},zm={},Lc={},xA;function NN(){if(xA)return Lc;xA=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.CircularDependencyException=void 0;const e=et();class t extends e.RuntimeException{constructor(n){const o=n?` inside ${n}`:"";super(`A circular dependency has been detected${o}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()". Note that circular relationships between custom providers (e.g., factories) are not supported since functions cannot be called more than once.`)}}return Lc.CircularDependencyException=t,Lc}var Uc={},OA;function FN(){if(OA)return Uc;OA=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.UnknownElementException=void 0;const e=et();class t extends e.RuntimeException{constructor(n){n=n&&n.toString(),super(`Nest could not find ${n||"given"} element (this provider does not exist in the current context)`)}}return Uc.UnknownElementException=t,Uc}var zc={},wA;function MZ(){if(wA)return zc;wA=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.InvalidClassScopeException=void 0;const e=ne(),t=Ot(),r=et();class n extends r.RuntimeException{constructor(i){let s=(0,e.isFunction)(i)?i.name:i;s=s&&s.toString(),super((0,t.INVALID_CLASS_SCOPE_MESSAGE)`${s}`)}}return zc.InvalidClassScopeException=n,zc}var Bc={},SA;function IZ(){if(SA)return Bc;SA=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.InvalidClassException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.INVALID_CLASS_MESSAGE)`${o}`)}}return Bc.InvalidClassException=r,Bc}var Hc={},TA;function CZ(){if(TA)return Hc;TA=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.UnknownExportException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i){super((0,e.UNKNOWN_EXPORT_MESSAGE)(o,i))}}return Hc.UnknownExportException=r,Hc}var Vc={},PA;function jZ(){if(PA)return Vc;PA=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.UnknownModuleException=void 0;const e=et();class t extends e.RuntimeException{constructor(n){super(`Nest could not select the given module (${n?`"${n}"`:"it"} does not exist in current context).`)}}return Vc.UnknownModuleException=t,Vc}var Gc={},AA;function qZ(){if(AA)return Gc;AA=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.UndefinedForwardRefException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.UNDEFINED_FORWARDREF_MESSAGE)(o))}}return Gc.UndefinedForwardRefException=r,Gc}var RA;function Ul(){return RA||(RA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(NN(),e),t.__exportStar(et(),e),t.__exportStar(FN(),e),t.__exportStar(MZ(),e),t.__exportStar(IZ(),e),t.__exportStar(CZ(),e),t.__exportStar(jZ(),e),t.__exportStar(qZ(),e)})(zm)),zm}var Wc={},MA;function xy(){if(MA)return Wc;MA=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.InitializeOnPreviewAllowlist=void 0;class e{static add(r){this.allowlist.set(r,!0)}static has(r){return this.allowlist.has(r)}}return Wc.InitializeOnPreviewAllowlist=e,e.allowlist=new WeakMap,Wc}var Zc={},Kc={},IA;function Oy(){return IA||(IA=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.INQUIRER=void 0,Kc.INQUIRER="INQUIRER"),Kc}var Yc={},Xc={},CA;function NZ(){if(CA)return Xc;CA=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.SilentLogger=void 0;const e=ve(),t=()=>{};class r extends e.Logger{constructor(){super(...arguments),this.log=t,this.error=t,this.warn=t,this.debug=t,this.verbose=t,this.fatal=t,this.setLogLevels=t}}return Xc.SilentLogger=r,Xc}var Jc={},qd={},jA;function zp(){if(jA)return qd;jA=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.getClassScope=t;const e=xe();function t(r){const n=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return n&&n.scope}return qd}var Nd={},qA;function wy(){if(qA)return Nd;qA=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.isDurable=t;const e=xe();function t(r){const n=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return n&&n.durable}return Nd}var Qc={},NA;function kN(){if(NA)return Qc;NA=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.AbstractInstanceResolver=void 0;const e=ve(),t=Ul();class r{find(o,i){const s=this.instanceLinksHost.get(o,i),a=({wrapperRef:c})=>{if(c.scope===e.Scope.REQUEST||c.scope===e.Scope.TRANSIENT||!c.isDependencyTreeStatic())throw new t.InvalidClassScopeException(o);return c.instance};return Array.isArray(s)?s.map(a):a(s)}async resolvePerContext(o,i,s,a){const c=a?.strict?this.instanceLinksHost.get(o,{moduleId:i.id,each:a.each}):this.instanceLinksHost.get(o,{each:a?.each}),u=async p=>{const{wrapperRef:l,collection:d}=p;if(l.isDependencyTreeStatic()&&!l.isTransient)return l.instance;const f=l.instance||{constructor:o},h=await this.injector.loadPerContext(f,l.host,d,s,l);if(!h)throw new t.UnknownElementException;return h};return Array.isArray(c)?Promise.all(c.map(p=>u(p))):u(c)}}return Qc.AbstractInstanceResolver=r,Qc}var $c={},eu={},FA;function FZ(){if(FA)return eu;FA=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.UndefinedDependencyException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i,s){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(o,i,s))}}return eu.UndefinedDependencyException=r,eu}var tu={},kA;function DN(){if(kA)return tu;kA=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.UnknownDependenciesException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i,s,a){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(o,i,s)),this.type=o,this.context=i,this.metadata=a,this.moduleRef=s&&{id:s.id}}}return tu.UnknownDependenciesException=r,tu}var ru={},DA;function kZ(){if(DA)return ru;DA=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.Barrier=void 0;class e{constructor(r){this.currentCount=0,this.targetCount=r,this.promise=new Promise(n=>{this.resolve=n})}signal(){this.currentCount+=1,this.currentCount===this.targetCount&&this.resolve()}async wait(){return this.promise}async signalAndWait(){return this.signal(),this.wait()}}return ru.Barrier=e,ru}var Bm={},LA;function LN(){return LA||(LA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(Oy(),e)})(Bm)),Bm}var Hm={},un={},nu={},UA;function Sy(){if(UA)return nu;UA=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.DeterministicUuidRegistry=void 0;class e{static get(r,n=0){const o=n?this.hashCode(`${r}_${n}`):this.hashCode(r);return this.registry.has(o)?this.get(r,n+1):(this.registry.set(o,!0),o)}static clear(){this.registry.clear()}static hashCode(r){let n=0;for(let o=0;o<r.length;o++)n=Math.imul(31,n)+r.charCodeAt(o)|0;return n.toString()}}return nu.DeterministicUuidRegistry=e,e.registry=new Map,nu}var zA;function zl(){if(zA)return un;zA=1,Object.defineProperty(un,"__esModule",{value:!0}),un.UuidFactory=un.UuidFactoryMode=void 0;const e=sr(),t=Sy();var r;(function(o){o.Random="random",o.Deterministic="deterministic"})(r||(un.UuidFactoryMode=r={}));class n{static set mode(i){this._mode=i}static get(i=""){return this._mode===r.Deterministic?t.DeterministicUuidRegistry.get(i):(0,e.randomStringGenerator)()}}return un.UuidFactory=n,n._mode=r.Random,un}var Qn={},BA;function DZ(){if(BA)return Qn;BA=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.isClassProvider=t,Qn.isValueProvider=r,Qn.isFactoryProvider=n;const e=ne();function t(o){return!!o?.useClass}function r(o){const i=o?.useValue;return!(0,e.isUndefined)(i)}function n(o){return!!o.useFactory}return Qn}var HA;function Bl(){return HA||(HA=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.InstanceWrapper=e.INSTANCE_ID_SYMBOL=e.INSTANCE_METADATA_SYMBOL=void 0;const r=ve(),n=or(),o=sr(),i=ne(),s=Ve(),a=zl(),c=ot(),u=DZ();e.INSTANCE_METADATA_SYMBOL=Symbol.for("instance_metadata:cache"),e.INSTANCE_ID_SYMBOL=Symbol.for("instance_metadata:id");class p{constructor(d={}){this.isAlias=!1,this.scope=r.Scope.DEFAULT,this.values=new WeakMap,this[t]={},this.initialize(d),this[e.INSTANCE_ID_SYMBOL]=d[e.INSTANCE_ID_SYMBOL]??this.generateUuid()}get id(){return this[e.INSTANCE_ID_SYMBOL]}set instance(d){this.values.set(c.STATIC_CONTEXT,{instance:d})}get instance(){return this.getInstanceByContextId(c.STATIC_CONTEXT).instance}get isNotMetatype(){return!this.metatype||this.isFactory}get isFactory(){return!!this.metatype&&!(0,i.isNil)(this.inject)}get isTransient(){return this.scope===r.Scope.TRANSIENT}getInstanceByContextId(d,f){if(this.scope===r.Scope.TRANSIENT&&f)return this.getInstanceByInquirerId(d,f);const h=this.values.get(d);return h||(d!==c.STATIC_CONTEXT?this.cloneStaticInstance(d):{instance:null,isResolved:!0,isPending:!1})}getInstanceByInquirerId(d,f){let h=this.transientMap.get(f);h||(h=new WeakMap,this.transientMap.set(f,h));const m=h.get(d);return m||this.cloneTransientInstance(d,f)}setInstanceByContextId(d,f,h){if(this.scope===r.Scope.TRANSIENT&&h)return this.setInstanceByInquirerId(d,h,f);this.values.set(d,f)}setInstanceByInquirerId(d,f,h){let m=this.transientMap.get(f);m||(m=new WeakMap,this.transientMap.set(f,m)),m.set(d,h)}removeInstanceByContextId(d,f){if(this.scope===r.Scope.TRANSIENT&&f)return this.removeInstanceByInquirerId(d,f);this.values.delete(d)}removeInstanceByInquirerId(d,f){const h=this.transientMap.get(f);h&&h.delete(d)}addCtorMetadata(d,f){this[e.INSTANCE_METADATA_SYMBOL].dependencies||(this[e.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[e.INSTANCE_METADATA_SYMBOL].dependencies[d]=f}getCtorMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(d,f){this[e.INSTANCE_METADATA_SYMBOL].properties||(this[e.INSTANCE_METADATA_SYMBOL].properties=[]),this[e.INSTANCE_METADATA_SYMBOL].properties.push({key:d,wrapper:f})}getPropertiesMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(d){this[e.INSTANCE_METADATA_SYMBOL].enhancers||(this[e.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[e.INSTANCE_METADATA_SYMBOL].enhancers.push(d)}getEnhancersMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeDurable(d=[]){if(!(0,i.isUndefined)(this.isTreeDurable))return this.isTreeDurable;if(this.scope===r.Scope.REQUEST)return this.isTreeDurable=this.durable===void 0?!1:this.durable,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable;if(this.isDependencyTreeStatic())return!1;const h=this.introspectDepsAttribute((m,v)=>m.some(_=>!_.isDependencyTreeStatic()&&!_.isDependencyTreeDurable(v)),d);return this.isTreeDurable=!h,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable}introspectDepsAttribute(d,f=[]){if(f.includes(this[e.INSTANCE_ID_SYMBOL]))return!1;f=f.concat(this[e.INSTANCE_ID_SYMBOL]);const{dependencies:h,properties:m,enhancers:v}=this[e.INSTANCE_METADATA_SYMBOL];let _=h?d(h,f):!1;return _||!(m||v)||(_=m?d(m.map(g=>g.wrapper),f):!1,_||!v)?_:v?d(v,f):!1}isDependencyTreeStatic(d=[]){return(0,i.isUndefined)(this.isTreeStatic)?this.scope===r.Scope.REQUEST?(this.isTreeStatic=!1,this.printIntrospectedAsRequestScoped(),this.isTreeStatic):(this.isTreeStatic=!this.introspectDepsAttribute((f,h)=>f.some(m=>!m.isDependencyTreeStatic(h)),d),this.isTreeStatic||this.printIntrospectedAsRequestScoped(),this.isTreeStatic):this.isTreeStatic}cloneStaticInstance(d){const f=this.getInstanceByContextId(c.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return f;const h={...f,instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(h.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(d,h),h}cloneTransientInstance(d,f){const m={...this.getInstanceByContextId(c.STATIC_CONTEXT),instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(m.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(d,f,m),m}createPrototype(d){const f=this.getInstanceByContextId(d);if(!(!this.isNewable()||f.isResolved))return Object.create(this.metatype.prototype)}isInRequestScope(d,f){return!this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!f)}isLazyTransient(d,f){const h=!!(f&&!f.isDependencyTreeStatic());return this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&this.isTransient&&h}isExplicitlyRequested(d,f){const h=f===this;return this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&(h||!!(f&&f.scope===r.Scope.TRANSIENT))}isStatic(d,f){if(!this.isDependencyTreeStatic()||d!==c.STATIC_CONTEXT)return!1;if(!this.isTransient)return!0;const h=f&&!f.isDependencyTreeStatic(),m=this.isTransient&&!h,v=f?.getRootInquirer();return!!(m&&f&&!f.isTransient||m&&v&&!v.isTransient||m&&f?.isTransient&&!v)}attachRootInquirer(d){this.isTransient&&(this.rootInquirer=d.getRootInquirer()??d)}getRootInquirer(){return this.rootInquirer}getStaticTransientInstances(){if(!this.transientMap)return[];const d=[...this.transientMap.values()];return(0,s.iterate)(d).map(f=>f.get(c.STATIC_CONTEXT)).filter(f=>!!(f&&f.isConstructorCalled)).toArray()}mergeWith(d){(0,u.isValueProvider)(d)?(this.metatype=null,this.inject=null,this.scope=r.Scope.DEFAULT,this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:d.useValue,isResolved:!0,isPending:!1})):(0,u.isClassProvider)(d)?(this.inject=null,this.metatype=d.useClass):(0,u.isFactoryProvider)(d)&&(this.metatype=d.useFactory,this.inject=d.inject||[])}isNewable(){return(0,i.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}initialize(d){const{instance:f,isResolved:h,...m}=d;Object.assign(this,m),this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:f,isResolved:h}),this.scope===r.Scope.TRANSIENT&&(this.transientMap=new Map)}printIntrospectedAsRequestScoped(){!this.isDebugMode()||this.name==="REQUEST"||(0,i.isString)(this.name)&&p.logger.log(`${n.clc.cyanBright(this.name)}${n.clc.green(" introspected as ")}${n.clc.magentaBright("request-scoped")}`)}printIntrospectedAsDurable(){this.isDebugMode()&&(0,i.isString)(this.name)&&p.logger.log(`${n.clc.cyanBright(this.name)}${n.clc.green(" introspected as ")}${n.clc.magentaBright("durable")}`)}isDebugMode(){return!!process.env.NEST_DEBUG}generateUuid(){let d=this.name?.toString()??this.token?.toString();return d+=this.host?.name??"",d?a.UuidFactory.get(d):(0,o.randomStringGenerator)()}}e.InstanceWrapper=p,t=e.INSTANCE_METADATA_SYMBOL,p.logger=new r.Logger(p.name)})(Hm)),Hm}var iu={},VA;function LZ(){if(VA)return iu;VA=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.SettlementSignal=void 0;class e{constructor(){this._refs=new Set,this.completed=!1,this.settledPromise=new Promise(r=>{this.settleFn=r})}complete(){this.completed=!0,this.settleFn()}error(r){this.completed=!0,this.settleFn(r)}asPromise(){return this.settledPromise}insertRef(r){this._refs.add(r)}isCycle(r){return!this.completed&&this._refs.has(r)}}return iu.SettlementSignal=e,iu}var GA;function gi(){if(GA)return $c;GA=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.Injector=void 0;const e=ve(),t=xe(),r=or(),n=ne(),o=Ve(),i=Rk,s=Ul(),a=et(),c=FZ(),u=DN(),p=kZ(),l=ot(),d=LN(),f=Bl(),h=LZ();class m{constructor(_){this.options=_,this.logger=new e.Logger("InjectorLogger"),this.instanceDecorator=g=>g,_?.instanceDecorator&&(this.instanceDecorator=_.instanceDecorator)}loadPrototype({token:_},g,y=l.STATIC_CONTEXT){if(!g)return;const b=g.get(_),E=b.createPrototype(y);if(E){const x=new f.InstanceWrapper({...b,instance:E});g.set(_,x)}}async loadInstance(_,g,y,b=l.STATIC_CONTEXT,E){const x=this.getInquirerId(E),O=_.getInstanceByContextId(this.getContextId(b,_),x);if(O.isPending){const P=_.settlementSignal;if(E&&P?.isCycle(E.id))throw new s.CircularDependencyException(`"${_.name}"`);return O.donePromise.then(N=>{if(N)throw N})}const S=this.applySettlementSignal(O,_),w=_.token||_.name,{inject:A}=_,T=g.get(w);if((0,n.isUndefined)(T))throw new a.RuntimeException;if(O.isResolved)return S.complete();try{const P=this.getNowTimestamp(),N=async D=>{const V=await this.resolveProperties(_,y,A,b,_,E),F=await this.instantiateClass(D,_,T,b,E);this.applyProperties(F,V),_.initTime=this.getNowTimestamp()-P,S.complete()};await this.resolveConstructorParams(_,y,A,N,b,_,E)}catch(P){throw _.removeInstanceByContextId(this.getContextId(b,_),x),S.error(P),P}}async loadMiddleware(_,g,y,b=l.STATIC_CONTEXT,E){const{metatype:x,token:O}=_,S=g.get(O);(0,n.isUndefined)(S.instance)&&(S.instance=Object.create(x.prototype),await this.loadInstance(_,g,y,b,E||_))}async loadController(_,g,y=l.STATIC_CONTEXT){const b=g.controllers;await this.loadInstance(_,b,g,y,_),await this.loadEnhancersPerContext(_,y,_)}async loadInjectable(_,g,y=l.STATIC_CONTEXT,b){const E=g.injectables;await this.loadInstance(_,E,g,y,b)}async loadProvider(_,g,y=l.STATIC_CONTEXT,b){const E=g.providers;await this.loadInstance(_,E,g,y,b),await this.loadEnhancersPerContext(_,y,_)}applySettlementSignal(_,g){const y=new h.SettlementSignal;return _.donePromise=y.asPromise(),_.isPending=!0,g.settlementSignal=y,y}async resolveConstructorParams(_,g,y,b,E=l.STATIC_CONTEXT,x,O){const S=_.getCtorMetadata();if(S&&E!==l.STATIC_CONTEXT){const F=await this.loadCtorMetadata(S,E,x,O);return b(F)}const w=!(0,n.isNil)(y),[A,T]=w?this.getFactoryProviderDependencies(_):this.getClassDependencies(_),P=new p.Barrier(A.length);let N=!0;const D=async(F,k)=>{try{if(this.isInquirer(F,O))return P.signal(),O&&O.instance;x?.isTransient&&O&&x.attachRootInquirer(O);const Z=await this.resolveSingleParam(_,F,{index:k,dependencies:A},g,E,x,k);await P.signalAndWait();const J=this.getEffectiveInquirer(Z,x,O,E),U=await this.resolveComponentHost(g,Z,E,J),$=U.getInstanceByContextId(this.getContextId(E,U),this.getInquirerId(J));return!$.isResolved&&!U.forwardRef&&(N=!1),$?.instance}catch(Z){if(P.signal(),!T.includes(k))throw Z;return}},V=await Promise.all(A.map(D));N&&await b(V)}getClassDependencies(_){const g=_.metatype;return[this.reflectConstructorParams(g),this.reflectOptionalParams(g)]}getFactoryProviderDependencies(_){const g=[];function y(E){return!(0,n.isUndefined)(E.token)&&!(0,n.isUndefined)(E.optional)&&!E.prototype}const b=(E,x)=>typeof E!="object"?E:y(E)?(E.optional&&g.push(x),E?.token):E;return[_.inject?.map?.(b),g]}reflectConstructorParams(_){const g=[...Reflect.getMetadata(t.PARAMTYPES_METADATA,_)||[]];return this.reflectSelfParams(_).forEach(({index:b,param:E})=>g[b]=E),g}reflectOptionalParams(_){return Reflect.getMetadata(t.OPTIONAL_DEPS_METADATA,_)||[]}reflectSelfParams(_){return Reflect.getMetadata(t.SELF_DECLARED_DEPS_METADATA,_)||[]}async resolveSingleParam(_,g,y,b,E=l.STATIC_CONTEXT,x,O){if((0,n.isUndefined)(g))throw this.logger.log("Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration."),new c.UndefinedDependencyException(_.name,y,b);const S=this.resolveParamToken(_,g);return this.resolveComponentWrapper(b,S,y,_,E,x,O)}resolveParamToken(_,g){return typeof g=="object"&&"forwardRef"in g?(_.forwardRef=!0,g.forwardRef()):g}async resolveComponentWrapper(_,g,y,b,E=l.STATIC_CONTEXT,x,O){this.printResolvingDependenciesLog(g,x),this.printLookingForProviderLog(g,_);const S=_.providers;return this.lookupComponent(S,_,{...y,name:g},b,E,x,O)}async resolveComponentHost(_,g,y=l.STATIC_CONTEXT,b){const E=this.getInquirerId(b),x=g.getInstanceByContextId(this.getContextId(y,g),E);if(!x.isResolved&&!g.forwardRef?(b?.settlementSignal?.insertRef(g.id),await this.loadProvider(g,g.host??_,y,b)):!x.isResolved&&g.forwardRef&&(y!==l.STATIC_CONTEXT||E)&&x.donePromise&&x.donePromise.then(()=>this.loadProvider(g,_,y,b)).catch(O=>{g.settlementSignal?.error(O)}),g.async){const O=g.getInstanceByContextId(this.getContextId(y,g),E);O.instance=await O.instance,g.setInstanceByContextId(y,O,E)}return g}async lookupComponent(_,g,y,b,E=l.STATIC_CONTEXT,x,O){const S=b.token||b.name,{name:w}=y;if(b&&S===w)throw new u.UnknownDependenciesException(b.name,y,g,{id:b.id});if(w&&_.has(w)){const A=_.get(w);return this.printFoundInModuleLog(w,g),this.addDependencyMetadata(O,b,A),A}return this.lookupComponentInParentModules(y,g,b,E,x,O)}async lookupComponentInParentModules(_,g,y,b=l.STATIC_CONTEXT,E,x){const O=await this.lookupComponentInImports(g,_.name,y,new Set,b,E,x);if((0,n.isNil)(O))throw new u.UnknownDependenciesException(y.name,_,g,{id:y.id});return O}async lookupComponentInImports(_,g,y,b=new Set,E=l.STATIC_CONTEXT,x,O,S){let w=null;const A=_.imports||new Set,T=N=>N;let P=[...A.values()].filter(T);if(S){const N=_.exports;P=P.filter(D=>N.has(D.metatype))}for(const N of P){if(b.has(N.id))continue;this.printLookingForProviderLog(g,N),b.add(N.id);const{providers:D,exports:V}=N;if(!V.has(g)||!D.has(g)){const Z=await this.lookupComponentInImports(N,g,y,b,E,x,O,!0);if(Z)return this.addDependencyMetadata(O,y,Z),Z;continue}this.printFoundInModuleLog(g,N),w=D.get(g),this.addDependencyMetadata(O,y,w);const F=this.getInquirerId(x);if(!w.getInstanceByContextId(this.getContextId(E,w),F).isResolved&&!w.forwardRef)break}return w}async resolveProperties(_,g,y,b=l.STATIC_CONTEXT,E,x){if(!(0,n.isNil)(y))return[];const O=_.getPropertiesMetadata();if(O&&b!==l.STATIC_CONTEXT)return this.loadPropertiesMetadata(O,b,E);const S=this.reflectProperties(_.metatype),w=new p.Barrier(S.length),A=await Promise.all(S.map(async T=>{try{const P={key:T.key,name:T.name};if(this.isInquirer(T.name,x))return w.signal(),x&&x.instance;const N=await this.resolveSingleParam(_,T.name,P,g,b,E,T.key);await w.signalAndWait();const D=this.getEffectiveInquirer(N,E,x,b),V=await this.resolveComponentHost(g,N,b,D);return V?V.getInstanceByContextId(this.getContextId(b,V),this.getInquirerId(D)).instance:void 0}catch(P){if(w.signal(),!T.isOptional)throw P;return}}));return S.map((T,P)=>({...T,instance:A[P]}))}reflectProperties(_){const g=Reflect.getMetadata(t.PROPERTY_DEPS_METADATA,_)||[],y=Reflect.getMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,_)||[];return g.map(b=>({...b,name:b.type,isOptional:y.includes(b.key)}))}applyProperties(_,g){(0,n.isObject)(_)&&(0,o.iterate)(g).filter(y=>!(0,n.isNil)(y.instance)).forEach(y=>_[y.key]=y.instance)}async instantiateClass(_,g,y,b=l.STATIC_CONTEXT,E){const{metatype:x,inject:O}=g,S=this.getInquirerId(E),w=y.getInstanceByContextId(this.getContextId(b,y),S),A=g.isStatic(b,E)||g.isInRequestScope(b,E)||g.isLazyTransient(b,E)||g.isExplicitlyRequested(b,E);if(this.options?.preview&&!g.host?.initOnPreview)return w.isResolved=!0,w.instance;if((0,n.isNil)(O)&&A)w.instance=g.forwardRef?Object.assign(w.instance,new x(..._)):new x(..._),w.instance=this.instanceDecorator(w.instance),w.isConstructorCalled=!0;else if(A){const T=y.metatype(..._);w.instance=await T,w.instance=this.instanceDecorator(w.instance),w.isConstructorCalled=!0}return w.isResolved=!0,w.instance}async loadPerContext(_,g,y,b,E){if(!E){const O=_.constructor;E=y.get(O)}await this.loadInstance(E,y,g,b,E),await this.loadEnhancersPerContext(E,b,E);const x=E.getInstanceByContextId(this.getContextId(b,E),E.id);return x&&x.instance}async loadEnhancersPerContext(_,g,y){const b=_.getEnhancersMetadata()||[],E=x=>{const O=x.host;return this.loadInstance(x,O.injectables,O,g,y)};await Promise.all(b.map(E))}async loadCtorMetadata(_,g,y,b){return(await Promise.all(_.map(async x=>this.resolveScopedComponentHost(x,g,y,b)))).map((x,O)=>{const S=_[O],w=this.getEffectiveInquirer(S,y,b,g);return x?.getInstanceByContextId(this.getContextId(g,x),this.getInquirerId(w)).instance})}async loadPropertiesMetadata(_,g,y){const b=await Promise.all(_.map(async({wrapper:x,key:O})=>({key:O,host:await this.resolveComponentHost(x.host,x,g,y)}))),E=this.getInquirerId(y);return b.map(({key:x,host:O})=>({key:x,name:x,instance:O.getInstanceByContextId(this.getContextId(g,O),E).instance}))}getInquirerId(_){return _?_.id:void 0}getEffectiveInquirer(_,g,y,b){return _?.isTransient&&g?.isTransient&&y&&b!==l.STATIC_CONTEXT?y:g}resolveScopedComponentHost(_,g,y,b){return this.isInquirerRequest(_,b)?b:this.resolveComponentHost(_.host,_,g,this.getEffectiveInquirer(_,y,b,g))}isInquirerRequest(_,g){return _.isTransient&&_.name===d.INQUIRER&&g}isInquirer(_,g){return _===d.INQUIRER&&g}addDependencyMetadata(_,g,y){(0,n.isSymbol)(_)||(0,n.isString)(_)?g.addPropertiesMetadata(_,y):g.addCtorMetadata(_,y)}getTokenName(_){return(0,n.isFunction)(_)?_.name:_.toString()}printResolvingDependenciesLog(_,g){if(!this.isDebugMode())return;const y=this.getTokenName(_),b=(g?.name&&g.name.toString?.())??"unknown",E=b===y,x=`Resolving dependency ${r.clc.cyanBright(y)}${r.clc.green(" in the ")}${r.clc.yellow(b)}${r.clc.green(` provider ${E?"(alias)":""}`)}`;this.logger.log(x)}printLookingForProviderLog(_,g){if(!this.isDebugMode())return;const y=this.getTokenName(_),b=g?.metatype?.name??"unknown";this.logger.log(`Looking for ${r.clc.cyanBright(y)}${r.clc.green(" in ")}${r.clc.magentaBright(b)}`)}printFoundInModuleLog(_,g){if(!this.isDebugMode())return;const y=this.getTokenName(_),b=g?.metatype?.name??"unknown";this.logger.log(`Found ${r.clc.cyanBright(y)}${r.clc.green(" in ")}${r.clc.magentaBright(b)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}getContextId(_,g){return _.getParent?_.getParent({token:g.token,isTreeDurable:g.isDependencyTreeDurable()}):_}getNowTimestamp(){return i.performance.now()}}return $c.Injector=m,$c}var au={},WA;function UN(){if(WA)return au;WA=1,Object.defineProperty(au,"__esModule",{value:!0}),au.InstanceLinksHost=void 0;const e=ne(),t=FN();class r{constructor(o){this.container=o,this.instanceLinks=new Map,this.initialize()}get(o,i={}){const s=this.instanceLinks.get(o);if(!s)throw new t.UnknownElementException(this.getInstanceNameByToken(o));if(i.each)return s;const a=i.moduleId?s.find(c=>c.moduleId===i.moduleId):s[s.length-1];if(!a)throw new t.UnknownElementException(this.getInstanceNameByToken(o));return a}initialize(){this.container.getModules().forEach(i=>{const{providers:s,injectables:a,controllers:c}=i;s.forEach((u,p)=>this.addLink(u,p,i,"providers")),a.forEach((u,p)=>this.addLink(u,p,i,"injectables")),c.forEach((u,p)=>this.addLink(u,p,i,"controllers"))})}addLink(o,i,s,a){const c={moduleId:s.id,wrapperRef:o,collection:s[a],token:i},u=this.instanceLinks.get(i);u?u.push(c):this.instanceLinks.set(i,[c])}getInstanceNameByToken(o){return(0,e.isFunction)(o)?o?.name:o}}return au.InstanceLinksHost=r,au}var ZA;function Bp(){if(ZA)return Jc;ZA=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.ModuleRef=void 0;const e=ve(),t=zp(),r=wy(),n=kN(),o=gi(),i=UN(),s=Bl();class a extends n.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new i.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(u){super(),this.container=u,this.injector=new o.Injector({preview:u.contextOptions?.preview,instanceDecorator:u.contextOptions?.instrument?.instanceDecorator})}introspect(u){const{wrapperRef:p}=this.instanceLinksHost.get(u);let l=e.Scope.DEFAULT;return p.isDependencyTreeStatic()?p.isTransient&&(l=e.Scope.TRANSIENT):l=e.Scope.REQUEST,{scope:l}}registerRequestByContextId(u,p){this.container.registerRequestProvider(u,p)}async instantiateClass(u,p,l){const d=new s.InstanceWrapper({name:u&&u.name,metatype:u,isResolved:!1,scope:(0,t.getClassScope)(u),durable:(0,r.isDurable)(u),host:p});return new Promise(async(f,h)=>{try{const m=async v=>{const _=await this.injector.resolveProperties(d,p,void 0,l),g=new u(...v);this.injector.applyProperties(g,_),f(g)};await this.injector.resolveConstructorParams(d,p,void 0,m,l)}catch(m){h(m)}})}}return Jc.ModuleRef=a,Jc}var KA;function Ty(){if(KA)return Yc;KA=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.LazyModuleLoader=void 0;const e=NZ(),t=Bp();class r{constructor(o,i,s,a,c){this.dependenciesScanner=o,this.instanceLoader=i,this.moduleCompiler=s,this.modulesContainer=a,this.moduleOverrides=c}async load(o,i){this.registerLoggerConfiguration(i);const s=await o(),a=await this.dependenciesScanner.scanForModules({moduleDefinition:s,overrides:this.moduleOverrides,lazy:!0});if(a.length===0){const{token:p}=await this.moduleCompiler.compile(s),l=this.modulesContainer.get(p);return l&&this.getTargetModuleRef(l)}const c=this.createLazyModulesContainer(a);await this.dependenciesScanner.scanModulesForDependencies(c),await this.instanceLoader.createInstancesOfDependencies(c);const[u]=a;return this.getTargetModuleRef(u)}registerLoggerConfiguration(o){o?.logger===!1&&this.instanceLoader.setLogger(new e.SilentLogger)}createLazyModulesContainer(o){return o=Array.from(new Set(o)),new Map(o.map(i=>[i.token,i]))}getTargetModuleRef(o){return o.getProviderByKey(t.ModuleRef).instance}}return Yc.LazyModuleLoader=r,Yc}var ou={},YA;function zN(){if(YA)return ou;YA=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.Reflector=void 0;const e=ve(),t=ne(),r=_n();class n{static createDecorator(i={}){const s=i.key??(0,r.uid)(21),a=c=>(u,p,l)=>{const d=i.transform?i.transform(c):c;(0,e.SetMetadata)(s,d??{})(u,p,l)};return a.KEY=s,a}get(i,s){const a=i.KEY??i;return Reflect.getMetadata(a,s)}getAll(i,s){return(s||[]).map(a=>this.get(i,a))}getAllAndMerge(i,s){const a=this.getAll(i,s).filter(c=>c!==void 0);if((0,t.isEmpty)(a))return a;if(a.length===1){const c=a[0];return(0,t.isObject)(c)?c:a}return a.reduce((c,u)=>Array.isArray(c)?c.concat(u):(0,t.isObject)(c)&&(0,t.isObject)(u)?{...c,...u}:[c,u])}getAllAndOverride(i,s){for(const a of s){const c=this.get(i,a);if(c!==void 0)return c}}}return ou.Reflector=n,ou}var XA;function Py(){if(XA)return Zc;XA=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.SerializedGraph=void 0;const e=_r(),t=Ey(),r=Dl(),n=Oy(),o=Ty(),i=Bp(),s=_i(),a=Pn(),c=zN(),u=Sy();class p{constructor(){this.nodes=new Map,this.edges=new Map,this.entrypoints=new Map,this.extras={orphanedEnhancers:[],attachedEnhancers:[]},this._status="complete"}set status(d){this._status=d}set metadata(d){this._metadata=d}insertNode(d){return d.metadata.type==="provider"&&p.INTERNAL_PROVIDERS.includes(d.metadata.token)&&(d.metadata={...d.metadata,internal:!0}),this.nodes.has(d.id)?this.nodes.get(d.id):(this.nodes.set(d.id,d),d)}insertEdge(d){d.metadata.type==="class-to-class"&&(p.INTERNAL_PROVIDERS.includes(d.metadata.sourceClassToken)||p.INTERNAL_PROVIDERS.includes(d.metadata.targetClassToken))&&(d.metadata={...d.metadata,internal:!0});const f=d.id??this.generateUuidByEdgeDefinition(d),h={...d,id:f};return this.edges.set(f,h),h}insertEntrypoint(d,f){this.entrypoints.has(f)?this.entrypoints.get(f).push(d):this.entrypoints.set(f,[d])}insertOrphanedEnhancer(d){this.extras.orphanedEnhancers.push(d)}insertAttachedEnhancer(d){this.extras.attachedEnhancers.push({nodeId:d})}getNodeById(d){return this.nodes.get(d)}toJSON(){const d={nodes:Object.fromEntries(this.nodes),edges:Object.fromEntries(this.edges),entrypoints:Object.fromEntries(this.entrypoints),extras:this.extras};return this._status&&(d.status=this._status),this._metadata&&(d.metadata=this._metadata),d}toString(){const d=(f,h)=>typeof h=="symbol"?h.toString():typeof h=="function"?h.name??"Function":h;return JSON.stringify(this.toJSON(),d,2)}generateUuidByEdgeDefinition(d){return u.DeterministicUuidRegistry.get(JSON.stringify(d))}}return Zc.SerializedGraph=p,p.INTERNAL_PROVIDERS=[e.ApplicationConfig,i.ModuleRef,r.HttpAdapterHost,o.LazyModuleLoader,t.ExternalContextCreator,s.ModulesContainer,c.Reflector,p,r.HttpAdapterHost.name,c.Reflector.name,a.REQUEST,n.INQUIRER],Zc}var su={},JA;function UZ(){if(JA)return su;JA=1,Object.defineProperty(su,"__esModule",{value:!0}),su.ModuleCompiler=void 0;class e{constructor(r){this._moduleOpaqueKeyFactory=r}get moduleOpaqueKeyFactory(){return this._moduleOpaqueKeyFactory}async compile(r){r=await r;const{type:n,dynamicMetadata:o}=this.extractMetadata(r),i=o?this._moduleOpaqueKeyFactory.createForDynamic(n,o,r):this._moduleOpaqueKeyFactory.createForStatic(n,r);return{type:n,dynamicMetadata:o,token:i}}extractMetadata(r){if(!this.isDynamicModule(r))return{type:r?.forwardRef?r.forwardRef():r,dynamicMetadata:void 0};const{module:n,...o}=r;return{type:n,dynamicMetadata:o}}isDynamicModule(r){return!!r.module}}return su.ModuleCompiler=e,su}var $n={},cu={},QA;function zZ(){if(QA)return cu;QA=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.requestProvider=void 0;const e=ve(),t=Pn(),r=()=>{};return cu.requestProvider={provide:t.REQUEST,scope:e.Scope.REQUEST,useFactory:r},cu}var Vm={},$A;function BN(){return $A||($A=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(zN(),e)})(Vm)),Vm}var uu={},eR;function BZ(){if(eR)return uu;eR=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.inquirerProvider=void 0;const e=ve(),t=Oy(),r=()=>{};return uu.inquirerProvider={provide:t.INQUIRER,scope:e.Scope.TRANSIENT,useFactory:r},uu}var tR;function Hp(){if(tR)return $n;tR=1;var e;Object.defineProperty($n,"__esModule",{value:!0}),$n.InternalCoreModule=void 0;const t=ae(),r=ve(),n=zZ(),o=BN(),i=BZ(),s={provide:o.Reflector.name,useExisting:o.Reflector};let a=e=class{static register(u){return{module:e,providers:[...u],exports:[...u.map(p=>p.provide)]}}};return $n.InternalCoreModule=a,$n.InternalCoreModule=a=e=t.__decorate([(0,r.Global)(),(0,r.Module)({providers:[o.Reflector,s,n.requestProvider,i.inquirerProvider],exports:[o.Reflector,s,n.requestProvider,i.inquirerProvider]})],a),$n}var lu={},rR;function HZ(){if(rR)return lu;rR=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.InternalProvidersStorage=void 0;const e=Dl();class t{constructor(){this._httpAdapterHost=new e.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(n){this._httpAdapter=n}}return lu.InternalProvidersStorage=t,lu}var du={},nR;function VZ(){if(nR)return du;nR=1,Object.defineProperty(du,"__esModule",{value:!0}),du.Module=void 0;const e=xe(),t=bp(),r=sr(),n=ne(),o=Ve(),i=_r(),s=Ul(),a=Ll(),c=zp(),u=wy(),p=zl(),l=ot(),d=Bl(),f=Bp();class h{constructor(v,_){this._metatype=v,this.container=_,this._imports=new Set,this._providers=new Map,this._injectables=new Map,this._middlewares=new Map,this._controllers=new Map,this._entryProviderKeys=new Set,this._exports=new Set,this._distance=0,this._initOnPreview=!1,this._isGlobal=!1,this.addCoreProviders(),this._id=this.generateUuid()}get id(){return this._id}get token(){return this._token}set token(v){this._token=v}get name(){return this.metatype.name}get isGlobal(){return this._isGlobal}set isGlobal(v){this._isGlobal=v}get initOnPreview(){return this._initOnPreview}set initOnPreview(v){this._initOnPreview=v}get providers(){return this._providers}get middlewares(){return this._middlewares}get imports(){return this._imports}get injectables(){return this._injectables}get controllers(){return this._controllers}get entryProviders(){return Array.from(this._entryProviderKeys).map(v=>this.providers.get(v))}get exports(){return this._exports}get instance(){if(!this._providers.has(this._metatype))throw new s.RuntimeException;return this._providers.get(this._metatype).instance}get metatype(){return this._metatype}get distance(){return this._distance}set distance(v){this._distance=v}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){const v=this.createModuleReferenceType();this._providers.set(f.ModuleRef,new d.InstanceWrapper({token:f.ModuleRef,name:f.ModuleRef.name,metatype:f.ModuleRef,isResolved:!0,instance:new v,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new d.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(i.ApplicationConfig,new d.InstanceWrapper({token:i.ApplicationConfig,name:i.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(v,_,g){if(this.isCustomProvider(v))return this.addCustomProvider(v,this._injectables,_);let y=this.injectables.get(v);if(y||(y=new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),subtype:_,host:this}),this._injectables.set(v,y)),g){const b=this._controllers.get(g)||this._providers.get(g);b&&b.addEnhancerMetadata(y)}return y}addProvider(v,_){if(this.isCustomProvider(v))return this.isEntryProvider(v.provide)&&this._entryProviderKeys.add(v.provide),this.addCustomProvider(v,this._providers,_);const g=this._providers.has(v);return(this.isTransientProvider(v)||this.isRequestScopeProvider(v))&&g||(this._providers.set(v,new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),host:this})),this.isEntryProvider(v)&&this._entryProviderKeys.add(v)),v}isCustomProvider(v){return!(0,n.isNil)(v.provide)}addCustomProvider(v,_,g){return this.isCustomClass(v)?this.addCustomClass(v,_,g):this.isCustomValue(v)?this.addCustomValue(v,_,g):this.isCustomFactory(v)?this.addCustomFactory(v,_,g):this.isCustomUseExisting(v)&&this.addCustomUseExisting(v,_,g),v.provide}isCustomClass(v){return!(0,n.isUndefined)(v.useClass)}isCustomValue(v){return(0,n.isObject)(v)&&Object.prototype.hasOwnProperty.call(v,"useValue")}isCustomFactory(v){return!(0,n.isUndefined)(v.useFactory)}isCustomUseExisting(v){return!(0,n.isUndefined)(v.useExisting)}isDynamicModule(v){return v&&v.module}addCustomClass(v,_,g){let{scope:y,durable:b}=v;const{useClass:E}=v;(0,n.isUndefined)(y)&&(y=(0,c.getClassScope)(E)),(0,n.isUndefined)(b)&&(b=(0,u.isDurable)(E));const x=v.provide;_.set(x,new d.InstanceWrapper({token:x,name:E?.name||E,metatype:E,instance:null,isResolved:!1,scope:y,durable:b,host:this,subtype:g}))}addCustomValue(v,_,g){const{useValue:y,provide:b}=v,E=this.container.contextOptions?.instrument?.instanceDecorator;_.set(b,new d.InstanceWrapper({token:b,name:b?.name||b,metatype:null,instance:E?E(y):y,isResolved:!0,async:y instanceof Promise,host:this,subtype:g}))}addCustomFactory(v,_,g){const{useFactory:y,inject:b,scope:E,durable:x,provide:O}=v;_.set(O,new d.InstanceWrapper({token:O,name:O?.name||O,metatype:y,instance:null,isResolved:!1,inject:b||[],scope:E,durable:x,host:this,subtype:g}))}addCustomUseExisting(v,_,g){const{useExisting:y,provide:b}=v;_.set(b,new d.InstanceWrapper({token:b,name:b?.name||b,metatype:(E=>E),instance:null,isResolved:!1,inject:[y],host:this,isAlias:!0,subtype:g}))}addExportedProviderOrModule(v){const _=g=>this._exports.add(this.validateExportedProvider(g));if(this.isCustomProvider(v))return this.addCustomExportedProvider(v);if((0,n.isString)(v)||(0,n.isSymbol)(v))return _(v);if(this.isDynamicModule(v)){const{module:g}=v;return _(g)}_(v)}addCustomExportedProvider(v){const _=v.provide;if((0,n.isString)(_)||(0,n.isSymbol)(_))return this._exports.add(this.validateExportedProvider(_));this._exports.add(this.validateExportedProvider(_))}validateExportedProvider(v){if(this._providers.has(v))return v;if(!(0,o.iterate)(this._imports.values()).filter(g=>!!g).map(({metatype:g})=>g).filter(g=>!!g).toArray().includes(v)){const{name:g}=this.metatype,y=(0,n.isFunction)(v)?v.name:v;throw new s.UnknownExportException(y,g)}return v}addController(v){this._controllers.set(v,new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),host:this})),this.assignControllerUniqueId(v)}assignControllerUniqueId(v){Object.defineProperty(v,l.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,r.randomStringGenerator)()})}addImport(v){this._imports.add(v)}replace(v,_){if(_.isProvider&&this.hasProvider(v))return this._providers.get(v).mergeWith({provide:v,..._});if(!_.isProvider&&this.hasInjectable(v))return this._injectables.get(v).mergeWith({provide:v,..._})}hasProvider(v){return this._providers.has(v)}hasInjectable(v){return this._injectables.has(v)}getProviderByKey(v){return this._providers.get(v)}getProviderById(v){return Array.from(this._providers.values()).find(_=>_.id===v)}getControllerById(v){return Array.from(this._controllers.values()).find(_=>_.id===v)}getInjectableById(v){return Array.from(this._injectables.values()).find(_=>_.id===v)}getMiddlewareById(v){return Array.from(this._middlewares.values()).find(_=>_.id===v)}getNonAliasProviders(){return[...this._providers].filter(([v,_])=>!_.isAlias)}createModuleReferenceType(){const v=this;return class extends f.ModuleRef{constructor(){super(v.container)}get(_,g={}){return g.strict??=!0,g.each??=!1,this.find(_,g.strict?{moduleId:v.id,each:g.each}:g)}resolve(_,g=(0,a.createContextId)(),y={}){return y.strict??=!0,y.each??=!1,this.resolvePerContext(_,v,g,y)}async create(_,g){if(!(_&&(0,n.isFunction)(_)&&_.prototype))throw new s.InvalidClassException(_);return this.instantiateClass(_,v,g)}}}isEntryProvider(v){return typeof v=="function"?!!Reflect.getMetadata(e.ENTRY_PROVIDER_WATERMARK,v):!1}generateUuid(){const _=this.token?this.token.includes(":")?this.token.split(":")[1]:this.token:this.name;return _?p.UuidFactory.get(`M__${_}`):(0,r.randomStringGenerator)()}isTransientProvider(v){return(0,c.getClassScope)(v)===t.Scope.TRANSIENT}isRequestScopeProvider(v){return(0,c.getClassScope)(v)===t.Scope.REQUEST}}return du.Module=h,du}var pu={},iR;function GZ(){if(iR)return pu;iR=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.ByReferenceModuleOpaqueKeyFactory=void 0;const e=sr(),t=ui,r=Symbol("K_MODULE_ID");class n{constructor(i){this.keyGenerationStrategy=i?.keyGenerationStrategy??"random"}createForStatic(i,s=i){return this.getOrCreateModuleId(i,void 0,s)}createForDynamic(i,s,a){return this.getOrCreateModuleId(i,s,a)}getOrCreateModuleId(i,s,a){if(a[r])return a[r];let c;return this.keyGenerationStrategy==="random"?c=this.generateRandomString():c=s?`${this.generateRandomString()}:${this.hashString(i.name+JSON.stringify(s))}`:`${this.generateRandomString()}:${this.hashString(i.toString())}`,a[r]=c,c}hashString(i){return(0,t.createHash)("sha256").update(i).digest("hex")}generateRandomString(){return(0,e.randomStringGenerator)()}}return pu.ByReferenceModuleOpaqueKeyFactory=n,pu}var fu={},Gm,aR;function WZ(){if(aR)return Gm;aR=1,Gm=i,i.default=i,i.stable=u,i.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(d,f,h,m){typeof m>"u"&&(m=o()),a(d,"",0,[],void 0,0,m);var v;try{n.length===0?v=JSON.stringify(d,f,h):v=JSON.stringify(d,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var _=r.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return v}function s(d,f,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:d}),r.push([m,h,f,v])):n.push([f,h,d]):(m[h]=d,r.push([m,h,f]))}function a(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)a(d[y],y,y,m,d,_,g);else{var b=Object.keys(d);for(y=0;y<b.length;y++){var E=b[y];a(d[E],E,y,m,d,_,g)}}m.pop()}}function c(d,f){return d<f?-1:d>f?1:0}function u(d,f,h,m){typeof m>"u"&&(m=o());var v=p(d,"",0,[],void 0,0,m)||d,_;try{n.length===0?_=JSON.stringify(v,f,h):_=JSON.stringify(v,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var g=r.pop();g.length===4?Object.defineProperty(g[0],g[1],g[3]):g[0][g[1]]=g[2]}}return _}function p(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)p(d[y],y,y,m,d,_,g);else{var b={},E=Object.keys(d).sort(c);for(y=0;y<E.length;y++){var x=E[y];p(d[x],x,y,m,d,_,g),b[x]=d[x]}if(typeof v<"u")r.push([v,f,d]),v[f]=b;else return b}m.pop()}}function l(d){return d=typeof d<"u"?d:function(f,h){return h},function(f,h){if(n.length>0)for(var m=0;m<n.length;m++){var v=n[m];if(v[1]===f&&v[0]===h){h=v[2],n.splice(m,1);break}}return d.call(this,f,h)}}return Gm}var oR;function ZZ(){if(oR)return fu;oR=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.DeepHashedModuleOpaqueKeyFactory=void 0;const e=yt(),t=sr(),r=ne(),n=ui,o=WZ(),i="class ",s=i.length;class a{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new e.Logger(a.name,{timestamp:!0})}createForStatic(u){const p=this.getModuleId(u),l=this.getModuleName(u),d=`${p}_${l}`;if(this.moduleTokenCache.has(d))return this.moduleTokenCache.get(d);const f=this.hashString(d);return this.moduleTokenCache.set(d,f),f}createForDynamic(u,p){const l=this.getModuleId(u),d=this.getModuleName(u),f={id:l,module:d,dynamic:p},h=performance.now(),m=this.getStringifiedOpaqueToken(f),v=performance.now()-h;if(v>10){const _=v.toFixed(2);this.logger.warn(`The module "${f.module}" is taking ${_}ms to serialize, this may be caused by larger objects statically assigned to the module. Consider changing the "moduleIdGeneratorAlgorithm" option to "reference" to improve the performance.`)}return this.hashString(m)}getStringifiedOpaqueToken(u){return u?(0,o.default)(u,this.replacer):""}getModuleId(u){let p=this.moduleIdsCache.get(u);return p||(p=(0,t.randomStringGenerator)(),this.moduleIdsCache.set(u,p),p)}getModuleName(u){return u.name}hashString(u){return(0,n.createHash)("sha256").update(u).digest("hex")}replacer(u,p){if((0,r.isFunction)(p)){const l=p.toString();return l.slice(0,s)===i?p.name:l}return(0,r.isSymbol)(p)?p.toString():p}}return fu.DeepHashedModuleOpaqueKeyFactory=a,fu}var sR;function Ay(){if(sR)return Dc;sR=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.NestContainer=void 0;const e=xe(),t=ON(),r=Ul(),n=xy(),o=Py(),i=Pn(),s=UZ(),a=Hp(),c=HZ(),u=VZ(),p=_i(),l=GZ(),d=ZZ();class f{constructor(m=void 0,v=void 0){this._applicationConfig=m,this._contextOptions=v,this.globalModules=new Set,this.modules=new p.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new c.InternalProvidersStorage,this._serializedGraph=new o.SerializedGraph;const _=this._contextOptions?.moduleIdGeneratorAlgorithm==="deep-hash"?new d.DeepHashedModuleOpaqueKeyFactory:new l.ByReferenceModuleOpaqueKeyFactory({keyGenerationStrategy:this._contextOptions?.snapshot?"shallow":"random"});this.moduleCompiler=new s.ModuleCompiler(_)}get serializedGraph(){return this._serializedGraph}get applicationConfig(){return this._applicationConfig}get contextOptions(){return this._contextOptions}setHttpAdapter(m){if(this.internalProvidersStorage.httpAdapter=m,!this.internalProvidersStorage.httpAdapterHost)return;const v=this.internalProvidersStorage.httpAdapterHost;v.httpAdapter=m}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}async addModule(m,v){if(!m)throw new r.UndefinedForwardRefException(v);const{type:_,dynamicMetadata:g,token:y}=await this.moduleCompiler.compile(m);return this.modules.has(y)?{moduleRef:this.modules.get(y),inserted:!0}:{moduleRef:await this.setModule({token:y,type:_,dynamicMetadata:g},v),inserted:!0}}async replaceModule(m,v,_){if(!m||!v)throw new r.UndefinedForwardRefException(_);const{token:g}=await this.moduleCompiler.compile(m),{type:y,dynamicMetadata:b}=await this.moduleCompiler.compile(v);return{moduleRef:await this.setModule({token:g,type:y,dynamicMetadata:b},_),inserted:!1}}async setModule({token:m,dynamicMetadata:v,type:_},g){const y=new u.Module(_,this);y.token=m,y.initOnPreview=this.shouldInitOnPreview(_),this.modules.set(m,y);const b=[].concat(g,_);return await this.addDynamicMetadata(m,v,b),this.isGlobalModule(_,v)&&(y.isGlobal=!0,y.distance=Number.MAX_VALUE,this.addGlobalModule(y)),y}async addDynamicMetadata(m,v,_){if(!v)return;this.dynamicModulesMetadata.set(m,v);const{imports:g}=v;await this.addDynamicModules(g,_)}async addDynamicModules(m,v){m&&await Promise.all(m.map(_=>this.addModule(_,v)))}isGlobalModule(m,v){return v&&v.global?!0:!!Reflect.getMetadata(e.GLOBAL_MODULE_METADATA,m)}addGlobalModule(m){this.globalModules.add(m)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(m){return this.modules.get(m)}getInternalCoreModuleRef(){return this.internalCoreModule}async addImport(m,v){if(!this.modules.has(v))return;const _=this.modules.get(v),{token:g}=await this.moduleCompiler.compile(m),y=this.modules.get(g);_.addImport(y)}addProvider(m,v,_){const g=this.modules.get(v);if(!m)throw new r.CircularDependencyException(g?.metatype.name);if(!g)throw new r.UnknownModuleException;const y=g.addProvider(m,_),b=g.getProviderByKey(y);return t.DiscoverableMetaHostCollection.inspectProvider(this.modules,b),y}addInjectable(m,v,_,g){if(!this.modules.has(v))throw new r.UnknownModuleException;return this.modules.get(v).addInjectable(m,_,g)}addExportedProviderOrModule(m,v){if(!this.modules.has(v))throw new r.UnknownModuleException;this.modules.get(v).addExportedProviderOrModule(m)}addController(m,v){if(!this.modules.has(v))throw new r.UnknownModuleException;const _=this.modules.get(v);_.addController(m);const g=_.controllers.get(m);t.DiscoverableMetaHostCollection.inspectController(this.modules,g)}clear(){this.modules.clear()}replace(m,v){this.modules.forEach(_=>_.replace(m,v))}bindGlobalScope(){this.modules.forEach(m=>this.bindGlobalsToImports(m))}bindGlobalsToImports(m){this.globalModules.forEach(v=>this.bindGlobalModuleToModule(m,v))}bindGlobalModuleToModule(m,v){m===v||m===this.internalCoreModule||m.addImport(v)}getDynamicMetadataByToken(m,v){const _=this.dynamicModulesMetadata.get(m);return v?_?.[v]??[]:_}registerCoreModuleRef(m){this.internalCoreModule=m,this.modules[a.InternalCoreModule.name]=m}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(m,v){this.internalCoreModule.getProviderByKey(i.REQUEST).setInstanceByContextId(v,{instance:m,isResolved:!0})}shouldInitOnPreview(m){return n.InitializeOnPreviewAllowlist.has(m)}}return Dc.NestContainer=f,Dc}var cR;function HN(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Ay(),e),t.__exportStar(LN(),e),t.__exportStar(Ty(),e),t.__exportStar(Bp(),e),t.__exportStar(_i(),e)})(Um)),Um}var Wm={},hu={},vu={},uR;function VN(){if(uR)return vu;uR=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.PartialGraphHost=void 0;class e{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(r){this.partialGraph=r}}return vu.PartialGraphHost=e,vu}var lR;function Vp(){if(lR)return hu;lR=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.GraphInspector=void 0;const e=DN(),t=Sy(),r=VN();class n{constructor(i){this.container=i,this.enhancersMetadataCache=new Array,this.graph=i.serializedGraph}inspectModules(i=this.container.getModules()){for(const s of i.values())this.insertModuleNode(s),this.insertClassNodes(s),this.insertModuleToModuleEdges(s);this.enhancersMetadataCache.forEach(s=>this.insertEnhancerEdge(s)),t.DeterministicUuidRegistry.clear()}registerPartial(i){this.graph.status="partial",i instanceof e.UnknownDependenciesException?this.graph.metadata={cause:{type:"unknown-dependencies",context:i.context,moduleId:i.moduleRef?.id,nodeId:i.metadata?.id}}:this.graph.metadata={cause:{type:"unknown",error:i}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(i,s){i.getCtorMetadata()?.forEach((u,p)=>this.insertClassToClassEdge(i,u,s,p,"constructor")),i.getPropertiesMetadata()?.forEach(({key:u,wrapper:p})=>this.insertClassToClassEdge(i,p,s,u,"property"))}insertEnhancerMetadataCache(i){this.enhancersMetadataCache.push(i)}insertOrphanedEnhancer(i){this.graph.insertOrphanedEnhancer({...i,ref:i.ref?.constructor?.name??"Object"})}insertAttachedEnhancer(i){const s=this.graph.getNodeById(i.id);s.metadata.global=!0,this.graph.insertAttachedEnhancer(s.id)}insertEntrypointDefinition(i,s){i={...i,id:`${i.classNodeId}_${i.methodName}`},this.graph.insertEntrypoint(i,s)}insertClassNode(i,s,a){this.graph.insertNode({id:s.id,label:s.name,parent:i.id,metadata:{type:a,internal:s.metatype===i.metatype,sourceModuleName:i.name,durable:s.isDependencyTreeDurable(),static:s.isDependencyTreeStatic(),scope:s.scope,transient:s.isTransient,exported:i.exports.has(s.token),token:s.token,subtype:s.subtype,initTime:s.initTime}})}insertModuleNode(i){const s=this.container.getDynamicMetadataByToken(i.token),a={id:i.id,label:i.name,metadata:{type:"module",global:i.isGlobal,dynamic:!!s,internal:i.name==="InternalCoreModule"}};this.graph.insertNode(a)}insertModuleToModuleEdges(i){for(const s of i.imports)this.graph.insertEdge({source:i.id,target:s.id,metadata:{type:"module-to-module",sourceModuleName:i.name,targetModuleName:s.name}})}insertEnhancerEdge(i){const s=this.container.getModuleByKey(i.moduleToken),a=s.controllers.get(i.classRef)??s.providers.get(i.classRef),c=this.graph.getNodeById(a.id),u=c.metadata.enhancers??[];if(i.enhancerInstanceWrapper)this.insertClassToClassEdge(a,i.enhancerInstanceWrapper,s,void 0,"decorator"),u.push({id:i.enhancerInstanceWrapper.id,methodKey:i.methodKey,subtype:i.subtype});else{const p=i.enhancerRef.constructor?.name??i.enhancerRef.name;u.push({name:p,methodKey:i.methodKey,subtype:i.subtype})}c.metadata.enhancers=u}insertClassToClassEdge(i,s,a,c,u){this.graph.insertEdge({source:i.id,target:s.id,metadata:{type:"class-to-class",sourceModuleName:a.name,sourceClassName:i.name,targetClassName:s.name,sourceClassToken:i.token,targetClassToken:s.token,targetModuleName:s.host?.name,keyOrIndex:c,injectionType:u}})}insertClassNodes(i){i.providers.forEach(s=>this.insertClassNode(i,s,"provider")),i.injectables.forEach(s=>this.insertClassNode(i,s,"injectable")),i.controllers.forEach(s=>this.insertClassNode(i,s,"controller"))}}return hu.GraphInspector=n,hu}var dR;function KZ(){return dR||(dR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Vp(),e),t.__exportStar(xy(),e),t.__exportStar(VN(),e),t.__exportStar(Py(),e)})(Wm)),Wm}var Zm={},mu={},Km={},gt={},pR;function Ry(){if(pR)return gt;pR=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.PathError=gt.TokenData=void 0,gt.parse=u,gt.compile=p,gt.match=f,gt.pathToRegexp=h,gt.stringify=b;const e="/",t=O=>O,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function i(O){return O.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function s(O){return O.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class a{constructor(S,w){this.tokens=S,this.originalPath=w}}gt.TokenData=a;class c extends TypeError{constructor(S,w){let A=S;w&&(A+=`: ${w}`),A+="; visit https://git.new/pathToRegexpError for info",super(A),this.originalPath=w}}gt.PathError=c;function u(O,S={}){const{encodePath:w=t}=S,A=[...O],T=[];let P=0,N=0;function D(){let F="";if(r.test(A[P]))do F+=A[P++];while(n.test(A[P]));else if(A[P]==='"'){let k=P;for(;P++<A.length;){if(A[P]==='"'){P++,k=0;break}A[P]==="\\"&&P++,F+=A[P]}if(k)throw new c(`Unterminated quote at index ${k}`,O)}if(!F)throw new c(`Missing parameter name at index ${P}`,O);return F}for(;P<A.length;){const F=A[P],k=o[F];k?T.push({type:k,index:P++,value:F}):F==="\\"?T.push({type:"escape",index:P++,value:A[P++]}):F===":"?T.push({type:"param",index:P++,value:D()}):F==="*"?T.push({type:"wildcard",index:P++,value:D()}):T.push({type:"char",index:P++,value:F})}T.push({type:"end",index:P,value:""});function V(F){const k=[];for(;;){const Z=T[N++];if(Z.type===F)break;if(Z.type==="char"||Z.type==="escape"){let J=Z.value,U=T[N];for(;U.type==="char"||U.type==="escape";)J+=U.value,U=T[++N];k.push({type:"text",value:w(J)});continue}if(Z.type==="param"||Z.type==="wildcard"){k.push({type:Z.type,name:Z.value});continue}if(Z.type==="{"){k.push({type:"group",tokens:V("}")});continue}throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${F}`,O)}return k}return new a(V("end"),O)}function p(O,S={}){const{encode:w=encodeURIComponent,delimiter:A=e}=S,T=typeof O=="object"?O:u(O,S),P=l(T.tokens,A,w);return function(D={}){const[V,...F]=P(D);if(F.length)throw new TypeError(`Missing parameters: ${F.join(", ")}`);return V}}function l(O,S,w){const A=O.map(T=>d(T,S,w));return T=>{const P=[""];for(const N of A){const[D,...V]=N(T);P[0]+=D,P.push(...V)}return P}}function d(O,S,w){if(O.type==="text")return()=>[O.value];if(O.type==="group"){const T=l(O.tokens,S,w);return P=>{const[N,...D]=T(P);return D.length?[""]:[N]}}const A=w||t;return O.type==="wildcard"&&w!==!1?T=>{const P=T[O.name];if(P==null)return["",O.name];if(!Array.isArray(P)||P.length===0)throw new TypeError(`Expected "${O.name}" to be a non-empty array`);return[P.map((N,D)=>{if(typeof N!="string")throw new TypeError(`Expected "${O.name}/${D}" to be a string`);return A(N)}).join(S)]}:T=>{const P=T[O.name];if(P==null)return["",O.name];if(typeof P!="string")throw new TypeError(`Expected "${O.name}" to be a string`);return[A(P)]}}function f(O,S={}){const{decode:w=decodeURIComponent,delimiter:A=e}=S,{regexp:T,keys:P}=h(O,S),N=P.map(D=>w===!1?t:D.type==="param"?w:V=>V.split(A).map(w));return function(V){const F=T.exec(V);if(!F)return!1;const k=F[0],Z=Object.create(null);for(let J=1;J<F.length;J++){if(F[J]===void 0)continue;const U=P[J-1],$=N[J-1];Z[U.name]=$(F[J])}return{path:k,params:Z}}}function h(O,S={}){const{delimiter:w=e,end:A=!0,sensitive:T=!1,trailing:P=!0}=S,N=[],D=T?"":"i",V=[];for(const Z of m(O,[])){const J=typeof Z=="object"?Z:u(Z,S);for(const U of v(J.tokens,0,[]))V.push(_(U,w,N,J.originalPath))}let F=`^(?:${V.join("|")})`;return P&&(F+=`(?:${s(w)}$)?`),F+=A?"$":`(?=${s(w)}|$)`,{regexp:new RegExp(F,D),keys:N}}function m(O,S){if(Array.isArray(O))for(const w of O)m(w,S);else S.push(O);return S}function*v(O,S,w){if(S===O.length)return yield w;const A=O[S];if(A.type==="group")for(const T of v(A.tokens,0,w.slice()))yield*v(O,S+1,T);else w.push(A);yield*v(O,S+1,w)}function _(O,S,w,A){let T="",P="",N=!0;for(const D of O){if(D.type==="text"){T+=s(D.value),P+=D.value,N||(N=D.value.includes(S));continue}if(D.type==="param"||D.type==="wildcard"){if(!N&&!P)throw new c(`Missing text before "${D.name}" ${D.type}`,A);D.type==="param"?T+=`(${g(S,N?"":P)}+)`:T+="([\\s\\S]+)",w.push(D),P="",N=!1;continue}}return T}function g(O,S){return S.length<2?O.length<2?`[^${s(O+S)}]`:`(?:(?!${s(O)})[^${s(S)}])`:O.length<2?`(?:(?!${s(S)})[^${s(O)}])`:`(?:(?!${s(S)}|${s(O)})[\\s\\S])`}function y(O){let S="",w=0;function A(T){return E(T)&&x(O[w])?T:JSON.stringify(T)}for(;w<O.length;){const T=O[w++];if(T.type==="text"){S+=i(T.value);continue}if(T.type==="group"){S+=`{${y(T.tokens)}}`;continue}if(T.type==="param"){S+=`:${A(T.name)}`;continue}if(T.type==="wildcard"){S+=`*${A(T.name)}`;continue}throw new TypeError(`Unknown token type: ${T.type}`)}return S}function b(O){return y(O.tokens)}function E(O){const[S,...w]=O;return r.test(S)&&w.every(A=>n.test(A))}function x(O){return O&&O.type==="text"?!n.test(O.value[0]):!0}return gt}var _u={},fR;function GN(){if(fR)return _u;fR=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.LegacyRouteConverter=void 0;const e=ve(),t=(n,o)=>`Unsupported route path: "${o}". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide.`;class r{static tryConvert(o,i){const s=o.startsWith("/")?o:`/${o}`,a=o.endsWith("/")?s:`${s}/`,u=i?.logs??!0?this.printWarning.bind(this):()=>{};return a.endsWith("/(.*)/")?(a!=="/(.*)/"&&u(o),o.replace("(.*)","{*path}")):a.endsWith("/*/")?(a!=="/*/"&&u(o),o.replace("*","{*path}")):a.endsWith("/+/")?(u(o),o.replace("/+","/*path")):a.includes("/*/")?(u(o),o.replaceAll("/*/",(p,l)=>`/*path${l}/`)):o}static printError(o){this.logger.error(t`${o}`)}static printWarning(o){this.logger.warn(t`${o}`+" Attempting to auto-convert...")}}return _u.LegacyRouteConverter=r,r.logger=new e.Logger(r.name),_u}var Ym={},Xm={},hR;function YZ(){return hR||(hR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=o;const t=ve(),r=ne(),n=i=>t.RequestMethod.ALL===i||i===-1;e.isRequestMethodAll=n;function o(i,s,a){return i.some(c=>(0,e.isRequestMethodAll)(c.requestMethod)||c.requestMethod===a?c.pathRegex.exec((0,r.addLeadingSlash)(s)):!1)}})(Xm)),Xm}var Fd={},vR;function XZ(){if(vR)return Fd;vR=1,Object.defineProperty(Fd,"__esModule",{value:!0}),Fd.flattenRoutePaths=t;const e=ne();function t(r){const n=[];return r.forEach(o=>{if(o.module&&o.path&&n.push({module:o.module,path:o.path}),o.children){const i=o.children;i.forEach(s=>{!(0,e.isString)(s)&&(0,e.isString)(s.path)?s.path=(0,e.normalizePath)((0,e.normalizePath)(o.path)+(0,e.normalizePath)(s.path)):n.push({path:o.path,module:s})}),n.push(...t(i))}}),n}return Fd}var mR;function Hl(){return mR||(mR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(YZ(),e),t.__exportStar(XZ(),e)})(Ym)),Ym}var _R;function WN(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mapToClass=e.filterMiddleware=e.mapToExcludeRoute=void 0,e.isMiddlewareClass=l,e.assignToken=d,e.isMiddlewareRouteExcluded=f;const t=ve(),r=ne(),n=Ve(),o=Ry(),i=_n(),s=GN(),a=Hl(),c=h=>h.map(m=>{const v=(0,r.isString)(m)?m:m.path,_=s.LegacyRouteConverter.tryConvert(v);try{return(0,r.isString)(m)?{path:_,requestMethod:t.RequestMethod.ALL,pathRegex:(0,o.pathToRegexp)((0,r.addLeadingSlash)(_)).regexp}:{path:_,requestMethod:m.method,pathRegex:(0,o.pathToRegexp)((0,r.addLeadingSlash)(_)).regexp}}catch(g){throw g instanceof TypeError&&s.LegacyRouteConverter.printError(v),g}});e.mapToExcludeRoute=c;const u=(h,m,v)=>{const _=(0,e.mapToExcludeRoute)(m);return(0,n.iterate)([]).concat(h).filter(r.isFunction).map(g=>(0,e.mapToClass)(g,_,v)).toArray()};e.filterMiddleware=u;const p=(h,m,v)=>l(h)?m.length<=0?h:d(class extends h{use(...g){const[y,b,E]=g;return f(y,m,v)?E():super.use(...g)}},h.name):d(class{constructor(){this.use=(..._)=>{const[g,y,b]=_;return f(g,m,v)?b():h(..._)}}});e.mapToClass=p;function l(h){const m=h.toString();if(m.substring(0,5)==="class")return!0;const v=m.split(" ");return v[0]==="function"&&/[A-Z]/.test(v[1]?.[0])&&(0,r.isFunction)(h.prototype?.use)}function d(h,m=(0,i.uid)(21)){return Object.defineProperty(h,"name",{value:m}),h}function f(h,m,v){if(m.length<=0)return!1;const _=v.getRequestMethod(h),g=v.getRequestUrl(h),y=g?g.indexOf("?"):-1,b=y>=0?g.slice(0,y):g;return(0,a.isRouteExcluded)(m,b,t.RequestMethod[_])}})(Km)),Km}var gR;function ZN(){if(gR)return mu;gR=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.MiddlewareBuilder=void 0;const e=ne(),t=Ve(),r=WN();class n{constructor(i,s,a){this.routesMapper=i,this.httpAdapter=s,this.routeInfoPathExtractor=a,this.middlewareCollection=new Set}apply(...i){return new n.ConfigProxy(this,i.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}}return mu.MiddlewareBuilder=n,n.ConfigProxy=class{constructor(o,i,s){this.builder=o,this.middleware=i,this.routeInfoPathExtractor=s,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...o){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(o).reduce((i,s)=>{for(const a of this.routeInfoPathExtractor.extractPathFrom(s))i.push({...s,path:a});return i},[])],this}forRoutes(...o){const{middlewareCollection:i}=this.builder,s=this.getRoutesFlatList(o),a=this.removeOverlappedRoutes(s),c={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:a};return i.add(c),this.builder}getRoutesFlatList(o){const{routesMapper:i}=this.builder;return(0,t.iterate)(o).map(s=>i.mapRouteToRouteInfo(s)).flatten().toArray()}removeOverlappedRoutes(o){const i=/(:[^/]*)/g,s="([^/]*)",a=o.filter(c=>c.path.includes(":")).map(c=>({method:c.method,path:c.path,regex:new RegExp("^("+c.path.replace(i,s)+")$","g")}));return o.filter(c=>{const u=l=>{if(c.method!==l.method)return!1;const d=(0,e.stripEndSlash)(c.path);return d!==l.path&&l.regex.test(d)};return a.find(u)===void 0})}},mu}var yR;function JZ(){return yR||(yR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(ZN(),e)})(Zm)),Zm}var gu={},kd={},bR;function QZ(){if(bR)return kd;bR=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.optionalRequire=e;function e(t,r){try{return r?r():yg(t)}catch{return{}}}return kd}var yu={},ER;function $Z(){if(ER)return yu;ER=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.MiddlewareContainer=void 0;const e=zp(),t=wy(),r=Bl();class n{constructor(i){this.container=i,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(i){if(!this.middleware.has(i)){const s=this.container.getModuleByKey(i);this.middleware.set(i,s.middlewares)}return this.middleware.get(i)}getConfigurations(){return this.configurationSets}insertConfig(i,s){const a=this.getMiddlewareCollection(s),c=this.getTargetConfig(s),u=i||[],p=l=>{const d=l;a.set(d,new r.InstanceWrapper({scope:(0,e.getClassScope)(l),durable:(0,t.isDurable)(l),name:d?.name??d,metatype:l,token:d}))};u.forEach(l=>{[].concat(l.middleware).map(p),c.add(l)})}getTargetConfig(i){return this.configurationSets.has(i)||this.configurationSets.set(i,new Set),this.configurationSets.get(i)}}return yu.MiddlewareContainer=n,yu}var bu={},Eu={},xR;function e4(){if(xR)return Eu;xR=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.InvalidMiddlewareException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.INVALID_MIDDLEWARE_MESSAGE)`${o}`)}}return Eu.InvalidMiddlewareException=r,Eu}var xu={},Ou={},OR;function t4(){if(OR)return Ou;OR=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.ExceptionsHandler=void 0;const e=PN(),t=ne(),r=AN(),n=SN();class o extends n.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,a){this.invokeCustomFilters(s,a)||super.catch(s,a)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,a){if((0,t.isEmpty)(this.filters))return!1;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c&&c.func(s,a),!!c}}return Ou.ExceptionsHandler=o,Ou}var wR;function KN(){if(wR)return xu;wR=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.RouterExceptionFilters=void 0;const e=xe(),t=ne(),r=Ve(),n=TN(),o=t4(),i=ot();class s extends n.BaseExceptionFilterContext{constructor(c,u,p){super(c),this.config=u,this.applicationRef=p}create(c,u,p,l=i.STATIC_CONTEXT,d){this.moduleContext=p;const f=new o.ExceptionsHandler(this.applicationRef),h=this.createContext(c,u,e.EXCEPTION_FILTERS_METADATA,l,d);return(0,t.isEmpty)(h)||f.setCustomFilters(h.reverse()),f}getGlobalMetadata(c=i.STATIC_CONTEXT,u){const p=this.config.getGlobalFilters();if(c===i.STATIC_CONTEXT&&!u)return p;const l=this.config.getGlobalRequestFilters(),d=(0,r.iterate)(l).map(f=>f.getInstanceByContextId(c,u)).filter(f=>!!f).map(f=>f.instance).toArray();return p.concat(d)}}return xu.RouterExceptionFilters=s,xu}var wu={},SR;function YN(){if(SR)return wu;SR=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.RouterProxy=void 0;const e=An();class t{createProxy(n,o){return async(i,s,a)=>{try{await n(i,s,a)}catch(c){const u=new e.ExecutionContextHost([i,s,a]);return o.next(c,u),s}}}createExceptionLayerProxy(n,o){return async(i,s,a,c)=>{try{await n(i,s,a,c)}catch(u){const p=new e.ExecutionContextHost([s,a,c]);return o.next(u,p),a}}}}return wu.RouterProxy=t,wu}var Su={},TR;function r4(){if(TR)return Su;TR=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.MiddlewareResolver=void 0;class e{constructor(r,n){this.middlewareContainer=r,this.injector=n}async resolveInstances(r,n){const o=this.middlewareContainer.getMiddlewareCollection(n),i=async s=>this.resolveMiddlewareInstance(s,o,r);await Promise.all([...o.values()].map(i))}async resolveMiddlewareInstance(r,n,o){await this.injector.loadMiddleware(r,n,o)}}return Su.MiddlewareResolver=e,Su}var Tu={},Pu={},PR;function XN(){if(PR)return Pu;PR=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.RoutePathFactory=void 0;const e=ve(),t=ne(),r=Hl();class n{constructor(i){this.applicationConfig=i}create(i,s){let a=[""];const c=this.getVersion(i);if(c&&i.versioningOptions?.type===e.VersioningType.URI){const u=this.getVersionPrefix(i.versioningOptions);Array.isArray(c)?a=(0,e.flatten)(a.map(p=>c.map(l=>l===e.VERSION_NEUTRAL?p:`${p}/${u}${l}`))):c!==e.VERSION_NEUTRAL&&(a=a.map(p=>`${p}/${u}${c}`))}return a=this.appendToAllIfDefined(a,i.modulePath),a=this.appendToAllIfDefined(a,i.ctrlPath),a=this.appendToAllIfDefined(a,i.methodPath),i.globalPrefix&&(a=a.map(u=>this.isExcludedFromGlobalPrefix(u,s,c,i.versioningOptions)?u:(0,t.stripEndSlash)(i.globalPrefix||"")+u)),a.map(u=>(0,t.addLeadingSlash)(u||"/")).map(u=>u!=="/"?(0,t.stripEndSlash)(u):u)}getVersion(i){return i.methodVersion||i.controllerVersion}getVersionPrefix(i){if(i.type===e.VersioningType.URI){if(i.prefix===!1)return"";if(i.prefix!==void 0)return i.prefix}return"v"}appendToAllIfDefined(i,s){if(!s)return i;const a=(c,u)=>(0,t.stripEndSlash)(c)+(0,t.addLeadingSlash)(u);if(Array.isArray(s)){const c=i.map(u=>s.map(p=>a(u,p)));return(0,e.flatten)(c)}return i.map(c=>a(c,s))}isExcludedFromGlobalPrefix(i,s,a,c){if((0,t.isUndefined)(s))return!1;const p=this.applicationConfig.getGlobalPrefixOptions().exclude;return a&&a!==e.VERSION_NEUTRAL&&c?.type===e.VersioningType.URI&&(i=this.truncateVersionPrefixFromPath(i,a,c)),Array.isArray(p)&&(0,r.isRouteExcluded)(p,i,s)}truncateVersionPrefixFromPath(i,s,a){if(typeof s!="string")return s.forEach(u=>{typeof u=="string"&&(i=this.truncateVersionPrefixFromPath(i,u,a))}),i;const c=`/${this.getVersionPrefix(a)}${s}`;return i.startsWith(c)?i.replace(c,""):i}}return Pu.RoutePathFactory=n,Pu}var AR;function n4(){if(AR)return Tu;AR=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.RouteInfoPathExtractor=void 0;const e=ve(),t=ne(),r=Hl(),n=XN();class o{constructor(s){this.applicationConfig=s,this.routePathFactory=new n.RoutePathFactory(s),this.prefixPath=(0,t.stripEndSlash)((0,t.addLeadingSlash)(this.applicationConfig.getGlobalPrefix())),this.excludedGlobalPrefixRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude,this.versioningConfig=this.applicationConfig.getVersioning()}extractPathsFrom({path:s,method:a,version:c}){const u=this.extractVersionPathFrom(c);if(this.isAWildcard(s)){const p=u.length>0?u.map(l=>[this.prefixPath+l+"$",this.prefixPath+l+(0,t.addLeadingSlash)(s)]).flat():this.prefixPath?[this.prefixPath+"$",this.prefixPath+(0,t.addLeadingSlash)(s)]:[(0,t.addLeadingSlash)(s)];return Array.isArray(this.excludedGlobalPrefixRoutes)?[...p,...this.excludedGlobalPrefixRoutes.map(l=>Array.isArray(u)&&u.length>0?u.map(d=>d+(0,t.addLeadingSlash)(l.path)):(0,t.addLeadingSlash)(l.path)).flat()]:p}return this.extractNonWildcardPathsFrom({path:s,method:a,version:c})}extractPathFrom(s){return this.isAWildcard(s.path)&&!s.version?[(0,t.addLeadingSlash)(s.path)]:this.extractNonWildcardPathsFrom(s)}isAWildcard(s){return["*","/*","/*/","(.*)","/(.*)"].includes(s)?!0:/^\/\{.*\}.*|^\/\*.*$/.test(s)}extractNonWildcardPathsFrom({path:s,method:a,version:c}){const u=this.extractVersionPathFrom(c);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,s,a)?u.length?u.map(p=>p+(0,t.addLeadingSlash)(s)):[(0,t.addLeadingSlash)(s)]:u.length?u.map(p=>this.prefixPath+p+(0,t.addLeadingSlash)(s)):[this.prefixPath+(0,t.addLeadingSlash)(s)]}extractVersionPathFrom(s){if(!s||this.versioningConfig?.type!==e.VersioningType.URI)return[];const a=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(s)?s.map(c=>(0,t.addLeadingSlash)(a+c.toString())):[(0,t.addLeadingSlash)(a+s.toString())]}}return Tu.RouteInfoPathExtractor=o,Tu}var Au={},Ru={},RR;function JN(){if(RR)return Ru;RR=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.PathsExplorer=void 0;const e=xe(),t=ne();class r{constructor(o){this.metadataScanner=o}scanForPaths(o,i){const s=(0,t.isUndefined)(i)?Object.getPrototypeOf(o):i;return this.metadataScanner.getAllMethodNames(s).reduce((a,c)=>{const u=this.exploreMethodMetadata(o,s,c);return u&&a.push(u),a},[])}exploreMethodMetadata(o,i,s){const a=o[s],c=i[s],u=Reflect.getMetadata(e.PATH_METADATA,c);if((0,t.isUndefined)(u))return null;const p=Reflect.getMetadata(e.METHOD_METADATA,c),l=Reflect.getMetadata(e.VERSION_METADATA,c);return{path:(0,t.isString)(u)?[(0,t.addLeadingSlash)(u)]:u.map(f=>(0,t.addLeadingSlash)(f)),requestMethod:p,targetCallback:a,methodName:s,version:l}}}return Ru.PathsExplorer=r,Ru}var Jm={},MR;function QN(){return MR||(MR=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;const r=ae(),n=ve(),o=xe(),i=ne(),s=_i(),a=Hl();e.ROUTES=Symbol("ROUTES"),e.targetModulesByContainer=new WeakMap;let c=t=class{constructor(p,l){this.modulesContainer=p,this.routes=l,this.routes=this.deepCloneRoutes(l),this.initialize()}static register(p){return{module:t,providers:[{provide:e.ROUTES,useValue:p}]}}deepCloneRoutes(p){return p.map(l=>typeof l=="function"?l:l.children?{...l,children:this.deepCloneRoutes(l.children)}:{...l})}initialize(){(0,a.flattenRoutePaths)(this.routes).forEach(l=>{const d=(0,i.normalizePath)(l.path);this.registerModulePathMetadata(l.module,d),this.updateTargetModulesCache(l.module)})}registerModulePathMetadata(p,l){Reflect.defineMetadata(o.MODULE_PATH+this.modulesContainer.applicationId,l,p)}updateTargetModulesCache(p){let l;e.targetModulesByContainer.has(this.modulesContainer)?l=e.targetModulesByContainer.get(this.modulesContainer):(l=new WeakSet,e.targetModulesByContainer.set(this.modulesContainer,l));const d=Array.from(this.modulesContainer.values()).find(f=>f?.metatype===p);d&&l.add(d)}};e.RouterModule=c,e.RouterModule=c=t=r.__decorate([(0,n.Module)({}),r.__param(1,(0,n.Inject)(e.ROUTES)),r.__metadata("design:paramtypes",[s.ModulesContainer,Array])],c)})(Jm)),Jm}var IR;function i4(){if(IR)return Au;IR=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.RoutesMapper=void 0;const e=xe(),t=bp(),r=ne(),n=Tn(),o=JN(),i=QN();class s{constructor(c,u){this.container=c,this.applicationConfig=u,this.pathsExplorer=new o.PathsExplorer(new n.MetadataScanner)}mapRouteToRouteInfo(c){if((0,r.isString)(c))return this.getRouteInfoFromPath(c);const u=this.getRoutePath(c);return this.isRouteInfo(u,c)?this.getRouteInfoFromObject(c):this.getRouteInfoFromController(c,u)}getRouteInfoFromPath(c){return[{path:(0,r.addLeadingSlash)(c),method:-1}]}getRouteInfoFromObject(c){const u={path:(0,r.addLeadingSlash)(c.path),method:c.method};return c.version&&(u.version=c.version),[u]}getRouteInfoFromController(c,u){const p=this.pathsExplorer.scanForPaths(Object.create(c),c.prototype),l=this.getVersionMetadata(c),d=this.applicationConfig.getVersioning(),f=this.getHostModuleOfController(c),h=this.getModulePath(f?.metatype),m=(g,y)=>g.concat(y),v=g=>g===t.VERSION_NEUTRAL?void 0:g,_=(g,y)=>g.path?.flatMap(b=>{let E=h??"";E+=this.normalizeGlobalPath(y)+(0,r.addLeadingSlash)(b);const x={path:E,method:g.requestMethod},O=g.version??l;if(O&&d){if(typeof O!="string"&&Array.isArray(O))return O.map(S=>({...x,version:v(S)}));x.version=v(O)}return x});return[].concat(u).map(g=>p.map(y=>_(y,g)).reduce(m,[])).reduce(m,[])}isRouteInfo(c,u){return(0,r.isUndefined)(c)}normalizeGlobalPath(c){const u=(0,r.addLeadingSlash)(c);return u==="/"?"":u}getRoutePath(c){return Reflect.getMetadata(e.PATH_METADATA,c)}getHostModuleOfController(c){if(!c)return;const u=this.container.getModules(),p=i.targetModulesByContainer.get(u);return p?Array.from(u.values()).filter(d=>p.has(d)).find(({controllers:d})=>d.has(c)):void 0}getModulePath(c){if(!c)return;const u=this.container.getModules();return Reflect.getMetadata(e.MODULE_PATH+u.applicationId,c)??Reflect.getMetadata(e.MODULE_PATH,c)}getVersionMetadata(c){const u=this.applicationConfig.getVersioning();if(u)return Reflect.getMetadata(e.VERSION_METADATA,c)??u.defaultVersion}}return Au.RoutesMapper=s,Au}var CR;function a4(){if(CR)return bu;CR=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.MiddlewareModule=void 0;const e=ve(),t=pi(),r=ne(),n=e4(),o=et(),i=Ll(),s=An(),a=ot(),c=Pn(),u=KN(),p=YN(),l=Hl(),d=ZN(),f=r4(),h=n4(),m=i4();class v{constructor(){this.routerProxy=new p.RouterProxy,this.exceptionFiltersCache=new WeakMap,this.logger=new e.Logger(v.name)}async register(g,y,b,E,x,O,S){this.appOptions=S;const w=y.getHttpAdapterRef();this.routerExceptionFilter=new u.RouterExceptionFilters(y,b,w),this.routesMapper=new m.RoutesMapper(y,b),this.resolver=new f.MiddlewareResolver(g,E),this.routeInfoPathExtractor=new h.RouteInfoPathExtractor(b),this.injector=E,this.container=y,this.httpAdapter=x,this.graphInspector=O;const A=y.getModules();await this.resolveMiddleware(g,A)}async resolveMiddleware(g,y){const b=[...y.entries()],E=async([x,O])=>{await this.loadConfiguration(g,O,x),await this.resolver.resolveInstances(O,x)};await Promise.all(b.map(E))}async loadConfiguration(g,y,b){const{instance:E}=y;if(!E.configure)return;const x=new d.MiddlewareBuilder(this.routesMapper,this.httpAdapter,this.routeInfoPathExtractor);try{await E.configure(x)}catch(S){if(!this.appOptions.preview)throw S;const w=`Warning! "${y.name}" module exposes a "configure" method that throws an exception in the preview mode (possibly due to missing dependencies). Note: you can ignore this message, just be aware that some of those conditional middlewares will not be reflected in your graph.`;this.logger.warn(w)}if(!(x instanceof d.MiddlewareBuilder))return;const O=x.build();g.insertConfig(O,b)}async registerMiddleware(g,y){const b=g.getConfigurations(),E=async(O,S)=>{for(const w of S)await this.registerMiddlewareConfig(g,w,O,y)},x=[...b.entries()].sort(([O],[S])=>{const w=this.container.getModuleByKey(O),A=this.container.getModuleByKey(S),T=w.distance===Number.MAX_VALUE,P=A.distance===Number.MAX_VALUE;return T&&P?0:T?-1:P?1:w.distance-A.distance});for(const[O,S]of x)await E(O,[...S])}async registerMiddlewareConfig(g,y,b,E){const{forRoutes:x}=y;for(const O of x)await this.registerRouteMiddleware(g,O,y,b,E)}async registerRouteMiddleware(g,y,b,E,x){const O=[].concat(b.middleware),S=this.container.getModuleByKey(E);for(const w of O){const A=g.getMiddlewareCollection(E),T=A.get(w);if((0,r.isUndefined)(T))throw new o.RuntimeException;if(T.isTransient)return;this.graphInspector.insertClassNode(S,T,"middleware");const P={type:"middleware",methodName:"use",className:T.name,classNodeId:T.id,metadata:{key:y.path,path:y.path,requestMethod:t.RequestMethod[y.method]??"ALL",version:y.version}};this.graphInspector.insertEntrypointDefinition(P,T.id),await this.bindHandler(T,x,y,S,A)}}async bindHandler(g,y,b,E,x){const{instance:O,metatype:S}=g;if((0,r.isUndefined)(O?.use))throw new n.InvalidMiddlewareException(S.name);if(g.isDependencyTreeStatic()){const T=await this.createProxy(O);return this.registerHandler(y,b,T)}const A=g.isDependencyTreeDurable();await this.registerHandler(y,b,async(T,P,N)=>{try{const D=this.getContextId(T,A),V=await this.injector.loadPerContext(O,E,x,D);return(await this.createProxy(V,D))(T,P,N)}catch(D){let V=this.exceptionFiltersCache.get(O.use);V||(V=this.routerExceptionFilter.create(O,O.use,void 0),this.exceptionFiltersCache.set(O.use,V));const F=new s.ExecutionContextHost([T,P,N]);V.next(D,F)}})}async createProxy(g,y=a.STATIC_CONTEXT){const b=this.routerExceptionFilter.create(g,g.use,void 0,y),E=g.use.bind(g);return this.routerProxy.createProxy(E,b)}async registerHandler(g,y,b){const{method:E}=y,x=this.routeInfoPathExtractor.extractPathsFrom(y),O=(0,l.isRequestMethodAll)(E),S=t.RequestMethod[E],w=await g.createMiddlewareFactory(E),A=O?b:(P,N,D)=>g.getRequestMethod?.(P)===S?b(P,N,D):D(),T=[];x.some(P=>P.match(/^\/?$/))?T.push("/"):T.push(...x),T.forEach(P=>w(P,A))}getContextId(g,y){const b=i.ContextIdFactory.getByRequest(g);if(!g[c.REQUEST_CONTEXT_ID]){Object.defineProperty(g,c.REQUEST_CONTEXT_ID,{value:b,enumerable:!1,writable:!1,configurable:!1});const E=y?b.payload:Object.assign(g,b.payload);this.container.registerRequestProvider(E,b)}return b}}return bu.MiddlewareModule=v,bu}var Mu={},Qm={},Dd={},Iu={},jR;function Vl(){if(jR)return Iu;jR=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.getTransientInstances=t,Iu.getNonTransientInstances=r;const e=Ve();function t(n){return(0,e.iterate)(n).filter(([o,i])=>i.isDependencyTreeStatic()).map(([o,i])=>i.getStaticTransientInstances()).flatten().filter(o=>!!o).map(({instance:o})=>o).toArray()}function r(n){return(0,e.iterate)(n).filter(([o,i])=>i.isDependencyTreeStatic()&&!i.isTransient).map(([o,{instance:i}])=>i).toArray()}return Iu}var qR;function o4(){if(qR)return Dd;qR=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.callModuleBootstrapHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onApplicationBootstrap)}function o(s){return(0,t.iterate)(s).filter(a=>!(0,e.isNil)(a)).filter(n).map(async a=>a.onApplicationBootstrap()).toArray()}async function i(s){const a=s.getNonAliasProviders(),[c,u]=a.shift(),p=[...s.controllers,...a,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onApplicationBootstrap()}return Dd}var Ld={},NR;function s4(){if(NR)return Ld;NR=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.callAppShutdownHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onApplicationShutdown)}function o(s,a){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(n).map(async c=>c.onApplicationShutdown(a)).toArray()}async function i(s,a){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(o(d,a));const f=(0,r.getTransientInstances)(l);await Promise.all(o(f,a));const h=p.instance;h&&n(h)&&p.isDependencyTreeStatic()&&await h.onApplicationShutdown(a)}return Ld}var Ud={},FR;function c4(){if(FR)return Ud;FR=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.callModuleDestroyHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onModuleDestroy)}function o(s){return(0,t.iterate)(s).filter(a=>!(0,e.isNil)(a)).filter(n).map(async a=>a.onModuleDestroy()).toArray()}async function i(s){const a=s.getNonAliasProviders(),[c,u]=a.shift(),p=[...s.controllers,...a,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onModuleDestroy()}return Ud}var zd={},kR;function u4(){if(kR)return zd;kR=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.callModuleInitHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onModuleInit)}function o(s){return(0,t.iterate)(s).filter(a=>!(0,e.isNil)(a)).filter(n).map(async a=>a.onModuleInit()).toArray()}async function i(s){const a=s.getNonAliasProviders(),[c,u]=a.shift(),p=[...s.controllers,...a,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onModuleInit()}return zd}var Bd={},DR;function l4(){if(DR)return Bd;DR=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.callBeforeAppShutdownHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.beforeApplicationShutdown)}function o(s,a){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(n).map(async c=>c.beforeApplicationShutdown(a)).toArray()}async function i(s,a){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(o(d,a));const f=(0,r.getTransientInstances)(l);await Promise.all(o(f,a));const h=p.instance;h&&n(h)&&p.isDependencyTreeStatic()&&await h.beforeApplicationShutdown(a)}return Bd}var LR;function d4(){return LR||(LR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(o4(),e),t.__exportStar(s4(),e),t.__exportStar(c4(),e),t.__exportStar(u4(),e),t.__exportStar(l4(),e)})(Qm)),Qm}var UR;function My(){if(UR)return Mu;UR=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.NestApplicationContext=void 0;const e=ve(),t=ne(),r=Ve(),n=mi(),o=Ul(),i=Ll(),s=d4(),a=kN(),c=gi(),u=UN();class p extends a.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new u.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(d,f={},h=null,m=new Array){super(),this.container=d,this.appOptions=f,this.contextModule=h,this.scope=m,this.isInitialized=!1,this.logger=new e.Logger(p.name,{timestamp:!0}),this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=new Array,this.injector=new c.Injector,this.moduleCompiler=d.getModuleCompiler(),this.appOptions.preview&&this.printInPreviewModeWarning()}selectContextModule(){const d=this.container.getModules().values();this.contextModule=d.next().value}select(d,f){const h=this.container.getModules(),m=this.contextModule.metatype,v=this.scope.concat(m),_=this.container.getModuleTokenFactory(),{type:g,dynamicMetadata:y}=this.moduleCompiler.extractMetadata(d),b=y?_.createForDynamic(g,y,d):_.createForStatic(g,d),E=h.get(b);if(!E)throw new o.UnknownModuleException(g.name);const x=typeof f?.abortOnError<"u"?{...this.appOptions,...f}:this.appOptions;return new p(this.container,x,E,v)}get(d,f={strict:!1}){return f&&f.strict?this.find(d,{moduleId:this.contextModule?.id,each:f.each}):this.find(d,f)}resolve(d,f=(0,i.createContextId)(),h={strict:!1}){return this.resolvePerContext(d,this.contextModule,f,h)}registerRequestByContextId(d,f){this.container.registerRequestProvider(d,f)}async init(){return this.isInitialized?this:(this.initializationPromise=new Promise(async(d,f)=>{try{await this.callInitHook(),await this.callBootstrapHook(),d()}catch(h){f(h)}}),await this.initializationPromise,this.isInitialized=!0,this)}async close(d){await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(d),await this.dispose(),await this.callShutdownHook(d),this.unsubscribeFromProcessSignals()}useLogger(d){e.Logger.overrideLogger(d),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){e.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(d=[],f={}){return(0,t.isEmpty)(d)?d=Object.keys(e.ShutdownSignal).map(h=>e.ShutdownSignal[h]):d=Array.from(new Set(d)),d=(0,r.iterate)(d).map(h=>h.toString().toUpperCase().trim()).filter(h=>!this.activeShutdownSignals.includes(h)).toArray(),this.listenToShutdownSignals(d,f),this}async dispose(){return Promise.resolve()}listenToShutdownSignals(d,f={}){let h=!1;const m=async v=>{try{if(h)return;h=!0,await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(v),await this.dispose(),await this.callShutdownHook(v),d.forEach(_=>process.removeListener(_,m)),f.useProcessExit?process.exit(0):process.kill(process.pid,v)}catch(_){e.Logger.error(n.MESSAGES.ERROR_DURING_SHUTDOWN,_?.stack,p.name),process.exit(1)}};this.shutdownCleanupRef=m,d.forEach(v=>{this.activeShutdownSignals.push(v),process.on(v,m)})}unsubscribeFromProcessSignals(){this.shutdownCleanupRef&&this.activeShutdownSignals.forEach(d=>{process.removeListener(d,this.shutdownCleanupRef)})}async callInitHook(){const d=this.getModulesToTriggerHooksOn();for(const f of d)await(0,s.callModuleInitHook)(f)}async callDestroyHook(){const d=[...this.getModulesToTriggerHooksOn()].reverse();for(const f of d)await(0,s.callModuleDestroyHook)(f)}async callBootstrapHook(){const d=this.getModulesToTriggerHooksOn();for(const f of d)await(0,s.callModuleBootstrapHook)(f)}async callShutdownHook(d){const f=[...this.getModulesToTriggerHooksOn()].reverse();for(const h of f)await(0,s.callAppShutdownHook)(h,d)}async callBeforeShutdownHook(d){const f=[...this.getModulesToTriggerHooksOn()].reverse();for(const h of f)await(0,s.callBeforeAppShutdownHook)(h,d)}assertNotInPreviewMode(d){if(this.appOptions.preview){const f=`Calling the "${d}" in the preview mode is not supported.`;throw this.logger.error(f),new Error(f)}}getModulesToTriggerHooksOn(){if(this._moduleRefsForHooksByDistance)return this._moduleRefsForHooksByDistance;const d=this.container.getModules(),f=(m,v)=>v.distance-m.distance,h=Array.from(d.values()).sort(f);return this._moduleRefsForHooksByDistance=this.appOptions?.preview?h.filter(m=>m.initOnPreview):h,this._moduleRefsForHooksByDistance}printInPreviewModeWarning(){this.logger.warn("------------------------------------------------"),this.logger.warn("Application is running in the PREVIEW mode!"),this.logger.warn("Providers/controllers will not be instantiated."),this.logger.warn("------------------------------------------------")}}return Mu.NestApplicationContext=p,Mu}var Cu={},ut={},zR;function Iy(){if(zR)return ut;zR=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.INVALID_EXECUTION_CONTEXT=ut.VERSIONED_CONTROLLER_MAPPING_MESSAGE=ut.CONTROLLER_MAPPING_MESSAGE=ut.VERSIONED_ROUTE_MAPPED_MESSAGE=ut.ROUTE_MAPPED_MESSAGE=ut.MODULE_INIT_MESSAGE=void 0;const e=pi(),t=dC(),r=(c,u)=>`${u} dependencies initialized`;ut.MODULE_INIT_MESSAGE=r;const n=(c,u)=>`Mapped {${c}, ${e.RequestMethod[u]}} route`;ut.ROUTE_MAPPED_MESSAGE=n;const o=(c,u,p)=>{const d=(Array.isArray(p)?p:[p]).map(f=>f===t.VERSION_NEUTRAL?"Neutral":f).join(",");return`Mapped {${c}, ${e.RequestMethod[u]}} (version: ${d}) route`};ut.VERSIONED_ROUTE_MAPPED_MESSAGE=o;const i=(c,u)=>`${c} {${u}}:`;ut.CONTROLLER_MAPPING_MESSAGE=i;const s=(c,u,p)=>{const d=(Array.isArray(p)?p:[p]).map(f=>f===t.VERSION_NEUTRAL?"Neutral":f).join(",");return`${c} {${u}} (version: ${d}):`};ut.VERSIONED_CONTROLLER_MAPPING_MESSAGE=s;const a=(c,u)=>`Calling ${c} is not allowed in this context. Your current execution context is "${u}".`;return ut.INVALID_EXECUTION_CONTEXT=a,ut}var ju={},qu={},BR;function p4(){if(BR)return qu;BR=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.UnknownRequestMappingException=void 0;const e=et(),t=Ot();class r extends e.RuntimeException{constructor(o){super((0,t.UNKNOWN_REQUEST_MAPPING)(o))}}return qu.UnknownRequestMappingException=r,qu}var $m={},HR;function $N(){return HR||(HR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;const t=pi();e.REQUEST_METHOD_MAP={[t.RequestMethod.GET]:"get",[t.RequestMethod.POST]:"post",[t.RequestMethod.PUT]:"put",[t.RequestMethod.DELETE]:"delete",[t.RequestMethod.PATCH]:"patch",[t.RequestMethod.ALL]:"all",[t.RequestMethod.OPTIONS]:"options",[t.RequestMethod.HEAD]:"head",[t.RequestMethod.SEARCH]:"search",[t.RequestMethod.PROPFIND]:"propfind",[t.RequestMethod.PROPPATCH]:"proppatch",[t.RequestMethod.MKCOL]:"mkcol",[t.RequestMethod.COPY]:"copy",[t.RequestMethod.MOVE]:"move",[t.RequestMethod.LOCK]:"lock",[t.RequestMethod.UNLOCK]:"unlock"};class r{get(o,i){const s=e.REQUEST_METHOD_MAP[i],a=o[s];return a||o.use}}e.RouterMethodFactory=r})($m)),$m}var Nu={},VR;function f4(){if(VR)return Nu;VR=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.RouteParamsFactory=void 0;const e=yp();class t{exchangeKeyForValue(n,o,{req:i,res:s,next:a}){switch(n){case e.RouteParamtypes.NEXT:return a;case e.RouteParamtypes.REQUEST:return i;case e.RouteParamtypes.RESPONSE:return s;case e.RouteParamtypes.BODY:return o&&i.body?i.body[o]:i.body;case e.RouteParamtypes.RAW_BODY:return i.rawBody;case e.RouteParamtypes.PARAM:return o?i.params[o]:i.params;case e.RouteParamtypes.HOST:const c=i.hosts||{};return o?c[o]:c;case e.RouteParamtypes.QUERY:return o?i.query[o]:i.query;case e.RouteParamtypes.HEADERS:return o?i.headers[o.toLowerCase()]:i.headers;case e.RouteParamtypes.SESSION:return i.session;case e.RouteParamtypes.FILE:return i[o||"file"];case e.RouteParamtypes.FILES:return i.files;case e.RouteParamtypes.IP:return i.ip;default:return null}}}return Nu.RouteParamsFactory=t,Nu}var Fu={},ku={},Du={},GR;function h4(){if(GR)return Du;GR=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.SseStream=void 0;const e=ne(),t=mp;function r(o){return(0,e.isObject)(o)?r(JSON.stringify(o)):o.split(/\r\n|\r|\n/).map(i=>`data: ${i}
|
|
140
|
+
`);Ae.UNKNOWN_EXPORT_MESSAGE=l;const d=(m,v)=>`ModuleRef cannot instantiate class (${v} is not constructable).`;Ae.INVALID_CLASS_MESSAGE=d;const f=(m,v)=>`${v||"This class"} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`;Ae.INVALID_CLASS_SCOPE_MESSAGE=f;const h=m=>{const v=m.name;return v?`An invalid controller has been detected. "${v}" does not have the @Controller() decorator but it is being listed in the "controllers" array of some module.`:"An invalid controller has been detected. Perhaps, one of your controllers is missing the @Controller() decorator."};return Ae.UNKNOWN_REQUEST_MAPPING=h,Ae.INVALID_MIDDLEWARE_CONFIGURATION="An invalid middleware configuration has been passed inside the module 'configure()' method.",Ae.UNHANDLED_RUNTIME_EXCEPTION="Unhandled Runtime Exception.",Ae.INVALID_EXCEPTION_FILTER="Invalid exception filters (@UseFilters()).",Ae.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION="Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)",Ae}var $T;function wq(){if($T)return Oc;$T=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.InvalidExceptionFilterException=void 0;const e=et(),t=Ot();class r extends e.RuntimeException{constructor(){super(t.INVALID_EXCEPTION_FILTER)}}return Oc.InvalidExceptionFilterException=r,Oc}var Sc={},eA;function hZ(){if(eA)return Sc;eA=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.ExternalExceptionFilter=void 0;const e=ve();class t{catch(n,o){throw n instanceof Error&&!(n instanceof e.IntrinsicException)&&t.logger.error(n),n}}return Sc.ExternalExceptionFilter=t,t.logger=new e.Logger("ExceptionsHandler"),Sc}var tA;function vZ(){if(tA)return Ec;tA=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.ExternalExceptionsHandler=void 0;const e=Oq(),t=ne(),r=wq(),n=hZ();class o extends n.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,a){const c=this.invokeCustomFilters(s,a);return c||super.catch(s,a)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,a){if((0,t.isEmpty)(this.filters))return null;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c?c.func(s,a):null}}return Ec.ExternalExceptionsHandler=o,Ec}var rA;function mZ(){if(rA)return gc;rA=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.ExternalExceptionFilterContext=void 0;const e=xe(),t=ne(),r=Ve(),n=ot(),o=xq(),i=vZ();class s extends o.BaseExceptionFilterContext{constructor(c,u){super(c),this.config=u}create(c,u,p,l=n.STATIC_CONTEXT,d){this.moduleContext=p;const f=new i.ExternalExceptionsHandler,h=this.createContext(c,u,e.EXCEPTION_FILTERS_METADATA,l,d);return(0,t.isEmpty)(h)||f.setCustomFilters(h.reverse()),f}getGlobalMetadata(c=n.STATIC_CONTEXT,u){if(!this.config)return[];const p=this.config.getGlobalFilters();if(c===n.STATIC_CONTEXT&&!u)return p;const l=this.config.getGlobalRequestFilters(),d=(0,r.iterate)(l).map(f=>f.getInstanceByContextId(c,u)).filter(f=>!!f).map(f=>f.instance).toArray();return p.concat(d)}}return gc.ExternalExceptionFilterContext=s,gc}var Fm={},Pc={},nA;function Sq(){return nA||(nA=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.FORBIDDEN_MESSAGE=void 0,Pc.FORBIDDEN_MESSAGE="Forbidden resource"),Pc}var Tc={},Ac={},iA;function An(){if(iA)return Ac;iA=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.ExecutionContextHost=void 0;class e{constructor(r,n=null,o=null){this.args=r,this.constructorRef=n,this.handler=o,this.contextType="http"}setType(r){r&&(this.contextType=r)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(r){return this.args[r]}switchToRpc(){return Object.assign(this,{getData:()=>this.getArgByIndex(0),getContext:()=>this.getArgByIndex(1)})}switchToHttp(){return Object.assign(this,{getRequest:()=>this.getArgByIndex(0),getResponse:()=>this.getArgByIndex(1),getNext:()=>this.getArgByIndex(2)})}switchToWs(){return Object.assign(this,{getClient:()=>this.getArgByIndex(0),getData:()=>this.getArgByIndex(1),getPattern:()=>this.getArgByIndex(this.getArgs().length-1)})}}return Ac.ExecutionContextHost=e,Ac}var aA;function _Z(){if(aA)return Tc;aA=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.GuardsConsumer=void 0;const e=ne(),t=On(),r=An();class n{async tryActivate(i,s,a,c,u){if(!i||(0,e.isEmpty)(i))return!0;const p=this.createContext(s,a,c);p.setType(u);for(const l of i){const d=l.canActivate(p);if(typeof d=="boolean"){if(!d)return!1;continue}if(!await this.pickResult(d))return!1}return!0}createContext(i,s,a){return new r.ExecutionContextHost(i,s.constructor,a)}async pickResult(i){return i instanceof t.Observable?(0,t.lastValueFrom)(i):i}}return Tc.GuardsConsumer=n,Tc}var Rc={},oA;function gZ(){if(oA)return Rc;oA=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.GuardsContextCreator=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a,c){super(),this.container=a,this.config=c}create(a,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(a,c,e.GUARDS_METADATA,p,l)}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&(p.name||p.canActivate)).map(p=>this.getGuardInstance(p,c,u)).filter(p=>!!p&&(0,t.isFunction)(p.canActivate)).toArray()}getGuardInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.canActivate)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);return u?u.injectables.get(a):void 0}getGlobalMetadata(a=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalGuards();if(a===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestGuards(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(a,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Rc.GuardsContextCreator=i,Rc}var sA;function gy(){return sA||(sA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Sq(),e),t.__exportStar(_Z(),e),t.__exportStar(gZ(),e)})(Fm)),Fm}var km={},Mc={},cA;function yZ(){if(cA)return Mc;cA=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.InterceptorsConsumer=void 0;const e=ne(),t=Ok,r=On(),n=Zg(),o=An();class i{async intercept(a,c,u,p,l,d){if((0,e.isEmpty)(a))return l();const f=this.createContext(c,u,p);f.setType(d);const h=async(m=0)=>{if(m>=a.length)return(0,r.defer)(t.AsyncResource.bind(()=>this.transformDeferred(l)));const v={handle:()=>(0,r.defer)(t.AsyncResource.bind(()=>h(m+1))).pipe((0,n.mergeAll)())};return a[m].intercept(f,v)};return(0,r.defer)(()=>h()).pipe((0,n.mergeAll)())}createContext(a,c,u){return new o.ExecutionContextHost(a,c.constructor,u)}transformDeferred(a){return(0,r.from)(a()).pipe((0,n.switchMap)(c=>c instanceof Promise||c instanceof r.Observable?c:Promise.resolve(c)))}}return Mc.InterceptorsConsumer=i,Mc}var Ic={},uA;function bZ(){if(uA)return Ic;uA=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.InterceptorsContextCreator=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a,c){super(),this.container=a,this.config=c}create(a,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(a,c,e.INTERCEPTORS_METADATA,p,l)}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&(p.name||p.intercept)).map(p=>this.getInterceptorInstance(p,c,u)).filter(p=>p?(0,t.isFunction)(p.intercept):!1).toArray()}getInterceptorInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.intercept)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(a)}getGlobalMetadata(a=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalInterceptors();if(a===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestInterceptors(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(a,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Ic.InterceptorsContextCreator=i,Ic}var lA;function Pq(){return lA||(lA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(yZ(),e),t.__exportStar(bZ(),e)})(km)),km}var Dm={},Cc={},dA;function Tq(){if(dA)return Cc;dA=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.ParamsTokenFactory=void 0;const e=yp();class t{exchangeEnumForString(n){switch(n){case e.RouteParamtypes.BODY:return"body";case e.RouteParamtypes.PARAM:return"param";case e.RouteParamtypes.QUERY:return"query";default:return"custom"}}}return Cc.ParamsTokenFactory=t,Cc}var jc={},pA;function EZ(){if(pA)return jc;pA=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.PipesConsumer=void 0;const e=Tq();class t{constructor(){this.paramsTokenFactory=new e.ParamsTokenFactory}async apply(n,{metatype:o,type:i,data:s},a){const c=this.paramsTokenFactory.exchangeEnumForString(i);return this.applyPipes(n,{metatype:o,type:c,data:s},a)}async applyPipes(n,{metatype:o,type:i,data:s},a){return a.reduce(async(c,u)=>{const p=await c;return u.transform(p,{metatype:o,type:i,data:s})},Promise.resolve(n))}}return jc.PipesConsumer=t,jc}var Nc={},fA;function xZ(){if(fA)return Nc;fA=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.PipesContextCreator=void 0;const e=xe(),t=ne(),r=Ve(),n=Up(),o=ot();class i extends n.ContextCreator{constructor(a,c){super(),this.container=a,this.config=c}create(a,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(a,c,e.PIPES_METADATA,p,l)}createConcreteContext(a,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(a)?[]:(0,r.iterate)(a).filter(p=>p&&(p.name||p.transform)).map(p=>this.getPipeInstance(p,c,u)).filter(p=>!!p&&p.transform&&(0,t.isFunction)(p.transform)).toArray()}getPipeInstance(a,c=o.STATIC_CONTEXT,u){if(!!a.transform)return a;const l=this.getInstanceByMetatype(a);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(a){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(a)}getGlobalMetadata(a=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalPipes();if(a===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestPipes(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(a,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}setModuleContext(a){this.moduleContext=a}}return Nc.PipesContextCreator=i,Nc}var hA;function Aq(){return hA||(hA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Tq(),e),t.__exportStar(EZ(),e),t.__exportStar(xZ(),e)})(Dm)),Dm}var qc={},vA;function Rq(){if(vA)return qc;vA=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.ContextUtils=void 0;const e=xe(),t=ne(),r=An();class n{mapParamType(i){return i.split(":")[0]}reflectCallbackParamtypes(i,s){return Reflect.getMetadata(e.PARAMTYPES_METADATA,i,s)}reflectCallbackMetadata(i,s,a){return Reflect.getMetadata(a,i.constructor,s)}reflectPassthrough(i,s){return Reflect.getMetadata(e.RESPONSE_PASSTHROUGH_METADATA,i.constructor,s)}getArgumentsLength(i,s){return i.length?Math.max(...i.map(a=>s[a].index))+1:0}createNullArray(i){const s=new Array(i);for(let a=0;a<i;++a)s[a]=void 0;return s}mergeParamsMetatypes(i,s){return s?i.map(a=>({...a,metatype:s[a.index]})):i}getCustomFactory(i,s,a){return(0,t.isFunction)(i)?(...c)=>i(s,a(c)):()=>null}getContextFactory(i,s,a){const c=s&&s.constructor;return u=>{const p=new r.ExecutionContextHost(u,c,a);return p.setType(i),p}}}return qc.ContextUtils=n,qc}var Fc={},mA;function OZ(){if(mA)return Fc;mA=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.ExternalErrorProxy=void 0;const e=An();class t{createProxy(n,o,i){return async(...s)=>{try{return await n(...s)}catch(a){const c=new e.ExecutionContextHost(s);return c.setType(i),o.next(a,c)}}}}return Fc.ExternalErrorProxy=t,Fc}var Lm={},_A;function Mq(){return _A||(_A=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;const r=ot();e.HANDLER_METADATA_SYMBOL=Symbol.for("handler_metadata:cache");class n{constructor(){this[t]=new Map}set(i,s,a){const c=this.getMetadataKey(i,s);this[e.HANDLER_METADATA_SYMBOL].set(c,a)}get(i,s){const a=this.getMetadataKey(i,s);return this[e.HANDLER_METADATA_SYMBOL].get(a)}getMetadataKey(i,s){const a=i.constructor;return(a&&(a[r.CONTROLLER_ID_KEY]||a.name))+s}}e.HandlerMetadataStorage=n,t=e.HANDLER_METADATA_SYMBOL})(Lm)),Lm}var gA;function yy(){if(gA)return _c;gA=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.ExternalContextCreator=void 0;const e=ve(),t=xe(),r=ne(),n=On(),o=mZ(),i=gy(),s=Sq(),a=ot(),c=Pq(),u=Aq(),p=Rq(),l=OZ(),d=Mq();class f{constructor(m,v,_,g,y,b,E,x){this.guardsContextCreator=m,this.guardsConsumer=v,this.interceptorsContextCreator=_,this.interceptorsConsumer=g,this.modulesContainer=y,this.pipesContextCreator=b,this.pipesConsumer=E,this.filtersContextCreator=x,this.contextUtils=new p.ContextUtils,this.externalErrorProxy=new l.ExternalErrorProxy,this.handlerMetadataStorage=new d.HandlerMetadataStorage}static fromContainer(m){const v=new i.GuardsContextCreator(m,m.applicationConfig),_=new i.GuardsConsumer,g=new c.InterceptorsContextCreator(m,m.applicationConfig),y=new c.InterceptorsConsumer,b=new u.PipesContextCreator(m,m.applicationConfig),E=new u.PipesConsumer,x=new o.ExternalExceptionFilterContext(m,m.applicationConfig),O=new f(v,_,g,y,m.getModules(),b,E,x);return O.container=m,O}create(m,v,_,g,y,b=a.STATIC_CONTEXT,E,x={interceptors:!0,guards:!0,filters:!0},O="http"){const S=this.getContextModuleKey(m.constructor),{argsLength:w,paramtypes:A,getParamsMetadata:P}=this.getMetadata(m,_,g,y,O),T=this.pipesContextCreator.create(m,v,S,b,E),q=this.guardsContextCreator.create(m,v,S,b,E),D=this.filtersContextCreator.create(m,v,S,b,E),V=x.interceptors?this.interceptorsContextCreator.create(m,v,S,b,E):[],k=P(S,b,E),F=k?this.contextUtils.mergeParamsMetatypes(k,A):[],Z=x.guards?this.createGuardsFn(q,m,v,O):null,J=this.createPipesFn(T,F),U=(C,...N)=>async()=>J?(await J(C,...N),v.apply(m,C)):v.apply(m,N),Q=async(...C)=>{const N=this.contextUtils.createNullArray(w);Z&&await Z(C);const L=await this.interceptorsConsumer.intercept(V,C,m,v,U(N,...C),O);return this.transformToResult(L)};return x.filters?this.externalErrorProxy.createProxy(Q,D,O):Q}getMetadata(m,v,_,g,y){const b=this.handlerMetadataStorage.get(m,v);if(b)return b;const E=this.contextUtils.reflectCallbackMetadata(m,v,_||"")||{},x=Object.keys(E),O=this.contextUtils.getArgumentsLength(x,E),S=this.contextUtils.reflectCallbackParamtypes(m,v),w=this.contextUtils.getContextFactory(y,m,m[v]),P={argsLength:O,paramtypes:S,getParamsMetadata:(T,q=a.STATIC_CONTEXT,D)=>g?this.exchangeKeysForValues(x,E,T,g,q,D,w):null};return this.handlerMetadataStorage.set(m,v,P),P}getContextModuleKey(m){if(!m)return"";const _=this.modulesContainer.entries();for(const[g,y]of _)if(y.hasProvider(m))return g;return""}exchangeKeysForValues(m,v,_,g,y=a.STATIC_CONTEXT,b,E=this.contextUtils.getContextFactory("http")){return this.pipesContextCreator.setModuleContext(_),m.map(x=>{const{index:O,data:S,pipes:w}=v[x],A=this.pipesContextCreator.createConcreteContext(w,y,b),P=this.contextUtils.mapParamType(x);if(x.includes(t.CUSTOM_ROUTE_ARGS_METADATA)){const{factory:D}=v[x],V=this.contextUtils.getCustomFactory(D,S,E);return{index:O,extractValue:V,type:P,data:S,pipes:A}}const T=Number(P);return{index:O,extractValue:(...D)=>g.exchangeKeyForValue(T,S,D),type:T,data:S,pipes:A}})}createPipesFn(m,v){const _=async(g,...y)=>{const b=async E=>{const{index:x,extractValue:O,type:S,data:w,metatype:A,pipes:P}=E,T=O(...y);g[x]=await this.getParamValue(T,{metatype:A,type:S,data:w},m.concat(P))};await Promise.all(v.map(b))};return v.length?_:null}async getParamValue(m,{metatype:v,type:_,data:g},y){return(0,r.isEmpty)(y)?m:this.pipesConsumer.apply(m,{metatype:v,type:_,data:g},y)}async transformToResult(m){return(0,n.isObservable)(m)?(0,n.lastValueFrom)(m):m}createGuardsFn(m,v,_,g){const y=async b=>{if(!await this.guardsConsumer.tryActivate(m,b,v,_,g))throw new e.ForbiddenException(s.FORBIDDEN_MESSAGE)};return m.length?y:null}registerRequestProvider(m,v){this.container.registerRequestProvider(m,v)}}return _c.ExternalContextCreator=f,_c}var yA;function wZ(){return yA||(yA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Ll(),e),t.__exportStar(yy(),e),t.__exportStar(Dl(),e)})(qm)),qm}var Um={},kc={},zm={},Dc={},bA;function Iq(){if(bA)return Dc;bA=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.CircularDependencyException=void 0;const e=et();class t extends e.RuntimeException{constructor(n){const o=n?` inside ${n}`:"";super(`A circular dependency has been detected${o}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()". Note that circular relationships between custom providers (e.g., factories) are not supported since functions cannot be called more than once.`)}}return Dc.CircularDependencyException=t,Dc}var Lc={},EA;function Cq(){if(EA)return Lc;EA=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.UnknownElementException=void 0;const e=et();class t extends e.RuntimeException{constructor(n){n=n&&n.toString(),super(`Nest could not find ${n||"given"} element (this provider does not exist in the current context)`)}}return Lc.UnknownElementException=t,Lc}var Uc={},xA;function SZ(){if(xA)return Uc;xA=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.InvalidClassScopeException=void 0;const e=ne(),t=Ot(),r=et();class n extends r.RuntimeException{constructor(i){let s=(0,e.isFunction)(i)?i.name:i;s=s&&s.toString(),super((0,t.INVALID_CLASS_SCOPE_MESSAGE)`${s}`)}}return Uc.InvalidClassScopeException=n,Uc}var zc={},OA;function PZ(){if(OA)return zc;OA=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.InvalidClassException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.INVALID_CLASS_MESSAGE)`${o}`)}}return zc.InvalidClassException=r,zc}var Bc={},wA;function TZ(){if(wA)return Bc;wA=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.UnknownExportException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i){super((0,e.UNKNOWN_EXPORT_MESSAGE)(o,i))}}return Bc.UnknownExportException=r,Bc}var Hc={},SA;function AZ(){if(SA)return Hc;SA=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.UnknownModuleException=void 0;const e=et();class t extends e.RuntimeException{constructor(n){super(`Nest could not select the given module (${n?`"${n}"`:"it"} does not exist in current context).`)}}return Hc.UnknownModuleException=t,Hc}var Vc={},PA;function RZ(){if(PA)return Vc;PA=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.UndefinedForwardRefException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.UNDEFINED_FORWARDREF_MESSAGE)(o))}}return Vc.UndefinedForwardRefException=r,Vc}var TA;function Ul(){return TA||(TA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Iq(),e),t.__exportStar(et(),e),t.__exportStar(Cq(),e),t.__exportStar(SZ(),e),t.__exportStar(PZ(),e),t.__exportStar(TZ(),e),t.__exportStar(AZ(),e),t.__exportStar(RZ(),e)})(zm)),zm}var Gc={},AA;function by(){if(AA)return Gc;AA=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.InitializeOnPreviewAllowlist=void 0;class e{static add(r){this.allowlist.set(r,!0)}static has(r){return this.allowlist.has(r)}}return Gc.InitializeOnPreviewAllowlist=e,e.allowlist=new WeakMap,Gc}var Wc={},Zc={},RA;function Ey(){return RA||(RA=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.INQUIRER=void 0,Zc.INQUIRER="INQUIRER"),Zc}var Kc={},Yc={},MA;function MZ(){if(MA)return Yc;MA=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.SilentLogger=void 0;const e=ve(),t=()=>{};class r extends e.Logger{constructor(){super(...arguments),this.log=t,this.error=t,this.warn=t,this.debug=t,this.verbose=t,this.fatal=t,this.setLogLevels=t}}return Yc.SilentLogger=r,Yc}var Xc={},Nd={},IA;function zp(){if(IA)return Nd;IA=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.getClassScope=t;const e=xe();function t(r){const n=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return n&&n.scope}return Nd}var qd={},CA;function xy(){if(CA)return qd;CA=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.isDurable=t;const e=xe();function t(r){const n=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return n&&n.durable}return qd}var Jc={},jA;function jq(){if(jA)return Jc;jA=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.AbstractInstanceResolver=void 0;const e=ve(),t=Ul();class r{find(o,i){const s=this.instanceLinksHost.get(o,i),a=({wrapperRef:c})=>{if(c.scope===e.Scope.REQUEST||c.scope===e.Scope.TRANSIENT||!c.isDependencyTreeStatic())throw new t.InvalidClassScopeException(o);return c.instance};return Array.isArray(s)?s.map(a):a(s)}async resolvePerContext(o,i,s,a){const c=a?.strict?this.instanceLinksHost.get(o,{moduleId:i.id,each:a.each}):this.instanceLinksHost.get(o,{each:a?.each}),u=async p=>{const{wrapperRef:l,collection:d}=p;if(l.isDependencyTreeStatic()&&!l.isTransient)return l.instance;const f=l.instance||{constructor:o},h=await this.injector.loadPerContext(f,l.host,d,s,l);if(!h)throw new t.UnknownElementException;return h};return Array.isArray(c)?Promise.all(c.map(p=>u(p))):u(c)}}return Jc.AbstractInstanceResolver=r,Jc}var Qc={},$c={},NA;function IZ(){if(NA)return $c;NA=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.UndefinedDependencyException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i,s){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(o,i,s))}}return $c.UndefinedDependencyException=r,$c}var eu={},qA;function Nq(){if(qA)return eu;qA=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.UnknownDependenciesException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i,s,a){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(o,i,s)),this.type=o,this.context=i,this.metadata=a,this.moduleRef=s&&{id:s.id}}}return eu.UnknownDependenciesException=r,eu}var tu={},FA;function CZ(){if(FA)return tu;FA=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.Barrier=void 0;class e{constructor(r){this.currentCount=0,this.targetCount=r,this.promise=new Promise(n=>{this.resolve=n})}signal(){this.currentCount+=1,this.currentCount===this.targetCount&&this.resolve()}async wait(){return this.promise}async signalAndWait(){return this.signal(),this.wait()}}return tu.Barrier=e,tu}var Bm={},kA;function qq(){return kA||(kA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(Ey(),e)})(Bm)),Bm}var Hm={},un={},ru={},DA;function Oy(){if(DA)return ru;DA=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.DeterministicUuidRegistry=void 0;class e{static get(r,n=0){const o=n?this.hashCode(`${r}_${n}`):this.hashCode(r);return this.registry.has(o)?this.get(r,n+1):(this.registry.set(o,!0),o)}static clear(){this.registry.clear()}static hashCode(r){let n=0;for(let o=0;o<r.length;o++)n=Math.imul(31,n)+r.charCodeAt(o)|0;return n.toString()}}return ru.DeterministicUuidRegistry=e,e.registry=new Map,ru}var LA;function zl(){if(LA)return un;LA=1,Object.defineProperty(un,"__esModule",{value:!0}),un.UuidFactory=un.UuidFactoryMode=void 0;const e=sr(),t=Oy();var r;(function(o){o.Random="random",o.Deterministic="deterministic"})(r||(un.UuidFactoryMode=r={}));class n{static set mode(i){this._mode=i}static get(i=""){return this._mode===r.Deterministic?t.DeterministicUuidRegistry.get(i):(0,e.randomStringGenerator)()}}return un.UuidFactory=n,n._mode=r.Random,un}var Qn={},UA;function jZ(){if(UA)return Qn;UA=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.isClassProvider=t,Qn.isValueProvider=r,Qn.isFactoryProvider=n;const e=ne();function t(o){return!!o?.useClass}function r(o){const i=o?.useValue;return!(0,e.isUndefined)(i)}function n(o){return!!o.useFactory}return Qn}var zA;function Bl(){return zA||(zA=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.InstanceWrapper=e.INSTANCE_ID_SYMBOL=e.INSTANCE_METADATA_SYMBOL=void 0;const r=ve(),n=or(),o=sr(),i=ne(),s=Ve(),a=zl(),c=ot(),u=jZ();e.INSTANCE_METADATA_SYMBOL=Symbol.for("instance_metadata:cache"),e.INSTANCE_ID_SYMBOL=Symbol.for("instance_metadata:id");class p{constructor(d={}){this.isAlias=!1,this.scope=r.Scope.DEFAULT,this.values=new WeakMap,this[t]={},this.initialize(d),this[e.INSTANCE_ID_SYMBOL]=d[e.INSTANCE_ID_SYMBOL]??this.generateUuid()}get id(){return this[e.INSTANCE_ID_SYMBOL]}set instance(d){this.values.set(c.STATIC_CONTEXT,{instance:d})}get instance(){return this.getInstanceByContextId(c.STATIC_CONTEXT).instance}get isNotMetatype(){return!this.metatype||this.isFactory}get isFactory(){return!!this.metatype&&!(0,i.isNil)(this.inject)}get isTransient(){return this.scope===r.Scope.TRANSIENT}getInstanceByContextId(d,f){if(this.scope===r.Scope.TRANSIENT&&f)return this.getInstanceByInquirerId(d,f);const h=this.values.get(d);return h||(d!==c.STATIC_CONTEXT?this.cloneStaticInstance(d):{instance:null,isResolved:!0,isPending:!1})}getInstanceByInquirerId(d,f){let h=this.transientMap.get(f);h||(h=new WeakMap,this.transientMap.set(f,h));const m=h.get(d);return m||this.cloneTransientInstance(d,f)}setInstanceByContextId(d,f,h){if(this.scope===r.Scope.TRANSIENT&&h)return this.setInstanceByInquirerId(d,h,f);this.values.set(d,f)}setInstanceByInquirerId(d,f,h){let m=this.transientMap.get(f);m||(m=new WeakMap,this.transientMap.set(f,m)),m.set(d,h)}removeInstanceByContextId(d,f){if(this.scope===r.Scope.TRANSIENT&&f)return this.removeInstanceByInquirerId(d,f);this.values.delete(d)}removeInstanceByInquirerId(d,f){const h=this.transientMap.get(f);h&&h.delete(d)}addCtorMetadata(d,f){this[e.INSTANCE_METADATA_SYMBOL].dependencies||(this[e.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[e.INSTANCE_METADATA_SYMBOL].dependencies[d]=f}getCtorMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(d,f){this[e.INSTANCE_METADATA_SYMBOL].properties||(this[e.INSTANCE_METADATA_SYMBOL].properties=[]),this[e.INSTANCE_METADATA_SYMBOL].properties.push({key:d,wrapper:f})}getPropertiesMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(d){this[e.INSTANCE_METADATA_SYMBOL].enhancers||(this[e.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[e.INSTANCE_METADATA_SYMBOL].enhancers.push(d)}getEnhancersMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeDurable(d=[]){if(!(0,i.isUndefined)(this.isTreeDurable))return this.isTreeDurable;if(this.scope===r.Scope.REQUEST)return this.isTreeDurable=this.durable===void 0?!1:this.durable,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable;if(this.isDependencyTreeStatic())return!1;const h=this.introspectDepsAttribute((m,v)=>m.some(_=>!_.isDependencyTreeStatic()&&!_.isDependencyTreeDurable(v)),d);return this.isTreeDurable=!h,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable}introspectDepsAttribute(d,f=[]){if(f.includes(this[e.INSTANCE_ID_SYMBOL]))return!1;f=f.concat(this[e.INSTANCE_ID_SYMBOL]);const{dependencies:h,properties:m,enhancers:v}=this[e.INSTANCE_METADATA_SYMBOL];let _=h?d(h,f):!1;return _||!(m||v)||(_=m?d(m.map(g=>g.wrapper),f):!1,_||!v)?_:v?d(v,f):!1}isDependencyTreeStatic(d=[]){return(0,i.isUndefined)(this.isTreeStatic)?this.scope===r.Scope.REQUEST?(this.isTreeStatic=!1,this.printIntrospectedAsRequestScoped(),this.isTreeStatic):(this.isTreeStatic=!this.introspectDepsAttribute((f,h)=>f.some(m=>!m.isDependencyTreeStatic(h)),d),this.isTreeStatic||this.printIntrospectedAsRequestScoped(),this.isTreeStatic):this.isTreeStatic}cloneStaticInstance(d){const f=this.getInstanceByContextId(c.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return f;const h={...f,instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(h.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(d,h),h}cloneTransientInstance(d,f){const m={...this.getInstanceByContextId(c.STATIC_CONTEXT),instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(m.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(d,f,m),m}createPrototype(d){const f=this.getInstanceByContextId(d);if(!(!this.isNewable()||f.isResolved))return Object.create(this.metatype.prototype)}isInRequestScope(d,f){return!this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!f)}isLazyTransient(d,f){const h=!!(f&&!f.isDependencyTreeStatic());return this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&this.isTransient&&h}isExplicitlyRequested(d,f){const h=f===this;return this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&(h||!!(f&&f.scope===r.Scope.TRANSIENT))}isStatic(d,f){if(!this.isDependencyTreeStatic()||d!==c.STATIC_CONTEXT)return!1;if(!this.isTransient)return!0;const h=f&&!f.isDependencyTreeStatic(),m=this.isTransient&&!h,v=f?.getRootInquirer();return!!(m&&f&&!f.isTransient||m&&v&&!v.isTransient||m&&f?.isTransient&&!v)}attachRootInquirer(d){this.isTransient&&(this.rootInquirer=d.getRootInquirer()??d)}getRootInquirer(){return this.rootInquirer}getStaticTransientInstances(){if(!this.transientMap)return[];const d=[...this.transientMap.values()];return(0,s.iterate)(d).map(f=>f.get(c.STATIC_CONTEXT)).filter(f=>!!(f&&f.isConstructorCalled)).toArray()}mergeWith(d){(0,u.isValueProvider)(d)?(this.metatype=null,this.inject=null,this.scope=r.Scope.DEFAULT,this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:d.useValue,isResolved:!0,isPending:!1})):(0,u.isClassProvider)(d)?(this.inject=null,this.metatype=d.useClass):(0,u.isFactoryProvider)(d)&&(this.metatype=d.useFactory,this.inject=d.inject||[])}isNewable(){return(0,i.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}initialize(d){const{instance:f,isResolved:h,...m}=d;Object.assign(this,m),this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:f,isResolved:h}),this.scope===r.Scope.TRANSIENT&&(this.transientMap=new Map)}printIntrospectedAsRequestScoped(){!this.isDebugMode()||this.name==="REQUEST"||(0,i.isString)(this.name)&&p.logger.log(`${n.clc.cyanBright(this.name)}${n.clc.green(" introspected as ")}${n.clc.magentaBright("request-scoped")}`)}printIntrospectedAsDurable(){this.isDebugMode()&&(0,i.isString)(this.name)&&p.logger.log(`${n.clc.cyanBright(this.name)}${n.clc.green(" introspected as ")}${n.clc.magentaBright("durable")}`)}isDebugMode(){return!!process.env.NEST_DEBUG}generateUuid(){let d=this.name?.toString()??this.token?.toString();return d+=this.host?.name??"",d?a.UuidFactory.get(d):(0,o.randomStringGenerator)()}}e.InstanceWrapper=p,t=e.INSTANCE_METADATA_SYMBOL,p.logger=new r.Logger(p.name)})(Hm)),Hm}var nu={},BA;function NZ(){if(BA)return nu;BA=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.SettlementSignal=void 0;class e{constructor(){this._refs=new Set,this.completed=!1,this.settledPromise=new Promise(r=>{this.settleFn=r})}complete(){this.completed=!0,this.settleFn()}error(r){this.completed=!0,this.settleFn(r)}asPromise(){return this.settledPromise}insertRef(r){this._refs.add(r)}isCycle(r){return!this.completed&&this._refs.has(r)}}return nu.SettlementSignal=e,nu}var HA;function _i(){if(HA)return Qc;HA=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.Injector=void 0;const e=ve(),t=xe(),r=or(),n=ne(),o=Ve(),i=wk,s=Ul(),a=et(),c=IZ(),u=Nq(),p=CZ(),l=ot(),d=qq(),f=Bl(),h=NZ();class m{constructor(_){this.options=_,this.logger=new e.Logger("InjectorLogger"),this.instanceDecorator=g=>g,_?.instanceDecorator&&(this.instanceDecorator=_.instanceDecorator)}loadPrototype({token:_},g,y=l.STATIC_CONTEXT){if(!g)return;const b=g.get(_),E=b.createPrototype(y);if(E){const x=new f.InstanceWrapper({...b,instance:E});g.set(_,x)}}async loadInstance(_,g,y,b=l.STATIC_CONTEXT,E){const x=this.getInquirerId(E),O=_.getInstanceByContextId(this.getContextId(b,_),x);if(O.isPending){const T=_.settlementSignal;if(E&&T?.isCycle(E.id))throw new s.CircularDependencyException(`"${_.name}"`);return O.donePromise.then(q=>{if(q)throw q})}const S=this.applySettlementSignal(O,_),w=_.token||_.name,{inject:A}=_,P=g.get(w);if((0,n.isUndefined)(P))throw new a.RuntimeException;if(O.isResolved)return S.complete();try{const T=this.getNowTimestamp(),q=async D=>{const V=await this.resolveProperties(_,y,A,b,_,E),k=await this.instantiateClass(D,_,P,b,E);this.applyProperties(k,V),_.initTime=this.getNowTimestamp()-T,S.complete()};await this.resolveConstructorParams(_,y,A,q,b,_,E)}catch(T){throw _.removeInstanceByContextId(this.getContextId(b,_),x),S.error(T),T}}async loadMiddleware(_,g,y,b=l.STATIC_CONTEXT,E){const{metatype:x,token:O}=_,S=g.get(O);(0,n.isUndefined)(S.instance)&&(S.instance=Object.create(x.prototype),await this.loadInstance(_,g,y,b,E||_))}async loadController(_,g,y=l.STATIC_CONTEXT){const b=g.controllers;await this.loadInstance(_,b,g,y,_),await this.loadEnhancersPerContext(_,y,_)}async loadInjectable(_,g,y=l.STATIC_CONTEXT,b){const E=g.injectables;await this.loadInstance(_,E,g,y,b)}async loadProvider(_,g,y=l.STATIC_CONTEXT,b){const E=g.providers;await this.loadInstance(_,E,g,y,b),await this.loadEnhancersPerContext(_,y,_)}applySettlementSignal(_,g){const y=new h.SettlementSignal;return _.donePromise=y.asPromise(),_.isPending=!0,g.settlementSignal=y,y}async resolveConstructorParams(_,g,y,b,E=l.STATIC_CONTEXT,x,O){const S=_.getCtorMetadata();if(S&&E!==l.STATIC_CONTEXT){const k=await this.loadCtorMetadata(S,E,x,O);return b(k)}const w=!(0,n.isNil)(y),[A,P]=w?this.getFactoryProviderDependencies(_):this.getClassDependencies(_),T=new p.Barrier(A.length);let q=!0;const D=async(k,F)=>{try{if(this.isInquirer(k,O))return T.signal(),O&&O.instance;x?.isTransient&&O&&x.attachRootInquirer(O);const Z=await this.resolveSingleParam(_,k,{index:F,dependencies:A},g,E,x,F);await T.signalAndWait();const J=this.getEffectiveInquirer(Z,x,O,E),U=await this.resolveComponentHost(g,Z,E,J),Q=U.getInstanceByContextId(this.getContextId(E,U),this.getInquirerId(J));return!Q.isResolved&&!U.forwardRef&&(q=!1),Q?.instance}catch(Z){if(T.signal(),!P.includes(F))throw Z;return}},V=await Promise.all(A.map(D));q&&await b(V)}getClassDependencies(_){const g=_.metatype;return[this.reflectConstructorParams(g),this.reflectOptionalParams(g)]}getFactoryProviderDependencies(_){const g=[];function y(E){return!(0,n.isUndefined)(E.token)&&!(0,n.isUndefined)(E.optional)&&!E.prototype}const b=(E,x)=>typeof E!="object"?E:y(E)?(E.optional&&g.push(x),E?.token):E;return[_.inject?.map?.(b),g]}reflectConstructorParams(_){const g=[...Reflect.getMetadata(t.PARAMTYPES_METADATA,_)||[]];return this.reflectSelfParams(_).forEach(({index:b,param:E})=>g[b]=E),g}reflectOptionalParams(_){return Reflect.getMetadata(t.OPTIONAL_DEPS_METADATA,_)||[]}reflectSelfParams(_){return Reflect.getMetadata(t.SELF_DECLARED_DEPS_METADATA,_)||[]}async resolveSingleParam(_,g,y,b,E=l.STATIC_CONTEXT,x,O){if((0,n.isUndefined)(g))throw this.logger.log("Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration."),new c.UndefinedDependencyException(_.name,y,b);const S=this.resolveParamToken(_,g);return this.resolveComponentWrapper(b,S,y,_,E,x,O)}resolveParamToken(_,g){return typeof g=="object"&&"forwardRef"in g?(_.forwardRef=!0,g.forwardRef()):g}async resolveComponentWrapper(_,g,y,b,E=l.STATIC_CONTEXT,x,O){this.printResolvingDependenciesLog(g,x),this.printLookingForProviderLog(g,_);const S=_.providers;return this.lookupComponent(S,_,{...y,name:g},b,E,x,O)}async resolveComponentHost(_,g,y=l.STATIC_CONTEXT,b){const E=this.getInquirerId(b),x=g.getInstanceByContextId(this.getContextId(y,g),E);if(!x.isResolved&&!g.forwardRef?(b?.settlementSignal?.insertRef(g.id),await this.loadProvider(g,g.host??_,y,b)):!x.isResolved&&g.forwardRef&&(y!==l.STATIC_CONTEXT||E)&&x.donePromise&&x.donePromise.then(()=>this.loadProvider(g,_,y,b)).catch(O=>{g.settlementSignal?.error(O)}),g.async){const O=g.getInstanceByContextId(this.getContextId(y,g),E);O.instance=await O.instance,g.setInstanceByContextId(y,O,E)}return g}async lookupComponent(_,g,y,b,E=l.STATIC_CONTEXT,x,O){const S=b.token||b.name,{name:w}=y;if(b&&S===w)throw new u.UnknownDependenciesException(b.name,y,g,{id:b.id});if(w&&_.has(w)){const A=_.get(w);return this.printFoundInModuleLog(w,g),this.addDependencyMetadata(O,b,A),A}return this.lookupComponentInParentModules(y,g,b,E,x,O)}async lookupComponentInParentModules(_,g,y,b=l.STATIC_CONTEXT,E,x){const O=await this.lookupComponentInImports(g,_.name,y,new Set,b,E,x);if((0,n.isNil)(O))throw new u.UnknownDependenciesException(y.name,_,g,{id:y.id});return O}async lookupComponentInImports(_,g,y,b=new Set,E=l.STATIC_CONTEXT,x,O,S){let w=null;const A=_.imports||new Set,P=q=>q;let T=[...A.values()].filter(P);if(S){const q=_.exports;T=T.filter(D=>q.has(D.metatype))}for(const q of T){if(b.has(q.id))continue;this.printLookingForProviderLog(g,q),b.add(q.id);const{providers:D,exports:V}=q;if(!V.has(g)||!D.has(g)){const Z=await this.lookupComponentInImports(q,g,y,b,E,x,O,!0);if(Z)return this.addDependencyMetadata(O,y,Z),Z;continue}this.printFoundInModuleLog(g,q),w=D.get(g),this.addDependencyMetadata(O,y,w);const k=this.getInquirerId(x);if(!w.getInstanceByContextId(this.getContextId(E,w),k).isResolved&&!w.forwardRef)break}return w}async resolveProperties(_,g,y,b=l.STATIC_CONTEXT,E,x){if(!(0,n.isNil)(y))return[];const O=_.getPropertiesMetadata();if(O&&b!==l.STATIC_CONTEXT)return this.loadPropertiesMetadata(O,b,E);const S=this.reflectProperties(_.metatype),w=new p.Barrier(S.length),A=await Promise.all(S.map(async P=>{try{const T={key:P.key,name:P.name};if(this.isInquirer(P.name,x))return w.signal(),x&&x.instance;const q=await this.resolveSingleParam(_,P.name,T,g,b,E,P.key);await w.signalAndWait();const D=this.getEffectiveInquirer(q,E,x,b),V=await this.resolveComponentHost(g,q,b,D);return V?V.getInstanceByContextId(this.getContextId(b,V),this.getInquirerId(D)).instance:void 0}catch(T){if(w.signal(),!P.isOptional)throw T;return}}));return S.map((P,T)=>({...P,instance:A[T]}))}reflectProperties(_){const g=Reflect.getMetadata(t.PROPERTY_DEPS_METADATA,_)||[],y=Reflect.getMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,_)||[];return g.map(b=>({...b,name:b.type,isOptional:y.includes(b.key)}))}applyProperties(_,g){(0,n.isObject)(_)&&(0,o.iterate)(g).filter(y=>!(0,n.isNil)(y.instance)).forEach(y=>_[y.key]=y.instance)}async instantiateClass(_,g,y,b=l.STATIC_CONTEXT,E){const{metatype:x,inject:O}=g,S=this.getInquirerId(E),w=y.getInstanceByContextId(this.getContextId(b,y),S),A=g.isStatic(b,E)||g.isInRequestScope(b,E)||g.isLazyTransient(b,E)||g.isExplicitlyRequested(b,E);if(this.options?.preview&&!g.host?.initOnPreview)return w.isResolved=!0,w.instance;if((0,n.isNil)(O)&&A)w.instance=g.forwardRef?Object.assign(w.instance,new x(..._)):new x(..._),w.instance=this.instanceDecorator(w.instance),w.isConstructorCalled=!0;else if(A){const P=y.metatype(..._);w.instance=await P,w.instance=this.instanceDecorator(w.instance),w.isConstructorCalled=!0}return w.isResolved=!0,w.instance}async loadPerContext(_,g,y,b,E){if(!E){const O=_.constructor;E=y.get(O)}await this.loadInstance(E,y,g,b,E),await this.loadEnhancersPerContext(E,b,E);const x=E.getInstanceByContextId(this.getContextId(b,E),E.id);return x&&x.instance}async loadEnhancersPerContext(_,g,y){const b=_.getEnhancersMetadata()||[],E=x=>{const O=x.host;return this.loadInstance(x,O.injectables,O,g,y)};await Promise.all(b.map(E))}async loadCtorMetadata(_,g,y,b){return(await Promise.all(_.map(async x=>this.resolveScopedComponentHost(x,g,y,b)))).map((x,O)=>{const S=_[O],w=this.getEffectiveInquirer(S,y,b,g);return x?.getInstanceByContextId(this.getContextId(g,x),this.getInquirerId(w)).instance})}async loadPropertiesMetadata(_,g,y){const b=await Promise.all(_.map(async({wrapper:x,key:O})=>({key:O,host:await this.resolveComponentHost(x.host,x,g,y)}))),E=this.getInquirerId(y);return b.map(({key:x,host:O})=>({key:x,name:x,instance:O.getInstanceByContextId(this.getContextId(g,O),E).instance}))}getInquirerId(_){return _?_.id:void 0}getEffectiveInquirer(_,g,y,b){return _?.isTransient&&g?.isTransient&&y&&b!==l.STATIC_CONTEXT?y:g}resolveScopedComponentHost(_,g,y,b){return this.isInquirerRequest(_,b)?b:this.resolveComponentHost(_.host,_,g,this.getEffectiveInquirer(_,y,b,g))}isInquirerRequest(_,g){return _.isTransient&&_.name===d.INQUIRER&&g}isInquirer(_,g){return _===d.INQUIRER&&g}addDependencyMetadata(_,g,y){(0,n.isSymbol)(_)||(0,n.isString)(_)?g.addPropertiesMetadata(_,y):g.addCtorMetadata(_,y)}getTokenName(_){return(0,n.isFunction)(_)?_.name:_.toString()}printResolvingDependenciesLog(_,g){if(!this.isDebugMode())return;const y=this.getTokenName(_),b=(g?.name&&g.name.toString?.())??"unknown",E=b===y,x=`Resolving dependency ${r.clc.cyanBright(y)}${r.clc.green(" in the ")}${r.clc.yellow(b)}${r.clc.green(` provider ${E?"(alias)":""}`)}`;this.logger.log(x)}printLookingForProviderLog(_,g){if(!this.isDebugMode())return;const y=this.getTokenName(_),b=g?.metatype?.name??"unknown";this.logger.log(`Looking for ${r.clc.cyanBright(y)}${r.clc.green(" in ")}${r.clc.magentaBright(b)}`)}printFoundInModuleLog(_,g){if(!this.isDebugMode())return;const y=this.getTokenName(_),b=g?.metatype?.name??"unknown";this.logger.log(`Found ${r.clc.cyanBright(y)}${r.clc.green(" in ")}${r.clc.magentaBright(b)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}getContextId(_,g){return _.getParent?_.getParent({token:g.token,isTreeDurable:g.isDependencyTreeDurable()}):_}getNowTimestamp(){return i.performance.now()}}return Qc.Injector=m,Qc}var iu={},VA;function Fq(){if(VA)return iu;VA=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.InstanceLinksHost=void 0;const e=ne(),t=Cq();class r{constructor(o){this.container=o,this.instanceLinks=new Map,this.initialize()}get(o,i={}){const s=this.instanceLinks.get(o);if(!s)throw new t.UnknownElementException(this.getInstanceNameByToken(o));if(i.each)return s;const a=i.moduleId?s.find(c=>c.moduleId===i.moduleId):s[s.length-1];if(!a)throw new t.UnknownElementException(this.getInstanceNameByToken(o));return a}initialize(){this.container.getModules().forEach(i=>{const{providers:s,injectables:a,controllers:c}=i;s.forEach((u,p)=>this.addLink(u,p,i,"providers")),a.forEach((u,p)=>this.addLink(u,p,i,"injectables")),c.forEach((u,p)=>this.addLink(u,p,i,"controllers"))})}addLink(o,i,s,a){const c={moduleId:s.id,wrapperRef:o,collection:s[a],token:i},u=this.instanceLinks.get(i);u?u.push(c):this.instanceLinks.set(i,[c])}getInstanceNameByToken(o){return(0,e.isFunction)(o)?o?.name:o}}return iu.InstanceLinksHost=r,iu}var GA;function Bp(){if(GA)return Xc;GA=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.ModuleRef=void 0;const e=ve(),t=zp(),r=xy(),n=jq(),o=_i(),i=Fq(),s=Bl();class a extends n.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new i.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(u){super(),this.container=u,this.injector=new o.Injector({preview:u.contextOptions?.preview,instanceDecorator:u.contextOptions?.instrument?.instanceDecorator})}introspect(u){const{wrapperRef:p}=this.instanceLinksHost.get(u);let l=e.Scope.DEFAULT;return p.isDependencyTreeStatic()?p.isTransient&&(l=e.Scope.TRANSIENT):l=e.Scope.REQUEST,{scope:l}}registerRequestByContextId(u,p){this.container.registerRequestProvider(u,p)}async instantiateClass(u,p,l){const d=new s.InstanceWrapper({name:u&&u.name,metatype:u,isResolved:!1,scope:(0,t.getClassScope)(u),durable:(0,r.isDurable)(u),host:p});return new Promise(async(f,h)=>{try{const m=async v=>{const _=await this.injector.resolveProperties(d,p,void 0,l),g=new u(...v);this.injector.applyProperties(g,_),f(g)};await this.injector.resolveConstructorParams(d,p,void 0,m,l)}catch(m){h(m)}})}}return Xc.ModuleRef=a,Xc}var WA;function wy(){if(WA)return Kc;WA=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.LazyModuleLoader=void 0;const e=MZ(),t=Bp();class r{constructor(o,i,s,a,c){this.dependenciesScanner=o,this.instanceLoader=i,this.moduleCompiler=s,this.modulesContainer=a,this.moduleOverrides=c}async load(o,i){this.registerLoggerConfiguration(i);const s=await o(),a=await this.dependenciesScanner.scanForModules({moduleDefinition:s,overrides:this.moduleOverrides,lazy:!0});if(a.length===0){const{token:p}=await this.moduleCompiler.compile(s),l=this.modulesContainer.get(p);return l&&this.getTargetModuleRef(l)}const c=this.createLazyModulesContainer(a);await this.dependenciesScanner.scanModulesForDependencies(c),await this.instanceLoader.createInstancesOfDependencies(c);const[u]=a;return this.getTargetModuleRef(u)}registerLoggerConfiguration(o){o?.logger===!1&&this.instanceLoader.setLogger(new e.SilentLogger)}createLazyModulesContainer(o){return o=Array.from(new Set(o)),new Map(o.map(i=>[i.token,i]))}getTargetModuleRef(o){return o.getProviderByKey(t.ModuleRef).instance}}return Kc.LazyModuleLoader=r,Kc}var au={},ZA;function kq(){if(ZA)return au;ZA=1,Object.defineProperty(au,"__esModule",{value:!0}),au.Reflector=void 0;const e=ve(),t=ne(),r=_n();class n{static createDecorator(i={}){const s=i.key??(0,r.uid)(21),a=c=>(u,p,l)=>{const d=i.transform?i.transform(c):c;(0,e.SetMetadata)(s,d??{})(u,p,l)};return a.KEY=s,a}get(i,s){const a=i.KEY??i;return Reflect.getMetadata(a,s)}getAll(i,s){return(s||[]).map(a=>this.get(i,a))}getAllAndMerge(i,s){const a=this.getAll(i,s).filter(c=>c!==void 0);if((0,t.isEmpty)(a))return a;if(a.length===1){const c=a[0];return(0,t.isObject)(c)?c:a}return a.reduce((c,u)=>Array.isArray(c)?c.concat(u):(0,t.isObject)(c)&&(0,t.isObject)(u)?{...c,...u}:[c,u])}getAllAndOverride(i,s){for(const a of s){const c=this.get(i,a);if(c!==void 0)return c}}}return au.Reflector=n,au}var KA;function Sy(){if(KA)return Wc;KA=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.SerializedGraph=void 0;const e=_r(),t=yy(),r=Dl(),n=Ey(),o=wy(),i=Bp(),s=mi(),a=Tn(),c=kq(),u=Oy();class p{constructor(){this.nodes=new Map,this.edges=new Map,this.entrypoints=new Map,this.extras={orphanedEnhancers:[],attachedEnhancers:[]},this._status="complete"}set status(d){this._status=d}set metadata(d){this._metadata=d}insertNode(d){return d.metadata.type==="provider"&&p.INTERNAL_PROVIDERS.includes(d.metadata.token)&&(d.metadata={...d.metadata,internal:!0}),this.nodes.has(d.id)?this.nodes.get(d.id):(this.nodes.set(d.id,d),d)}insertEdge(d){d.metadata.type==="class-to-class"&&(p.INTERNAL_PROVIDERS.includes(d.metadata.sourceClassToken)||p.INTERNAL_PROVIDERS.includes(d.metadata.targetClassToken))&&(d.metadata={...d.metadata,internal:!0});const f=d.id??this.generateUuidByEdgeDefinition(d),h={...d,id:f};return this.edges.set(f,h),h}insertEntrypoint(d,f){this.entrypoints.has(f)?this.entrypoints.get(f).push(d):this.entrypoints.set(f,[d])}insertOrphanedEnhancer(d){this.extras.orphanedEnhancers.push(d)}insertAttachedEnhancer(d){this.extras.attachedEnhancers.push({nodeId:d})}getNodeById(d){return this.nodes.get(d)}toJSON(){const d={nodes:Object.fromEntries(this.nodes),edges:Object.fromEntries(this.edges),entrypoints:Object.fromEntries(this.entrypoints),extras:this.extras};return this._status&&(d.status=this._status),this._metadata&&(d.metadata=this._metadata),d}toString(){const d=(f,h)=>typeof h=="symbol"?h.toString():typeof h=="function"?h.name??"Function":h;return JSON.stringify(this.toJSON(),d,2)}generateUuidByEdgeDefinition(d){return u.DeterministicUuidRegistry.get(JSON.stringify(d))}}return Wc.SerializedGraph=p,p.INTERNAL_PROVIDERS=[e.ApplicationConfig,i.ModuleRef,r.HttpAdapterHost,o.LazyModuleLoader,t.ExternalContextCreator,s.ModulesContainer,c.Reflector,p,r.HttpAdapterHost.name,c.Reflector.name,a.REQUEST,n.INQUIRER],Wc}var ou={},YA;function qZ(){if(YA)return ou;YA=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.ModuleCompiler=void 0;class e{constructor(r){this._moduleOpaqueKeyFactory=r}get moduleOpaqueKeyFactory(){return this._moduleOpaqueKeyFactory}async compile(r){r=await r;const{type:n,dynamicMetadata:o}=this.extractMetadata(r),i=o?this._moduleOpaqueKeyFactory.createForDynamic(n,o,r):this._moduleOpaqueKeyFactory.createForStatic(n,r);return{type:n,dynamicMetadata:o,token:i}}extractMetadata(r){if(!this.isDynamicModule(r))return{type:r?.forwardRef?r.forwardRef():r,dynamicMetadata:void 0};const{module:n,...o}=r;return{type:n,dynamicMetadata:o}}isDynamicModule(r){return!!r.module}}return ou.ModuleCompiler=e,ou}var $n={},su={},XA;function FZ(){if(XA)return su;XA=1,Object.defineProperty(su,"__esModule",{value:!0}),su.requestProvider=void 0;const e=ve(),t=Tn(),r=()=>{};return su.requestProvider={provide:t.REQUEST,scope:e.Scope.REQUEST,useFactory:r},su}var Vm={},JA;function Dq(){return JA||(JA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(kq(),e)})(Vm)),Vm}var cu={},QA;function kZ(){if(QA)return cu;QA=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.inquirerProvider=void 0;const e=ve(),t=Ey(),r=()=>{};return cu.inquirerProvider={provide:t.INQUIRER,scope:e.Scope.TRANSIENT,useFactory:r},cu}var $A;function Hp(){if($A)return $n;$A=1;var e;Object.defineProperty($n,"__esModule",{value:!0}),$n.InternalCoreModule=void 0;const t=ae(),r=ve(),n=FZ(),o=Dq(),i=kZ(),s={provide:o.Reflector.name,useExisting:o.Reflector};let a=e=class{static register(u){return{module:e,providers:[...u],exports:[...u.map(p=>p.provide)]}}};return $n.InternalCoreModule=a,$n.InternalCoreModule=a=e=t.__decorate([(0,r.Global)(),(0,r.Module)({providers:[o.Reflector,s,n.requestProvider,i.inquirerProvider],exports:[o.Reflector,s,n.requestProvider,i.inquirerProvider]})],a),$n}var uu={},eR;function DZ(){if(eR)return uu;eR=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.InternalProvidersStorage=void 0;const e=Dl();class t{constructor(){this._httpAdapterHost=new e.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(n){this._httpAdapter=n}}return uu.InternalProvidersStorage=t,uu}var lu={},tR;function LZ(){if(tR)return lu;tR=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.Module=void 0;const e=xe(),t=bp(),r=sr(),n=ne(),o=Ve(),i=_r(),s=Ul(),a=Ll(),c=zp(),u=xy(),p=zl(),l=ot(),d=Bl(),f=Bp();class h{constructor(v,_){this._metatype=v,this.container=_,this._imports=new Set,this._providers=new Map,this._injectables=new Map,this._middlewares=new Map,this._controllers=new Map,this._entryProviderKeys=new Set,this._exports=new Set,this._distance=0,this._initOnPreview=!1,this._isGlobal=!1,this.addCoreProviders(),this._id=this.generateUuid()}get id(){return this._id}get token(){return this._token}set token(v){this._token=v}get name(){return this.metatype.name}get isGlobal(){return this._isGlobal}set isGlobal(v){this._isGlobal=v}get initOnPreview(){return this._initOnPreview}set initOnPreview(v){this._initOnPreview=v}get providers(){return this._providers}get middlewares(){return this._middlewares}get imports(){return this._imports}get injectables(){return this._injectables}get controllers(){return this._controllers}get entryProviders(){return Array.from(this._entryProviderKeys).map(v=>this.providers.get(v))}get exports(){return this._exports}get instance(){if(!this._providers.has(this._metatype))throw new s.RuntimeException;return this._providers.get(this._metatype).instance}get metatype(){return this._metatype}get distance(){return this._distance}set distance(v){this._distance=v}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){const v=this.createModuleReferenceType();this._providers.set(f.ModuleRef,new d.InstanceWrapper({token:f.ModuleRef,name:f.ModuleRef.name,metatype:f.ModuleRef,isResolved:!0,instance:new v,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new d.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(i.ApplicationConfig,new d.InstanceWrapper({token:i.ApplicationConfig,name:i.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(v,_,g){if(this.isCustomProvider(v))return this.addCustomProvider(v,this._injectables,_);let y=this.injectables.get(v);if(y||(y=new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),subtype:_,host:this}),this._injectables.set(v,y)),g){const b=this._controllers.get(g)||this._providers.get(g);b&&b.addEnhancerMetadata(y)}return y}addProvider(v,_){if(this.isCustomProvider(v))return this.isEntryProvider(v.provide)&&this._entryProviderKeys.add(v.provide),this.addCustomProvider(v,this._providers,_);const g=this._providers.has(v);return(this.isTransientProvider(v)||this.isRequestScopeProvider(v))&&g||(this._providers.set(v,new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),host:this})),this.isEntryProvider(v)&&this._entryProviderKeys.add(v)),v}isCustomProvider(v){return!(0,n.isNil)(v.provide)}addCustomProvider(v,_,g){return this.isCustomClass(v)?this.addCustomClass(v,_,g):this.isCustomValue(v)?this.addCustomValue(v,_,g):this.isCustomFactory(v)?this.addCustomFactory(v,_,g):this.isCustomUseExisting(v)&&this.addCustomUseExisting(v,_,g),v.provide}isCustomClass(v){return!(0,n.isUndefined)(v.useClass)}isCustomValue(v){return(0,n.isObject)(v)&&Object.prototype.hasOwnProperty.call(v,"useValue")}isCustomFactory(v){return!(0,n.isUndefined)(v.useFactory)}isCustomUseExisting(v){return!(0,n.isUndefined)(v.useExisting)}isDynamicModule(v){return v&&v.module}addCustomClass(v,_,g){let{scope:y,durable:b}=v;const{useClass:E}=v;(0,n.isUndefined)(y)&&(y=(0,c.getClassScope)(E)),(0,n.isUndefined)(b)&&(b=(0,u.isDurable)(E));const x=v.provide;_.set(x,new d.InstanceWrapper({token:x,name:E?.name||E,metatype:E,instance:null,isResolved:!1,scope:y,durable:b,host:this,subtype:g}))}addCustomValue(v,_,g){const{useValue:y,provide:b}=v,E=this.container.contextOptions?.instrument?.instanceDecorator;_.set(b,new d.InstanceWrapper({token:b,name:b?.name||b,metatype:null,instance:E?E(y):y,isResolved:!0,async:y instanceof Promise,host:this,subtype:g}))}addCustomFactory(v,_,g){const{useFactory:y,inject:b,scope:E,durable:x,provide:O}=v;_.set(O,new d.InstanceWrapper({token:O,name:O?.name||O,metatype:y,instance:null,isResolved:!1,inject:b||[],scope:E,durable:x,host:this,subtype:g}))}addCustomUseExisting(v,_,g){const{useExisting:y,provide:b}=v;_.set(b,new d.InstanceWrapper({token:b,name:b?.name||b,metatype:(E=>E),instance:null,isResolved:!1,inject:[y],host:this,isAlias:!0,subtype:g}))}addExportedProviderOrModule(v){const _=g=>this._exports.add(this.validateExportedProvider(g));if(this.isCustomProvider(v))return this.addCustomExportedProvider(v);if((0,n.isString)(v)||(0,n.isSymbol)(v))return _(v);if(this.isDynamicModule(v)){const{module:g}=v;return _(g)}_(v)}addCustomExportedProvider(v){const _=v.provide;if((0,n.isString)(_)||(0,n.isSymbol)(_))return this._exports.add(this.validateExportedProvider(_));this._exports.add(this.validateExportedProvider(_))}validateExportedProvider(v){if(this._providers.has(v))return v;if(!(0,o.iterate)(this._imports.values()).filter(g=>!!g).map(({metatype:g})=>g).filter(g=>!!g).toArray().includes(v)){const{name:g}=this.metatype,y=(0,n.isFunction)(v)?v.name:v;throw new s.UnknownExportException(y,g)}return v}addController(v){this._controllers.set(v,new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),host:this})),this.assignControllerUniqueId(v)}assignControllerUniqueId(v){Object.defineProperty(v,l.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,r.randomStringGenerator)()})}addImport(v){this._imports.add(v)}replace(v,_){if(_.isProvider&&this.hasProvider(v))return this._providers.get(v).mergeWith({provide:v,..._});if(!_.isProvider&&this.hasInjectable(v))return this._injectables.get(v).mergeWith({provide:v,..._})}hasProvider(v){return this._providers.has(v)}hasInjectable(v){return this._injectables.has(v)}getProviderByKey(v){return this._providers.get(v)}getProviderById(v){return Array.from(this._providers.values()).find(_=>_.id===v)}getControllerById(v){return Array.from(this._controllers.values()).find(_=>_.id===v)}getInjectableById(v){return Array.from(this._injectables.values()).find(_=>_.id===v)}getMiddlewareById(v){return Array.from(this._middlewares.values()).find(_=>_.id===v)}getNonAliasProviders(){return[...this._providers].filter(([v,_])=>!_.isAlias)}createModuleReferenceType(){const v=this;return class extends f.ModuleRef{constructor(){super(v.container)}get(_,g={}){return g.strict??=!0,g.each??=!1,this.find(_,g.strict?{moduleId:v.id,each:g.each}:g)}resolve(_,g=(0,a.createContextId)(),y={}){return y.strict??=!0,y.each??=!1,this.resolvePerContext(_,v,g,y)}async create(_,g){if(!(_&&(0,n.isFunction)(_)&&_.prototype))throw new s.InvalidClassException(_);return this.instantiateClass(_,v,g)}}}isEntryProvider(v){return typeof v=="function"?!!Reflect.getMetadata(e.ENTRY_PROVIDER_WATERMARK,v):!1}generateUuid(){const _=this.token?this.token.includes(":")?this.token.split(":")[1]:this.token:this.name;return _?p.UuidFactory.get(`M__${_}`):(0,r.randomStringGenerator)()}isTransientProvider(v){return(0,c.getClassScope)(v)===t.Scope.TRANSIENT}isRequestScopeProvider(v){return(0,c.getClassScope)(v)===t.Scope.REQUEST}}return lu.Module=h,lu}var du={},rR;function UZ(){if(rR)return du;rR=1,Object.defineProperty(du,"__esModule",{value:!0}),du.ByReferenceModuleOpaqueKeyFactory=void 0;const e=sr(),t=ci,r=Symbol("K_MODULE_ID");class n{constructor(i){this.keyGenerationStrategy=i?.keyGenerationStrategy??"random"}createForStatic(i,s=i){return this.getOrCreateModuleId(i,void 0,s)}createForDynamic(i,s,a){return this.getOrCreateModuleId(i,s,a)}getOrCreateModuleId(i,s,a){if(a[r])return a[r];let c;return this.keyGenerationStrategy==="random"?c=this.generateRandomString():c=s?`${this.generateRandomString()}:${this.hashString(i.name+JSON.stringify(s))}`:`${this.generateRandomString()}:${this.hashString(i.toString())}`,a[r]=c,c}hashString(i){return(0,t.createHash)("sha256").update(i).digest("hex")}generateRandomString(){return(0,e.randomStringGenerator)()}}return du.ByReferenceModuleOpaqueKeyFactory=n,du}var pu={},Gm,nR;function zZ(){if(nR)return Gm;nR=1,Gm=i,i.default=i,i.stable=u,i.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(d,f,h,m){typeof m>"u"&&(m=o()),a(d,"",0,[],void 0,0,m);var v;try{n.length===0?v=JSON.stringify(d,f,h):v=JSON.stringify(d,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var _=r.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return v}function s(d,f,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:d}),r.push([m,h,f,v])):n.push([f,h,d]):(m[h]=d,r.push([m,h,f]))}function a(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)a(d[y],y,y,m,d,_,g);else{var b=Object.keys(d);for(y=0;y<b.length;y++){var E=b[y];a(d[E],E,y,m,d,_,g)}}m.pop()}}function c(d,f){return d<f?-1:d>f?1:0}function u(d,f,h,m){typeof m>"u"&&(m=o());var v=p(d,"",0,[],void 0,0,m)||d,_;try{n.length===0?_=JSON.stringify(v,f,h):_=JSON.stringify(v,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var g=r.pop();g.length===4?Object.defineProperty(g[0],g[1],g[3]):g[0][g[1]]=g[2]}}return _}function p(d,f,h,m,v,_,g){_+=1;var y;if(typeof d=="object"&&d!==null){for(y=0;y<m.length;y++)if(m[y]===d){s(t,d,f,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof g.depthLimit<"u"&&_>g.depthLimit){s(e,d,f,v);return}if(typeof g.edgesLimit<"u"&&h+1>g.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(y=0;y<d.length;y++)p(d[y],y,y,m,d,_,g);else{var b={},E=Object.keys(d).sort(c);for(y=0;y<E.length;y++){var x=E[y];p(d[x],x,y,m,d,_,g),b[x]=d[x]}if(typeof v<"u")r.push([v,f,d]),v[f]=b;else return b}m.pop()}}function l(d){return d=typeof d<"u"?d:function(f,h){return h},function(f,h){if(n.length>0)for(var m=0;m<n.length;m++){var v=n[m];if(v[1]===f&&v[0]===h){h=v[2],n.splice(m,1);break}}return d.call(this,f,h)}}return Gm}var iR;function BZ(){if(iR)return pu;iR=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.DeepHashedModuleOpaqueKeyFactory=void 0;const e=yt(),t=sr(),r=ne(),n=ci,o=zZ(),i="class ",s=i.length;class a{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new e.Logger(a.name,{timestamp:!0})}createForStatic(u){const p=this.getModuleId(u),l=this.getModuleName(u),d=`${p}_${l}`;if(this.moduleTokenCache.has(d))return this.moduleTokenCache.get(d);const f=this.hashString(d);return this.moduleTokenCache.set(d,f),f}createForDynamic(u,p){const l=this.getModuleId(u),d=this.getModuleName(u),f={id:l,module:d,dynamic:p},h=performance.now(),m=this.getStringifiedOpaqueToken(f),v=performance.now()-h;if(v>10){const _=v.toFixed(2);this.logger.warn(`The module "${f.module}" is taking ${_}ms to serialize, this may be caused by larger objects statically assigned to the module. Consider changing the "moduleIdGeneratorAlgorithm" option to "reference" to improve the performance.`)}return this.hashString(m)}getStringifiedOpaqueToken(u){return u?(0,o.default)(u,this.replacer):""}getModuleId(u){let p=this.moduleIdsCache.get(u);return p||(p=(0,t.randomStringGenerator)(),this.moduleIdsCache.set(u,p),p)}getModuleName(u){return u.name}hashString(u){return(0,n.createHash)("sha256").update(u).digest("hex")}replacer(u,p){if((0,r.isFunction)(p)){const l=p.toString();return l.slice(0,s)===i?p.name:l}return(0,r.isSymbol)(p)?p.toString():p}}return pu.DeepHashedModuleOpaqueKeyFactory=a,pu}var aR;function Py(){if(aR)return kc;aR=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.NestContainer=void 0;const e=xe(),t=yq(),r=Ul(),n=by(),o=Sy(),i=Tn(),s=qZ(),a=Hp(),c=DZ(),u=LZ(),p=mi(),l=UZ(),d=BZ();class f{constructor(m=void 0,v=void 0){this._applicationConfig=m,this._contextOptions=v,this.globalModules=new Set,this.modules=new p.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new c.InternalProvidersStorage,this._serializedGraph=new o.SerializedGraph;const _=this._contextOptions?.moduleIdGeneratorAlgorithm==="deep-hash"?new d.DeepHashedModuleOpaqueKeyFactory:new l.ByReferenceModuleOpaqueKeyFactory({keyGenerationStrategy:this._contextOptions?.snapshot?"shallow":"random"});this.moduleCompiler=new s.ModuleCompiler(_)}get serializedGraph(){return this._serializedGraph}get applicationConfig(){return this._applicationConfig}get contextOptions(){return this._contextOptions}setHttpAdapter(m){if(this.internalProvidersStorage.httpAdapter=m,!this.internalProvidersStorage.httpAdapterHost)return;const v=this.internalProvidersStorage.httpAdapterHost;v.httpAdapter=m}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}async addModule(m,v){if(!m)throw new r.UndefinedForwardRefException(v);const{type:_,dynamicMetadata:g,token:y}=await this.moduleCompiler.compile(m);return this.modules.has(y)?{moduleRef:this.modules.get(y),inserted:!0}:{moduleRef:await this.setModule({token:y,type:_,dynamicMetadata:g},v),inserted:!0}}async replaceModule(m,v,_){if(!m||!v)throw new r.UndefinedForwardRefException(_);const{token:g}=await this.moduleCompiler.compile(m),{type:y,dynamicMetadata:b}=await this.moduleCompiler.compile(v);return{moduleRef:await this.setModule({token:g,type:y,dynamicMetadata:b},_),inserted:!1}}async setModule({token:m,dynamicMetadata:v,type:_},g){const y=new u.Module(_,this);y.token=m,y.initOnPreview=this.shouldInitOnPreview(_),this.modules.set(m,y);const b=[].concat(g,_);return await this.addDynamicMetadata(m,v,b),this.isGlobalModule(_,v)&&(y.isGlobal=!0,y.distance=Number.MAX_VALUE,this.addGlobalModule(y)),y}async addDynamicMetadata(m,v,_){if(!v)return;this.dynamicModulesMetadata.set(m,v);const{imports:g}=v;await this.addDynamicModules(g,_)}async addDynamicModules(m,v){m&&await Promise.all(m.map(_=>this.addModule(_,v)))}isGlobalModule(m,v){return v&&v.global?!0:!!Reflect.getMetadata(e.GLOBAL_MODULE_METADATA,m)}addGlobalModule(m){this.globalModules.add(m)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(m){return this.modules.get(m)}getInternalCoreModuleRef(){return this.internalCoreModule}async addImport(m,v){if(!this.modules.has(v))return;const _=this.modules.get(v),{token:g}=await this.moduleCompiler.compile(m),y=this.modules.get(g);_.addImport(y)}addProvider(m,v,_){const g=this.modules.get(v);if(!m)throw new r.CircularDependencyException(g?.metatype.name);if(!g)throw new r.UnknownModuleException;const y=g.addProvider(m,_),b=g.getProviderByKey(y);return t.DiscoverableMetaHostCollection.inspectProvider(this.modules,b),y}addInjectable(m,v,_,g){if(!this.modules.has(v))throw new r.UnknownModuleException;return this.modules.get(v).addInjectable(m,_,g)}addExportedProviderOrModule(m,v){if(!this.modules.has(v))throw new r.UnknownModuleException;this.modules.get(v).addExportedProviderOrModule(m)}addController(m,v){if(!this.modules.has(v))throw new r.UnknownModuleException;const _=this.modules.get(v);_.addController(m);const g=_.controllers.get(m);t.DiscoverableMetaHostCollection.inspectController(this.modules,g)}clear(){this.modules.clear()}replace(m,v){this.modules.forEach(_=>_.replace(m,v))}bindGlobalScope(){this.modules.forEach(m=>this.bindGlobalsToImports(m))}bindGlobalsToImports(m){this.globalModules.forEach(v=>this.bindGlobalModuleToModule(m,v))}bindGlobalModuleToModule(m,v){m===v||m===this.internalCoreModule||m.addImport(v)}getDynamicMetadataByToken(m,v){const _=this.dynamicModulesMetadata.get(m);return v?_?.[v]??[]:_}registerCoreModuleRef(m){this.internalCoreModule=m,this.modules[a.InternalCoreModule.name]=m}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(m,v){this.internalCoreModule.getProviderByKey(i.REQUEST).setInstanceByContextId(v,{instance:m,isResolved:!0})}shouldInitOnPreview(m){return n.InitializeOnPreviewAllowlist.has(m)}}return kc.NestContainer=f,kc}var oR;function Lq(){return oR||(oR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Py(),e),t.__exportStar(qq(),e),t.__exportStar(wy(),e),t.__exportStar(Bp(),e),t.__exportStar(mi(),e)})(Um)),Um}var Wm={},fu={},hu={},sR;function Uq(){if(sR)return hu;sR=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.PartialGraphHost=void 0;class e{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(r){this.partialGraph=r}}return hu.PartialGraphHost=e,hu}var cR;function Vp(){if(cR)return fu;cR=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.GraphInspector=void 0;const e=Nq(),t=Oy(),r=Uq();class n{constructor(i){this.container=i,this.enhancersMetadataCache=new Array,this.graph=i.serializedGraph}inspectModules(i=this.container.getModules()){for(const s of i.values())this.insertModuleNode(s),this.insertClassNodes(s),this.insertModuleToModuleEdges(s);this.enhancersMetadataCache.forEach(s=>this.insertEnhancerEdge(s)),t.DeterministicUuidRegistry.clear()}registerPartial(i){this.graph.status="partial",i instanceof e.UnknownDependenciesException?this.graph.metadata={cause:{type:"unknown-dependencies",context:i.context,moduleId:i.moduleRef?.id,nodeId:i.metadata?.id}}:this.graph.metadata={cause:{type:"unknown",error:i}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(i,s){i.getCtorMetadata()?.forEach((u,p)=>this.insertClassToClassEdge(i,u,s,p,"constructor")),i.getPropertiesMetadata()?.forEach(({key:u,wrapper:p})=>this.insertClassToClassEdge(i,p,s,u,"property"))}insertEnhancerMetadataCache(i){this.enhancersMetadataCache.push(i)}insertOrphanedEnhancer(i){this.graph.insertOrphanedEnhancer({...i,ref:i.ref?.constructor?.name??"Object"})}insertAttachedEnhancer(i){const s=this.graph.getNodeById(i.id);s.metadata.global=!0,this.graph.insertAttachedEnhancer(s.id)}insertEntrypointDefinition(i,s){i={...i,id:`${i.classNodeId}_${i.methodName}`},this.graph.insertEntrypoint(i,s)}insertClassNode(i,s,a){this.graph.insertNode({id:s.id,label:s.name,parent:i.id,metadata:{type:a,internal:s.metatype===i.metatype,sourceModuleName:i.name,durable:s.isDependencyTreeDurable(),static:s.isDependencyTreeStatic(),scope:s.scope,transient:s.isTransient,exported:i.exports.has(s.token),token:s.token,subtype:s.subtype,initTime:s.initTime}})}insertModuleNode(i){const s=this.container.getDynamicMetadataByToken(i.token),a={id:i.id,label:i.name,metadata:{type:"module",global:i.isGlobal,dynamic:!!s,internal:i.name==="InternalCoreModule"}};this.graph.insertNode(a)}insertModuleToModuleEdges(i){for(const s of i.imports)this.graph.insertEdge({source:i.id,target:s.id,metadata:{type:"module-to-module",sourceModuleName:i.name,targetModuleName:s.name}})}insertEnhancerEdge(i){const s=this.container.getModuleByKey(i.moduleToken),a=s.controllers.get(i.classRef)??s.providers.get(i.classRef),c=this.graph.getNodeById(a.id),u=c.metadata.enhancers??[];if(i.enhancerInstanceWrapper)this.insertClassToClassEdge(a,i.enhancerInstanceWrapper,s,void 0,"decorator"),u.push({id:i.enhancerInstanceWrapper.id,methodKey:i.methodKey,subtype:i.subtype});else{const p=i.enhancerRef.constructor?.name??i.enhancerRef.name;u.push({name:p,methodKey:i.methodKey,subtype:i.subtype})}c.metadata.enhancers=u}insertClassToClassEdge(i,s,a,c,u){this.graph.insertEdge({source:i.id,target:s.id,metadata:{type:"class-to-class",sourceModuleName:a.name,sourceClassName:i.name,targetClassName:s.name,sourceClassToken:i.token,targetClassToken:s.token,targetModuleName:s.host?.name,keyOrIndex:c,injectionType:u}})}insertClassNodes(i){i.providers.forEach(s=>this.insertClassNode(i,s,"provider")),i.injectables.forEach(s=>this.insertClassNode(i,s,"injectable")),i.controllers.forEach(s=>this.insertClassNode(i,s,"controller"))}}return fu.GraphInspector=n,fu}var uR;function HZ(){return uR||(uR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Vp(),e),t.__exportStar(by(),e),t.__exportStar(Uq(),e),t.__exportStar(Sy(),e)})(Wm)),Wm}var Zm={},vu={},Km={},gt={},lR;function Ty(){if(lR)return gt;lR=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.PathError=gt.TokenData=void 0,gt.parse=u,gt.compile=p,gt.match=f,gt.pathToRegexp=h,gt.stringify=b;const e="/",t=O=>O,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function i(O){return O.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function s(O){return O.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class a{constructor(S,w){this.tokens=S,this.originalPath=w}}gt.TokenData=a;class c extends TypeError{constructor(S,w){let A=S;w&&(A+=`: ${w}`),A+="; visit https://git.new/pathToRegexpError for info",super(A),this.originalPath=w}}gt.PathError=c;function u(O,S={}){const{encodePath:w=t}=S,A=[...O],P=[];let T=0,q=0;function D(){let k="";if(r.test(A[T]))do k+=A[T++];while(n.test(A[T]));else if(A[T]==='"'){let F=T;for(;T++<A.length;){if(A[T]==='"'){T++,F=0;break}A[T]==="\\"&&T++,k+=A[T]}if(F)throw new c(`Unterminated quote at index ${F}`,O)}if(!k)throw new c(`Missing parameter name at index ${T}`,O);return k}for(;T<A.length;){const k=A[T],F=o[k];F?P.push({type:F,index:T++,value:k}):k==="\\"?P.push({type:"escape",index:T++,value:A[T++]}):k===":"?P.push({type:"param",index:T++,value:D()}):k==="*"?P.push({type:"wildcard",index:T++,value:D()}):P.push({type:"char",index:T++,value:k})}P.push({type:"end",index:T,value:""});function V(k){const F=[];for(;;){const Z=P[q++];if(Z.type===k)break;if(Z.type==="char"||Z.type==="escape"){let J=Z.value,U=P[q];for(;U.type==="char"||U.type==="escape";)J+=U.value,U=P[++q];F.push({type:"text",value:w(J)});continue}if(Z.type==="param"||Z.type==="wildcard"){F.push({type:Z.type,name:Z.value});continue}if(Z.type==="{"){F.push({type:"group",tokens:V("}")});continue}throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${k}`,O)}return F}return new a(V("end"),O)}function p(O,S={}){const{encode:w=encodeURIComponent,delimiter:A=e}=S,P=typeof O=="object"?O:u(O,S),T=l(P.tokens,A,w);return function(D={}){const[V,...k]=T(D);if(k.length)throw new TypeError(`Missing parameters: ${k.join(", ")}`);return V}}function l(O,S,w){const A=O.map(P=>d(P,S,w));return P=>{const T=[""];for(const q of A){const[D,...V]=q(P);T[0]+=D,T.push(...V)}return T}}function d(O,S,w){if(O.type==="text")return()=>[O.value];if(O.type==="group"){const P=l(O.tokens,S,w);return T=>{const[q,...D]=P(T);return D.length?[""]:[q]}}const A=w||t;return O.type==="wildcard"&&w!==!1?P=>{const T=P[O.name];if(T==null)return["",O.name];if(!Array.isArray(T)||T.length===0)throw new TypeError(`Expected "${O.name}" to be a non-empty array`);return[T.map((q,D)=>{if(typeof q!="string")throw new TypeError(`Expected "${O.name}/${D}" to be a string`);return A(q)}).join(S)]}:P=>{const T=P[O.name];if(T==null)return["",O.name];if(typeof T!="string")throw new TypeError(`Expected "${O.name}" to be a string`);return[A(T)]}}function f(O,S={}){const{decode:w=decodeURIComponent,delimiter:A=e}=S,{regexp:P,keys:T}=h(O,S),q=T.map(D=>w===!1?t:D.type==="param"?w:V=>V.split(A).map(w));return function(V){const k=P.exec(V);if(!k)return!1;const F=k[0],Z=Object.create(null);for(let J=1;J<k.length;J++){if(k[J]===void 0)continue;const U=T[J-1],Q=q[J-1];Z[U.name]=Q(k[J])}return{path:F,params:Z}}}function h(O,S={}){const{delimiter:w=e,end:A=!0,sensitive:P=!1,trailing:T=!0}=S,q=[],D=P?"":"i",V=[];for(const Z of m(O,[])){const J=typeof Z=="object"?Z:u(Z,S);for(const U of v(J.tokens,0,[]))V.push(_(U,w,q,J.originalPath))}let k=`^(?:${V.join("|")})`;return T&&(k+=`(?:${s(w)}$)?`),k+=A?"$":`(?=${s(w)}|$)`,{regexp:new RegExp(k,D),keys:q}}function m(O,S){if(Array.isArray(O))for(const w of O)m(w,S);else S.push(O);return S}function*v(O,S,w){if(S===O.length)return yield w;const A=O[S];if(A.type==="group")for(const P of v(A.tokens,0,w.slice()))yield*v(O,S+1,P);else w.push(A);yield*v(O,S+1,w)}function _(O,S,w,A){let P="",T="",q=!0;for(const D of O){if(D.type==="text"){P+=s(D.value),T+=D.value,q||(q=D.value.includes(S));continue}if(D.type==="param"||D.type==="wildcard"){if(!q&&!T)throw new c(`Missing text before "${D.name}" ${D.type}`,A);D.type==="param"?P+=`(${g(S,q?"":T)}+)`:P+="([\\s\\S]+)",w.push(D),T="",q=!1;continue}}return P}function g(O,S){return S.length<2?O.length<2?`[^${s(O+S)}]`:`(?:(?!${s(O)})[^${s(S)}])`:O.length<2?`(?:(?!${s(S)})[^${s(O)}])`:`(?:(?!${s(S)}|${s(O)})[\\s\\S])`}function y(O){let S="",w=0;function A(P){return E(P)&&x(O[w])?P:JSON.stringify(P)}for(;w<O.length;){const P=O[w++];if(P.type==="text"){S+=i(P.value);continue}if(P.type==="group"){S+=`{${y(P.tokens)}}`;continue}if(P.type==="param"){S+=`:${A(P.name)}`;continue}if(P.type==="wildcard"){S+=`*${A(P.name)}`;continue}throw new TypeError(`Unknown token type: ${P.type}`)}return S}function b(O){return y(O.tokens)}function E(O){const[S,...w]=O;return r.test(S)&&w.every(A=>n.test(A))}function x(O){return O&&O.type==="text"?!n.test(O.value[0]):!0}return gt}var mu={},dR;function zq(){if(dR)return mu;dR=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.LegacyRouteConverter=void 0;const e=ve(),t=(n,o)=>`Unsupported route path: "${o}". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide.`;class r{static tryConvert(o,i){const s=o.startsWith("/")?o:`/${o}`,a=o.endsWith("/")?s:`${s}/`,u=i?.logs??!0?this.printWarning.bind(this):()=>{};return a.endsWith("/(.*)/")?(a!=="/(.*)/"&&u(o),o.replace("(.*)","{*path}")):a.endsWith("/*/")?(a!=="/*/"&&u(o),o.replace("*","{*path}")):a.endsWith("/+/")?(u(o),o.replace("/+","/*path")):a.includes("/*/")?(u(o),o.replaceAll("/*/",(p,l)=>`/*path${l}/`)):o}static printError(o){this.logger.error(t`${o}`)}static printWarning(o){this.logger.warn(t`${o}`+" Attempting to auto-convert...")}}return mu.LegacyRouteConverter=r,r.logger=new e.Logger(r.name),mu}var Ym={},Xm={},pR;function VZ(){return pR||(pR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=o;const t=ve(),r=ne(),n=i=>t.RequestMethod.ALL===i||i===-1;e.isRequestMethodAll=n;function o(i,s,a){return i.some(c=>(0,e.isRequestMethodAll)(c.requestMethod)||c.requestMethod===a?c.pathRegex.exec((0,r.addLeadingSlash)(s)):!1)}})(Xm)),Xm}var Fd={},fR;function GZ(){if(fR)return Fd;fR=1,Object.defineProperty(Fd,"__esModule",{value:!0}),Fd.flattenRoutePaths=t;const e=ne();function t(r){const n=[];return r.forEach(o=>{if(o.module&&o.path&&n.push({module:o.module,path:o.path}),o.children){const i=o.children;i.forEach(s=>{!(0,e.isString)(s)&&(0,e.isString)(s.path)?s.path=(0,e.normalizePath)((0,e.normalizePath)(o.path)+(0,e.normalizePath)(s.path)):n.push({path:o.path,module:s})}),n.push(...t(i))}}),n}return Fd}var hR;function Hl(){return hR||(hR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(VZ(),e),t.__exportStar(GZ(),e)})(Ym)),Ym}var vR;function Bq(){return vR||(vR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mapToClass=e.filterMiddleware=e.mapToExcludeRoute=void 0,e.isMiddlewareClass=l,e.assignToken=d,e.isMiddlewareRouteExcluded=f;const t=ve(),r=ne(),n=Ve(),o=Ty(),i=_n(),s=zq(),a=Hl(),c=h=>h.map(m=>{const v=(0,r.isString)(m)?m:m.path,_=s.LegacyRouteConverter.tryConvert(v);try{return(0,r.isString)(m)?{path:_,requestMethod:t.RequestMethod.ALL,pathRegex:(0,o.pathToRegexp)((0,r.addLeadingSlash)(_)).regexp}:{path:_,requestMethod:m.method,pathRegex:(0,o.pathToRegexp)((0,r.addLeadingSlash)(_)).regexp}}catch(g){throw g instanceof TypeError&&s.LegacyRouteConverter.printError(v),g}});e.mapToExcludeRoute=c;const u=(h,m,v)=>{const _=(0,e.mapToExcludeRoute)(m);return(0,n.iterate)([]).concat(h).filter(r.isFunction).map(g=>(0,e.mapToClass)(g,_,v)).toArray()};e.filterMiddleware=u;const p=(h,m,v)=>l(h)?m.length<=0?h:d(class extends h{use(...g){const[y,b,E]=g;return f(y,m,v)?E():super.use(...g)}},h.name):d(class{constructor(){this.use=(..._)=>{const[g,y,b]=_;return f(g,m,v)?b():h(..._)}}});e.mapToClass=p;function l(h){const m=h.toString();if(m.substring(0,5)==="class")return!0;const v=m.split(" ");return v[0]==="function"&&/[A-Z]/.test(v[1]?.[0])&&(0,r.isFunction)(h.prototype?.use)}function d(h,m=(0,i.uid)(21)){return Object.defineProperty(h,"name",{value:m}),h}function f(h,m,v){if(m.length<=0)return!1;const _=v.getRequestMethod(h),g=v.getRequestUrl(h),y=g?g.indexOf("?"):-1,b=y>=0?g.slice(0,y):g;return(0,a.isRouteExcluded)(m,b,t.RequestMethod[_])}})(Km)),Km}var mR;function Hq(){if(mR)return vu;mR=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.MiddlewareBuilder=void 0;const e=ne(),t=Ve(),r=Bq();class n{constructor(i,s,a){this.routesMapper=i,this.httpAdapter=s,this.routeInfoPathExtractor=a,this.middlewareCollection=new Set}apply(...i){return new n.ConfigProxy(this,i.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}}return vu.MiddlewareBuilder=n,n.ConfigProxy=class{constructor(o,i,s){this.builder=o,this.middleware=i,this.routeInfoPathExtractor=s,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...o){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(o).reduce((i,s)=>{for(const a of this.routeInfoPathExtractor.extractPathFrom(s))i.push({...s,path:a});return i},[])],this}forRoutes(...o){const{middlewareCollection:i}=this.builder,s=this.getRoutesFlatList(o),a=this.removeOverlappedRoutes(s),c={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:a};return i.add(c),this.builder}getRoutesFlatList(o){const{routesMapper:i}=this.builder;return(0,t.iterate)(o).map(s=>i.mapRouteToRouteInfo(s)).flatten().toArray()}removeOverlappedRoutes(o){const i=/(:[^/]*)/g,s="([^/]*)",a=o.filter(c=>c.path.includes(":")).map(c=>({method:c.method,path:c.path,regex:new RegExp("^("+c.path.replace(i,s)+")$","g")}));return o.filter(c=>{const u=l=>{if(c.method!==l.method)return!1;const d=(0,e.stripEndSlash)(c.path);return d!==l.path&&l.regex.test(d)};return a.find(u)===void 0})}},vu}var _R;function WZ(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(Hq(),e)})(Zm)),Zm}var _u={},kd={},gR;function ZZ(){if(gR)return kd;gR=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.optionalRequire=e;function e(t,r){try{return r?r():_g(t)}catch{return{}}}return kd}var gu={},yR;function KZ(){if(yR)return gu;yR=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.MiddlewareContainer=void 0;const e=zp(),t=xy(),r=Bl();class n{constructor(i){this.container=i,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(i){if(!this.middleware.has(i)){const s=this.container.getModuleByKey(i);this.middleware.set(i,s.middlewares)}return this.middleware.get(i)}getConfigurations(){return this.configurationSets}insertConfig(i,s){const a=this.getMiddlewareCollection(s),c=this.getTargetConfig(s),u=i||[],p=l=>{const d=l;a.set(d,new r.InstanceWrapper({scope:(0,e.getClassScope)(l),durable:(0,t.isDurable)(l),name:d?.name??d,metatype:l,token:d}))};u.forEach(l=>{[].concat(l.middleware).map(p),c.add(l)})}getTargetConfig(i){return this.configurationSets.has(i)||this.configurationSets.set(i,new Set),this.configurationSets.get(i)}}return gu.MiddlewareContainer=n,gu}var yu={},bu={},bR;function YZ(){if(bR)return bu;bR=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.InvalidMiddlewareException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.INVALID_MIDDLEWARE_MESSAGE)`${o}`)}}return bu.InvalidMiddlewareException=r,bu}var Eu={},xu={},ER;function XZ(){if(ER)return xu;ER=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.ExceptionsHandler=void 0;const e=Oq(),t=ne(),r=wq(),n=Eq();class o extends n.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,a){this.invokeCustomFilters(s,a)||super.catch(s,a)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,a){if((0,t.isEmpty)(this.filters))return!1;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c&&c.func(s,a),!!c}}return xu.ExceptionsHandler=o,xu}var xR;function Vq(){if(xR)return Eu;xR=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.RouterExceptionFilters=void 0;const e=xe(),t=ne(),r=Ve(),n=xq(),o=XZ(),i=ot();class s extends n.BaseExceptionFilterContext{constructor(c,u,p){super(c),this.config=u,this.applicationRef=p}create(c,u,p,l=i.STATIC_CONTEXT,d){this.moduleContext=p;const f=new o.ExceptionsHandler(this.applicationRef),h=this.createContext(c,u,e.EXCEPTION_FILTERS_METADATA,l,d);return(0,t.isEmpty)(h)||f.setCustomFilters(h.reverse()),f}getGlobalMetadata(c=i.STATIC_CONTEXT,u){const p=this.config.getGlobalFilters();if(c===i.STATIC_CONTEXT&&!u)return p;const l=this.config.getGlobalRequestFilters(),d=(0,r.iterate)(l).map(f=>f.getInstanceByContextId(c,u)).filter(f=>!!f).map(f=>f.instance).toArray();return p.concat(d)}}return Eu.RouterExceptionFilters=s,Eu}var Ou={},OR;function Gq(){if(OR)return Ou;OR=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.RouterProxy=void 0;const e=An();class t{createProxy(n,o){return async(i,s,a)=>{try{await n(i,s,a)}catch(c){const u=new e.ExecutionContextHost([i,s,a]);return o.next(c,u),s}}}createExceptionLayerProxy(n,o){return async(i,s,a,c)=>{try{await n(i,s,a,c)}catch(u){const p=new e.ExecutionContextHost([s,a,c]);return o.next(u,p),a}}}}return Ou.RouterProxy=t,Ou}var wu={},wR;function JZ(){if(wR)return wu;wR=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.MiddlewareResolver=void 0;class e{constructor(r,n){this.middlewareContainer=r,this.injector=n}async resolveInstances(r,n){const o=this.middlewareContainer.getMiddlewareCollection(n),i=async s=>this.resolveMiddlewareInstance(s,o,r);await Promise.all([...o.values()].map(i))}async resolveMiddlewareInstance(r,n,o){await this.injector.loadMiddleware(r,n,o)}}return wu.MiddlewareResolver=e,wu}var Su={},Pu={},SR;function Wq(){if(SR)return Pu;SR=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.RoutePathFactory=void 0;const e=ve(),t=ne(),r=Hl();class n{constructor(i){this.applicationConfig=i}create(i,s){let a=[""];const c=this.getVersion(i);if(c&&i.versioningOptions?.type===e.VersioningType.URI){const u=this.getVersionPrefix(i.versioningOptions);Array.isArray(c)?a=(0,e.flatten)(a.map(p=>c.map(l=>l===e.VERSION_NEUTRAL?p:`${p}/${u}${l}`))):c!==e.VERSION_NEUTRAL&&(a=a.map(p=>`${p}/${u}${c}`))}return a=this.appendToAllIfDefined(a,i.modulePath),a=this.appendToAllIfDefined(a,i.ctrlPath),a=this.appendToAllIfDefined(a,i.methodPath),i.globalPrefix&&(a=a.map(u=>this.isExcludedFromGlobalPrefix(u,s,c,i.versioningOptions)?u:(0,t.stripEndSlash)(i.globalPrefix||"")+u)),a.map(u=>(0,t.addLeadingSlash)(u||"/")).map(u=>u!=="/"?(0,t.stripEndSlash)(u):u)}getVersion(i){return i.methodVersion||i.controllerVersion}getVersionPrefix(i){if(i.type===e.VersioningType.URI){if(i.prefix===!1)return"";if(i.prefix!==void 0)return i.prefix}return"v"}appendToAllIfDefined(i,s){if(!s)return i;const a=(c,u)=>(0,t.stripEndSlash)(c)+(0,t.addLeadingSlash)(u);if(Array.isArray(s)){const c=i.map(u=>s.map(p=>a(u,p)));return(0,e.flatten)(c)}return i.map(c=>a(c,s))}isExcludedFromGlobalPrefix(i,s,a,c){if((0,t.isUndefined)(s))return!1;const p=this.applicationConfig.getGlobalPrefixOptions().exclude;return a&&a!==e.VERSION_NEUTRAL&&c?.type===e.VersioningType.URI&&(i=this.truncateVersionPrefixFromPath(i,a,c)),Array.isArray(p)&&(0,r.isRouteExcluded)(p,i,s)}truncateVersionPrefixFromPath(i,s,a){if(typeof s!="string")return s.forEach(u=>{typeof u=="string"&&(i=this.truncateVersionPrefixFromPath(i,u,a))}),i;const c=`/${this.getVersionPrefix(a)}${s}`;return i.startsWith(c)?i.replace(c,""):i}}return Pu.RoutePathFactory=n,Pu}var PR;function QZ(){if(PR)return Su;PR=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.RouteInfoPathExtractor=void 0;const e=ve(),t=ne(),r=Hl(),n=Wq();class o{constructor(s){this.applicationConfig=s,this.routePathFactory=new n.RoutePathFactory(s),this.prefixPath=(0,t.stripEndSlash)((0,t.addLeadingSlash)(this.applicationConfig.getGlobalPrefix())),this.excludedGlobalPrefixRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude,this.versioningConfig=this.applicationConfig.getVersioning()}extractPathsFrom({path:s,method:a,version:c}){const u=this.extractVersionPathFrom(c);if(this.isAWildcard(s)){const p=u.length>0?u.map(l=>[this.prefixPath+l+"$",this.prefixPath+l+(0,t.addLeadingSlash)(s)]).flat():this.prefixPath?[this.prefixPath+"$",this.prefixPath+(0,t.addLeadingSlash)(s)]:[(0,t.addLeadingSlash)(s)];return Array.isArray(this.excludedGlobalPrefixRoutes)?[...p,...this.excludedGlobalPrefixRoutes.map(l=>Array.isArray(u)&&u.length>0?u.map(d=>d+(0,t.addLeadingSlash)(l.path)):(0,t.addLeadingSlash)(l.path)).flat()]:p}return this.extractNonWildcardPathsFrom({path:s,method:a,version:c})}extractPathFrom(s){return this.isAWildcard(s.path)&&!s.version?[(0,t.addLeadingSlash)(s.path)]:this.extractNonWildcardPathsFrom(s)}isAWildcard(s){return["*","/*","/*/","(.*)","/(.*)"].includes(s)?!0:/^\/\{.*\}.*|^\/\*.*$/.test(s)}extractNonWildcardPathsFrom({path:s,method:a,version:c}){const u=this.extractVersionPathFrom(c);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,s,a)?u.length?u.map(p=>p+(0,t.addLeadingSlash)(s)):[(0,t.addLeadingSlash)(s)]:u.length?u.map(p=>this.prefixPath+p+(0,t.addLeadingSlash)(s)):[this.prefixPath+(0,t.addLeadingSlash)(s)]}extractVersionPathFrom(s){if(!s||this.versioningConfig?.type!==e.VersioningType.URI)return[];const a=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(s)?s.map(c=>(0,t.addLeadingSlash)(a+c.toString())):[(0,t.addLeadingSlash)(a+s.toString())]}}return Su.RouteInfoPathExtractor=o,Su}var Tu={},Au={},TR;function Zq(){if(TR)return Au;TR=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.PathsExplorer=void 0;const e=xe(),t=ne();class r{constructor(o){this.metadataScanner=o}scanForPaths(o,i){const s=(0,t.isUndefined)(i)?Object.getPrototypeOf(o):i;return this.metadataScanner.getAllMethodNames(s).reduce((a,c)=>{const u=this.exploreMethodMetadata(o,s,c);return u&&a.push(u),a},[])}exploreMethodMetadata(o,i,s){const a=o[s],c=i[s],u=Reflect.getMetadata(e.PATH_METADATA,c);if((0,t.isUndefined)(u))return null;const p=Reflect.getMetadata(e.METHOD_METADATA,c),l=Reflect.getMetadata(e.VERSION_METADATA,c);return{path:(0,t.isString)(u)?[(0,t.addLeadingSlash)(u)]:u.map(f=>(0,t.addLeadingSlash)(f)),requestMethod:p,targetCallback:a,methodName:s,version:l}}}return Au.PathsExplorer=r,Au}var Jm={},AR;function Kq(){return AR||(AR=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;const r=ae(),n=ve(),o=xe(),i=ne(),s=mi(),a=Hl();e.ROUTES=Symbol("ROUTES"),e.targetModulesByContainer=new WeakMap;let c=t=class{constructor(p,l){this.modulesContainer=p,this.routes=l,this.routes=this.deepCloneRoutes(l),this.initialize()}static register(p){return{module:t,providers:[{provide:e.ROUTES,useValue:p}]}}deepCloneRoutes(p){return p.map(l=>typeof l=="function"?l:l.children?{...l,children:this.deepCloneRoutes(l.children)}:{...l})}initialize(){(0,a.flattenRoutePaths)(this.routes).forEach(l=>{const d=(0,i.normalizePath)(l.path);this.registerModulePathMetadata(l.module,d),this.updateTargetModulesCache(l.module)})}registerModulePathMetadata(p,l){Reflect.defineMetadata(o.MODULE_PATH+this.modulesContainer.applicationId,l,p)}updateTargetModulesCache(p){let l;e.targetModulesByContainer.has(this.modulesContainer)?l=e.targetModulesByContainer.get(this.modulesContainer):(l=new WeakSet,e.targetModulesByContainer.set(this.modulesContainer,l));const d=Array.from(this.modulesContainer.values()).find(f=>f?.metatype===p);d&&l.add(d)}};e.RouterModule=c,e.RouterModule=c=t=r.__decorate([(0,n.Module)({}),r.__param(1,(0,n.Inject)(e.ROUTES)),r.__metadata("design:paramtypes",[s.ModulesContainer,Array])],c)})(Jm)),Jm}var RR;function $Z(){if(RR)return Tu;RR=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.RoutesMapper=void 0;const e=xe(),t=bp(),r=ne(),n=Pn(),o=Zq(),i=Kq();class s{constructor(c,u){this.container=c,this.applicationConfig=u,this.pathsExplorer=new o.PathsExplorer(new n.MetadataScanner)}mapRouteToRouteInfo(c){if((0,r.isString)(c))return this.getRouteInfoFromPath(c);const u=this.getRoutePath(c);return this.isRouteInfo(u,c)?this.getRouteInfoFromObject(c):this.getRouteInfoFromController(c,u)}getRouteInfoFromPath(c){return[{path:(0,r.addLeadingSlash)(c),method:-1}]}getRouteInfoFromObject(c){const u={path:(0,r.addLeadingSlash)(c.path),method:c.method};return c.version&&(u.version=c.version),[u]}getRouteInfoFromController(c,u){const p=this.pathsExplorer.scanForPaths(Object.create(c),c.prototype),l=this.getVersionMetadata(c),d=this.applicationConfig.getVersioning(),f=this.getHostModuleOfController(c),h=this.getModulePath(f?.metatype),m=(g,y)=>g.concat(y),v=g=>g===t.VERSION_NEUTRAL?void 0:g,_=(g,y)=>g.path?.flatMap(b=>{let E=h??"";E+=this.normalizeGlobalPath(y)+(0,r.addLeadingSlash)(b);const x={path:E,method:g.requestMethod},O=g.version??l;if(O&&d){if(typeof O!="string"&&Array.isArray(O))return O.map(S=>({...x,version:v(S)}));x.version=v(O)}return x});return[].concat(u).map(g=>p.map(y=>_(y,g)).reduce(m,[])).reduce(m,[])}isRouteInfo(c,u){return(0,r.isUndefined)(c)}normalizeGlobalPath(c){const u=(0,r.addLeadingSlash)(c);return u==="/"?"":u}getRoutePath(c){return Reflect.getMetadata(e.PATH_METADATA,c)}getHostModuleOfController(c){if(!c)return;const u=this.container.getModules(),p=i.targetModulesByContainer.get(u);return p?Array.from(u.values()).filter(d=>p.has(d)).find(({controllers:d})=>d.has(c)):void 0}getModulePath(c){if(!c)return;const u=this.container.getModules();return Reflect.getMetadata(e.MODULE_PATH+u.applicationId,c)??Reflect.getMetadata(e.MODULE_PATH,c)}getVersionMetadata(c){const u=this.applicationConfig.getVersioning();if(u)return Reflect.getMetadata(e.VERSION_METADATA,c)??u.defaultVersion}}return Tu.RoutesMapper=s,Tu}var MR;function e4(){if(MR)return yu;MR=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.MiddlewareModule=void 0;const e=ve(),t=di(),r=ne(),n=YZ(),o=et(),i=Ll(),s=An(),a=ot(),c=Tn(),u=Vq(),p=Gq(),l=Hl(),d=Hq(),f=JZ(),h=QZ(),m=$Z();class v{constructor(){this.routerProxy=new p.RouterProxy,this.exceptionFiltersCache=new WeakMap,this.logger=new e.Logger(v.name)}async register(g,y,b,E,x,O,S){this.appOptions=S;const w=y.getHttpAdapterRef();this.routerExceptionFilter=new u.RouterExceptionFilters(y,b,w),this.routesMapper=new m.RoutesMapper(y,b),this.resolver=new f.MiddlewareResolver(g,E),this.routeInfoPathExtractor=new h.RouteInfoPathExtractor(b),this.injector=E,this.container=y,this.httpAdapter=x,this.graphInspector=O;const A=y.getModules();await this.resolveMiddleware(g,A)}async resolveMiddleware(g,y){const b=[...y.entries()],E=async([x,O])=>{await this.loadConfiguration(g,O,x),await this.resolver.resolveInstances(O,x)};await Promise.all(b.map(E))}async loadConfiguration(g,y,b){const{instance:E}=y;if(!E.configure)return;const x=new d.MiddlewareBuilder(this.routesMapper,this.httpAdapter,this.routeInfoPathExtractor);try{await E.configure(x)}catch(S){if(!this.appOptions.preview)throw S;const w=`Warning! "${y.name}" module exposes a "configure" method that throws an exception in the preview mode (possibly due to missing dependencies). Note: you can ignore this message, just be aware that some of those conditional middlewares will not be reflected in your graph.`;this.logger.warn(w)}if(!(x instanceof d.MiddlewareBuilder))return;const O=x.build();g.insertConfig(O,b)}async registerMiddleware(g,y){const b=g.getConfigurations(),E=async(O,S)=>{for(const w of S)await this.registerMiddlewareConfig(g,w,O,y)},x=[...b.entries()].sort(([O],[S])=>{const w=this.container.getModuleByKey(O),A=this.container.getModuleByKey(S),P=w.distance===Number.MAX_VALUE,T=A.distance===Number.MAX_VALUE;return P&&T?0:P?-1:T?1:w.distance-A.distance});for(const[O,S]of x)await E(O,[...S])}async registerMiddlewareConfig(g,y,b,E){const{forRoutes:x}=y;for(const O of x)await this.registerRouteMiddleware(g,O,y,b,E)}async registerRouteMiddleware(g,y,b,E,x){const O=[].concat(b.middleware),S=this.container.getModuleByKey(E);for(const w of O){const A=g.getMiddlewareCollection(E),P=A.get(w);if((0,r.isUndefined)(P))throw new o.RuntimeException;if(P.isTransient)return;this.graphInspector.insertClassNode(S,P,"middleware");const T={type:"middleware",methodName:"use",className:P.name,classNodeId:P.id,metadata:{key:y.path,path:y.path,requestMethod:t.RequestMethod[y.method]??"ALL",version:y.version}};this.graphInspector.insertEntrypointDefinition(T,P.id),await this.bindHandler(P,x,y,S,A)}}async bindHandler(g,y,b,E,x){const{instance:O,metatype:S}=g;if((0,r.isUndefined)(O?.use))throw new n.InvalidMiddlewareException(S.name);if(g.isDependencyTreeStatic()){const P=await this.createProxy(O);return this.registerHandler(y,b,P)}const A=g.isDependencyTreeDurable();await this.registerHandler(y,b,async(P,T,q)=>{try{const D=this.getContextId(P,A),V=await this.injector.loadPerContext(O,E,x,D);return(await this.createProxy(V,D))(P,T,q)}catch(D){let V=this.exceptionFiltersCache.get(O.use);V||(V=this.routerExceptionFilter.create(O,O.use,void 0),this.exceptionFiltersCache.set(O.use,V));const k=new s.ExecutionContextHost([P,T,q]);V.next(D,k)}})}async createProxy(g,y=a.STATIC_CONTEXT){const b=this.routerExceptionFilter.create(g,g.use,void 0,y),E=g.use.bind(g);return this.routerProxy.createProxy(E,b)}async registerHandler(g,y,b){const{method:E}=y,x=this.routeInfoPathExtractor.extractPathsFrom(y),O=(0,l.isRequestMethodAll)(E),S=t.RequestMethod[E],w=await g.createMiddlewareFactory(E),A=O?b:(T,q,D)=>g.getRequestMethod?.(T)===S?b(T,q,D):D(),P=[];x.some(T=>T.match(/^\/?$/))?P.push("/"):P.push(...x),P.forEach(T=>w(T,A))}getContextId(g,y){const b=i.ContextIdFactory.getByRequest(g);if(!g[c.REQUEST_CONTEXT_ID]){Object.defineProperty(g,c.REQUEST_CONTEXT_ID,{value:b,enumerable:!1,writable:!1,configurable:!1});const E=y?b.payload:Object.assign(g,b.payload);this.container.registerRequestProvider(E,b)}return b}}return yu.MiddlewareModule=v,yu}var Ru={},Qm={},Dd={},Mu={},IR;function Vl(){if(IR)return Mu;IR=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.getTransientInstances=t,Mu.getNonTransientInstances=r;const e=Ve();function t(n){return(0,e.iterate)(n).filter(([o,i])=>i.isDependencyTreeStatic()).map(([o,i])=>i.getStaticTransientInstances()).flatten().filter(o=>!!o).map(({instance:o})=>o).toArray()}function r(n){return(0,e.iterate)(n).filter(([o,i])=>i.isDependencyTreeStatic()&&!i.isTransient).map(([o,{instance:i}])=>i).toArray()}return Mu}var CR;function t4(){if(CR)return Dd;CR=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.callModuleBootstrapHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onApplicationBootstrap)}function o(s){return(0,t.iterate)(s).filter(a=>!(0,e.isNil)(a)).filter(n).map(async a=>a.onApplicationBootstrap()).toArray()}async function i(s){const a=s.getNonAliasProviders(),[c,u]=a.shift(),p=[...s.controllers,...a,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onApplicationBootstrap()}return Dd}var Ld={},jR;function r4(){if(jR)return Ld;jR=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.callAppShutdownHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onApplicationShutdown)}function o(s,a){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(n).map(async c=>c.onApplicationShutdown(a)).toArray()}async function i(s,a){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(o(d,a));const f=(0,r.getTransientInstances)(l);await Promise.all(o(f,a));const h=p.instance;h&&n(h)&&p.isDependencyTreeStatic()&&await h.onApplicationShutdown(a)}return Ld}var Ud={},NR;function n4(){if(NR)return Ud;NR=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.callModuleDestroyHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onModuleDestroy)}function o(s){return(0,t.iterate)(s).filter(a=>!(0,e.isNil)(a)).filter(n).map(async a=>a.onModuleDestroy()).toArray()}async function i(s){const a=s.getNonAliasProviders(),[c,u]=a.shift(),p=[...s.controllers,...a,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onModuleDestroy()}return Ud}var zd={},qR;function i4(){if(qR)return zd;qR=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.callModuleInitHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.onModuleInit)}function o(s){return(0,t.iterate)(s).filter(a=>!(0,e.isNil)(a)).filter(n).map(async a=>a.onModuleInit()).toArray()}async function i(s){const a=s.getNonAliasProviders(),[c,u]=a.shift(),p=[...s.controllers,...a,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onModuleInit()}return zd}var Bd={},FR;function a4(){if(FR)return Bd;FR=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.callBeforeAppShutdownHook=i;const e=ne(),t=Ve(),r=Vl();function n(s){return(0,e.isFunction)(s.beforeApplicationShutdown)}function o(s,a){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(n).map(async c=>c.beforeApplicationShutdown(a)).toArray()}async function i(s,a){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(o(d,a));const f=(0,r.getTransientInstances)(l);await Promise.all(o(f,a));const h=p.instance;h&&n(h)&&p.isDependencyTreeStatic()&&await h.beforeApplicationShutdown(a)}return Bd}var kR;function o4(){return kR||(kR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(t4(),e),t.__exportStar(r4(),e),t.__exportStar(n4(),e),t.__exportStar(i4(),e),t.__exportStar(a4(),e)})(Qm)),Qm}var DR;function Ay(){if(DR)return Ru;DR=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.NestApplicationContext=void 0;const e=ve(),t=ne(),r=Ve(),n=vi(),o=Ul(),i=Ll(),s=o4(),a=jq(),c=_i(),u=Fq();class p extends a.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new u.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(d,f={},h=null,m=new Array){super(),this.container=d,this.appOptions=f,this.contextModule=h,this.scope=m,this.isInitialized=!1,this.logger=new e.Logger(p.name,{timestamp:!0}),this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=new Array,this.injector=new c.Injector,this.moduleCompiler=d.getModuleCompiler(),this.appOptions.preview&&this.printInPreviewModeWarning()}selectContextModule(){const d=this.container.getModules().values();this.contextModule=d.next().value}select(d,f){const h=this.container.getModules(),m=this.contextModule.metatype,v=this.scope.concat(m),_=this.container.getModuleTokenFactory(),{type:g,dynamicMetadata:y}=this.moduleCompiler.extractMetadata(d),b=y?_.createForDynamic(g,y,d):_.createForStatic(g,d),E=h.get(b);if(!E)throw new o.UnknownModuleException(g.name);const x=typeof f?.abortOnError<"u"?{...this.appOptions,...f}:this.appOptions;return new p(this.container,x,E,v)}get(d,f={strict:!1}){return f&&f.strict?this.find(d,{moduleId:this.contextModule?.id,each:f.each}):this.find(d,f)}resolve(d,f=(0,i.createContextId)(),h={strict:!1}){return this.resolvePerContext(d,this.contextModule,f,h)}registerRequestByContextId(d,f){this.container.registerRequestProvider(d,f)}async init(){return this.isInitialized?this:(this.initializationPromise=new Promise(async(d,f)=>{try{await this.callInitHook(),await this.callBootstrapHook(),d()}catch(h){f(h)}}),await this.initializationPromise,this.isInitialized=!0,this)}async close(d){await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(d),await this.dispose(),await this.callShutdownHook(d),this.unsubscribeFromProcessSignals()}useLogger(d){e.Logger.overrideLogger(d),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){e.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(d=[],f={}){return(0,t.isEmpty)(d)?d=Object.keys(e.ShutdownSignal).map(h=>e.ShutdownSignal[h]):d=Array.from(new Set(d)),d=(0,r.iterate)(d).map(h=>h.toString().toUpperCase().trim()).filter(h=>!this.activeShutdownSignals.includes(h)).toArray(),this.listenToShutdownSignals(d,f),this}async dispose(){return Promise.resolve()}listenToShutdownSignals(d,f={}){let h=!1;const m=async v=>{try{if(h)return;h=!0,await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(v),await this.dispose(),await this.callShutdownHook(v),d.forEach(_=>process.removeListener(_,m)),f.useProcessExit?process.exit(0):process.kill(process.pid,v)}catch(_){e.Logger.error(n.MESSAGES.ERROR_DURING_SHUTDOWN,_?.stack,p.name),process.exit(1)}};this.shutdownCleanupRef=m,d.forEach(v=>{this.activeShutdownSignals.push(v),process.on(v,m)})}unsubscribeFromProcessSignals(){this.shutdownCleanupRef&&this.activeShutdownSignals.forEach(d=>{process.removeListener(d,this.shutdownCleanupRef)})}async callInitHook(){const d=this.getModulesToTriggerHooksOn();for(const f of d)await(0,s.callModuleInitHook)(f)}async callDestroyHook(){const d=[...this.getModulesToTriggerHooksOn()].reverse();for(const f of d)await(0,s.callModuleDestroyHook)(f)}async callBootstrapHook(){const d=this.getModulesToTriggerHooksOn();for(const f of d)await(0,s.callModuleBootstrapHook)(f)}async callShutdownHook(d){const f=[...this.getModulesToTriggerHooksOn()].reverse();for(const h of f)await(0,s.callAppShutdownHook)(h,d)}async callBeforeShutdownHook(d){const f=[...this.getModulesToTriggerHooksOn()].reverse();for(const h of f)await(0,s.callBeforeAppShutdownHook)(h,d)}assertNotInPreviewMode(d){if(this.appOptions.preview){const f=`Calling the "${d}" in the preview mode is not supported.`;throw this.logger.error(f),new Error(f)}}getModulesToTriggerHooksOn(){if(this._moduleRefsForHooksByDistance)return this._moduleRefsForHooksByDistance;const d=this.container.getModules(),f=(m,v)=>v.distance-m.distance,h=Array.from(d.values()).sort(f);return this._moduleRefsForHooksByDistance=this.appOptions?.preview?h.filter(m=>m.initOnPreview):h,this._moduleRefsForHooksByDistance}printInPreviewModeWarning(){this.logger.warn("------------------------------------------------"),this.logger.warn("Application is running in the PREVIEW mode!"),this.logger.warn("Providers/controllers will not be instantiated."),this.logger.warn("------------------------------------------------")}}return Ru.NestApplicationContext=p,Ru}var Iu={},ut={},LR;function Ry(){if(LR)return ut;LR=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.INVALID_EXECUTION_CONTEXT=ut.VERSIONED_CONTROLLER_MAPPING_MESSAGE=ut.CONTROLLER_MAPPING_MESSAGE=ut.VERSIONED_ROUTE_MAPPED_MESSAGE=ut.ROUTE_MAPPED_MESSAGE=ut.MODULE_INIT_MESSAGE=void 0;const e=di(),t=sC(),r=(c,u)=>`${u} dependencies initialized`;ut.MODULE_INIT_MESSAGE=r;const n=(c,u)=>`Mapped {${c}, ${e.RequestMethod[u]}} route`;ut.ROUTE_MAPPED_MESSAGE=n;const o=(c,u,p)=>{const d=(Array.isArray(p)?p:[p]).map(f=>f===t.VERSION_NEUTRAL?"Neutral":f).join(",");return`Mapped {${c}, ${e.RequestMethod[u]}} (version: ${d}) route`};ut.VERSIONED_ROUTE_MAPPED_MESSAGE=o;const i=(c,u)=>`${c} {${u}}:`;ut.CONTROLLER_MAPPING_MESSAGE=i;const s=(c,u,p)=>{const d=(Array.isArray(p)?p:[p]).map(f=>f===t.VERSION_NEUTRAL?"Neutral":f).join(",");return`${c} {${u}} (version: ${d}):`};ut.VERSIONED_CONTROLLER_MAPPING_MESSAGE=s;const a=(c,u)=>`Calling ${c} is not allowed in this context. Your current execution context is "${u}".`;return ut.INVALID_EXECUTION_CONTEXT=a,ut}var Cu={},ju={},UR;function s4(){if(UR)return ju;UR=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.UnknownRequestMappingException=void 0;const e=et(),t=Ot();class r extends e.RuntimeException{constructor(o){super((0,t.UNKNOWN_REQUEST_MAPPING)(o))}}return ju.UnknownRequestMappingException=r,ju}var $m={},zR;function Yq(){return zR||(zR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;const t=di();e.REQUEST_METHOD_MAP={[t.RequestMethod.GET]:"get",[t.RequestMethod.POST]:"post",[t.RequestMethod.PUT]:"put",[t.RequestMethod.DELETE]:"delete",[t.RequestMethod.PATCH]:"patch",[t.RequestMethod.ALL]:"all",[t.RequestMethod.OPTIONS]:"options",[t.RequestMethod.HEAD]:"head",[t.RequestMethod.SEARCH]:"search",[t.RequestMethod.PROPFIND]:"propfind",[t.RequestMethod.PROPPATCH]:"proppatch",[t.RequestMethod.MKCOL]:"mkcol",[t.RequestMethod.COPY]:"copy",[t.RequestMethod.MOVE]:"move",[t.RequestMethod.LOCK]:"lock",[t.RequestMethod.UNLOCK]:"unlock"};class r{get(o,i){const s=e.REQUEST_METHOD_MAP[i],a=o[s];return a||o.use}}e.RouterMethodFactory=r})($m)),$m}var Nu={},BR;function c4(){if(BR)return Nu;BR=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.RouteParamsFactory=void 0;const e=yp();class t{exchangeKeyForValue(n,o,{req:i,res:s,next:a}){switch(n){case e.RouteParamtypes.NEXT:return a;case e.RouteParamtypes.REQUEST:return i;case e.RouteParamtypes.RESPONSE:return s;case e.RouteParamtypes.BODY:return o&&i.body?i.body[o]:i.body;case e.RouteParamtypes.RAW_BODY:return i.rawBody;case e.RouteParamtypes.PARAM:return o?i.params[o]:i.params;case e.RouteParamtypes.HOST:const c=i.hosts||{};return o?c[o]:c;case e.RouteParamtypes.QUERY:return o?i.query[o]:i.query;case e.RouteParamtypes.HEADERS:return o?i.headers[o.toLowerCase()]:i.headers;case e.RouteParamtypes.SESSION:return i.session;case e.RouteParamtypes.FILE:return i[o||"file"];case e.RouteParamtypes.FILES:return i.files;case e.RouteParamtypes.IP:return i.ip;default:return null}}}return Nu.RouteParamsFactory=t,Nu}var qu={},Fu={},ku={},HR;function u4(){if(HR)return ku;HR=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.SseStream=void 0;const e=ne(),t=mp;function r(o){return(0,e.isObject)(o)?r(JSON.stringify(o)):o.split(/\r\n|\r|\n/).map(i=>`data: ${i}
|
|
141
141
|
`).join("")}class n extends t.Transform{constructor(i){super({objectMode:!0}),this.lastEventId=null,i&&i.socket&&(i.socket.setKeepAlive(!0),i.socket.setNoDelay(!0),i.socket.setTimeout(0))}pipe(i,s){if(i.writeHead){const a=s?.statusCode??200;i.writeHead(a,{...s?.additionalHeaders,"Content-Type":"text/event-stream",Connection:"keep-alive","Cache-Control":"private, no-cache, no-store, must-revalidate, max-age=0, no-transform",Pragma:"no-cache",Expire:"0","X-Accel-Buffering":"no"}),i.flushHeaders?.()}return i.write(`
|
|
142
142
|
`),super.pipe(i,s)}_transform(i,s,a){let c=i.type?`event: ${i.type}
|
|
143
143
|
`:"";c+=i.id?`id: ${i.id}
|
|
144
144
|
`:"",c+=i.retry?`retry: ${i.retry}
|
|
145
145
|
`:"",c+=i.data?r(i.data):"",c+=`
|
|
146
|
-
`,this.push(c),a()}writeMessage(i,s){i.id||(this.lastEventId++,i.id=this.lastEventId.toString()),this.write(i,"utf-8")?process.nextTick(s):this.once("drain",s)}}return Du.SseStream=n,Du}var WR;function v4(){if(WR)return ku;WR=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.RouterResponseController=void 0;const e=ve(),t=ne(),r=On(),n=Yg(),o=h4();class i{constructor(a){this.applicationRef=a,this.logger=new e.Logger(i.name)}async apply(a,c,u){return this.applicationRef.reply(c,a,u)}async redirect(a,c,u){const p=await this.transformToResult(a),l=p&&p.statusCode?p.statusCode:u.statusCode?u.statusCode:e.HttpStatus.FOUND,d=p&&p.url?p.url:u.url;this.applicationRef.redirect(c,l,d)}async render(a,c,u){const p=await this.transformToResult(a);return this.applicationRef.render(c,u,p)}async transformToResult(a){return(0,r.isObservable)(a)?(0,r.lastValueFrom)(a):a}getStatusByMethod(a){return a===e.RequestMethod.POST?e.HttpStatus.CREATED:e.HttpStatus.OK}setHeaders(a,c){c.forEach(({name:u,value:p})=>this.applicationRef.setHeader(a,u,typeof p=="function"?p():p))}setStatus(a,c){this.applicationRef.status(a,c)}async sse(a,c,u,p){if(c.writableEnded)return;const l=await Promise.resolve(a);this.assertObservable(l);const d=new o.SseStream(u),f=c.statusCode,h=typeof f<"u"?{...p,statusCode:f}:p;d.pipe(c,h);const m=l.pipe((0,n.map)(v=>(0,t.isObject)(v)?v:{data:v}),(0,n.concatMap)(v=>new Promise(_=>d.writeMessage(v,()=>_()))),(0,n.catchError)(v=>{const _=v instanceof Error?v.message:v;return d.writeMessage({type:"error",data:_},g=>{g&&this.logger.error(g)}),r.EMPTY})).subscribe({complete:()=>{c.end()}});u.on("close",()=>{m.unsubscribe(),d.writableEnded||d.end()})}assertObservable(a){if(!(0,r.isObservable)(a))throw new ReferenceError("You must return an Observable stream to use Server-Sent Events (SSE).")}}return ku.RouterResponseController=i,ku}var ZR;function m4(){if(ZR)return Fu;ZR=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.RouterExecutionContext=void 0;const e=ve(),t=xe(),r=yp(),n=ne(),o=by(),i=jN(),s=qN(),a=ot(),c=v4();class u{constructor(l,d,f,h,m,v,_,g){this.paramsFactory=l,this.pipesContextCreator=d,this.pipesConsumer=f,this.guardsContextCreator=h,this.guardsConsumer=m,this.interceptorsContextCreator=v,this.interceptorsConsumer=_,this.applicationRef=g,this.handlerMetadataStorage=new s.HandlerMetadataStorage,this.contextUtils=new i.ContextUtils,this.responseController=new c.RouterResponseController(g)}create(l,d,f,h,m,v=a.STATIC_CONTEXT,_){const g="http",{argsLength:y,fnHandleResponse:b,paramtypes:E,getParamsMetadata:x,httpStatusCode:O,responseHeaders:S,hasCustomHeaders:w}=this.getMetadata(l,d,f,h,m,g),A=this.contextUtils.mergeParamsMetatypes(x(h,v,_),E),T=this.pipesContextCreator.create(l,d,h,v,_),P=this.guardsContextCreator.create(l,d,h,v,_),N=this.interceptorsContextCreator.create(l,d,h,v,_),D=this.createGuardsFn(P,l,d,g),V=this.createPipesFn(T,A),F=(k,Z,J,U)=>async()=>(V&&await V(k,Z,J,U),d.apply(l,k));return async(k,Z,J)=>{const U=this.contextUtils.createNullArray(y);D&&await D([k,Z,J]),this.responseController.setStatus(Z,O),w&&this.responseController.setHeaders(Z,S);const $=await this.interceptorsConsumer.intercept(N,[k,Z,J],l,d,F(U,k,Z,J),g);await b($,Z,k)}}getMetadata(l,d,f,h,m,v){const _=this.handlerMetadataStorage.get(l,f);if(_)return _;const g=this.contextUtils.reflectCallbackMetadata(l,f,t.ROUTE_ARGS_METADATA)||{},y=Object.keys(g),b=this.contextUtils.getArgumentsLength(y,g),E=this.contextUtils.reflectCallbackParamtypes(l,f),x=this.contextUtils.getContextFactory(v,l,d),O=(k,Z=a.STATIC_CONTEXT,J)=>this.exchangeKeysForValues(y,g,k,Z,J,x),S=O(h),w=this.isResponseHandled(l,f,S),A=this.reflectRedirect(d),T=this.createHandleResponseFn(d,w,A),P=this.reflectHttpStatusCode(d),N=P||this.responseController.getStatusByMethod(m),D=this.reflectResponseHeaders(d),V=!(0,n.isEmpty)(D),F={argsLength:b,fnHandleResponse:T,paramtypes:E,getParamsMetadata:O,httpStatusCode:N,hasCustomHeaders:V,responseHeaders:D};return this.handlerMetadataStorage.set(l,f,F),F}reflectRedirect(l){return Reflect.getMetadata(t.REDIRECT_METADATA,l)}reflectHttpStatusCode(l){return Reflect.getMetadata(t.HTTP_CODE_METADATA,l)}reflectRenderTemplate(l){return Reflect.getMetadata(t.RENDER_METADATA,l)}reflectResponseHeaders(l){return Reflect.getMetadata(t.HEADERS_METADATA,l)||[]}reflectSse(l){return Reflect.getMetadata(t.SSE_METADATA,l)}exchangeKeysForValues(l,d,f,h=a.STATIC_CONTEXT,m,v){return this.pipesContextCreator.setModuleContext(f),l.map(_=>{const{index:g,data:y,pipes:b}=d[_],E=this.pipesContextCreator.createConcreteContext(b,h,m),x=this.contextUtils.mapParamType(_);if(_.includes(t.CUSTOM_ROUTE_ARGS_METADATA)){const{factory:w}=d[_],A=this.contextUtils.getCustomFactory(w,y,v);return{index:g,extractValue:A,type:x,data:y,pipes:E}}const O=Number(x);return{index:g,extractValue:(w,A,T)=>this.paramsFactory.exchangeKeyForValue(O,y,{req:w,res:A,next:T}),type:O,data:y,pipes:E}})}async getParamValue(l,{metatype:d,type:f,data:h},m){return(0,n.isEmpty)(m)?l:this.pipesConsumer.apply(l,{metatype:d,type:f,data:h},m)}isPipeable(l){return l===r.RouteParamtypes.BODY||l===r.RouteParamtypes.RAW_BODY||l===r.RouteParamtypes.QUERY||l===r.RouteParamtypes.PARAM||l===r.RouteParamtypes.FILE||l===r.RouteParamtypes.FILES||(0,n.isString)(l)}createGuardsFn(l,d,f,h){const m=async v=>{if(!await this.guardsConsumer.tryActivate(l,v,d,f,h))throw new e.ForbiddenException(o.FORBIDDEN_MESSAGE)};return l.length?m:null}createPipesFn(l,d){const f=async(h,m,v,_)=>{const g=async y=>{const{index:b,extractValue:E,type:x,data:O,metatype:S,pipes:w}=y,A=E(m,v,_);h[b]=this.isPipeable(x)?await this.getParamValue(A,{metatype:S,type:x,data:O},l.concat(w)):A};await Promise.all(d.map(g))};return d.length?f:null}createHandleResponseFn(l,d,f,h){const m=this.reflectRenderTemplate(l);return m?async(_,g)=>await this.responseController.render(_,g,m):f&&(0,n.isString)(f.url)?async(_,g)=>{await this.responseController.redirect(_,g,f)}:this.reflectSse(l)?async(_,g,y)=>{await this.responseController.sse(_,g.raw||g,y.raw||y,{additionalHeaders:g.getHeaders?.()})}:async(_,g)=>(_=await this.responseController.transformToResult(_),!d&&await this.responseController.apply(_,g,h),g)}isResponseHandled(l,d,f){const h=f.some(({type:v})=>v===r.RouteParamtypes.RESPONSE||v===r.RouteParamtypes.NEXT),m=this.contextUtils.reflectPassthrough(l,d);return h&&!m}}return Fu.RouterExecutionContext=u,Fu}var KR;function eF(){if(KR)return ju;KR=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.RouterExplorer=void 0;const e=xe(),t=wl(),r=mg(),n=yt(),o=ne(),i=Ry(),s=p4(),a=by(),c=Ll(),u=An(),p=Iy(),l=$N(),d=ot(),f=MN(),h=CN(),m=JN(),v=Pn(),_=f4(),g=m4();class y{constructor(E,x,O,S,w,A,T,P){this.container=x,this.injector=O,this.routerProxy=S,this.exceptionsFilter=w,this.routePathFactory=T,this.graphInspector=P,this.routerMethodFactory=new l.RouterMethodFactory,this.logger=new n.Logger(y.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap,this.pathsExplorer=new m.PathsExplorer(E);const N=new _.RouteParamsFactory,D=new h.PipesContextCreator(x,A),V=new h.PipesConsumer,F=new a.GuardsContextCreator(x,A),k=new a.GuardsConsumer,Z=new f.InterceptorsContextCreator(x,A),J=new f.InterceptorsConsumer;this.executionContextCreator=new g.RouterExecutionContext(N,D,V,F,k,Z,J,x.getHttpAdapterRef())}explore(E,x,O,S,w){const{instance:A}=E,T=this.pathsExplorer.scanForPaths(A);this.applyPathsToRouterProxy(O,T,E,x,w,S)}extractRouterPath(E){const x=Reflect.getMetadata(e.PATH_METADATA,E);if((0,o.isUndefined)(x))throw new s.UnknownRequestMappingException(E);return Array.isArray(x)?x.map(O=>(0,o.addLeadingSlash)(O)):[(0,o.addLeadingSlash)(x)]}applyPathsToRouterProxy(E,x,O,S,w,A){(x||[]).forEach(T=>{const{version:P}=T;w.methodVersion=P,this.applyCallbackToRouter(E,T,O,S,w,A)})}applyCallbackToRouter(E,x,O,S,w,A){const{path:T,requestMethod:P,targetCallback:N,methodName:D}=x,{instance:V}=O,F=this.routerMethodFactory.get(E,P).bind(E),Z=!O.isDependencyTreeStatic()?this.createRequestScopedHandler(O,P,this.container.getModuleByKey(S),S,D):this.createCallbackProxy(V,N,D,S,P),J=(w.methodVersion||w.controllerVersion)&&w.versioningOptions;let U=this.applyHostFilter(A,Z);T.forEach($=>{J&&w.versioningOptions.type!==t.VersioningType.URI&&(U=this.applyVersionFilter(E,w,U)),w.methodPath=$,this.routePathFactory.create(w,P).forEach(L=>{const B={type:"http-endpoint",methodName:D,className:O.name,classNodeId:O.id,metadata:{key:L,path:L,requestMethod:t.RequestMethod[P],methodVersion:w.methodVersion,controllerVersion:w.controllerVersion}};this.copyMetadataToCallback(N,U);const M=E.normalizePath?E.normalizePath(L):L,z=this.container.getHttpAdapterRef().getOnRouteTriggered?.();z?F(M,(...Y)=>(z(P,L),U(...Y))):F(M,U),this.graphInspector.insertEntrypointDefinition(B,O.id)}),this.routePathFactory.create({...w,versioningOptions:void 0},P).forEach(L=>{if(J){const B=this.routePathFactory.getVersion(w);this.logger.log((0,p.VERSIONED_ROUTE_MAPPED_MESSAGE)(L,P,B))}else this.logger.log((0,p.ROUTE_MAPPED_MESSAGE)(L,P))})})}applyHostFilter(E,x){if(!E)return x;const O=this.container.getHttpAdapterRef(),w=(Array.isArray(E)?E:[E]).map(T=>{if(typeof T=="string")try{return(0,i.pathToRegexp)(T)}catch(P){throw P instanceof TypeError&&this.logger.error(`Unsupported host "${T}" syntax. In past releases, ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. Please see the migration guide for more information.`),P}return{regexp:T,keys:[]}}),A=Array.isArray(E)?`HTTP adapter does not support filtering on hosts: ["${E.join('", "')}"]`:`HTTP adapter does not support filtering on host: "${E}"`;return(T,P,N)=>{T.hosts={};const D=O.getRequestHostname(T)||"";for(const V of w){const F=D.match(V.regexp);if(F){if(V.keys.length>0)V.keys.forEach((k,Z)=>T.hosts[k.name]=F[Z+1]);else if(V.regexp&&F.groups)for(const k in F.groups)T.hosts[k]=F.groups[k];return x(T,P,N)}}if(!N)throw new r.InternalServerErrorException(A);return N()}}applyVersionFilter(E,x,O){const S=this.routePathFactory.getVersion(x);return E.applyVersionFilter(O,S,x.versioningOptions)}createCallbackProxy(E,x,O,S,w,A=d.STATIC_CONTEXT,T){const P=this.executionContextCreator.create(E,x,O,S,w,A,T),N=this.exceptionsFilter.create(E,x,S,A,T);return this.routerProxy.createProxy(P,N)}createRequestScopedHandler(E,x,O,S,w){const{instance:A}=E,T=O.controllers,P=E.isDependencyTreeDurable();return async(N,D,V)=>{try{const F=this.getContextId(N,P),k=await this.injector.loadPerContext(A,O,T,F);await this.createCallbackProxy(k,k[w],w,S,x,F,E.id)(N,D,V)}catch(F){let k=this.exceptionFiltersCache.get(A[w]);k||(k=this.exceptionsFilter.create(A,A[w],S),this.exceptionFiltersCache.set(A[w],k));const Z=new u.ExecutionContextHost([N,D,V]);k.next(F,Z)}}}getContextId(E,x){const O=c.ContextIdFactory.getByRequest(E);if(!E[v.REQUEST_CONTEXT_ID]){Object.defineProperty(E,v.REQUEST_CONTEXT_ID,{value:O,enumerable:!1,writable:!1,configurable:!1});const S=x?O.payload:Object.assign(E,O.payload);this.container.registerRequestProvider(S,O)}return O}copyMetadataToCallback(E,x){for(const O of Reflect.getMetadataKeys(E))Reflect.defineMetadata(O,Reflect.getMetadata(O,E),x)}}return ju.RouterExplorer=y,ju}var YR;function tF(){if(YR)return Cu;YR=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.RoutesResolver=void 0;const e=ve(),t=xe(),r=yt(),n=Iy(),o=Tn(),i=XN(),s=KN(),a=eF(),c=YN();class u{constructor(l,d,f,h){this.container=l,this.applicationConfig=d,this.injector=f,this.logger=new r.Logger(u.name,{timestamp:!0}),this.routerProxy=new c.RouterProxy;const m=l.getHttpAdapterRef();this.routerExceptionsFilter=new s.RouterExceptionFilters(l,d,m),this.routePathFactory=new i.RoutePathFactory(this.applicationConfig);const v=new o.MetadataScanner;this.routerExplorer=new a.RouterExplorer(v,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory,h)}resolve(l,d){this.container.getModules().forEach(({controllers:h,metatype:m},v)=>{const _=this.getModulePathMetadata(m);this.registerRouters(h,v,d,_,l)})}registerRouters(l,d,f,h,m){l.forEach(v=>{const{metatype:_}=v,g=this.getHostMetadata(_),y=this.routerExplorer.extractRouterPath(_),b=this.getVersionMetadata(_),E=_.name;y.forEach(x=>{const O=this.routePathFactory.create({ctrlPath:x,modulePath:h,globalPrefix:f});b?O.forEach(A=>{const T=(0,n.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(E,A,b);this.logger.log(T)}):O.forEach(A=>{const T=(0,n.CONTROLLER_MAPPING_MESSAGE)(E,A);this.logger.log(T)});const S=this.applicationConfig.getVersioning(),w={ctrlPath:x,modulePath:h,globalPrefix:f,controllerVersion:b,versioningOptions:S};this.routerExplorer.explore(v,d,m,g,w)})})}registerNotFoundHandler(){const l=this.container.getHttpAdapterRef(),d=(m,v)=>{const _=l.getRequestMethod(m),g=l.getRequestUrl(m);throw new e.NotFoundException(`Cannot ${_} ${g}`)},f=this.routerExceptionsFilter.create({},d,void 0),h=this.routerProxy.createProxy(d,f);l.setNotFoundHandler&&l.setNotFoundHandler(h,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){const l=(m,v,_,g)=>{throw this.mapExternalException(m)},d=this.routerExceptionsFilter.create({},l,void 0),f=this.routerProxy.createExceptionLayerProxy(l,d),h=this.container.getHttpAdapterRef();h.setErrorHandler&&h.setErrorHandler(f,this.applicationConfig.getGlobalPrefix())}mapExternalException(l){switch(!0){case(l instanceof SyntaxError||l instanceof URIError):return new e.BadRequestException(l.message);case this.isHttpFastifyError(l):return new e.HttpException(l.message,l.statusCode);default:return l}}isHttpFastifyError(l){return l.statusCode!==void 0&&l instanceof Error&&l.name==="FastifyError"}getModulePathMetadata(l){const d=this.container.getModules();return Reflect.getMetadata(t.MODULE_PATH+d.applicationId,l)??Reflect.getMetadata(t.MODULE_PATH,l)}getHostMetadata(l){return Reflect.getMetadata(t.HOST_METADATA,l)}getVersionMetadata(l){const d=this.applicationConfig.getVersioning();if(d)return Reflect.getMetadata(t.VERSION_METADATA,l)??d.defaultVersion}}return Cu.RoutesResolver=u,Cu}const _4={},g4=Object.freeze(Object.defineProperty({__proto__:null,default:_4},Symbol.toStringTag,{value:"Module"})),y4=di(g4),b4={},E4=Object.freeze(Object.defineProperty({__proto__:null,default:b4},Symbol.toStringTag,{value:"Module"})),x4=di(E4),O4={},w4=Object.freeze(Object.defineProperty({__proto__:null,default:O4},Symbol.toStringTag,{value:"Module"})),rF=di(w4);var XR;function Cy(){if(XR)return gu;XR=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.NestApplication=void 0;const e=ve(),t=yt(),r=Sl(),n=ne(),o=Ve(),i=vp,s=_r(),a=mi(),c=QZ(),u=gi(),p=$Z(),l=a4(),d=WN(),f=My(),h=tF(),{SocketModule:m}=(0,c.optionalRequire)("@nestjs/websockets/socket-module",()=>y4),{MicroservicesModule:v}=(0,c.optionalRequire)("@nestjs/microservices/microservices-module",()=>x4);class _ extends f.NestApplicationContext{constructor(y,b,E,x,O={}){super(y,O),this.httpAdapter=b,this.config=E,this.graphInspector=x,this.logger=new t.Logger(_.name,{timestamp:!0}),this.middlewareContainer=new p.MiddlewareContainer(this.container),this.microservicesModule=v&&new v,this.socketModule=m&&new m,this.microservices=[],this.isListening=!1,this.selectContextModule(),this.registerHttpServer(),this.injector=new u.Injector({preview:this.appOptions.preview,instanceDecorator:O.instrument?.instanceDecorator}),this.middlewareModule=new l.MiddlewareModule,this.routesResolver=new h.RoutesResolver(this.container,this.config,this.injector,this.graphInspector)}async dispose(){this.socketModule&&await this.socketModule.close(),this.microservicesModule&&await this.microservicesModule.close(),this.httpAdapter&&await this.httpAdapter.close(),await Promise.all((0,o.iterate)(this.microservices).map(async y=>{y.setIsTerminated(!0),await y.close()}))}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){return!this.appOptions||!this.appOptions.cors?void 0:(0,n.isObject)(this.appOptions.cors)||(0,n.isFunction)(this.appOptions.cors)?this.enableCors(this.appOptions.cors):this.enableCors()}createServer(){return this.httpAdapter.initHttpServer(this.appOptions),this.httpAdapter.getHttpServer()}async registerModules(){this.registerWsModule(),this.microservicesModule&&(this.microservicesModule.register(this.container,this.graphInspector,this.config,this.appOptions),this.microservicesModule.setupClients(this.container)),await this.middlewareModule.register(this.middlewareContainer,this.container,this.config,this.injector,this.httpAdapter,this.graphInspector,this.appOptions)}registerWsModule(){this.socketModule&&this.socketModule.register(this.container,this.config,this.graphInspector,this.appOptions,this.httpServer)}async init(){return this.isInitialized?this:(this.applyOptions(),await this.httpAdapter?.init?.(),this.appOptions&&this.appOptions.bodyParser!==!1&&this.registerParserMiddleware(),await this.registerModules(),await this.registerRouter(),await this.callInitHook(),await this.registerRouterHooks(),await this.callBootstrapHook(),this.isInitialized=!0,this.logger.log(a.MESSAGES.APPLICATION_READY),this)}registerParserMiddleware(){const y=this.config.getGlobalPrefix(),b=!!this.appOptions?.rawBody;this.httpAdapter.registerParserMiddleware(y,b)}async registerRouter(){await this.registerMiddleware(this.httpAdapter);const y=this.config.getGlobalPrefix(),b=(0,n.addLeadingSlash)(y);this.routesResolver.resolve(this.httpAdapter,b)}async registerRouterHooks(){this.routesResolver.registerNotFoundHandler(),this.routesResolver.registerExceptionHandler()}connectMicroservice(y,b={}){const{NestMicroservice:E}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>rF),{inheritAppConfig:x}=b,O=x?this.config:new s.ApplicationConfig,S=new E(this.container,y,this.graphInspector,O);return b.deferInitialization||(S.registerListeners(),S.setIsInitialized(!0),S.setIsInitHookCalled(!0)),this.microservices.push(S),S}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}async startAllMicroservices(){return this.assertNotInPreviewMode("startAllMicroservices"),await Promise.all(this.microservices.map(y=>y.listen())),this}use(...y){return this.httpAdapter.use(...y),this}useBodyParser(...y){if(!("useBodyParser"in this.httpAdapter))return this.logger.warn("Your HTTP Adapter does not support `.useBodyParser`."),this;const[b,...E]=y,x=!!this.appOptions.rawBody;return this.httpAdapter.useBodyParser?.(b,x,...E),this}enableCors(y){this.httpAdapter.enableCors(y)}enableVersioning(y={type:e.VersioningType.URI}){return this.config.enableVersioning(y),this}async listen(y,...b){this.assertNotInPreviewMode("listen"),this.isInitialized||await this.init();const E=this.container.getHttpAdapterHostRef();return new Promise((x,O)=>{const S=T=>{this.logger.error(T?.toString?.()),O(T)};this.httpServer.once("error",S);const w=(0,n.isFunction)(b[b.length-1]),A=w?b.slice(0,b.length-1):b;this.httpAdapter.listen(y,...A,(...T)=>{if((this.appOptions?.autoFlushLogs??!0)&&this.flushLogs(),T[0]instanceof Error)return O(T[0]);this.httpServer.address()&&(this.httpServer.removeListener("error",S),this.isListening=!0,E.listening=!0,x(this.httpServer)),w&&b[b.length-1](...T)})})}async getUrl(){return new Promise((y,b)=>{if(!this.isListening){this.logger.error(a.MESSAGES.CALL_LISTEN_FIRST),b(a.MESSAGES.CALL_LISTEN_FIRST);return}const E=this.httpServer.address();y(this.formatAddress(E))})}formatAddress(y){if((0,n.isString)(y)){if((0,i.platform)()==="win32")return y;const E=encodeURIComponent(y);return`${this.getProtocol()}+unix://${E}`}let b=this.host();return y&&y.family==="IPv6"?b==="::"?b="[::1]":b=`[${b}]`:b==="0.0.0.0"&&(b="127.0.0.1"),`${this.getProtocol()}://${b}:${y.port}`}setGlobalPrefix(y,b){if(this.config.setGlobalPrefix(y),b){const E=b?.exclude?(0,d.mapToExcludeRoute)(b.exclude):[];this.config.setGlobalPrefixOptions({...b,exclude:E})}return this}useWebSocketAdapter(y){return this.config.setIoAdapter(y),this}useGlobalFilters(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalFilters(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"filter",ref:b})),this}useGlobalPipes(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalPipes(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"pipe",ref:b})),this}useGlobalInterceptors(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalInterceptors(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"interceptor",ref:b})),this}useGlobalGuards(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalGuards(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"guard",ref:b})),this}useStaticAssets(y,b){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(y,b),this}setBaseViewsDir(y){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(y),this}setViewEngine(y){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(y),this}host(){const y=this.httpServer.address();if(!(0,n.isString)(y))return y&&y.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?"https":"http"}async registerMiddleware(y){await this.middlewareModule.registerMiddleware(this.middlewareContainer,y)}applyInstanceDecoratorIfRegistered(...y){return this.appOptions.instrument?.instanceDecorator?y.map(b=>this.appOptions.instrument.instanceDecorator(b)):y}}return gu.NestApplication=_,gu}var ln={},Lu={},Uu={},JR;function S4(){if(JR)return Uu;JR=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.ExceptionHandler=void 0;const e=yt();class t{handle(n){t.logger.error(n)}}return Uu.ExceptionHandler=t,t.logger=new e.Logger(t.name),Uu}var QR;function T4(){if(QR)return Lu;QR=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.ExceptionsZone=void 0;const e=ve(),t=S4(),r=()=>process.exit(1);class n{static run(i,s=r,a){try{i()}catch(c){this.exceptionHandler.handle(c),a&&e.Logger.flush(),s(c)}}static async asyncRun(i,s=r,a){try{await i()}catch(c){this.exceptionHandler.handle(c),a&&e.Logger.flush(),s(c)}}}return Lu.ExceptionsZone=n,n.exceptionHandler=new t.ExceptionHandler,Lu}var Hd={},$R;function P4(){if($R)return Hd;$R=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.loadAdapter=n;const e=ve(),t=(o,i)=>`No driver (${i}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${o}" package ($ npm install ${o}).`,r=new e.Logger("PackageLoader");function n(o,i,s){try{return s?s():yg(o)}catch{r.error(t(o,i)),process.exit(1)}}return Hd}var zu={},eM;function A4(){if(eM)return zu;eM=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.rethrow=void 0;const e=t=>{throw t};return zu.rethrow=e,zu}var Bu={},tM;function jy(){if(tM)return Bu;tM=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.InstanceLoader=void 0;const e=ve(),t=Iy(),r=Hp();class n{constructor(i,s,a,c=new e.Logger(n.name,{timestamp:!0})){this.container=i,this.injector=s,this.graphInspector=a,this.logger=c}setLogger(i){this.logger=i}async createInstancesOfDependencies(i=this.container.getModules()){this.createPrototypes(i);try{await this.createInstances(i)}catch(s){throw this.graphInspector.inspectModules(i),this.graphInspector.registerPartial(s),s}this.graphInspector.inspectModules(i)}createPrototypes(i){i.forEach(s=>{this.createPrototypesOfProviders(s),this.createPrototypesOfInjectables(s),this.createPrototypesOfControllers(s)})}async createInstances(i){await Promise.all([...i.values()].map(async s=>{await this.createInstancesOfProviders(s),await this.createInstancesOfInjectables(s),await this.createInstancesOfControllers(s);const{name:a}=s;this.isModuleWhitelisted(a)&&this.logger.log((0,t.MODULE_INIT_MESSAGE)`${a}`)}))}createPrototypesOfProviders(i){const{providers:s}=i;s.forEach(a=>this.injector.loadPrototype(a,s))}async createInstancesOfProviders(i){const{providers:s}=i,a=[...s.values()];await Promise.all(a.map(async c=>{await this.injector.loadProvider(c,i),this.graphInspector.inspectInstanceWrapper(c,i)}))}createPrototypesOfControllers(i){const{controllers:s}=i;s.forEach(a=>this.injector.loadPrototype(a,s))}async createInstancesOfControllers(i){const{controllers:s}=i,a=[...s.values()];await Promise.all(a.map(async c=>{await this.injector.loadController(c,i),this.graphInspector.inspectInstanceWrapper(c,i)}))}createPrototypesOfInjectables(i){const{injectables:s}=i;s.forEach(a=>this.injector.loadPrototype(a,s))}async createInstancesOfInjectables(i){const{injectables:s}=i,a=[...s.values()];await Promise.all(a.map(async c=>{await this.injector.loadInjectable(c,i),this.graphInspector.inspectInstanceWrapper(c,i)}))}isModuleWhitelisted(i){return i!==r.InternalCoreModule.name}}return Bu.InstanceLoader=n,Bu}var Hu={},rM;function nF(){if(rM)return Hu;rM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.NoopGraphInspector=void 0;const e=Vp(),t=()=>{};return Hu.NoopGraphInspector=new Proxy(e.GraphInspector.prototype,{get:()=>t}),Hu}var Vu={},Gu={},nM;function R4(){if(nM)return Gu;nM=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.InvalidClassModuleException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i){super((0,e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(o,i))}}return Gu.InvalidClassModuleException=r,Gu}var Wu={},iM;function M4(){if(iM)return Wu;iM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.InvalidModuleException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i,s){super((0,e.INVALID_MODULE_MESSAGE)(o,i,s))}}return Wu.InvalidModuleException=r,Wu}var Zu={},aM;function I4(){if(aM)return Zu;aM=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.UndefinedModuleException=void 0;const e=et(),t=Ot();class r extends e.RuntimeException{constructor(o,i,s){super((0,t.UNDEFINED_MODULE_MESSAGE)(o,i,s))}}return Zu.UndefinedModuleException=r,Zu}var Ku={},oM;function C4(){if(oM)return Ku;oM=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.InternalCoreModuleFactory=void 0;const e=ve(),t=Ey(),r=Dl(),n=xy(),o=Py(),i=gi(),s=jy(),a=Ty(),c=_i(),u=Hp();class p{static create(d,f,h,m,v,_){const g=()=>{const y=new e.Logger(a.LazyModuleLoader.name,{timestamp:!1}),b=new i.Injector({preview:d.contextOptions?.preview,instanceDecorator:d.contextOptions?.instrument?.instanceDecorator}),E=new s.InstanceLoader(d,b,v,y);return new a.LazyModuleLoader(f,E,h,d.getModules(),_)};return n.InitializeOnPreviewAllowlist.add(u.InternalCoreModule),u.InternalCoreModule.register([{provide:t.ExternalContextCreator,useFactory:()=>t.ExternalContextCreator.fromContainer(d)},{provide:c.ModulesContainer,useFactory:()=>d.getModules()},{provide:r.HttpAdapterHost,useFactory:()=>m},{provide:a.LazyModuleLoader,useFactory:g},{provide:o.SerializedGraph,useFactory:()=>d.serializedGraph}])}}return Ku.InternalCoreModuleFactory=p,Ku}var Yu={},Xu={},sM;function j4(){if(sM)return Xu;sM=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.TreeNode=void 0;class e{constructor({value:r,parent:n}){this.children=new Set,this.value=r,this.parent=n}addChild(r){this.children.add(r)}removeChild(r){this.children.delete(r)}relink(r){this.parent?.removeChild(this),this.parent=r,this.parent.addChild(this)}getDepth(){const r=new Set;let n=0,o=this;for(;o;){if(n++,o=o.parent,r.has(o))return-1;r.add(o)}return n}hasCycleWith(r){const n=new Set;let o=this;for(;o;){if(o.value===r)return!0;if(o=o.parent,n.has(o))return!1;n.add(o)}return!1}}return Xu.TreeNode=e,Xu}var cM;function q4(){if(cM)return Yu;cM=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.TopologyTree=void 0;const e=j4();class t{constructor(n){this.links=new Map,this.root=new e.TreeNode({value:n,parent:null}),this.links.set(n,this.root),this.traverseAndMapToTree(this.root)}walk(n){function o(i,s=1){n(i.value,s),i.children.forEach(a=>o(a,s+1))}o(this.root)}traverseAndMapToTree(n,o=1){n.value.imports&&n.value.imports.forEach(i=>{if(!i)return;if(this.links.has(i)){const a=this.links.get(i);if(n.hasCycleWith(i))return;a.getDepth()<o&&a.relink(n);return}const s=new e.TreeNode({value:i,parent:n});n.addChild(s),this.links.set(i,s),this.traverseAndMapToTree(s,o+1)})}}return Yu.TopologyTree=t,Yu}var uM;function iF(){if(uM)return Vu;uM=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.DependenciesScanner=void 0;const e=xe(),t=bp(),r=ne(),n=Ve(),o=_r(),i=mi(),s=NN(),a=R4(),c=M4(),u=I4(),p=zp(),l=C4(),d=q4(),f=zl();class h{constructor(v,_,g,y=new o.ApplicationConfig){this.container=v,this.metadataScanner=_,this.graphInspector=g,this.applicationConfig=y,this.applicationProvidersApplyMap=[]}async scan(v,_){await this.registerCoreModule(_?.overrides),await this.scanForModules({moduleDefinition:v,overrides:_?.overrides}),await this.scanModulesForDependencies(),this.addScopedEnhancersMetadata(),this.calculateModulesDistance(),this.container.bindGlobalScope()}async scanForModules({moduleDefinition:v,lazy:_,scope:g=[],ctxRegistry:y=[],overrides:b=[]}){const{moduleRef:E,inserted:x}=await this.insertOrOverrideModule(v,b,g)??{};v=this.getOverrideModuleByModule(v,b)?.newModule??v,v=v instanceof Promise?await v:v,y.push(v),this.isForwardReference(v)&&(v=v.forwardRef());const O=this.isDynamicModule(v)?[...this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v.module),...v.imports||[]]:this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v);let S=[];for(const[w,A]of O.entries()){if(A===void 0)throw new u.UndefinedModuleException(v,w,g);if(!A)throw new c.InvalidModuleException(v,w,g);if(y.includes(A))continue;const T=await this.scanForModules({moduleDefinition:A,scope:[].concat(g,v),ctxRegistry:y,overrides:b,lazy:_});S=S.concat(T)}return E?(_&&x&&this.container.bindGlobalsToImports(E),[E].concat(S)):S}async insertModule(v,_){const g=this.isForwardReference(v)?v.forwardRef():v;if(this.isInjectable(g)||this.isController(g)||this.isExceptionFilter(g))throw new a.InvalidClassModuleException(v,_);return this.container.addModule(g,_)}async scanModulesForDependencies(v=this.container.getModules()){for(const[_,{metatype:g}]of v)await this.reflectImports(g,_,g.name),this.reflectProviders(g,_),this.reflectControllers(g,_),this.reflectExports(g,_)}async reflectImports(v,_,g){const y=[...this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.IMPORTS)];for(const b of y)await this.insertImport(b,_,g)}reflectProviders(v,_){[...this.reflectMetadata(e.MODULE_METADATA.PROVIDERS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.PROVIDERS)].forEach(y=>{this.insertProvider(y,_),this.reflectDynamicMetadata(y,_)})}reflectControllers(v,_){[...this.reflectMetadata(e.MODULE_METADATA.CONTROLLERS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.CONTROLLERS)].forEach(y=>{this.insertController(y,_),this.reflectDynamicMetadata(y,_)})}reflectDynamicMetadata(v,_){!v||!v.prototype||(this.reflectInjectables(v,_,e.GUARDS_METADATA),this.reflectInjectables(v,_,e.INTERCEPTORS_METADATA),this.reflectInjectables(v,_,e.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(v,_,e.PIPES_METADATA),this.reflectParamInjectables(v,_,e.ROUTE_ARGS_METADATA))}reflectExports(v,_){[...this.reflectMetadata(e.MODULE_METADATA.EXPORTS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.EXPORTS)].forEach(y=>this.insertExportedProviderOrModule(y,_))}reflectInjectables(v,_,g){const y=this.reflectMetadata(g,v),b=this.metadataScanner.getAllMethodNames(v.prototype).reduce((E,x)=>{const O=this.reflectKeyMetadata(v,g,x);return O&&E.push(O),E},[]);y.forEach(E=>this.insertInjectable(E,_,v,e.ENHANCER_KEY_TO_SUBTYPE_MAP[g])),b.forEach(E=>{E.metadata.forEach(x=>this.insertInjectable(x,_,v,e.ENHANCER_KEY_TO_SUBTYPE_MAP[g],E.methodKey))})}reflectParamInjectables(v,_,g){this.metadataScanner.getAllMethodNames(v.prototype).forEach(b=>{const E=Reflect.getMetadata(g,v,b);if(!E)return;Object.values(E).map(O=>O.pipes).flat(1).forEach(O=>this.insertInjectable(O,_,v,"pipe",b))})}reflectKeyMetadata(v,_,g){let y=v.prototype;do{const b=Reflect.getOwnPropertyDescriptor(y,g);if(!b)continue;const E=Reflect.getMetadata(_,b.value);return E?{methodKey:g,metadata:E}:void 0}while((y=Reflect.getPrototypeOf(y))&&y!==Object.prototype&&y)}calculateModulesDistance(){const v=this.container.getModules().values();v.next();const _=v.next().value;if(!_)return;new d.TopologyTree(_).walk((y,b)=>{y.isGlobal||(y.distance=b)})}async insertImport(v,_,g){if((0,r.isUndefined)(v))throw new s.CircularDependencyException(g);if(this.isForwardReference(v))return this.container.addImport(v.forwardRef(),_);await this.container.addImport(v,_)}isCustomProvider(v){return v&&!(0,r.isNil)(v.provide)}insertProvider(v,_){if(!this.isCustomProvider(v))return this.container.addProvider(v,_);const y=this.getApplyProvidersMap(),b=Object.keys(y),E=v.provide;if(!b.includes(E))return this.container.addProvider(v,_);const x=f.UuidFactory.get(E.toString()),O=`${E} (UUID: ${x})`;let S=v.scope;(0,r.isNil)(S)&&v.useClass&&(S=(0,p.getClassScope)(v.useClass)),this.applicationProvidersApplyMap.push({type:E,moduleKey:_,providerKey:O,scope:S});const w={...v,provide:O,scope:S},A=i.ENHANCER_TOKEN_TO_SUBTYPE_MAP[E],T=w;if(this.isRequestOrTransient(T.scope))return this.container.addInjectable(w,_,A);this.container.addProvider(w,_,A)}insertInjectable(v,_,g,y,b){if((0,r.isFunction)(v)){const E=this.container.addInjectable(v,_,y,g);return this.graphInspector.insertEnhancerMetadataCache({moduleToken:_,classRef:g,enhancerInstanceWrapper:E,targetNodeId:E.id,subtype:y,methodKey:b}),E}else this.graphInspector.insertEnhancerMetadataCache({moduleToken:_,classRef:g,enhancerRef:v,methodKey:b,subtype:y})}insertExportedProviderOrModule(v,_){const g=this.isForwardReference(v)?v.forwardRef():v;this.container.addExportedProviderOrModule(g,_)}insertController(v,_){this.container.addController(v,_)}insertOrOverrideModule(v,_,g){const y=this.getOverrideModuleByModule(v,_);return y!==void 0?this.overrideModule(v,y.newModule,g):this.insertModule(v,g)}getOverrideModuleByModule(v,_){return this.isForwardReference(v)?_.find(g=>g.moduleToReplace===v.forwardRef()||g.moduleToReplace.forwardRef?.()===v.forwardRef()):_.find(g=>g.moduleToReplace===v)}async overrideModule(v,_,g){return this.container.replaceModule(this.isForwardReference(v)?v.forwardRef():v,this.isForwardReference(_)?_.forwardRef():_,g)}reflectMetadata(v,_){return Reflect.getMetadata(v,_)||[]}async registerCoreModule(v){const _=l.InternalCoreModuleFactory.create(this.container,this,this.container.getModuleCompiler(),this.container.getHttpAdapterHostRef(),this.graphInspector,v),[g]=await this.scanForModules({moduleDefinition:_,overrides:v});this.container.registerCoreModuleRef(g)}addScopedEnhancersMetadata(){(0,n.iterate)(this.applicationProvidersApplyMap).filter(v=>this.isRequestOrTransient(v.scope)).forEach(({moduleKey:v,providerKey:_})=>{const g=this.container.getModules(),{injectables:y}=g.get(v),b=y.get(_),E=g.values();(0,n.iterate)(E).map(x=>Array.from(x.controllers.values()).concat(x.entryProviders)).flatten().forEach(x=>x.addEnhancerMetadata(b))})}applyApplicationProviders(){const v=this.getApplyProvidersMap(),_=this.getApplyRequestProvidersMap(),g=(y,b,E)=>this.container.getModules().get(y)[E].get(b);this.applicationProvidersApplyMap.forEach(({moduleKey:y,providerKey:b,type:E,scope:x})=>{let O;if(this.isRequestOrTransient(x))return O=g(y,b,"injectables"),this.graphInspector.insertAttachedEnhancer(O),_[E](O);O=g(y,b,"providers"),this.graphInspector.insertAttachedEnhancer(O),v[E](O.instance)})}getApplyProvidersMap(){return{[i.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalInterceptor(v),[i.APP_PIPE]:v=>this.applicationConfig.addGlobalPipe(v),[i.APP_GUARD]:v=>this.applicationConfig.addGlobalGuard(v),[i.APP_FILTER]:v=>this.applicationConfig.addGlobalFilter(v)}}getApplyRequestProvidersMap(){return{[i.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalRequestInterceptor(v),[i.APP_PIPE]:v=>this.applicationConfig.addGlobalRequestPipe(v),[i.APP_GUARD]:v=>this.applicationConfig.addGlobalRequestGuard(v),[i.APP_FILTER]:v=>this.applicationConfig.addGlobalRequestFilter(v)}}isDynamicModule(v){return v&&!!v.module}isInjectable(v){return!!Reflect.getMetadata(e.INJECTABLE_WATERMARK,v)}isController(v){return!!Reflect.getMetadata(e.CONTROLLER_WATERMARK,v)}isExceptionFilter(v){return!!Reflect.getMetadata(e.CATCH_WATERMARK,v)}isForwardReference(v){return v&&!!v.forwardRef}isRequestOrTransient(v){return v===t.Scope.REQUEST||v===t.Scope.TRANSIENT}}return Vu.DependenciesScanner=h,Vu}var e_={},t_={},Ju={},r_={exports:{}};var n_,lM;function aF(){if(lM)return n_;lM=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return n_=o()?Object.assign:function(i,s){for(var a,c=n(i),u,p=1;p<arguments.length;p++){a=Object(arguments[p]);for(var l in a)t.call(a,l)&&(c[l]=a[l]);if(e){u=e(a);for(var d=0;d<u.length;d++)r.call(a,u[d])&&(c[u[d]]=a[u[d]])}}return c},n_}var Vd={exports:{}};var dM;function N4(){if(dM)return Vd.exports;dM=1,Vd.exports=n,Vd.exports.append=t;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function t(o,i){if(typeof o!="string")throw new TypeError("header argument is required");if(!i)throw new TypeError("field argument is required");for(var s=Array.isArray(i)?i:r(String(i)),a=0;a<s.length;a++)if(!e.test(s[a]))throw new TypeError("field argument contains an invalid header name");if(o==="*")return o;var c=o,u=r(o.toLowerCase());if(s.indexOf("*")!==-1||u.indexOf("*")!==-1)return"*";for(var p=0;p<s.length;p++){var l=s[p].toLowerCase();u.indexOf(l)===-1&&(u.push(l),c=c?c+", "+s[p]:s[p])}return c}function r(o){for(var i=0,s=[],a=0,c=0,u=o.length;c<u;c++)switch(o.charCodeAt(c)){case 32:a===i&&(a=i=c+1);break;case 44:s.push(o.substring(a,i)),a=i=c+1;break;default:i=c+1;break}return s.push(o.substring(a,i)),s}function n(o,i){if(!o||!o.getHeader||!o.setHeader)throw new TypeError("res argument is required");var s=o.getHeader("Vary")||"",a=Array.isArray(s)?s.join(", "):String(s);(s=t(a,i))&&o.setHeader("Vary",s)}return Vd.exports}var pM;function F4(){return pM||(pM=1,(function(){var e=aF(),t=N4(),r={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function n(h){return typeof h=="string"||h instanceof String}function o(h,m){if(Array.isArray(m)){for(var v=0;v<m.length;++v)if(o(h,m[v]))return!0;return!1}else return n(m)?h===m:m instanceof RegExp?m.test(h):!!m}function i(h,m){var v=m.headers.origin,_=[],g;return!h.origin||h.origin==="*"?_.push([{key:"Access-Control-Allow-Origin",value:"*"}]):n(h.origin)?(_.push([{key:"Access-Control-Allow-Origin",value:h.origin}]),_.push([{key:"Vary",value:"Origin"}])):(g=o(v,h.origin),_.push([{key:"Access-Control-Allow-Origin",value:g?v:!1}]),_.push([{key:"Vary",value:"Origin"}])),_}function s(h){var m=h.methods;return m.join&&(m=h.methods.join(",")),{key:"Access-Control-Allow-Methods",value:m}}function a(h){return h.credentials===!0?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function c(h,m){var v=h.allowedHeaders||h.headers,_=[];return v?v.join&&(v=v.join(",")):(v=m.headers["access-control-request-headers"],_.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),v&&v.length&&_.push([{key:"Access-Control-Allow-Headers",value:v}]),_}function u(h){var m=h.exposedHeaders;if(m)m.join&&(m=m.join(","));else return null;return m&&m.length?{key:"Access-Control-Expose-Headers",value:m}:null}function p(h){var m=(typeof h.maxAge=="number"||h.maxAge)&&h.maxAge.toString();return m&&m.length?{key:"Access-Control-Max-Age",value:m}:null}function l(h,m){for(var v=0,_=h.length;v<_;v++){var g=h[v];g&&(Array.isArray(g)?l(g,m):g.key==="Vary"&&g.value?t(m,g.value):g.value&&m.setHeader(g.key,g.value))}}function d(h,m,v,_){var g=[],y=m.method&&m.method.toUpperCase&&m.method.toUpperCase();y==="OPTIONS"?(g.push(i(h,m)),g.push(a(h)),g.push(s(h)),g.push(c(h,m)),g.push(p(h)),g.push(u(h)),l(g,v),h.preflightContinue?_():(v.statusCode=h.optionsSuccessStatus,v.setHeader("Content-Length","0"),v.end())):(g.push(i(h,m)),g.push(a(h)),g.push(u(h)),l(g,v),_())}function f(h){var m=null;return typeof h=="function"?m=h:m=function(v,_){_(null,h)},function(_,g,y){m(_,function(b,E){if(b)y(b);else{var x=e({},r,E),O=null;x.origin&&typeof x.origin=="function"?O=x.origin:x.origin&&(O=function(S,w){w(null,x.origin)}),O?O(_.headers.origin,function(S,w){S||!w?y(S):(x.origin=w,d(x,_,g,y))}):y()}})}}r_.exports=f})()),r_.exports}var Gd={},fM;function k4(){if(fM)return Gd;fM=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.getBodyParserOptions=t;const e=(r,n,o)=>(Buffer.isBuffer(o)&&(r.rawBody=o),!0);function t(r,n){let o=n||{};return r===!0&&(o={...o,verify:e}),o}return Gd}var hM;function D4(){if(hM)return Ju;hM=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.ExpressAdapter=void 0;const e=ve(),t=ne(),r=xN(),n=$N(),o=GN(),i=F4(),s=Mk,a=Ik,c=Ck,u=Ry(),p=k4();class l extends r.AbstractHttpAdapter{constructor(f){super(f||s()),this.routerMethodFactory=new n.RouterMethodFactory,this.logger=new e.Logger(l.name),this.openConnections=new Set,this.instance.use((h,m,v)=>{this.onResponseHook&&m.on("finish",()=>{this.onResponseHook.apply(this,[h,m])}),this.onRequestHook?this.onRequestHook.apply(this,[h,m,v]):v()})}setOnRequestHook(f){this.onRequestHook=f}setOnResponseHook(f){this.onResponseHook=f}reply(f,h,m){if(m&&f.status(m),(0,t.isNil)(h))return f.send();if(h instanceof e.StreamableFile){const _=h.getHeaders();f.getHeader("Content-Type")===void 0&&_.type!==void 0&&f.setHeader("Content-Type",_.type),f.getHeader("Content-Disposition")===void 0&&_.disposition!==void 0&&f.setHeader("Content-Disposition",_.disposition),f.getHeader("Content-Length")===void 0&&_.length!==void 0&&f.setHeader("Content-Length",_.length);const g=h.getStream();return g.once("error",y=>{h.errorHandler(y,f)}),g.pipe(f).on("error",y=>h.errorLogger(y))}const v=f.getHeader("Content-Type");return typeof v=="string"&&!v.startsWith("application/json")&&h?.statusCode>=e.HttpStatus.BAD_REQUEST&&(this.logger.warn("Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses"),f.setHeader("Content-Type","application/json")),(0,t.isObject)(h)?f.json(h):f.send(String(h))}status(f,h){return f.status(h)}end(f,h){return f.end(h)}render(f,h,m){return f.render(h,m)}redirect(f,h,m){return f.redirect(h,m)}setErrorHandler(f,h){return this.use(f)}setNotFoundHandler(f,h){return this.use(f)}isHeadersSent(f){return f.headersSent}getHeader(f,h){return f.get(h)}setHeader(f,h,m){return f.set(h,m)}appendHeader(f,h,m){return f.append(h,m)}normalizePath(f){try{const h=o.LegacyRouteConverter.tryConvert(f);return(0,u.pathToRegexp)(h),h}catch(h){throw h instanceof TypeError&&o.LegacyRouteConverter.printError(f),h}}listen(f,...h){return this.httpServer.listen(f,...h)}close(){if(this.closeOpenConnections(),!!this.httpServer)return new Promise(f=>this.httpServer.close(f))}set(...f){return this.instance.set(...f)}enable(...f){return this.instance.enable(...f)}disable(...f){return this.instance.disable(...f)}engine(...f){return this.instance.engine(...f)}useStaticAssets(f,h){return h&&h.prefix?this.use(h.prefix,s.static(f,h)):this.use(s.static(f,h))}setBaseViewsDir(f){return this.set("views",f)}setViewEngine(f){return this.set("view engine",f)}getRequestHostname(f){return f.hostname}getRequestMethod(f){return f.method}getRequestUrl(f){return f.originalUrl}enableCors(f){return this.use(i(f))}createMiddlewareFactory(f){return(h,m)=>{try{const v=o.LegacyRouteConverter.tryConvert(h);return this.routerMethodFactory.get(this.instance,f).call(this.instance,v,m)}catch(v){throw v instanceof TypeError&&o.LegacyRouteConverter.printError(h),v}}}initHttpServer(f){f&&f.httpsOptions?this.httpServer=c.createServer(f.httpsOptions,this.getInstance()):this.httpServer=a.createServer(this.getInstance()),f?.forceCloseConnections&&this.trackOpenConnections()}registerParserMiddleware(f,h){const m=(0,p.getBodyParserOptions)(h),v=(0,p.getBodyParserOptions)(h,{extended:!0}),_={jsonParser:s.json(m),urlencodedParser:s.urlencoded(v)};Object.keys(_).filter(g=>!this.isMiddlewareApplied(g)).forEach(g=>this.use(_[g]))}useBodyParser(f,h,m){const v=(0,p.getBodyParserOptions)(h,m),_=s[f](v);return this.use(_),this}setLocal(f,h){return this.instance.locals[f]=h,this}getType(){return"express"}applyVersionFilter(f,h,m){const v=(_,g,y)=>{if(!y)throw new e.InternalServerErrorException("HTTP adapter does not support filtering on version");return y()};if(h===e.VERSION_NEUTRAL||m.type===e.VersioningType.URI)return(g,y,b)=>f(g,y,b);if(m.type===e.VersioningType.CUSTOM)return(g,y,b)=>{const E=m.extractor(g);if(Array.isArray(h)){if(Array.isArray(E)&&h.filter(x=>E.includes(x)).length||(0,t.isString)(E)&&h.includes(E))return f(g,y,b)}else if((0,t.isString)(h)&&(Array.isArray(E)&&E.includes(h)||(0,t.isString)(E)&&h===E))return f(g,y,b);return v(g,y,b)};if(m.type===e.VersioningType.MEDIA_TYPE)return(g,y,b)=>{const E="Accept",x=g.headers?.[E]||g.headers?.[E.toLowerCase()],O=x?x.split(";")[1]:void 0;if((0,t.isUndefined)(O)){if(Array.isArray(h)&&h.includes(e.VERSION_NEUTRAL))return f(g,y,b)}else{const S=O.split(m.key)[1];if(Array.isArray(h)){if(h.includes(S))return f(g,y,b)}else if((0,t.isString)(h)&&h===S)return f(g,y,b)}return v(g,y,b)};if(m.type===e.VersioningType.HEADER)return(g,y,b)=>{const E=g.headers?.[m.header]||g.headers?.[m.header.toLowerCase()];if((0,t.isUndefined)(E)){if(Array.isArray(h)&&h.includes(e.VERSION_NEUTRAL))return f(g,y,b)}else if(Array.isArray(h)){if(h.includes(E))return f(g,y,b)}else if((0,t.isString)(h)&&h===E)return f(g,y,b);return v(g,y,b)};throw new Error("Unsupported versioning options")}trackOpenConnections(){this.httpServer.on("connection",f=>{this.openConnections.add(f),f.on("close",()=>this.openConnections.delete(f))})}closeOpenConnections(){for(const f of this.openConnections)f.destroy(),this.openConnections.delete(f)}isMiddlewareApplied(f){const h=this.getInstance();return!!h.router&&!!h.router.stack&&(0,t.isFunction)(h.router.stack.filter)&&h.router.stack.some(m=>m&&m.handle&&m.handle.name===f)}}return Ju.ExpressAdapter=l,Ju}var vM;function L4(){return vM||(vM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(D4(),e)})(t_)),t_}var i_={},a_={},mM;function U4(){return mM||(mM=1,Object.defineProperty(a_,"__esModule",{value:!0})),a_}var o_={},_M;function z4(){return _M||(_M=1,Object.defineProperty(o_,"__esModule",{value:!0})),o_}var gM;function B4(){return gM||(gM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(U4(),e),t.__exportStar(z4(),e)})(i_)),i_}var s_={},c_={},Wd={},ei={exports:{}},dn={exports:{}},Zd={};var yM;function H4(){if(yM)return Zd;yM=1;var e=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,t=/^[\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,n=/\\([\u0000-\u007f])/g,o=/([\\"])/g,i=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,a=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Zd.format=c,Zd.parse=u;function c(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var h=f.parameters,m=f.subtype,v=f.suffix,_=f.type;if(!_||!s.test(_))throw new TypeError("invalid type");if(!m||!i.test(m))throw new TypeError("invalid subtype");var g=_+"/"+m;if(v){if(!s.test(v))throw new TypeError("invalid suffix");g+="+"+v}if(h&&typeof h=="object")for(var y,b=Object.keys(h).sort(),E=0;E<b.length;E++){if(y=b[E],!r.test(y))throw new TypeError("invalid parameter name");g+="; "+y+"="+l(h[y])}return g}function u(f){if(!f)throw new TypeError("argument string is required");if(typeof f=="object"&&(f=p(f)),typeof f!="string")throw new TypeError("argument string is required to be a string");var h=f.indexOf(";"),m=h!==-1?f.substr(0,h):f,v,_,g=d(m),y={},b;for(e.lastIndex=h;_=e.exec(f);){if(_.index!==h)throw new TypeError("invalid parameter format");h+=_[0].length,v=_[1].toLowerCase(),b=_[2],b[0]==='"'&&(b=b.substr(1,b.length-2).replace(n,"$1")),y[v]=b}if(h!==-1&&h!==f.length)throw new TypeError("invalid parameter format");return g.parameters=y,g}function p(f){if(typeof f.getHeader=="function")return f.getHeader("content-type");if(typeof f.headers=="object")return f.headers&&f.headers["content-type"]}function l(f){var h=String(f);if(r.test(h))return h;if(h.length>0&&!t.test(h))throw new TypeError("invalid parameter value");return'"'+h.replace(o,"\\$1")+'"'}function d(f){var h=a.exec(f.toLowerCase());if(!h)throw new TypeError("invalid media type");var m=h[1],v=h[2],_,g=v.lastIndexOf("+");g!==-1&&(_=v.substr(g+1),v=v.substr(0,g));var y={type:m,subtype:v,suffix:_};return y}return Zd}var u_={};const V4={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var l_,bM;function G4(){return bM||(bM=1,l_=V4),l_}var EM;function W4(){return EM||(EM=1,(function(e){var t=G4(),r=er.extname,n=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=i,e.charsets={lookup:i},e.contentType=s,e.extension=a,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),u(e.extensions,e.types);function i(p){if(!p||typeof p!="string")return!1;var l=n.exec(p),d=l&&t[l[1].toLowerCase()];return d&&d.charset?d.charset:l&&o.test(l[1])?"UTF-8":!1}function s(p){if(!p||typeof p!="string")return!1;var l=p.indexOf("/")===-1?e.lookup(p):p;if(!l)return!1;if(l.indexOf("charset")===-1){var d=e.charset(l);d&&(l+="; charset="+d.toLowerCase())}return l}function a(p){if(!p||typeof p!="string")return!1;var l=n.exec(p),d=l&&e.extensions[l[1].toLowerCase()];return!d||!d.length?!1:d[0]}function c(p){if(!p||typeof p!="string")return!1;var l=r("x."+p).toLowerCase().substr(1);return l&&e.types[l]||!1}function u(p,l){var d=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(h){var m=t[h],v=m.extensions;if(!(!v||!v.length)){p[h]=v;for(var _=0;_<v.length;_++){var g=v[_];if(l[g]){var y=d.indexOf(t[l[g]].source),b=d.indexOf(m.source);if(l[g]!=="application/octet-stream"&&(y>b||y===b&&l[g].substr(0,12)==="application/"))continue}l[g]=h}}})}})(u_)),u_}var xM;function Z4(){if(xM)return dn.exports;xM=1;var e=H4(),t=W4();dn.exports=o,dn.exports.is=r,dn.exports.hasBody=n,dn.exports.normalize=i,dn.exports.match=s;function r(u,p){var l,d=p,f=c(u);if(!f)return!1;if(d&&!Array.isArray(d))for(d=new Array(arguments.length-1),l=0;l<d.length;l++)d[l]=arguments[l+1];if(!d||!d.length)return f;var h;for(l=0;l<d.length;l++)if(s(i(h=d[l]),f))return h[0]==="+"||h.indexOf("*")!==-1?f:h;return!1}function n(u){return u.headers["transfer-encoding"]!==void 0||!isNaN(u.headers["content-length"])}function o(u,p){var l=p;if(!n(u))return null;if(arguments.length>2){l=new Array(arguments.length-1);for(var d=0;d<l.length;d++)l[d]=arguments[d+1]}var f=u.headers["content-type"];return r(f,l)}function i(u){if(typeof u!="string")return!1;switch(u){case"urlencoded":return"application/x-www-form-urlencoded";case"multipart":return"multipart/*"}return u[0]==="+"?"*/*"+u:u.indexOf("/")===-1?t.lookup(u):u}function s(u,p){if(u===!1)return!1;var l=p.split("/"),d=u.split("/");return l.length!==2||d.length!==2||d[0]!=="*"&&d[0]!==l[0]?!1:d[1].substr(0,2)==="*+"?d[1].length<=l[1].length+1&&d[1].substr(1)===l[1].substr(1-d[1].length):!(d[1]!=="*"&&d[1]!==l[1])}function a(u){var p=e.parse(u);return p.parameters=void 0,e.format(p)}function c(u){if(!u)return null;try{return a(u)}catch{return null}}return dn.exports}var d_,OM;function qy(){if(OM)return d_;OM=1;function e(f){if(f.length===0)return;const h=Object.create(null);let m=0;for(;m<f.length;++m){const y=f.charCodeAt(m);if(c[y]!==1){if(y!==47||m===0)return;break}}if(m===f.length)return;const v=f.slice(0,m).toLowerCase(),_=++m;for(;m<f.length;++m){const y=f.charCodeAt(m);if(c[y]!==1){if(m===_||t(f,m,h)===void 0)return;break}}if(m===_)return;const g=f.slice(_,m).toLowerCase();return{type:v,subtype:g,params:h}}function t(f,h,m){for(;h<f.length;){for(;h<f.length;++h){const b=f.charCodeAt(h);if(b!==32&&b!==9)break}if(h===f.length)break;if(f.charCodeAt(h++)!==59)return;for(;h<f.length;++h){const b=f.charCodeAt(h);if(b!==32&&b!==9)break}if(h===f.length)return;let v;const _=h;for(;h<f.length;++h){const b=f.charCodeAt(h);if(c[b]!==1){if(b!==61)return;break}}if(h===f.length||(v=f.slice(_,h),++h,h===f.length))return;let g="",y;if(f.charCodeAt(h)===34){y=++h;let b=!1;for(;h<f.length;++h){const E=f.charCodeAt(h);if(E===92){b?(y=h,b=!1):(g+=f.slice(y,h),b=!0);continue}if(E===34){if(b){y=h,b=!1;continue}g+=f.slice(y,h);break}if(b&&(y=h-1,b=!1),u[E]!==1)return}if(h===f.length)return;++h}else{for(y=h;h<f.length;++h){const b=f.charCodeAt(h);if(c[b]!==1){if(h===y)return;break}}g=f.slice(y,h)}v=v.toLowerCase(),m[v]===void 0&&(m[v]=g)}return m}function r(f,h){if(f.length===0)return;const m=Object.create(null);let v=0;for(;v<f.length;++v){const g=f.charCodeAt(v);if(c[g]!==1){if(n(f,v,m,h)===void 0)return;break}}return{type:f.slice(0,v).toLowerCase(),params:m}}function n(f,h,m,v){for(;h<f.length;){for(;h<f.length;++h){const x=f.charCodeAt(h);if(x!==32&&x!==9)break}if(h===f.length)break;if(f.charCodeAt(h++)!==59)return;for(;h<f.length;++h){const x=f.charCodeAt(h);if(x!==32&&x!==9)break}if(h===f.length)return;let _;const g=h;for(;h<f.length;++h){const x=f.charCodeAt(h);if(c[x]!==1){if(x===61)break;return}}if(h===f.length)return;let y="",b,E;if(_=f.slice(g,h),_.charCodeAt(_.length-1)===42){const x=++h;for(;h<f.length;++h){const S=f.charCodeAt(h);if(p[S]!==1){if(S!==39)return;break}}if(h===f.length)return;for(E=f.slice(x,h),++h;h<f.length&&f.charCodeAt(h)!==39;++h);if(h===f.length||(++h,h===f.length))return;b=h;let O=0;for(;h<f.length;++h){const S=f.charCodeAt(h);if(l[S]!==1){if(S===37){let w,A;if(h+2<f.length&&(w=d[f.charCodeAt(h+1)])!==-1&&(A=d[f.charCodeAt(h+2)])!==-1){const T=(w<<4)+A;y+=f.slice(b,h),y+=String.fromCharCode(T),h+=2,b=h+1,T>=128?O=2:O===0&&(O=1);continue}return}break}}if(y+=f.slice(b,h),y=s(y,E,O),y===void 0)return}else{if(++h,h===f.length)return;if(f.charCodeAt(h)===34){b=++h;let x=!1;for(;h<f.length;++h){const O=f.charCodeAt(h);if(O===92){x?(b=h,x=!1):(y+=f.slice(b,h),x=!0);continue}if(O===34){if(x){b=h,x=!1;continue}y+=f.slice(b,h);break}if(x&&(b=h-1,x=!1),u[O]!==1)return}if(h===f.length)return;++h}else{for(b=h;h<f.length;++h){const x=f.charCodeAt(h);if(c[x]!==1){if(h===b)return;break}}y=f.slice(b,h)}if(y=v(y,2),y===void 0)return}_=_.toLowerCase(),m[_]===void 0&&(m[_]=y)}return m}function o(f){let h;for(;;)switch(f){case"utf-8":case"utf8":return i.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return i.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return i.utf16le;case"base64":return i.base64;default:if(h===void 0){h=!0,f=f.toLowerCase();continue}return i.other.bind(f)}}const i={utf8:(f,h)=>{if(f.length===0)return"";if(typeof f=="string"){if(h<2)return f;f=Buffer.from(f,"latin1")}return f.utf8Slice(0,f.length)},latin1:(f,h)=>f.length===0?"":typeof f=="string"?f:f.latin1Slice(0,f.length),utf16le:(f,h)=>f.length===0?"":(typeof f=="string"&&(f=Buffer.from(f,"latin1")),f.ucs2Slice(0,f.length)),base64:(f,h)=>f.length===0?"":(typeof f=="string"&&(f=Buffer.from(f,"latin1")),f.base64Slice(0,f.length)),other:(f,h)=>{if(f.length===0)return"";typeof f=="string"&&(f=Buffer.from(f,"latin1"));try{return new TextDecoder(this).decode(f)}catch{}}};function s(f,h,m){const v=o(h);if(v)return v(f,m)}function a(f){if(typeof f!="string")return"";for(let h=f.length-1;h>=0;--h)switch(f.charCodeAt(h)){case 47:case 92:return f=f.slice(h+1),f===".."||f==="."?"":f}return f===".."||f==="."?"":f}const c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];return d_={basename:a,convertToUTF8:s,getDecoder:o,parseContentType:e,parseDisposition:r},d_}var p_,wM;function K4(){if(wM)return p_;wM=1;function e(o,i,s,a,c){for(let u=0;u<c;++u)if(o[i+u]!==s[a+u])return!1;return!0}class t{constructor(i,s){if(typeof s!="function")throw new Error("Missing match callback");if(typeof i=="string")i=Buffer.from(i);else if(!Buffer.isBuffer(i))throw new Error(`Expected Buffer for needle, got ${typeof i}`);const a=i.length;if(this.maxMatches=1/0,this.matches=0,this._cb=s,this._lookbehindSize=0,this._needle=i,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(a),this._occ=[a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a],a>1)for(let c=0;c<a-1;++c)this._occ[i[c]]=a-1-c}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(i,s){let a;Buffer.isBuffer(i)||(i=Buffer.from(i,"latin1"));const c=i.length;for(this._bufPos=s||0;a!==c&&this.matches<this.maxMatches;)a=r(this,i);return a}destroy(){const i=this._lookbehindSize;i&&this._cb(!1,this._lookbehind,0,i,!1),this.reset()}}function r(o,i){const s=i.length,a=o._needle,c=a.length;let u=-o._lookbehindSize;const p=c-1,l=a[p],d=s-c,f=o._occ,h=o._lookbehind;if(u<0){for(;u<0&&u<=d;){const v=u+p,_=v<0?h[o._lookbehindSize+v]:i[v];if(_===l&&n(o,i,u,p))return o._lookbehindSize=0,++o.matches,u>-o._lookbehindSize?o._cb(!0,h,0,o._lookbehindSize+u,!1):o._cb(!0,void 0,0,0,!0),o._bufPos=u+c;u+=f[_]}for(;u<0&&!n(o,i,u,s-u);)++u;if(u<0){const v=o._lookbehindSize+u;return v>0&&o._cb(!1,h,0,v,!1),o._lookbehindSize-=v,h.copy(h,0,v,o._lookbehindSize),h.set(i,o._lookbehindSize),o._lookbehindSize+=s,o._bufPos=s,s}o._cb(!1,h,0,o._lookbehindSize,!1),o._lookbehindSize=0}u+=o._bufPos;const m=a[0];for(;u<=d;){const v=i[u+p];if(v===l&&i[u]===m&&e(a,0,i,u,p))return++o.matches,u>0?o._cb(!0,i,o._bufPos,u,!0):o._cb(!0,void 0,0,0,!0),o._bufPos=u+c;u+=f[v]}for(;u<s;){if(i[u]!==m||!e(i,u,a,0,s-u)){++u;continue}i.copy(h,0,u,s),o._lookbehindSize=s-u;break}return u>0&&o._cb(!1,i,o._bufPos,u<s?u:s,!0),o._bufPos=s,s}function n(o,i,s,a){const c=o._lookbehind,u=o._lookbehindSize,p=o._needle;for(let l=0;l<a;++l,++s)if((s<0?c[u+s]:i[s])!==p[l])return!1;return!0}return p_=t,p_}var f_,SM;function Y4(){if(SM)return f_;SM=1;const{Readable:e,Writable:t}=mp,r=K4(),{basename:n,convertToUTF8:o,getDecoder:i,parseContentType:s,parseDisposition:a}=qy(),c=Buffer.from(`\r
|
|
147
|
-
`),u=Buffer.from("\r"),p=Buffer.from("-");function l(){}const d=2e3,f=16*1024,h=0,m=1,v=2;class _{constructor(
|
|
148
|
-
--${D}`,Re),this._writecb=null,this._finalcb=null,this.write(c)}static detect(P){return P.type==="multipart"&&P.subtype==="form-data"}_write(P,N,D){this._writecb=D,this._bparser.push(P,0),this._writecb&&b(this)}_destroy(P,N){this._hparser=null,this._bparser=y,P||(P=S(this));const D=this._fileStream;D&&(this._fileStream=null,D.destroy(P)),N(P)}_final(P){if(this._bparser.destroy(),!this._complete)return P(new Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=O.bind(null,this,P):O(this,P)}}function O(T,P,N){if(N)return P(N);N=S(T),P(N)}function S(T){if(T._hparser)return new Error("Malformed part header");const P=T._fileStream;if(P&&(T._fileStream=null,P.destroy(new Error("Unexpected end of file"))),!T._complete)return new Error("Unexpected end of form")}const w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],A=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];return f_=x,f_}var h_,TM;function X4(){if(TM)return h_;TM=1;const{Writable:e}=mp,{getDecoder:t}=qy();class r extends e{constructor(c){const u={autoDestroy:!0,emitClose:!0,highWaterMark:typeof c.highWaterMark=="number"?c.highWaterMark:void 0};super(u);let p=c.defCharset||"utf8";c.conType.params&&typeof c.conType.params.charset=="string"&&(p=c.conType.params.charset),this.charset=p;const l=c.limits;this.fieldSizeLimit=l&&typeof l.fieldSize=="number"?l.fieldSize:1*1024*1024,this.fieldsLimit=l&&typeof l.fields=="number"?l.fields:1/0,this.fieldNameSizeLimit=l&&typeof l.fieldNameSize=="number"?l.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=t(p)}static detect(c){return c.type==="application"&&c.subtype==="x-www-form-urlencoded"}_write(c,u,p){if(this._fields>=this.fieldsLimit)return p();let l=0;const d=c.length;if(this._lastPos=0,this._byte!==-2){if(l=n(this,c,l,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;l<d;)if(this._inKey){for(l=o(this,c,l,d);l<d;){switch(c[l]){case 61:this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),p();continue;case 43:this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._key+=" ",this._lastPos=l+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=l+1,this._byte=-1,l=n(this,c,l+1,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();++this._bytesKey,l=o(this,c,l,d);continue}++l,++this._bytesKey,l=o(this,c,l,d)}this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l))}else{for(l=i(this,c,l,d);l<d;){switch(c[l]){case 38:if(this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),p();continue e;case 43:this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._val+=" ",this._lastPos=l+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._lastPos=l+1,this._byte=-1,l=n(this,c,l+1,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();++this._bytesVal,l=i(this,c,l,d);continue}++l,++this._bytesVal,l=i(this,c,l,d)}this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l))}p()}_final(c){if(this._byte!==-2)return c(new Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),c()}}function n(a,c,u,p){if(u>=p)return p;if(a._byte===-1){const l=s[c[u++]];if(l===-1)return-1;if(l>=8&&(a._encode=2),u<p){const d=s[c[u++]];if(d===-1)return-1;a._inKey?a._key+=String.fromCharCode((l<<4)+d):a._val+=String.fromCharCode((l<<4)+d),a._byte=-2,a._lastPos=u}else a._byte=l}else{const l=s[c[u++]];if(l===-1)return-1;a._inKey?a._key+=String.fromCharCode((a._byte<<4)+l):a._val+=String.fromCharCode((a._byte<<4)+l),a._byte=-2,a._lastPos=u}return u}function o(a,c,u,p){if(a._bytesKey>a.fieldNameSizeLimit){for(a._keyTrunc||a._lastPos<u&&(a._key+=c.latin1Slice(a._lastPos,u-1)),a._keyTrunc=!0;u<p;++u){const l=c[u];if(l===61||l===38)break;++a._bytesKey}a._lastPos=u}return u}function i(a,c,u,p){if(a._bytesVal>a.fieldSizeLimit){for(a._valTrunc||a._lastPos<u&&(a._val+=c.latin1Slice(a._lastPos,u-1)),a._valTrunc=!0;u<p&&c[u]!==38;++u)++a._bytesVal;a._lastPos=u}return u}const s=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];return h_=r,h_}var v_,PM;function J4(){if(PM)return v_;PM=1;const{parseContentType:e}=qy();function t(n){const o=n.headers,i=e(o["content-type"]);if(!i)throw new Error("Malformed content type");for(const s of r){if(!s.detect(i))continue;const c={limits:n.limits,headers:o,conType:i,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return n.highWaterMark&&(c.highWaterMark=n.highWaterMark),n.fileHwm&&(c.fileHwm=n.fileHwm),c.defCharset=n.defCharset,c.defParamCharset=n.defParamCharset,c.preservePath=n.preservePath,new s(c)}throw new Error(`Unsupported content type: ${o["content-type"]}`)}const r=[Y4(),X4()].filter(function(n){return typeof n.detect=="function"});return v_=n=>{if((typeof n!="object"||n===null)&&(n={}),typeof n.headers!="object"||n.headers===null||typeof n.headers["content-type"]!="string")throw new Error("Missing Content-Type");return t(n)},v_}var m_,AM;function Q4(){if(AM)return m_;AM=1,m_=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return m_}var __,RM;function $4(){if(RM)return __;RM=1;var e=/^[^\[]*/,t=/^\[(\d+)\]/,r=/^\[([^\]]+)\]/;function n(o){function i(){return[{type:"object",key:o,last:!0}]}var s=e.exec(o)[0];if(!s)return i();for(var a=o.length,c=s.length,u={type:"object",key:s},p=[u];c<a;){var l;if(o[c]==="["&&o[c+1]==="]"){if(c+=2,u.append=!0,c!==a)return i();continue}if(l=t.exec(o.substring(c)),l!==null){c+=l[0].length,u.nextType="array",u={type:"array",key:parseInt(l[1],10)},p.push(u);continue}if(l=r.exec(o.substring(c)),l!==null){c+=l[0].length,u.nextType="object",u={type:"object",key:l[1]},p.push(u);continue}return i()}return u.last=!0,p}return __=n,__}var g_,MM;function eK(){if(MM)return g_;MM=1;function e(n){return n===void 0?"undefined":Array.isArray(n)?"array":typeof n=="object"?"object":"scalar"}function t(n,o,i,s){switch(e(i)){case"undefined":o.append?n[o.key]=[s]:n[o.key]=s;break;case"array":n[o.key].push(s);break;case"object":return t(i,{key:""},i[""],s);case"scalar":n[o.key]=[n[o.key],s];break}return n}function r(n,o,i,s){if(o.last)return t(n,o,i,s);var a;switch(e(i)){case"undefined":return o.nextType==="array"?n[o.key]=[]:n[o.key]=Object.create(null),n[o.key];case"object":return n[o.key];case"array":return o.nextType==="array"?i:(a=Object.create(null),n[o.key]=a,i.forEach(function(c,u){c!==void 0&&(a[""+u]=c)}),a);case"scalar":return a=Object.create(null),a[""]=i,n[o.key]=a,a}}return g_=r,g_}var y_,IM;function tK(){if(IM)return y_;IM=1;var e=$4(),t=eK();function r(n,o,i){var s=e(o);s.reduce(function(a,c){return t(a,c,a[c.key],i)},n)}return y_=r,y_}var b_,CM;function rK(){if(CM)return b_;CM=1;var e=fg.EventEmitter;function t(){e.call(this),this.value=0}return t.prototype=Object.create(e.prototype),t.prototype.increment=function(){this.value++},t.prototype.decrement=function(){--this.value===0&&this.emit("zero")},t.prototype.isZero=function(){return this.value===0},t.prototype.onceZero=function(n){if(this.isZero())return n();this.once("zero",n)},b_=t,b_}var E_,jM;function oF(){if(jM)return E_;jM=1;var e=li,t={LIMIT_PART_COUNT:"Too many parts",LIMIT_FILE_SIZE:"File too large",LIMIT_FILE_COUNT:"Too many files",LIMIT_FIELD_KEY:"Field name too long",LIMIT_FIELD_VALUE:"Field value too long",LIMIT_FIELD_COUNT:"Too many fields",LIMIT_UNEXPECTED_FILE:"Unexpected field",MISSING_FIELD_NAME:"Field name missing"};function r(n,o){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t[n],this.code=n,o&&(this.field=o)}return e.inherits(r,Error),E_=r,E_}var x_,qM;function nK(){if(qM)return x_;qM=1;var e=aF();function t(n,o){var i=n.indexOf(o);~i&&n.splice(i,1)}function r(n,o){switch(this.strategy=n,this.req=o,n){case"NONE":break;case"VALUE":break;case"ARRAY":o.files=[];break;case"OBJECT":o.files=Object.create(null);break;default:throw new Error("Unknown file strategy: "+n)}}return r.prototype.insertPlaceholder=function(n){var o={fieldname:n.fieldname};switch(this.strategy){case"NONE":break;case"VALUE":break;case"ARRAY":this.req.files.push(o);break;case"OBJECT":this.req.files[n.fieldname]?this.req.files[n.fieldname].push(o):this.req.files[n.fieldname]=[o];break}return o},r.prototype.removePlaceholder=function(n){switch(this.strategy){case"NONE":break;case"VALUE":break;case"ARRAY":t(this.req.files,n);break;case"OBJECT":this.req.files[n.fieldname].length===1?delete this.req.files[n.fieldname]:t(this.req.files[n.fieldname],n);break}},r.prototype.replacePlaceholder=function(n,o){if(this.strategy==="VALUE"){this.req.file=o;return}delete n.fieldname,e(n,o)},x_=r,x_}var O_,NM;function iK(){if(NM)return O_;NM=1;function e(t,r,n){var o=t.length,i=[];if(o===0)return n(null,i);function s(a){var c=t[a];r(c,function(u){u&&(u.file=c,u.field=c.fieldname,i.push(u)),a<o-1?s(a+1):n(null,i)})}s(0)}return O_=e,O_}var w_,FM;function aK(){if(FM)return w_;FM=1;var e=Z4(),t=J4(),r=Q4(),n=tK(),o=rK(),i=oF(),s=nK(),a=iK();function c(p){p.on("readable",()=>{for(;p.read()!==null;);})}function u(p){return function(d,f,h){if(!e(d,["multipart"]))return h();var m=p(),v=m.limits,_=m.storage,g=m.fileFilter,y=m.fileStrategy,b=m.preservePath;d.body=Object.create(null),d.on("error",function(F){D(F)});var E;try{E=t({headers:d.headers,limits:v,preservePath:b})}catch(F){return h(F)}var x=new s(y,d),O=!1,S=!1,w=!1,A=new o,T=[];function P(F){O||(O=!0,d.unpipe(E),c(d),d.resume(),setImmediate(()=>{E.removeAllListeners()}),h(F))}function N(){S&&A.isZero()&&!w&&P()}function D(F){w||(w=!0,A.onceZero(function(){function k(Z,J){_._removeFile(d,Z,J)}a(T,k,function(Z,J){if(Z)return P(Z);F.storageErrors=J,P(F)})}))}function V(F,k){D(new i(F,k))}E.on("field",function(F,k,{nameTruncated:Z,valueTruncated:J}){if(F==null)return V("MISSING_FIELD_NAME");if(Z)return V("LIMIT_FIELD_KEY");if(J)return V("LIMIT_FIELD_VALUE",F);if(v&&Object.prototype.hasOwnProperty.call(v,"fieldNameSize")&&F.length>v.fieldNameSize)return V("LIMIT_FIELD_KEY");n(d.body,F,k)}),E.on("file",function(F,k,{filename:Z,encoding:J,mimeType:U}){var $=!1;if(k.on("error",function(L){$&&A.decrement(),D(L)}),F==null)return V("MISSING_FIELD_NAME");if(!Z)return k.resume();if(v&&Object.prototype.hasOwnProperty.call(v,"fieldNameSize")&&F.length>v.fieldNameSize)return V("LIMIT_FIELD_KEY");var C={fieldname:F,originalname:Z,encoding:J,mimetype:U},q=x.insertPlaceholder(C);g(d,C,function(L,B){if(L)return x.removePlaceholder(q),D(L);if(!B)return x.removePlaceholder(q),k.resume();var M=!1;$=!0,A.increment(),Object.defineProperty(C,"stream",{configurable:!0,enumerable:!1,value:k}),k.on("limit",function(){M=!0,V("LIMIT_FILE_SIZE",F)}),_._handleFile(d,C,function(j,z){if(M)return x.removePlaceholder(q),T.push(r(C,z)),A.decrement();if(j)return x.removePlaceholder(q),A.decrement(),D(j);var Y=r(C,z);x.replacePlaceholder(q,Y),T.push(Y),A.decrement(),N()})})}),E.on("error",function(F){D(F)}),E.on("partsLimit",function(){V("LIMIT_PART_COUNT")}),E.on("filesLimit",function(){V("LIMIT_FILE_COUNT")}),E.on("fieldsLimit",function(){V("LIMIT_FIELD_COUNT")}),E.on("close",function(){S=!0,N()}),d.pipe(E)}}return w_=u,w_}var S_,kM;function oK(){if(kM)return S_;kM=1;var e=er,t=ci,r=parseInt("0777",8);S_=n.mkdirp=n.mkdirP=n;function n(o,i,s,a){typeof i=="function"?(s=i,i={}):(!i||typeof i!="object")&&(i={mode:i});var c=i.mode,u=i.fs||t;c===void 0&&(c=r),a||(a=null);var p=s||function(){};o=e.resolve(o),u.mkdir(o,c,function(l){if(!l)return a=a||o,p(null,a);switch(l.code){case"ENOENT":if(e.dirname(o)===o)return p(l);n(e.dirname(o),i,function(d,f){d?p(d,f):n(o,i,p,f)});break;default:u.stat(o,function(d,f){d||!f.isDirectory()?p(l,a):p(null,a)});break}})}return n.sync=function o(i,s,a){(!s||typeof s!="object")&&(s={mode:s});var c=s.mode,u=s.fs||t;c===void 0&&(c=r),a||(a=null),i=e.resolve(i);try{u.mkdirSync(i,c),a=a||i}catch(l){switch(l.code){case"ENOENT":a=o(e.dirname(i),s,a),o(i,s,a);break;default:var p;try{p=u.statSync(i)}catch{throw l}if(!p.isDirectory())throw l;break}}return a},S_}var T_,DM;function sK(){if(DM)return T_;DM=1;var e=ci,t=vp,r=er,n=ui,o=oK();function i(c,u,p){n.randomBytes(16,function(l,d){p(l,l?void 0:d.toString("hex"))})}function s(c,u,p){p(null,t.tmpdir())}function a(c){this.getFilename=c.filename||i,typeof c.destination=="string"?(o.sync(c.destination),this.getDestination=function(u,p,l){l(null,c.destination)}):this.getDestination=c.destination||s}return a.prototype._handleFile=function(u,p,l){var d=this;d.getDestination(u,p,function(f,h){if(f)return l(f);d.getFilename(u,p,function(m,v){if(m)return l(m);var _=r.join(h,v),g=e.createWriteStream(_);p.stream.pipe(g),g.on("error",l),g.on("finish",function(){l(null,{destination:h,filename:v,path:_,size:g.bytesWritten})})})})},a.prototype._removeFile=function(u,p,l){var d=p.path;delete p.destination,delete p.filename,delete p.path,e.unlink(d,l)},T_=function(c){return new a(c)},T_}var Kd={exports:{}},P_,LM;function sF(){return LM||(LM=1,P_=fg.EventEmitter),P_}var A_,UM;function cK(){if(UM)return A_;UM=1;function e(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);m&&(_=_.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,_)}return v}function t(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?e(Object(v),!0).forEach(function(_){r(h,_,v[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):e(Object(v)).forEach(function(_){Object.defineProperty(h,_,Object.getOwnPropertyDescriptor(v,_))})}return h}function r(h,m,v){return m=s(m),m in h?Object.defineProperty(h,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[m]=v,h}function n(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function o(h,m){for(var v=0;v<m.length;v++){var _=m[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,s(_.key),_)}}function i(h,m,v){return m&&o(h.prototype,m),Object.defineProperty(h,"prototype",{writable:!1}),h}function s(h){var m=a(h,"string");return typeof m=="symbol"?m:String(m)}function a(h,m){if(typeof h!="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var _=v.call(h,m);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}var c=_p,u=c.Buffer,p=li,l=p.inspect,d=l&&l.custom||"inspect";function f(h,m,v){u.prototype.copy.call(h,m,v)}return A_=(function(){function h(){n(this,h),this.head=null,this.tail=null,this.length=0}return i(h,[{key:"push",value:function(v){var _={data:v,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length}},{key:"unshift",value:function(v){var _={data:v,next:this.head};this.length===0&&(this.tail=_),this.head=_,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var _=this.head,g=""+_.data;_=_.next;)g+=v+_.data;return g}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var _=u.allocUnsafe(v>>>0),g=this.head,y=0;g;)f(g.data,_,y),y+=g.data.length,g=g.next;return _}},{key:"consume",value:function(v,_){var g;return v<this.head.data.length?(g=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?g=this.shift():g=_?this._getString(v):this._getBuffer(v),g}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var _=this.head,g=1,y=_.data;for(v-=y.length;_=_.next;){var b=_.data,E=v>b.length?b.length:v;if(E===b.length?y+=b:y+=b.slice(0,v),v-=E,v===0){E===b.length?(++g,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=b.slice(E));break}++g}return this.length-=g,y}},{key:"_getBuffer",value:function(v){var _=u.allocUnsafe(v),g=this.head,y=1;for(g.data.copy(_),v-=g.data.length;g=g.next;){var b=g.data,E=v>b.length?b.length:v;if(b.copy(_,_.length-v,0,E),v-=E,v===0){E===b.length?(++y,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=b.slice(E));break}++y}return this.length-=y,_}},{key:d,value:function(v,_){return l(this,t(t({},_),{},{depth:0,customInspect:!1}))}}]),h})(),A_}var R_,zM;function cF(){if(zM)return R_;zM=1;function e(s,a){var c=this,u=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return u||p?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,s)):process.nextTick(o,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(l){!a&&l?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,l)):process.nextTick(t,c,l):a?(process.nextTick(r,c),a(l)):process.nextTick(r,c)}),this)}function t(s,a){o(s,a),r(s)}function r(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(s,a){s.emit("error",a)}function i(s,a){var c=s._readableState,u=s._writableState;c&&c.autoDestroy||u&&u.autoDestroy?s.destroy(a):s.emit("error",a)}return R_={destroy:e,undestroy:n,errorOrDestroy:i},R_}var M_={},BM;function yi(){if(BM)return M_;BM=1;function e(a,c){a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c}var t={};function r(a,c,u){u||(u=Error);function p(d,f,h){return typeof c=="string"?c:c(d,f,h)}var l=(function(d){e(f,d);function f(h,m,v){return d.call(this,p(h,m,v))||this}return f})(u);l.prototype.name=u.name,l.prototype.code=a,t[a]=l}function n(a,c){if(Array.isArray(a)){var u=a.length;return a=a.map(function(p){return String(p)}),u>2?"one of ".concat(c," ").concat(a.slice(0,u-1).join(", "),", or ")+a[u-1]:u===2?"one of ".concat(c," ").concat(a[0]," or ").concat(a[1]):"of ".concat(c," ").concat(a[0])}else return"of ".concat(c," ").concat(String(a))}function o(a,c,u){return a.substr(0,c.length)===c}function i(a,c,u){return(u===void 0||u>a.length)&&(u=a.length),a.substring(u-c.length,u)===c}function s(a,c,u){return typeof u!="number"&&(u=0),u+c.length>a.length?!1:a.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(a,c){return'The value "'+c+'" is invalid for option "'+a+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(a,c,u){var p;typeof c=="string"&&o(c,"not ")?(p="must not be",c=c.replace(/^not /,"")):p="must be";var l;if(i(a," argument"))l="The ".concat(a," ").concat(p," ").concat(n(c,"type"));else{var d=s(a,".")?"property":"argument";l='The "'.concat(a,'" ').concat(d," ").concat(p," ").concat(n(c,"type"))}return l+=". Received type ".concat(typeof u),l},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),M_.codes=t,M_}var I_,HM;function uF(){if(HM)return I_;HM=1;var e=yi().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,s){var a=t(o,s,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var c=s?i:"highWaterMark";throw new e(c,a)}return Math.floor(a)}return n.objectMode?16:16*1024}return I_={getHighWaterMark:r},I_}var Yd={exports:{}},VM;function bi(){return VM||(VM=1,typeof Object.create=="function"?Yd.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yd.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Yd.exports}var C_,GM;function uK(){if(GM)return C_;GM=1,C_=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!ft.localStorage)return!1}catch{return!1}var n=ft.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return C_}var j_,WM;function lF(){if(WM)return j_;WM=1,j_=S;function e(M){var j=this;this.next=null,this.entry=null,this.finish=function(){B(j,M)}}var t;S.WritableState=x;var r={deprecate:uK()},n=sF(),o=_p.Buffer,i=(typeof ft<"u"?ft:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(M){return o.from(M)}function a(M){return o.isBuffer(M)||M instanceof i}var c=cF(),u=uF(),p=u.getHighWaterMark,l=yi().codes,d=l.ERR_INVALID_ARG_TYPE,f=l.ERR_METHOD_NOT_IMPLEMENTED,h=l.ERR_MULTIPLE_CALLBACK,m=l.ERR_STREAM_CANNOT_PIPE,v=l.ERR_STREAM_DESTROYED,_=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,y=l.ERR_UNKNOWN_ENCODING,b=c.errorOrDestroy;bi()(S,n);function E(){}function x(M,j,z){t=t||si(),M=M||{},typeof z!="boolean"&&(z=j instanceof t),this.objectMode=!!M.objectMode,z&&(this.objectMode=this.objectMode||!!M.writableObjectMode),this.highWaterMark=p(this,M,"writableHighWaterMark",z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=M.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){F(j,te)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}x.prototype.getBuffer=function(){for(var j=this.bufferedRequest,z=[];j;)z.push(j),j=j.next;return z},(function(){try{Object.defineProperty(x.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(j){return O.call(this,j)?!0:this!==S?!1:j&&j._writableState instanceof x}})):O=function(j){return j instanceof this};function S(M){t=t||si();var j=this instanceof t;if(!j&&!O.call(S,this))return new S(M);this._writableState=new x(M,this,j),this.writable=!0,M&&(typeof M.write=="function"&&(this._write=M.write),typeof M.writev=="function"&&(this._writev=M.writev),typeof M.destroy=="function"&&(this._destroy=M.destroy),typeof M.final=="function"&&(this._final=M.final)),n.call(this)}S.prototype.pipe=function(){b(this,new m)};function w(M,j){var z=new g;b(M,z),process.nextTick(j,z)}function A(M,j,z,Y){var te;return z===null?te=new _:typeof z!="string"&&!j.objectMode&&(te=new d("chunk",["string","Buffer"],z)),te?(b(M,te),process.nextTick(Y,te),!1):!0}S.prototype.write=function(M,j,z){var Y=this._writableState,te=!1,R=!Y.objectMode&&a(M);return R&&!o.isBuffer(M)&&(M=s(M)),typeof j=="function"&&(z=j,j=null),R?j="buffer":j||(j=Y.defaultEncoding),typeof z!="function"&&(z=E),Y.ending?w(this,z):(R||A(this,Y,M,z))&&(Y.pendingcb++,te=P(this,Y,R,M,j,z)),te},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,!M.writing&&!M.corked&&!M.bufferProcessing&&M.bufferedRequest&&J(this,M))},S.prototype.setDefaultEncoding=function(j){if(typeof j=="string"&&(j=j.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j+"").toLowerCase())>-1))throw new y(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(M,j,z){return!M.objectMode&&M.decodeStrings!==!1&&typeof j=="string"&&(j=o.from(j,z)),j}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P(M,j,z,Y,te,R){if(!z){var I=T(j,Y,te);Y!==I&&(z=!0,te="buffer",Y=I)}var W=j.objectMode?1:Y.length;j.length+=W;var Q=j.length<j.highWaterMark;if(Q||(j.needDrain=!0),j.writing||j.corked){var oe=j.lastBufferedRequest;j.lastBufferedRequest={chunk:Y,encoding:te,isBuf:z,callback:R,next:null},oe?oe.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else N(M,j,!1,W,Y,te,R);return Q}function N(M,j,z,Y,te,R,I){j.writelen=Y,j.writecb=I,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new v("write")):z?M._writev(te,j.onwrite):M._write(te,R,j.onwrite),j.sync=!1}function D(M,j,z,Y,te){--j.pendingcb,z?(process.nextTick(te,Y),process.nextTick(q,M,j),M._writableState.errorEmitted=!0,b(M,Y)):(te(Y),M._writableState.errorEmitted=!0,b(M,Y),q(M,j))}function V(M){M.writing=!1,M.writecb=null,M.length-=M.writelen,M.writelen=0}function F(M,j){var z=M._writableState,Y=z.sync,te=z.writecb;if(typeof te!="function")throw new h;if(V(z),j)D(M,z,Y,j,te);else{var R=U(z)||M.destroyed;!R&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&J(M,z),Y?process.nextTick(k,M,z,R,te):k(M,z,R,te)}}function k(M,j,z,Y){z||Z(M,j),j.pendingcb--,Y(),q(M,j)}function Z(M,j){j.length===0&&j.needDrain&&(j.needDrain=!1,M.emit("drain"))}function J(M,j){j.bufferProcessing=!0;var z=j.bufferedRequest;if(M._writev&&z&&z.next){var Y=j.bufferedRequestCount,te=new Array(Y),R=j.corkedRequestsFree;R.entry=z;for(var I=0,W=!0;z;)te[I]=z,z.isBuf||(W=!1),z=z.next,I+=1;te.allBuffers=W,N(M,j,!0,j.length,te,"",R.finish),j.pendingcb++,j.lastBufferedRequest=null,R.next?(j.corkedRequestsFree=R.next,R.next=null):j.corkedRequestsFree=new e(j),j.bufferedRequestCount=0}else{for(;z;){var Q=z.chunk,oe=z.encoding,ee=z.callback,le=j.objectMode?1:Q.length;if(N(M,j,!1,le,Q,oe,ee),z=z.next,j.bufferedRequestCount--,j.writing)break}z===null&&(j.lastBufferedRequest=null)}j.bufferedRequest=z,j.bufferProcessing=!1}S.prototype._write=function(M,j,z){z(new f("_write()"))},S.prototype._writev=null,S.prototype.end=function(M,j,z){var Y=this._writableState;return typeof M=="function"?(z=M,M=null,j=null):typeof j=="function"&&(z=j,j=null),M!=null&&this.write(M,j),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||L(this,Y,z),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function $(M,j){M._final(function(z){j.pendingcb--,z&&b(M,z),j.prefinished=!0,M.emit("prefinish"),q(M,j)})}function C(M,j){!j.prefinished&&!j.finalCalled&&(typeof M._final=="function"&&!j.destroyed?(j.pendingcb++,j.finalCalled=!0,process.nextTick($,M,j)):(j.prefinished=!0,M.emit("prefinish")))}function q(M,j){var z=U(j);if(z&&(C(M,j),j.pendingcb===0&&(j.finished=!0,M.emit("finish"),j.autoDestroy))){var Y=M._readableState;(!Y||Y.autoDestroy&&Y.endEmitted)&&M.destroy()}return z}function L(M,j,z){j.ending=!0,q(M,j),z&&(j.finished?process.nextTick(z):M.once("finish",z)),j.ended=!0,M.writable=!1}function B(M,j,z){var Y=M.entry;for(M.entry=null;Y;){var te=Y.callback;j.pendingcb--,te(z),Y=Y.next}j.corkedRequestsFree.next=M}return Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(M,j){j(M)},j_}var q_,ZM;function si(){if(ZM)return q_;ZM=1;var e=Object.keys||function(u){var p=[];for(var l in u)p.push(l);return p};q_=s;var t=dF(),r=lF();bi()(s,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];s.prototype[i]||(s.prototype[i]=r.prototype[i])}function s(u){if(!(this instanceof s))return new s(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),q_}var N_={},Xd={exports:{}};var KM;function lK(){return KM||(KM=1,(function(e,t){var r=_p,n=r.Buffer;function o(s,a){for(var c in s)a[c]=s[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(s,a,c){return n(s,a,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(s,a,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,a,c)},i.alloc=function(s,a,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=n(s);return a!==void 0?typeof c=="string"?u.fill(a,c):u.fill(a):u.fill(0),u},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(Xd,Xd.exports)),Xd.exports}var YM;function XM(){if(YM)return N_;YM=1;var e=lK().Buffer,t=e.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(_){if(!_)return"utf8";for(var g;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(g)return;_=(""+_).toLowerCase(),g=!0}}function n(_){var g=r(_);if(typeof g!="string"&&(e.isEncoding===t||!t(_)))throw new Error("Unknown encoding: "+_);return g||_}N_.StringDecoder=o;function o(_){this.encoding=n(_);var g;switch(this.encoding){case"utf16le":this.text=l,this.end=d,g=4;break;case"utf8":this.fillLast=c,g=4;break;case"base64":this.text=f,this.end=h,g=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(g)}o.prototype.write=function(_){if(_.length===0)return"";var g,y;if(this.lastNeed){if(g=this.fillLast(_),g===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<_.length?g?g+this.text(_,y):this.text(_,y):g||""},o.prototype.end=p,o.prototype.text=u,o.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function i(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function s(_,g,y){var b=g.length-1;if(b<y)return 0;var E=i(g[b]);return E>=0?(E>0&&(_.lastNeed=E-1),E):--b<y||E===-2?0:(E=i(g[b]),E>=0?(E>0&&(_.lastNeed=E-2),E):--b<y||E===-2?0:(E=i(g[b]),E>=0?(E>0&&(E===2?E=0:_.lastNeed=E-3),E):0))}function a(_,g,y){if((g[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return _.lastNeed=2,"�"}}function c(_){var g=this.lastTotal-this.lastNeed,y=a(this,_);if(y!==void 0)return y;if(this.lastNeed<=_.length)return _.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,g,0,_.length),this.lastNeed-=_.length}function u(_,g){var y=s(this,_,g);if(!this.lastNeed)return _.toString("utf8",g);this.lastTotal=y;var b=_.length-(y-this.lastNeed);return _.copy(this.lastChar,0,b),_.toString("utf8",g,b)}function p(_){var g=_&&_.length?this.write(_):"";return this.lastNeed?g+"�":g}function l(_,g){if((_.length-g)%2===0){var y=_.toString("utf16le",g);if(y){var b=y.charCodeAt(y.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",g,_.length-1)}function d(_){var g=_&&_.length?this.write(_):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,y)}return g}function f(_,g){var y=(_.length-g)%3;return y===0?_.toString("base64",g):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",g,_.length-y))}function h(_){var g=_&&_.length?this.write(_):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function m(_){return _.toString(this.encoding)}function v(_){return _&&_.length?this.write(_):""}return N_}var F_,JM;function Ny(){if(JM)return F_;JM=1;var e=yi().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var s=!1;return function(){if(!s){s=!0;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,s,a){if(typeof s=="function")return o(i,null,s);s||(s={}),a=t(a||r);var c=s.readable||s.readable!==!1&&i.readable,u=s.writable||s.writable!==!1&&i.writable,p=function(){i.writable||d()},l=i._writableState&&i._writableState.finished,d=function(){u=!1,l=!0,c||a.call(i)},f=i._readableState&&i._readableState.endEmitted,h=function(){c=!1,f=!0,u||a.call(i)},m=function(y){a.call(i,y)},v=function(){var y;if(c&&!f)return(!i._readableState||!i._readableState.ended)&&(y=new e),a.call(i,y);if(u&&!l)return(!i._writableState||!i._writableState.ended)&&(y=new e),a.call(i,y)},_=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",v),i.req?_():i.on("request",_)):u&&!i._writableState&&(i.on("end",p),i.on("close",p)),i.on("end",h),i.on("finish",d),s.error!==!1&&i.on("error",m),i.on("close",v),function(){i.removeListener("complete",d),i.removeListener("abort",v),i.removeListener("request",_),i.req&&i.req.removeListener("finish",d),i.removeListener("end",p),i.removeListener("close",p),i.removeListener("finish",d),i.removeListener("end",h),i.removeListener("error",m),i.removeListener("close",v)}}return F_=o,F_}var k_,QM;function dK(){if(QM)return k_;QM=1;var e;function t(y,b,E){return b=r(b),b in y?Object.defineProperty(y,b,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[b]=E,y}function r(y){var b=n(y,"string");return typeof b=="symbol"?b:String(b)}function n(y,b){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var x=E.call(y,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}var o=Ny(),i=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),l=Symbol("stream");function d(y,b){return{value:y,done:b}}function f(y){var b=y[i];if(b!==null){var E=y[l].read();E!==null&&(y[u]=null,y[i]=null,y[s]=null,b(d(E,!1)))}}function h(y){process.nextTick(f,y)}function m(y,b){return function(E,x){y.then(function(){if(b[c]){E(d(void 0,!0));return}b[p](E,x)},x)}}var v=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var b=this,E=this[a];if(E!==null)return Promise.reject(E);if(this[c])return Promise.resolve(d(void 0,!0));if(this[l].destroyed)return new Promise(function(w,A){process.nextTick(function(){b[a]?A(b[a]):w(d(void 0,!0))})});var x=this[u],O;if(x)O=new Promise(m(x,this));else{var S=this[l].read();if(S!==null)return Promise.resolve(d(S,!1));O=new Promise(this[p])}return this[u]=O,O}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var b=this;return new Promise(function(E,x){b[l].destroy(null,function(O){if(O){x(O);return}E(d(void 0,!0))})})}),e),v),g=function(b){var E,x=Object.create(_,(E={},t(E,l,{value:b,writable:!0}),t(E,i,{value:null,writable:!0}),t(E,s,{value:null,writable:!0}),t(E,a,{value:null,writable:!0}),t(E,c,{value:b._readableState.endEmitted,writable:!0}),t(E,p,{value:function(S,w){var A=x[l].read();A?(x[u]=null,x[i]=null,x[s]=null,S(d(A,!1))):(x[i]=S,x[s]=w)},writable:!0}),E));return x[u]=null,o(b,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S=x[s];S!==null&&(x[u]=null,x[i]=null,x[s]=null,S(O)),x[a]=O;return}var w=x[i];w!==null&&(x[u]=null,x[i]=null,x[s]=null,w(d(void 0,!0))),x[c]=!0}),b.on("readable",h.bind(null,x)),x};return k_=g,k_}var D_,$M;function pK(){return $M||($M=1,D_=function(){throw new Error("Readable.from is not available in the browser")}),D_}var L_,eI;function dF(){if(eI)return L_;eI=1,L_=w;var e;w.ReadableState=S,fg.EventEmitter;var t=function(I,W){return I.listeners(W).length},r=sF(),n=_p.Buffer,o=(typeof ft<"u"?ft:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(R){return n.from(R)}function s(R){return n.isBuffer(R)||R instanceof o}var a=li,c;a&&a.debuglog?c=a.debuglog("stream"):c=function(){};var u=cK(),p=cF(),l=uF(),d=l.getHighWaterMark,f=yi().codes,h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_STREAM_PUSH_AFTER_EOF,v=f.ERR_METHOD_NOT_IMPLEMENTED,_=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,g,y,b;bi()(w,r);var E=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function O(R,I,W){if(typeof R.prependListener=="function")return R.prependListener(I,W);!R._events||!R._events[I]?R.on(I,W):Array.isArray(R._events[I])?R._events[I].unshift(W):R._events[I]=[W,R._events[I]]}function S(R,I,W){e=e||si(),R=R||{},typeof W!="boolean"&&(W=I instanceof e),this.objectMode=!!R.objectMode,W&&(this.objectMode=this.objectMode||!!R.readableObjectMode),this.highWaterMark=d(this,R,"readableHighWaterMark",W),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.destroyed=!1,this.defaultEncoding=R.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,R.encoding&&(g||(g=XM().StringDecoder),this.decoder=new g(R.encoding),this.encoding=R.encoding)}function w(R){if(e=e||si(),!(this instanceof w))return new w(R);var I=this instanceof e;this._readableState=new S(R,this,I),this.readable=!0,R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy)),r.call(this)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),w.prototype.destroy=p.destroy,w.prototype._undestroy=p.undestroy,w.prototype._destroy=function(R,I){I(R)},w.prototype.push=function(R,I){var W=this._readableState,Q;return W.objectMode?Q=!0:typeof R=="string"&&(I=I||W.defaultEncoding,I!==W.encoding&&(R=n.from(R,I),I=""),Q=!0),A(this,R,I,!1,Q)},w.prototype.unshift=function(R){return A(this,R,null,!0,!1)};function A(R,I,W,Q,oe){c("readableAddChunk",I);var ee=R._readableState;if(I===null)ee.reading=!1,F(R,ee);else{var le;if(oe||(le=P(ee,I)),le)E(R,le);else if(ee.objectMode||I&&I.length>0)if(typeof I!="string"&&!ee.objectMode&&Object.getPrototypeOf(I)!==n.prototype&&(I=i(I)),Q)ee.endEmitted?E(R,new _):T(R,ee,I,!0);else if(ee.ended)E(R,new m);else{if(ee.destroyed)return!1;ee.reading=!1,ee.decoder&&!W?(I=ee.decoder.write(I),ee.objectMode||I.length!==0?T(R,ee,I,!1):J(R,ee)):T(R,ee,I,!1)}else Q||(ee.reading=!1,J(R,ee))}return!ee.ended&&(ee.length<ee.highWaterMark||ee.length===0)}function T(R,I,W,Q){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,R.emit("data",W)):(I.length+=I.objectMode?1:W.length,Q?I.buffer.unshift(W):I.buffer.push(W),I.needReadable&&k(R)),J(R,I)}function P(R,I){var W;return!s(I)&&typeof I!="string"&&I!==void 0&&!R.objectMode&&(W=new h("chunk",["string","Buffer","Uint8Array"],I)),W}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(R){g||(g=XM().StringDecoder);var I=new g(R);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,Q="";W!==null;)Q+=I.write(W.data),W=W.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var N=1073741824;function D(R){return R>=N?R=N:(R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,R++),R}function V(R,I){return R<=0||I.length===0&&I.ended?0:I.objectMode?1:R!==R?I.flowing&&I.length?I.buffer.head.data.length:I.length:(R>I.highWaterMark&&(I.highWaterMark=D(R)),R<=I.length?R:I.ended?I.length:(I.needReadable=!0,0))}w.prototype.read=function(R){c("read",R),R=parseInt(R,10);var I=this._readableState,W=R;if(R!==0&&(I.emittedReadable=!1),R===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return c("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?z(this):k(this),null;if(R=V(R,I),R===0&&I.ended)return I.length===0&&z(this),null;var Q=I.needReadable;c("need readable",Q),(I.length===0||I.length-R<I.highWaterMark)&&(Q=!0,c("length less than watermark",Q)),I.ended||I.reading?(Q=!1,c("reading or ended",Q)):Q&&(c("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(R=V(W,I)));var oe;return R>0?oe=j(R,I):oe=null,oe===null?(I.needReadable=I.length<=I.highWaterMark,R=0):(I.length-=R,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),W!==R&&I.ended&&z(this)),oe!==null&&this.emit("data",oe),oe};function F(R,I){if(c("onEofChunk"),!I.ended){if(I.decoder){var W=I.decoder.end();W&&W.length&&(I.buffer.push(W),I.length+=I.objectMode?1:W.length)}I.ended=!0,I.sync?k(R):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,Z(R)))}}function k(R){var I=R._readableState;c("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(c("emitReadable",I.flowing),I.emittedReadable=!0,process.nextTick(Z,R))}function Z(R){var I=R._readableState;c("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(R.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,M(R)}function J(R,I){I.readingMore||(I.readingMore=!0,process.nextTick(U,R,I))}function U(R,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var W=I.length;if(c("maybeReadMore read 0"),R.read(0),W===I.length)break}I.readingMore=!1}w.prototype._read=function(R){E(this,new v("_read()"))},w.prototype.pipe=function(R,I){var W=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=R;break;case 1:Q.pipes=[Q.pipes,R];break;default:Q.pipes.push(R);break}Q.pipesCount+=1,c("pipe count=%d opts=%j",Q.pipesCount,I);var oe=(!I||I.end!==!1)&&R!==process.stdout&&R!==process.stderr,ee=oe?_e:Ke;Q.endEmitted?process.nextTick(ee):W.once("end",ee),R.on("unpipe",le);function le(ye,Ge){c("onunpipe"),ye===W&&Ge&&Ge.hasUnpiped===!1&&(Ge.hasUnpiped=!0,Re())}function _e(){c("onend"),R.end()}var be=$(W);R.on("drain",be);var Te=!1;function Re(){c("cleanup"),R.removeListener("close",me),R.removeListener("finish",Ne),R.removeListener("drain",be),R.removeListener("error",Pe),R.removeListener("unpipe",le),W.removeListener("end",_e),W.removeListener("end",Ke),W.removeListener("data",Ee),Te=!0,Q.awaitDrain&&(!R._writableState||R._writableState.needDrain)&&be()}W.on("data",Ee);function Ee(ye){c("ondata");var Ge=R.write(ye);c("dest.write",Ge),Ge===!1&&((Q.pipesCount===1&&Q.pipes===R||Q.pipesCount>1&&te(Q.pipes,R)!==-1)&&!Te&&(c("false write response, pause",Q.awaitDrain),Q.awaitDrain++),W.pause())}function Pe(ye){c("onerror",ye),Ke(),R.removeListener("error",Pe),t(R,"error")===0&&E(R,ye)}O(R,"error",Pe);function me(){R.removeListener("finish",Ne),Ke()}R.once("close",me);function Ne(){c("onfinish"),R.removeListener("close",me),Ke()}R.once("finish",Ne);function Ke(){c("unpipe"),W.unpipe(R)}return R.emit("pipe",W),Q.flowing||(c("pipe resume"),W.resume()),R};function $(R){return function(){var W=R._readableState;c("pipeOnDrain",W.awaitDrain),W.awaitDrain&&W.awaitDrain--,W.awaitDrain===0&&t(R,"data")&&(W.flowing=!0,M(R))}}w.prototype.unpipe=function(R){var I=this._readableState,W={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return R&&R!==I.pipes?this:(R||(R=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,R&&R.emit("unpipe",this,W),this);if(!R){var Q=I.pipes,oe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var ee=0;ee<oe;ee++)Q[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var le=te(I.pipes,R);return le===-1?this:(I.pipes.splice(le,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),R.emit("unpipe",this,W),this)},w.prototype.on=function(R,I){var W=r.prototype.on.call(this,R,I),Q=this._readableState;return R==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):R==="readable"&&!Q.endEmitted&&!Q.readableListening&&(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,c("on readable",Q.length,Q.reading),Q.length?k(this):Q.reading||process.nextTick(q,this)),W},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(R,I){var W=r.prototype.removeListener.call(this,R,I);return R==="readable"&&process.nextTick(C,this),W},w.prototype.removeAllListeners=function(R){var I=r.prototype.removeAllListeners.apply(this,arguments);return(R==="readable"||R===void 0)&&process.nextTick(C,this),I};function C(R){var I=R._readableState;I.readableListening=R.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:R.listenerCount("data")>0&&R.resume()}function q(R){c("readable nexttick read 0"),R.read(0)}w.prototype.resume=function(){var R=this._readableState;return R.flowing||(c("resume"),R.flowing=!R.readableListening,L(this,R)),R.paused=!1,this};function L(R,I){I.resumeScheduled||(I.resumeScheduled=!0,process.nextTick(B,R,I))}function B(R,I){c("resume",I.reading),I.reading||R.read(0),I.resumeScheduled=!1,R.emit("resume"),M(R),I.flowing&&!I.reading&&R.read(0)}w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function M(R){var I=R._readableState;for(c("flow",I.flowing);I.flowing&&R.read()!==null;);}w.prototype.wrap=function(R){var I=this,W=this._readableState,Q=!1;R.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var le=W.decoder.end();le&&le.length&&I.push(le)}I.push(null)}),R.on("data",function(le){if(c("wrapped data"),W.decoder&&(le=W.decoder.write(le)),!(W.objectMode&&le==null)&&!(!W.objectMode&&(!le||!le.length))){var _e=I.push(le);_e||(Q=!0,R.pause())}});for(var oe in R)this[oe]===void 0&&typeof R[oe]=="function"&&(this[oe]=(function(_e){return function(){return R[_e].apply(R,arguments)}})(oe));for(var ee=0;ee<x.length;ee++)R.on(x[ee],this.emit.bind(this,x[ee]));return this._read=function(le){c("wrapped _read",le),Q&&(Q=!1,R.resume())},this},typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=dK()),y(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I){this._readableState&&(this._readableState.flowing=I)}}),w._fromList=j,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function j(R,I){if(I.length===0)return null;var W;return I.objectMode?W=I.buffer.shift():!R||R>=I.length?(I.decoder?W=I.buffer.join(""):I.buffer.length===1?W=I.buffer.first():W=I.buffer.concat(I.length),I.buffer.clear()):W=I.buffer.consume(R,I.decoder),W}function z(R){var I=R._readableState;c("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,process.nextTick(Y,I,R))}function Y(R,I){if(c("endReadableNT",R.endEmitted,R.length),!R.endEmitted&&R.length===0&&(R.endEmitted=!0,I.readable=!1,I.emit("end"),R.autoDestroy)){var W=I._writableState;(!W||W.autoDestroy&&W.finished)&&I.destroy()}}typeof Symbol=="function"&&(w.from=function(R,I){return b===void 0&&(b=pK()),b(w,R,I)});function te(R,I){for(var W=0,Q=R.length;W<Q;W++)if(R[W]===I)return W;return-1}return L_}var U_,tI;function pF(){if(tI)return U_;tI=1,U_=a;var e=yi().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=si();bi()(a,i);function s(p,l){var d=this._transformState;d.transforming=!1;var f=d.writecb;if(f===null)return this.emit("error",new r);d.writechunk=null,d.writecb=null,l!=null&&this.push(l),f(p);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function a(p){if(!(this instanceof a))return new a(p);i.call(this,p),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function c(){var p=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(l,d){u(p,l,d)}):u(this,null,null)}a.prototype.push=function(p,l){return this._transformState.needTransform=!1,i.prototype.push.call(this,p,l)},a.prototype._transform=function(p,l,d){d(new t("_transform()"))},a.prototype._write=function(p,l,d){var f=this._transformState;if(f.writecb=d,f.writechunk=p,f.writeencoding=l,!f.transforming){var h=this._readableState;(f.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},a.prototype._read=function(p){var l=this._transformState;l.writechunk!==null&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},a.prototype._destroy=function(p,l){i.prototype._destroy.call(this,p,function(d){l(d)})};function u(p,l,d){if(l)return p.emit("error",l);if(d!=null&&p.push(d),p._writableState.length)throw new o;if(p._transformState.transforming)throw new n;return p.push(null)}return U_}var z_,rI;function fK(){if(rI)return z_;rI=1,z_=t;var e=pF();bi()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},z_}var B_,nI;function hK(){if(nI)return B_;nI=1;var e;function t(d){var f=!1;return function(){f||(f=!0,d.apply(void 0,arguments))}}var r=yi().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(d){if(d)throw d}function s(d){return d.setHeader&&typeof d.abort=="function"}function a(d,f,h,m){m=t(m);var v=!1;d.on("close",function(){v=!0}),e===void 0&&(e=Ny()),e(d,{readable:f,writable:h},function(g){if(g)return m(g);v=!0,m()});var _=!1;return function(g){if(!v&&!_){if(_=!0,s(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();m(g||new o("pipe"))}}}function c(d){d()}function u(d,f){return d.pipe(f)}function p(d){return!d.length||typeof d[d.length-1]!="function"?i:d.pop()}function l(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var m=p(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new n("streams");var v,_=f.map(function(g,y){var b=y<f.length-1,E=y>0;return a(g,b,E,function(x){v||(v=x),x&&_.forEach(c),!b&&(_.forEach(c),m(v))})});return f.reduce(u)}return B_=l,B_}var iI;function vK(){return iI||(iI=1,(function(e,t){t=e.exports=dF(),t.Stream=t,t.Readable=t,t.Writable=lF(),t.Duplex=si(),t.Transform=pF(),t.PassThrough=fK(),t.finished=Ny(),t.pipeline=hK()})(Kd,Kd.exports)),Kd.exports}var H_,aI;function mK(){if(aI)return H_;aI=1;var e=Object.prototype.toString,t=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function r(s){return e.call(s).slice(8,-1)==="ArrayBuffer"}function n(s,a,c){a>>>=0;var u=s.byteLength-a;if(u<0)throw new RangeError("'offset' is out of bounds");if(c===void 0)c=u;else if(c>>>=0,c>u)throw new RangeError("'length' is out of bounds");return t?Buffer.from(s.slice(a,a+c)):new Buffer(new Uint8Array(s.slice(a,a+c)))}function o(s,a){if((typeof a!="string"||a==="")&&(a="utf8"),!Buffer.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');return t?Buffer.from(s,a):new Buffer(s,a)}function i(s,a,c){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return r(s)?n(s,a,c):typeof s=="string"?o(s,a):t?Buffer.from(s):new Buffer(s)}return H_=i,H_}var V_={},oI;function _K(){return oI||(oI=1,(function(e){var t=void 0,r=1e5,n=(function(){var U=Object.prototype.toString,$=Object.prototype.hasOwnProperty;return{Class:function(C){return U.call(C).replace(/^\[object *|\]$/g,"")},HasProperty:function(C,q){return q in C},HasOwnProperty:function(C,q){return $.call(C,q)},IsCallable:function(C){return typeof C=="function"},ToInt32:function(C){return C>>0},ToUint32:function(C){return C>>>0}}})(),o=Math.LN2,i=Math.abs,s=Math.floor,a=Math.log,c=Math.min,u=Math.pow,p=Math.round;function l(U){if(f&&d){var $=f(U),C;for(C=0;C<$.length;C+=1)d(U,$[C],{value:U[$[C]],writable:!1,enumerable:!1,configurable:!1})}}var d;Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}})()?d=Object.defineProperty:d=function(U,$,C){if(!U===Object(U))throw new TypeError("Object.defineProperty called on non-object");return n.HasProperty(C,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(U,$,C.get),n.HasProperty(C,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(U,$,C.set),n.HasProperty(C,"value")&&(U[$]=C.value),U};var f=Object.getOwnPropertyNames||function(U){if(U!==Object(U))throw new TypeError("Object.getOwnPropertyNames called on non-object");var $=[],C;for(C in U)n.HasOwnProperty(U,C)&&$.push(C);return $};function h(U){if(!d)return;if(U.length>r)throw new RangeError("Array too large for polyfill");function $(q){d(U,q,{get:function(){return U._getter(q)},set:function(L){U._setter(q,L)},enumerable:!0,configurable:!1})}var C;for(C=0;C<U.length;C+=1)$(C)}function m(U,$){var C=32-$;return U<<C>>C}function v(U,$){var C=32-$;return U<<C>>>C}function _(U){return[U&255]}function g(U){return m(U[0],8)}function y(U){return[U&255]}function b(U){return v(U[0],8)}function E(U){return U=p(Number(U)),[U<0?0:U>255?255:U&255]}function x(U){return[U>>8&255,U&255]}function O(U){return m(U[0]<<8|U[1],16)}function S(U){return[U>>8&255,U&255]}function w(U){return v(U[0]<<8|U[1],16)}function A(U){return[U>>24&255,U>>16&255,U>>8&255,U&255]}function T(U){return m(U[0]<<24|U[1]<<16|U[2]<<8|U[3],32)}function P(U){return[U>>24&255,U>>16&255,U>>8&255,U&255]}function N(U){return v(U[0]<<24|U[1]<<16|U[2]<<8|U[3],32)}function D(U,$,C){var q=(1<<$-1)-1,L,B,M,j,z,Y,te;function R(I){var W=s(I),Q=I-W;return Q<.5?W:Q>.5||W%2?W+1:W}for(U!==U?(B=(1<<$)-1,M=u(2,C-1),L=0):U===1/0||U===-1/0?(B=(1<<$)-1,M=0,L=U<0?1:0):U===0?(B=0,M=0,L=1/U===-1/0?1:0):(L=U<0,U=i(U),U>=u(2,1-q)?(B=c(s(a(U)/o),1023),M=R(U/u(2,B)*u(2,C)),M/u(2,C)>=2&&(B=B+1,M=1),B>q?(B=(1<<$)-1,M=0):(B=B+q,M=M-u(2,C))):(B=0,M=R(U/u(2,1-q-C)))),z=[],j=C;j;j-=1)z.push(M%2?1:0),M=s(M/2);for(j=$;j;j-=1)z.push(B%2?1:0),B=s(B/2);for(z.push(L?1:0),z.reverse(),Y=z.join(""),te=[];Y.length;)te.push(parseInt(Y.substring(0,8),2)),Y=Y.substring(8);return te}function V(U,$,C){var q=[],L,B,M,j,z,Y,te,R;for(L=U.length;L;L-=1)for(M=U[L-1],B=8;B;B-=1)q.push(M%2?1:0),M=M>>1;return q.reverse(),j=q.join(""),z=(1<<$-1)-1,Y=parseInt(j.substring(0,1),2)?-1:1,te=parseInt(j.substring(1,1+$),2),R=parseInt(j.substring(1+$),2),te===(1<<$)-1?R!==0?NaN:Y*(1/0):te>0?Y*u(2,te-z)*(1+R/u(2,C)):R!==0?Y*u(2,-(z-1))*(R/u(2,C)):Y<0?-0:0}function F(U){return V(U,11,52)}function k(U){return D(U,11,52)}function Z(U){return V(U,8,23)}function J(U){return D(U,8,23)}(function(){var U=function(W){if(W=n.ToInt32(W),W<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=W,this._bytes=[],this._bytes.length=W;var Q;for(Q=0;Q<this.byteLength;Q+=1)this._bytes[Q]=0;l(this)};e.ArrayBuffer=e.ArrayBuffer||U;var $=function(){};function C(I,W,Q){var oe;return oe=function(ee,le,_e){var be,Te,Re,Ee;if(!arguments.length||typeof arguments[0]=="number"){if(this.length=n.ToInt32(arguments[0]),_e<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]=="object"&&arguments[0].constructor===oe)for(be=arguments[0],this.length=be.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0,Re=0;Re<this.length;Re+=1)this._setter(Re,be._getter(Re));else if(typeof arguments[0]=="object"&&!(arguments[0]instanceof U||n.Class(arguments[0])==="ArrayBuffer"))for(Te=arguments[0],this.length=n.ToUint32(Te.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0,Re=0;Re<this.length;Re+=1)Ee=Te[Re],this._setter(Re,Number(Ee));else if(typeof arguments[0]=="object"&&(arguments[0]instanceof U||n.Class(arguments[0])==="ArrayBuffer")){if(this.buffer=ee,this.byteOffset=n.ToUint32(le),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=n.ToUint32(_e),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=oe,l(this),h(this)},oe.prototype=new $,oe.prototype.BYTES_PER_ELEMENT=I,oe.prototype._pack=W,oe.prototype._unpack=Q,oe.BYTES_PER_ELEMENT=I,oe.prototype._getter=function(ee){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(ee=n.ToUint32(ee),ee>=this.length)return t;var le=[],_e,be;for(_e=0,be=this.byteOffset+ee*this.BYTES_PER_ELEMENT;_e<this.BYTES_PER_ELEMENT;_e+=1,be+=1)le.push(this.buffer._bytes[be]);return this._unpack(le)},oe.prototype.get=oe.prototype._getter,oe.prototype._setter=function(ee,le){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if(ee=n.ToUint32(ee),ee>=this.length)return t;var _e=this._pack(le),be,Te;for(be=0,Te=this.byteOffset+ee*this.BYTES_PER_ELEMENT;be<this.BYTES_PER_ELEMENT;be+=1,Te+=1)this.buffer._bytes[Te]=_e[be]},oe.prototype.set=function(ee,le){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var _e,be,Te,Re,Ee,Pe,me,Ne,Ke,ye;if(typeof arguments[0]=="object"&&arguments[0].constructor===this.constructor){if(_e=arguments[0],Te=n.ToUint32(arguments[1]),Te+_e.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(Ne=this.byteOffset+Te*this.BYTES_PER_ELEMENT,Ke=_e.length*this.BYTES_PER_ELEMENT,_e.buffer===this.buffer){for(ye=[],Ee=0,Pe=_e.byteOffset;Ee<Ke;Ee+=1,Pe+=1)ye[Ee]=_e.buffer._bytes[Pe];for(Ee=0,me=Ne;Ee<Ke;Ee+=1,me+=1)this.buffer._bytes[me]=ye[Ee]}else for(Ee=0,Pe=_e.byteOffset,me=Ne;Ee<Ke;Ee+=1,Pe+=1,me+=1)this.buffer._bytes[me]=_e.buffer._bytes[Pe]}else if(typeof arguments[0]=="object"&&typeof arguments[0].length<"u"){if(be=arguments[0],Re=n.ToUint32(be.length),Te=n.ToUint32(arguments[1]),Te+Re>this.length)throw new RangeError("Offset plus length of array is out of range");for(Ee=0;Ee<Re;Ee+=1)Pe=be[Ee],this._setter(Te+Ee,Number(Pe))}else throw new TypeError("Unexpected argument type(s)")},oe.prototype.subarray=function(ee,le){function _e(Te,Re,Ee){return Te<Re?Re:Te>Ee?Ee:Te}ee=n.ToInt32(ee),le=n.ToInt32(le),arguments.length<1&&(ee=0),arguments.length<2&&(le=this.length),ee<0&&(ee=this.length+ee),le<0&&(le=this.length+le),ee=_e(ee,0,this.length),le=_e(le,0,this.length);var be=le-ee;return be<0&&(be=0),new this.constructor(this.buffer,this.byteOffset+ee*this.BYTES_PER_ELEMENT,be)},oe}var q=C(1,_,g),L=C(1,y,b),B=C(1,E,b),M=C(2,x,O),j=C(2,S,w),z=C(4,A,T),Y=C(4,P,N),te=C(4,J,Z),R=C(8,k,F);e.Int8Array=e.Int8Array||q,e.Uint8Array=e.Uint8Array||L,e.Uint8ClampedArray=e.Uint8ClampedArray||B,e.Int16Array=e.Int16Array||M,e.Uint16Array=e.Uint16Array||j,e.Int32Array=e.Int32Array||z,e.Uint32Array=e.Uint32Array||Y,e.Float32Array=e.Float32Array||te,e.Float64Array=e.Float64Array||R})(),(function(){function U(B,M){return n.IsCallable(B.get)?B.get(M):B[M]}var $=(function(){var B=new e.Uint16Array([4660]),M=new e.Uint8Array(B.buffer);return U(M,0)===18})(),C=function(M,j,z){if(arguments.length===0)M=new e.ArrayBuffer(0);else if(!(M instanceof e.ArrayBuffer||n.Class(M)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=M||new e.ArrayBuffer(0),this.byteOffset=n.ToUint32(j),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=n.ToUint32(z),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");l(this)};function q(B){return function(M,j){if(M=n.ToUint32(M),M+B.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");M+=this.byteOffset;var z=new e.Uint8Array(this.buffer,M,B.BYTES_PER_ELEMENT),Y=[],te;for(te=0;te<B.BYTES_PER_ELEMENT;te+=1)Y.push(U(z,te));return!!j==!!$&&Y.reverse(),U(new B(new e.Uint8Array(Y).buffer),0)}}C.prototype.getUint8=q(e.Uint8Array),C.prototype.getInt8=q(e.Int8Array),C.prototype.getUint16=q(e.Uint16Array),C.prototype.getInt16=q(e.Int16Array),C.prototype.getUint32=q(e.Uint32Array),C.prototype.getInt32=q(e.Int32Array),C.prototype.getFloat32=q(e.Float32Array),C.prototype.getFloat64=q(e.Float64Array);function L(B){return function(M,j,z){if(M=n.ToUint32(M),M+B.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var Y=new B([j]),te=new e.Uint8Array(Y.buffer),R=[],I,W;for(I=0;I<B.BYTES_PER_ELEMENT;I+=1)R.push(U(te,I));!!z==!!$&&R.reverse(),W=new e.Uint8Array(this.buffer,M,B.BYTES_PER_ELEMENT),W.set(R)}}C.prototype.setUint8=L(e.Uint8Array),C.prototype.setInt8=L(e.Int8Array),C.prototype.setUint16=L(e.Uint16Array),C.prototype.setInt16=L(e.Int16Array),C.prototype.setUint32=L(e.Uint32Array),C.prototype.setInt32=L(e.Int32Array),C.prototype.setFloat32=L(e.Float32Array),C.prototype.setFloat64=L(e.Float64Array),e.DataView=e.DataView||C})()})(V_)),V_}var G_,sI;function gK(){if(sI)return G_;sI=1;var e=vK().Writable,t=bi(),r=mK();if(typeof Uint8Array>"u")var n=_K().Uint8Array;else var n=Uint8Array;function o(l,d){if(!(this instanceof o))return new o(l,d);typeof l=="function"&&(d=l,l={}),l||(l={});var f=l.encoding,h=!1;f?(f=String(f).toLowerCase(),(f==="u8"||f==="uint8")&&(f="uint8array")):h=!0,e.call(this,{objectMode:!0}),this.encoding=f,this.shouldInferEncoding=h,d&&this.on("finish",function(){d(this.getBody())}),this.body=[]}G_=o,t(o,e),o.prototype._write=function(l,d,f){this.body.push(l),f()},o.prototype.inferEncoding=function(l){var d=l===void 0?this.body[0]:l;return Buffer.isBuffer(d)?"buffer":typeof Uint8Array<"u"&&d instanceof Uint8Array?"uint8array":Array.isArray(d)?"array":typeof d=="string"?"string":Object.prototype.toString.call(d)==="[object Object]"?"object":"buffer"},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?u(this.body):this.encoding==="string"?a(this.body):this.encoding==="buffer"?c(this.body):this.encoding==="uint8array"?p(this.body):this.body)};function i(l){return/Array\]$/.test(Object.prototype.toString.call(l))}function s(l){return typeof l=="string"||i(l)||l&&typeof l.subarray=="function"}function a(l){for(var d=[],f=0;f<l.length;f++){var h=l[f];typeof h=="string"||Buffer.isBuffer(h)?d.push(h):s(h)?d.push(r(h)):d.push(r(String(h)))}return Buffer.isBuffer(l[0])?(d=Buffer.concat(d),d=d.toString("utf8")):d=d.join(""),d}function c(l){for(var d=[],f=0;f<l.length;f++){var h=l[f];Buffer.isBuffer(h)?d.push(h):s(h)?d.push(r(h)):d.push(r(String(h)))}return Buffer.concat(d)}function u(l){for(var d=[],f=0;f<l.length;f++)d.push.apply(d,l[f]);return d}function p(l){for(var d=0,f=0;f<l.length;f++)typeof l[f]=="string"&&(l[f]=r(l[f])),d+=l[f].length;for(var h=new n(d),f=0,m=0;f<l.length;f++)for(var v=l[f],_=0;_<v.length;_++)h[m++]=v[_];return h}return G_}var W_,cI;function yK(){if(cI)return W_;cI=1;var e=gK();function t(r){}return t.prototype._handleFile=function(n,o,i){o.stream.pipe(e({encoding:"buffer"},function(s){i(null,{buffer:s,size:s.length})}))},t.prototype._removeFile=function(n,o,i){delete o.buffer,i(null)},W_=function(r){return new t},W_}var uI;function Gl(){if(uI)return ei.exports;uI=1;var e=aK(),t=sK(),r=yK(),n=oF();function o(a,c,u){u(null,!0)}function i(a){a.storage?this.storage=a.storage:a.dest?this.storage=t({destination:a.dest}):this.storage=r(),this.limits=a.limits,this.preservePath=a.preservePath,this.fileFilter=a.fileFilter||o}i.prototype._makeMiddleware=function(a,c){function u(){var p=this.fileFilter,l=Object.create(null);a.forEach(function(f){typeof f.maxCount=="number"?l[f.name]=f.maxCount:l[f.name]=1/0});function d(f,h,m){if((l[h.fieldname]||0)<=0)return m(new n("LIMIT_UNEXPECTED_FILE",h.fieldname));l[h.fieldname]-=1,p(f,h,m)}return{limits:this.limits,preservePath:this.preservePath,storage:this.storage,fileFilter:d,fileStrategy:c}}return e(u.bind(this))},i.prototype.single=function(a){return this._makeMiddleware([{name:a,maxCount:1}],"VALUE")},i.prototype.array=function(a,c){return this._makeMiddleware([{name:a,maxCount:c}],"ARRAY")},i.prototype.fields=function(a){return this._makeMiddleware(a,"OBJECT")},i.prototype.none=function(){return this._makeMiddleware([],"NONE")},i.prototype.any=function(){function a(){return{limits:this.limits,preservePath:this.preservePath,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:"ARRAY"}}return e(a.bind(this))};function s(a){if(a===void 0)return new i({});if(typeof a=="object"&&a!==null)return new i(a);throw new TypeError("Expected object for argument options")}return ei.exports=s,ei.exports.diskStorage=t,ei.exports.memoryStorage=r,ei.exports.MulterError=n,ei.exports}var Qu={},lI;function Ei(){return lI||(lI=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.MULTER_MODULE_OPTIONS=void 0,Qu.MULTER_MODULE_OPTIONS="MULTER_MODULE_OPTIONS"),Qu}var Jd={},pn={},dI;function bK(){return dI||(dI=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.busboyExceptions=pn.multerExceptions=void 0,pn.multerExceptions={LIMIT_PART_COUNT:"Too many parts",LIMIT_FILE_SIZE:"File too large",LIMIT_FILE_COUNT:"Too many files",LIMIT_FIELD_KEY:"Field name too long",LIMIT_FIELD_VALUE:"Field value too long",LIMIT_FIELD_COUNT:"Too many fields",LIMIT_UNEXPECTED_FILE:"Unexpected field",MISSING_FIELD_NAME:"Field name missing"},pn.busboyExceptions={MULTIPART_BOUNDARY_NOT_FOUND:"Multipart: Boundary not found",MULTIPART_MALFORMED_PART_HEADER:"Malformed part header",MULTIPART_UNEXPECTED_END_OF_FORM:"Unexpected end of form",MULTIPART_UNEXPECTED_END_OF_FILE:"Unexpected end of file"}),pn}var pI;function Wl(){if(pI)return Jd;pI=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.transformException=r;const e=ve(),t=bK();function r(n){if(!n||n instanceof e.HttpException)return n;switch(n.message){case t.multerExceptions.LIMIT_FILE_SIZE:return new e.PayloadTooLargeException(n.message);case t.multerExceptions.LIMIT_FILE_COUNT:case t.multerExceptions.LIMIT_FIELD_KEY:case t.multerExceptions.LIMIT_FIELD_VALUE:case t.multerExceptions.LIMIT_FIELD_COUNT:case t.multerExceptions.LIMIT_UNEXPECTED_FILE:case t.multerExceptions.LIMIT_PART_COUNT:case t.multerExceptions.MISSING_FIELD_NAME:return n.field?new e.BadRequestException(`${n.message} - ${n.field}`):new e.BadRequestException(n.message);case t.busboyExceptions.MULTIPART_BOUNDARY_NOT_FOUND:return new e.BadRequestException(n.message);case t.busboyExceptions.MULTIPART_MALFORMED_PART_HEADER:case t.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FORM:case t.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FILE:return new e.BadRequestException(`Multipart: ${n.message}`)}return n}return Jd}var fI;function EK(){if(fI)return Wd;fI=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.AnyFilesInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=Ei(),o=Wl();function i(s){let a=class{constructor(p={}){this.multer=r({...p,...s})}async intercept(p,l){const d=p.switchToHttp();return await new Promise((f,h)=>this.multer.any()(d.getRequest(),d.getResponse(),m=>{if(m){const v=(0,o.transformException)(m);return h(v)}f()})),l.handle()}};return a=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],a),(0,t.mixin)(a)}return Wd}var Qd={},hI;function xK(){if(hI)return Qd;hI=1,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.FileFieldsInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=Ei(),o=Wl();function i(s,a){let c=class{constructor(l={}){this.multer=r({...l,...a})}async intercept(l,d){const f=l.switchToHttp();return await new Promise((h,m)=>this.multer.fields(s)(f.getRequest(),f.getResponse(),v=>{if(v){const _=(0,o.transformException)(v);return m(_)}h()})),d.handle()}};return c=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],c),(0,t.mixin)(c)}return Qd}var $d={},vI;function OK(){if(vI)return $d;vI=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.FileInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=Ei(),o=Wl();function i(s,a){let c=class{constructor(l={}){this.multer=r({...l,...a})}async intercept(l,d){const f=l.switchToHttp();return await new Promise((h,m)=>this.multer.single(s)(f.getRequest(),f.getResponse(),v=>{if(v){const _=(0,o.transformException)(v);return m(_)}h()})),d.handle()}};return c=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],c),(0,t.mixin)(c)}return $d}var ep={},mI;function wK(){if(mI)return ep;mI=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.FilesInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=Ei(),o=Wl();function i(s,a,c){let u=class{constructor(d={}){this.multer=r({...d,...c})}async intercept(d,f){const h=d.switchToHttp();return await new Promise((m,v)=>this.multer.array(s,a)(h.getRequest(),h.getResponse(),_=>{if(_){const g=(0,o.transformException)(_);return v(g)}m()})),f.handle()}};return u=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],u),(0,t.mixin)(u)}return ep}var tp={},_I;function SK(){if(_I)return tp;_I=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.NoFilesInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=Ei(),o=Wl();function i(s){let a=class{constructor(p={}){this.multer=r({...p,...s})}async intercept(p,l){const d=p.switchToHttp();return await new Promise((f,h)=>this.multer.none()(d.getRequest(),d.getResponse(),m=>{if(m){const v=(0,o.transformException)(m);return h(v)}f()})),l.handle()}};return a=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],a),(0,t.mixin)(a)}return tp}var gI;function TK(){return gI||(gI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(EK(),e),t.__exportStar(xK(),e),t.__exportStar(OK(),e),t.__exportStar(wK(),e),t.__exportStar(SK(),e)})(c_)),c_}var Z_={},K_={},yI;function PK(){return yI||(yI=1,Object.defineProperty(K_,"__esModule",{value:!0})),K_}var bI;function AK(){return bI||(bI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(PK(),e)})(Z_)),Z_}var ti={},$u={},EI;function RK(){return EI||(EI=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.MULTER_MODULE_ID=void 0,$u.MULTER_MODULE_ID="MULTER_MODULE_ID"),$u}var xI;function MK(){if(xI)return ti;xI=1;var e;Object.defineProperty(ti,"__esModule",{value:!0}),ti.MulterModule=void 0;const t=ae(),r=ve(),n=sr(),o=Ei(),i=RK();let s=e=class{static register(c={}){return{module:e,providers:[{provide:o.MULTER_MODULE_OPTIONS,useFactory:()=>c},{provide:i.MULTER_MODULE_ID,useValue:(0,n.randomStringGenerator)()}],exports:[o.MULTER_MODULE_OPTIONS]}}static registerAsync(c){return{module:e,imports:c.imports,providers:[...this.createAsyncProviders(c),{provide:i.MULTER_MODULE_ID,useValue:(0,n.randomStringGenerator)()}],exports:[o.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(c){return c.useExisting||c.useFactory?[this.createAsyncOptionsProvider(c)]:[this.createAsyncOptionsProvider(c),{provide:c.useClass,useClass:c.useClass}]}static createAsyncOptionsProvider(c){return c.useFactory?{provide:o.MULTER_MODULE_OPTIONS,useFactory:c.useFactory,inject:c.inject||[]}:{provide:o.MULTER_MODULE_OPTIONS,useFactory:async u=>u.createMulterOptions(),inject:[c.useExisting||c.useClass]}}};return ti.MulterModule=s,ti.MulterModule=s=e=t.__decorate([(0,r.Module)({})],s),ti}var OI;function IK(){return OI||(OI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(TK(),e),t.__exportStar(AK(),e),t.__exportStar(MK(),e)})(s_)),s_}var wI;function fF(){return wI||(wI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(L4(),e),t.__exportStar(B4(),e),t.__exportStar(IK(),e)})(e_)),e_}var SI;function hF(){if(SI)return ln;SI=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.NestFactory=ln.NestFactoryStatic=void 0;const e=_g(),t=yt(),r=Sl(),n=ne(),o=_r(),i=mi(),s=T4(),a=P4(),c=A4(),u=Ay(),p=gi(),l=jy(),d=Vp(),f=nF(),h=zl(),m=Tn(),v=Cy(),_=My(),g=iF();class y{constructor(){this.logger=new t.Logger("NestFactory",{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}async create(E,x,O){const[S,w]=this.isHttpServer(x)?[x,O]:[this.createHttpAdapter(),x],A=new o.ApplicationConfig,T=new u.NestContainer(A,w),P=this.createGraphInspector(w,T);this.setAbortOnError(x,O),this.registerLoggerConfiguration(w),await this.initialize(E,T,P,A,w,S);const N=new v.NestApplication(T,S,A,P,w),D=this.createNestInstance(N);return this.createAdapterProxy(D,S)}async createMicroservice(E,x){const{NestMicroservice:O}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>rF),S=new o.ApplicationConfig,w=new u.NestContainer(S,x),A=this.createGraphInspector(x,w);return this.setAbortOnError(x),this.registerLoggerConfiguration(x),await this.initialize(E,w,A,S,x),this.createNestInstance(new O(w,x,A,S))}async createApplicationContext(E,x){const O=new o.ApplicationConfig,S=new u.NestContainer(O,x),w=this.createGraphInspector(x,S);this.setAbortOnError(x),this.registerLoggerConfiguration(x),await this.initialize(E,S,w,O,x);const T=S.getModules().values().next().value,P=this.createNestInstance(new _.NestApplicationContext(S,x,T));return this.autoFlushLogs&&P.flushLogsOnOverride(),P.init()}createNestInstance(E){return this.createProxy(E)}async initialize(E,x,O,S=new o.ApplicationConfig,w={},A=null){h.UuidFactory.mode=w.snapshot?h.UuidFactoryMode.Deterministic:h.UuidFactoryMode.Random;const T=new p.Injector({preview:w.preview,instanceDecorator:w.instrument?.instanceDecorator}),P=new l.InstanceLoader(x,T,O),N=new m.MetadataScanner,D=new g.DependenciesScanner(x,N,O,S);x.setHttpAdapter(A);const V=this.abortOnError===!1?c.rethrow:void 0;await A?.init?.();try{this.logger.log(i.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await D.scan(E),await P.createInstancesOfDependencies(),D.applyApplicationProviders()},V,this.autoFlushLogs)}catch(F){this.handleInitializationError(F)}}handleInitializationError(E){this.abortOnError&&process.abort(),(0,c.rethrow)(E)}createProxy(E){const x=this.createExceptionProxy();return new Proxy(E,{get:x,set:x})}createExceptionProxy(){return(E,x)=>{if(x in E)return(0,n.isFunction)(E[x])?this.createExceptionZone(E,x):E[x]}}createExceptionZone(E,x){const O=this.abortOnError===!1?c.rethrow:void 0;return(...S)=>{let w;return s.ExceptionsZone.run(()=>{w=E[x](...S)},O,this.autoFlushLogs),w}}registerLoggerConfiguration(E){if(!E)return;const{logger:x,bufferLogs:O,autoFlushLogs:S,forceConsole:w}=E;if(x!==!0&&!(0,n.isNil)(x))t.Logger.overrideLogger(x);else if(w){const A=new e.ConsoleLogger({forceConsole:!0});t.Logger.overrideLogger(A)}O&&t.Logger.attachBuffer(),this.autoFlushLogs=S??!0}createHttpAdapter(E){const{ExpressAdapter:x}=(0,a.loadAdapter)("@nestjs/platform-express","HTTP",()=>fF());return new x(E)}isHttpServer(E){return!!(E&&E.patch)}setAbortOnError(E,x){this.abortOnError=this.isHttpServer(E)?!(x&&x.abortOnError===!1):!(E&&E.abortOnError===!1)}createAdapterProxy(E,x){const O=new Proxy(E,{get:(S,w)=>{const A=T=>T instanceof Promise?T.then(A):T instanceof v.NestApplication?O:T;return!(w in S)&&w in x?(...T)=>{const P=this.createExceptionZone(x,w)(...T);return A(P)}:(0,n.isFunction)(S[w])?(...T)=>{const P=S[w](...T);return A(P)}:S[w]}});return O}createGraphInspector(E,x){return E?.snapshot?new d.GraphInspector(x):f.NoopGraphInspector}}return ln.NestFactoryStatic=y,ln.NestFactory=new y,ln}var Y_={},rp={},np={},TI;function CK(){if(TI)return np;TI=1,Object.defineProperty(np,"__esModule",{value:!0}),np.assignToObject=e;function e(t,r){return Object.defineProperties(t,Object.keys(r).reduce((n,o)=>(n[o]=Object.getOwnPropertyDescriptor(r,o),n),Object.create(null))),t}return np}var el={},PI;function jK(){return PI||(PI=1,Object.defineProperty(el,"__esModule",{value:!0}),el.REPL_INITIALIZED_MESSAGE=void 0,el.REPL_INITIALIZED_MESSAGE="REPL initialized"),el}var tl={},X_={},rl={},nl={},AI;function xi(){if(AI)return nl;AI=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.ReplFunction=void 0;const e=or();class t{constructor(n){this.ctx=n,this.logger=n.logger}makeHelpMessage(){const{description:n,name:o,signature:i}=this.fnDefinition,s=`${o}${i}`;return`${e.clc.yellow(n)}
|
|
146
|
+
`,this.push(c),a()}writeMessage(i,s){i.id||(this.lastEventId++,i.id=this.lastEventId.toString()),this.write(i,"utf-8")?process.nextTick(s):this.once("drain",s)}}return ku.SseStream=n,ku}var VR;function l4(){if(VR)return Fu;VR=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.RouterResponseController=void 0;const e=ve(),t=ne(),r=On(),n=Zg(),o=u4();class i{constructor(a){this.applicationRef=a,this.logger=new e.Logger(i.name)}async apply(a,c,u){return this.applicationRef.reply(c,a,u)}async redirect(a,c,u){const p=await this.transformToResult(a),l=p&&p.statusCode?p.statusCode:u.statusCode?u.statusCode:e.HttpStatus.FOUND,d=p&&p.url?p.url:u.url;this.applicationRef.redirect(c,l,d)}async render(a,c,u){const p=await this.transformToResult(a);return this.applicationRef.render(c,u,p)}async transformToResult(a){return(0,r.isObservable)(a)?(0,r.lastValueFrom)(a):a}getStatusByMethod(a){return a===e.RequestMethod.POST?e.HttpStatus.CREATED:e.HttpStatus.OK}setHeaders(a,c){c.forEach(({name:u,value:p})=>this.applicationRef.setHeader(a,u,typeof p=="function"?p():p))}setStatus(a,c){this.applicationRef.status(a,c)}async sse(a,c,u,p){if(c.writableEnded)return;const l=await Promise.resolve(a);this.assertObservable(l);const d=new o.SseStream(u),f=c.statusCode,h=typeof f<"u"?{...p,statusCode:f}:p;d.pipe(c,h);const m=l.pipe((0,n.map)(v=>(0,t.isObject)(v)?v:{data:v}),(0,n.concatMap)(v=>new Promise(_=>d.writeMessage(v,()=>_()))),(0,n.catchError)(v=>{const _=v instanceof Error?v.message:v;return d.writeMessage({type:"error",data:_},g=>{g&&this.logger.error(g)}),r.EMPTY})).subscribe({complete:()=>{c.end()}});u.on("close",()=>{m.unsubscribe(),d.writableEnded||d.end()})}assertObservable(a){if(!(0,r.isObservable)(a))throw new ReferenceError("You must return an Observable stream to use Server-Sent Events (SSE).")}}return Fu.RouterResponseController=i,Fu}var GR;function d4(){if(GR)return qu;GR=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.RouterExecutionContext=void 0;const e=ve(),t=xe(),r=yp(),n=ne(),o=gy(),i=Rq(),s=Mq(),a=ot(),c=l4();class u{constructor(l,d,f,h,m,v,_,g){this.paramsFactory=l,this.pipesContextCreator=d,this.pipesConsumer=f,this.guardsContextCreator=h,this.guardsConsumer=m,this.interceptorsContextCreator=v,this.interceptorsConsumer=_,this.applicationRef=g,this.handlerMetadataStorage=new s.HandlerMetadataStorage,this.contextUtils=new i.ContextUtils,this.responseController=new c.RouterResponseController(g)}create(l,d,f,h,m,v=a.STATIC_CONTEXT,_){const g="http",{argsLength:y,fnHandleResponse:b,paramtypes:E,getParamsMetadata:x,httpStatusCode:O,responseHeaders:S,hasCustomHeaders:w}=this.getMetadata(l,d,f,h,m,g),A=this.contextUtils.mergeParamsMetatypes(x(h,v,_),E),P=this.pipesContextCreator.create(l,d,h,v,_),T=this.guardsContextCreator.create(l,d,h,v,_),q=this.interceptorsContextCreator.create(l,d,h,v,_),D=this.createGuardsFn(T,l,d,g),V=this.createPipesFn(P,A),k=(F,Z,J,U)=>async()=>(V&&await V(F,Z,J,U),d.apply(l,F));return async(F,Z,J)=>{const U=this.contextUtils.createNullArray(y);D&&await D([F,Z,J]),this.responseController.setStatus(Z,O),w&&this.responseController.setHeaders(Z,S);const Q=await this.interceptorsConsumer.intercept(q,[F,Z,J],l,d,k(U,F,Z,J),g);await b(Q,Z,F)}}getMetadata(l,d,f,h,m,v){const _=this.handlerMetadataStorage.get(l,f);if(_)return _;const g=this.contextUtils.reflectCallbackMetadata(l,f,t.ROUTE_ARGS_METADATA)||{},y=Object.keys(g),b=this.contextUtils.getArgumentsLength(y,g),E=this.contextUtils.reflectCallbackParamtypes(l,f),x=this.contextUtils.getContextFactory(v,l,d),O=(F,Z=a.STATIC_CONTEXT,J)=>this.exchangeKeysForValues(y,g,F,Z,J,x),S=O(h),w=this.isResponseHandled(l,f,S),A=this.reflectRedirect(d),P=this.createHandleResponseFn(d,w,A),T=this.reflectHttpStatusCode(d),q=T||this.responseController.getStatusByMethod(m),D=this.reflectResponseHeaders(d),V=!(0,n.isEmpty)(D),k={argsLength:b,fnHandleResponse:P,paramtypes:E,getParamsMetadata:O,httpStatusCode:q,hasCustomHeaders:V,responseHeaders:D};return this.handlerMetadataStorage.set(l,f,k),k}reflectRedirect(l){return Reflect.getMetadata(t.REDIRECT_METADATA,l)}reflectHttpStatusCode(l){return Reflect.getMetadata(t.HTTP_CODE_METADATA,l)}reflectRenderTemplate(l){return Reflect.getMetadata(t.RENDER_METADATA,l)}reflectResponseHeaders(l){return Reflect.getMetadata(t.HEADERS_METADATA,l)||[]}reflectSse(l){return Reflect.getMetadata(t.SSE_METADATA,l)}exchangeKeysForValues(l,d,f,h=a.STATIC_CONTEXT,m,v){return this.pipesContextCreator.setModuleContext(f),l.map(_=>{const{index:g,data:y,pipes:b}=d[_],E=this.pipesContextCreator.createConcreteContext(b,h,m),x=this.contextUtils.mapParamType(_);if(_.includes(t.CUSTOM_ROUTE_ARGS_METADATA)){const{factory:w}=d[_],A=this.contextUtils.getCustomFactory(w,y,v);return{index:g,extractValue:A,type:x,data:y,pipes:E}}const O=Number(x);return{index:g,extractValue:(w,A,P)=>this.paramsFactory.exchangeKeyForValue(O,y,{req:w,res:A,next:P}),type:O,data:y,pipes:E}})}async getParamValue(l,{metatype:d,type:f,data:h},m){return(0,n.isEmpty)(m)?l:this.pipesConsumer.apply(l,{metatype:d,type:f,data:h},m)}isPipeable(l){return l===r.RouteParamtypes.BODY||l===r.RouteParamtypes.RAW_BODY||l===r.RouteParamtypes.QUERY||l===r.RouteParamtypes.PARAM||l===r.RouteParamtypes.FILE||l===r.RouteParamtypes.FILES||(0,n.isString)(l)}createGuardsFn(l,d,f,h){const m=async v=>{if(!await this.guardsConsumer.tryActivate(l,v,d,f,h))throw new e.ForbiddenException(o.FORBIDDEN_MESSAGE)};return l.length?m:null}createPipesFn(l,d){const f=async(h,m,v,_)=>{const g=async y=>{const{index:b,extractValue:E,type:x,data:O,metatype:S,pipes:w}=y,A=E(m,v,_);h[b]=this.isPipeable(x)?await this.getParamValue(A,{metatype:S,type:x,data:O},l.concat(w)):A};await Promise.all(d.map(g))};return d.length?f:null}createHandleResponseFn(l,d,f,h){const m=this.reflectRenderTemplate(l);return m?async(_,g)=>await this.responseController.render(_,g,m):f&&(0,n.isString)(f.url)?async(_,g)=>{await this.responseController.redirect(_,g,f)}:this.reflectSse(l)?async(_,g,y)=>{await this.responseController.sse(_,g.raw||g,y.raw||y,{additionalHeaders:g.getHeaders?.()})}:async(_,g)=>(_=await this.responseController.transformToResult(_),!d&&await this.responseController.apply(_,g,h),g)}isResponseHandled(l,d,f){const h=f.some(({type:v})=>v===r.RouteParamtypes.RESPONSE||v===r.RouteParamtypes.NEXT),m=this.contextUtils.reflectPassthrough(l,d);return h&&!m}}return qu.RouterExecutionContext=u,qu}var WR;function Xq(){if(WR)return Cu;WR=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.RouterExplorer=void 0;const e=xe(),t=wl(),r=hg(),n=yt(),o=ne(),i=Ty(),s=s4(),a=gy(),c=Ll(),u=An(),p=Ry(),l=Yq(),d=ot(),f=Pq(),h=Aq(),m=Zq(),v=Tn(),_=c4(),g=d4();class y{constructor(E,x,O,S,w,A,P,T){this.container=x,this.injector=O,this.routerProxy=S,this.exceptionsFilter=w,this.routePathFactory=P,this.graphInspector=T,this.routerMethodFactory=new l.RouterMethodFactory,this.logger=new n.Logger(y.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap,this.pathsExplorer=new m.PathsExplorer(E);const q=new _.RouteParamsFactory,D=new h.PipesContextCreator(x,A),V=new h.PipesConsumer,k=new a.GuardsContextCreator(x,A),F=new a.GuardsConsumer,Z=new f.InterceptorsContextCreator(x,A),J=new f.InterceptorsConsumer;this.executionContextCreator=new g.RouterExecutionContext(q,D,V,k,F,Z,J,x.getHttpAdapterRef())}explore(E,x,O,S,w){const{instance:A}=E,P=this.pathsExplorer.scanForPaths(A);this.applyPathsToRouterProxy(O,P,E,x,w,S)}extractRouterPath(E){const x=Reflect.getMetadata(e.PATH_METADATA,E);if((0,o.isUndefined)(x))throw new s.UnknownRequestMappingException(E);return Array.isArray(x)?x.map(O=>(0,o.addLeadingSlash)(O)):[(0,o.addLeadingSlash)(x)]}applyPathsToRouterProxy(E,x,O,S,w,A){(x||[]).forEach(P=>{const{version:T}=P;w.methodVersion=T,this.applyCallbackToRouter(E,P,O,S,w,A)})}applyCallbackToRouter(E,x,O,S,w,A){const{path:P,requestMethod:T,targetCallback:q,methodName:D}=x,{instance:V}=O,k=this.routerMethodFactory.get(E,T).bind(E),Z=!O.isDependencyTreeStatic()?this.createRequestScopedHandler(O,T,this.container.getModuleByKey(S),S,D):this.createCallbackProxy(V,q,D,S,T),J=(w.methodVersion||w.controllerVersion)&&w.versioningOptions;let U=this.applyHostFilter(A,Z);P.forEach(Q=>{J&&w.versioningOptions.type!==t.VersioningType.URI&&(U=this.applyVersionFilter(E,w,U)),w.methodPath=Q,this.routePathFactory.create(w,T).forEach(L=>{const B={type:"http-endpoint",methodName:D,className:O.name,classNodeId:O.id,metadata:{key:L,path:L,requestMethod:t.RequestMethod[T],methodVersion:w.methodVersion,controllerVersion:w.controllerVersion}};this.copyMetadataToCallback(q,U);const M=E.normalizePath?E.normalizePath(L):L,z=this.container.getHttpAdapterRef().getOnRouteTriggered?.();z?k(M,(...Y)=>(z(T,L),U(...Y))):k(M,U),this.graphInspector.insertEntrypointDefinition(B,O.id)}),this.routePathFactory.create({...w,versioningOptions:void 0},T).forEach(L=>{if(J){const B=this.routePathFactory.getVersion(w);this.logger.log((0,p.VERSIONED_ROUTE_MAPPED_MESSAGE)(L,T,B))}else this.logger.log((0,p.ROUTE_MAPPED_MESSAGE)(L,T))})})}applyHostFilter(E,x){if(!E)return x;const O=this.container.getHttpAdapterRef(),w=(Array.isArray(E)?E:[E]).map(P=>{if(typeof P=="string")try{return(0,i.pathToRegexp)(P)}catch(T){throw T instanceof TypeError&&this.logger.error(`Unsupported host "${P}" syntax. In past releases, ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. Please see the migration guide for more information.`),T}return{regexp:P,keys:[]}}),A=Array.isArray(E)?`HTTP adapter does not support filtering on hosts: ["${E.join('", "')}"]`:`HTTP adapter does not support filtering on host: "${E}"`;return(P,T,q)=>{P.hosts={};const D=O.getRequestHostname(P)||"";for(const V of w){const k=D.match(V.regexp);if(k){if(V.keys.length>0)V.keys.forEach((F,Z)=>P.hosts[F.name]=k[Z+1]);else if(V.regexp&&k.groups)for(const F in k.groups)P.hosts[F]=k.groups[F];return x(P,T,q)}}if(!q)throw new r.InternalServerErrorException(A);return q()}}applyVersionFilter(E,x,O){const S=this.routePathFactory.getVersion(x);return E.applyVersionFilter(O,S,x.versioningOptions)}createCallbackProxy(E,x,O,S,w,A=d.STATIC_CONTEXT,P){const T=this.executionContextCreator.create(E,x,O,S,w,A,P),q=this.exceptionsFilter.create(E,x,S,A,P);return this.routerProxy.createProxy(T,q)}createRequestScopedHandler(E,x,O,S,w){const{instance:A}=E,P=O.controllers,T=E.isDependencyTreeDurable();return async(q,D,V)=>{try{const k=this.getContextId(q,T),F=await this.injector.loadPerContext(A,O,P,k);await this.createCallbackProxy(F,F[w],w,S,x,k,E.id)(q,D,V)}catch(k){let F=this.exceptionFiltersCache.get(A[w]);F||(F=this.exceptionsFilter.create(A,A[w],S),this.exceptionFiltersCache.set(A[w],F));const Z=new u.ExecutionContextHost([q,D,V]);F.next(k,Z)}}}getContextId(E,x){const O=c.ContextIdFactory.getByRequest(E);if(!E[v.REQUEST_CONTEXT_ID]){Object.defineProperty(E,v.REQUEST_CONTEXT_ID,{value:O,enumerable:!1,writable:!1,configurable:!1});const S=x?O.payload:Object.assign(E,O.payload);this.container.registerRequestProvider(S,O)}return O}copyMetadataToCallback(E,x){for(const O of Reflect.getMetadataKeys(E))Reflect.defineMetadata(O,Reflect.getMetadata(O,E),x)}}return Cu.RouterExplorer=y,Cu}var ZR;function Jq(){if(ZR)return Iu;ZR=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.RoutesResolver=void 0;const e=ve(),t=xe(),r=yt(),n=Ry(),o=Pn(),i=Wq(),s=Vq(),a=Xq(),c=Gq();class u{constructor(l,d,f,h){this.container=l,this.applicationConfig=d,this.injector=f,this.logger=new r.Logger(u.name,{timestamp:!0}),this.routerProxy=new c.RouterProxy;const m=l.getHttpAdapterRef();this.routerExceptionsFilter=new s.RouterExceptionFilters(l,d,m),this.routePathFactory=new i.RoutePathFactory(this.applicationConfig);const v=new o.MetadataScanner;this.routerExplorer=new a.RouterExplorer(v,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory,h)}resolve(l,d){this.container.getModules().forEach(({controllers:h,metatype:m},v)=>{const _=this.getModulePathMetadata(m);this.registerRouters(h,v,d,_,l)})}registerRouters(l,d,f,h,m){l.forEach(v=>{const{metatype:_}=v,g=this.getHostMetadata(_),y=this.routerExplorer.extractRouterPath(_),b=this.getVersionMetadata(_),E=_.name;y.forEach(x=>{const O=this.routePathFactory.create({ctrlPath:x,modulePath:h,globalPrefix:f});b?O.forEach(A=>{const P=(0,n.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(E,A,b);this.logger.log(P)}):O.forEach(A=>{const P=(0,n.CONTROLLER_MAPPING_MESSAGE)(E,A);this.logger.log(P)});const S=this.applicationConfig.getVersioning(),w={ctrlPath:x,modulePath:h,globalPrefix:f,controllerVersion:b,versioningOptions:S};this.routerExplorer.explore(v,d,m,g,w)})})}registerNotFoundHandler(){const l=this.container.getHttpAdapterRef(),d=(m,v)=>{const _=l.getRequestMethod(m),g=l.getRequestUrl(m);throw new e.NotFoundException(`Cannot ${_} ${g}`)},f=this.routerExceptionsFilter.create({},d,void 0),h=this.routerProxy.createProxy(d,f);l.setNotFoundHandler&&l.setNotFoundHandler(h,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){const l=(m,v,_,g)=>{throw this.mapExternalException(m)},d=this.routerExceptionsFilter.create({},l,void 0),f=this.routerProxy.createExceptionLayerProxy(l,d),h=this.container.getHttpAdapterRef();h.setErrorHandler&&h.setErrorHandler(f,this.applicationConfig.getGlobalPrefix())}mapExternalException(l){switch(!0){case(l instanceof SyntaxError||l instanceof URIError):return new e.BadRequestException(l.message);case this.isHttpFastifyError(l):return new e.HttpException(l.message,l.statusCode);default:return l}}isHttpFastifyError(l){return l.statusCode!==void 0&&l instanceof Error&&l.name==="FastifyError"}getModulePathMetadata(l){const d=this.container.getModules();return Reflect.getMetadata(t.MODULE_PATH+d.applicationId,l)??Reflect.getMetadata(t.MODULE_PATH,l)}getHostMetadata(l){return Reflect.getMetadata(t.HOST_METADATA,l)}getVersionMetadata(l){const d=this.applicationConfig.getVersioning();if(d)return Reflect.getMetadata(t.VERSION_METADATA,l)??d.defaultVersion}}return Iu.RoutesResolver=u,Iu}const p4={},f4=Object.freeze(Object.defineProperty({__proto__:null,default:p4},Symbol.toStringTag,{value:"Module"})),h4=li(f4),v4={},m4=Object.freeze(Object.defineProperty({__proto__:null,default:v4},Symbol.toStringTag,{value:"Module"})),_4=li(m4),g4={},y4=Object.freeze(Object.defineProperty({__proto__:null,default:g4},Symbol.toStringTag,{value:"Module"})),Qq=li(y4);var KR;function My(){if(KR)return _u;KR=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.NestApplication=void 0;const e=ve(),t=yt(),r=Sl(),n=ne(),o=Ve(),i=vp,s=_r(),a=vi(),c=ZZ(),u=_i(),p=KZ(),l=e4(),d=Bq(),f=Ay(),h=Jq(),{SocketModule:m}=(0,c.optionalRequire)("@nestjs/websockets/socket-module",()=>h4),{MicroservicesModule:v}=(0,c.optionalRequire)("@nestjs/microservices/microservices-module",()=>_4);class _ extends f.NestApplicationContext{constructor(y,b,E,x,O={}){super(y,O),this.httpAdapter=b,this.config=E,this.graphInspector=x,this.logger=new t.Logger(_.name,{timestamp:!0}),this.middlewareContainer=new p.MiddlewareContainer(this.container),this.microservicesModule=v&&new v,this.socketModule=m&&new m,this.microservices=[],this.isListening=!1,this.selectContextModule(),this.registerHttpServer(),this.injector=new u.Injector({preview:this.appOptions.preview,instanceDecorator:O.instrument?.instanceDecorator}),this.middlewareModule=new l.MiddlewareModule,this.routesResolver=new h.RoutesResolver(this.container,this.config,this.injector,this.graphInspector)}async dispose(){this.socketModule&&await this.socketModule.close(),this.microservicesModule&&await this.microservicesModule.close(),this.httpAdapter&&await this.httpAdapter.close(),await Promise.all((0,o.iterate)(this.microservices).map(async y=>{y.setIsTerminated(!0),await y.close()}))}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){return!this.appOptions||!this.appOptions.cors?void 0:(0,n.isObject)(this.appOptions.cors)||(0,n.isFunction)(this.appOptions.cors)?this.enableCors(this.appOptions.cors):this.enableCors()}createServer(){return this.httpAdapter.initHttpServer(this.appOptions),this.httpAdapter.getHttpServer()}async registerModules(){this.registerWsModule(),this.microservicesModule&&(this.microservicesModule.register(this.container,this.graphInspector,this.config,this.appOptions),this.microservicesModule.setupClients(this.container)),await this.middlewareModule.register(this.middlewareContainer,this.container,this.config,this.injector,this.httpAdapter,this.graphInspector,this.appOptions)}registerWsModule(){this.socketModule&&this.socketModule.register(this.container,this.config,this.graphInspector,this.appOptions,this.httpServer)}async init(){return this.isInitialized?this:(this.applyOptions(),await this.httpAdapter?.init?.(),this.appOptions&&this.appOptions.bodyParser!==!1&&this.registerParserMiddleware(),await this.registerModules(),await this.registerRouter(),await this.callInitHook(),await this.registerRouterHooks(),await this.callBootstrapHook(),this.isInitialized=!0,this.logger.log(a.MESSAGES.APPLICATION_READY),this)}registerParserMiddleware(){const y=this.config.getGlobalPrefix(),b=!!this.appOptions?.rawBody;this.httpAdapter.registerParserMiddleware(y,b)}async registerRouter(){await this.registerMiddleware(this.httpAdapter);const y=this.config.getGlobalPrefix(),b=(0,n.addLeadingSlash)(y);this.routesResolver.resolve(this.httpAdapter,b)}async registerRouterHooks(){this.routesResolver.registerNotFoundHandler(),this.routesResolver.registerExceptionHandler()}connectMicroservice(y,b={}){const{NestMicroservice:E}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>Qq),{inheritAppConfig:x}=b,O=x?this.config:new s.ApplicationConfig,S=new E(this.container,y,this.graphInspector,O);return b.deferInitialization||(S.registerListeners(),S.setIsInitialized(!0),S.setIsInitHookCalled(!0)),this.microservices.push(S),S}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}async startAllMicroservices(){return this.assertNotInPreviewMode("startAllMicroservices"),await Promise.all(this.microservices.map(y=>y.listen())),this}use(...y){return this.httpAdapter.use(...y),this}useBodyParser(...y){if(!("useBodyParser"in this.httpAdapter))return this.logger.warn("Your HTTP Adapter does not support `.useBodyParser`."),this;const[b,...E]=y,x=!!this.appOptions.rawBody;return this.httpAdapter.useBodyParser?.(b,x,...E),this}enableCors(y){this.httpAdapter.enableCors(y)}enableVersioning(y={type:e.VersioningType.URI}){return this.config.enableVersioning(y),this}async listen(y,...b){this.assertNotInPreviewMode("listen"),this.isInitialized||await this.init();const E=this.container.getHttpAdapterHostRef();return new Promise((x,O)=>{const S=P=>{this.logger.error(P?.toString?.()),O(P)};this.httpServer.once("error",S);const w=(0,n.isFunction)(b[b.length-1]),A=w?b.slice(0,b.length-1):b;this.httpAdapter.listen(y,...A,(...P)=>{if((this.appOptions?.autoFlushLogs??!0)&&this.flushLogs(),P[0]instanceof Error)return O(P[0]);this.httpServer.address()&&(this.httpServer.removeListener("error",S),this.isListening=!0,E.listening=!0,x(this.httpServer)),w&&b[b.length-1](...P)})})}async getUrl(){return new Promise((y,b)=>{if(!this.isListening){this.logger.error(a.MESSAGES.CALL_LISTEN_FIRST),b(a.MESSAGES.CALL_LISTEN_FIRST);return}const E=this.httpServer.address();y(this.formatAddress(E))})}formatAddress(y){if((0,n.isString)(y)){if((0,i.platform)()==="win32")return y;const E=encodeURIComponent(y);return`${this.getProtocol()}+unix://${E}`}let b=this.host();return y&&y.family==="IPv6"?b==="::"?b="[::1]":b=`[${b}]`:b==="0.0.0.0"&&(b="127.0.0.1"),`${this.getProtocol()}://${b}:${y.port}`}setGlobalPrefix(y,b){if(this.config.setGlobalPrefix(y),b){const E=b?.exclude?(0,d.mapToExcludeRoute)(b.exclude):[];this.config.setGlobalPrefixOptions({...b,exclude:E})}return this}useWebSocketAdapter(y){return this.config.setIoAdapter(y),this}useGlobalFilters(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalFilters(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"filter",ref:b})),this}useGlobalPipes(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalPipes(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"pipe",ref:b})),this}useGlobalInterceptors(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalInterceptors(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"interceptor",ref:b})),this}useGlobalGuards(...y){return y=this.applyInstanceDecoratorIfRegistered(...y),this.config.useGlobalGuards(...y),y.forEach(b=>this.graphInspector.insertOrphanedEnhancer({subtype:"guard",ref:b})),this}useStaticAssets(y,b){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(y,b),this}setBaseViewsDir(y){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(y),this}setViewEngine(y){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(y),this}host(){const y=this.httpServer.address();if(!(0,n.isString)(y))return y&&y.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?"https":"http"}async registerMiddleware(y){await this.middlewareModule.registerMiddleware(this.middlewareContainer,y)}applyInstanceDecoratorIfRegistered(...y){return this.appOptions.instrument?.instanceDecorator?y.map(b=>this.appOptions.instrument.instanceDecorator(b)):y}}return _u.NestApplication=_,_u}var ln={},Du={},Lu={},YR;function b4(){if(YR)return Lu;YR=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.ExceptionHandler=void 0;const e=yt();class t{handle(n){t.logger.error(n)}}return Lu.ExceptionHandler=t,t.logger=new e.Logger(t.name),Lu}var XR;function E4(){if(XR)return Du;XR=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.ExceptionsZone=void 0;const e=ve(),t=b4(),r=()=>process.exit(1);class n{static run(i,s=r,a){try{i()}catch(c){this.exceptionHandler.handle(c),a&&e.Logger.flush(),s(c)}}static async asyncRun(i,s=r,a){try{await i()}catch(c){this.exceptionHandler.handle(c),a&&e.Logger.flush(),s(c)}}}return Du.ExceptionsZone=n,n.exceptionHandler=new t.ExceptionHandler,Du}var Hd={},JR;function x4(){if(JR)return Hd;JR=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.loadAdapter=n;const e=ve(),t=(o,i)=>`No driver (${i}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${o}" package ($ npm install ${o}).`,r=new e.Logger("PackageLoader");function n(o,i,s){try{return s?s():_g(o)}catch{r.error(t(o,i)),process.exit(1)}}return Hd}var Uu={},QR;function O4(){if(QR)return Uu;QR=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.rethrow=void 0;const e=t=>{throw t};return Uu.rethrow=e,Uu}var zu={},$R;function Iy(){if($R)return zu;$R=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.InstanceLoader=void 0;const e=ve(),t=Ry(),r=Hp();class n{constructor(i,s,a,c=new e.Logger(n.name,{timestamp:!0})){this.container=i,this.injector=s,this.graphInspector=a,this.logger=c}setLogger(i){this.logger=i}async createInstancesOfDependencies(i=this.container.getModules()){this.createPrototypes(i);try{await this.createInstances(i)}catch(s){throw this.graphInspector.inspectModules(i),this.graphInspector.registerPartial(s),s}this.graphInspector.inspectModules(i)}createPrototypes(i){i.forEach(s=>{this.createPrototypesOfProviders(s),this.createPrototypesOfInjectables(s),this.createPrototypesOfControllers(s)})}async createInstances(i){await Promise.all([...i.values()].map(async s=>{await this.createInstancesOfProviders(s),await this.createInstancesOfInjectables(s),await this.createInstancesOfControllers(s);const{name:a}=s;this.isModuleWhitelisted(a)&&this.logger.log((0,t.MODULE_INIT_MESSAGE)`${a}`)}))}createPrototypesOfProviders(i){const{providers:s}=i;s.forEach(a=>this.injector.loadPrototype(a,s))}async createInstancesOfProviders(i){const{providers:s}=i,a=[...s.values()];await Promise.all(a.map(async c=>{await this.injector.loadProvider(c,i),this.graphInspector.inspectInstanceWrapper(c,i)}))}createPrototypesOfControllers(i){const{controllers:s}=i;s.forEach(a=>this.injector.loadPrototype(a,s))}async createInstancesOfControllers(i){const{controllers:s}=i,a=[...s.values()];await Promise.all(a.map(async c=>{await this.injector.loadController(c,i),this.graphInspector.inspectInstanceWrapper(c,i)}))}createPrototypesOfInjectables(i){const{injectables:s}=i;s.forEach(a=>this.injector.loadPrototype(a,s))}async createInstancesOfInjectables(i){const{injectables:s}=i,a=[...s.values()];await Promise.all(a.map(async c=>{await this.injector.loadInjectable(c,i),this.graphInspector.inspectInstanceWrapper(c,i)}))}isModuleWhitelisted(i){return i!==r.InternalCoreModule.name}}return zu.InstanceLoader=n,zu}var Bu={},eM;function $q(){if(eM)return Bu;eM=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.NoopGraphInspector=void 0;const e=Vp(),t=()=>{};return Bu.NoopGraphInspector=new Proxy(e.GraphInspector.prototype,{get:()=>t}),Bu}var Hu={},Vu={},tM;function w4(){if(tM)return Vu;tM=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.InvalidClassModuleException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i){super((0,e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(o,i))}}return Vu.InvalidClassModuleException=r,Vu}var Gu={},rM;function S4(){if(rM)return Gu;rM=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.InvalidModuleException=void 0;const e=Ot(),t=et();class r extends t.RuntimeException{constructor(o,i,s){super((0,e.INVALID_MODULE_MESSAGE)(o,i,s))}}return Gu.InvalidModuleException=r,Gu}var Wu={},nM;function P4(){if(nM)return Wu;nM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.UndefinedModuleException=void 0;const e=et(),t=Ot();class r extends e.RuntimeException{constructor(o,i,s){super((0,t.UNDEFINED_MODULE_MESSAGE)(o,i,s))}}return Wu.UndefinedModuleException=r,Wu}var Zu={},iM;function T4(){if(iM)return Zu;iM=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.InternalCoreModuleFactory=void 0;const e=ve(),t=yy(),r=Dl(),n=by(),o=Sy(),i=_i(),s=Iy(),a=wy(),c=mi(),u=Hp();class p{static create(d,f,h,m,v,_){const g=()=>{const y=new e.Logger(a.LazyModuleLoader.name,{timestamp:!1}),b=new i.Injector({preview:d.contextOptions?.preview,instanceDecorator:d.contextOptions?.instrument?.instanceDecorator}),E=new s.InstanceLoader(d,b,v,y);return new a.LazyModuleLoader(f,E,h,d.getModules(),_)};return n.InitializeOnPreviewAllowlist.add(u.InternalCoreModule),u.InternalCoreModule.register([{provide:t.ExternalContextCreator,useFactory:()=>t.ExternalContextCreator.fromContainer(d)},{provide:c.ModulesContainer,useFactory:()=>d.getModules()},{provide:r.HttpAdapterHost,useFactory:()=>m},{provide:a.LazyModuleLoader,useFactory:g},{provide:o.SerializedGraph,useFactory:()=>d.serializedGraph}])}}return Zu.InternalCoreModuleFactory=p,Zu}var Ku={},Yu={},aM;function A4(){if(aM)return Yu;aM=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.TreeNode=void 0;class e{constructor({value:r,parent:n}){this.children=new Set,this.value=r,this.parent=n}addChild(r){this.children.add(r)}removeChild(r){this.children.delete(r)}relink(r){this.parent?.removeChild(this),this.parent=r,this.parent.addChild(this)}getDepth(){const r=new Set;let n=0,o=this;for(;o;){if(n++,o=o.parent,r.has(o))return-1;r.add(o)}return n}hasCycleWith(r){const n=new Set;let o=this;for(;o;){if(o.value===r)return!0;if(o=o.parent,n.has(o))return!1;n.add(o)}return!1}}return Yu.TreeNode=e,Yu}var oM;function R4(){if(oM)return Ku;oM=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.TopologyTree=void 0;const e=A4();class t{constructor(n){this.links=new Map,this.root=new e.TreeNode({value:n,parent:null}),this.links.set(n,this.root),this.traverseAndMapToTree(this.root)}walk(n){function o(i,s=1){n(i.value,s),i.children.forEach(a=>o(a,s+1))}o(this.root)}traverseAndMapToTree(n,o=1){n.value.imports&&n.value.imports.forEach(i=>{if(!i)return;if(this.links.has(i)){const a=this.links.get(i);if(n.hasCycleWith(i))return;a.getDepth()<o&&a.relink(n);return}const s=new e.TreeNode({value:i,parent:n});n.addChild(s),this.links.set(i,s),this.traverseAndMapToTree(s,o+1)})}}return Ku.TopologyTree=t,Ku}var sM;function eF(){if(sM)return Hu;sM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.DependenciesScanner=void 0;const e=xe(),t=bp(),r=ne(),n=Ve(),o=_r(),i=vi(),s=Iq(),a=w4(),c=S4(),u=P4(),p=zp(),l=T4(),d=R4(),f=zl();class h{constructor(v,_,g,y=new o.ApplicationConfig){this.container=v,this.metadataScanner=_,this.graphInspector=g,this.applicationConfig=y,this.applicationProvidersApplyMap=[]}async scan(v,_){await this.registerCoreModule(_?.overrides),await this.scanForModules({moduleDefinition:v,overrides:_?.overrides}),await this.scanModulesForDependencies(),this.addScopedEnhancersMetadata(),this.calculateModulesDistance(),this.container.bindGlobalScope()}async scanForModules({moduleDefinition:v,lazy:_,scope:g=[],ctxRegistry:y=[],overrides:b=[]}){const{moduleRef:E,inserted:x}=await this.insertOrOverrideModule(v,b,g)??{};v=this.getOverrideModuleByModule(v,b)?.newModule??v,v=v instanceof Promise?await v:v,y.push(v),this.isForwardReference(v)&&(v=v.forwardRef());const O=this.isDynamicModule(v)?[...this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v.module),...v.imports||[]]:this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v);let S=[];for(const[w,A]of O.entries()){if(A===void 0)throw new u.UndefinedModuleException(v,w,g);if(!A)throw new c.InvalidModuleException(v,w,g);if(y.includes(A))continue;const P=await this.scanForModules({moduleDefinition:A,scope:[].concat(g,v),ctxRegistry:y,overrides:b,lazy:_});S=S.concat(P)}return E?(_&&x&&this.container.bindGlobalsToImports(E),[E].concat(S)):S}async insertModule(v,_){const g=this.isForwardReference(v)?v.forwardRef():v;if(this.isInjectable(g)||this.isController(g)||this.isExceptionFilter(g))throw new a.InvalidClassModuleException(v,_);return this.container.addModule(g,_)}async scanModulesForDependencies(v=this.container.getModules()){for(const[_,{metatype:g}]of v)await this.reflectImports(g,_,g.name),this.reflectProviders(g,_),this.reflectControllers(g,_),this.reflectExports(g,_)}async reflectImports(v,_,g){const y=[...this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.IMPORTS)];for(const b of y)await this.insertImport(b,_,g)}reflectProviders(v,_){[...this.reflectMetadata(e.MODULE_METADATA.PROVIDERS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.PROVIDERS)].forEach(y=>{this.insertProvider(y,_),this.reflectDynamicMetadata(y,_)})}reflectControllers(v,_){[...this.reflectMetadata(e.MODULE_METADATA.CONTROLLERS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.CONTROLLERS)].forEach(y=>{this.insertController(y,_),this.reflectDynamicMetadata(y,_)})}reflectDynamicMetadata(v,_){!v||!v.prototype||(this.reflectInjectables(v,_,e.GUARDS_METADATA),this.reflectInjectables(v,_,e.INTERCEPTORS_METADATA),this.reflectInjectables(v,_,e.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(v,_,e.PIPES_METADATA),this.reflectParamInjectables(v,_,e.ROUTE_ARGS_METADATA))}reflectExports(v,_){[...this.reflectMetadata(e.MODULE_METADATA.EXPORTS,v),...this.container.getDynamicMetadataByToken(_,e.MODULE_METADATA.EXPORTS)].forEach(y=>this.insertExportedProviderOrModule(y,_))}reflectInjectables(v,_,g){const y=this.reflectMetadata(g,v),b=this.metadataScanner.getAllMethodNames(v.prototype).reduce((E,x)=>{const O=this.reflectKeyMetadata(v,g,x);return O&&E.push(O),E},[]);y.forEach(E=>this.insertInjectable(E,_,v,e.ENHANCER_KEY_TO_SUBTYPE_MAP[g])),b.forEach(E=>{E.metadata.forEach(x=>this.insertInjectable(x,_,v,e.ENHANCER_KEY_TO_SUBTYPE_MAP[g],E.methodKey))})}reflectParamInjectables(v,_,g){this.metadataScanner.getAllMethodNames(v.prototype).forEach(b=>{const E=Reflect.getMetadata(g,v,b);if(!E)return;Object.values(E).map(O=>O.pipes).flat(1).forEach(O=>this.insertInjectable(O,_,v,"pipe",b))})}reflectKeyMetadata(v,_,g){let y=v.prototype;do{const b=Reflect.getOwnPropertyDescriptor(y,g);if(!b)continue;const E=Reflect.getMetadata(_,b.value);return E?{methodKey:g,metadata:E}:void 0}while((y=Reflect.getPrototypeOf(y))&&y!==Object.prototype&&y)}calculateModulesDistance(){const v=this.container.getModules().values();v.next();const _=v.next().value;if(!_)return;new d.TopologyTree(_).walk((y,b)=>{y.isGlobal||(y.distance=b)})}async insertImport(v,_,g){if((0,r.isUndefined)(v))throw new s.CircularDependencyException(g);if(this.isForwardReference(v))return this.container.addImport(v.forwardRef(),_);await this.container.addImport(v,_)}isCustomProvider(v){return v&&!(0,r.isNil)(v.provide)}insertProvider(v,_){if(!this.isCustomProvider(v))return this.container.addProvider(v,_);const y=this.getApplyProvidersMap(),b=Object.keys(y),E=v.provide;if(!b.includes(E))return this.container.addProvider(v,_);const x=f.UuidFactory.get(E.toString()),O=`${E} (UUID: ${x})`;let S=v.scope;(0,r.isNil)(S)&&v.useClass&&(S=(0,p.getClassScope)(v.useClass)),this.applicationProvidersApplyMap.push({type:E,moduleKey:_,providerKey:O,scope:S});const w={...v,provide:O,scope:S},A=i.ENHANCER_TOKEN_TO_SUBTYPE_MAP[E],P=w;if(this.isRequestOrTransient(P.scope))return this.container.addInjectable(w,_,A);this.container.addProvider(w,_,A)}insertInjectable(v,_,g,y,b){if((0,r.isFunction)(v)){const E=this.container.addInjectable(v,_,y,g);return this.graphInspector.insertEnhancerMetadataCache({moduleToken:_,classRef:g,enhancerInstanceWrapper:E,targetNodeId:E.id,subtype:y,methodKey:b}),E}else this.graphInspector.insertEnhancerMetadataCache({moduleToken:_,classRef:g,enhancerRef:v,methodKey:b,subtype:y})}insertExportedProviderOrModule(v,_){const g=this.isForwardReference(v)?v.forwardRef():v;this.container.addExportedProviderOrModule(g,_)}insertController(v,_){this.container.addController(v,_)}insertOrOverrideModule(v,_,g){const y=this.getOverrideModuleByModule(v,_);return y!==void 0?this.overrideModule(v,y.newModule,g):this.insertModule(v,g)}getOverrideModuleByModule(v,_){return this.isForwardReference(v)?_.find(g=>g.moduleToReplace===v.forwardRef()||g.moduleToReplace.forwardRef?.()===v.forwardRef()):_.find(g=>g.moduleToReplace===v)}async overrideModule(v,_,g){return this.container.replaceModule(this.isForwardReference(v)?v.forwardRef():v,this.isForwardReference(_)?_.forwardRef():_,g)}reflectMetadata(v,_){return Reflect.getMetadata(v,_)||[]}async registerCoreModule(v){const _=l.InternalCoreModuleFactory.create(this.container,this,this.container.getModuleCompiler(),this.container.getHttpAdapterHostRef(),this.graphInspector,v),[g]=await this.scanForModules({moduleDefinition:_,overrides:v});this.container.registerCoreModuleRef(g)}addScopedEnhancersMetadata(){(0,n.iterate)(this.applicationProvidersApplyMap).filter(v=>this.isRequestOrTransient(v.scope)).forEach(({moduleKey:v,providerKey:_})=>{const g=this.container.getModules(),{injectables:y}=g.get(v),b=y.get(_),E=g.values();(0,n.iterate)(E).map(x=>Array.from(x.controllers.values()).concat(x.entryProviders)).flatten().forEach(x=>x.addEnhancerMetadata(b))})}applyApplicationProviders(){const v=this.getApplyProvidersMap(),_=this.getApplyRequestProvidersMap(),g=(y,b,E)=>this.container.getModules().get(y)[E].get(b);this.applicationProvidersApplyMap.forEach(({moduleKey:y,providerKey:b,type:E,scope:x})=>{let O;if(this.isRequestOrTransient(x))return O=g(y,b,"injectables"),this.graphInspector.insertAttachedEnhancer(O),_[E](O);O=g(y,b,"providers"),this.graphInspector.insertAttachedEnhancer(O),v[E](O.instance)})}getApplyProvidersMap(){return{[i.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalInterceptor(v),[i.APP_PIPE]:v=>this.applicationConfig.addGlobalPipe(v),[i.APP_GUARD]:v=>this.applicationConfig.addGlobalGuard(v),[i.APP_FILTER]:v=>this.applicationConfig.addGlobalFilter(v)}}getApplyRequestProvidersMap(){return{[i.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalRequestInterceptor(v),[i.APP_PIPE]:v=>this.applicationConfig.addGlobalRequestPipe(v),[i.APP_GUARD]:v=>this.applicationConfig.addGlobalRequestGuard(v),[i.APP_FILTER]:v=>this.applicationConfig.addGlobalRequestFilter(v)}}isDynamicModule(v){return v&&!!v.module}isInjectable(v){return!!Reflect.getMetadata(e.INJECTABLE_WATERMARK,v)}isController(v){return!!Reflect.getMetadata(e.CONTROLLER_WATERMARK,v)}isExceptionFilter(v){return!!Reflect.getMetadata(e.CATCH_WATERMARK,v)}isForwardReference(v){return v&&!!v.forwardRef}isRequestOrTransient(v){return v===t.Scope.REQUEST||v===t.Scope.TRANSIENT}}return Hu.DependenciesScanner=h,Hu}var e_={},t_={},Xu={},r_={exports:{}};var n_,cM;function M4(){if(cM)return n_;cM=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return n_=o()?Object.assign:function(i,s){for(var a,c=n(i),u,p=1;p<arguments.length;p++){a=Object(arguments[p]);for(var l in a)t.call(a,l)&&(c[l]=a[l]);if(e){u=e(a);for(var d=0;d<u.length;d++)r.call(a,u[d])&&(c[u[d]]=a[u[d]])}}return c},n_}var Vd={exports:{}};var uM;function I4(){if(uM)return Vd.exports;uM=1,Vd.exports=n,Vd.exports.append=t;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function t(o,i){if(typeof o!="string")throw new TypeError("header argument is required");if(!i)throw new TypeError("field argument is required");for(var s=Array.isArray(i)?i:r(String(i)),a=0;a<s.length;a++)if(!e.test(s[a]))throw new TypeError("field argument contains an invalid header name");if(o==="*")return o;var c=o,u=r(o.toLowerCase());if(s.indexOf("*")!==-1||u.indexOf("*")!==-1)return"*";for(var p=0;p<s.length;p++){var l=s[p].toLowerCase();u.indexOf(l)===-1&&(u.push(l),c=c?c+", "+s[p]:s[p])}return c}function r(o){for(var i=0,s=[],a=0,c=0,u=o.length;c<u;c++)switch(o.charCodeAt(c)){case 32:a===i&&(a=i=c+1);break;case 44:s.push(o.substring(a,i)),a=i=c+1;break;default:i=c+1;break}return s.push(o.substring(a,i)),s}function n(o,i){if(!o||!o.getHeader||!o.setHeader)throw new TypeError("res argument is required");var s=o.getHeader("Vary")||"",a=Array.isArray(s)?s.join(", "):String(s);(s=t(a,i))&&o.setHeader("Vary",s)}return Vd.exports}var lM;function C4(){return lM||(lM=1,(function(){var e=M4(),t=I4(),r={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function n(h){return typeof h=="string"||h instanceof String}function o(h,m){if(Array.isArray(m)){for(var v=0;v<m.length;++v)if(o(h,m[v]))return!0;return!1}else return n(m)?h===m:m instanceof RegExp?m.test(h):!!m}function i(h,m){var v=m.headers.origin,_=[],g;return!h.origin||h.origin==="*"?_.push([{key:"Access-Control-Allow-Origin",value:"*"}]):n(h.origin)?(_.push([{key:"Access-Control-Allow-Origin",value:h.origin}]),_.push([{key:"Vary",value:"Origin"}])):(g=o(v,h.origin),_.push([{key:"Access-Control-Allow-Origin",value:g?v:!1}]),_.push([{key:"Vary",value:"Origin"}])),_}function s(h){var m=h.methods;return m.join&&(m=h.methods.join(",")),{key:"Access-Control-Allow-Methods",value:m}}function a(h){return h.credentials===!0?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function c(h,m){var v=h.allowedHeaders||h.headers,_=[];return v?v.join&&(v=v.join(",")):(v=m.headers["access-control-request-headers"],_.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),v&&v.length&&_.push([{key:"Access-Control-Allow-Headers",value:v}]),_}function u(h){var m=h.exposedHeaders;if(m)m.join&&(m=m.join(","));else return null;return m&&m.length?{key:"Access-Control-Expose-Headers",value:m}:null}function p(h){var m=(typeof h.maxAge=="number"||h.maxAge)&&h.maxAge.toString();return m&&m.length?{key:"Access-Control-Max-Age",value:m}:null}function l(h,m){for(var v=0,_=h.length;v<_;v++){var g=h[v];g&&(Array.isArray(g)?l(g,m):g.key==="Vary"&&g.value?t(m,g.value):g.value&&m.setHeader(g.key,g.value))}}function d(h,m,v,_){var g=[],y=m.method&&m.method.toUpperCase&&m.method.toUpperCase();y==="OPTIONS"?(g.push(i(h,m)),g.push(a(h)),g.push(s(h)),g.push(c(h,m)),g.push(p(h)),g.push(u(h)),l(g,v),h.preflightContinue?_():(v.statusCode=h.optionsSuccessStatus,v.setHeader("Content-Length","0"),v.end())):(g.push(i(h,m)),g.push(a(h)),g.push(u(h)),l(g,v),_())}function f(h){var m=null;return typeof h=="function"?m=h:m=function(v,_){_(null,h)},function(_,g,y){m(_,function(b,E){if(b)y(b);else{var x=e({},r,E),O=null;x.origin&&typeof x.origin=="function"?O=x.origin:x.origin&&(O=function(S,w){w(null,x.origin)}),O?O(_.headers.origin,function(S,w){S||!w?y(S):(x.origin=w,d(x,_,g,y))}):y()}})}}r_.exports=f})()),r_.exports}var Gd={},dM;function j4(){if(dM)return Gd;dM=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.getBodyParserOptions=t;const e=(r,n,o)=>(Buffer.isBuffer(o)&&(r.rawBody=o),!0);function t(r,n){let o=n||{};return r===!0&&(o={...o,verify:e}),o}return Gd}var pM;function N4(){if(pM)return Xu;pM=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.ExpressAdapter=void 0;const e=ve(),t=ne(),r=gq(),n=Yq(),o=zq(),i=C4(),s=Sk,a=Pk,c=Tk,u=Ty(),p=j4();class l extends r.AbstractHttpAdapter{constructor(f){super(f||s()),this.routerMethodFactory=new n.RouterMethodFactory,this.logger=new e.Logger(l.name),this.openConnections=new Set,this.instance.use((h,m,v)=>{this.onResponseHook&&m.on("finish",()=>{this.onResponseHook.apply(this,[h,m])}),this.onRequestHook?this.onRequestHook.apply(this,[h,m,v]):v()})}setOnRequestHook(f){this.onRequestHook=f}setOnResponseHook(f){this.onResponseHook=f}reply(f,h,m){if(m&&f.status(m),(0,t.isNil)(h))return f.send();if(h instanceof e.StreamableFile){const _=h.getHeaders();f.getHeader("Content-Type")===void 0&&_.type!==void 0&&f.setHeader("Content-Type",_.type),f.getHeader("Content-Disposition")===void 0&&_.disposition!==void 0&&f.setHeader("Content-Disposition",_.disposition),f.getHeader("Content-Length")===void 0&&_.length!==void 0&&f.setHeader("Content-Length",_.length);const g=h.getStream();return g.once("error",y=>{h.errorHandler(y,f)}),g.pipe(f).on("error",y=>h.errorLogger(y))}const v=f.getHeader("Content-Type");return typeof v=="string"&&!v.startsWith("application/json")&&h?.statusCode>=e.HttpStatus.BAD_REQUEST&&(this.logger.warn("Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses"),f.setHeader("Content-Type","application/json")),(0,t.isObject)(h)?f.json(h):f.send(String(h))}status(f,h){return f.status(h)}end(f,h){return f.end(h)}render(f,h,m){return f.render(h,m)}redirect(f,h,m){return f.redirect(h,m)}setErrorHandler(f,h){return this.use(f)}setNotFoundHandler(f,h){return this.use(f)}isHeadersSent(f){return f.headersSent}getHeader(f,h){return f.get(h)}setHeader(f,h,m){return f.set(h,m)}appendHeader(f,h,m){return f.append(h,m)}normalizePath(f){try{const h=o.LegacyRouteConverter.tryConvert(f);return(0,u.pathToRegexp)(h),h}catch(h){throw h instanceof TypeError&&o.LegacyRouteConverter.printError(f),h}}listen(f,...h){return this.httpServer.listen(f,...h)}close(){if(this.closeOpenConnections(),!!this.httpServer)return new Promise(f=>this.httpServer.close(f))}set(...f){return this.instance.set(...f)}enable(...f){return this.instance.enable(...f)}disable(...f){return this.instance.disable(...f)}engine(...f){return this.instance.engine(...f)}useStaticAssets(f,h){return h&&h.prefix?this.use(h.prefix,s.static(f,h)):this.use(s.static(f,h))}setBaseViewsDir(f){return this.set("views",f)}setViewEngine(f){return this.set("view engine",f)}getRequestHostname(f){return f.hostname}getRequestMethod(f){return f.method}getRequestUrl(f){return f.originalUrl}enableCors(f){return this.use(i(f))}createMiddlewareFactory(f){return(h,m)=>{try{const v=o.LegacyRouteConverter.tryConvert(h);return this.routerMethodFactory.get(this.instance,f).call(this.instance,v,m)}catch(v){throw v instanceof TypeError&&o.LegacyRouteConverter.printError(h),v}}}initHttpServer(f){f&&f.httpsOptions?this.httpServer=c.createServer(f.httpsOptions,this.getInstance()):this.httpServer=a.createServer(this.getInstance()),f?.forceCloseConnections&&this.trackOpenConnections()}registerParserMiddleware(f,h){const m=(0,p.getBodyParserOptions)(h),v=(0,p.getBodyParserOptions)(h,{extended:!0}),_={jsonParser:s.json(m),urlencodedParser:s.urlencoded(v)};Object.keys(_).filter(g=>!this.isMiddlewareApplied(g)).forEach(g=>this.use(_[g]))}useBodyParser(f,h,m){const v=(0,p.getBodyParserOptions)(h,m),_=s[f](v);return this.use(_),this}setLocal(f,h){return this.instance.locals[f]=h,this}getType(){return"express"}applyVersionFilter(f,h,m){const v=(_,g,y)=>{if(!y)throw new e.InternalServerErrorException("HTTP adapter does not support filtering on version");return y()};if(h===e.VERSION_NEUTRAL||m.type===e.VersioningType.URI)return(g,y,b)=>f(g,y,b);if(m.type===e.VersioningType.CUSTOM)return(g,y,b)=>{const E=m.extractor(g);if(Array.isArray(h)){if(Array.isArray(E)&&h.filter(x=>E.includes(x)).length||(0,t.isString)(E)&&h.includes(E))return f(g,y,b)}else if((0,t.isString)(h)&&(Array.isArray(E)&&E.includes(h)||(0,t.isString)(E)&&h===E))return f(g,y,b);return v(g,y,b)};if(m.type===e.VersioningType.MEDIA_TYPE)return(g,y,b)=>{const E="Accept",x=g.headers?.[E]||g.headers?.[E.toLowerCase()],O=x?x.split(";")[1]:void 0;if((0,t.isUndefined)(O)){if(Array.isArray(h)&&h.includes(e.VERSION_NEUTRAL))return f(g,y,b)}else{const S=O.split(m.key)[1];if(Array.isArray(h)){if(h.includes(S))return f(g,y,b)}else if((0,t.isString)(h)&&h===S)return f(g,y,b)}return v(g,y,b)};if(m.type===e.VersioningType.HEADER)return(g,y,b)=>{const E=g.headers?.[m.header]||g.headers?.[m.header.toLowerCase()];if((0,t.isUndefined)(E)){if(Array.isArray(h)&&h.includes(e.VERSION_NEUTRAL))return f(g,y,b)}else if(Array.isArray(h)){if(h.includes(E))return f(g,y,b)}else if((0,t.isString)(h)&&h===E)return f(g,y,b);return v(g,y,b)};throw new Error("Unsupported versioning options")}trackOpenConnections(){this.httpServer.on("connection",f=>{this.openConnections.add(f),f.on("close",()=>this.openConnections.delete(f))})}closeOpenConnections(){for(const f of this.openConnections)f.destroy(),this.openConnections.delete(f)}isMiddlewareApplied(f){const h=this.getInstance();return!!h.router&&!!h.router.stack&&(0,t.isFunction)(h.router.stack.filter)&&h.router.stack.some(m=>m&&m.handle&&m.handle.name===f)}}return Xu.ExpressAdapter=l,Xu}var fM;function q4(){return fM||(fM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(N4(),e)})(t_)),t_}var i_={},a_={},hM;function F4(){return hM||(hM=1,Object.defineProperty(a_,"__esModule",{value:!0})),a_}var o_={},vM;function k4(){return vM||(vM=1,Object.defineProperty(o_,"__esModule",{value:!0})),o_}var mM;function D4(){return mM||(mM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(F4(),e),t.__exportStar(k4(),e)})(i_)),i_}var s_={},c_={},Wd={},ei={exports:{}},dn={exports:{}},Zd={};var _M;function L4(){if(_M)return Zd;_M=1;var e=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,t=/^[\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,n=/\\([\u0000-\u007f])/g,o=/([\\"])/g,i=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,a=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Zd.format=c,Zd.parse=u;function c(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var h=f.parameters,m=f.subtype,v=f.suffix,_=f.type;if(!_||!s.test(_))throw new TypeError("invalid type");if(!m||!i.test(m))throw new TypeError("invalid subtype");var g=_+"/"+m;if(v){if(!s.test(v))throw new TypeError("invalid suffix");g+="+"+v}if(h&&typeof h=="object")for(var y,b=Object.keys(h).sort(),E=0;E<b.length;E++){if(y=b[E],!r.test(y))throw new TypeError("invalid parameter name");g+="; "+y+"="+l(h[y])}return g}function u(f){if(!f)throw new TypeError("argument string is required");if(typeof f=="object"&&(f=p(f)),typeof f!="string")throw new TypeError("argument string is required to be a string");var h=f.indexOf(";"),m=h!==-1?f.substr(0,h):f,v,_,g=d(m),y={},b;for(e.lastIndex=h;_=e.exec(f);){if(_.index!==h)throw new TypeError("invalid parameter format");h+=_[0].length,v=_[1].toLowerCase(),b=_[2],b[0]==='"'&&(b=b.substr(1,b.length-2).replace(n,"$1")),y[v]=b}if(h!==-1&&h!==f.length)throw new TypeError("invalid parameter format");return g.parameters=y,g}function p(f){if(typeof f.getHeader=="function")return f.getHeader("content-type");if(typeof f.headers=="object")return f.headers&&f.headers["content-type"]}function l(f){var h=String(f);if(r.test(h))return h;if(h.length>0&&!t.test(h))throw new TypeError("invalid parameter value");return'"'+h.replace(o,"\\$1")+'"'}function d(f){var h=a.exec(f.toLowerCase());if(!h)throw new TypeError("invalid media type");var m=h[1],v=h[2],_,g=v.lastIndexOf("+");g!==-1&&(_=v.substr(g+1),v=v.substr(0,g));var y={type:m,subtype:v,suffix:_};return y}return Zd}var u_={};const U4={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var l_,gM;function z4(){return gM||(gM=1,l_=U4),l_}var yM;function B4(){return yM||(yM=1,(function(e){var t=z4(),r=ir.extname,n=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=i,e.charsets={lookup:i},e.contentType=s,e.extension=a,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),u(e.extensions,e.types);function i(p){if(!p||typeof p!="string")return!1;var l=n.exec(p),d=l&&t[l[1].toLowerCase()];return d&&d.charset?d.charset:l&&o.test(l[1])?"UTF-8":!1}function s(p){if(!p||typeof p!="string")return!1;var l=p.indexOf("/")===-1?e.lookup(p):p;if(!l)return!1;if(l.indexOf("charset")===-1){var d=e.charset(l);d&&(l+="; charset="+d.toLowerCase())}return l}function a(p){if(!p||typeof p!="string")return!1;var l=n.exec(p),d=l&&e.extensions[l[1].toLowerCase()];return!d||!d.length?!1:d[0]}function c(p){if(!p||typeof p!="string")return!1;var l=r("x."+p).toLowerCase().substr(1);return l&&e.types[l]||!1}function u(p,l){var d=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(h){var m=t[h],v=m.extensions;if(!(!v||!v.length)){p[h]=v;for(var _=0;_<v.length;_++){var g=v[_];if(l[g]){var y=d.indexOf(t[l[g]].source),b=d.indexOf(m.source);if(l[g]!=="application/octet-stream"&&(y>b||y===b&&l[g].substr(0,12)==="application/"))continue}l[g]=h}}})}})(u_)),u_}var bM;function H4(){if(bM)return dn.exports;bM=1;var e=L4(),t=B4();dn.exports=o,dn.exports.is=r,dn.exports.hasBody=n,dn.exports.normalize=i,dn.exports.match=s;function r(u,p){var l,d=p,f=c(u);if(!f)return!1;if(d&&!Array.isArray(d))for(d=new Array(arguments.length-1),l=0;l<d.length;l++)d[l]=arguments[l+1];if(!d||!d.length)return f;var h;for(l=0;l<d.length;l++)if(s(i(h=d[l]),f))return h[0]==="+"||h.indexOf("*")!==-1?f:h;return!1}function n(u){return u.headers["transfer-encoding"]!==void 0||!isNaN(u.headers["content-length"])}function o(u,p){var l=p;if(!n(u))return null;if(arguments.length>2){l=new Array(arguments.length-1);for(var d=0;d<l.length;d++)l[d]=arguments[d+1]}var f=u.headers["content-type"];return r(f,l)}function i(u){if(typeof u!="string")return!1;switch(u){case"urlencoded":return"application/x-www-form-urlencoded";case"multipart":return"multipart/*"}return u[0]==="+"?"*/*"+u:u.indexOf("/")===-1?t.lookup(u):u}function s(u,p){if(u===!1)return!1;var l=p.split("/"),d=u.split("/");return l.length!==2||d.length!==2||d[0]!=="*"&&d[0]!==l[0]?!1:d[1].substr(0,2)==="*+"?d[1].length<=l[1].length+1&&d[1].substr(1)===l[1].substr(1-d[1].length):!(d[1]!=="*"&&d[1]!==l[1])}function a(u){var p=e.parse(u);return p.parameters=void 0,e.format(p)}function c(u){if(!u)return null;try{return a(u)}catch{return null}}return dn.exports}var d_,EM;function Cy(){if(EM)return d_;EM=1;function e(f){if(f.length===0)return;const h=Object.create(null);let m=0;for(;m<f.length;++m){const y=f.charCodeAt(m);if(c[y]!==1){if(y!==47||m===0)return;break}}if(m===f.length)return;const v=f.slice(0,m).toLowerCase(),_=++m;for(;m<f.length;++m){const y=f.charCodeAt(m);if(c[y]!==1){if(m===_||t(f,m,h)===void 0)return;break}}if(m===_)return;const g=f.slice(_,m).toLowerCase();return{type:v,subtype:g,params:h}}function t(f,h,m){for(;h<f.length;){for(;h<f.length;++h){const b=f.charCodeAt(h);if(b!==32&&b!==9)break}if(h===f.length)break;if(f.charCodeAt(h++)!==59)return;for(;h<f.length;++h){const b=f.charCodeAt(h);if(b!==32&&b!==9)break}if(h===f.length)return;let v;const _=h;for(;h<f.length;++h){const b=f.charCodeAt(h);if(c[b]!==1){if(b!==61)return;break}}if(h===f.length||(v=f.slice(_,h),++h,h===f.length))return;let g="",y;if(f.charCodeAt(h)===34){y=++h;let b=!1;for(;h<f.length;++h){const E=f.charCodeAt(h);if(E===92){b?(y=h,b=!1):(g+=f.slice(y,h),b=!0);continue}if(E===34){if(b){y=h,b=!1;continue}g+=f.slice(y,h);break}if(b&&(y=h-1,b=!1),u[E]!==1)return}if(h===f.length)return;++h}else{for(y=h;h<f.length;++h){const b=f.charCodeAt(h);if(c[b]!==1){if(h===y)return;break}}g=f.slice(y,h)}v=v.toLowerCase(),m[v]===void 0&&(m[v]=g)}return m}function r(f,h){if(f.length===0)return;const m=Object.create(null);let v=0;for(;v<f.length;++v){const g=f.charCodeAt(v);if(c[g]!==1){if(n(f,v,m,h)===void 0)return;break}}return{type:f.slice(0,v).toLowerCase(),params:m}}function n(f,h,m,v){for(;h<f.length;){for(;h<f.length;++h){const x=f.charCodeAt(h);if(x!==32&&x!==9)break}if(h===f.length)break;if(f.charCodeAt(h++)!==59)return;for(;h<f.length;++h){const x=f.charCodeAt(h);if(x!==32&&x!==9)break}if(h===f.length)return;let _;const g=h;for(;h<f.length;++h){const x=f.charCodeAt(h);if(c[x]!==1){if(x===61)break;return}}if(h===f.length)return;let y="",b,E;if(_=f.slice(g,h),_.charCodeAt(_.length-1)===42){const x=++h;for(;h<f.length;++h){const S=f.charCodeAt(h);if(p[S]!==1){if(S!==39)return;break}}if(h===f.length)return;for(E=f.slice(x,h),++h;h<f.length&&f.charCodeAt(h)!==39;++h);if(h===f.length||(++h,h===f.length))return;b=h;let O=0;for(;h<f.length;++h){const S=f.charCodeAt(h);if(l[S]!==1){if(S===37){let w,A;if(h+2<f.length&&(w=d[f.charCodeAt(h+1)])!==-1&&(A=d[f.charCodeAt(h+2)])!==-1){const P=(w<<4)+A;y+=f.slice(b,h),y+=String.fromCharCode(P),h+=2,b=h+1,P>=128?O=2:O===0&&(O=1);continue}return}break}}if(y+=f.slice(b,h),y=s(y,E,O),y===void 0)return}else{if(++h,h===f.length)return;if(f.charCodeAt(h)===34){b=++h;let x=!1;for(;h<f.length;++h){const O=f.charCodeAt(h);if(O===92){x?(b=h,x=!1):(y+=f.slice(b,h),x=!0);continue}if(O===34){if(x){b=h,x=!1;continue}y+=f.slice(b,h);break}if(x&&(b=h-1,x=!1),u[O]!==1)return}if(h===f.length)return;++h}else{for(b=h;h<f.length;++h){const x=f.charCodeAt(h);if(c[x]!==1){if(h===b)return;break}}y=f.slice(b,h)}if(y=v(y,2),y===void 0)return}_=_.toLowerCase(),m[_]===void 0&&(m[_]=y)}return m}function o(f){let h;for(;;)switch(f){case"utf-8":case"utf8":return i.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return i.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return i.utf16le;case"base64":return i.base64;default:if(h===void 0){h=!0,f=f.toLowerCase();continue}return i.other.bind(f)}}const i={utf8:(f,h)=>{if(f.length===0)return"";if(typeof f=="string"){if(h<2)return f;f=Buffer.from(f,"latin1")}return f.utf8Slice(0,f.length)},latin1:(f,h)=>f.length===0?"":typeof f=="string"?f:f.latin1Slice(0,f.length),utf16le:(f,h)=>f.length===0?"":(typeof f=="string"&&(f=Buffer.from(f,"latin1")),f.ucs2Slice(0,f.length)),base64:(f,h)=>f.length===0?"":(typeof f=="string"&&(f=Buffer.from(f,"latin1")),f.base64Slice(0,f.length)),other:(f,h)=>{if(f.length===0)return"";typeof f=="string"&&(f=Buffer.from(f,"latin1"));try{return new TextDecoder(this).decode(f)}catch{}}};function s(f,h,m){const v=o(h);if(v)return v(f,m)}function a(f){if(typeof f!="string")return"";for(let h=f.length-1;h>=0;--h)switch(f.charCodeAt(h)){case 47:case 92:return f=f.slice(h+1),f===".."||f==="."?"":f}return f===".."||f==="."?"":f}const c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];return d_={basename:a,convertToUTF8:s,getDecoder:o,parseContentType:e,parseDisposition:r},d_}var p_,xM;function V4(){if(xM)return p_;xM=1;function e(o,i,s,a,c){for(let u=0;u<c;++u)if(o[i+u]!==s[a+u])return!1;return!0}class t{constructor(i,s){if(typeof s!="function")throw new Error("Missing match callback");if(typeof i=="string")i=Buffer.from(i);else if(!Buffer.isBuffer(i))throw new Error(`Expected Buffer for needle, got ${typeof i}`);const a=i.length;if(this.maxMatches=1/0,this.matches=0,this._cb=s,this._lookbehindSize=0,this._needle=i,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(a),this._occ=[a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a],a>1)for(let c=0;c<a-1;++c)this._occ[i[c]]=a-1-c}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(i,s){let a;Buffer.isBuffer(i)||(i=Buffer.from(i,"latin1"));const c=i.length;for(this._bufPos=s||0;a!==c&&this.matches<this.maxMatches;)a=r(this,i);return a}destroy(){const i=this._lookbehindSize;i&&this._cb(!1,this._lookbehind,0,i,!1),this.reset()}}function r(o,i){const s=i.length,a=o._needle,c=a.length;let u=-o._lookbehindSize;const p=c-1,l=a[p],d=s-c,f=o._occ,h=o._lookbehind;if(u<0){for(;u<0&&u<=d;){const v=u+p,_=v<0?h[o._lookbehindSize+v]:i[v];if(_===l&&n(o,i,u,p))return o._lookbehindSize=0,++o.matches,u>-o._lookbehindSize?o._cb(!0,h,0,o._lookbehindSize+u,!1):o._cb(!0,void 0,0,0,!0),o._bufPos=u+c;u+=f[_]}for(;u<0&&!n(o,i,u,s-u);)++u;if(u<0){const v=o._lookbehindSize+u;return v>0&&o._cb(!1,h,0,v,!1),o._lookbehindSize-=v,h.copy(h,0,v,o._lookbehindSize),h.set(i,o._lookbehindSize),o._lookbehindSize+=s,o._bufPos=s,s}o._cb(!1,h,0,o._lookbehindSize,!1),o._lookbehindSize=0}u+=o._bufPos;const m=a[0];for(;u<=d;){const v=i[u+p];if(v===l&&i[u]===m&&e(a,0,i,u,p))return++o.matches,u>0?o._cb(!0,i,o._bufPos,u,!0):o._cb(!0,void 0,0,0,!0),o._bufPos=u+c;u+=f[v]}for(;u<s;){if(i[u]!==m||!e(i,u,a,0,s-u)){++u;continue}i.copy(h,0,u,s),o._lookbehindSize=s-u;break}return u>0&&o._cb(!1,i,o._bufPos,u<s?u:s,!0),o._bufPos=s,s}function n(o,i,s,a){const c=o._lookbehind,u=o._lookbehindSize,p=o._needle;for(let l=0;l<a;++l,++s)if((s<0?c[u+s]:i[s])!==p[l])return!1;return!0}return p_=t,p_}var f_,OM;function G4(){if(OM)return f_;OM=1;const{Readable:e,Writable:t}=mp,r=V4(),{basename:n,convertToUTF8:o,getDecoder:i,parseContentType:s,parseDisposition:a}=Cy(),c=Buffer.from(`\r
|
|
147
|
+
`),u=Buffer.from("\r"),p=Buffer.from("-");function l(){}const d=2e3,f=16*1024,h=0,m=1,v=2;class _{constructor(T){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=h,this.name="",this.value="",this.crlf=0,this.cb=T}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=h,this.name="",this.value="",this.crlf=0}push(T,q,D){let V=q;for(;q<D;)switch(this.state){case h:{let k=!1;for(;q<D;++q){if(this.byteCount===f)return-1;++this.byteCount;const F=T[q];if(w[F]!==1){if(F!==58||(this.name+=T.latin1Slice(V,q),this.name.length===0))return-1;++q,k=!0,this.state=m;break}}if(!k){this.name+=T.latin1Slice(V,q);break}}case m:{let k=!1;for(;q<D;++q){if(this.byteCount===f)return-1;++this.byteCount;const F=T[q];if(F!==32&&F!==9){V=q,k=!0,this.state=v;break}}if(!k)break}case v:switch(this.crlf){case 0:for(;q<D;++q){if(this.byteCount===f)return-1;++this.byteCount;const k=T[q];if(A[k]!==1){if(k!==13)return-1;++this.crlf;break}}this.value+=T.latin1Slice(V,q++);break;case 1:if(this.byteCount===f||(++this.byteCount,T[q++]!==10))return-1;++this.crlf;break;case 2:{if(this.byteCount===f)return-1;++this.byteCount;const k=T[q];k===32||k===9?(V=q,this.crlf=0):(++this.pairCount<d&&(this.name=this.name.toLowerCase(),this.header[this.name]===void 0?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),k===13?(++this.crlf,++q):(V=q,this.crlf=0,this.state=h,this.name="",this.value=""));break}case 3:{if(this.byteCount===f||(++this.byteCount,T[q++]!==10))return-1;const k=this.header;return this.reset(),this.cb(k),q}}break}return q}}class g extends e{constructor(T,q){super(T),this.truncated=!1,this._readcb=null,this.once("end",()=>{if(this._read(),--q._fileEndsLeft===0&&q._finalcb){const D=q._finalcb;q._finalcb=null,process.nextTick(D)}})}_read(T){const q=this._readcb;q&&(this._readcb=null,q())}}const y={push:(P,T)=>{},destroy:()=>{}};function b(P,T){const q=P._writecb;P._writecb=null,q&&q()}function E(P,T){return P}class x extends t{constructor(T){const q={autoDestroy:!0,emitClose:!0,highWaterMark:typeof T.highWaterMark=="number"?T.highWaterMark:void 0};if(super(q),!T.conType.params||typeof T.conType.params.boundary!="string")throw new Error("Multipart: Boundary not found");const D=T.conType.params.boundary,V=typeof T.defParamCharset=="string"&&T.defParamCharset?i(T.defParamCharset):E,k=T.defCharset||"utf8",F=T.preservePath,Z={autoDestroy:!0,emitClose:!0,highWaterMark:typeof T.fileHwm=="number"?T.fileHwm:void 0},J=T.limits,U=J&&typeof J.fieldSize=="number"?J.fieldSize:1*1024*1024,Q=J&&typeof J.fileSize=="number"?J.fileSize:1/0,C=J&&typeof J.files=="number"?J.files:1/0,N=J&&typeof J.fields=="number"?J.fields:1/0,L=J&&typeof J.parts=="number"?J.parts:1/0;let B=-1,M=0,j=0,z=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let Y=0,ee,R=0,I,W,$,oe,te=!1,le=!1,_e=!1;this._hparser=null;const be=new _(Ee=>{this._hparser=null,z=!1,$="text/plain",I=k,W="7bit",oe=void 0,te=!1;let Te;if(!Ee["content-disposition"]){z=!0;return}const me=a(Ee["content-disposition"][0],V);if(!me||me.type!=="form-data"){z=!0;return}if(me.params&&(me.params.name&&(oe=me.params.name),me.params["filename*"]?Te=me.params["filename*"]:me.params.filename&&(Te=me.params.filename),Te!==void 0&&!F&&(Te=n(Te))),Ee["content-type"]){const qe=s(Ee["content-type"][0]);qe&&($=`${qe.type}/${qe.subtype}`,qe.params&&typeof qe.params.charset=="string"&&(I=qe.params.charset.toLowerCase()))}if(Ee["content-transfer-encoding"]&&(W=Ee["content-transfer-encoding"][0].toLowerCase()),$==="application/octet-stream"||Te!==void 0){if(j===C){le||(le=!0,this.emit("filesLimit")),z=!0;return}if(++j,this.listenerCount("file")===0){z=!0;return}Y=0,this._fileStream=new g(Z,this),++this._fileEndsLeft,this.emit("file",oe,this._fileStream,{filename:Te,encoding:W,mimeType:$})}else{if(M===N){_e||(_e=!0,this.emit("fieldsLimit")),z=!0;return}if(++M,this.listenerCount("field")===0){z=!0;return}ee=[],R=0}});let Pe=0;const Re=(Ee,Te,me,qe,Ke)=>{e:for(;Te;){if(this._hparser!==null){const ye=this._hparser.push(Te,me,qe);if(ye===-1){this._hparser=null,be.reset(),this.emit("error",new Error("Malformed part header"));break}me=ye}if(me===qe)break;if(Pe!==0){if(Pe===1){switch(Te[me]){case 45:Pe=2,++me;break;case 13:Pe=3,++me;break;default:Pe=0}if(me===qe)return}if(Pe===2){if(Pe=0,Te[me]===45){this._complete=!0,this._bparser=y;return}const ye=this._writecb;this._writecb=l,Re(!1,p,0,1,!1),this._writecb=ye}else if(Pe===3)if(Pe=0,Te[me]===10){if(++me,B>=L||(this._hparser=be,me===qe))break;continue e}else{const ye=this._writecb;this._writecb=l,Re(!1,u,0,1,!1),this._writecb=ye}}if(!z){if(this._fileStream){let ye;const Ge=Math.min(qe-me,Q-Y);Ke?ye=Te.slice(me,me+Ge):(ye=Buffer.allocUnsafe(Ge),Te.copy(ye,0,me,me+Ge)),Y+=ye.length,Y===Q?(ye.length>0&&this._fileStream.push(ye),this._fileStream.emit("limit"),this._fileStream.truncated=!0,z=!0):this._fileStream.push(ye)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(ee!==void 0){let ye;const Ge=Math.min(qe-me,U-R);Ke?ye=Te.slice(me,me+Ge):(ye=Buffer.allocUnsafe(Ge),Te.copy(ye,0,me,me+Ge)),R+=Ge,ee.push(ye),R===U&&(z=!0,te=!0)}}break}if(Ee){if(Pe=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(ee!==void 0){let ye;switch(ee.length){case 0:ye="";break;case 1:ye=o(ee[0],I,0);break;default:ye=o(Buffer.concat(ee,R),I,0)}ee=void 0,R=0,this.emit("field",oe,ye,{nameTruncated:!1,valueTruncated:te,encoding:W,mimeType:$})}++B===L&&this.emit("partsLimit")}};this._bparser=new r(`\r
|
|
148
|
+
--${D}`,Re),this._writecb=null,this._finalcb=null,this.write(c)}static detect(T){return T.type==="multipart"&&T.subtype==="form-data"}_write(T,q,D){this._writecb=D,this._bparser.push(T,0),this._writecb&&b(this)}_destroy(T,q){this._hparser=null,this._bparser=y,T||(T=S(this));const D=this._fileStream;D&&(this._fileStream=null,D.destroy(T)),q(T)}_final(T){if(this._bparser.destroy(),!this._complete)return T(new Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=O.bind(null,this,T):O(this,T)}}function O(P,T,q){if(q)return T(q);q=S(P),T(q)}function S(P){if(P._hparser)return new Error("Malformed part header");const T=P._fileStream;if(T&&(P._fileStream=null,T.destroy(new Error("Unexpected end of file"))),!P._complete)return new Error("Unexpected end of form")}const w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],A=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];return f_=x,f_}var h_,wM;function W4(){if(wM)return h_;wM=1;const{Writable:e}=mp,{getDecoder:t}=Cy();class r extends e{constructor(c){const u={autoDestroy:!0,emitClose:!0,highWaterMark:typeof c.highWaterMark=="number"?c.highWaterMark:void 0};super(u);let p=c.defCharset||"utf8";c.conType.params&&typeof c.conType.params.charset=="string"&&(p=c.conType.params.charset),this.charset=p;const l=c.limits;this.fieldSizeLimit=l&&typeof l.fieldSize=="number"?l.fieldSize:1*1024*1024,this.fieldsLimit=l&&typeof l.fields=="number"?l.fields:1/0,this.fieldNameSizeLimit=l&&typeof l.fieldNameSize=="number"?l.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=t(p)}static detect(c){return c.type==="application"&&c.subtype==="x-www-form-urlencoded"}_write(c,u,p){if(this._fields>=this.fieldsLimit)return p();let l=0;const d=c.length;if(this._lastPos=0,this._byte!==-2){if(l=n(this,c,l,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;l<d;)if(this._inKey){for(l=o(this,c,l,d);l<d;){switch(c[l]){case 61:this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),p();continue;case 43:this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._key+=" ",this._lastPos=l+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=l+1,this._byte=-1,l=n(this,c,l+1,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();++this._bytesKey,l=o(this,c,l,d);continue}++l,++this._bytesKey,l=o(this,c,l,d)}this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l))}else{for(l=i(this,c,l,d);l<d;){switch(c[l]){case 38:if(this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),p();continue e;case 43:this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._val+=" ",this._lastPos=l+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._lastPos=l+1,this._byte=-1,l=n(this,c,l+1,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();++this._bytesVal,l=i(this,c,l,d);continue}++l,++this._bytesVal,l=i(this,c,l,d)}this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l))}p()}_final(c){if(this._byte!==-2)return c(new Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),c()}}function n(a,c,u,p){if(u>=p)return p;if(a._byte===-1){const l=s[c[u++]];if(l===-1)return-1;if(l>=8&&(a._encode=2),u<p){const d=s[c[u++]];if(d===-1)return-1;a._inKey?a._key+=String.fromCharCode((l<<4)+d):a._val+=String.fromCharCode((l<<4)+d),a._byte=-2,a._lastPos=u}else a._byte=l}else{const l=s[c[u++]];if(l===-1)return-1;a._inKey?a._key+=String.fromCharCode((a._byte<<4)+l):a._val+=String.fromCharCode((a._byte<<4)+l),a._byte=-2,a._lastPos=u}return u}function o(a,c,u,p){if(a._bytesKey>a.fieldNameSizeLimit){for(a._keyTrunc||a._lastPos<u&&(a._key+=c.latin1Slice(a._lastPos,u-1)),a._keyTrunc=!0;u<p;++u){const l=c[u];if(l===61||l===38)break;++a._bytesKey}a._lastPos=u}return u}function i(a,c,u,p){if(a._bytesVal>a.fieldSizeLimit){for(a._valTrunc||a._lastPos<u&&(a._val+=c.latin1Slice(a._lastPos,u-1)),a._valTrunc=!0;u<p&&c[u]!==38;++u)++a._bytesVal;a._lastPos=u}return u}const s=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];return h_=r,h_}var v_,SM;function Z4(){if(SM)return v_;SM=1;const{parseContentType:e}=Cy();function t(n){const o=n.headers,i=e(o["content-type"]);if(!i)throw new Error("Malformed content type");for(const s of r){if(!s.detect(i))continue;const c={limits:n.limits,headers:o,conType:i,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return n.highWaterMark&&(c.highWaterMark=n.highWaterMark),n.fileHwm&&(c.fileHwm=n.fileHwm),c.defCharset=n.defCharset,c.defParamCharset=n.defParamCharset,c.preservePath=n.preservePath,new s(c)}throw new Error(`Unsupported content type: ${o["content-type"]}`)}const r=[G4(),W4()].filter(function(n){return typeof n.detect=="function"});return v_=n=>{if((typeof n!="object"||n===null)&&(n={}),typeof n.headers!="object"||n.headers===null||typeof n.headers["content-type"]!="string")throw new Error("Missing Content-Type");return t(n)},v_}var m_,PM;function K4(){if(PM)return m_;PM=1;var e=/^[^\[]*/,t=/^\[(\d+)\]/,r=/^\[([^\]]+)\]/;function n(o){function i(){return[{type:"object",key:o,last:!0}]}var s=e.exec(o)[0];if(!s)return i();for(var a=o.length,c=s.length,u={type:"object",key:s},p=[u];c<a;){var l;if(o[c]==="["&&o[c+1]==="]"){if(c+=2,u.append=!0,c!==a)return i();continue}if(l=t.exec(o.substring(c)),l!==null){c+=l[0].length,u.nextType="array",u={type:"array",key:parseInt(l[1],10)},p.push(u);continue}if(l=r.exec(o.substring(c)),l!==null){c+=l[0].length,u.nextType="object",u={type:"object",key:l[1]},p.push(u);continue}return i()}return u.last=!0,p}return m_=n,m_}var __,TM;function Y4(){if(TM)return __;TM=1;function e(n){return n===void 0?"undefined":Array.isArray(n)?"array":typeof n=="object"?"object":"scalar"}function t(n,o,i,s){switch(e(i)){case"undefined":o.append?n[o.key]=[s]:n[o.key]=s;break;case"array":n[o.key].push(s);break;case"object":return t(i,{key:""},i[""],s);case"scalar":n[o.key]=[n[o.key],s];break}return n}function r(n,o,i,s){if(o.last)return t(n,o,i,s);var a;switch(e(i)){case"undefined":return o.nextType==="array"?n[o.key]=[]:n[o.key]=Object.create(null),n[o.key];case"object":return n[o.key];case"array":return o.nextType==="array"?i:(a=Object.create(null),n[o.key]=a,i.forEach(function(c,u){c!==void 0&&(a[""+u]=c)}),a);case"scalar":return a=Object.create(null),a[""]=i,n[o.key]=a,a}}return __=r,__}var g_,AM;function X4(){if(AM)return g_;AM=1;var e=K4(),t=Y4();function r(n,o,i){var s=e(o);s.reduce(function(a,c){return t(a,c,a[c.key],i)},n)}return g_=r,g_}var y_,RM;function J4(){if(RM)return y_;RM=1;var e=dg.EventEmitter;function t(){e.call(this),this.value=0}return t.prototype=Object.create(e.prototype),t.prototype.increment=function(){this.value++},t.prototype.decrement=function(){--this.value===0&&this.emit("zero")},t.prototype.isZero=function(){return this.value===0},t.prototype.onceZero=function(n){if(this.isZero())return n();this.once("zero",n)},y_=t,y_}var b_,MM;function tF(){if(MM)return b_;MM=1;var e=ui,t={LIMIT_PART_COUNT:"Too many parts",LIMIT_FILE_SIZE:"File too large",LIMIT_FILE_COUNT:"Too many files",LIMIT_FIELD_KEY:"Field name too long",LIMIT_FIELD_VALUE:"Field value too long",LIMIT_FIELD_COUNT:"Too many fields",LIMIT_UNEXPECTED_FILE:"Unexpected field",MISSING_FIELD_NAME:"Field name missing"};function r(n,o){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t[n],this.code=n,o&&(this.field=o)}return e.inherits(r,Error),b_=r,b_}var E_,IM;function Q4(){if(IM)return E_;IM=1;function e(r,n){var o=r.indexOf(n);~o&&r.splice(o,1)}function t(r,n){switch(this.strategy=r,this.req=n,r){case"NONE":break;case"VALUE":break;case"ARRAY":n.files=[];break;case"OBJECT":n.files=Object.create(null);break;default:throw new Error("Unknown file strategy: "+r)}}return t.prototype.insertPlaceholder=function(r){var n={fieldname:r.fieldname};switch(this.strategy){case"NONE":break;case"VALUE":break;case"ARRAY":this.req.files.push(n);break;case"OBJECT":this.req.files[r.fieldname]?this.req.files[r.fieldname].push(n):this.req.files[r.fieldname]=[n];break}return n},t.prototype.removePlaceholder=function(r){switch(this.strategy){case"NONE":break;case"VALUE":break;case"ARRAY":e(this.req.files,r);break;case"OBJECT":this.req.files[r.fieldname].length===1?delete this.req.files[r.fieldname]:e(this.req.files[r.fieldname],r);break}},t.prototype.replacePlaceholder=function(r,n){if(this.strategy==="VALUE"){this.req.file=n;return}delete r.fieldname,Object.assign(r,n)},E_=t,E_}var x_,CM;function $4(){if(CM)return x_;CM=1;function e(t,r,n){var o=t.length,i=[];if(o===0)return n(null,i);function s(a){var c=t[a];r(c,function(u){u&&(u.file=c,u.field=c.fieldname,i.push(u)),a<o-1?setImmediate(function(){s(a+1)}):n(null,i)})}s(0)}return x_=e,x_}var O_,jM;function eK(){if(jM)return O_;jM=1;var e=H4(),t=Z4(),r=X4(),n=J4(),o=tF(),i=Q4(),s=$4();function a(u){u.on("readable",()=>{for(;u.read()!==null;);})}function c(u){return function(l,d,f){if(!e(l,["multipart"]))return f();var h=u(),m=h.limits,v=h.storage,_=h.fileFilter,g=h.fileStrategy,y=h.preservePath,b=h.defParamCharset;l.body=Object.create(null);var E,x=null,O=!1,S=!1,w=!1,A=new n,P=[];function T(F){var Z=!1;function J(){Z||(Z=!0,f(F))}if(!O){if(O=!0,E&&(l.unpipe(E),setImmediate(()=>{E.removeAllListeners()})),a(l),l.resume(),F&&l.readable&&!l.destroyed){l.once("end",J),l.once("error",J),l.once("close",J);return}f(F)}}function q(){S&&A.isZero()&&!w&&T()}function D(F,Z){if(w)return;w=!0;function J(){function U(Q,C){v._removeFile(l,Q,C)}s(P,U,function(Q,C){if(Q)return T(Q);F.storageErrors=C,T(F)})}Z?J():A.onceZero(J)}function V(F,Z){D(new o(F,Z))}function k(F){O||(E&&(l.unpipe(E),E.destroy(F)),D(F,!0))}l.on("error",function(F){k(F||new Error("Request error"))}),l.on("aborted",function(){k(new Error("Request aborted"))}),l.on("close",function(){l.readableEnded||k(new Error("Request closed"))});try{E=t({headers:l.headers,limits:m,preservePath:y,defParamCharset:b})}catch(F){return f(F)}x=new i(g,l),E.on("field",function(F,Z,{nameTruncated:J,valueTruncated:U}){if(F==null)return V("MISSING_FIELD_NAME");if(J)return V("LIMIT_FIELD_KEY");if(U)return V("LIMIT_FIELD_VALUE",F);if(m&&Object.prototype.hasOwnProperty.call(m,"fieldNameSize")&&F.length>m.fieldNameSize)return V("LIMIT_FIELD_KEY");r(l.body,F,Z)}),E.on("file",function(F,Z,{filename:J,encoding:U,mimeType:Q}){var C=!1;if(Z.on("error",function(B){C&&A.decrement(),D(B)}),F==null)return V("MISSING_FIELD_NAME");if(!J)return Z.resume();if(m&&Object.prototype.hasOwnProperty.call(m,"fieldNameSize")&&F.length>m.fieldNameSize)return V("LIMIT_FIELD_KEY");var N={fieldname:F,originalname:J,encoding:U,mimetype:Q},L=x.insertPlaceholder(N);_(l,N,function(B,M){if(w)return x.removePlaceholder(L),Z.resume();if(B)return x.removePlaceholder(L),D(B);if(!M)return x.removePlaceholder(L),Z.resume();var j=!1;C=!0,A.increment(),Object.defineProperty(N,"stream",{configurable:!0,enumerable:!1,value:Z}),Z.on("limit",function(){j=!0,V("LIMIT_FILE_SIZE",F)}),v._handleFile(l,N,function(z,Y){if(j)return x.removePlaceholder(L),P.push({...N,...Y}),A.decrement();if(z)return x.removePlaceholder(L),A.decrement(),D(z);var ee={...N,...Y};x.replacePlaceholder(L,ee),P.push(ee),A.decrement(),q()})})}),E.on("error",function(F){D(F)}),E.on("partsLimit",function(){V("LIMIT_PART_COUNT")}),E.on("filesLimit",function(){V("LIMIT_FILE_COUNT")}),E.on("fieldsLimit",function(){V("LIMIT_FIELD_COUNT")}),E.on("close",function(){S=!0,q()}),l.pipe(E)}}return O_=c,O_}var w_,NM;function tK(){if(NM)return w_;NM=1;var e=El,t=vp,r=ir,n=ci;function o(a,c,u){n.randomBytes(16,function(p,l){u(p,p?void 0:l.toString("hex"))})}function i(a,c,u){u(null,t.tmpdir())}function s(a){this.getFilename=a.filename||o,typeof a.destination=="string"?(e.mkdirSync(a.destination,{recursive:!0}),this.getDestination=function(c,u,p){p(null,a.destination)}):this.getDestination=a.destination||i}return s.prototype._handleFile=function(c,u,p){var l=this;l.getDestination(c,u,function(d,f){if(d)return p(d);l.getFilename(c,u,function(h,m){if(h)return p(h);var v=r.join(f,m),_=e.createWriteStream(v);u.stream.pipe(_),_.on("error",p),_.on("finish",function(){p(null,{destination:f,filename:m,path:v,size:_.bytesWritten})})})})},s.prototype._removeFile=function(c,u,p){var l=u.path;delete u.destination,delete u.filename,delete u.path,e.unlink(l,p)},w_=function(a){return new s(a)},w_}var Kd={exports:{}},S_,qM;function rF(){return qM||(qM=1,S_=dg.EventEmitter),S_}var P_,FM;function rK(){if(FM)return P_;FM=1;function e(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);m&&(_=_.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,_)}return v}function t(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?e(Object(v),!0).forEach(function(_){r(h,_,v[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):e(Object(v)).forEach(function(_){Object.defineProperty(h,_,Object.getOwnPropertyDescriptor(v,_))})}return h}function r(h,m,v){return m=s(m),m in h?Object.defineProperty(h,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[m]=v,h}function n(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function o(h,m){for(var v=0;v<m.length;v++){var _=m[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,s(_.key),_)}}function i(h,m,v){return m&&o(h.prototype,m),Object.defineProperty(h,"prototype",{writable:!1}),h}function s(h){var m=a(h,"string");return typeof m=="symbol"?m:String(m)}function a(h,m){if(typeof h!="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var _=v.call(h,m);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}var c=_p,u=c.Buffer,p=ui,l=p.inspect,d=l&&l.custom||"inspect";function f(h,m,v){u.prototype.copy.call(h,m,v)}return P_=(function(){function h(){n(this,h),this.head=null,this.tail=null,this.length=0}return i(h,[{key:"push",value:function(v){var _={data:v,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length}},{key:"unshift",value:function(v){var _={data:v,next:this.head};this.length===0&&(this.tail=_),this.head=_,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var _=this.head,g=""+_.data;_=_.next;)g+=v+_.data;return g}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var _=u.allocUnsafe(v>>>0),g=this.head,y=0;g;)f(g.data,_,y),y+=g.data.length,g=g.next;return _}},{key:"consume",value:function(v,_){var g;return v<this.head.data.length?(g=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?g=this.shift():g=_?this._getString(v):this._getBuffer(v),g}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var _=this.head,g=1,y=_.data;for(v-=y.length;_=_.next;){var b=_.data,E=v>b.length?b.length:v;if(E===b.length?y+=b:y+=b.slice(0,v),v-=E,v===0){E===b.length?(++g,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=b.slice(E));break}++g}return this.length-=g,y}},{key:"_getBuffer",value:function(v){var _=u.allocUnsafe(v),g=this.head,y=1;for(g.data.copy(_),v-=g.data.length;g=g.next;){var b=g.data,E=v>b.length?b.length:v;if(b.copy(_,_.length-v,0,E),v-=E,v===0){E===b.length?(++y,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=b.slice(E));break}++y}return this.length-=y,_}},{key:d,value:function(v,_){return l(this,t(t({},_),{},{depth:0,customInspect:!1}))}}]),h})(),P_}var T_,kM;function nF(){if(kM)return T_;kM=1;function e(s,a){var c=this,u=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return u||p?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,s)):process.nextTick(o,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(l){!a&&l?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,l)):process.nextTick(t,c,l):a?(process.nextTick(r,c),a(l)):process.nextTick(r,c)}),this)}function t(s,a){o(s,a),r(s)}function r(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(s,a){s.emit("error",a)}function i(s,a){var c=s._readableState,u=s._writableState;c&&c.autoDestroy||u&&u.autoDestroy?s.destroy(a):s.emit("error",a)}return T_={destroy:e,undestroy:n,errorOrDestroy:i},T_}var A_={},DM;function gi(){if(DM)return A_;DM=1;function e(a,c){a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.__proto__=c}var t={};function r(a,c,u){u||(u=Error);function p(d,f,h){return typeof c=="string"?c:c(d,f,h)}var l=(function(d){e(f,d);function f(h,m,v){return d.call(this,p(h,m,v))||this}return f})(u);l.prototype.name=u.name,l.prototype.code=a,t[a]=l}function n(a,c){if(Array.isArray(a)){var u=a.length;return a=a.map(function(p){return String(p)}),u>2?"one of ".concat(c," ").concat(a.slice(0,u-1).join(", "),", or ")+a[u-1]:u===2?"one of ".concat(c," ").concat(a[0]," or ").concat(a[1]):"of ".concat(c," ").concat(a[0])}else return"of ".concat(c," ").concat(String(a))}function o(a,c,u){return a.substr(0,c.length)===c}function i(a,c,u){return(u===void 0||u>a.length)&&(u=a.length),a.substring(u-c.length,u)===c}function s(a,c,u){return typeof u!="number"&&(u=0),u+c.length>a.length?!1:a.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(a,c){return'The value "'+c+'" is invalid for option "'+a+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(a,c,u){var p;typeof c=="string"&&o(c,"not ")?(p="must not be",c=c.replace(/^not /,"")):p="must be";var l;if(i(a," argument"))l="The ".concat(a," ").concat(p," ").concat(n(c,"type"));else{var d=s(a,".")?"property":"argument";l='The "'.concat(a,'" ').concat(d," ").concat(p," ").concat(n(c,"type"))}return l+=". Received type ".concat(typeof u),l},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),A_.codes=t,A_}var R_,LM;function iF(){if(LM)return R_;LM=1;var e=gi().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,s){var a=t(o,s,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var c=s?i:"highWaterMark";throw new e(c,a)}return Math.floor(a)}return n.objectMode?16:16*1024}return R_={getHighWaterMark:r},R_}var Yd={exports:{}},UM;function yi(){return UM||(UM=1,typeof Object.create=="function"?Yd.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yd.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Yd.exports}var M_,zM;function nK(){if(zM)return M_;zM=1,M_=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!ft.localStorage)return!1}catch{return!1}var n=ft.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return M_}var I_,BM;function aF(){if(BM)return I_;BM=1,I_=S;function e(M){var j=this;this.next=null,this.entry=null,this.finish=function(){B(j,M)}}var t;S.WritableState=x;var r={deprecate:nK()},n=rF(),o=_p.Buffer,i=(typeof ft<"u"?ft:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(M){return o.from(M)}function a(M){return o.isBuffer(M)||M instanceof i}var c=nF(),u=iF(),p=u.getHighWaterMark,l=gi().codes,d=l.ERR_INVALID_ARG_TYPE,f=l.ERR_METHOD_NOT_IMPLEMENTED,h=l.ERR_MULTIPLE_CALLBACK,m=l.ERR_STREAM_CANNOT_PIPE,v=l.ERR_STREAM_DESTROYED,_=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,y=l.ERR_UNKNOWN_ENCODING,b=c.errorOrDestroy;yi()(S,n);function E(){}function x(M,j,z){t=t||si(),M=M||{},typeof z!="boolean"&&(z=j instanceof t),this.objectMode=!!M.objectMode,z&&(this.objectMode=this.objectMode||!!M.writableObjectMode),this.highWaterMark=p(this,M,"writableHighWaterMark",z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Y=M.decodeStrings===!1;this.decodeStrings=!Y,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ee){k(j,ee)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}x.prototype.getBuffer=function(){for(var j=this.bufferedRequest,z=[];j;)z.push(j),j=j.next;return z},(function(){try{Object.defineProperty(x.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(j){return O.call(this,j)?!0:this!==S?!1:j&&j._writableState instanceof x}})):O=function(j){return j instanceof this};function S(M){t=t||si();var j=this instanceof t;if(!j&&!O.call(S,this))return new S(M);this._writableState=new x(M,this,j),this.writable=!0,M&&(typeof M.write=="function"&&(this._write=M.write),typeof M.writev=="function"&&(this._writev=M.writev),typeof M.destroy=="function"&&(this._destroy=M.destroy),typeof M.final=="function"&&(this._final=M.final)),n.call(this)}S.prototype.pipe=function(){b(this,new m)};function w(M,j){var z=new g;b(M,z),process.nextTick(j,z)}function A(M,j,z,Y){var ee;return z===null?ee=new _:typeof z!="string"&&!j.objectMode&&(ee=new d("chunk",["string","Buffer"],z)),ee?(b(M,ee),process.nextTick(Y,ee),!1):!0}S.prototype.write=function(M,j,z){var Y=this._writableState,ee=!1,R=!Y.objectMode&&a(M);return R&&!o.isBuffer(M)&&(M=s(M)),typeof j=="function"&&(z=j,j=null),R?j="buffer":j||(j=Y.defaultEncoding),typeof z!="function"&&(z=E),Y.ending?w(this,z):(R||A(this,Y,M,z))&&(Y.pendingcb++,ee=T(this,Y,R,M,j,z)),ee},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,!M.writing&&!M.corked&&!M.bufferProcessing&&M.bufferedRequest&&J(this,M))},S.prototype.setDefaultEncoding=function(j){if(typeof j=="string"&&(j=j.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j+"").toLowerCase())>-1))throw new y(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function P(M,j,z){return!M.objectMode&&M.decodeStrings!==!1&&typeof j=="string"&&(j=o.from(j,z)),j}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(M,j,z,Y,ee,R){if(!z){var I=P(j,Y,ee);Y!==I&&(z=!0,ee="buffer",Y=I)}var W=j.objectMode?1:Y.length;j.length+=W;var $=j.length<j.highWaterMark;if($||(j.needDrain=!0),j.writing||j.corked){var oe=j.lastBufferedRequest;j.lastBufferedRequest={chunk:Y,encoding:ee,isBuf:z,callback:R,next:null},oe?oe.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else q(M,j,!1,W,Y,ee,R);return $}function q(M,j,z,Y,ee,R,I){j.writelen=Y,j.writecb=I,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new v("write")):z?M._writev(ee,j.onwrite):M._write(ee,R,j.onwrite),j.sync=!1}function D(M,j,z,Y,ee){--j.pendingcb,z?(process.nextTick(ee,Y),process.nextTick(N,M,j),M._writableState.errorEmitted=!0,b(M,Y)):(ee(Y),M._writableState.errorEmitted=!0,b(M,Y),N(M,j))}function V(M){M.writing=!1,M.writecb=null,M.length-=M.writelen,M.writelen=0}function k(M,j){var z=M._writableState,Y=z.sync,ee=z.writecb;if(typeof ee!="function")throw new h;if(V(z),j)D(M,z,Y,j,ee);else{var R=U(z)||M.destroyed;!R&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&J(M,z),Y?process.nextTick(F,M,z,R,ee):F(M,z,R,ee)}}function F(M,j,z,Y){z||Z(M,j),j.pendingcb--,Y(),N(M,j)}function Z(M,j){j.length===0&&j.needDrain&&(j.needDrain=!1,M.emit("drain"))}function J(M,j){j.bufferProcessing=!0;var z=j.bufferedRequest;if(M._writev&&z&&z.next){var Y=j.bufferedRequestCount,ee=new Array(Y),R=j.corkedRequestsFree;R.entry=z;for(var I=0,W=!0;z;)ee[I]=z,z.isBuf||(W=!1),z=z.next,I+=1;ee.allBuffers=W,q(M,j,!0,j.length,ee,"",R.finish),j.pendingcb++,j.lastBufferedRequest=null,R.next?(j.corkedRequestsFree=R.next,R.next=null):j.corkedRequestsFree=new e(j),j.bufferedRequestCount=0}else{for(;z;){var $=z.chunk,oe=z.encoding,te=z.callback,le=j.objectMode?1:$.length;if(q(M,j,!1,le,$,oe,te),z=z.next,j.bufferedRequestCount--,j.writing)break}z===null&&(j.lastBufferedRequest=null)}j.bufferedRequest=z,j.bufferProcessing=!1}S.prototype._write=function(M,j,z){z(new f("_write()"))},S.prototype._writev=null,S.prototype.end=function(M,j,z){var Y=this._writableState;return typeof M=="function"?(z=M,M=null,j=null):typeof j=="function"&&(z=j,j=null),M!=null&&this.write(M,j),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||L(this,Y,z),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function U(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function Q(M,j){M._final(function(z){j.pendingcb--,z&&b(M,z),j.prefinished=!0,M.emit("prefinish"),N(M,j)})}function C(M,j){!j.prefinished&&!j.finalCalled&&(typeof M._final=="function"&&!j.destroyed?(j.pendingcb++,j.finalCalled=!0,process.nextTick(Q,M,j)):(j.prefinished=!0,M.emit("prefinish")))}function N(M,j){var z=U(j);if(z&&(C(M,j),j.pendingcb===0&&(j.finished=!0,M.emit("finish"),j.autoDestroy))){var Y=M._readableState;(!Y||Y.autoDestroy&&Y.endEmitted)&&M.destroy()}return z}function L(M,j,z){j.ending=!0,N(M,j),z&&(j.finished?process.nextTick(z):M.once("finish",z)),j.ended=!0,M.writable=!1}function B(M,j,z){var Y=M.entry;for(M.entry=null;Y;){var ee=Y.callback;j.pendingcb--,ee(z),Y=Y.next}j.corkedRequestsFree.next=M}return Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(M,j){j(M)},I_}var C_,HM;function si(){if(HM)return C_;HM=1;var e=Object.keys||function(u){var p=[];for(var l in u)p.push(l);return p};C_=s;var t=oF(),r=aF();yi()(s,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];s.prototype[i]||(s.prototype[i]=r.prototype[i])}function s(u){if(!(this instanceof s))return new s(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",a)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function a(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),C_}var j_={},Xd={exports:{}};var VM;function iK(){return VM||(VM=1,(function(e,t){var r=_p,n=r.Buffer;function o(s,a){for(var c in s)a[c]=s[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(s,a,c){return n(s,a,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(s,a,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,a,c)},i.alloc=function(s,a,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=n(s);return a!==void 0?typeof c=="string"?u.fill(a,c):u.fill(a):u.fill(0),u},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(Xd,Xd.exports)),Xd.exports}var GM;function WM(){if(GM)return j_;GM=1;var e=iK().Buffer,t=e.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(_){if(!_)return"utf8";for(var g;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(g)return;_=(""+_).toLowerCase(),g=!0}}function n(_){var g=r(_);if(typeof g!="string"&&(e.isEncoding===t||!t(_)))throw new Error("Unknown encoding: "+_);return g||_}j_.StringDecoder=o;function o(_){this.encoding=n(_);var g;switch(this.encoding){case"utf16le":this.text=l,this.end=d,g=4;break;case"utf8":this.fillLast=c,g=4;break;case"base64":this.text=f,this.end=h,g=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(g)}o.prototype.write=function(_){if(_.length===0)return"";var g,y;if(this.lastNeed){if(g=this.fillLast(_),g===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<_.length?g?g+this.text(_,y):this.text(_,y):g||""},o.prototype.end=p,o.prototype.text=u,o.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function i(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function s(_,g,y){var b=g.length-1;if(b<y)return 0;var E=i(g[b]);return E>=0?(E>0&&(_.lastNeed=E-1),E):--b<y||E===-2?0:(E=i(g[b]),E>=0?(E>0&&(_.lastNeed=E-2),E):--b<y||E===-2?0:(E=i(g[b]),E>=0?(E>0&&(E===2?E=0:_.lastNeed=E-3),E):0))}function a(_,g,y){if((g[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return _.lastNeed=2,"�"}}function c(_){var g=this.lastTotal-this.lastNeed,y=a(this,_);if(y!==void 0)return y;if(this.lastNeed<=_.length)return _.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,g,0,_.length),this.lastNeed-=_.length}function u(_,g){var y=s(this,_,g);if(!this.lastNeed)return _.toString("utf8",g);this.lastTotal=y;var b=_.length-(y-this.lastNeed);return _.copy(this.lastChar,0,b),_.toString("utf8",g,b)}function p(_){var g=_&&_.length?this.write(_):"";return this.lastNeed?g+"�":g}function l(_,g){if((_.length-g)%2===0){var y=_.toString("utf16le",g);if(y){var b=y.charCodeAt(y.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",g,_.length-1)}function d(_){var g=_&&_.length?this.write(_):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,y)}return g}function f(_,g){var y=(_.length-g)%3;return y===0?_.toString("base64",g):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",g,_.length-y))}function h(_){var g=_&&_.length?this.write(_):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function m(_){return _.toString(this.encoding)}function v(_){return _&&_.length?this.write(_):""}return j_}var N_,ZM;function jy(){if(ZM)return N_;ZM=1;var e=gi().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var s=!1;return function(){if(!s){s=!0;for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,s,a){if(typeof s=="function")return o(i,null,s);s||(s={}),a=t(a||r);var c=s.readable||s.readable!==!1&&i.readable,u=s.writable||s.writable!==!1&&i.writable,p=function(){i.writable||d()},l=i._writableState&&i._writableState.finished,d=function(){u=!1,l=!0,c||a.call(i)},f=i._readableState&&i._readableState.endEmitted,h=function(){c=!1,f=!0,u||a.call(i)},m=function(y){a.call(i,y)},v=function(){var y;if(c&&!f)return(!i._readableState||!i._readableState.ended)&&(y=new e),a.call(i,y);if(u&&!l)return(!i._writableState||!i._writableState.ended)&&(y=new e),a.call(i,y)},_=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",v),i.req?_():i.on("request",_)):u&&!i._writableState&&(i.on("end",p),i.on("close",p)),i.on("end",h),i.on("finish",d),s.error!==!1&&i.on("error",m),i.on("close",v),function(){i.removeListener("complete",d),i.removeListener("abort",v),i.removeListener("request",_),i.req&&i.req.removeListener("finish",d),i.removeListener("end",p),i.removeListener("close",p),i.removeListener("finish",d),i.removeListener("end",h),i.removeListener("error",m),i.removeListener("close",v)}}return N_=o,N_}var q_,KM;function aK(){if(KM)return q_;KM=1;var e;function t(y,b,E){return b=r(b),b in y?Object.defineProperty(y,b,{value:E,enumerable:!0,configurable:!0,writable:!0}):y[b]=E,y}function r(y){var b=n(y,"string");return typeof b=="symbol"?b:String(b)}function n(y,b){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var x=E.call(y,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}var o=jy(),i=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),l=Symbol("stream");function d(y,b){return{value:y,done:b}}function f(y){var b=y[i];if(b!==null){var E=y[l].read();E!==null&&(y[u]=null,y[i]=null,y[s]=null,b(d(E,!1)))}}function h(y){process.nextTick(f,y)}function m(y,b){return function(E,x){y.then(function(){if(b[c]){E(d(void 0,!0));return}b[p](E,x)},x)}}var v=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var b=this,E=this[a];if(E!==null)return Promise.reject(E);if(this[c])return Promise.resolve(d(void 0,!0));if(this[l].destroyed)return new Promise(function(w,A){process.nextTick(function(){b[a]?A(b[a]):w(d(void 0,!0))})});var x=this[u],O;if(x)O=new Promise(m(x,this));else{var S=this[l].read();if(S!==null)return Promise.resolve(d(S,!1));O=new Promise(this[p])}return this[u]=O,O}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var b=this;return new Promise(function(E,x){b[l].destroy(null,function(O){if(O){x(O);return}E(d(void 0,!0))})})}),e),v),g=function(b){var E,x=Object.create(_,(E={},t(E,l,{value:b,writable:!0}),t(E,i,{value:null,writable:!0}),t(E,s,{value:null,writable:!0}),t(E,a,{value:null,writable:!0}),t(E,c,{value:b._readableState.endEmitted,writable:!0}),t(E,p,{value:function(S,w){var A=x[l].read();A?(x[u]=null,x[i]=null,x[s]=null,S(d(A,!1))):(x[i]=S,x[s]=w)},writable:!0}),E));return x[u]=null,o(b,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S=x[s];S!==null&&(x[u]=null,x[i]=null,x[s]=null,S(O)),x[a]=O;return}var w=x[i];w!==null&&(x[u]=null,x[i]=null,x[s]=null,w(d(void 0,!0))),x[c]=!0}),b.on("readable",h.bind(null,x)),x};return q_=g,q_}var F_,YM;function oK(){return YM||(YM=1,F_=function(){throw new Error("Readable.from is not available in the browser")}),F_}var k_,XM;function oF(){if(XM)return k_;XM=1,k_=w;var e;w.ReadableState=S,dg.EventEmitter;var t=function(I,W){return I.listeners(W).length},r=rF(),n=_p.Buffer,o=(typeof ft<"u"?ft:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(R){return n.from(R)}function s(R){return n.isBuffer(R)||R instanceof o}var a=ui,c;a&&a.debuglog?c=a.debuglog("stream"):c=function(){};var u=rK(),p=nF(),l=iF(),d=l.getHighWaterMark,f=gi().codes,h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_STREAM_PUSH_AFTER_EOF,v=f.ERR_METHOD_NOT_IMPLEMENTED,_=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,g,y,b;yi()(w,r);var E=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function O(R,I,W){if(typeof R.prependListener=="function")return R.prependListener(I,W);!R._events||!R._events[I]?R.on(I,W):Array.isArray(R._events[I])?R._events[I].unshift(W):R._events[I]=[W,R._events[I]]}function S(R,I,W){e=e||si(),R=R||{},typeof W!="boolean"&&(W=I instanceof e),this.objectMode=!!R.objectMode,W&&(this.objectMode=this.objectMode||!!R.readableObjectMode),this.highWaterMark=d(this,R,"readableHighWaterMark",W),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.destroyed=!1,this.defaultEncoding=R.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,R.encoding&&(g||(g=WM().StringDecoder),this.decoder=new g(R.encoding),this.encoding=R.encoding)}function w(R){if(e=e||si(),!(this instanceof w))return new w(R);var I=this instanceof e;this._readableState=new S(R,this,I),this.readable=!0,R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy)),r.call(this)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),w.prototype.destroy=p.destroy,w.prototype._undestroy=p.undestroy,w.prototype._destroy=function(R,I){I(R)},w.prototype.push=function(R,I){var W=this._readableState,$;return W.objectMode?$=!0:typeof R=="string"&&(I=I||W.defaultEncoding,I!==W.encoding&&(R=n.from(R,I),I=""),$=!0),A(this,R,I,!1,$)},w.prototype.unshift=function(R){return A(this,R,null,!0,!1)};function A(R,I,W,$,oe){c("readableAddChunk",I);var te=R._readableState;if(I===null)te.reading=!1,k(R,te);else{var le;if(oe||(le=T(te,I)),le)E(R,le);else if(te.objectMode||I&&I.length>0)if(typeof I!="string"&&!te.objectMode&&Object.getPrototypeOf(I)!==n.prototype&&(I=i(I)),$)te.endEmitted?E(R,new _):P(R,te,I,!0);else if(te.ended)E(R,new m);else{if(te.destroyed)return!1;te.reading=!1,te.decoder&&!W?(I=te.decoder.write(I),te.objectMode||I.length!==0?P(R,te,I,!1):J(R,te)):P(R,te,I,!1)}else $||(te.reading=!1,J(R,te))}return!te.ended&&(te.length<te.highWaterMark||te.length===0)}function P(R,I,W,$){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,R.emit("data",W)):(I.length+=I.objectMode?1:W.length,$?I.buffer.unshift(W):I.buffer.push(W),I.needReadable&&F(R)),J(R,I)}function T(R,I){var W;return!s(I)&&typeof I!="string"&&I!==void 0&&!R.objectMode&&(W=new h("chunk",["string","Buffer","Uint8Array"],I)),W}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(R){g||(g=WM().StringDecoder);var I=new g(R);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,$="";W!==null;)$+=I.write(W.data),W=W.next;return this._readableState.buffer.clear(),$!==""&&this._readableState.buffer.push($),this._readableState.length=$.length,this};var q=1073741824;function D(R){return R>=q?R=q:(R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,R++),R}function V(R,I){return R<=0||I.length===0&&I.ended?0:I.objectMode?1:R!==R?I.flowing&&I.length?I.buffer.head.data.length:I.length:(R>I.highWaterMark&&(I.highWaterMark=D(R)),R<=I.length?R:I.ended?I.length:(I.needReadable=!0,0))}w.prototype.read=function(R){c("read",R),R=parseInt(R,10);var I=this._readableState,W=R;if(R!==0&&(I.emittedReadable=!1),R===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return c("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?z(this):F(this),null;if(R=V(R,I),R===0&&I.ended)return I.length===0&&z(this),null;var $=I.needReadable;c("need readable",$),(I.length===0||I.length-R<I.highWaterMark)&&($=!0,c("length less than watermark",$)),I.ended||I.reading?($=!1,c("reading or ended",$)):$&&(c("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(R=V(W,I)));var oe;return R>0?oe=j(R,I):oe=null,oe===null?(I.needReadable=I.length<=I.highWaterMark,R=0):(I.length-=R,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),W!==R&&I.ended&&z(this)),oe!==null&&this.emit("data",oe),oe};function k(R,I){if(c("onEofChunk"),!I.ended){if(I.decoder){var W=I.decoder.end();W&&W.length&&(I.buffer.push(W),I.length+=I.objectMode?1:W.length)}I.ended=!0,I.sync?F(R):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,Z(R)))}}function F(R){var I=R._readableState;c("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(c("emitReadable",I.flowing),I.emittedReadable=!0,process.nextTick(Z,R))}function Z(R){var I=R._readableState;c("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(R.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,M(R)}function J(R,I){I.readingMore||(I.readingMore=!0,process.nextTick(U,R,I))}function U(R,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var W=I.length;if(c("maybeReadMore read 0"),R.read(0),W===I.length)break}I.readingMore=!1}w.prototype._read=function(R){E(this,new v("_read()"))},w.prototype.pipe=function(R,I){var W=this,$=this._readableState;switch($.pipesCount){case 0:$.pipes=R;break;case 1:$.pipes=[$.pipes,R];break;default:$.pipes.push(R);break}$.pipesCount+=1,c("pipe count=%d opts=%j",$.pipesCount,I);var oe=(!I||I.end!==!1)&&R!==process.stdout&&R!==process.stderr,te=oe?_e:Ke;$.endEmitted?process.nextTick(te):W.once("end",te),R.on("unpipe",le);function le(ye,Ge){c("onunpipe"),ye===W&&Ge&&Ge.hasUnpiped===!1&&(Ge.hasUnpiped=!0,Re())}function _e(){c("onend"),R.end()}var be=Q(W);R.on("drain",be);var Pe=!1;function Re(){c("cleanup"),R.removeListener("close",me),R.removeListener("finish",qe),R.removeListener("drain",be),R.removeListener("error",Te),R.removeListener("unpipe",le),W.removeListener("end",_e),W.removeListener("end",Ke),W.removeListener("data",Ee),Pe=!0,$.awaitDrain&&(!R._writableState||R._writableState.needDrain)&&be()}W.on("data",Ee);function Ee(ye){c("ondata");var Ge=R.write(ye);c("dest.write",Ge),Ge===!1&&(($.pipesCount===1&&$.pipes===R||$.pipesCount>1&&ee($.pipes,R)!==-1)&&!Pe&&(c("false write response, pause",$.awaitDrain),$.awaitDrain++),W.pause())}function Te(ye){c("onerror",ye),Ke(),R.removeListener("error",Te),t(R,"error")===0&&E(R,ye)}O(R,"error",Te);function me(){R.removeListener("finish",qe),Ke()}R.once("close",me);function qe(){c("onfinish"),R.removeListener("close",me),Ke()}R.once("finish",qe);function Ke(){c("unpipe"),W.unpipe(R)}return R.emit("pipe",W),$.flowing||(c("pipe resume"),W.resume()),R};function Q(R){return function(){var W=R._readableState;c("pipeOnDrain",W.awaitDrain),W.awaitDrain&&W.awaitDrain--,W.awaitDrain===0&&t(R,"data")&&(W.flowing=!0,M(R))}}w.prototype.unpipe=function(R){var I=this._readableState,W={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return R&&R!==I.pipes?this:(R||(R=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,R&&R.emit("unpipe",this,W),this);if(!R){var $=I.pipes,oe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var te=0;te<oe;te++)$[te].emit("unpipe",this,{hasUnpiped:!1});return this}var le=ee(I.pipes,R);return le===-1?this:(I.pipes.splice(le,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),R.emit("unpipe",this,W),this)},w.prototype.on=function(R,I){var W=r.prototype.on.call(this,R,I),$=this._readableState;return R==="data"?($.readableListening=this.listenerCount("readable")>0,$.flowing!==!1&&this.resume()):R==="readable"&&!$.endEmitted&&!$.readableListening&&($.readableListening=$.needReadable=!0,$.flowing=!1,$.emittedReadable=!1,c("on readable",$.length,$.reading),$.length?F(this):$.reading||process.nextTick(N,this)),W},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(R,I){var W=r.prototype.removeListener.call(this,R,I);return R==="readable"&&process.nextTick(C,this),W},w.prototype.removeAllListeners=function(R){var I=r.prototype.removeAllListeners.apply(this,arguments);return(R==="readable"||R===void 0)&&process.nextTick(C,this),I};function C(R){var I=R._readableState;I.readableListening=R.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:R.listenerCount("data")>0&&R.resume()}function N(R){c("readable nexttick read 0"),R.read(0)}w.prototype.resume=function(){var R=this._readableState;return R.flowing||(c("resume"),R.flowing=!R.readableListening,L(this,R)),R.paused=!1,this};function L(R,I){I.resumeScheduled||(I.resumeScheduled=!0,process.nextTick(B,R,I))}function B(R,I){c("resume",I.reading),I.reading||R.read(0),I.resumeScheduled=!1,R.emit("resume"),M(R),I.flowing&&!I.reading&&R.read(0)}w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function M(R){var I=R._readableState;for(c("flow",I.flowing);I.flowing&&R.read()!==null;);}w.prototype.wrap=function(R){var I=this,W=this._readableState,$=!1;R.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var le=W.decoder.end();le&&le.length&&I.push(le)}I.push(null)}),R.on("data",function(le){if(c("wrapped data"),W.decoder&&(le=W.decoder.write(le)),!(W.objectMode&&le==null)&&!(!W.objectMode&&(!le||!le.length))){var _e=I.push(le);_e||($=!0,R.pause())}});for(var oe in R)this[oe]===void 0&&typeof R[oe]=="function"&&(this[oe]=(function(_e){return function(){return R[_e].apply(R,arguments)}})(oe));for(var te=0;te<x.length;te++)R.on(x[te],this.emit.bind(this,x[te]));return this._read=function(le){c("wrapped _read",le),$&&($=!1,R.resume())},this},typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=aK()),y(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I){this._readableState&&(this._readableState.flowing=I)}}),w._fromList=j,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function j(R,I){if(I.length===0)return null;var W;return I.objectMode?W=I.buffer.shift():!R||R>=I.length?(I.decoder?W=I.buffer.join(""):I.buffer.length===1?W=I.buffer.first():W=I.buffer.concat(I.length),I.buffer.clear()):W=I.buffer.consume(R,I.decoder),W}function z(R){var I=R._readableState;c("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,process.nextTick(Y,I,R))}function Y(R,I){if(c("endReadableNT",R.endEmitted,R.length),!R.endEmitted&&R.length===0&&(R.endEmitted=!0,I.readable=!1,I.emit("end"),R.autoDestroy)){var W=I._writableState;(!W||W.autoDestroy&&W.finished)&&I.destroy()}}typeof Symbol=="function"&&(w.from=function(R,I){return b===void 0&&(b=oK()),b(w,R,I)});function ee(R,I){for(var W=0,$=R.length;W<$;W++)if(R[W]===I)return W;return-1}return k_}var D_,JM;function sF(){if(JM)return D_;JM=1,D_=a;var e=gi().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=si();yi()(a,i);function s(p,l){var d=this._transformState;d.transforming=!1;var f=d.writecb;if(f===null)return this.emit("error",new r);d.writechunk=null,d.writecb=null,l!=null&&this.push(l),f(p);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function a(p){if(!(this instanceof a))return new a(p);i.call(this,p),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function c(){var p=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(l,d){u(p,l,d)}):u(this,null,null)}a.prototype.push=function(p,l){return this._transformState.needTransform=!1,i.prototype.push.call(this,p,l)},a.prototype._transform=function(p,l,d){d(new t("_transform()"))},a.prototype._write=function(p,l,d){var f=this._transformState;if(f.writecb=d,f.writechunk=p,f.writeencoding=l,!f.transforming){var h=this._readableState;(f.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},a.prototype._read=function(p){var l=this._transformState;l.writechunk!==null&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},a.prototype._destroy=function(p,l){i.prototype._destroy.call(this,p,function(d){l(d)})};function u(p,l,d){if(l)return p.emit("error",l);if(d!=null&&p.push(d),p._writableState.length)throw new o;if(p._transformState.transforming)throw new n;return p.push(null)}return D_}var L_,QM;function sK(){if(QM)return L_;QM=1,L_=t;var e=sF();yi()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},L_}var U_,$M;function cK(){if($M)return U_;$M=1;var e;function t(d){var f=!1;return function(){f||(f=!0,d.apply(void 0,arguments))}}var r=gi().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(d){if(d)throw d}function s(d){return d.setHeader&&typeof d.abort=="function"}function a(d,f,h,m){m=t(m);var v=!1;d.on("close",function(){v=!0}),e===void 0&&(e=jy()),e(d,{readable:f,writable:h},function(g){if(g)return m(g);v=!0,m()});var _=!1;return function(g){if(!v&&!_){if(_=!0,s(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();m(g||new o("pipe"))}}}function c(d){d()}function u(d,f){return d.pipe(f)}function p(d){return!d.length||typeof d[d.length-1]!="function"?i:d.pop()}function l(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var m=p(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new n("streams");var v,_=f.map(function(g,y){var b=y<f.length-1,E=y>0;return a(g,b,E,function(x){v||(v=x),x&&_.forEach(c),!b&&(_.forEach(c),m(v))})});return f.reduce(u)}return U_=l,U_}var eI;function uK(){return eI||(eI=1,(function(e,t){t=e.exports=oF(),t.Stream=t,t.Readable=t,t.Writable=aF(),t.Duplex=si(),t.Transform=sF(),t.PassThrough=sK(),t.finished=jy(),t.pipeline=cK()})(Kd,Kd.exports)),Kd.exports}var z_,tI;function lK(){if(tI)return z_;tI=1;var e=Object.prototype.toString,t=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function r(s){return e.call(s).slice(8,-1)==="ArrayBuffer"}function n(s,a,c){a>>>=0;var u=s.byteLength-a;if(u<0)throw new RangeError("'offset' is out of bounds");if(c===void 0)c=u;else if(c>>>=0,c>u)throw new RangeError("'length' is out of bounds");return t?Buffer.from(s.slice(a,a+c)):new Buffer(new Uint8Array(s.slice(a,a+c)))}function o(s,a){if((typeof a!="string"||a==="")&&(a="utf8"),!Buffer.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');return t?Buffer.from(s,a):new Buffer(s,a)}function i(s,a,c){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return r(s)?n(s,a,c):typeof s=="string"?o(s,a):t?Buffer.from(s):new Buffer(s)}return z_=i,z_}var B_={},rI;function dK(){return rI||(rI=1,(function(e){var t=void 0,r=1e5,n=(function(){var U=Object.prototype.toString,Q=Object.prototype.hasOwnProperty;return{Class:function(C){return U.call(C).replace(/^\[object *|\]$/g,"")},HasProperty:function(C,N){return N in C},HasOwnProperty:function(C,N){return Q.call(C,N)},IsCallable:function(C){return typeof C=="function"},ToInt32:function(C){return C>>0},ToUint32:function(C){return C>>>0}}})(),o=Math.LN2,i=Math.abs,s=Math.floor,a=Math.log,c=Math.min,u=Math.pow,p=Math.round;function l(U){if(f&&d){var Q=f(U),C;for(C=0;C<Q.length;C+=1)d(U,Q[C],{value:U[Q[C]],writable:!1,enumerable:!1,configurable:!1})}}var d;Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}})()?d=Object.defineProperty:d=function(U,Q,C){if(!U===Object(U))throw new TypeError("Object.defineProperty called on non-object");return n.HasProperty(C,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(U,Q,C.get),n.HasProperty(C,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(U,Q,C.set),n.HasProperty(C,"value")&&(U[Q]=C.value),U};var f=Object.getOwnPropertyNames||function(U){if(U!==Object(U))throw new TypeError("Object.getOwnPropertyNames called on non-object");var Q=[],C;for(C in U)n.HasOwnProperty(U,C)&&Q.push(C);return Q};function h(U){if(!d)return;if(U.length>r)throw new RangeError("Array too large for polyfill");function Q(N){d(U,N,{get:function(){return U._getter(N)},set:function(L){U._setter(N,L)},enumerable:!0,configurable:!1})}var C;for(C=0;C<U.length;C+=1)Q(C)}function m(U,Q){var C=32-Q;return U<<C>>C}function v(U,Q){var C=32-Q;return U<<C>>>C}function _(U){return[U&255]}function g(U){return m(U[0],8)}function y(U){return[U&255]}function b(U){return v(U[0],8)}function E(U){return U=p(Number(U)),[U<0?0:U>255?255:U&255]}function x(U){return[U>>8&255,U&255]}function O(U){return m(U[0]<<8|U[1],16)}function S(U){return[U>>8&255,U&255]}function w(U){return v(U[0]<<8|U[1],16)}function A(U){return[U>>24&255,U>>16&255,U>>8&255,U&255]}function P(U){return m(U[0]<<24|U[1]<<16|U[2]<<8|U[3],32)}function T(U){return[U>>24&255,U>>16&255,U>>8&255,U&255]}function q(U){return v(U[0]<<24|U[1]<<16|U[2]<<8|U[3],32)}function D(U,Q,C){var N=(1<<Q-1)-1,L,B,M,j,z,Y,ee;function R(I){var W=s(I),$=I-W;return $<.5?W:$>.5||W%2?W+1:W}for(U!==U?(B=(1<<Q)-1,M=u(2,C-1),L=0):U===1/0||U===-1/0?(B=(1<<Q)-1,M=0,L=U<0?1:0):U===0?(B=0,M=0,L=1/U===-1/0?1:0):(L=U<0,U=i(U),U>=u(2,1-N)?(B=c(s(a(U)/o),1023),M=R(U/u(2,B)*u(2,C)),M/u(2,C)>=2&&(B=B+1,M=1),B>N?(B=(1<<Q)-1,M=0):(B=B+N,M=M-u(2,C))):(B=0,M=R(U/u(2,1-N-C)))),z=[],j=C;j;j-=1)z.push(M%2?1:0),M=s(M/2);for(j=Q;j;j-=1)z.push(B%2?1:0),B=s(B/2);for(z.push(L?1:0),z.reverse(),Y=z.join(""),ee=[];Y.length;)ee.push(parseInt(Y.substring(0,8),2)),Y=Y.substring(8);return ee}function V(U,Q,C){var N=[],L,B,M,j,z,Y,ee,R;for(L=U.length;L;L-=1)for(M=U[L-1],B=8;B;B-=1)N.push(M%2?1:0),M=M>>1;return N.reverse(),j=N.join(""),z=(1<<Q-1)-1,Y=parseInt(j.substring(0,1),2)?-1:1,ee=parseInt(j.substring(1,1+Q),2),R=parseInt(j.substring(1+Q),2),ee===(1<<Q)-1?R!==0?NaN:Y*(1/0):ee>0?Y*u(2,ee-z)*(1+R/u(2,C)):R!==0?Y*u(2,-(z-1))*(R/u(2,C)):Y<0?-0:0}function k(U){return V(U,11,52)}function F(U){return D(U,11,52)}function Z(U){return V(U,8,23)}function J(U){return D(U,8,23)}(function(){var U=function(W){if(W=n.ToInt32(W),W<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=W,this._bytes=[],this._bytes.length=W;var $;for($=0;$<this.byteLength;$+=1)this._bytes[$]=0;l(this)};e.ArrayBuffer=e.ArrayBuffer||U;var Q=function(){};function C(I,W,$){var oe;return oe=function(te,le,_e){var be,Pe,Re,Ee;if(!arguments.length||typeof arguments[0]=="number"){if(this.length=n.ToInt32(arguments[0]),_e<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]=="object"&&arguments[0].constructor===oe)for(be=arguments[0],this.length=be.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0,Re=0;Re<this.length;Re+=1)this._setter(Re,be._getter(Re));else if(typeof arguments[0]=="object"&&!(arguments[0]instanceof U||n.Class(arguments[0])==="ArrayBuffer"))for(Pe=arguments[0],this.length=n.ToUint32(Pe.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0,Re=0;Re<this.length;Re+=1)Ee=Pe[Re],this._setter(Re,Number(Ee));else if(typeof arguments[0]=="object"&&(arguments[0]instanceof U||n.Class(arguments[0])==="ArrayBuffer")){if(this.buffer=te,this.byteOffset=n.ToUint32(le),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=n.ToUint32(_e),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=oe,l(this),h(this)},oe.prototype=new Q,oe.prototype.BYTES_PER_ELEMENT=I,oe.prototype._pack=W,oe.prototype._unpack=$,oe.BYTES_PER_ELEMENT=I,oe.prototype._getter=function(te){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(te=n.ToUint32(te),te>=this.length)return t;var le=[],_e,be;for(_e=0,be=this.byteOffset+te*this.BYTES_PER_ELEMENT;_e<this.BYTES_PER_ELEMENT;_e+=1,be+=1)le.push(this.buffer._bytes[be]);return this._unpack(le)},oe.prototype.get=oe.prototype._getter,oe.prototype._setter=function(te,le){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if(te=n.ToUint32(te),te>=this.length)return t;var _e=this._pack(le),be,Pe;for(be=0,Pe=this.byteOffset+te*this.BYTES_PER_ELEMENT;be<this.BYTES_PER_ELEMENT;be+=1,Pe+=1)this.buffer._bytes[Pe]=_e[be]},oe.prototype.set=function(te,le){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var _e,be,Pe,Re,Ee,Te,me,qe,Ke,ye;if(typeof arguments[0]=="object"&&arguments[0].constructor===this.constructor){if(_e=arguments[0],Pe=n.ToUint32(arguments[1]),Pe+_e.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(qe=this.byteOffset+Pe*this.BYTES_PER_ELEMENT,Ke=_e.length*this.BYTES_PER_ELEMENT,_e.buffer===this.buffer){for(ye=[],Ee=0,Te=_e.byteOffset;Ee<Ke;Ee+=1,Te+=1)ye[Ee]=_e.buffer._bytes[Te];for(Ee=0,me=qe;Ee<Ke;Ee+=1,me+=1)this.buffer._bytes[me]=ye[Ee]}else for(Ee=0,Te=_e.byteOffset,me=qe;Ee<Ke;Ee+=1,Te+=1,me+=1)this.buffer._bytes[me]=_e.buffer._bytes[Te]}else if(typeof arguments[0]=="object"&&typeof arguments[0].length<"u"){if(be=arguments[0],Re=n.ToUint32(be.length),Pe=n.ToUint32(arguments[1]),Pe+Re>this.length)throw new RangeError("Offset plus length of array is out of range");for(Ee=0;Ee<Re;Ee+=1)Te=be[Ee],this._setter(Pe+Ee,Number(Te))}else throw new TypeError("Unexpected argument type(s)")},oe.prototype.subarray=function(te,le){function _e(Pe,Re,Ee){return Pe<Re?Re:Pe>Ee?Ee:Pe}te=n.ToInt32(te),le=n.ToInt32(le),arguments.length<1&&(te=0),arguments.length<2&&(le=this.length),te<0&&(te=this.length+te),le<0&&(le=this.length+le),te=_e(te,0,this.length),le=_e(le,0,this.length);var be=le-te;return be<0&&(be=0),new this.constructor(this.buffer,this.byteOffset+te*this.BYTES_PER_ELEMENT,be)},oe}var N=C(1,_,g),L=C(1,y,b),B=C(1,E,b),M=C(2,x,O),j=C(2,S,w),z=C(4,A,P),Y=C(4,T,q),ee=C(4,J,Z),R=C(8,F,k);e.Int8Array=e.Int8Array||N,e.Uint8Array=e.Uint8Array||L,e.Uint8ClampedArray=e.Uint8ClampedArray||B,e.Int16Array=e.Int16Array||M,e.Uint16Array=e.Uint16Array||j,e.Int32Array=e.Int32Array||z,e.Uint32Array=e.Uint32Array||Y,e.Float32Array=e.Float32Array||ee,e.Float64Array=e.Float64Array||R})(),(function(){function U(B,M){return n.IsCallable(B.get)?B.get(M):B[M]}var Q=(function(){var B=new e.Uint16Array([4660]),M=new e.Uint8Array(B.buffer);return U(M,0)===18})(),C=function(M,j,z){if(arguments.length===0)M=new e.ArrayBuffer(0);else if(!(M instanceof e.ArrayBuffer||n.Class(M)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=M||new e.ArrayBuffer(0),this.byteOffset=n.ToUint32(j),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=n.ToUint32(z),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");l(this)};function N(B){return function(M,j){if(M=n.ToUint32(M),M+B.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");M+=this.byteOffset;var z=new e.Uint8Array(this.buffer,M,B.BYTES_PER_ELEMENT),Y=[],ee;for(ee=0;ee<B.BYTES_PER_ELEMENT;ee+=1)Y.push(U(z,ee));return!!j==!!Q&&Y.reverse(),U(new B(new e.Uint8Array(Y).buffer),0)}}C.prototype.getUint8=N(e.Uint8Array),C.prototype.getInt8=N(e.Int8Array),C.prototype.getUint16=N(e.Uint16Array),C.prototype.getInt16=N(e.Int16Array),C.prototype.getUint32=N(e.Uint32Array),C.prototype.getInt32=N(e.Int32Array),C.prototype.getFloat32=N(e.Float32Array),C.prototype.getFloat64=N(e.Float64Array);function L(B){return function(M,j,z){if(M=n.ToUint32(M),M+B.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var Y=new B([j]),ee=new e.Uint8Array(Y.buffer),R=[],I,W;for(I=0;I<B.BYTES_PER_ELEMENT;I+=1)R.push(U(ee,I));!!z==!!Q&&R.reverse(),W=new e.Uint8Array(this.buffer,M,B.BYTES_PER_ELEMENT),W.set(R)}}C.prototype.setUint8=L(e.Uint8Array),C.prototype.setInt8=L(e.Int8Array),C.prototype.setUint16=L(e.Uint16Array),C.prototype.setInt16=L(e.Int16Array),C.prototype.setUint32=L(e.Uint32Array),C.prototype.setInt32=L(e.Int32Array),C.prototype.setFloat32=L(e.Float32Array),C.prototype.setFloat64=L(e.Float64Array),e.DataView=e.DataView||C})()})(B_)),B_}var H_,nI;function pK(){if(nI)return H_;nI=1;var e=uK().Writable,t=yi(),r=lK();if(typeof Uint8Array>"u")var n=dK().Uint8Array;else var n=Uint8Array;function o(l,d){if(!(this instanceof o))return new o(l,d);typeof l=="function"&&(d=l,l={}),l||(l={});var f=l.encoding,h=!1;f?(f=String(f).toLowerCase(),(f==="u8"||f==="uint8")&&(f="uint8array")):h=!0,e.call(this,{objectMode:!0}),this.encoding=f,this.shouldInferEncoding=h,d&&this.on("finish",function(){d(this.getBody())}),this.body=[]}H_=o,t(o,e),o.prototype._write=function(l,d,f){this.body.push(l),f()},o.prototype.inferEncoding=function(l){var d=l===void 0?this.body[0]:l;return Buffer.isBuffer(d)?"buffer":typeof Uint8Array<"u"&&d instanceof Uint8Array?"uint8array":Array.isArray(d)?"array":typeof d=="string"?"string":Object.prototype.toString.call(d)==="[object Object]"?"object":"buffer"},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?u(this.body):this.encoding==="string"?a(this.body):this.encoding==="buffer"?c(this.body):this.encoding==="uint8array"?p(this.body):this.body)};function i(l){return/Array\]$/.test(Object.prototype.toString.call(l))}function s(l){return typeof l=="string"||i(l)||l&&typeof l.subarray=="function"}function a(l){for(var d=[],f=0;f<l.length;f++){var h=l[f];typeof h=="string"||Buffer.isBuffer(h)?d.push(h):s(h)?d.push(r(h)):d.push(r(String(h)))}return Buffer.isBuffer(l[0])?(d=Buffer.concat(d),d=d.toString("utf8")):d=d.join(""),d}function c(l){for(var d=[],f=0;f<l.length;f++){var h=l[f];Buffer.isBuffer(h)?d.push(h):s(h)?d.push(r(h)):d.push(r(String(h)))}return Buffer.concat(d)}function u(l){for(var d=[],f=0;f<l.length;f++)d.push.apply(d,l[f]);return d}function p(l){for(var d=0,f=0;f<l.length;f++)typeof l[f]=="string"&&(l[f]=r(l[f])),d+=l[f].length;for(var h=new n(d),f=0,m=0;f<l.length;f++)for(var v=l[f],_=0;_<v.length;_++)h[m++]=v[_];return h}return H_}var V_,iI;function fK(){if(iI)return V_;iI=1;var e=pK();function t(r){}return t.prototype._handleFile=function(n,o,i){o.stream.pipe(e({encoding:"buffer"},function(s){i(null,{buffer:s,size:s.length})}))},t.prototype._removeFile=function(n,o,i){delete o.buffer,i(null)},V_=function(r){return new t},V_}var aI;function Gl(){if(aI)return ei.exports;aI=1;var e=eK(),t=tK(),r=fK(),n=tF();function o(a,c,u){u(null,!0)}function i(a){a.storage?this.storage=a.storage:a.dest?this.storage=t({destination:a.dest}):this.storage=r(),this.limits=a.limits,this.preservePath=a.preservePath,this.defParamCharset=a.defParamCharset||"latin1",this.fileFilter=a.fileFilter||o}i.prototype._makeMiddleware=function(a,c){function u(){var p=this.fileFilter,l=Object.create(null);a.forEach(function(f){typeof f.maxCount=="number"?l[f.name]=f.maxCount:l[f.name]=1/0});function d(f,h,m){if((l[h.fieldname]||0)<=0)return m(new n("LIMIT_UNEXPECTED_FILE",h.fieldname));l[h.fieldname]-=1,p(f,h,m)}return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:d,fileStrategy:c}}return e(u.bind(this))},i.prototype.single=function(a){return this._makeMiddleware([{name:a,maxCount:1}],"VALUE")},i.prototype.array=function(a,c){return this._makeMiddleware([{name:a,maxCount:c}],"ARRAY")},i.prototype.fields=function(a){return this._makeMiddleware(a,"OBJECT")},i.prototype.none=function(){return this._makeMiddleware([],"NONE")},i.prototype.any=function(){function a(){return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:"ARRAY"}}return e(a.bind(this))};function s(a){if(a===void 0)return new i({});if(typeof a=="object"&&a!==null)return new i(a);throw new TypeError("Expected object for argument options")}return ei.exports=s,ei.exports.diskStorage=t,ei.exports.memoryStorage=r,ei.exports.MulterError=n,ei.exports}var Ju={},oI;function bi(){return oI||(oI=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.MULTER_MODULE_OPTIONS=void 0,Ju.MULTER_MODULE_OPTIONS="MULTER_MODULE_OPTIONS"),Ju}var Jd={},pn={},sI;function hK(){return sI||(sI=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.busboyExceptions=pn.multerExceptions=void 0,pn.multerExceptions={LIMIT_PART_COUNT:"Too many parts",LIMIT_FILE_SIZE:"File too large",LIMIT_FILE_COUNT:"Too many files",LIMIT_FIELD_KEY:"Field name too long",LIMIT_FIELD_VALUE:"Field value too long",LIMIT_FIELD_COUNT:"Too many fields",LIMIT_UNEXPECTED_FILE:"Unexpected field",MISSING_FIELD_NAME:"Field name missing"},pn.busboyExceptions={MULTIPART_BOUNDARY_NOT_FOUND:"Multipart: Boundary not found",MULTIPART_MALFORMED_PART_HEADER:"Malformed part header",MULTIPART_UNEXPECTED_END_OF_FORM:"Unexpected end of form",MULTIPART_UNEXPECTED_END_OF_FILE:"Unexpected end of file"}),pn}var cI;function Wl(){if(cI)return Jd;cI=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.transformException=r;const e=ve(),t=hK();function r(n){if(!n||n instanceof e.HttpException)return n;switch(n.message){case t.multerExceptions.LIMIT_FILE_SIZE:return new e.PayloadTooLargeException(n.message);case t.multerExceptions.LIMIT_FILE_COUNT:case t.multerExceptions.LIMIT_FIELD_KEY:case t.multerExceptions.LIMIT_FIELD_VALUE:case t.multerExceptions.LIMIT_FIELD_COUNT:case t.multerExceptions.LIMIT_UNEXPECTED_FILE:case t.multerExceptions.LIMIT_PART_COUNT:case t.multerExceptions.MISSING_FIELD_NAME:return n.field?new e.BadRequestException(`${n.message} - ${n.field}`):new e.BadRequestException(n.message);case t.busboyExceptions.MULTIPART_BOUNDARY_NOT_FOUND:return new e.BadRequestException(n.message);case t.busboyExceptions.MULTIPART_MALFORMED_PART_HEADER:case t.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FORM:case t.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FILE:return new e.BadRequestException(`Multipart: ${n.message}`)}return n}return Jd}var uI;function vK(){if(uI)return Wd;uI=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.AnyFilesInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=bi(),o=Wl();function i(s){let a=class{constructor(p={}){this.multer=r({...p,...s})}async intercept(p,l){const d=p.switchToHttp();return await new Promise((f,h)=>this.multer.any()(d.getRequest(),d.getResponse(),m=>{if(m){const v=(0,o.transformException)(m);return h(v)}f()})),l.handle()}};return a=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],a),(0,t.mixin)(a)}return Wd}var Qd={},lI;function mK(){if(lI)return Qd;lI=1,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.FileFieldsInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=bi(),o=Wl();function i(s,a){let c=class{constructor(l={}){this.multer=r({...l,...a})}async intercept(l,d){const f=l.switchToHttp();return await new Promise((h,m)=>this.multer.fields(s)(f.getRequest(),f.getResponse(),v=>{if(v){const _=(0,o.transformException)(v);return m(_)}h()})),d.handle()}};return c=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],c),(0,t.mixin)(c)}return Qd}var $d={},dI;function _K(){if(dI)return $d;dI=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.FileInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=bi(),o=Wl();function i(s,a){let c=class{constructor(l={}){this.multer=r({...l,...a})}async intercept(l,d){const f=l.switchToHttp();return await new Promise((h,m)=>this.multer.single(s)(f.getRequest(),f.getResponse(),v=>{if(v){const _=(0,o.transformException)(v);return m(_)}h()})),d.handle()}};return c=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],c),(0,t.mixin)(c)}return $d}var ep={},pI;function gK(){if(pI)return ep;pI=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.FilesInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=bi(),o=Wl();function i(s,a,c){let u=class{constructor(d={}){this.multer=r({...d,...c})}async intercept(d,f){const h=d.switchToHttp();return await new Promise((m,v)=>this.multer.array(s,a)(h.getRequest(),h.getResponse(),_=>{if(_){const g=(0,o.transformException)(_);return v(g)}m()})),f.handle()}};return u=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],u),(0,t.mixin)(u)}return ep}var tp={},fI;function yK(){if(fI)return tp;fI=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.NoFilesInterceptor=i;const e=ae(),t=ve(),r=Gl(),n=bi(),o=Wl();function i(s){let a=class{constructor(p={}){this.multer=r({...p,...s})}async intercept(p,l){const d=p.switchToHttp();return await new Promise((f,h)=>this.multer.none()(d.getRequest(),d.getResponse(),m=>{if(m){const v=(0,o.transformException)(m);return h(v)}f()})),l.handle()}};return a=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],a),(0,t.mixin)(a)}return tp}var hI;function bK(){return hI||(hI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(vK(),e),t.__exportStar(mK(),e),t.__exportStar(_K(),e),t.__exportStar(gK(),e),t.__exportStar(yK(),e)})(c_)),c_}var G_={},W_={},vI;function EK(){return vI||(vI=1,Object.defineProperty(W_,"__esModule",{value:!0})),W_}var mI;function xK(){return mI||(mI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(EK(),e)})(G_)),G_}var ti={},Qu={},_I;function OK(){return _I||(_I=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.MULTER_MODULE_ID=void 0,Qu.MULTER_MODULE_ID="MULTER_MODULE_ID"),Qu}var gI;function wK(){if(gI)return ti;gI=1;var e;Object.defineProperty(ti,"__esModule",{value:!0}),ti.MulterModule=void 0;const t=ae(),r=ve(),n=sr(),o=bi(),i=OK();let s=e=class{static register(c={}){return{module:e,providers:[{provide:o.MULTER_MODULE_OPTIONS,useFactory:()=>c},{provide:i.MULTER_MODULE_ID,useValue:(0,n.randomStringGenerator)()}],exports:[o.MULTER_MODULE_OPTIONS]}}static registerAsync(c){return{module:e,imports:c.imports,providers:[...this.createAsyncProviders(c),{provide:i.MULTER_MODULE_ID,useValue:(0,n.randomStringGenerator)()}],exports:[o.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(c){return c.useExisting||c.useFactory?[this.createAsyncOptionsProvider(c)]:[this.createAsyncOptionsProvider(c),{provide:c.useClass,useClass:c.useClass}]}static createAsyncOptionsProvider(c){return c.useFactory?{provide:o.MULTER_MODULE_OPTIONS,useFactory:c.useFactory,inject:c.inject||[]}:{provide:o.MULTER_MODULE_OPTIONS,useFactory:async u=>u.createMulterOptions(),inject:[c.useExisting||c.useClass]}}};return ti.MulterModule=s,ti.MulterModule=s=e=t.__decorate([(0,r.Module)({})],s),ti}var yI;function SK(){return yI||(yI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(bK(),e),t.__exportStar(xK(),e),t.__exportStar(wK(),e)})(s_)),s_}var bI;function cF(){return bI||(bI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(q4(),e),t.__exportStar(D4(),e),t.__exportStar(SK(),e)})(e_)),e_}var EI;function uF(){if(EI)return ln;EI=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.NestFactory=ln.NestFactoryStatic=void 0;const e=vg(),t=yt(),r=Sl(),n=ne(),o=_r(),i=vi(),s=E4(),a=x4(),c=O4(),u=Py(),p=_i(),l=Iy(),d=Vp(),f=$q(),h=zl(),m=Pn(),v=My(),_=Ay(),g=eF();class y{constructor(){this.logger=new t.Logger("NestFactory",{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}async create(E,x,O){const[S,w]=this.isHttpServer(x)?[x,O]:[this.createHttpAdapter(),x],A=new o.ApplicationConfig,P=new u.NestContainer(A,w),T=this.createGraphInspector(w,P);this.setAbortOnError(x,O),this.registerLoggerConfiguration(w),await this.initialize(E,P,T,A,w,S);const q=new v.NestApplication(P,S,A,T,w),D=this.createNestInstance(q);return this.createAdapterProxy(D,S)}async createMicroservice(E,x){const{NestMicroservice:O}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>Qq),S=new o.ApplicationConfig,w=new u.NestContainer(S,x),A=this.createGraphInspector(x,w);return this.setAbortOnError(x),this.registerLoggerConfiguration(x),await this.initialize(E,w,A,S,x),this.createNestInstance(new O(w,x,A,S))}async createApplicationContext(E,x){const O=new o.ApplicationConfig,S=new u.NestContainer(O,x),w=this.createGraphInspector(x,S);this.setAbortOnError(x),this.registerLoggerConfiguration(x),await this.initialize(E,S,w,O,x);const P=S.getModules().values().next().value,T=this.createNestInstance(new _.NestApplicationContext(S,x,P));return this.autoFlushLogs&&T.flushLogsOnOverride(),T.init()}createNestInstance(E){return this.createProxy(E)}async initialize(E,x,O,S=new o.ApplicationConfig,w={},A=null){h.UuidFactory.mode=w.snapshot?h.UuidFactoryMode.Deterministic:h.UuidFactoryMode.Random;const P=new p.Injector({preview:w.preview,instanceDecorator:w.instrument?.instanceDecorator}),T=new l.InstanceLoader(x,P,O),q=new m.MetadataScanner,D=new g.DependenciesScanner(x,q,O,S);x.setHttpAdapter(A);const V=this.abortOnError===!1?c.rethrow:void 0;await A?.init?.();try{this.logger.log(i.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await D.scan(E),await T.createInstancesOfDependencies(),D.applyApplicationProviders()},V,this.autoFlushLogs)}catch(k){this.handleInitializationError(k)}}handleInitializationError(E){this.abortOnError&&process.abort(),(0,c.rethrow)(E)}createProxy(E){const x=this.createExceptionProxy();return new Proxy(E,{get:x,set:x})}createExceptionProxy(){return(E,x)=>{if(x in E)return(0,n.isFunction)(E[x])?this.createExceptionZone(E,x):E[x]}}createExceptionZone(E,x){const O=this.abortOnError===!1?c.rethrow:void 0;return(...S)=>{let w;return s.ExceptionsZone.run(()=>{w=E[x](...S)},O,this.autoFlushLogs),w}}registerLoggerConfiguration(E){if(!E)return;const{logger:x,bufferLogs:O,autoFlushLogs:S,forceConsole:w}=E;if(x!==!0&&!(0,n.isNil)(x))t.Logger.overrideLogger(x);else if(w){const A=new e.ConsoleLogger({forceConsole:!0});t.Logger.overrideLogger(A)}O&&t.Logger.attachBuffer(),this.autoFlushLogs=S??!0}createHttpAdapter(E){const{ExpressAdapter:x}=(0,a.loadAdapter)("@nestjs/platform-express","HTTP",()=>cF());return new x(E)}isHttpServer(E){return!!(E&&E.patch)}setAbortOnError(E,x){this.abortOnError=this.isHttpServer(E)?!(x&&x.abortOnError===!1):!(E&&E.abortOnError===!1)}createAdapterProxy(E,x){const O=new Proxy(E,{get:(S,w)=>{const A=P=>P instanceof Promise?P.then(A):P instanceof v.NestApplication?O:P;return!(w in S)&&w in x?(...P)=>{const T=this.createExceptionZone(x,w)(...P);return A(T)}:(0,n.isFunction)(S[w])?(...P)=>{const T=S[w](...P);return A(T)}:S[w]}});return O}createGraphInspector(E,x){return E?.snapshot?new d.GraphInspector(x):f.NoopGraphInspector}}return ln.NestFactoryStatic=y,ln.NestFactory=new y,ln}var Z_={},rp={},np={},xI;function PK(){if(xI)return np;xI=1,Object.defineProperty(np,"__esModule",{value:!0}),np.assignToObject=e;function e(t,r){return Object.defineProperties(t,Object.keys(r).reduce((n,o)=>(n[o]=Object.getOwnPropertyDescriptor(r,o),n),Object.create(null))),t}return np}var $u={},OI;function TK(){return OI||(OI=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.REPL_INITIALIZED_MESSAGE=void 0,$u.REPL_INITIALIZED_MESSAGE="REPL initialized"),$u}var el={},K_={},tl={},rl={},wI;function Ei(){if(wI)return rl;wI=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.ReplFunction=void 0;const e=or();class t{constructor(n){this.ctx=n,this.logger=n.logger}makeHelpMessage(){const{description:n,name:o,signature:i}=this.fnDefinition,s=`${o}${i}`;return`${e.clc.yellow(n)}
|
|
149
149
|
${e.clc.magentaBright("Interface:")} ${e.clc.bold(s)}
|
|
150
|
-
`}}return
|
|
150
|
+
`}}return rl.ReplFunction=t,rl}var SI;function AK(){if(SI)return tl;SI=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.HelpReplFn=void 0;const e=Ve(),t=or(),r=Ei();class n extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"help",signature:"() => void",description:"Display all available REPL native functions."}}action(){const i=(0,e.iterate)(this.ctx.nativeFunctions).map(([,s])=>s.fnDefinition).toArray().sort((s,a)=>s.name<a.name?-1:1);this.ctx.writeToStdout(`You can call ${t.clc.bold(".help")} on any function listed below (e.g.: ${t.clc.bold("help.help")}):
|
|
151
151
|
|
|
152
152
|
`+i.map(n.buildHelpMessage).join(`
|
|
153
153
|
`)+`
|
|
154
|
-
`)}}return
|
|
154
|
+
`)}}return tl.HelpReplFn=n,n.buildHelpMessage=({name:o,description:i})=>t.clc.cyanBright(o)+(i?` ${t.clc.bold("-")} ${i}`:""),tl}var nl={},PI;function RK(){if(PI)return nl;PI=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.GetReplFn=void 0;const e=Ei();class t extends e.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"get",signature:"(token: InjectionToken) => any",description:"Retrieves an instance of either injectable or controller, otherwise, throws exception.",aliases:["$"]}}action(n){return this.ctx.app.get(n)}}return nl.GetReplFn=t,nl}var il={},TI;function MK(){if(TI)return il;TI=1,Object.defineProperty(il,"__esModule",{value:!0}),il.ResolveReplFn=void 0;const e=Ei();class t extends e.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"resolve",description:"Resolves transient or request-scoped instance of either injectable or controller, otherwise, throws exception.",signature:"(token: InjectionToken, contextId: any) => Promise<any>"}}action(n,o){return this.ctx.app.resolve(n,o)}}return il.ResolveReplFn=t,il}var al={},AI;function IK(){if(AI)return al;AI=1,Object.defineProperty(al,"__esModule",{value:!0}),al.SelectReplFn=void 0;const e=Ei();class t extends e.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"select",description:"Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module.",signature:"(token: DynamicModule | ClassRef) => INestApplicationContext"}}action(n){return this.ctx.app.select(n)}}return al.SelectReplFn=t,al}var ol={},RI;function CK(){if(RI)return ol;RI=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.DebugReplFn=void 0;const e=or(),t=Ei();class r extends t.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"debug",description:`Print all registered modules as a list together with their controllers and providers.
|
|
155
155
|
If the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module.`,signature:"(moduleCls?: ClassRef | string) => void"}}action(o){if(this.ctx.writeToStdout(`
|
|
156
156
|
`),o){const i=typeof o=="function"?o.name:o,s=this.ctx.debugRegistry[i];if(!s)return this.logger.error(`"${i}" has not been found in the modules registry`);this.printCtrlsAndProviders(i,s)}else Object.keys(this.ctx.debugRegistry).forEach(i=>{this.printCtrlsAndProviders(i,this.ctx.debugRegistry[i])});this.ctx.writeToStdout(`
|
|
157
157
|
`)}printCtrlsAndProviders(o,i){this.ctx.writeToStdout(`${e.clc.green(o)}:
|
|
158
158
|
`),this.printCollection("controllers",i.controllers),this.printCollection("providers",i.providers)}printCollection(o,i){const s=Object.keys(i);s.length<=0||(this.ctx.writeToStdout(` ${e.clc.yellow(`- ${o}`)}:
|
|
159
159
|
`),s.forEach(a=>this.ctx.writeToStdout(` ${e.clc.green("◻")} ${a}
|
|
160
|
-
`)))}}return
|
|
160
|
+
`)))}}return ol.DebugReplFn=r,ol}var sl={},MI;function jK(){if(MI)return sl;MI=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.MethodsReplFn=void 0;const e=or(),t=Pn(),r=Ei();class n extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"methods",description:"Display all public methods available on a given provider or controller.",signature:"(token: ClassRef | string) => void"},this.metadataScanner=new t.MetadataScanner}action(i){const s=typeof i!="function"?Object.getPrototypeOf(this.ctx.app.get(i)):i?.prototype,a=this.metadataScanner.getAllMethodNames(s);this.ctx.writeToStdout(`
|
|
161
161
|
`),this.ctx.writeToStdout(`${e.clc.green("Methods")}:
|
|
162
162
|
`),a.forEach(c=>this.ctx.writeToStdout(` ${e.clc.yellow("◻")} ${c}
|
|
163
163
|
`)),this.ctx.writeToStdout(`
|
|
164
|
-
`)}}return
|
|
164
|
+
`)}}return sl.MethodsReplFn=n,sl}var II;function NK(){return II||(II=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(AK(),e),t.__exportStar(RK(),e),t.__exportStar(MK(),e),t.__exportStar(IK(),e),t.__exportStar(CK(),e),t.__exportStar(jK(),e)})(K_)),K_}var CI;function qK(){if(CI)return el;CI=1,Object.defineProperty(el,"__esModule",{value:!0}),el.ReplContext=void 0;const e=ve(),t=_r(),r=Lq(),n=Hp(),o=NK();class i{constructor(a,c){this.app=a,this.logger=new e.Logger(i.name),this.debugRegistry={},this.globalScope=Object.create(null),this.nativeFunctions=new Map,this.container=a.container,this.initializeContext(),this.initializeNativeFunctions(c||[])}writeToStdout(a){process.stdout.write(a)}initializeContext(){this.container.getModules().forEach(c=>{let u=c.metatype.name;u!==n.InternalCoreModule.name&&(this.globalScope[u]&&(u+=` (${c.token})`),this.introspectCollection(c,u,"providers"),this.introspectCollection(c,u,"controllers"),Object.defineProperty(this.globalScope,u,{value:c.metatype,configurable:!1,enumerable:!0}))})}introspectCollection(a,c,u){const p={};a[u].forEach(({token:l})=>{const d=this.stringifyToken(l);d===t.ApplicationConfig.name||d===a.metatype.name||(this.globalScope[d]||Object.defineProperty(this.globalScope,d,{value:l,configurable:!1,enumerable:!0}),d!==r.ModuleRef.name&&(p[d]=l))}),this.debugRegistry[c]={...this.debugRegistry?.[c],[u]:p}}stringifyToken(a){return typeof a!="string"?typeof a=="function"?a.name:a?.toString():`"${a}"`}addNativeFunction(a){const c=new a(this),u=[c];return this.nativeFunctions.set(c.fnDefinition.name,c),c.fnDefinition.aliases?.forEach(p=>{const l=Object.create(c);l.fnDefinition={name:p,description:l.fnDefinition.description,signature:l.fnDefinition.signature},this.nativeFunctions.set(p,l),u.push(l)}),u}registerFunctionIntoGlobalScope(a){this.globalScope[a.fnDefinition.name]=a.action.bind(a);const c=this.globalScope[a.fnDefinition.name];Object.defineProperty(c,"help",{enumerable:!1,configurable:!1,get:()=>this.writeToStdout(a.makeHelpMessage())})}initializeNativeFunctions(a){[o.HelpReplFn,o.GetReplFn,o.ResolveReplFn,o.SelectReplFn,o.DebugReplFn,o.MethodsReplFn].concat(a).forEach(u=>{this.addNativeFunction(u).forEach(l=>{this.registerFunctionIntoGlobalScope(l)})})}}return el.ReplContext=i,el}var cl={},jI;function FK(){if(jI)return cl;jI=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.ReplLogger=void 0;const e=ve(),t=My(),r=Xq(),n=Jq();class o extends e.ConsoleLogger{log(s,a){if(!o.ignoredContexts.includes(a))return super.log.apply(this,Array.from(arguments))}}return cl.ReplLogger=o,o.ignoredContexts=[n.RoutesResolver.name,r.RouterExplorer.name,t.NestApplication.name],cl}var ip={},NI;function kK(){if(NI)return ip;NI=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.defineDefaultCommandsOnRepl=t;function e(r){Object.keys(r.commands).sort().forEach(n=>{const o=r.commands[n];o&&r.output.write(`${n} ${o.help||""}
|
|
165
165
|
`)})}function t(r){r.defineCommand("help",{help:"Show REPL options",action(n){if(this.clearBufferedCommand(),n){const i=(this.commands[n]||this.context[n])?.help;i&&this.output.write(`${i}
|
|
166
166
|
`)}else e(this),this.output.write(`
|
|
167
167
|
|
|
168
168
|
`),this.context.help(),this.output.write(`
|
|
169
169
|
Press Ctrl+C to abort current expression, Ctrl+D to exit the REPL
|
|
170
|
-
`);this.displayPrompt()}})}return ip}var LI;function VK(){if(LI)return rp;LI=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.repl=c;const e=ve(),t=or(),r=hF(),n=CK(),o=jK(),i=zK(),s=BK(),a=HK();async function c(u,p={}){const l=await r.NestFactory.createApplicationContext(u,{abortOnError:!1,logger:new s.ReplLogger});await l.init();const d=new i.ReplContext(l);e.Logger.log(o.REPL_INITIALIZED_MESSAGE);const h=(await Promise.resolve().then(()=>jk)).start({prompt:t.clc.green("> "),ignoreUndefined:!0,...p});return(0,n.assignToObject)(h.context,d.globalScope),(0,a.defineDefaultCommandsOnRepl)(h),h.on("exit",async()=>{await l.close()}),h}return rp}var UI;function GK(){return UI||(UI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(VK(),e)})(Y_)),Y_}var J_={},Q_={},$_={},zI;function WK(){return zI||(zI=1,Object.defineProperty($_,"__esModule",{value:!0})),$_}var BI;function ZK(){return BI||(BI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(WK(),e)})(Q_)),Q_}var eg={},HI;function KK(){return HI||(HI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.REQUEST=void 0;var t=Pn();Object.defineProperty(e,"REQUEST",{enumerable:!0,get:function(){return t.REQUEST}})})(eg)),eg}var VI;function YK(){return VI||(VI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=void 0;const t=ae();t.__exportStar(ZK(),e),t.__exportStar(KK(),e);var r=QN();Object.defineProperty(e,"RouterModule",{enumerable:!0,get:function(){return r.RouterModule}})})(J_)),J_}var GI;function vF(){return GI||(GI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NestFactory=e.APP_PIPE=e.APP_INTERCEPTOR=e.APP_GUARD=e.APP_FILTER=void 0;const t=ae();hg(),t.__exportStar(vZ(),e),t.__exportStar(_r(),e);var r=mi();Object.defineProperty(e,"APP_FILTER",{enumerable:!0,get:function(){return r.APP_FILTER}}),Object.defineProperty(e,"APP_GUARD",{enumerable:!0,get:function(){return r.APP_GUARD}}),Object.defineProperty(e,"APP_INTERCEPTOR",{enumerable:!0,get:function(){return r.APP_INTERCEPTOR}}),Object.defineProperty(e,"APP_PIPE",{enumerable:!0,get:function(){return r.APP_PIPE}}),t.__exportStar(_Z(),e),t.__exportStar(gZ(),e),t.__exportStar(RZ(),e),t.__exportStar(HN(),e),t.__exportStar(KZ(),e),t.__exportStar(Tn(),e),t.__exportStar(JZ(),e),t.__exportStar(Cy(),e),t.__exportStar(My(),e);var n=hF();Object.defineProperty(e,"NestFactory",{enumerable:!0,get:function(){return n.NestFactory}}),t.__exportStar(GK(),e),t.__exportStar(YK(),e),t.__exportStar(BN(),e)})(Mm)),Mm}var WI=vF(),XK=Object.getOwnPropertyDescriptor,JK=(e,t,r,n)=>{for(var o=n>1?void 0:n?XK(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let hp=class{constructor(e){this.httpAdapterHost=e}logger=new Pt.Logger(hp.name);mapStatusCode(e){return"getStatus"in e&&typeof e.getStatus=="function"?e.getStatus():Pt.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return"getResponse"in e&&typeof e.getResponse=="function"?e.getResponse():{error:"internal-error"}}catch(e,t){const{httpAdapter:r}=this.httpAdapterHost,n=t.switchToHttp();this.logger.error("Unhandled exception",e);const o=this.mapStatusCode(e),i=this.mapError(e);r.reply(n.getResponse(),i,o)}};hp=JK([Pt.Catch()],hp);const Fy=async({existentApp:e,existentLogger:t,appModule:r})=>{if(!e&&!r)throw new Error("Either existentApp or appModule must be provided");const n=process.env.LOGGER_PROVIDER==="NESTJS"||!t?new Pt.Logger:t;n.setLogLevels?.(["verbose","debug","log","warn","error","fatal"]);const o=e||await WI.NestFactory.create(r,{bufferLogs:!0,logger:n,rawBody:!0});o.useLogger(n);const s=o.get(op.ConfigService).get(oi);if(!s)throw new Error(`Configuration with token ${oi} not found`);n.setLogLevels?.(s.LOG_LEVELS);const a=o.get(WI.HttpAdapterHost);return o.useGlobalFilters(new hp(a)),o.enableCors({origin:s.CORS_ORIGIN.split(",").map(c=>c.trim()),methods:s.CORS_METHODS,allowedHeaders:s.CORS_ALLOWED_HEADERS,credentials:s.CORS_CREDENTIALS,maxAge:s.CORS_MAX_AGE}),{app:o,logger:n}};async function QK({appModule:e,configPath:t=Nk.resolve(__dirname,"../configuration"),logger:r}){Bk({env:"",configPath:t});const{app:n,logger:o}=await Fy({appModule:e,existentLogger:r}),s=n.get(op.ConfigService).get(oi);if(!s)throw new Error(`Configuration with token ${oi} not found`);await n.listen(s.APP_PORT),o.log(`NestJS App is running at http://localhost:${s.APP_PORT}`),$K(n,o)}function $K(e,t){const r=async n=>{t.log(`Received ${n}, starting graceful shutdown...`);try{await e.close(),t.log("Application closed successfully"),process.exit(0)}catch(o){t.error("Error during shutdown",o),process.exit(1)}};process.on("SIGINT",()=>{r("SIGINT")}),process.on("SIGTERM",()=>{r("SIGTERM")})}var eY=Object.getOwnPropertyDescriptor,tY=(e,t,r,n)=>{for(var o=n>1?void 0:n?eY(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};const tg={"2XX":"verbose","3XX":"debug",400:"log",401:"log",403:"log",404:"log","4XX":"warn","5XX":"error"};exports.RequestMiddleware=class{logger=new Pt.Logger(exports.RequestMiddleware.name);statusCodeToSeverity(t){const r=t.toString();return tg[r]?tg[r]:tg[`${t.toString().slice(0,1)}XX`]}use(t,r,n){if(t.headers.host!=="127.0.0.1"){const o=Date.now();r.on("finish",()=>{const i=Date.now()-o,s={method:t.method,url:t.originalUrl,statusCode:r.statusCode,timeSpentMs:i,domain:t.hostname,requestHeaders:t.headers,responseHeaders:r.getHeaders()},a=this.statusCodeToSeverity(r.statusCode);this.logger[a](`Request: ${t.method} ${t.originalUrl} ${r.statusCode}`,s)})}n()}};exports.RequestMiddleware=tY([Pt.Injectable()],exports.RequestMiddleware);var rg={},ng={},ig={},ZI;function rY(){return ZI||(ZI=1,Object.defineProperty(ig,"__esModule",{value:!0})),ig}var ag={},KI;function nY(){return KI||(KI=1,Object.defineProperty(ag,"__esModule",{value:!0})),ag}var og={},YI;function iY(){return YI||(YI=1,Object.defineProperty(og,"__esModule",{value:!0})),og}var XI;function aY(){return XI||(XI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(rY(),e),t.__exportStar(nY(),e),t.__exportStar(iY(),e)})(ng)),ng}var ll={},dl={},pl={},JI;function oY(){if(JI)return pl;JI=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.TestingLogger=void 0;const e=ve();class t extends e.ConsoleLogger{constructor(){super("Testing")}log(n){}warn(n){}debug(n){}verbose(n){}error(n,...o){return super.error(n,...o)}}return pl.TestingLogger=t,pl}var fl={},QI;function sY(){if(QI)return fl;QI=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.TestingInjector=void 0;const e=ot(),t=gi(),r=Bl();class n extends t.Injector{setMocker(i){this.mocker=i}setContainer(i){this.container=i}async resolveComponentWrapper(i,s,a,c,u=e.STATIC_CONTEXT,p,l){try{return await super.resolveComponentWrapper(i,s,a,c,u,p,l)}catch(d){return this.mockWrapper(d,i,s,c)}}async resolveComponentHost(i,s,a=e.STATIC_CONTEXT,c){try{return await super.resolveComponentHost(i,s,a,c)}catch(u){return this.mockWrapper(u,i,s.name,s)}}async mockWrapper(i,s,a,c){if(!this.mocker)throw i;const u=this.mocker(a);if(!u)throw i;const p=new r.InstanceWrapper({name:a,isAlias:!1,scope:c.scope,instance:u,isResolved:!0,host:s,metatype:c.metatype}),l=this.container.getInternalCoreModuleRef();if(!l)throw new Error("Expected to have internal core module reference at this point.");return l.addCustomProvider({provide:a,useValue:u},l.providers),l.addExportedProviderOrModule(a),p}}return fl.TestingInjector=n,fl}var hl={},$I;function cY(){if($I)return hl;$I=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.TestingInstanceLoader=void 0;const e=jy();class t extends e.InstanceLoader{async createInstancesOfDependencies(n=this.container.getModules(),o){this.injector.setContainer(this.container),o&&this.injector.setMocker(o),await super.createInstancesOfDependencies()}}return hl.TestingInstanceLoader=t,hl}var vl={};const uY={},lY=Object.freeze(Object.defineProperty({__proto__:null,default:uY},Symbol.toStringTag,{value:"Module"})),dY=di(lY);var eC;function mF(){if(eC)return vl;eC=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.TestingModule=void 0;const e=ve(),t=Sl(),r=ne(),n=vF();class o extends n.NestApplicationContext{constructor(s,a,c,u,p=[]){const l={};super(s,l,c,p),this.applicationConfig=u,this.graphInspector=a}isHttpServer(s){return!!(s&&s.patch)}createNestApplication(s,a){const[c,u]=this.isHttpServer(s)?[s,a]:[this.createHttpAdapter(),s];this.applyLogger(u),this.container.setHttpAdapter(c);const p=new n.NestApplication(this.container,c,this.applicationConfig,this.graphInspector,u);return this.createAdapterProxy(p,c)}createNestMicroservice(s){const{NestMicroservice:a}=(0,t.loadPackage)("@nestjs/microservices","TestingModule",()=>dY);return this.applyLogger(s),new a(this.container,s,this.graphInspector,this.applicationConfig)}createHttpAdapter(s){const{ExpressAdapter:a}=(0,t.loadPackage)("@nestjs/platform-express","NestFactory",()=>fF());return new a(s)}applyLogger(s){!s||(0,r.isUndefined)(s.logger)||e.Logger.overrideLogger(s.logger)}createAdapterProxy(s,a){return new Proxy(s,{get:(c,u)=>!(u in c)&&u in a?a[u]:c[u]})}}return vl.TestingModule=o,vl}var tC;function _F(){if(tC)return dl;tC=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.TestingModuleBuilder=void 0;const e=ve(),t=_r(),r=Ay(),n=Vp(),o=nF(),i=zl(),s=iF(),a=oY(),c=sY(),u=cY(),p=mF();class l{constructor(f,h,m){this.metadataScanner=f,this.applicationConfig=new t.ApplicationConfig,this.overloadsMap=new Map,this.moduleOverloadsMap=new Map,this.container=new r.NestContainer(this.applicationConfig,m),this.module=this.createModule(h)}setLogger(f){return this.testingLogger=f,this}overridePipe(f){return this.override(f,!1)}useMocker(f){return this.mocker=f,this}overrideFilter(f){return this.override(f,!1)}overrideGuard(f){return this.override(f,!1)}overrideInterceptor(f){return this.override(f,!1)}overrideProvider(f){return this.override(f,!0)}overrideModule(f){return{useModule:h=>(this.moduleOverloadsMap.set(f,h),this)}}async compile(f={}){this.applyLogger();let h;f?.snapshot?(h=new n.GraphInspector(this.container),i.UuidFactory.mode=i.UuidFactoryMode.Deterministic):(h=o.NoopGraphInspector,i.UuidFactory.mode=i.UuidFactoryMode.Random);const m=new s.DependenciesScanner(this.container,this.metadataScanner,h,this.applicationConfig);await m.scan(this.module,{overrides:this.getModuleOverloads()}),this.applyOverloadsMap(),await this.createInstancesOfDependencies(h,f),m.applyApplicationProviders();const v=this.getRootModule();return new p.TestingModule(this.container,h,v,this.applicationConfig)}override(f,h){const m=v=>(this.overloadsMap.set(f,{...v,isProvider:h}),this);return this.createOverrideByBuilder(m)}createOverrideByBuilder(f){return{useValue:h=>f({useValue:h}),useFactory:h=>f({...h,useFactory:h.factory}),useClass:h=>f({useClass:h})}}applyOverloadsMap(){[...this.overloadsMap.entries()].forEach(([h,m])=>{this.container.replace(h,m)})}getModuleOverloads(){return[...this.moduleOverloadsMap.entries()].map(([h,m])=>({moduleToReplace:h,newModule:m}))}getRootModule(){return this.container.getModules().values().next().value}async createInstancesOfDependencies(f,h){const m=new c.TestingInjector({preview:h?.preview??!1});await new u.TestingInstanceLoader(this.container,m,f).createInstancesOfDependencies(this.container.getModules(),this.mocker)}createModule(f){class h{}return(0,e.Module)(f)(h),h}applyLogger(){e.Logger.overrideLogger(this.testingLogger||new a.TestingLogger)}}return dl.TestingModuleBuilder=l,dl}var rC;function pY(){if(rC)return ll;rC=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.Test=void 0;const e=Tn(),t=_F();class r{static createTestingModule(o,i){return new t.TestingModuleBuilder(this.metadataScanner,o,i)}}return ll.Test=r,r.metadataScanner=new e.MetadataScanner,ll}var nC;function fY(){return nC||(nC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(aY(),e),t.__exportStar(pY(),e),t.__exportStar(mF(),e),t.__exportStar(_F(),e)})(rg)),rg}var hY=fY();function vY(e,t=[]){return t.forEach(r=>{e=e.overrideGuard(r.type).useValue(r.value)}),e}function mY(e,t=[]){return t.forEach(r=>{e=e.overrideProvider(r.type).useValue(r.value)}),e}async function gF(e={},t){let r=hY.Test.createTestingModule({imports:[t]});r=vY(r,e.guards),r=mY(r,e.providers);const n=await r.compile();return e.logger&&n.useLogger(e.logger),n}async function _Y(e,t={}){const r=await gF(t,e),{app:n}=await Fy({existentApp:r.createNestApplication(),existentLogger:t.logger});return n.init()}class gY{requestTimestamps=new Map;options;constructor(t){if(t.windowMs<=0||t.maxRequests<=0)throw new Error("windowMs and maxRequests must be positive");this.options=t}async canActivate(t){const r=t.switchToHttp().getRequest(),n=t.switchToHttp().getResponse(),o=this.extractIp(r),i=Date.now(),s=i-this.options.windowMs,c=(this.requestTimestamps.get(o)??[]).filter(u=>u>s);if(c.length>=this.options.maxRequests){const u=c[0],p=Math.ceil((u+this.options.windowMs-i)/1e3);throw n.setHeader("Retry-After",p),new Pt.HttpException("Too Many Requests",Pt.HttpStatus.TOO_MANY_REQUESTS)}return c.push(i),this.requestTimestamps.set(o,c),this.cleanupExpiredEntries(i),!0}extractIp(t){const r=t.headers?.["x-forwarded-for"];return r?(Array.isArray(r)?r[0]:r).split(",")[0].trim():t.ip?t.ip:"unknown"}cleanupExpiredEntries(t){const r=t-this.options.windowMs;for(const[n,o]of this.requestTimestamps.entries()){const i=o.filter(s=>s>r);i.length===0?this.requestTimestamps.delete(n):this.requestTimestamps.set(n,i)}}}function Gp(e,t="body"){return Pt.createParamDecorator((r,n)=>{const i=n.switchToHttp().getRequest()[t],s=e.safeParse(i);if(!s.success)throw new Pt.BadRequestException({message:`Invalid ${t} data`,errors:s.error});return s.data})()}function yY(e){return Gp(e,"query")}function bY(e){return Gp(e,"body")}function EY(e){return Gp(e,"params")}class xY extends Pt.Logger{}exports.APP_CONFIG_TOKEN=oi;exports.AppConfigSchema=EN;exports.CustomLogger=xY;exports.InMemoryRateLimitGuard=gY;exports.SafeBody=bY;exports.SafeParams=EY;exports.SafeQuery=yY;exports.ZodValidator=Gp;exports.appConfigModuleSetup=hZ;exports.bootstrap=QK;exports.createApp=Fy;exports.createTestingApp=_Y;exports.createTestingModule=gF;
|
|
170
|
+
`);this.displayPrompt()}})}return ip}var qI;function DK(){if(qI)return rp;qI=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.repl=c;const e=ve(),t=or(),r=uF(),n=PK(),o=TK(),i=qK(),s=FK(),a=kK();async function c(u,p={}){const l=await r.NestFactory.createApplicationContext(u,{abortOnError:!1,logger:new s.ReplLogger});await l.init();const d=new i.ReplContext(l);e.Logger.log(o.REPL_INITIALIZED_MESSAGE);const h=(await Promise.resolve().then(()=>Ak)).start({prompt:t.clc.green("> "),ignoreUndefined:!0,...p});return(0,n.assignToObject)(h.context,d.globalScope),(0,a.defineDefaultCommandsOnRepl)(h),h.on("exit",async()=>{await l.close()}),h}return rp}var FI;function LK(){return FI||(FI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(DK(),e)})(Z_)),Z_}var Y_={},X_={},J_={},kI;function UK(){return kI||(kI=1,Object.defineProperty(J_,"__esModule",{value:!0})),J_}var DI;function zK(){return DI||(DI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(UK(),e)})(X_)),X_}var Q_={},LI;function BK(){return LI||(LI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.REQUEST=void 0;var t=Tn();Object.defineProperty(e,"REQUEST",{enumerable:!0,get:function(){return t.REQUEST}})})(Q_)),Q_}var UI;function HK(){return UI||(UI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=void 0;const t=ae();t.__exportStar(zK(),e),t.__exportStar(BK(),e);var r=Kq();Object.defineProperty(e,"RouterModule",{enumerable:!0,get:function(){return r.RouterModule}})})(Y_)),Y_}var zI;function lF(){return zI||(zI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NestFactory=e.APP_PIPE=e.APP_INTERCEPTOR=e.APP_GUARD=e.APP_FILTER=void 0;const t=ae();pg(),t.__exportStar(lZ(),e),t.__exportStar(_r(),e);var r=vi();Object.defineProperty(e,"APP_FILTER",{enumerable:!0,get:function(){return r.APP_FILTER}}),Object.defineProperty(e,"APP_GUARD",{enumerable:!0,get:function(){return r.APP_GUARD}}),Object.defineProperty(e,"APP_INTERCEPTOR",{enumerable:!0,get:function(){return r.APP_INTERCEPTOR}}),Object.defineProperty(e,"APP_PIPE",{enumerable:!0,get:function(){return r.APP_PIPE}}),t.__exportStar(pZ(),e),t.__exportStar(fZ(),e),t.__exportStar(wZ(),e),t.__exportStar(Lq(),e),t.__exportStar(HZ(),e),t.__exportStar(Pn(),e),t.__exportStar(WZ(),e),t.__exportStar(My(),e),t.__exportStar(Ay(),e);var n=uF();Object.defineProperty(e,"NestFactory",{enumerable:!0,get:function(){return n.NestFactory}}),t.__exportStar(LK(),e),t.__exportStar(HK(),e),t.__exportStar(Dq(),e)})(Mm)),Mm}var BI=lF(),VK=Object.getOwnPropertyDescriptor,GK=(e,t,r,n)=>{for(var o=n>1?void 0:n?VK(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};let hp=class{constructor(e){this.httpAdapterHost=e}logger=new Tt.Logger(hp.name);mapStatusCode(e){return"getStatus"in e&&typeof e.getStatus=="function"?e.getStatus():Tt.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return"getResponse"in e&&typeof e.getResponse=="function"?e.getResponse():{error:"internal-error"}}catch(e,t){const{httpAdapter:r}=this.httpAdapterHost,n=t.switchToHttp();this.logger.error("Unhandled exception",e);const o=this.mapStatusCode(e),i=this.mapError(e);r.reply(n.getResponse(),i,o)}};hp=GK([Tt.Catch()],hp);const Ny=async({existentApp:e,existentLogger:t,appModule:r})=>{if(!e&&!r)throw new Error("Either existentApp or appModule must be provided");const n=process.env.LOGGER_PROVIDER==="NESTJS"||!t?new Tt.Logger:t;n.setLogLevels?.(["verbose","debug","log","warn","error","fatal"]);const o=e||await BI.NestFactory.create(r,{bufferLogs:!0,logger:n,rawBody:!0});o.useLogger(n);const s=o.get(op.ConfigService).get(oi);if(!s)throw new Error(`Configuration with token ${oi} not found`);n.setLogLevels?.(s.LOG_LEVELS);const a=o.get(BI.HttpAdapterHost);return o.useGlobalFilters(new hp(a)),o.enableCors({origin:s.CORS_ORIGIN.split(",").map(c=>c.trim()),methods:s.CORS_METHODS,allowedHeaders:s.CORS_ALLOWED_HEADERS,credentials:s.CORS_CREDENTIALS,maxAge:s.CORS_MAX_AGE}),{app:o,logger:n}};async function WK({appModule:e,configPath:t=Mk.resolve(__dirname,"../configuration"),logger:r}){kk({env:"",configPath:t});const{app:n,logger:o}=await Ny({appModule:e,existentLogger:r}),s=n.get(op.ConfigService).get(oi);if(!s)throw new Error(`Configuration with token ${oi} not found`);await n.listen(s.APP_PORT),o.log(`NestJS App is running at http://localhost:${s.APP_PORT}`),ZK(n,o)}function ZK(e,t){const r=async n=>{t.log(`Received ${n}, starting graceful shutdown...`);try{await e.close(),t.log("Application closed successfully"),process.exit(0)}catch(o){t.error("Error during shutdown",o),process.exit(1)}};process.on("SIGINT",()=>{r("SIGINT")}),process.on("SIGTERM",()=>{r("SIGTERM")})}var KK=Object.getOwnPropertyDescriptor,YK=(e,t,r,n)=>{for(var o=n>1?void 0:n?KK(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=s(o)||o);return o};const $_={"2XX":"verbose","3XX":"debug",400:"log",401:"log",403:"log",404:"log","4XX":"warn","5XX":"error"};exports.RequestMiddleware=class{logger=new Tt.Logger(exports.RequestMiddleware.name);statusCodeToSeverity(t){const r=t.toString();return $_[r]?$_[r]:$_[`${t.toString().slice(0,1)}XX`]}use(t,r,n){if(t.headers.host!=="127.0.0.1"){const o=Date.now();r.on("finish",()=>{const i=Date.now()-o,s={method:t.method,url:t.originalUrl,statusCode:r.statusCode,timeSpentMs:i,domain:t.hostname,requestHeaders:t.headers,responseHeaders:r.getHeaders()},a=this.statusCodeToSeverity(r.statusCode);this.logger[a](`Request: ${t.method} ${t.originalUrl} ${r.statusCode}`,s)})}n()}};exports.RequestMiddleware=YK([Tt.Injectable()],exports.RequestMiddleware);var eg={},tg={},rg={},HI;function XK(){return HI||(HI=1,Object.defineProperty(rg,"__esModule",{value:!0})),rg}var ng={},VI;function JK(){return VI||(VI=1,Object.defineProperty(ng,"__esModule",{value:!0})),ng}var ig={},GI;function QK(){return GI||(GI=1,Object.defineProperty(ig,"__esModule",{value:!0})),ig}var WI;function $K(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(XK(),e),t.__exportStar(JK(),e),t.__exportStar(QK(),e)})(tg)),tg}var ul={},ll={},dl={},ZI;function eY(){if(ZI)return dl;ZI=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.TestingLogger=void 0;const e=ve();class t extends e.ConsoleLogger{constructor(){super("Testing")}log(n){}warn(n){}debug(n){}verbose(n){}error(n,...o){return super.error(n,...o)}}return dl.TestingLogger=t,dl}var pl={},KI;function tY(){if(KI)return pl;KI=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.TestingInjector=void 0;const e=ot(),t=_i(),r=Bl();class n extends t.Injector{setMocker(i){this.mocker=i}setContainer(i){this.container=i}async resolveComponentWrapper(i,s,a,c,u=e.STATIC_CONTEXT,p,l){try{return await super.resolveComponentWrapper(i,s,a,c,u,p,l)}catch(d){return this.mockWrapper(d,i,s,c)}}async resolveComponentHost(i,s,a=e.STATIC_CONTEXT,c){try{return await super.resolveComponentHost(i,s,a,c)}catch(u){return this.mockWrapper(u,i,s.name,s)}}async mockWrapper(i,s,a,c){if(!this.mocker)throw i;const u=this.mocker(a);if(!u)throw i;const p=new r.InstanceWrapper({name:a,isAlias:!1,scope:c.scope,instance:u,isResolved:!0,host:s,metatype:c.metatype}),l=this.container.getInternalCoreModuleRef();if(!l)throw new Error("Expected to have internal core module reference at this point.");return l.addCustomProvider({provide:a,useValue:u},l.providers),l.addExportedProviderOrModule(a),p}}return pl.TestingInjector=n,pl}var fl={},YI;function rY(){if(YI)return fl;YI=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.TestingInstanceLoader=void 0;const e=Iy();class t extends e.InstanceLoader{async createInstancesOfDependencies(n=this.container.getModules(),o){this.injector.setContainer(this.container),o&&this.injector.setMocker(o),await super.createInstancesOfDependencies()}}return fl.TestingInstanceLoader=t,fl}var hl={};const nY={},iY=Object.freeze(Object.defineProperty({__proto__:null,default:nY},Symbol.toStringTag,{value:"Module"})),aY=li(iY);var XI;function dF(){if(XI)return hl;XI=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.TestingModule=void 0;const e=ve(),t=Sl(),r=ne(),n=lF();class o extends n.NestApplicationContext{constructor(s,a,c,u,p=[]){const l={};super(s,l,c,p),this.applicationConfig=u,this.graphInspector=a}isHttpServer(s){return!!(s&&s.patch)}createNestApplication(s,a){const[c,u]=this.isHttpServer(s)?[s,a]:[this.createHttpAdapter(),s];this.applyLogger(u),this.container.setHttpAdapter(c);const p=new n.NestApplication(this.container,c,this.applicationConfig,this.graphInspector,u);return this.createAdapterProxy(p,c)}createNestMicroservice(s){const{NestMicroservice:a}=(0,t.loadPackage)("@nestjs/microservices","TestingModule",()=>aY);return this.applyLogger(s),new a(this.container,s,this.graphInspector,this.applicationConfig)}createHttpAdapter(s){const{ExpressAdapter:a}=(0,t.loadPackage)("@nestjs/platform-express","NestFactory",()=>cF());return new a(s)}applyLogger(s){!s||(0,r.isUndefined)(s.logger)||e.Logger.overrideLogger(s.logger)}createAdapterProxy(s,a){return new Proxy(s,{get:(c,u)=>!(u in c)&&u in a?a[u]:c[u]})}}return hl.TestingModule=o,hl}var JI;function pF(){if(JI)return ll;JI=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.TestingModuleBuilder=void 0;const e=ve(),t=_r(),r=Py(),n=Vp(),o=$q(),i=zl(),s=eF(),a=eY(),c=tY(),u=rY(),p=dF();class l{constructor(f,h,m){this.metadataScanner=f,this.applicationConfig=new t.ApplicationConfig,this.overloadsMap=new Map,this.moduleOverloadsMap=new Map,this.container=new r.NestContainer(this.applicationConfig,m),this.module=this.createModule(h)}setLogger(f){return this.testingLogger=f,this}overridePipe(f){return this.override(f,!1)}useMocker(f){return this.mocker=f,this}overrideFilter(f){return this.override(f,!1)}overrideGuard(f){return this.override(f,!1)}overrideInterceptor(f){return this.override(f,!1)}overrideProvider(f){return this.override(f,!0)}overrideModule(f){return{useModule:h=>(this.moduleOverloadsMap.set(f,h),this)}}async compile(f={}){this.applyLogger();let h;f?.snapshot?(h=new n.GraphInspector(this.container),i.UuidFactory.mode=i.UuidFactoryMode.Deterministic):(h=o.NoopGraphInspector,i.UuidFactory.mode=i.UuidFactoryMode.Random);const m=new s.DependenciesScanner(this.container,this.metadataScanner,h,this.applicationConfig);await m.scan(this.module,{overrides:this.getModuleOverloads()}),this.applyOverloadsMap(),await this.createInstancesOfDependencies(h,f),m.applyApplicationProviders();const v=this.getRootModule();return new p.TestingModule(this.container,h,v,this.applicationConfig)}override(f,h){const m=v=>(this.overloadsMap.set(f,{...v,isProvider:h}),this);return this.createOverrideByBuilder(m)}createOverrideByBuilder(f){return{useValue:h=>f({useValue:h}),useFactory:h=>f({...h,useFactory:h.factory}),useClass:h=>f({useClass:h})}}applyOverloadsMap(){[...this.overloadsMap.entries()].forEach(([h,m])=>{this.container.replace(h,m)})}getModuleOverloads(){return[...this.moduleOverloadsMap.entries()].map(([h,m])=>({moduleToReplace:h,newModule:m}))}getRootModule(){return this.container.getModules().values().next().value}async createInstancesOfDependencies(f,h){const m=new c.TestingInjector({preview:h?.preview??!1});await new u.TestingInstanceLoader(this.container,m,f).createInstancesOfDependencies(this.container.getModules(),this.mocker)}createModule(f){class h{}return(0,e.Module)(f)(h),h}applyLogger(){e.Logger.overrideLogger(this.testingLogger||new a.TestingLogger)}}return ll.TestingModuleBuilder=l,ll}var QI;function oY(){if(QI)return ul;QI=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.Test=void 0;const e=Pn(),t=pF();class r{static createTestingModule(o,i){return new t.TestingModuleBuilder(this.metadataScanner,o,i)}}return ul.Test=r,r.metadataScanner=new e.MetadataScanner,ul}var $I;function sY(){return $I||($I=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar($K(),e),t.__exportStar(oY(),e),t.__exportStar(dF(),e),t.__exportStar(pF(),e)})(eg)),eg}var cY=sY();function uY(e,t=[]){return t.forEach(r=>{e=e.overrideGuard(r.type).useValue(r.value)}),e}function lY(e,t=[]){return t.forEach(r=>{e=e.overrideProvider(r.type).useValue(r.value)}),e}async function fF(e={},t){let r=cY.Test.createTestingModule({imports:[t]});r=uY(r,e.guards),r=lY(r,e.providers);const n=await r.compile();return e.logger&&n.useLogger(e.logger),n}async function dY(e,t={}){const r=await fF(t,e),{app:n}=await Ny({existentApp:r.createNestApplication(),existentLogger:t.logger});return n.init()}class pY{requestTimestamps=new Map;options;constructor(t){if(t.windowMs<=0||t.maxRequests<=0)throw new Error("windowMs and maxRequests must be positive");this.options=t}async canActivate(t){const r=t.switchToHttp().getRequest(),n=t.switchToHttp().getResponse(),o=this.extractIp(r),i=Date.now(),s=i-this.options.windowMs,c=(this.requestTimestamps.get(o)??[]).filter(u=>u>s);if(c.length>=this.options.maxRequests){const u=c[0],p=Math.ceil((u+this.options.windowMs-i)/1e3);throw n.setHeader("Retry-After",p),new Tt.HttpException("Too Many Requests",Tt.HttpStatus.TOO_MANY_REQUESTS)}return c.push(i),this.requestTimestamps.set(o,c),this.cleanupExpiredEntries(i),!0}extractIp(t){const r=t.headers?.["x-forwarded-for"];return r?(Array.isArray(r)?r[0]:r).split(",")[0].trim():t.ip?t.ip:"unknown"}cleanupExpiredEntries(t){const r=t-this.options.windowMs;for(const[n,o]of this.requestTimestamps.entries()){const i=o.filter(s=>s>r);i.length===0?this.requestTimestamps.delete(n):this.requestTimestamps.set(n,i)}}}function Gp(e,t="body"){return Tt.createParamDecorator((r,n)=>{const i=n.switchToHttp().getRequest()[t],s=e.safeParse(i);if(!s.success)throw new Tt.BadRequestException({message:`Invalid ${t} data`,errors:s.error});return s.data})()}function fY(e){return Gp(e,"query")}function hY(e){return Gp(e,"body")}function vY(e){return Gp(e,"params")}class mY extends Tt.Logger{}exports.APP_CONFIG_TOKEN=oi;exports.AppConfigSchema=_q;exports.CustomLogger=mY;exports.InMemoryRateLimitGuard=pY;exports.SafeBody=hY;exports.SafeParams=vY;exports.SafeQuery=fY;exports.ZodValidator=Gp;exports.appConfigModuleSetup=uZ;exports.bootstrap=WK;exports.createApp=Ny;exports.createTestingApp=dY;exports.createTestingModule=fF;
|