@jsfsi-core/ts-nestjs 1.1.45 → 1.1.47
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 +81 -103
- package/dist/index.mjs +35589 -35084
- package/dist/{ts-nestjs/src → src}/configuration/AppConfigurationService.d.ts +1 -1
- package/dist/src/index.d.ts +9 -2
- package/package.json +14 -14
- package/dist/ts-nestjs/src/index.d.ts +0 -9
- /package/dist/{ts-nestjs/src → src}/app/app.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/app/app.test.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/app/bootstrap.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/filters/AllExceptionsFilter.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/guards/InMemoryRateLimitGuard.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/guards/InMemoryRateLimitGuard.unit.test.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/logger/CustomLogger.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/middlewares/RequestMiddleware.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/middlewares/RequestMiddleware.test.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/middlewares/RequestMiddlewareLogCustomizer.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/test/testing-app.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/validators/ZodValidator.d.ts +0 -0
- /package/dist/{ts-nestjs/src → src}/validators/ZodValidator.test.d.ts +0 -0
- /package/dist/{ts-nestjs/test → test}/test.setup.d.ts +0 -0
- /package/dist/{ts-nestjs/vite.config.d.ts → vite.config.d.ts} +0 -0
- /package/dist/{ts-nestjs/vitest.config.d.ts → vitest.config.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,92 +1,88 @@
|
|
|
1
|
-
"use strict";var Dk=Object.create;var Vy=Object.defineProperty;var Lk=Object.getOwnPropertyDescriptor;var Uk=Object.getOwnPropertyNames;var zk=Object.getPrototypeOf,Bk=Object.prototype.hasOwnProperty;var Hk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uk(t))!Bk.call(e,i)&&i!==r&&Vy(e,i,{get:()=>t[i],enumerable:!(n=Lk(t,i))||n.enumerable});return e};var Vk=(e,t,r)=>(r=e!=null?Dk(zk(e)):{},Hk(t||!e||!e.__esModule?Vy(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("path"),pC=require("url"),wl=require("fs"),bp=require("os"),li=require("crypto"),Ep=require("stream"),di=require("util"),Gk=require("async_hooks"),Wk=require("perf_hooks"),Zk=require("express"),Kk=require("http"),Yk=require("https"),yg=require("events"),xp=require("buffer"),Xk=require("repl");var Pf=typeof document<"u"?document.currentScript:null;function Jk(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 Qk=Jk(or);var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Gy={};var Wy;function bg(){if(Wy)return Gy;Wy=1;var e;return(function(t){(function(r){var n=typeof globalThis=="object"?globalThis:typeof vt=="object"?vt:typeof self=="object"?self:typeof this=="object"?this:c(),i=a(t);typeof n.Reflect<"u"&&(i=a(n.Reflect,i)),r(i,n),typeof n.Reflect>"u"&&(n.Reflect=t);function a(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 o(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||o()}})(function(r,n){var i=Object.prototype.hasOwnProperty,a=typeof Symbol=="function",s=a&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=a&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!c&&!u,l={create:c?function(){return br(Object.create(null))}:u?function(){return br({__proto__:null})}:function(){return br({})},has:p?function(V,G){return i.call(V,G)}:function(V,G){return G in V},get:p?function(V,G){return i.call(V,G)?V[G]:void 0}:function(V,G){return V[G]}},d=Object.getPrototypeOf(Function),f=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ke(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Si(),m=typeof WeakMap=="function"?WeakMap:Ti(),v=a?Symbol.for("@reflect-metadata:registry"):void 0,_=_e(),g=Fe(_);function y(V,G,K,ne){if(N(K)){if(!I(V))throw new TypeError;if(!ee(G))throw new TypeError;return q(V,G)}else{if(!I(V))throw new TypeError;if(!M(G))throw new TypeError;if(!M(ne)&&!N(ne)&&!L(ne))throw new TypeError;return L(ne)&&(ne=void 0),K=R(K),D(V,G,K,ne)}}r("decorate",y);function b(V,G){function K(ne,he){if(!M(ne))throw new TypeError;if(!N(he)&&!se(he))throw new TypeError;Q(V,G,ne,he)}return K}r("metadata",b);function E(V,G,K,ne){if(!M(K))throw new TypeError;return N(ne)||(ne=R(ne)),Q(V,G,K,ne)}r("defineMetadata",E);function x(V,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),H(V,G,K)}r("hasMetadata",x);function O(V,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),k(V,G,K)}r("hasOwnMetadata",O);function S(V,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),F(V,G,K)}r("getMetadata",S);function w(V,G,K){if(!M(G))throw new TypeError;return N(K)||(K=R(K)),Z(V,G,K)}r("getOwnMetadata",w);function A(V,G){if(!M(V))throw new TypeError;return N(G)||(G=R(G)),U(V,G)}r("getMetadataKeys",A);function T(V,G){if(!M(V))throw new TypeError;return N(G)||(G=R(G)),$(V,G)}r("getOwnMetadataKeys",T);function P(V,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 ne=be(G,K,!1);return N(ne)?!1:ne.OrdinaryDeleteMetadata(V,G,K)}r("deleteMetadata",P);function q(V,G){for(var K=V.length-1;K>=0;--K){var ne=V[K],he=ne(G);if(!N(he)&&!L(he)){if(!ee(he))throw new TypeError;G=he}}return G}function D(V,G,K,ne){for(var he=V.length-1;he>=0;--he){var Ge=V[he],Be=Ge(G,K,ne);if(!N(Be)&&!L(Be)){if(!M(Be))throw new TypeError;ne=Be}}return ne}function H(V,G,K){var ne=k(V,G,K);if(ne)return!0;var he=xe(G);return L(he)?!1:H(V,he,K)}function k(V,G,K){var ne=be(G,K,!1);return N(ne)?!1:X(ne.OrdinaryHasOwnMetadata(V,G,K))}function F(V,G,K){var ne=k(V,G,K);if(ne)return Z(V,G,K);var he=xe(G);if(!L(he))return F(V,he,K)}function Z(V,G,K){var ne=be(G,K,!1);if(!N(ne))return ne.OrdinaryGetOwnMetadata(V,G,K)}function Q(V,G,K,ne){var he=be(K,ne,!0);he.OrdinaryDefineOwnMetadata(V,G,K,ne)}function U(V,G){var K=$(V,G),ne=xe(V);if(ne===null)return K;var he=U(ne,G);if(he.length<=0)return K;if(K.length<=0)return he;for(var Ge=new h,Be=[],we=0,ae=K;we<ae.length;we++){var ce=ae[we],le=Ge.has(ce);le||(Ge.add(ce),Be.push(ce))}for(var pe=0,Te=he;pe<Te.length;pe++){var ce=Te[pe],le=Ge.has(ce);le||(Ge.add(ce),Be.push(ce))}return Be}function $(V,G){var K=be(V,G,!1);return K?K.OrdinaryOwnMetadataKeys(V,G):[]}function C(V){if(V===null)return 1;switch(typeof V){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return V===null?1:6;default:return 6}}function N(V){return V===void 0}function L(V){return V===null}function B(V){return typeof V=="symbol"}function M(V){return typeof V=="object"?V!==null:typeof V=="function"}function j(V,G){switch(C(V)){case 0:return V;case 1:return V;case 2:return V;case 3:return V;case 4:return V;case 5:return V}var K="string",ne=de(V,s);if(ne!==void 0){var he=ne.call(V,K);if(M(he))throw new TypeError;return he}return z(V)}function z(V,G){var K,ne;{var he=V.toString;if(W(he)){var ne=he.call(V);if(!M(ne))return ne}var K=V.valueOf;if(W(K)){var ne=K.call(V);if(!M(ne))return ne}}throw new TypeError}function X(V){return!!V}function te(V){return""+V}function R(V){var G=j(V);return B(G)?G:te(G)}function I(V){return Array.isArray?Array.isArray(V):V instanceof Object?V instanceof Array:Object.prototype.toString.call(V)==="[object Array]"}function W(V){return typeof V=="function"}function ee(V){return typeof V=="function"}function se(V){switch(C(V)){case 3:return!0;case 4:return!0;default:return!1}}function re(V,G){return V===G||V!==V&&G!==G}function de(V,G){var K=V[G];if(K!=null){if(!W(K))throw new TypeError;return K}}function ge(V){var G=de(V,o);if(!W(G))throw new TypeError;var K=G.call(V);if(!M(K))throw new TypeError;return K}function Ee(V){return V.value}function Pe(V){var G=V.next();return G.done?!1:G}function Me(V){var G=V.return;G&&G.call(V)}function xe(V){var G=Object.getPrototypeOf(V);if(typeof V!="function"||V===d||G!==d)return G;var K=V.prototype,ne=K&&Object.getPrototypeOf(K);if(ne==null||ne===Object.prototype)return G;var he=ne.constructor;return typeof he!="function"||he===V?G:he}function Ae(){var V;!N(v)&&typeof n.Reflect<"u"&&!(v in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(V=Qe(n.Reflect));var G,K,ne,he=new m,Ge={registerProvider:Be,getProvider:ae,setProvider:le};return Ge;function Be(pe){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case V===pe:break;case N(G):G=pe;break;case G===pe:break;case N(K):K=pe;break;case K===pe:break;default:ne===void 0&&(ne=new h),ne.add(pe);break}}function we(pe,Te){if(!N(G)){if(G.isProviderFor(pe,Te))return G;if(!N(K)){if(K.isProviderFor(pe,Te))return G;if(!N(ne))for(var Ie=ge(ne);;){var De=Pe(Ie);if(!De)return;var ut=Ee(De);if(ut.isProviderFor(pe,Te))return Me(Ie),ut}}}if(!N(V)&&V.isProviderFor(pe,Te))return V}function ae(pe,Te){var Ie=he.get(pe),De;return N(Ie)||(De=Ie.get(Te)),N(De)&&(De=we(pe,Te),N(De)||(N(Ie)&&(Ie=new f,he.set(pe,Ie)),Ie.set(Te,De))),De}function ce(pe){if(N(pe))throw new TypeError;return G===pe||K===pe||!N(ne)&&ne.has(pe)}function le(pe,Te,Ie){if(!ce(Ie))throw new Error("Metadata provider not registered.");var De=ae(pe,Te);if(De!==Ie){if(!N(De))return!1;var ut=he.get(pe);N(ut)&&(ut=new f,he.set(pe,ut)),ut.set(Te,Ie)}return!0}}function _e(){var V;return!N(v)&&M(n.Reflect)&&Object.isExtensible(n.Reflect)&&(V=n.Reflect[v]),N(V)&&(V=Ae()),!N(v)&&M(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:V}),V}function Fe(V){var G=new m,K={isProviderFor:function(ce,le){var pe=G.get(ce);return N(pe)?!1:pe.has(le)},OrdinaryDefineOwnMetadata:Be,OrdinaryHasOwnMetadata:he,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:we,OrdinaryDeleteMetadata:ae};return _.registerProvider(K),K;function ne(ce,le,pe){var Te=G.get(ce),Ie=!1;if(N(Te)){if(!pe)return;Te=new f,G.set(ce,Te),Ie=!0}var De=Te.get(le);if(N(De)){if(!pe)return;if(De=new f,Te.set(le,De),!V.setProvider(ce,le,K))throw Te.delete(le),Ie&&G.delete(ce),new Error("Wrong provider for target.")}return De}function he(ce,le,pe){var Te=ne(le,pe,!1);return N(Te)?!1:X(Te.has(ce))}function Ge(ce,le,pe){var Te=ne(le,pe,!1);if(!N(Te))return Te.get(ce)}function Be(ce,le,pe,Te){var Ie=ne(pe,Te,!0);Ie.set(ce,le)}function we(ce,le){var pe=[],Te=ne(ce,le,!1);if(N(Te))return pe;for(var Ie=Te.keys(),De=ge(Ie),ut=0;;){var In=Pe(De);if(!In)return pe.length=ut,pe;var Pi=Ee(In);try{pe[ut]=Pi}catch(Ai){try{Me(De)}finally{throw Ai}}ut++}}function ae(ce,le,pe){var Te=ne(le,pe,!1);if(N(Te)||!Te.delete(ce))return!1;if(Te.size===0){var Ie=G.get(le);N(Ie)||(Ie.delete(pe),Ie.size===0&&G.delete(Ie))}return!0}}function Qe(V){var G=V.defineMetadata,K=V.hasOwnMetadata,ne=V.getOwnMetadata,he=V.getOwnMetadataKeys,Ge=V.deleteMetadata,Be=new m,we={isProviderFor:function(ae,ce){var le=Be.get(ae);return!N(le)&&le.has(ce)?!0:he(ae,ce).length?(N(le)&&(le=new h,Be.set(ae,le)),le.add(ce),!0):!1},OrdinaryDefineOwnMetadata:G,OrdinaryHasOwnMetadata:K,OrdinaryGetOwnMetadata:ne,OrdinaryOwnMetadataKeys:he,OrdinaryDeleteMetadata:Ge};return we}function be(V,G,K){var ne=_.getProvider(V,G);if(!N(ne))return ne;if(K){if(_.setProvider(V,G,g))return g;throw new Error("Illegal state.")}}function Ke(){var V={},G=[],K=(function(){function we(ae,ce,le){this._index=0,this._keys=ae,this._values=ce,this._selector=le}return we.prototype["@@iterator"]=function(){return this},we.prototype[o]=function(){return this},we.prototype.next=function(){var ae=this._index;if(ae>=0&&ae<this._keys.length){var ce=this._selector(this._keys[ae],this._values[ae]);return ae+1>=this._keys.length?(this._index=-1,this._keys=G,this._values=G):this._index++,{value:ce,done:!1}}return{value:void 0,done:!0}},we.prototype.throw=function(ae){throw this._index>=0&&(this._index=-1,this._keys=G,this._values=G),ae},we.prototype.return=function(ae){return this._index>=0&&(this._index=-1,this._keys=G,this._values=G),{value:ae,done:!0}},we})(),ne=(function(){function we(){this._keys=[],this._values=[],this._cacheKey=V,this._cacheIndex=-2}return Object.defineProperty(we.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),we.prototype.has=function(ae){return this._find(ae,!1)>=0},we.prototype.get=function(ae){var ce=this._find(ae,!1);return ce>=0?this._values[ce]:void 0},we.prototype.set=function(ae,ce){var le=this._find(ae,!0);return this._values[le]=ce,this},we.prototype.delete=function(ae){var ce=this._find(ae,!1);if(ce>=0){for(var le=this._keys.length,pe=ce+1;pe<le;pe++)this._keys[pe-1]=this._keys[pe],this._values[pe-1]=this._values[pe];return this._keys.length--,this._values.length--,re(ae,this._cacheKey)&&(this._cacheKey=V,this._cacheIndex=-2),!0}return!1},we.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=V,this._cacheIndex=-2},we.prototype.keys=function(){return new K(this._keys,this._values,he)},we.prototype.values=function(){return new K(this._keys,this._values,Ge)},we.prototype.entries=function(){return new K(this._keys,this._values,Be)},we.prototype["@@iterator"]=function(){return this.entries()},we.prototype[o]=function(){return this.entries()},we.prototype._find=function(ae,ce){if(!re(this._cacheKey,ae)){this._cacheIndex=-1;for(var le=0;le<this._keys.length;le++)if(re(this._keys[le],ae)){this._cacheIndex=le;break}}return this._cacheIndex<0&&ce&&(this._cacheIndex=this._keys.length,this._keys.push(ae),this._values.push(void 0)),this._cacheIndex},we})();return ne;function he(we,ae){return we}function Ge(we,ae){return ae}function Be(we,ae){return[we,ae]}}function Si(){var V=(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[o]=function(){return this.keys()},G})();return V}function Ti(){var V=16,G=l.create(),K=ne();return(function(){function ae(){this._key=ne()}return ae.prototype.has=function(ce){var le=he(ce,!1);return le!==void 0?l.has(le,this._key):!1},ae.prototype.get=function(ce){var le=he(ce,!1);return le!==void 0?l.get(le,this._key):void 0},ae.prototype.set=function(ce,le){var pe=he(ce,!0);return pe[this._key]=le,this},ae.prototype.delete=function(ce){var le=he(ce,!1);return le!==void 0?delete le[this._key]:!1},ae.prototype.clear=function(){this._key=ne()},ae})();function ne(){var ae;do ae="@@WeakMap@@"+we();while(l.has(G,ae));return G[ae]=!0,ae}function he(ae,ce){if(!i.call(ae,K)){if(!ce)return;Object.defineProperty(ae,K,{value:l.create()})}return ae[K]}function Ge(ae,ce){for(var le=0;le<ce;++le)ae[le]=Math.random()*255|0;return ae}function Be(ae){if(typeof Uint8Array=="function"){var ce=new Uint8Array(ae);return typeof crypto<"u"?crypto.getRandomValues(ce):typeof msCrypto<"u"?msCrypto.getRandomValues(ce):Ge(ce,ae),ce}return Ge(new Array(ae),ae)}function we(){var ae=Be(V);ae[6]=ae[6]&79|64,ae[8]=ae[8]&191|128;for(var ce="",le=0;le<V;++le){var pe=ae[le];(le===4||le===6||le===8)&&(ce+="-"),pe<16&&(ce+="0"),ce+=pe.toString(16).toLowerCase()}return ce}}function br(V){return V.__=void 0,delete V.__,V}})})(e||(e={})),Gy}bg();var It={exports:{}};const $k="17.3.1",eD={version:$k};var Zy;function tD(){if(Zy)return It.exports;Zy=1;const e=wl,t=or,r=bp,n=li,i=eD.version,a=["🔐 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 a[Math.floor(Math.random()*a.length)]}function o(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
|
-
`),H=H.replace(/\\r/g,"\r")),T[D]=H}return T}function d(A){A=A||{};const T=g(A);A.path=T;const P=w.configDotenv(A);if(!P.parsed){const k=new Error(`MISSING_DATA: Cannot parse ${T} for an unknown reason`);throw k.code="MISSING_DATA",k}const q=v(A).split(","),D=q.length;let H;for(let k=0;k<D;k++)try{const F=q[k].trim(),Z=_(P,F);H=w.decrypt(Z.ciphertext,Z.key);break}catch(F){if(k+1>=D)throw F}return w.parse(H)}function f(A){console.error(`[dotenv@${i}][WARN] ${A}`)}function h(A){console.log(`[dotenv@${i}][DEBUG] ${A}`)}function m(A){console.log(`[dotenv@${i}] ${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(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=P.password;if(!q){const F=new Error("INVALID_DOTENV_KEY: Missing key part");throw F.code="INVALID_DOTENV_KEY",F}const D=P.searchParams.get("environment");if(!D){const F=new Error("INVALID_DOTENV_KEY: Missing environment part");throw F.code="INVALID_DOTENV_KEY",F}const H=`DOTENV_VAULT_${D.toUpperCase()}`,k=A.parsed[H];if(!k){const F=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${H} in your .env.vault file.`);throw F.code="NOT_FOUND_DOTENV_ENVIRONMENT",F}return{ciphertext:k,key:q}}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=o(process.env.DOTENV_CONFIG_DEBUG||A&&A.debug),P=o(process.env.DOTENV_CONFIG_QUIET||A&&A.quiet);(T||!P)&&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 T=t.resolve(process.cwd(),".env");let P="utf8",q=process.env;A&&A.processEnv!=null&&(q=A.processEnv);let D=o(q.DOTENV_CONFIG_DEBUG||A&&A.debug),H=o(q.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 k=[T];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 $=w.parse(e.readFileSync(U,{encoding:P}));w.populate(Z,$,A)}catch($){D&&h(`Failed to load ${U} ${$.message}`),F=$}const Q=w.populate(q,Z,A);if(D=o(q.DOTENV_CONFIG_DEBUG||D),H=o(q.DOTENV_CONFIG_QUIET||H),D||!H){const U=Object.keys(Q).length,$=[];for(const C of k)try{const N=t.relative(process.cwd(),C);$.push(N)}catch(N){D&&h(`Failed to load ${C} ${N.message}`),F=N}m(`injecting env (${U}) from ${$.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 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 q=Buffer.from(A,"base64");const D=q.subarray(0,12),H=q.subarray(-16);q=q.subarray(12,-16);try{const k=n.createDecipheriv("aes-256-gcm",P,D);return k.setAuthTag(H),`${k.update(q)}${k.final()}`}catch(k){const F=k instanceof RangeError,Z=k.message==="Invalid key length",Q=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(Q){const U=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw U.code="DECRYPTION_FAILED",U}else throw k}}function S(A,T,P={}){const q=!!(P&&P.debug),D=!!(P&&P.override),H={};if(typeof T!="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(T))Object.prototype.hasOwnProperty.call(A,k)?(D===!0&&(A[k]=T[k],H[k]=T[k]),q&&h(D===!0?`"${k}" is already defined and WAS overwritten`:`"${k}" is already defined and was NOT overwritten`)):(A[k]=T[k],H[k]=T[k]);return H}const w={configDotenv:E,_configVault:b,_parseVault:d,config:x,decrypt:O,parse:l,populate:S};return It.exports.configDotenv=w.configDotenv,It.exports._configVault=w._configVault,It.exports._parseVault=w._parseVault,It.exports.config=w.config,It.exports.decrypt=w.decrypt,It.exports.parse=w.parse,It.exports.populate=w.populate,It.exports=w,It.exports}var rD=tD();const nD=pC.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:Pf&&Pf.tagName.toUpperCase()==="SCRIPT"&&Pf.src||new URL("index.cjs",document.baseURI).href),iD=or.dirname(nD),aD=(e={})=>{const{env:t,configPath:r}=e,n=or.resolve(iD,`${r??"."}/.env${t?`.${t}`:""}`),{parsed:i}=rD.config({path:n});return i};var Af,Ky;function oD(){if(Ky)return Af;Ky=1,Af=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(d,f,h,m){typeof m>"u"&&(m=i()),o(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 o(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++)o(d[y],y,y,m,d,_,g);else{var b=Object.keys(d);for(y=0;y<b.length;y++){var E=b[y];o(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=i());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 Af}oD();var Rf={},xr={},Ri={},Mf={},If={exports:{}},Yy;function oe(){return Yy||(Yy=1,(function(e){var t,r,n,i,a,s,o,c,u,p,l,d,f,h,m,v,_,g,y,b,E,x,O,S,w,A,T,P,q,D,H,k;(function(F){var Z=typeof vt=="object"?vt:typeof self=="object"?self:typeof this=="object"?this:{};F(Q(Z,Q(e.exports)));function Q(U,$){return U!==Z&&(typeof Object.create=="function"?Object.defineProperty(U,"__esModule",{value:!0}):U.__esModule=!0),function(C,N){return U[C]=$?$(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},i=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 X=C.length-1;X>=0;X--)(z=C[X])&&(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},a=function(C,N){return function(L,B){N(L,B,C)}},s=function(C,N,L,B,M,j){function z(Ee){if(Ee!==void 0&&typeof Ee!="function")throw new TypeError("Function expected");return Ee}for(var X=B.kind,te=X==="getter"?"get":X==="setter"?"set":"value",R=!N&&C?B.static?C:C.prototype:null,I=N||(R?Object.getOwnPropertyDescriptor(R,B.name):{}),W,ee=!1,se=L.length-1;se>=0;se--){var re={};for(var de in B)re[de]=de==="access"?{}:B[de];for(var de in B.access)re.access[de]=B.access[de];re.addInitializer=function(Ee){if(ee)throw new TypeError("Cannot add initializers after decoration has completed");j.push(z(Ee||null))};var ge=(0,L[se])(X==="accessor"?{get:I.get,set:I.set}:I[te],re);if(X==="accessor"){if(ge===void 0)continue;if(ge===null||typeof ge!="object")throw new TypeError("Object expected");(W=z(ge.get))&&(I.get=W),(W=z(ge.set))&&(I.set=W),(W=z(ge.init))&&M.unshift(W)}else(W=z(ge))&&(X==="field"?M.unshift(W):I[te]=W)}R&&Object.defineProperty(R,B.name,I),ee=!0},o=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 X(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(X,te)}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=X(0),z.throw=X(1),z.return=X(2),typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function X(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=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(X){z={error:X}}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,X=j.length;z<X;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),X("next"),X("throw"),X("return",z),M[Symbol.asyncIterator]=function(){return this},M;function z(se){return function(re){return Promise.resolve(re).then(se,W)}}function X(se,re){B[se]&&(M[se]=function(de){return new Promise(function(ge,Ee){j.push([se,de,ge,Ee])>1||te(se,de)})},re&&(M[se]=re(M[se])))}function te(se,re){try{R(B[se](re))}catch(de){ee(j[0][3],de)}}function R(se){se.value instanceof y?Promise.resolve(se.value.v).then(I,W):ee(j[0][2],se)}function I(se){te("next",se)}function W(se){te("throw",se)}function ee(se,re){se(re),j.shift(),j.length&&te(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(X,te){z=C[j](z),M(X,te,z.done,z.value)})}}function M(j,z,X,te){Promise.resolve(te).then(function(R){j({value:R,done:X})},z)}},O=function(C,N){return Object.defineProperty?Object.defineProperty(C,"raw",{value:N}):C.raw=N,C};var Q=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 Q(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)},T=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},P=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 $=typeof SuppressedError=="function"?SuppressedError:function(C,N,L){var B=new Error(L);return B.name="SuppressedError",B.error=C,B.suppressed=N,B};H=function(C){function N(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 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",i),F("__param",a),F("__esDecorate",s),F("__runInitializers",o),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",T),F("__classPrivateFieldIn",P),F("__addDisposableResource",D),F("__disposeResources",H),F("__rewriteRelativeImportExtension",k)})})(If)),If.exports}var Cf={},jf={},Xl={},Xy;function sD(){if(Xy)return Xl;Xy=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.Bind=e;function e(...t){return(r,n,i)=>(t.forEach((a,s)=>a(r,n,s)),i)}return Xl}var Jl={},Nf={},Jy;function Oe(){return Jy||(Jy=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__"})(Nf)),Nf}var Qy;function cD(){if(Qy)return Jl;Qy=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.Catch=t;const e=Oe();function t(...r){return n=>{Reflect.defineMetadata(e.CATCH_WATERMARK,!0,n),Reflect.defineMetadata(e.FILTER_CATCH_EXCEPTIONS,r,n)}}return Jl}var Ql={},qf={},$y;function ie(){return $y||($y=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 i=h=>h&&typeof h=="string"?h.charAt(0)!=="/"&&h.substring(0,2)!=="{/"?"/"+h:h:"";e.addLeadingSlash=i;const a=h=>h?h.startsWith("/")?("/"+h.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+h.replace(/\/+$/,""):"/";e.normalizePath=a;const s=h=>h[h.length-1]==="/"?h.slice(0,h.length-1):h;e.stripEndSlash=s;const o=h=>typeof h=="function";e.isFunction=o;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})(qf)),qf}var eb;function uD(){if(eb)return Ql;eb=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.Controller=r;const e=Oe(),t=ie();function r(n){const[a,s,o,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,a,u),Reflect.defineMetadata(e.HOST_METADATA,s,u),Reflect.defineMetadata(e.SCOPE_OPTIONS_METADATA,o,u),Reflect.defineMetadata(e.VERSION_METADATA,c,u)}}return Ql}var Nn={},tb;function lD(){if(tb)return Nn;tb=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.Dependencies=void 0,Nn.flatten=t;const e=Oe();function t(n){const i=[].concat(...n);return i.some(Array.isArray)?t(i):i}const r=(...n)=>{const i=t(n);return a=>{Reflect.defineMetadata(e.PARAMTYPES_METADATA,i,a)}};return Nn.Dependencies=r,Nn}var Mi={},$l={},rb;function Sl(){if(rb)return $l;rb=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.extendArrayMetadata=e;function e(t,r,n){const a=[...Reflect.getMetadata(t,n)||[],...r];Reflect.defineMetadata(t,a,n)}return $l}var qn={},nb;function Op(){if(nb)return qn;nb=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.InvalidDecoratorItemException=void 0,qn.validateEach=t;class e extends Error{constructor(n,i,a){const s=`Invalid ${i} passed to ${n}() decorator (${a}).`;super(s),this.msg=s}what(){return this.msg}}qn.InvalidDecoratorItemException=e;function t(r,n,i,a,s){if(!r||!r.name)return!0;if(n.some(c=>!i(c)))throw new e(a,s,r.name);return!0}return qn}var ib;function dD(){if(ib)return Mi;ib=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.UseFilters=void 0;const e=Oe(),t=Sl(),r=ie(),n=Op(),i=(...s)=>a(...s);Mi.UseFilters=i;function a(...s){return(o,c,u)=>{const p=l=>l&&((0,r.isFunction)(l)||(0,r.isFunction)(l.catch));return u?((0,n.validateEach)(o.constructor,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,u.value),u):((0,n.validateEach)(o,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,o),o)}}return Mi}var ed={},ab;function pD(){if(ab)return ed;ab=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.Inject=r;const e=Oe(),t=ie();function r(n){const i=arguments.length>0;return(a,s,o)=>{let c=n||Reflect.getMetadata("design:type",a,s);if(!c&&!i&&(c=Reflect.getMetadata(e.PARAMTYPES_METADATA,a,s)?.[o]),!(0,t.isUndefined)(o)){let p=Reflect.getMetadata(e.SELF_DECLARED_DEPS_METADATA,a)||[];p=[...p,{index:o,param:c}],Reflect.defineMetadata(e.SELF_DECLARED_DEPS_METADATA,p,a);return}let u=Reflect.getMetadata(e.PROPERTY_DEPS_METADATA,a.constructor)||[];u=[...u,{key:s,type:c}],Reflect.defineMetadata(e.PROPERTY_DEPS_METADATA,u,a.constructor)}}return ed}var Ii={},Ff={},ob;function yn(){if(ob)return Ff;ob=1;for(var e=256,t=[],r=256,n;e--;)t[e]=(e+256).toString(16).substring(1);function i(a){var s=0,o=a||11;if(!n||e+o>r*2)for(n="",e=0;s<r;s++)n+=t[Math.random()*256|0];return n.substring(e,e+++o)}return Ff.uid=i,Ff}var sb;function bn(){if(sb)return Ii;sb=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.Injectable=r,Ii.mixin=n;const e=yn(),t=Oe();function r(i){return a=>{Reflect.defineMetadata(t.INJECTABLE_WATERMARK,!0,a),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,i,a)}}function n(i){return Object.defineProperty(i,"name",{value:(0,e.uid)(21)}),r()(i),i}return Ii}var td={},cb;function Tl(){if(cb)return td;cb=1,Object.defineProperty(td,"__esModule",{value:!0}),td.Optional=r;const e=Oe(),t=ie();function r(){return(n,i,a)=>{if(!(0,t.isUndefined)(a)){const o=Reflect.getMetadata(e.OPTIONAL_DEPS_METADATA,n)||[];Reflect.defineMetadata(e.OPTIONAL_DEPS_METADATA,[...o,a],n);return}const s=Reflect.getMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,n.constructor)||[];Reflect.defineMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,[...s,i],n.constructor)}}return td}var Ci={},ub;function fD(){if(ub)return Ci;ub=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.SetMetadata=void 0;const e=(t,r)=>{const n=(i,a,s)=>s?(Reflect.defineMetadata(t,r,s.value),s):(Reflect.defineMetadata(t,r,i),i);return n.KEY=t,n};return Ci.SetMetadata=e,Ci}var rd={},lb;function hD(){if(lb)return rd;lb=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.UseGuards=i;const e=Oe(),t=Sl(),r=ie(),n=Op();function i(...a){return(s,o,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.canActivate));return c?((0,n.validateEach)(s.constructor,a,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,a,c.value),c):((0,n.validateEach)(s,a,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,a,s),s)}}return rd}var nd={},db;function vD(){if(db)return nd;db=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.UseInterceptors=i;const e=Oe(),t=Sl(),r=ie(),n=Op();function i(...a){return(s,o,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.intercept));return c?((0,n.validateEach)(s.constructor,a,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,a,c.value),c):((0,n.validateEach)(s,a,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,a,s),s)}}return nd}var id={},pb;function mD(){if(pb)return id;pb=1,Object.defineProperty(id,"__esModule",{value:!0}),id.UsePipes=i;const e=Oe(),t=Sl(),r=ie(),n=Op();function i(...a){return(s,o,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.transform));return c?((0,t.extendArrayMetadata)(e.PIPES_METADATA,a,c.value),c):((0,n.validateEach)(s,a,u,"@UsePipes","pipe"),(0,t.extendArrayMetadata)(e.PIPES_METADATA,a,s),s)}}return id}var ad={},fb;function _D(){if(fb)return ad;fb=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.applyDecorators=e;function e(...t){return(r,n,i)=>{for(const a of t){if(r instanceof Function&&!i){a(r);continue}a(r,n,i)}}}return ad}var od={},hb;function gD(){if(hb)return od;hb=1,Object.defineProperty(od,"__esModule",{value:!0}),od.Version=t;const e=Oe();function t(r){return Array.isArray(r)&&(r=Array.from(new Set(r))),(n,i,a)=>(Reflect.defineMetadata(e.VERSION_METADATA,r,a.value),a)}return od}var vb;function sr(){return vb||(vb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(sD(),e),t.__exportStar(cD(),e),t.__exportStar(uD(),e),t.__exportStar(lD(),e),t.__exportStar(dD(),e),t.__exportStar(pD(),e),t.__exportStar(bn(),e),t.__exportStar(Tl(),e),t.__exportStar(fD(),e),t.__exportStar(hD(),e),t.__exportStar(vD(),e),t.__exportStar(mD(),e),t.__exportStar(_D(),e),t.__exportStar(gD(),e)})(jf)),jf}var kf={},sd={},mb;function yD(){if(mb)return sd;mb=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.Global=t;const e=Oe();function t(){return r=>{Reflect.defineMetadata(e.GLOBAL_MODULE_METADATA,!0,r)}}return sd}var cd={},Df={},_b;function bD(){return _b||(_b=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=i;const t=Oe(),r=(a,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 i(a){const s=o=>{if(!n.includes(o))throw new Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${o}`)};a.forEach(s)}})(Df)),Df}var gb;function ED(){if(gb)return cd;gb=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.Module=t;const e=bD();function t(r){const n=Object.keys(r);return(0,e.validateModuleKeys)(n),i=>{for(const a in r)Object.hasOwnProperty.call(r,a)&&Reflect.defineMetadata(a,r[a],i)}}return cd}var yb;function xD(){return yb||(yb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(yD(),e),t.__exportStar(ED(),e)})(kf)),kf}var Lf={},Uf={},ji={},bb;function fi(){if(bb)return ji;bb=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.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||(ji.RequestMethod=e={})),ji}var Eb;function OD(){return Eb||(Eb=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=Oe(),r=fi(),n={[t.PATH_METADATA]:"/",[t.METHOD_METADATA]:r.RequestMethod.GET},i=(s=n)=>{const o=s[t.PATH_METADATA],c=o&&o.length?o:"/",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=i;const a=s=>o=>(0,e.RequestMapping)({[t.PATH_METADATA]:o,[t.METHOD_METADATA]:s});e.Post=a(r.RequestMethod.POST),e.Get=a(r.RequestMethod.GET),e.Delete=a(r.RequestMethod.DELETE),e.Put=a(r.RequestMethod.PUT),e.Patch=a(r.RequestMethod.PATCH),e.Options=a(r.RequestMethod.OPTIONS),e.Head=a(r.RequestMethod.HEAD),e.All=a(r.RequestMethod.ALL),e.Search=a(r.RequestMethod.SEARCH),e.Propfind=a(r.RequestMethod.PROPFIND),e.Proppatch=a(r.RequestMethod.PROPPATCH),e.Mkcol=a(r.RequestMethod.MKCOL),e.Copy=a(r.RequestMethod.COPY),e.Move=a(r.RequestMethod.MOVE),e.Lock=a(r.RequestMethod.LOCK),e.Unlock=a(r.RequestMethod.UNLOCK)})(Uf)),Uf}var zf={},Ni={},xb;function wp(){if(xb)return Ni;xb=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.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||(Ni.RouteParamtypes=e={})),Ni}var Ob;function wD(){return Ob||(Ob=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=i,e.UploadedFile=c,e.UploadedFiles=u,e.Query=p,e.Body=l,e.RawBody=d,e.Param=f,e.HostParam=h;const t=Oe(),r=wp(),n=ie();function i(m,v,_,g,...y){return{...m,[`${v}:${_}`]:{index:_,data:g,pipes:y}}}function a(m){return v=>(_,g,y)=>{const b=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,_.constructor,g)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(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,i(E,m,b,O,...S),g.constructor,y)};e.Request=a(r.RouteParamtypes.REQUEST);const o=m=>(v,_,g)=>(m?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,m?.passthrough,v.constructor,_),a(r.RouteParamtypes.RESPONSE)()(v,_,g));e.Response=o,e.Next=a(r.RouteParamtypes.NEXT),e.Ip=a(r.RouteParamtypes.IP),e.Session=a(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=a(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 a(r.RouteParamtypes.HOST)(m)}e.Req=e.Request,e.Res=e.Response})(zf)),zf}var ud={},wb;function SD(){if(wb)return ud;wb=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.HttpCode=t;const e=Oe();function t(r){return(n,i,a)=>(Reflect.defineMetadata(e.HTTP_CODE_METADATA,r,a.value),a)}return ud}var ld={},dd={},Sb;function TD(){if(Sb)return dd;Sb=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.assignCustomParameterMetadata=t;const e=Oe();function t(r,n,i,a,s,...o){return{...r,[`${n}${e.CUSTOM_ROUTE_ARGS_METADATA}:${i}`]:{index:i,factory:a,data:s,pipes:o}}}return dd}var Tb;function PD(){if(Tb)return ld;Tb=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.createParamDecorator=i;const e=yn(),t=Oe(),r=TD(),n=ie();function i(a,s=[]){const o=(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,o,d,a,v,..._),p.constructor,l),s.forEach(g=>g(p,l,d))}}return ld}var pd={},Pb;function AD(){if(Pb)return pd;Pb=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.Render=t;const e=Oe();function t(r){return(n,i,a)=>(Reflect.defineMetadata(e.RENDER_METADATA,r,a.value),a)}return pd}var fd={},Ab;function RD(){if(Ab)return fd;Ab=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.Header=r;const e=Oe(),t=Sl();function r(n,i){return(a,s,o)=>((0,t.extendArrayMetadata)(e.HEADERS_METADATA,[{name:n,value:i}],o.value),o)}return fd}var hd={},Rb;function MD(){if(Rb)return hd;Rb=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.Redirect=t;const e=Oe();function t(r="",n){return(i,a,s)=>(Reflect.defineMetadata(e.REDIRECT_METADATA,{statusCode:n,url:r},s.value),s)}return hd}var vd={},Mb;function ID(){if(Mb)return vd;Mb=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.Sse=r;const e=Oe(),t=fi();function r(n,i={[e.METHOD_METADATA]:t.RequestMethod.GET}){return(a,s,o)=>(n=n&&n.length?n:"/",Reflect.defineMetadata(e.PATH_METADATA,n,o.value),Reflect.defineMetadata(e.METHOD_METADATA,i[e.METHOD_METADATA],o.value),Reflect.defineMetadata(e.SSE_METADATA,!0,o.value),o)}return vd}var Ib;function CD(){return Ib||(Ib=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(OD(),e),t.__exportStar(wD(),e),t.__exportStar(SD(),e),t.__exportStar(PD(),e),t.__exportStar(AD(),e),t.__exportStar(RD(),e),t.__exportStar(MD(),e),t.__exportStar(ID(),e)})(Lf)),Lf}var Cb;function Eg(){return Cb||(Cb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(sr(),e),t.__exportStar(xD(),e),t.__exportStar(CD(),e)})(Cf)),Cf}var Bf={},qi={},jb;function Ne(){if(jb)return qi;jb=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.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||(qi.HttpStatus=e={})),qi}var Fi={},Nb;function jD(){if(Nb)return Fi;Nb=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.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||(Fi.ShutdownSignal=e={})),Fi}var ki={},qb;function ND(){if(qb)return ki;qb=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.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||(ki.VersioningType=e={})),ki}var Fb;function Pl(){return Fb||(Fb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(fi(),e),t.__exportStar(Ne(),e),t.__exportStar(jD(),e),t.__exportStar(ND(),e)})(Bf)),Bf}var Hf={},Di={},Li={},Ui={},kb;function fC(){if(kb)return Ui;kb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.IntrinsicException=void 0;class e extends Error{}return Ui.IntrinsicException=e,Ui}var Db;function We(){if(Db)return Li;Db=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.HttpException=void 0;const e=ie(),t=fC();class r extends t.IntrinsicException{constructor(i,a,s){super(),this.response=i,this.status=a,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(i,a,s){return i?(0,e.isString)(i)||Array.isArray(i)||(0,e.isNumber)(i)?{message:i,error:a,statusCode:s}:i:{message:a,statusCode:s}}static getDescriptionFrom(i){return(0,e.isString)(i)?i:i?.description}static getHttpExceptionOptionsFrom(i){return(0,e.isString)(i)?{}:i}static extractDescriptionAndOptionsFrom(i){const a=(0,e.isString)(i)?i:i?.description,s=(0,e.isString)(i)?{}:i;return{description:a,httpExceptionOptions:s}}}return Li.HttpException=r,Li}var Lb;function qD(){if(Lb)return Di;Lb=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.BadGatewayException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Bad Gateway"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.BAD_GATEWAY),e.HttpStatus.BAD_GATEWAY,o)}}return Di.BadGatewayException=r,Di}var zi={},Ub;function FD(){if(Ub)return zi;Ub=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.BadRequestException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Bad Request"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.BAD_REQUEST),e.HttpStatus.BAD_REQUEST,o)}}return zi.BadRequestException=r,zi}var Bi={},zb;function kD(){if(zb)return Bi;zb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.ConflictException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Conflict"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.CONFLICT),e.HttpStatus.CONFLICT,o)}}return Bi.ConflictException=r,Bi}var Hi={},Bb;function DD(){if(Bb)return Hi;Bb=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.ForbiddenException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Forbidden"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.FORBIDDEN),e.HttpStatus.FORBIDDEN,o)}}return Hi.ForbiddenException=r,Hi}var Vi={},Hb;function LD(){if(Hb)return Vi;Hb=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.GatewayTimeoutException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Gateway Timeout"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.GATEWAY_TIMEOUT),e.HttpStatus.GATEWAY_TIMEOUT,o)}}return Vi.GatewayTimeoutException=r,Vi}var Gi={},Vb;function UD(){if(Vb)return Gi;Vb=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.GoneException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Gone"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.GONE),e.HttpStatus.GONE,o)}}return Gi.GoneException=r,Gi}var Wi={},Gb;function zD(){if(Gb)return Wi;Gb=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.HttpVersionNotSupportedException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="HTTP Version Not Supported"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,o)}}return Wi.HttpVersionNotSupportedException=r,Wi}var Zi={},Wb;function BD(){if(Wb)return Zi;Wb=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.ImATeapotException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="I'm a teapot"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.I_AM_A_TEAPOT),e.HttpStatus.I_AM_A_TEAPOT,o)}}return Zi.ImATeapotException=r,Zi}var Ki={},Zb;function HD(){if(Zb)return Ki;Zb=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.InternalServerErrorException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Internal Server Error"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.INTERNAL_SERVER_ERROR),e.HttpStatus.INTERNAL_SERVER_ERROR,o)}}return Ki.InternalServerErrorException=r,Ki}var Yi={},Kb;function VD(){if(Kb)return Yi;Kb=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.MethodNotAllowedException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Method Not Allowed"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.METHOD_NOT_ALLOWED),e.HttpStatus.METHOD_NOT_ALLOWED,o)}}return Yi.MethodNotAllowedException=r,Yi}var Xi={},Yb;function GD(){if(Yb)return Xi;Yb=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.MisdirectedException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Misdirected"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.MISDIRECTED),e.HttpStatus.MISDIRECTED,o)}}return Xi.MisdirectedException=r,Xi}var Ji={},Xb;function WD(){if(Xb)return Ji;Xb=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.NotAcceptableException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Not Acceptable"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.NOT_ACCEPTABLE),e.HttpStatus.NOT_ACCEPTABLE,o)}}return Ji.NotAcceptableException=r,Ji}var Qi={},Jb;function ZD(){if(Jb)return Qi;Jb=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.NotFoundException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Not Found"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.NOT_FOUND),e.HttpStatus.NOT_FOUND,o)}}return Qi.NotFoundException=r,Qi}var $i={},Qb;function KD(){if(Qb)return $i;Qb=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.NotImplementedException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Not Implemented"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.NOT_IMPLEMENTED),e.HttpStatus.NOT_IMPLEMENTED,o)}}return $i.NotImplementedException=r,$i}var ea={},$b;function YD(){if($b)return ea;$b=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.PayloadTooLargeException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Payload Too Large"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.PAYLOAD_TOO_LARGE),e.HttpStatus.PAYLOAD_TOO_LARGE,o)}}return ea.PayloadTooLargeException=r,ea}var ta={},eE;function XD(){if(eE)return ta;eE=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.PreconditionFailedException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Precondition Failed"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.PRECONDITION_FAILED),e.HttpStatus.PRECONDITION_FAILED,o)}}return ta.PreconditionFailedException=r,ta}var ra={},tE;function JD(){if(tE)return ra;tE=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.RequestTimeoutException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Request Timeout"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.REQUEST_TIMEOUT),e.HttpStatus.REQUEST_TIMEOUT,o)}}return ra.RequestTimeoutException=r,ra}var na={},rE;function QD(){if(rE)return na;rE=1,Object.defineProperty(na,"__esModule",{value:!0}),na.ServiceUnavailableException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Service Unavailable"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.SERVICE_UNAVAILABLE),e.HttpStatus.SERVICE_UNAVAILABLE,o)}}return na.ServiceUnavailableException=r,na}var ia={},nE;function $D(){if(nE)return ia;nE=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.UnauthorizedException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Unauthorized"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.UNAUTHORIZED),e.HttpStatus.UNAUTHORIZED,o)}}return ia.UnauthorizedException=r,ia}var aa={},iE;function eL(){if(iE)return aa;iE=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.UnprocessableEntityException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Unprocessable Entity"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.UNPROCESSABLE_ENTITY),e.HttpStatus.UNPROCESSABLE_ENTITY,o)}}return aa.UnprocessableEntityException=r,aa}var oa={},aE;function tL(){if(aE)return oa;aE=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.UnsupportedMediaTypeException=void 0;const e=Ne(),t=We();class r extends t.HttpException{constructor(i,a="Unsupported Media Type"){const{description:s,httpExceptionOptions:o}=t.HttpException.extractDescriptionAndOptionsFrom(a);super(t.HttpException.createBody(i,s,e.HttpStatus.UNSUPPORTED_MEDIA_TYPE),e.HttpStatus.UNSUPPORTED_MEDIA_TYPE,o)}}return oa.UnsupportedMediaTypeException=r,oa}var oE;function xg(){return oE||(oE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(qD(),e),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(We(),e),t.__exportStar(BD(),e),t.__exportStar(HD(),e),t.__exportStar(fC(),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)})(Hf)),Hf}var Vf={},sa={},Gf={},Fn={},Wf={},sE;function cr(){return sE||(sE=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=>i=>(0,e.isColorAllowed)()?n(i):i;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`)})(Wf)),Wf}var md={},cE;function hC(){if(cE)return md;cE=1,Object.defineProperty(md,"__esModule",{value:!0}),md.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 i=-1/0;for(const s of n){const o=e[s];o>i&&(i=o)}return e[r]>=i}return md}var uE;function Og(){if(uE)return Fn;uE=1;var e;Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.ConsoleLogger=void 0;const t=oe(),r=di,n=sr(),i=cr(),a=ie(),s=hC(),o=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,a.isString)(d)?[d,f]:f?[void 0,f]:[d?.context,d];m=m??{},m.logLevels??=c,m.colors??=m.colors??(m.json?!1:(0,i.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
|
-
|
|
5
|
-
`}stringifyMessage(d,f){if((0,a.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,a.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,i.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??o,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,a.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,a.isString)(m)&&!(0,a.isUndefined)(m)?{messages:f,context:h}:{stack:m,messages:f.slice(0,f.length-1),context:h}}isStackFormat(d){return!(0,a.isString)(d)&&!(0,a.isUndefined)(d)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(d)}getColorByLogLevel(d){switch(d){case"debug":return i.clc.magentaBright;case"warn":return i.clc.yellow;case"error":return i.clc.red;case"verbose":return i.clc.cyanBright;case"fatal":return i.clc.bold;default:return i.clc.green}}};return Fn.ConsoleLogger=p,Fn.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),Fn}var ir={},Zf={},_d={},gd={},lE;function vC(){if(lE)return gd;lE=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.isLogLevel=t;const e=Ot();function t(r){return e.LOG_LEVELS.includes(r)}return gd}var dE;function mC(){if(dE)return _d;dE=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.filterLogLevels=r;const e=Ot(),t=vC();function r(n=""){const i=n.replaceAll(" ","").toLowerCase();if(i[0]===">"){const a=i[1]==="=",s=e.LOG_LEVELS.indexOf(i.substring(a?2:1));if(s===-1)throw new Error(`parse error (unknown log level): ${i}`);return e.LOG_LEVELS.slice(a?s:s+1)}else if(i.includes(","))return i.split(",").filter(t.isLogLevel);return(0,t.isLogLevel)(i)?[i]:e.LOG_LEVELS}return _d}var pE;function rL(){return pE||(pE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(mC(),e),t.__exportStar(hC(),e),t.__exportStar(vC(),e)})(Zf)),Zf}var fE;function Ot(){if(fE)return ir;fE=1;var e;Object.defineProperty(ir,"__esModule",{value:!0}),ir.Logger=ir.LOG_LEVELS=void 0;const t=oe(),r=sr(),n=ie(),i=Og(),a=rL();ir.LOG_LEVELS=["verbose","debug","log","warn","error","fatal"];const s=new i.ConsoleLogger,o=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 o.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,a.isLogLevelEnabled)(p,l)}registerLocalInstanceRef(){return this.localInstanceRef?this.localInstanceRef:(this.localInstanceRef=new i.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:e.logLevels}),this.localInstanceRef)}};return ir.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),ir.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),ir}var hE;function _C(){return hE||(hE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(Og(),e),t.__exportStar(Ot(),e),t.__exportStar(mC(),e)})(Gf)),Gf}var vE;function nL(){if(vE)return sa;vE=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.StreamableFile=void 0;const e=Ep,t=di,r=Pl(),n=_C(),i=ie();class a{constructor(o,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(o)?(this.stream=new e.Readable,this.stream.push(o),this.stream.push(null),this.options.length??=o.length):o.pipe&&(0,i.isFunction)(o.pipe)&&(this.stream=o)}getStream(){return this.stream}getHeaders(){const{type:o="application/octet-stream",disposition:c=void 0,length:u=void 0}=this.options;return{type:o,disposition:c,length:u}}get errorHandler(){return this.handleError}setErrorHandler(o){return this.handleError=o,this}get errorLogger(){return this.logError}setErrorLogger(o){return this.logError=o,this}}return sa.StreamableFile=a,sa}var mE;function gC(){return mE||(mE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(nL(),e)})(Vf)),Vf}var Kf={},Yf={},_E;function iL(){return _E||(_E=1,Object.defineProperty(Yf,"__esModule",{value:!0})),Yf}var Xf={},gE;function aL(){return gE||(gE=1,Object.defineProperty(Xf,"__esModule",{value:!0})),Xf}var Jf={},yE;function oL(){return yE||(yE=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var Qf={},bE;function sL(){return bE||(bE=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var $f={},EE;function cL(){return EE||(EE=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var eh={},xE;function uL(){return xE||(xE=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},OE;function lL(){return OE||(OE=1,Object.defineProperty(th,"__esModule",{value:!0})),th}var rh={},wE;function dL(){return wE||(wE=1,Object.defineProperty(rh,"__esModule",{value:!0})),rh}var nh={},SE;function pL(){return SE||(SE=1,Object.defineProperty(nh,"__esModule",{value:!0})),nh}var ih={},TE;function fL(){return TE||(TE=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},PE;function hL(){return PE||(PE=1,Object.defineProperty(ah,"__esModule",{value:!0})),ah}var oh={},AE;function vL(){return AE||(AE=1,Object.defineProperty(oh,"__esModule",{value:!0})),oh}var sh={},RE;function mL(){return RE||(RE=1,Object.defineProperty(sh,"__esModule",{value:!0})),sh}var ch={},ME;function _L(){return ME||(ME=1,Object.defineProperty(ch,"__esModule",{value:!0})),ch}var uh={},IE;function gL(){return IE||(IE=1,Object.defineProperty(uh,"__esModule",{value:!0})),uh}var lh={},dh={},CE;function yL(){return CE||(CE=1,Object.defineProperty(dh,"__esModule",{value:!0})),dh}var ph={},jE;function bL(){return jE||(jE=1,Object.defineProperty(ph,"__esModule",{value:!0})),ph}var fh={},NE;function EL(){return NE||(NE=1,Object.defineProperty(fh,"__esModule",{value:!0})),fh}var hh={},qE;function xL(){return qE||(qE=1,Object.defineProperty(hh,"__esModule",{value:!0})),hh}var vh={},FE;function OL(){return FE||(FE=1,Object.defineProperty(vh,"__esModule",{value:!0})),vh}var kE;function wL(){return kE||(kE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(yL(),e),t.__exportStar(bL(),e),t.__exportStar(EL(),e),t.__exportStar(xL(),e),t.__exportStar(OL(),e)})(lh)),lh}var mh={},_h={},DE;function SL(){return DE||(DE=1,Object.defineProperty(_h,"__esModule",{value:!0})),_h}var gh={},LE;function TL(){return LE||(LE=1,Object.defineProperty(gh,"__esModule",{value:!0})),gh}var yh={},UE;function PL(){return UE||(UE=1,Object.defineProperty(yh,"__esModule",{value:!0})),yh}var bh={},zE;function AL(){return zE||(zE=1,Object.defineProperty(bh,"__esModule",{value:!0})),bh}var Eh={},BE;function RL(){return BE||(BE=1,Object.defineProperty(Eh,"__esModule",{value:!0})),Eh}var HE;function ML(){return HE||(HE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(SL(),e),t.__exportStar(TL(),e),t.__exportStar(PL(),e),t.__exportStar(AL(),e),t.__exportStar(RL(),e)})(mh)),mh}var xh={},VE;function IL(){return VE||(VE=1,Object.defineProperty(xh,"__esModule",{value:!0})),xh}var Oh={},GE;function CL(){return GE||(GE=1,Object.defineProperty(Oh,"__esModule",{value:!0})),Oh}var wh={},Sh={},WE;function jL(){return WE||(WE=1,Object.defineProperty(Sh,"__esModule",{value:!0})),Sh}var Th={},ZE;function NL(){return ZE||(ZE=1,Object.defineProperty(Th,"__esModule",{value:!0})),Th}var Ph={},KE;function qL(){return KE||(KE=1,Object.defineProperty(Ph,"__esModule",{value:!0})),Ph}var Ah={},YE;function FL(){return YE||(YE=1,Object.defineProperty(Ah,"__esModule",{value:!0})),Ah}var XE;function kL(){return XE||(XE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(jL(),e),t.__exportStar(NL(),e),t.__exportStar(qL(),e),t.__exportStar(FL(),e)})(wh)),wh}var Rh={},Mh={},JE;function DL(){return JE||(JE=1,Object.defineProperty(Mh,"__esModule",{value:!0})),Mh}var Ih={},QE;function LL(){return QE||(QE=1,Object.defineProperty(Ih,"__esModule",{value:!0})),Ih}var Ch={},$E;function UL(){return $E||($E=1,Object.defineProperty(Ch,"__esModule",{value:!0})),Ch}var jh={},ex;function zL(){return ex||(ex=1,Object.defineProperty(jh,"__esModule",{value:!0})),jh}var Nh={},tx;function BL(){return tx||(tx=1,Object.defineProperty(Nh,"__esModule",{value:!0})),Nh}var qh={},rx;function HL(){return rx||(rx=1,Object.defineProperty(qh,"__esModule",{value:!0})),qh}var Fh={},nx;function VL(){return nx||(nx=1,Object.defineProperty(Fh,"__esModule",{value:!0})),Fh}var kh={},ix;function GL(){return ix||(ix=1,Object.defineProperty(kh,"__esModule",{value:!0})),kh}var ax;function WL(){return ax||(ax=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(DL(),e),t.__exportStar(LL(),e),t.__exportStar(UL(),e),t.__exportStar(zL(),e),t.__exportStar(BL(),e),t.__exportStar(HL(),e),t.__exportStar(VL(),e),t.__exportStar(GL(),e)})(Rh)),Rh}var Dh={},ox;function ZL(){return ox||(ox=1,Object.defineProperty(Dh,"__esModule",{value:!0})),Dh}var Lh={},sx;function KL(){return sx||(sx=1,Object.defineProperty(Lh,"__esModule",{value:!0})),Lh}var Uh={},cx;function YL(){return cx||(cx=1,Object.defineProperty(Uh,"__esModule",{value:!0})),Uh}var zh={},ux;function XL(){return ux||(ux=1,Object.defineProperty(zh,"__esModule",{value:!0})),zh}var ca={},lx;function JL(){if(lx)return ca;lx=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.Scope=void 0;var e;return(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.TRANSIENT=1]="TRANSIENT",t[t.REQUEST=2]="REQUEST"})(e||(ca.Scope=e={})),ca}var Bh={},dx;function QL(){return dx||(dx=1,Object.defineProperty(Bh,"__esModule",{value:!0})),Bh}var Hh={},px;function $L(){return px||(px=1,Object.defineProperty(Hh,"__esModule",{value:!0})),Hh}var ua={},fx;function yC(){return fx||(fx=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.VERSION_NEUTRAL=void 0,ua.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")),ua}var Vh={},hx;function eU(){return hx||(hx=1,Object.defineProperty(Vh,"__esModule",{value:!0})),Vh}var vx;function Sp(){return vx||(vx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(iL(),e),t.__exportStar(aL(),e),t.__exportStar(oL(),e),t.__exportStar(sL(),e),t.__exportStar(cL(),e),t.__exportStar(uL(),e),t.__exportStar(lL(),e),t.__exportStar(dL(),e),t.__exportStar(pL(),e),t.__exportStar(fL(),e),t.__exportStar(hL(),e),t.__exportStar(vL(),e),t.__exportStar(mL(),e),t.__exportStar(_L(),e),t.__exportStar(gL(),e),t.__exportStar(wL(),e),t.__exportStar(ML(),e),t.__exportStar(IL(),e),t.__exportStar(CL(),e),t.__exportStar(kL(),e),t.__exportStar(WL(),e),t.__exportStar(ZL(),e),t.__exportStar(KL(),e),t.__exportStar(YL(),e),t.__exportStar(XL(),e),t.__exportStar(JL(),e),t.__exportStar(QL(),e),t.__exportStar($L(),e),t.__exportStar(yC(),e),t.__exportStar(eU(),e)})(Kf)),Kf}var Gh={},la={},da={},mx;function ur(){if(mx)return da;mx=1,Object.defineProperty(da,"__esModule",{value:!0}),da.randomStringGenerator=void 0;const e=yn(),t=()=>(0,e.uid)(21);return da.randomStringGenerator=t,da}var _t={},_x;function tU(){return _x||(_x=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.ASYNC_OPTIONS_METADATA_KEYS=_t.CONFIGURABLE_MODULE_ID=_t.ASYNC_METHOD_SUFFIX=_t.DEFAULT_FACTORY_CLASS_METHOD_KEY=_t.DEFAULT_METHOD_KEY=void 0,_t.DEFAULT_METHOD_KEY="register",_t.DEFAULT_FACTORY_CLASS_METHOD_KEY="create",_t.ASYNC_METHOD_SUFFIX="Async",_t.CONFIGURABLE_MODULE_ID="CONFIGURABLE_MODULE_ID",_t.ASYNC_OPTIONS_METADATA_KEYS=["useFactory","useClass","useExisting","inject","imports","provideInjectionTokensFrom"]),_t}var Wh={},yd={},gx;function rU(){if(gx)return yd;gx=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.generateOptionsInjectionToken=t;const e=ur();function t(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,e.randomStringGenerator)()}]`}return yd}var bd={},yx;function nU(){if(yx)return bd;yx=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.getInjectionProviders=n;const e=ie();function t(i){return!(0,e.isUndefined)(i.token)&&!(0,e.isUndefined)(i.optional)&&!i.prototype}const r=i=>t(i)?i.token:i;function n(i,a){const s=[];let o=a.map(r);for(;o.length>0;){const c=(i??[]).filter(u=>!s.includes(u)&&(o.includes(u)||o.includes(u?.provide)));s.push(...c),o=c.filter(u=>u?.inject).flatMap(u=>u.inject).map(r)}return s}return bd}var bx;function iU(){return bx||(bx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(rU(),e),t.__exportStar(nU(),e)})(Wh)),Wh}var Ex;function aU(){if(Ex)return la;Ex=1,Object.defineProperty(la,"__esModule",{value:!0}),la.ConfigurableModuleBuilder=void 0;const e=Ot(),t=ur(),r=tU(),n=iU();class i{constructor(s={},o){this.options=s,this.logger=new e.Logger(i.name),o&&(this.staticMethodKey=o.staticMethodKey,this.factoryClassMethodKey=o.factoryClassMethodKey,this.transformModuleDefinition=o.transformModuleDefinition,this.extras=o.extras)}setExtras(s,o=c=>c){const c=new i(this.options,this);return c.extras=s,c.transformModuleDefinition=o,c}setClassMethodName(s){const o=new i(this.options,this);return o.staticMethodKey=s,o}setFactoryMethodName(s){const o=new i(this.options,this);return o.factoryClassMethodKey=s,o}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,o=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[o](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 la.ConfigurableModuleBuilder=i,la}var Zh={},Kh={},xx;function oU(){return xx||(xx=1,Object.defineProperty(Kh,"__esModule",{value:!0})),Kh}var Yh={},Ox;function sU(){return Ox||(Ox=1,Object.defineProperty(Yh,"__esModule",{value:!0})),Yh}var Xh={},wx;function cU(){return wx||(wx=1,Object.defineProperty(Xh,"__esModule",{value:!0})),Xh}var Sx;function uU(){return Sx||(Sx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(oU(),e),t.__exportStar(sU(),e),t.__exportStar(cU(),e)})(Zh)),Zh}var Tx;function lU(){return Tx||(Tx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(aU(),e),t.__exportStar(uU(),e)})(Gh)),Gh}var Jh={},kn={},Px;function dU(){if(Px)return kn;Px=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.DefaultValuePipe=void 0;const e=oe(),t=bn(),r=ie();let n=class{constructor(a){this.defaultValue=a}transform(a,s){return(0,r.isNil)(a)||(0,r.isNumber)(a)&&isNaN(a)?this.defaultValue:a}};return kn.DefaultValuePipe=n,kn.DefaultValuePipe=n=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],n),kn}var Qh={},pa={},fa={},Ax;function wg(){if(Ax)return fa;Ax=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.FileValidator=void 0;class e{constructor(r){this.validationOptions=r}}return fa.FileValidator=e,fa}var $h,Rx;function pU(){return Rx||(Rx=1,$h={loadEsm:e=>import(e)}),$h}var Mx;function bC(){if(Mx)return pa;Mx=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.FileTypeValidator=void 0;const e=pC,t=Ot(),r=wg(),n=pU(),i=new t.Logger("FileTypeValidator");class a extends r.FileValidator{buildErrorMessage(o){const{errorMessage:c,...u}=this.validationOptions;if(c)return typeof c=="function"?c({file:o,config:u}):c;if(o?.mimetype){const p=`Validation failed (current file type is ${o.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(o){if(!this.validationOptions)return!0;const c=!!o&&"mimetype"in o;if(this.validationOptions.skipMagicNumbersValidation)return c&&!!o.mimetype.match(this.validationOptions.fileType);if(!c)return!1;if(!o.buffer)return this.validationOptions.fallbackToMimetype?!!o.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(o.buffer);return l?!!l.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!o.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"))&&i.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?!!o.mimetype.match(this.validationOptions.fileType):!1}}}return pa.FileTypeValidator=a,pa}var ha={},Ix;function EC(){if(Ix)return ha;Ix=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.MaxFileSizeValidator=void 0;const e=wg();class t extends e.FileValidator{buildErrorMessage(n){const{errorMessage:i,message:a,...s}=this.validationOptions;return i?typeof i=="function"?i({file:n,config:s}):i:a?typeof a=="function"?a(this.validationOptions.maxSize):a: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 ha.MaxFileSizeValidator=t,ha}var ev={},Cx;function fU(){return Cx||(Cx=1,Object.defineProperty(ev,"__esModule",{value:!0})),ev}var Dn={},va={},jx;function rr(){if(jx)return va;jx=1,Object.defineProperty(va,"__esModule",{value:!0}),va.HttpErrorByCode=void 0;const e=Pl(),t=xg();return va.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},va}var Nx;function xC(){if(Nx)return Dn;Nx=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.ParseFilePipe=void 0;const e=oe(),t=sr(),r=Pl(),n=rr(),i=ie();let a=class{constructor(o={}){const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST,validators:p=[],fileIsRequired:l}=o;this.exceptionFactory=c||(d=>new n.HttpErrorByCode[u](d)),this.validators=p,this.fileIsRequired=l??!0}async transform(o){const c=this.thereAreNoFilesIn(o);if(c&&this.fileIsRequired)throw this.exceptionFactory("File is required");return!c&&this.validators.length&&await this.validateFilesOrFile(o),o}async validateFilesOrFile(o){Array.isArray(o)?await Promise.all(o.map(c=>this.validate(c))):await this.validate(o)}thereAreNoFilesIn(o){const c=Array.isArray(o)&&(0,i.isEmpty)(o),u=(0,i.isObject)(o)&&(0,i.isEmpty)(Object.keys(o));return(0,i.isUndefined)(o)||c||u}async validate(o){for(const c of this.validators)await this.validateOrThrow(o,c);return o}async validateOrThrow(o,c){if(!await c.isValid(o)){const p=c.buildErrorMessage(o);throw this.exceptionFactory(p)}}getValidators(){return this.validators}};return Dn.ParseFilePipe=a,Dn.ParseFilePipe=a=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],a),Dn}var ma={},qx;function hU(){if(qx)return ma;qx=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.ParseFilePipeBuilder=void 0;const e=bC(),t=EC(),r=xC();class n{constructor(){this.validators=[]}addMaxSizeValidator(a){return this.addValidator(new t.MaxFileSizeValidator(a))}addFileTypeValidator(a){return this.addValidator(new e.FileTypeValidator(a))}addValidator(a){return this.validators.push(a),this}build(a){const s=new r.ParseFilePipe({...a,validators:this.validators});return this.validators=[],s}}return ma.ParseFilePipeBuilder=n,ma}var Fx;function vU(){return Fx||(Fx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(bC(),e),t.__exportStar(wg(),e),t.__exportStar(EC(),e),t.__exportStar(fU(),e),t.__exportStar(xC(),e),t.__exportStar(hU(),e)})(Qh)),Qh}var Ln={},Un={},zn={},Or={},Ed={},kx;function mU(){if(kx)return Ed;kx=1,Object.defineProperty(Ed,"__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 Ed.ConcatIterator=e,Ed}var xd={},Dx;function _U(){if(Dx)return xd;Dx=1,Object.defineProperty(xd,"__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 xd.FilterIterator=e,xd}var Od={},Bn={},Lx;function OC(){if(Lx)return Bn;Lx=1,Object.defineProperty(Bn,"__esModule",{value:!0});function e(n){return typeof n=="object"&&n!==null&&typeof n.next=="function"}Bn.isIterator=e;function t(n){return typeof n=="object"&&n!==null&&typeof n[Symbol.iterator]=="function"}Bn.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 Bn.toIterator=r,Bn}var Ux;function gU(){if(Ux)return Od;Ux=1,Object.defineProperty(Od,"__esModule",{value:!0});const e=OC();class t{constructor(n){this.outer=n}next(){if(this.inner){const a=this.inner.next();if(!a.done)return a;this.inner=void 0}const{value:n,done:i}=this.outer.next();return e.isIterable(n)?(this.inner=n[Symbol.iterator](),this.next()):{value:n,done:i}}}return Od.FlattenIterator=t,Od}var wd={},zx;function yU(){if(zx)return wd;zx=1,Object.defineProperty(wd,"__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 wd.MapIterator=e,wd}var Sd={},Bx;function bU(){if(Bx)return Sd;Bx=1,Object.defineProperty(Sd,"__esModule",{value:!0});class e{constructor(r,n,i=1/0){this.source=r,this.start=n,this.end=i,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 Sd.SliceIterator=e,Sd}var Td={},Hx;function EU(){if(Hx)return Td;Hx=1,Object.defineProperty(Td,"__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 Td.ZipIterator=e,Td}var Vx;function xU(){if(Vx)return Or;Vx=1,Object.defineProperty(Or,"__esModule",{value:!0});const e=mU(),t=_U(),r=gU(),n=yU(),i=bU(),a=OC(),s=EU();class o{constructor(l){this.source=l}next(){return this.source.next()}[Symbol.iterator](){return this}map(l){return new o(new n.MapIterator(this.source,l))}filter(l){return new o(new t.FilterIterator(this.source,l))}concat(l){return new o(new e.ConcatIterator([this.source,a.toIterator(l)]))}take(l){return new o(new i.SliceIterator(this.source,0,l+1))}drop(l){return new o(new i.SliceIterator(this.source,l,1/0))}slice(l,d=1/0){return new o(new i.SliceIterator(this.source,l,d))}flatten(){return new o(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)}}Or.IteratorWithOperators=o;function c(p){return new o(a.toIterator(p))}Or.iterate=c;function u(p,l){return new o(new s.ZipIterator(a.toIterator(p),a.toIterator(l)))}return Or.zip=u,Or.default=c,Or}var Gx;function Ze(){if(Gx)return zn;Gx=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=xU();return zn.iterate=e.iterate,zn.zip=e.zip,zn.default=e.iterate,zn}function Sg(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 Pd={},Wx;function Al(){if(Wx)return Pd;Wx=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.loadPackage=n;const e=Ot(),t=(i,a)=>`The "${i}" package is missing. Please, make sure to install it to take advantage of ${a}.`,r=new e.Logger("PackageLoader");function n(i,a,s){try{return s?s():Sg(i)}catch{r.error(t(i,a)),e.Logger.flush(),process.exit(1)}}return Pd}const OU={},wU=Object.freeze(Object.defineProperty({__proto__:null,default:OU},Symbol.toStringTag,{value:"Module"})),SU=pi(wU),TU={},PU=Object.freeze(Object.defineProperty({__proto__:null,default:TU},Symbol.toStringTag,{value:"Module"})),wC=pi(PU);var Zx;function SC(){if(Zx)return Un;Zx=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ValidationPipe=void 0;const e=oe(),t=Ze(),r=di,n=Eg(),i=sr(),a=Ne(),s=rr(),o=Al(),c=ie();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=_||a.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,o.loadPackage)("class-validator","ValidationPipe",()=>SU)}loadTransformer(h){return h??(0,o.loadPackage)("class-transformer","ValidationPipe",()=>wC)}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 Un.ValidationPipe=d,Un.ValidationPipe=d=e.__decorate([(0,i.Injectable)(),e.__param(0,(0,n.Optional)()),e.__metadata("design:paramtypes",[Object])],d),Un}var Kx;function AU(){if(Kx)return Ln;Kx=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ParseArrayPipe=void 0;const e=oe(),t=bn(),r=Tl(),n=Ne(),i=rr(),a=ie(),s=SC(),o="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 i.HttpErrorByCode[f](h))}async transform(l,d){if(!l&&!this.options.optional)throw this.exceptionFactory(o);if((0,a.isNil)(l)&&this.options.optional)return l;if(!Array.isArray(l))if((0,a.isString)(l))try{l=l.trim().split(this.options.separator||c)}catch{throw this.exceptionFactory(o)}else throw this.exceptionFactory(o);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,a.isUndefined)(d)?"":`[${d}] `}item must be a number`);return f}else if(this.options.items===String){if(!(0,a.isString)(l))return`${l}`}else if(this.options.items===Boolean&&typeof l!="boolean")throw this.exceptionFactory(`${(0,a.isUndefined)(d)?"":`[${d}] `}item must be a boolean value`);return l}};return Ln.ParseArrayPipe=u,Ln.ParseArrayPipe=u=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],u),Ln}var Hn={},Yx;function RU(){if(Yx)return Hn;Yx=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.ParseBoolPipe=void 0;const e=oe(),t=bn(),r=Tl(),n=Ne(),i=rr(),a=ie();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 i.HttpErrorByCode[p](l))}async transform(c,u){if((0,a.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 Hn.ParseBoolPipe=s,Hn.ParseBoolPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),Hn}var Vn={},Xx;function MU(){if(Xx)return Vn;Xx=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.ParseDatePipe=void 0;const e=oe(),t=bn(),r=Ne(),n=rr(),i=ie();let a=class{constructor(o={}){this.options=o;const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=o;this.exceptionFactory=c||(p=>new n.HttpErrorByCode[u](p))}transform(o){if(this.options.optional&&(0,i.isNil)(o))return this.options.default?this.options.default():o;if(!o)throw this.exceptionFactory("Validation failed (no Date provided)");const c=new Date(o);if(isNaN(c.getTime()))throw this.exceptionFactory("Validation failed (invalid date format)");return c}};return Vn.ParseDatePipe=a,Vn.ParseDatePipe=a=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],a),Vn}var Gn={},Jx;function IU(){if(Jx)return Gn;Jx=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.ParseEnumPipe=void 0;const e=oe(),t=sr(),r=me(),n=rr(),i=ie();let a=class{constructor(o,c){if(this.enumType=o,this.options=c,!o)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(o,c){if((0,i.isNil)(o)&&this.options?.optional)return o;if(!this.isEnum(o))throw this.exceptionFactory("Validation failed (enum string is expected)");return o}isEnum(o){return Object.keys(this.enumType).map(u=>this.enumType[u]).includes(o)}};return Gn.ParseEnumPipe=a,Gn.ParseEnumPipe=a=e.__decorate([(0,t.Injectable)(),e.__param(1,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],a),Gn}var Wn={},Qx;function CU(){if(Qx)return Wn;Qx=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.ParseFloatPipe=void 0;const e=oe(),t=sr(),r=me(),n=rr(),i=ie();let a=class{constructor(o){this.options=o,o=o||{};const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=o;this.exceptionFactory=c||(p=>new n.HttpErrorByCode[u](p))}async transform(o,c){if((0,i.isNil)(o)&&this.options?.optional)return o;if(!this.isNumeric(o))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(o)}isNumeric(o){return["string","number"].includes(typeof o)&&!isNaN(parseFloat(o))&&isFinite(o)}};return Wn.ParseFloatPipe=a,Wn.ParseFloatPipe=a=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],a),Wn}var Zn={},$x;function jU(){if($x)return Zn;$x=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ParseIntPipe=void 0;const e=oe(),t=bn(),r=Tl(),n=Ne(),i=rr(),a=ie();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 i.HttpErrorByCode[p](l))}async transform(c,u){if((0,a.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 Zn.ParseIntPipe=s,Zn.ParseIntPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),Zn}var Kn={},eO;function NU(){if(eO)return Kn;eO=1;var e;Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.ParseUUIDPipe=void 0;const t=oe(),r=bn(),n=Tl(),i=Ne(),a=rr(),s=ie();let o=e=class{constructor(u){this.options=u,u=u||{};const{exceptionFactory:p,errorHttpStatusCode:l=i.HttpStatus.BAD_REQUEST,version:d}=u;this.version=d,this.exceptionFactory=p||(f=>new a.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 Kn.ParseUUIDPipe=o,o.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},Kn.ParseUUIDPipe=o=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata("design:paramtypes",[Object])],o),Kn}var tO;function qU(){return tO||(tO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(dU(),e),t.__exportStar(vU(),e),t.__exportStar(AU(),e),t.__exportStar(RU(),e),t.__exportStar(MU(),e),t.__exportStar(IU(),e),t.__exportStar(CU(),e),t.__exportStar(jU(),e),t.__exportStar(NU(),e),t.__exportStar(SC(),e)})(Jh)),Jh}var tv={},Yn={},rv={},_a={},wr={},ga={},rO;function qe(){if(rO)return ga;rO=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.isFunction=void 0;function e(t){return typeof t=="function"}return ga.isFunction=e,ga}var nO;function ue(){if(nO)return wr;nO=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.operate=wr.hasLift=void 0;var e=qe();function t(n){return e.isFunction(n?.lift)}wr.hasLift=t;function r(n){return function(i){if(t(i))return i.lift(function(a){try{return n(a,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}return wr.operate=r,wr}var Le={},ya={},iO;function Tg(){return iO||(iO=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.isArrayLike=void 0,ya.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})),ya}var ba={},aO;function TC(){if(aO)return ba;aO=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.isPromise=void 0;var e=qe();function t(r){return e.isFunction(r?.then)}return ba.isPromise=t,ba}var Ea={},xa={},lt={},Oa={},wa={},oO;function En(){if(oO)return wa;oO=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.createErrorClass=void 0;function e(t){var r=function(i){Error.call(i),i.stack=new Error().stack},n=t(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}return wa.createErrorClass=e,wa}var sO;function PC(){if(sO)return Oa;sO=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.UnsubscriptionError=void 0;var e=En();return Oa.UnsubscriptionError=e.createErrorClass(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
7
|
-
`+n.map(function(i,a){return a+1+") "+i.toString()}).join(`
|
|
8
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}}),Oa}var Sa={},cO;function lr(){if(cO)return Sa;cO=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.arrRemove=void 0;function e(t,r){if(t){var n=t.indexOf(r);0<=n&&t.splice(n,1)}}return Sa.arrRemove=e,Sa}var uO;function wt(){if(uO)return lt;uO=1;var e=lt&<.__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=lt&<.__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=lt&<.__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(lt,"__esModule",{value:!0}),lt.isSubscription=lt.EMPTY_SUBSCRIPTION=lt.Subscription=void 0;var n=qe(),i=PC(),a=lr(),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 i.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 i.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 i.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)&&a.arrRemove(l,p)},u.prototype.remove=function(p){var l=this._finalizers;l&&a.arrRemove(l,p),p instanceof u&&p._removeParent(this)},u.EMPTY=(function(){var p=new u;return p.closed=!0,p})(),u})();lt.Subscription=s,lt.EMPTY_SUBSCRIPTION=s.EMPTY;function o(u){return u instanceof s||u&&"closed"in u&&n.isFunction(u.remove)&&n.isFunction(u.add)&&n.isFunction(u.unsubscribe)}lt.isSubscription=o;function c(u){n.isFunction(u)?u():u.unsubscribe()}return lt}var Ta={},lO;function Rl(){return lO||(lO=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.config=void 0,Ta.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}),Ta}var Pa={},Sr={},dO;function AC(){return dO||(dO=1,(function(e){var t=Sr&&Sr.__read||function(n,i){var a=typeof Symbol=="function"&&n[Symbol.iterator];if(!a)return n;var s=a.call(n),o,c=[],u;try{for(;(i===void 0||i-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(p){u={error:p}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(u)throw u.error}}return c},r=Sr&&Sr.__spreadArray||function(n,i){for(var a=0,s=i.length,o=n.length;a<s;a++,o++)n[o]=i[a];return n};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,i){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var o=e.timeoutProvider.delegate;return o?.setTimeout?o.setTimeout.apply(o,r([n,i],t(a))):setTimeout.apply(void 0,r([n,i],t(a)))},clearTimeout:function(n){var i=e.timeoutProvider.delegate;return(i?.clearTimeout||clearTimeout)(n)},delegate:void 0}})(Sr)),Sr}var pO;function RC(){if(pO)return Pa;pO=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.reportUnhandledError=void 0;var e=Rl(),t=AC();function r(n){t.timeoutProvider.setTimeout(function(){var i=e.config.onUnhandledError;if(i)i(n);else throw n})}return Pa.reportUnhandledError=r,Pa}var Aa={},fO;function at(){if(fO)return Aa;fO=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.noop=void 0;function e(){}return Aa.noop=e,Aa}var At={},hO;function FU(){if(hO)return At;hO=1,Object.defineProperty(At,"__esModule",{value:!0}),At.createNotification=At.nextNotification=At.errorNotification=At.COMPLETE_NOTIFICATION=void 0,At.COMPLETE_NOTIFICATION=(function(){return r("C",void 0,void 0)})();function e(n){return r("E",void 0,n)}At.errorNotification=e;function t(n){return r("N",n,void 0)}At.nextNotification=t;function r(n,i,a){return{kind:n,value:i,error:a}}return At.createNotification=r,At}var Tr={},vO;function Pg(){if(vO)return Tr;vO=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.captureError=Tr.errorContext=void 0;var e=Rl(),t=null;function r(i){if(e.config.useDeprecatedSynchronousErrorHandling){var a=!t;if(a&&(t={errorThrown:!1,error:null}),i(),a){var s=t,o=s.errorThrown,c=s.error;if(t=null,o)throw c}}else i()}Tr.errorContext=r;function n(i){e.config.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=i)}return Tr.captureError=n,Tr}var mO;function Ml(){return mO||(mO=1,(function(e){var t=xa&&xa.__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=wt(),i=Rl(),a=RC(),s=at(),o=FU(),c=AC(),u=Pg(),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?_(o.nextNotification(b),this):this._next(b)},y.prototype.error=function(b){this.isStopped?_(o.errorNotification(b),this):(this.isStopped=!0,this._error(b))},y.prototype.complete=function(){this.isStopped?_(o.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&&i.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){i.config.useDeprecatedSynchronousErrorHandling?u.captureError(g):a.reportUnhandledError(g)}function v(g){throw g}function _(g,y){var b=i.config.onStoppedNotification;b&&c.timeoutProvider.setTimeout(function(){return b(g,y)})}e.EMPTY_OBSERVER={closed:!0,next:s.noop,error:v,complete:s.noop}})(xa)),xa}var Ra={},_O;function Tp(){return _O||(_O=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.observable=void 0,Ra.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()),Ra}var Pr={},Ma={},gO;function ot(){if(gO)return Ma;gO=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.identity=void 0;function e(t){return t}return Ma.identity=e,Ma}var yO;function Pp(){if(yO)return Pr;yO=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.pipeFromArray=Pr.pipe=void 0;var e=ot();function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return r(n)}Pr.pipe=t;function r(n){return n.length===0?e.identity:n.length===1?n[0]:function(a){return n.reduce(function(s,o){return o(s)},a)}}return Pr.pipeFromArray=r,Pr}var bO;function ke(){if(bO)return Ea;bO=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.Observable=void 0;var e=Ml(),t=wt(),r=Tp(),n=Pp(),i=Rl(),a=qe(),s=Pg(),o=(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})();Ea.Observable=o;function c(l){var d;return(d=l??i.config.Promise)!==null&&d!==void 0?d:Promise}function u(l){return l&&a.isFunction(l.next)&&a.isFunction(l.error)&&a.isFunction(l.complete)}function p(l){return l&&l instanceof e.Subscriber||u(l)&&t.isSubscription(l)}return Ea}var Ia={},EO;function MC(){if(EO)return Ia;EO=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.isInteropObservable=void 0;var e=Tp(),t=qe();function r(n){return t.isFunction(n[e.observable])}return Ia.isInteropObservable=r,Ia}var Ca={},xO;function IC(){if(xO)return Ca;xO=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.isAsyncIterable=void 0;var e=qe();function t(r){return Symbol.asyncIterator&&e.isFunction(r?.[Symbol.asyncIterator])}return Ca.isAsyncIterable=t,Ca}var ja={},OO;function CC(){if(OO)return ja;OO=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.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 ja.createInvalidObservableTypeError=e,ja}var Na={},Ar={},wO;function jC(){if(wO)return Ar;wO=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.iterator=Ar.getSymbolIterator=void 0;function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}return Ar.getSymbolIterator=e,Ar.iterator=e(),Ar}var SO;function NC(){if(SO)return Na;SO=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.isIterable=void 0;var e=jC(),t=qe();function r(n){return t.isFunction(n?.[e.iterator])}return Na.isIterable=r,Na}var gt={},TO;function Ag(){if(TO)return gt;TO=1;var e=gt&>.__generator||function(s,o){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=o.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=gt&>.__await||function(s){return this instanceof t?(this.v=s,this):new t(s)},r=gt&>.__asyncGenerator||function(s,o,c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=c.apply(s,o||[]),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(gt,"__esModule",{value:!0}),gt.isReadableStreamLike=gt.readableStreamLikeToAsyncGenerator=void 0;var n=qe();function i(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]}})})}gt.readableStreamLikeToAsyncGenerator=i;function a(s){return n.isFunction(s?.getReader)}return gt.isReadableStreamLike=a,gt}var PO;function Se(){if(PO)return Le;PO=1;var e=Le&&Le.__awaiter||function(O,S,w,A){function T(P){return P instanceof w?P:new w(function(q){q(P)})}return new(w||(w=Promise))(function(P,q){function D(F){try{k(A.next(F))}catch(Z){q(Z)}}function H(F){try{k(A.throw(F))}catch(Z){q(Z)}}function k(F){F.done?P(F.value):T(F.value).then(D,H)}k((A=A.apply(O,S||[])).next())})},t=Le&&Le.__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,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 H([k,F])}}function H(k){if(A)throw new TypeError("Generator is already executing.");for(;w;)try{if(A=1,T&&(P=k[0]&2?T.return:k[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,k[1])).done)return P;switch(T=0,P&&(k=[k[0]&2,P.value]),k[0]){case 0:case 1:P=k;break;case 4:return w.label++,{value:k[1],done:!1};case 5:w.label++,T=k[1],k=[0];continue;case 7:k=w.ops.pop(),w.trys.pop();continue;default:if(P=w.trys,!(P=P.length>0&&P[P.length-1])&&(k[0]===6||k[0]===2)){w=0;continue}if(k[0]===3&&(!P||k[1]>P[0]&&k[1]<P[3])){w.label=k[1];break}if(k[0]===6&&w.label<P[1]){w.label=P[1],P=k;break}if(P&&w.label<P[2]){w.label=P[2],w.ops.push(k);break}P[2]&&w.ops.pop(),w.trys.pop();continue}k=S.call(O,w)}catch(F){k=[6,F],T=0}finally{A=P=0}if(k[0]&5)throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}},r=Le&&Le.__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(q){return new Promise(function(D,H){q=O[P](q),T(D,H,q.done,q.value)})}}function T(P,q,D,H){Promise.resolve(H).then(function(k){P({value:k,done:D})},q)}},n=Le&&Le.__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(Le,"__esModule",{value:!0}),Le.fromReadableStreamLike=Le.fromAsyncIterable=Le.fromIterable=Le.fromPromise=Le.fromArrayLike=Le.fromInteropObservable=Le.innerFrom=void 0;var i=Tg(),a=TC(),s=ke(),o=MC(),c=IC(),u=CC(),p=NC(),l=Ag(),d=qe(),f=RC(),h=Tp();function m(O){if(O instanceof s.Observable)return O;if(O!=null){if(o.isInteropObservable(O))return v(O);if(i.isArrayLike(O))return _(O);if(a.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)}Le.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")})}Le.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()})}Le.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)})}Le.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 q=P.value;if(S.next(q),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()})}Le.fromIterable=y;function b(O){return new s.Observable(function(S){x(O,S).catch(function(w){return S.error(w)})})}Le.fromAsyncIterable=b;function E(O){return b(l.readableStreamLikeToAsyncGenerator(O))}Le.fromReadableStreamLike=E;function x(O,S){var w,A,T,P;return e(this,void 0,void 0,function(){var q,D;return t(this,function(H){switch(H.label){case 0:H.trys.push([0,5,6,11]),w=r(O),H.label=1;case 1:return[4,w.next()];case 2:if(A=H.sent(),!!A.done)return[3,4];if(q=A.value,S.next(q),S.closed)return[2];H.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return D=H.sent(),T={error:D},[3,11];case 6:return H.trys.push([6,,9,10]),A&&!A.done&&(P=w.return)?[4,P.call(w)]:[3,8];case 7:H.sent(),H.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 Le}var kt={},AO;function fe(){if(AO)return kt;AO=1;var e=kt&&kt.__extends||(function(){var i=function(a,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(o[u]=c[u])},i(a,s)};return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(a,s);function o(){this.constructor=a}a.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}})();Object.defineProperty(kt,"__esModule",{value:!0}),kt.OperatorSubscriber=kt.createOperatorSubscriber=void 0;var t=Ml();function r(i,a,s,o,c){return new n(i,a,s,o,c)}kt.createOperatorSubscriber=r;var n=(function(i){e(a,i);function a(s,o,c,u,p,l){var d=i.call(this,s)||this;return d.onFinalize=p,d.shouldUnsubscribe=l,d._next=o?function(f){try{o(f)}catch(h){s.error(h)}}:i.prototype._next,d._error=u?function(f){try{u(f)}catch(h){s.error(h)}finally{this.unsubscribe()}}:i.prototype._error,d._complete=c?function(){try{c()}catch(f){s.error(f)}finally{this.unsubscribe()}}:i.prototype._complete,d}return a.prototype.unsubscribe=function(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;i.prototype.unsubscribe.call(this),!o&&((s=this.onFinalize)===null||s===void 0||s.call(this))}},a})(t.Subscriber);return kt.OperatorSubscriber=n,kt}var RO;function Rg(){if(RO)return _a;RO=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.audit=void 0;var e=ue(),t=Se(),r=fe();function n(i){return e.operate(function(a,s){var o=!1,c=null,u=null,p=!1,l=function(){if(u?.unsubscribe(),u=null,o){o=!1;var f=c;c=null,s.next(f)}p&&s.complete()},d=function(){u=null,p&&s.complete()};a.subscribe(r.createOperatorSubscriber(s,function(f){o=!0,c=f,u||t.innerFrom(i(f)).subscribe(u=r.createOperatorSubscriber(s,l,d))},function(){p=!0,(!o||!u||u.closed)&&s.complete()}))})}return _a.audit=n,_a}var qa={},nv={},Rr={},Mr={},MO;function kU(){if(MO)return Mr;MO=1;var e=Mr&&Mr.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.Action=void 0;var t=wt(),r=(function(n){e(i,n);function i(a,s){return n.call(this)||this}return i.prototype.schedule=function(a,s){return this},i})(t.Subscription);return Mr.Action=r,Mr}var Ir={},IO;function DU(){return IO||(IO=1,(function(e){var t=Ir&&Ir.__read||function(n,i){var a=typeof Symbol=="function"&&n[Symbol.iterator];if(!a)return n;var s=a.call(n),o,c=[],u;try{for(;(i===void 0||i-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(p){u={error:p}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(u)throw u.error}}return c},r=Ir&&Ir.__spreadArray||function(n,i){for(var a=0,s=i.length,o=n.length;a<s;a++,o++)n[o]=i[a];return n};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,i){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var o=e.intervalProvider.delegate;return o?.setInterval?o.setInterval.apply(o,r([n,i],t(a))):setInterval.apply(void 0,r([n,i],t(a)))},clearInterval:function(n){var i=e.intervalProvider.delegate;return(i?.clearInterval||clearInterval)(n)},delegate:void 0}})(Ir)),Ir}var CO;function Il(){if(CO)return Rr;CO=1;var e=Rr&&Rr.__extends||(function(){var a=function(s,o){return a=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])},a(s,o)};return function(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(s,o);function c(){this.constructor=s}s.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}})();Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.AsyncAction=void 0;var t=kU(),r=DU(),n=lr(),i=(function(a){e(s,a);function s(o,c){var u=a.call(this,o,c)||this;return u.scheduler=o,u.work=c,u.pending=!1,u}return s.prototype.schedule=function(o,c){var u;if(c===void 0&&(c=0),this.closed)return this;this.state=o;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(o,c,u){return u===void 0&&(u=0),r.intervalProvider.setInterval(o.flush.bind(o,this),u)},s.prototype.recycleAsyncId=function(o,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(o,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var u=this._execute(o,c);if(u)return u;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},s.prototype._execute=function(o,c){var u=!1,p;try{this.work(o)}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 o=this,c=o.id,u=o.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,a.prototype.unsubscribe.call(this)}},s})(t.Action);return Rr.AsyncAction=i,Rr}var Cr={},Fa={},iv={},jO;function Mg(){return jO||(jO=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}})(iv)),iv}var NO;function qC(){if(NO)return Fa;NO=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.Scheduler=void 0;var e=Mg(),t=(function(){function r(n,i){i===void 0&&(i=r.now),this.schedulerActionCtor=n,this.now=i}return r.prototype.schedule=function(n,i,a){return i===void 0&&(i=0),new this.schedulerActionCtor(this,n).schedule(a,i)},r.now=e.dateTimestampProvider.now,r})();return Fa.Scheduler=t,Fa}var qO;function Cl(){if(qO)return Cr;qO=1;var e=Cr&&Cr.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.AsyncScheduler=void 0;var t=qC(),r=(function(n){e(i,n);function i(a,s){s===void 0&&(s=t.Scheduler.now);var o=n.call(this,a,s)||this;return o.actions=[],o._active=!1,o}return i.prototype.flush=function(a){var s=this.actions;if(this._active){s.push(a);return}var o;this._active=!0;do if(o=a.execute(a.state,a.delay))break;while(a=s.shift());if(this._active=!1,o){for(;a=s.shift();)a.unsubscribe();throw o}},i})(t.Scheduler);return Cr.AsyncScheduler=r,Cr}var FO;function yt(){return FO||(FO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var t=Il(),r=Cl();e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})(nv)),nv}var ka={},Da={},kO;function Ap(){if(kO)return Da;kO=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.isScheduler=void 0;var e=qe();function t(r){return r&&e.isFunction(r.schedule)}return Da.isScheduler=t,Da}var La={},DO;function Ig(){if(DO)return La;DO=1,Object.defineProperty(La,"__esModule",{value:!0}),La.isValidDate=void 0;function e(t){return t instanceof Date&&!isNaN(t)}return La.isValidDate=e,La}var LO;function xn(){if(LO)return ka;LO=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.timer=void 0;var e=ke(),t=yt(),r=Ap(),n=Ig();function i(a,s,o){a===void 0&&(a=0),o===void 0&&(o=t.async);var c=-1;return s!=null&&(r.isScheduler(s)?o=s:c=s),new e.Observable(function(u){var p=n.isValidDate(a)?+a-o.now():a;p<0&&(p=0);var l=0;return o.schedule(function(){u.closed||(u.next(l++),0<=c?this.schedule(void 0,c):u.complete())},p)})}return ka.timer=i,ka}var UO;function FC(){if(UO)return qa;UO=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.auditTime=void 0;var e=yt(),t=Rg(),r=xn();function n(i,a){return a===void 0&&(a=e.asyncScheduler),t.audit(function(){return r.timer(i,a)})}return qa.auditTime=n,qa}var Ua={},zO;function kC(){if(zO)return Ua;zO=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.buffer=void 0;var e=ue(),t=at(),r=fe(),n=Se();function i(a){return e.operate(function(s,o){var c=[];return s.subscribe(r.createOperatorSubscriber(o,function(u){return c.push(u)},function(){o.next(c),o.complete()})),n.innerFrom(a).subscribe(r.createOperatorSubscriber(o,function(){var u=c;c=[],o.next(u)},t.noop)),function(){c=null}})}return Ua.buffer=i,Ua}var jr={},BO;function DC(){if(BO)return jr;BO=1;var e=jr&&jr.__values||function(a){var s=typeof Symbol=="function"&&Symbol.iterator,o=s&&a[s],c=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(jr,"__esModule",{value:!0}),jr.bufferCount=void 0;var t=ue(),r=fe(),n=lr();function i(a,s){return s===void 0&&(s=null),s=s??a,t.operate(function(o,c){var u=[],p=0;o.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),a<=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 jr.bufferCount=i,jr}var Nr={},Dt={},HO;function bt(){if(HO)return Dt;HO=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.popNumber=Dt.popScheduler=Dt.popResultSelector=void 0;var e=qe(),t=Ap();function r(s){return s[s.length-1]}function n(s){return e.isFunction(r(s))?s.pop():void 0}Dt.popResultSelector=n;function i(s){return t.isScheduler(r(s))?s.pop():void 0}Dt.popScheduler=i;function a(s,o){return typeof r(s)=="number"?s.pop():o}return Dt.popNumber=a,Dt}var za={},VO;function dr(){if(VO)return za;VO=1,Object.defineProperty(za,"__esModule",{value:!0}),za.executeSchedule=void 0;function e(t,r,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1);var s=r.schedule(function(){n(),a?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!a)return s}return za.executeSchedule=e,za}var GO;function LC(){if(GO)return Nr;GO=1;var e=Nr&&Nr.__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(Nr,"__esModule",{value:!0}),Nr.bufferTime=void 0;var t=wt(),r=ue(),n=fe(),i=lr(),a=yt(),s=bt(),o=dr();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:a.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(),i.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),o.executeSchedule(S,h,function(){return E(A)},u)}};m!==null&&m>=0?o.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),q=P.next();!q.done;q=P.next()){var D=q.value,H=D.buffer;H.push(S),v<=H.length&&E(D)}}catch(k){w={error:k}}finally{try{q&&!q.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 Nr.bufferTime=c,Nr}var qr={},WO;function UC(){if(WO)return qr;WO=1;var e=qr&&qr.__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(qr,"__esModule",{value:!0}),qr.bufferToggle=void 0;var t=wt(),r=ue(),n=Se(),i=fe(),a=at(),s=lr();function o(c,u){return r.operate(function(p,l){var d=[];n.innerFrom(c).subscribe(i.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(i.createOperatorSubscriber(l,v,a.noop)))},a.noop)),p.subscribe(i.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 qr.bufferToggle=o,qr}var Ba={},ZO;function zC(){if(ZO)return Ba;ZO=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.bufferWhen=void 0;var e=ue(),t=at(),r=fe(),n=Se();function i(a){return e.operate(function(s,o){var c=null,u=null,p=function(){u?.unsubscribe();var l=c;c=[],l&&o.next(l),n.innerFrom(a()).subscribe(u=r.createOperatorSubscriber(o,p,t.noop))};p(),s.subscribe(r.createOperatorSubscriber(o,function(l){return c?.push(l)},function(){c&&o.next(c),o.complete()},void 0,function(){return c=u=null}))})}return Ba.bufferWhen=i,Ba}var Ha={},KO;function BC(){if(KO)return Ha;KO=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.catchError=void 0;var e=Se(),t=fe(),r=ue();function n(i){return r.operate(function(a,s){var o=null,c=!1,u;o=a.subscribe(t.createOperatorSubscriber(s,void 0,void 0,function(p){u=e.innerFrom(i(p,n(i)(a))),o?(o.unsubscribe(),o=null,u.subscribe(s)):c=!0})),c&&(o.unsubscribe(),o=null,u.subscribe(s))})}return Ha.catchError=n,Ha}var Va={},Ga={},Fr={},Wa={},YO;function HC(){if(YO)return Wa;YO=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.argsArgArrayOrObject=void 0;var e=Array.isArray,t=Object.getPrototypeOf,r=Object.prototype,n=Object.keys;function i(s){if(s.length===1){var o=s[0];if(e(o))return{args:o,keys:null};if(a(o)){var c=n(o);return{args:c.map(function(u){return o[u]}),keys:c}}}return{args:s,keys:null}}Wa.argsArgArrayOrObject=i;function a(s){return s&&typeof s=="object"&&t(s)===r}return Wa}var Za={},Ka={},Ya={},Xa={},XO;function jl(){if(XO)return Xa;XO=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.observeOn=void 0;var e=dr(),t=ue(),r=fe();function n(i,a){return a===void 0&&(a=0),t.operate(function(s,o){s.subscribe(r.createOperatorSubscriber(o,function(c){return e.executeSchedule(o,i,function(){return o.next(c)},a)},function(){return e.executeSchedule(o,i,function(){return o.complete()},a)},function(c){return e.executeSchedule(o,i,function(){return o.error(c)},a)}))})}return Xa.observeOn=n,Xa}var Ja={},JO;function Nl(){if(JO)return Ja;JO=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.subscribeOn=void 0;var e=ue();function t(r,n){return n===void 0&&(n=0),e.operate(function(i,a){a.add(r.schedule(function(){return i.subscribe(a)},n))})}return Ja.subscribeOn=t,Ja}var QO;function LU(){if(QO)return Ya;QO=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.scheduleObservable=void 0;var e=Se(),t=jl(),r=Nl();function n(i,a){return e.innerFrom(i).pipe(r.subscribeOn(a),t.observeOn(a))}return Ya.scheduleObservable=n,Ya}var Qa={},$O;function UU(){if($O)return Qa;$O=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.schedulePromise=void 0;var e=Se(),t=jl(),r=Nl();function n(i,a){return e.innerFrom(i).pipe(r.subscribeOn(a),t.observeOn(a))}return Qa.schedulePromise=n,Qa}var $a={},ew;function zU(){if(ew)return $a;ew=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.scheduleArray=void 0;var e=ke();function t(r,n){return new e.Observable(function(i){var a=0;return n.schedule(function(){a===r.length?i.complete():(i.next(r[a++]),i.closed||this.schedule())})})}return $a.scheduleArray=t,$a}var eo={},tw;function VC(){if(tw)return eo;tw=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.scheduleIterable=void 0;var e=ke(),t=jC(),r=qe(),n=dr();function i(a,s){return new e.Observable(function(o){var c;return n.executeSchedule(o,s,function(){c=a[t.iterator](),n.executeSchedule(o,s,function(){var u,p,l;try{u=c.next(),p=u.value,l=u.done}catch(d){o.error(d);return}l?o.complete():o.next(p)},0,!0)}),function(){return r.isFunction(c?.return)&&c.return()}})}return eo.scheduleIterable=i,eo}var to={},rw;function GC(){if(rw)return to;rw=1,Object.defineProperty(to,"__esModule",{value:!0}),to.scheduleAsyncIterable=void 0;var e=ke(),t=dr();function r(n,i){if(!n)throw new Error("Iterable cannot be null");return new e.Observable(function(a){t.executeSchedule(a,i,function(){var s=n[Symbol.asyncIterator]();t.executeSchedule(a,i,function(){s.next().then(function(o){o.done?a.complete():a.next(o.value)})},0,!0)})})}return to.scheduleAsyncIterable=r,to}var ro={},nw;function BU(){if(nw)return ro;nw=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.scheduleReadableStreamLike=void 0;var e=GC(),t=Ag();function r(n,i){return e.scheduleAsyncIterable(t.readableStreamLikeToAsyncGenerator(n),i)}return ro.scheduleReadableStreamLike=r,ro}var iw;function WC(){if(iw)return Ka;iw=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.scheduled=void 0;var e=LU(),t=UU(),r=zU(),n=VC(),i=GC(),a=MC(),s=TC(),o=Tg(),c=NC(),u=IC(),p=CC(),l=Ag(),d=BU();function f(h,m){if(h!=null){if(a.isInteropObservable(h))return e.scheduleObservable(h,m);if(o.isArrayLike(h))return r.scheduleArray(h,m);if(s.isPromise(h))return t.schedulePromise(h,m);if(u.isAsyncIterable(h))return i.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 Ka.scheduled=f,Ka}var aw;function pr(){if(aw)return Za;aw=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.from=void 0;var e=WC(),t=Se();function r(n,i){return i?e.scheduled(n,i):t.innerFrom(n)}return Za.from=r,Za}var Lt={},no={},ow;function fr(){if(ow)return no;ow=1,Object.defineProperty(no,"__esModule",{value:!0}),no.map=void 0;var e=ue(),t=fe();function r(n,i){return e.operate(function(a,s){var o=0;a.subscribe(t.createOperatorSubscriber(s,function(c){s.next(n.call(i,c,o++))}))})}return no.map=r,no}var sw;function On(){if(sw)return Lt;sw=1;var e=Lt&&Lt.__read||function(s,o){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(o===void 0||o-- >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=Lt&&Lt.__spreadArray||function(s,o){for(var c=0,u=o.length,p=s.length;c<u;c++,p++)s[p]=o[c];return s};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.mapOneOrManyArgs=void 0;var r=fr(),n=Array.isArray;function i(s,o){return n(o)?s.apply(void 0,t([],e(o))):s(o)}function a(s){return r.map(function(o){return i(s,o)})}return Lt.mapOneOrManyArgs=a,Lt}var io={},cw;function ZC(){if(cw)return io;cw=1,Object.defineProperty(io,"__esModule",{value:!0}),io.createObject=void 0;function e(t,r){return t.reduce(function(n,i,a){return n[i]=r[a],n},{})}return io.createObject=e,io}var uw;function Cg(){if(uw)return Fr;uw=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.combineLatestInit=Fr.combineLatest=void 0;var e=ke(),t=HC(),r=pr(),n=ot(),i=On(),a=bt(),s=ZC(),o=fe(),c=dr();function u(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=a.popScheduler(d),m=a.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(i.mapOneOrManyArgs(m)):y}Fr.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(o.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)}}Fr.combineLatestInit=p;function l(d,f,h){d?c.executeSchedule(h,d,f):f()}return Fr}var ao={},oo={},so={},lw;function jg(){if(lw)return so;lw=1,Object.defineProperty(so,"__esModule",{value:!0}),so.mergeInternals=void 0;var e=Se(),t=dr(),r=fe();function n(i,a,s,o,c,u,p,l){var d=[],f=0,h=0,m=!1,v=function(){m&&!d.length&&!f&&a.complete()},_=function(y){return f<o?g(y):d.push(y)},g=function(y){u&&a.next(y),f++;var b=!1;e.innerFrom(s(y,h++)).subscribe(r.createOperatorSubscriber(a,function(E){c?.(E),u?_(E):a.next(E)},function(){b=!0},void 0,function(){if(b)try{f--;for(var E=function(){var x=d.shift();p?t.executeSchedule(a,p,function(){return g(x)}):g(x)};d.length&&f<o;)E();v()}catch(x){a.error(x)}}))};return i.subscribe(r.createOperatorSubscriber(a,_,function(){m=!0,v()})),function(){l?.()}}return so.mergeInternals=n,so}var dw;function nr(){if(dw)return oo;dw=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.mergeMap=void 0;var e=fr(),t=Se(),r=ue(),n=jg(),i=qe();function a(s,o,c){return c===void 0&&(c=1/0),i.isFunction(o)?a(function(u,p){return e.map(function(l,d){return o(u,l,p,d)})(t.innerFrom(s(u,p)))},c):(typeof o=="number"&&(c=o),r.operate(function(u,p){return n.mergeInternals(u,p,s,c)}))}return oo.mergeMap=a,oo}var co={},uo={},lo={},pw;function KC(){if(pw)return lo;pw=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.scanInternals=void 0;var e=fe();function t(r,n,i,a,s){return function(o,c){var u=i,p=n,l=0;o.subscribe(e.createOperatorSubscriber(c,function(d){var f=l++;p=u?r(p,d,f):(u=!0,d),a&&c.next(p)},s&&(function(){u&&c.next(p),c.complete()})))}}return lo.scanInternals=t,lo}var fw;function hi(){if(fw)return uo;fw=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.reduce=void 0;var e=KC(),t=ue();function r(n,i){return t.operate(e.scanInternals(n,i,arguments.length>=2,!1,!0))}return uo.reduce=r,uo}var hw;function Ng(){if(hw)return co;hw=1,Object.defineProperty(co,"__esModule",{value:!0}),co.toArray=void 0;var e=hi(),t=ue(),r=function(i,a){return i.push(a),i};function n(){return t.operate(function(i,a){e.reduce(r,[])(i).subscribe(a)})}return co.toArray=n,co}var vw;function YC(){if(vw)return ao;vw=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.joinAllInternals=void 0;var e=ot(),t=On(),r=Pp(),n=nr(),i=Ng();function a(s,o){return r.pipe(i.toArray(),n.mergeMap(function(c){return s(c)}),o?t.mapOneOrManyArgs(o):e.identity)}return ao.joinAllInternals=a,ao}var mw;function qg(){if(mw)return Ga;mw=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.combineLatestAll=void 0;var e=Cg(),t=YC();function r(n){return t.joinAllInternals(e.combineLatest,n)}return Ga.combineLatestAll=r,Ga}var _w;function XC(){if(_w)return Va;_w=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.combineAll=void 0;var e=qg();return Va.combineAll=e.combineLatestAll,Va}var Ut={},po={},gw;function vi(){if(gw)return po;gw=1,Object.defineProperty(po,"__esModule",{value:!0}),po.argsOrArgArray=void 0;var e=Array.isArray;function t(r){return r.length===1&&e(r[0])?r[0]:r}return po.argsOrArgArray=t,po}var yw;function JC(){if(yw)return Ut;yw=1;var e=Ut&&Ut.__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=Ut&&Ut.__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(Ut,"__esModule",{value:!0}),Ut.combineLatest=void 0;var r=Cg(),n=ue(),i=vi(),a=On(),s=Pp(),o=bt();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=o.popResultSelector(u);return l?s.pipe(c.apply(void 0,t([],e(u))),a.mapOneOrManyArgs(l)):n.operate(function(d,f){r.combineLatestInit(t([d],e(i.argsOrArgArray(u))))(f)})}return Ut.combineLatest=c,Ut}var zt={},bw;function QC(){if(bw)return zt;bw=1;var e=zt&&zt.__read||function(i,a){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var o=s.call(i),c,u=[],p;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(p)throw p.error}}return u},t=zt&&zt.__spreadArray||function(i,a){for(var s=0,o=a.length,c=i.length;s<o;s++,c++)i[c]=a[s];return i};Object.defineProperty(zt,"__esModule",{value:!0}),zt.combineLatestWith=void 0;var r=JC();function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r.combineLatest.apply(void 0,t([],e(i)))}return zt.combineLatestWith=n,zt}var Bt={},fo={},ho={},Ew;function ql(){if(Ew)return ho;Ew=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.mergeAll=void 0;var e=nr(),t=ot();function r(n){return n===void 0&&(n=1/0),e.mergeMap(t.identity,n)}return ho.mergeAll=r,ho}var xw;function Rp(){if(xw)return fo;xw=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.concatAll=void 0;var e=ql();function t(){return e.mergeAll(1)}return fo.concatAll=t,fo}var Ow;function $C(){if(Ow)return Bt;Ow=1;var e=Bt&&Bt.__read||function(o,c){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var p=u.call(o),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=Bt&&Bt.__spreadArray||function(o,c){for(var u=0,p=c.length,l=o.length;u<p;u++,l++)o[l]=c[u];return o};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.concat=void 0;var r=ue(),n=Rp(),i=bt(),a=pr();function s(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];var u=i.popScheduler(o);return r.operate(function(p,l){n.concatAll()(a.from(t([p],e(o)),u)).subscribe(l)})}return Bt.concat=s,Bt}var vo={},ww;function Fg(){if(ww)return vo;ww=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.concatMap=void 0;var e=nr(),t=qe();function r(n,i){return t.isFunction(i)?e.mergeMap(n,i,1):e.mergeMap(n,1)}return vo.concatMap=r,vo}var mo={},Sw;function ej(){if(Sw)return mo;Sw=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.concatMapTo=void 0;var e=Fg(),t=qe();function r(n,i){return t.isFunction(i)?e.concatMap(function(){return n},i):e.concatMap(function(){return n})}return mo.concatMapTo=r,mo}var Ht={},Tw;function tj(){if(Tw)return Ht;Tw=1;var e=Ht&&Ht.__read||function(i,a){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var o=s.call(i),c,u=[],p;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(p)throw p.error}}return u},t=Ht&&Ht.__spreadArray||function(i,a){for(var s=0,o=a.length,c=i.length;s<o;s++,c++)i[c]=a[s];return i};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.concatWith=void 0;var r=$C();function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r.concat.apply(void 0,t([],e(i)))}return Ht.concatWith=n,Ht}var _o={},Rt={},go={},Pw;function rj(){if(Pw)return go;Pw=1,Object.defineProperty(go,"__esModule",{value:!0}),go.ObjectUnsubscribedError=void 0;var e=En();return go.ObjectUnsubscribedError=e.createErrorClass(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),go}var Aw;function st(){if(Aw)return Rt;Aw=1;var e=Rt&&Rt.__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=Rt&&Rt.__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(Rt,"__esModule",{value:!0}),Rt.AnonymousSubject=Rt.Subject=void 0;var r=ke(),n=wt(),i=rj(),a=lr(),s=Pg(),o=(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 i.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,a.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);Rt.Subject=o;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})(o);return Rt.AnonymousSubject=c,Rt}var yo={},Rw;function HU(){if(Rw)return yo;Rw=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.fromSubscribable=void 0;var e=ke();function t(r){return new e.Observable(function(n){return r.subscribe(n)})}return yo.fromSubscribable=t,yo}var Mw;function Mp(){if(Mw)return _o;Mw=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.connect=void 0;var e=st(),t=Se(),r=ue(),n=HU(),i={connector:function(){return new e.Subject}};function a(s,o){o===void 0&&(o=i);var c=o.connector;return r.operate(function(u,p){var l=c();t.innerFrom(s(n.fromSubscribable(l))).subscribe(p),p.add(u.subscribe(l))})}return _o.connect=a,_o}var bo={},Iw;function nj(){if(Iw)return bo;Iw=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.count=void 0;var e=hi();function t(r){return e.reduce(function(n,i,a){return!r||r(i,a)?n+1:n},0)}return bo.count=t,bo}var Eo={},Cw;function ij(){if(Cw)return Eo;Cw=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.debounce=void 0;var e=ue(),t=at(),r=fe(),n=Se();function i(a){return e.operate(function(s,o){var c=!1,u=null,p=null,l=function(){if(p?.unsubscribe(),p=null,c){c=!1;var d=u;u=null,o.next(d)}};s.subscribe(r.createOperatorSubscriber(o,function(d){p?.unsubscribe(),c=!0,u=d,p=r.createOperatorSubscriber(o,l,t.noop),n.innerFrom(a(d)).subscribe(p)},function(){l(),o.complete()},void 0,function(){u=p=null}))})}return Eo.debounce=i,Eo}var xo={},jw;function aj(){if(jw)return xo;jw=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.debounceTime=void 0;var e=yt(),t=ue(),r=fe();function n(i,a){return a===void 0&&(a=e.asyncScheduler),t.operate(function(s,o){var c=null,u=null,p=null,l=function(){if(c){c.unsubscribe(),c=null;var f=u;u=null,o.next(f)}};function d(){var f=p+i,h=a.now();if(h<f){c=this.schedule(void 0,f-h),o.add(c);return}l()}s.subscribe(r.createOperatorSubscriber(o,function(f){u=f,p=a.now(),c||(c=a.schedule(d,i),o.add(c))},function(){l(),o.complete()},void 0,function(){u=c=null}))})}return xo.debounceTime=n,xo}var Oo={},Nw;function Fl(){if(Nw)return Oo;Nw=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.defaultIfEmpty=void 0;var e=ue(),t=fe();function r(n){return e.operate(function(i,a){var s=!1;i.subscribe(t.createOperatorSubscriber(a,function(o){s=!0,a.next(o)},function(){s||a.next(n),a.complete()}))})}return Oo.defaultIfEmpty=r,Oo}var wo={},So={},To={},qw;function Ip(){if(qw)return To;qw=1,Object.defineProperty(To,"__esModule",{value:!0}),To.concat=void 0;var e=Rp(),t=bt(),r=pr();function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e.concatAll()(r.from(i,t.popScheduler(i)))}return To.concat=n,To}var Po={},av={},Fw;function Nt(){return Fw||(Fw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var t=ke();e.EMPTY=new t.Observable(function(i){return i.complete()});function r(i){return i?n(i):e.EMPTY}e.empty=r;function n(i){return new t.Observable(function(a){return i.schedule(function(){return a.complete()})})}})(av)),av}var kw;function kl(){if(kw)return Po;kw=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.take=void 0;var e=Nt(),t=ue(),r=fe();function n(i){return i<=0?function(){return e.EMPTY}:t.operate(function(a,s){var o=0;a.subscribe(r.createOperatorSubscriber(s,function(c){++o<=i&&(s.next(c),i<=o&&s.complete())}))})}return Po.take=n,Po}var Ao={},Dw;function kg(){if(Dw)return Ao;Dw=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.ignoreElements=void 0;var e=ue(),t=fe(),r=at();function n(){return e.operate(function(i,a){i.subscribe(t.createOperatorSubscriber(a,r.noop))})}return Ao.ignoreElements=n,Ao}var Ro={},Lw;function Dg(){if(Lw)return Ro;Lw=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.mapTo=void 0;var e=fr();function t(r){return e.map(function(){return r})}return Ro.mapTo=t,Ro}var Uw;function Lg(){if(Uw)return So;Uw=1,Object.defineProperty(So,"__esModule",{value:!0}),So.delayWhen=void 0;var e=Ip(),t=kl(),r=kg(),n=Dg(),i=nr(),a=Se();function s(o,c){return c?function(u){return e.concat(c.pipe(t.take(1),r.ignoreElements()),u.pipe(s(o)))}:i.mergeMap(function(u,p){return a.innerFrom(o(u,p)).pipe(t.take(1),n.mapTo(u))})}return So.delayWhen=s,So}var zw;function oj(){if(zw)return wo;zw=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.delay=void 0;var e=yt(),t=Lg(),r=xn();function n(i,a){a===void 0&&(a=e.asyncScheduler);var s=r.timer(i,a);return t.delayWhen(function(){return s})}return wo.delay=n,wo}var Mo={},ov={},Io={},Bw;function Ug(){if(Bw)return Io;Bw=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.of=void 0;var e=bt(),t=pr();function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=e.popScheduler(n);return t.from(n,a)}return Io.of=r,Io}var Co={},Hw;function sj(){if(Hw)return Co;Hw=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.throwError=void 0;var e=ke(),t=qe();function r(n,i){var a=t.isFunction(n)?n:function(){return n},s=function(o){return o.error(a())};return new e.Observable(i?function(o){return i.schedule(s,0,o)}:s)}return Co.throwError=r,Co}var Vw;function zg(){return Vw||(Vw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=Nt(),r=Ug(),n=sj(),i=qe();(function(o){o.NEXT="N",o.ERROR="E",o.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var a=(function(){function o(c,u,p){this.kind=c,this.value=u,this.error=p,this.hasValue=c==="N"}return o.prototype.observe=function(c){return s(this,c)},o.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?.()},o.prototype.accept=function(c,u,p){var l;return i.isFunction((l=c)===null||l===void 0?void 0:l.next)?this.observe(c):this.do(c,u,p)},o.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},o.createNext=function(c){return new o("N",c)},o.createError=function(c){return new o("E",void 0,c)},o.createComplete=function(){return o.completeNotification},o.completeNotification=new o("C"),o})();e.Notification=a;function s(o,c){var u,p,l,d=o,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})(ov)),ov}var Gw;function cj(){if(Gw)return Mo;Gw=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.dematerialize=void 0;var e=zg(),t=ue(),r=fe();function n(){return t.operate(function(i,a){i.subscribe(r.createOperatorSubscriber(a,function(s){return e.observeNotification(s,a)}))})}return Mo.dematerialize=n,Mo}var jo={},Ww;function uj(){if(Ww)return jo;Ww=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.distinct=void 0;var e=ue(),t=fe(),r=at(),n=Se();function i(a,s){return e.operate(function(o,c){var u=new Set;o.subscribe(t.createOperatorSubscriber(c,function(p){var l=a?a(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 jo.distinct=i,jo}var No={},Zw;function Bg(){if(Zw)return No;Zw=1,Object.defineProperty(No,"__esModule",{value:!0}),No.distinctUntilChanged=void 0;var e=ot(),t=ue(),r=fe();function n(a,s){return s===void 0&&(s=e.identity),a=a??i,t.operate(function(o,c){var u,p=!0;o.subscribe(r.createOperatorSubscriber(c,function(l){var d=s(l);(p||!a(u,d))&&(p=!1,u=d,c.next(l))}))})}No.distinctUntilChanged=n;function i(a,s){return a===s}return No}var qo={},Kw;function lj(){if(Kw)return qo;Kw=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.distinctUntilKeyChanged=void 0;var e=Bg();function t(r,n){return e.distinctUntilChanged(function(i,a){return n?n(i[r],a[r]):i[r]===a[r]})}return qo.distinctUntilKeyChanged=t,qo}var Fo={},ko={},Yw;function dj(){if(Yw)return ko;Yw=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.ArgumentOutOfRangeError=void 0;var e=En();return ko.ArgumentOutOfRangeError=e.createErrorClass(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),ko}var Do={},Xw;function hr(){if(Xw)return Do;Xw=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.filter=void 0;var e=ue(),t=fe();function r(n,i){return e.operate(function(a,s){var o=0;a.subscribe(t.createOperatorSubscriber(s,function(c){return n.call(i,c,o++)&&s.next(c)}))})}return Do.filter=r,Do}var Lo={},Uo={},Jw;function wn(){if(Jw)return Uo;Jw=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.EmptyError=void 0;var e=En();return Uo.EmptyError=e.createErrorClass(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}),Uo}var Qw;function Dl(){if(Qw)return Lo;Qw=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.throwIfEmpty=void 0;var e=wn(),t=ue(),r=fe();function n(a){return a===void 0&&(a=i),t.operate(function(s,o){var c=!1;s.subscribe(r.createOperatorSubscriber(o,function(u){c=!0,o.next(u)},function(){return c?o.complete():o.error(a())}))})}Lo.throwIfEmpty=n;function i(){return new e.EmptyError}return Lo}var $w;function pj(){if($w)return Fo;$w=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.elementAt=void 0;var e=dj(),t=hr(),r=Dl(),n=Fl(),i=kl();function a(s,o){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}),i.take(1),c?n.defaultIfEmpty(o):r.throwIfEmpty(function(){return new e.ArgumentOutOfRangeError}))}}return Fo.elementAt=a,Fo}var Vt={},e0;function fj(){if(e0)return Vt;e0=1;var e=Vt&&Vt.__read||function(a,s){var o=typeof Symbol=="function"&&a[Symbol.iterator];if(!o)return a;var c=o.call(a),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&&(o=c.return)&&o.call(c)}finally{if(l)throw l.error}}return p},t=Vt&&Vt.__spreadArray||function(a,s){for(var o=0,c=s.length,u=a.length;o<c;o++,u++)a[u]=s[o];return a};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.endWith=void 0;var r=Ip(),n=Ug();function i(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return function(o){return r.concat(o,n.of.apply(void 0,t([],e(a))))}}return Vt.endWith=i,Vt}var zo={},t0;function hj(){if(t0)return zo;t0=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.every=void 0;var e=ue(),t=fe();function r(n,i){return e.operate(function(a,s){var o=0;a.subscribe(t.createOperatorSubscriber(s,function(c){n.call(i,c,o++,a)||(s.next(!1),s.complete())},function(){s.next(!0),s.complete()}))})}return zo.every=r,zo}var Bo={},Ho={},Vo={},r0;function Hg(){if(r0)return Vo;r0=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.exhaustMap=void 0;var e=fr(),t=Se(),r=ue(),n=fe();function i(a,s){return s?function(o){return o.pipe(i(function(c,u){return t.innerFrom(a(c,u)).pipe(e.map(function(p,l){return s(c,p,u,l)}))}))}:r.operate(function(o,c){var u=0,p=null,l=!1;o.subscribe(n.createOperatorSubscriber(c,function(d){p||(p=n.createOperatorSubscriber(c,void 0,function(){p=null,l&&c.complete()}),t.innerFrom(a(d,u++)).subscribe(p))},function(){l=!0,!p&&c.complete()}))})}return Vo.exhaustMap=i,Vo}var n0;function Vg(){if(n0)return Ho;n0=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.exhaustAll=void 0;var e=Hg(),t=ot();function r(){return e.exhaustMap(t.identity)}return Ho.exhaustAll=r,Ho}var i0;function vj(){if(i0)return Bo;i0=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.exhaust=void 0;var e=Vg();return Bo.exhaust=e.exhaustAll,Bo}var Go={},a0;function mj(){if(a0)return Go;a0=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.expand=void 0;var e=ue(),t=jg();function r(n,i,a){return i===void 0&&(i=1/0),i=(i||0)<1?1/0:i,e.operate(function(s,o){return t.mergeInternals(s,o,n,i,void 0,!0,a)})}return Go.expand=r,Go}var Wo={},o0;function _j(){if(o0)return Wo;o0=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.finalize=void 0;var e=ue();function t(r){return e.operate(function(n,i){try{n.subscribe(i)}finally{i.add(r)}})}return Wo.finalize=t,Wo}var kr={},s0;function Gg(){if(s0)return kr;s0=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.createFind=kr.find=void 0;var e=ue(),t=fe();function r(i,a){return e.operate(n(i,a,"value"))}kr.find=r;function n(i,a,s){var o=s==="index";return function(c,u){var p=0;c.subscribe(t.createOperatorSubscriber(u,function(l){var d=p++;i.call(a,l,d,c)&&(u.next(o?d:l),u.complete())},function(){u.next(o?-1:void 0),u.complete()}))}}return kr.createFind=n,kr}var Zo={},c0;function gj(){if(c0)return Zo;c0=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.findIndex=void 0;var e=ue(),t=Gg();function r(n,i){return e.operate(t.createFind(n,i,"index"))}return Zo.findIndex=r,Zo}var Ko={},u0;function yj(){if(u0)return Ko;u0=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.first=void 0;var e=wn(),t=hr(),r=kl(),n=Fl(),i=Dl(),a=ot();function s(o,c){var u=arguments.length>=2;return function(p){return p.pipe(o?t.filter(function(l,d){return o(l,d,p)}):a.identity,r.take(1),u?n.defaultIfEmpty(c):i.throwIfEmpty(function(){return new e.EmptyError}))}}return Ko.first=s,Ko}var Yo={},l0;function bj(){if(l0)return Yo;l0=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.groupBy=void 0;var e=ke(),t=Se(),r=st(),n=ue(),i=fe();function a(s,o,c,u){return n.operate(function(p,l){var d;!o||typeof o=="function"?d=o:(c=o.duration,d=o.element,u=o.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 i.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=i.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 Yo.groupBy=a,Yo}var Xo={},d0;function Ej(){if(d0)return Xo;d0=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.isEmpty=void 0;var e=ue(),t=fe();function r(){return e.operate(function(n,i){n.subscribe(t.createOperatorSubscriber(i,function(){i.next(!1),i.complete()},function(){i.next(!0),i.complete()}))})}return Xo.isEmpty=r,Xo}var Jo={},Dr={},p0;function Wg(){if(p0)return Dr;p0=1;var e=Dr&&Dr.__values||function(a){var s=typeof Symbol=="function"&&Symbol.iterator,o=s&&a[s],c=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.takeLast=void 0;var t=Nt(),r=ue(),n=fe();function i(a){return a<=0?function(){return t.EMPTY}:r.operate(function(s,o){var c=[];s.subscribe(n.createOperatorSubscriber(o,function(u){c.push(u),a<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;o.next(f)}}catch(h){u={error:h}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(u)throw u.error}}o.complete()},void 0,function(){c=null}))})}return Dr.takeLast=i,Dr}var f0;function xj(){if(f0)return Jo;f0=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.last=void 0;var e=wn(),t=hr(),r=Wg(),n=Dl(),i=Fl(),a=ot();function s(o,c){var u=arguments.length>=2;return function(p){return p.pipe(o?t.filter(function(l,d){return o(l,d,p)}):a.identity,r.takeLast(1),u?i.defaultIfEmpty(c):n.throwIfEmpty(function(){return new e.EmptyError}))}}return Jo.last=s,Jo}var Qo={},h0;function Oj(){if(h0)return Qo;h0=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.materialize=void 0;var e=zg(),t=ue(),r=fe();function n(){return t.operate(function(i,a){i.subscribe(r.createOperatorSubscriber(a,function(s){a.next(e.Notification.createNext(s))},function(){a.next(e.Notification.createComplete()),a.complete()},function(s){a.next(e.Notification.createError(s)),a.complete()}))})}return Qo.materialize=n,Qo}var $o={},v0;function wj(){if(v0)return $o;v0=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.max=void 0;var e=hi(),t=qe();function r(n){return e.reduce(t.isFunction(n)?function(i,a){return n(i,a)>0?i:a}:function(i,a){return i>a?i:a})}return $o.max=r,$o}var Gt={},m0;function Sj(){if(m0)return Gt;m0=1;var e=Gt&&Gt.__read||function(o,c){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var p=u.call(o),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=Gt&&Gt.__spreadArray||function(o,c){for(var u=0,p=c.length,l=o.length;u<p;u++,l++)o[l]=c[u];return o};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.merge=void 0;var r=ue(),n=ql(),i=bt(),a=pr();function s(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];var u=i.popScheduler(o),p=i.popNumber(o,1/0);return r.operate(function(l,d){n.mergeAll(p)(a.from(t([l],e(o)),u)).subscribe(d)})}return Gt.merge=s,Gt}var es={},_0;function Tj(){if(_0)return es;_0=1,Object.defineProperty(es,"__esModule",{value:!0}),es.flatMap=void 0;var e=nr();return es.flatMap=e.mergeMap,es}var ts={},g0;function Pj(){if(g0)return ts;g0=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.mergeMapTo=void 0;var e=nr(),t=qe();function r(n,i,a){return a===void 0&&(a=1/0),t.isFunction(i)?e.mergeMap(function(){return n},i,a):(typeof i=="number"&&(a=i),e.mergeMap(function(){return n},a))}return ts.mergeMapTo=r,ts}var rs={},y0;function Aj(){if(y0)return rs;y0=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.mergeScan=void 0;var e=ue(),t=jg();function r(n,i,a){return a===void 0&&(a=1/0),e.operate(function(s,o){var c=i;return t.mergeInternals(s,o,function(u,p){return n(c,u,p)},a,function(u){c=u},!1,void 0,function(){return c=null})})}return rs.mergeScan=r,rs}var Wt={},b0;function Rj(){if(b0)return Wt;b0=1;var e=Wt&&Wt.__read||function(i,a){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var o=s.call(i),c,u=[],p;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(p)throw p.error}}return u},t=Wt&&Wt.__spreadArray||function(i,a){for(var s=0,o=a.length,c=i.length;s<o;s++,c++)i[c]=a[s];return i};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.mergeWith=void 0;var r=Sj();function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r.merge.apply(void 0,t([],e(i)))}return Wt.mergeWith=n,Wt}var ns={},E0;function Mj(){if(E0)return ns;E0=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.min=void 0;var e=hi(),t=qe();function r(n){return e.reduce(t.isFunction(n)?function(i,a){return n(i,a)<0?i:a}:function(i,a){return i<a?i:a})}return ns.min=r,ns}var is={},Lr={},as={},x0;function Zg(){if(x0)return as;x0=1,Object.defineProperty(as,"__esModule",{value:!0}),as.refCount=void 0;var e=ue(),t=fe();function r(){return e.operate(function(n,i){var a=null;n._refCount++;var s=t.createOperatorSubscriber(i,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount){a=null;return}var o=n._connection,c=a;a=null,o&&(!c||o===c)&&o.unsubscribe(),i.unsubscribe()});n.subscribe(s),s.closed||(a=n.connect())})}return as.refCount=r,as}var O0;function Cp(){if(O0)return Lr;O0=1;var e=Lr&&Lr.__extends||(function(){var o=function(c,u){return o=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])},o(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");o(c,u);function p(){this.constructor=c}c.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}})();Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.ConnectableObservable=void 0;var t=ke(),r=wt(),n=Zg(),i=fe(),a=ue(),s=(function(o){e(c,o);function c(u,p){var l=o.call(this)||this;return l.source=u,l.subjectFactory=p,l._subject=null,l._refCount=0,l._connection=null,a.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(i.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 Lr.ConnectableObservable=s,Lr}var w0;function jp(){if(w0)return is;w0=1,Object.defineProperty(is,"__esModule",{value:!0}),is.multicast=void 0;var e=Cp(),t=qe(),r=Mp();function n(i,a){var s=t.isFunction(i)?i:function(){return i};return t.isFunction(a)?r.connect(a,{connector:s}):function(o){return new e.ConnectableObservable(o,s)}}return is.multicast=n,is}var Mt={},os={},S0;function Ij(){if(S0)return os;S0=1,Object.defineProperty(os,"__esModule",{value:!0}),os.onErrorResumeNext=void 0;var e=ke(),t=vi(),r=fe(),n=at(),i=Se();function a(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];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=i.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 os.onErrorResumeNext=a,os}var T0;function Cj(){if(T0)return Mt;T0=1;var e=Mt&&Mt.__read||function(a,s){var o=typeof Symbol=="function"&&a[Symbol.iterator];if(!o)return a;var c=o.call(a),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&&(o=c.return)&&o.call(c)}finally{if(l)throw l.error}}return p},t=Mt&&Mt.__spreadArray||function(a,s){for(var o=0,c=s.length,u=a.length;o<c;o++,u++)a[u]=s[o];return a};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.onErrorResumeNext=Mt.onErrorResumeNextWith=void 0;var r=vi(),n=Ij();function i(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var o=r.argsOrArgArray(a);return function(c){return n.onErrorResumeNext.apply(void 0,t([c],e(o)))}}return Mt.onErrorResumeNextWith=i,Mt.onErrorResumeNext=i,Mt}var ss={},P0;function jj(){if(P0)return ss;P0=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.pairwise=void 0;var e=ue(),t=fe();function r(){return e.operate(function(n,i){var a,s=!1;n.subscribe(t.createOperatorSubscriber(i,function(o){var c=a;a=o,s&&i.next([c,o]),s=!0}))})}return ss.pairwise=r,ss}var cs={},us={},A0;function Nj(){if(A0)return us;A0=1,Object.defineProperty(us,"__esModule",{value:!0}),us.not=void 0;function e(t,r){return function(n,i){return!t.call(r,n,i)}}return us.not=e,us}var R0;function VU(){if(R0)return cs;R0=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.partition=void 0;var e=Nj(),t=hr();function r(n,i){return function(a){return[t.filter(n,i)(a),t.filter(e.not(n,i))(a)]}}return cs.partition=r,cs}var ls={},M0;function qj(){if(M0)return ls;M0=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.pluck=void 0;var e=fr();function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=r.length;if(i===0)throw new Error("list of properties cannot be empty.");return e.map(function(a){for(var s=a,o=0;o<i;o++){var c=s?.[r[o]];if(typeof c<"u")s=c;else return}return s})}return ls.pluck=t,ls}var ds={},I0;function Fj(){if(I0)return ds;I0=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.publish=void 0;var e=st(),t=jp(),r=Mp();function n(i){return i?function(a){return r.connect(i)(a)}:function(a){return t.multicast(new e.Subject)(a)}}return ds.publish=n,ds}var ps={},Ur={},C0;function kj(){if(C0)return Ur;C0=1;var e=Ur&&Ur.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.BehaviorSubject=void 0;var t=st(),r=(function(n){e(i,n);function i(a){var s=n.call(this)||this;return s._value=a,s}return Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),i.prototype._subscribe=function(a){var s=n.prototype._subscribe.call(this,a);return!s.closed&&a.next(this._value),s},i.prototype.getValue=function(){var a=this,s=a.hasError,o=a.thrownError,c=a._value;if(s)throw o;return this._throwIfClosed(),c},i.prototype.next=function(a){n.prototype.next.call(this,this._value=a)},i})(t.Subject);return Ur.BehaviorSubject=r,Ur}var j0;function Dj(){if(j0)return ps;j0=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.publishBehavior=void 0;var e=kj(),t=Cp();function r(n){return function(i){var a=new e.BehaviorSubject(n);return new t.ConnectableObservable(i,function(){return a})}}return ps.publishBehavior=r,ps}var fs={},zr={},N0;function Kg(){if(N0)return zr;N0=1;var e=zr&&zr.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(zr,"__esModule",{value:!0}),zr.AsyncSubject=void 0;var t=st(),r=(function(n){e(i,n);function i(){var a=n!==null&&n.apply(this,arguments)||this;return a._value=null,a._hasValue=!1,a._isComplete=!1,a}return i.prototype._checkFinalizedStatuses=function(a){var s=this,o=s.hasError,c=s._hasValue,u=s._value,p=s.thrownError,l=s.isStopped,d=s._isComplete;o?a.error(p):(l||d)&&(c&&a.next(u),a.complete())},i.prototype.next=function(a){this.isStopped||(this._value=a,this._hasValue=!0)},i.prototype.complete=function(){var a=this,s=a._hasValue,o=a._value,c=a._isComplete;c||(this._isComplete=!0,s&&n.prototype.next.call(this,o),n.prototype.complete.call(this))},i})(t.Subject);return zr.AsyncSubject=r,zr}var q0;function Lj(){if(q0)return fs;q0=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.publishLast=void 0;var e=Kg(),t=Cp();function r(){return function(n){var i=new e.AsyncSubject;return new t.ConnectableObservable(n,function(){return i})}}return fs.publishLast=r,fs}var hs={},Br={},F0;function Yg(){if(F0)return Br;F0=1;var e=Br&&Br.__extends||(function(){var i=function(a,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(o[u]=c[u])},i(a,s)};return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(a,s);function o(){this.constructor=a}a.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}})();Object.defineProperty(Br,"__esModule",{value:!0}),Br.ReplaySubject=void 0;var t=st(),r=Mg(),n=(function(i){e(a,i);function a(s,o,c){s===void 0&&(s=1/0),o===void 0&&(o=1/0),c===void 0&&(c=r.dateTimestampProvider);var u=i.call(this)||this;return u._bufferSize=s,u._windowTime=o,u._timestampProvider=c,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=o===1/0,u._bufferSize=Math.max(1,s),u._windowTime=Math.max(1,o),u}return a.prototype.next=function(s){var o=this,c=o.isStopped,u=o._buffer,p=o._infiniteTimeWindow,l=o._timestampProvider,d=o._windowTime;c||(u.push(s),!p&&u.push(l.now()+d)),this._trimBuffer(),i.prototype.next.call(this,s)},a.prototype._subscribe=function(s){this._throwIfClosed(),this._trimBuffer();for(var o=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),o},a.prototype._trimBuffer=function(){var s=this,o=s._bufferSize,c=s._timestampProvider,u=s._buffer,p=s._infiniteTimeWindow,l=(p?1:2)*o;if(o<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)}},a})(t.Subject);return Br.ReplaySubject=n,Br}var k0;function Uj(){if(k0)return hs;k0=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.publishReplay=void 0;var e=Yg(),t=jp(),r=qe();function n(i,a,s,o){s&&!r.isFunction(s)&&(o=s);var c=r.isFunction(s)?s:void 0;return function(u){return t.multicast(new e.ReplaySubject(i,a,o),c)(u)}}return hs.publishReplay=n,hs}var Zt={},Kt={},Hr={},D0;function zj(){if(D0)return Hr;D0=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.raceInit=Hr.race=void 0;var e=ke(),t=Se(),r=vi(),n=fe();function i(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return s=r.argsOrArgArray(s),s.length===1?t.innerFrom(s[0]):new e.Observable(a(s))}Hr.race=i;function a(s){return function(o){for(var c=[],u=function(l){c.push(t.innerFrom(s[l]).subscribe(n.createOperatorSubscriber(o,function(d){if(c){for(var f=0;f<c.length;f++)f!==l&&c[f].unsubscribe();c=null}o.next(d)})))},p=0;c&&!o.closed&&p<s.length;p++)u(p)}}return Hr.raceInit=a,Hr}var L0;function Xg(){if(L0)return Kt;L0=1;var e=Kt&&Kt.__read||function(s,o){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(o===void 0||o-- >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,o){for(var c=0,u=o.length,p=s.length;c<u;c++,p++)s[p]=o[c];return s};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.raceWith=void 0;var r=zj(),n=ue(),i=ot();function a(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return s.length?n.operate(function(c,u){r.raceInit(t([c],e(s)))(u)}):i.identity}return Kt.raceWith=a,Kt}var U0;function GU(){if(U0)return Zt;U0=1;var e=Zt&&Zt.__read||function(a,s){var o=typeof Symbol=="function"&&a[Symbol.iterator];if(!o)return a;var c=o.call(a),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&&(o=c.return)&&o.call(c)}finally{if(l)throw l.error}}return p},t=Zt&&Zt.__spreadArray||function(a,s){for(var o=0,c=s.length,u=a.length;o<c;o++,u++)a[u]=s[o];return a};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.race=void 0;var r=vi(),n=Xg();function i(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n.raceWith.apply(void 0,t([],e(r.argsOrArgArray(a))))}return Zt.race=i,Zt}var vs={},z0;function Bj(){if(z0)return vs;z0=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.repeat=void 0;var e=Nt(),t=ue(),r=fe(),n=Se(),i=xn();function a(s){var o,c=1/0,u;return s!=null&&(typeof s=="object"?(o=s.count,c=o===void 0?1/0:o,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"?i.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 vs.repeat=a,vs}var ms={},B0;function Hj(){if(B0)return ms;B0=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.repeatWhen=void 0;var e=Se(),t=st(),r=ue(),n=fe();function i(a){return r.operate(function(s,o){var c,u=!1,p,l=!1,d=!1,f=function(){return d&&l&&(o.complete(),!0)},h=function(){return p||(p=new t.Subject,e.innerFrom(a(p)).subscribe(n.createOperatorSubscriber(o,function(){c?m():u=!0},function(){l=!0,f()}))),p},m=function(){d=!1,c=s.subscribe(n.createOperatorSubscriber(o,void 0,function(){d=!0,!f()&&h().next()})),u&&(c.unsubscribe(),c=null,u=!1,m())};m()})}return ms.repeatWhen=i,ms}var _s={},H0;function Vj(){if(H0)return _s;H0=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.retry=void 0;var e=ue(),t=fe(),r=ot(),n=xn(),i=Se();function a(s){s===void 0&&(s=1/0);var o;s&&typeof s=="object"?o=s:o={count:s};var c=o.count,u=c===void 0?1/0:c,p=o.delay,l=o.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):i.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 _s.retry=a,_s}var gs={},V0;function Gj(){if(V0)return gs;V0=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.retryWhen=void 0;var e=Se(),t=st(),r=ue(),n=fe();function i(a){return r.operate(function(s,o){var c,u=!1,p,l=function(){c=s.subscribe(n.createOperatorSubscriber(o,void 0,void 0,function(d){p||(p=new t.Subject,e.innerFrom(a(p)).subscribe(n.createOperatorSubscriber(o,function(){return c?l():u=!0}))),p&&p.next(d)})),u&&(c.unsubscribe(),c=null,u=!1,l())};l()})}return gs.retryWhen=i,gs}var ys={},G0;function Jg(){if(G0)return ys;G0=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.sample=void 0;var e=Se(),t=ue(),r=at(),n=fe();function i(a){return t.operate(function(s,o){var c=!1,u=null;s.subscribe(n.createOperatorSubscriber(o,function(p){c=!0,u=p})),e.innerFrom(a).subscribe(n.createOperatorSubscriber(o,function(){if(c){c=!1;var p=u;u=null,o.next(p)}},r.noop))})}return ys.sample=i,ys}var bs={},Es={},W0;function Wj(){if(W0)return Es;W0=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.interval=void 0;var e=yt(),t=xn();function r(n,i){return n===void 0&&(n=0),i===void 0&&(i=e.asyncScheduler),n<0&&(n=0),t.timer(n,n,i)}return Es.interval=r,Es}var Z0;function Zj(){if(Z0)return bs;Z0=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.sampleTime=void 0;var e=yt(),t=Jg(),r=Wj();function n(i,a){return a===void 0&&(a=e.asyncScheduler),t.sample(r.interval(i,a))}return bs.sampleTime=n,bs}var xs={},K0;function Kj(){if(K0)return xs;K0=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.scan=void 0;var e=ue(),t=KC();function r(n,i){return e.operate(t.scanInternals(n,i,arguments.length>=2,!0))}return xs.scan=r,xs}var Os={},Y0;function Yj(){if(Y0)return Os;Y0=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.sequenceEqual=void 0;var e=ue(),t=fe(),r=Se();function n(a,s){return s===void 0&&(s=function(o,c){return o===c}),e.operate(function(o,c){var u=i(),p=i(),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};o.subscribe(d(u,p)),r.innerFrom(a).subscribe(d(p,u))})}Os.sequenceEqual=n;function i(){return{buffer:[],complete:!1}}return Os}var Yt={},X0;function Qg(){if(X0)return Yt;X0=1;var e=Yt&&Yt.__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=Yt&&Yt.__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(Yt,"__esModule",{value:!0}),Yt.share=void 0;var r=Se(),n=st(),i=Ml(),a=ue();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 a.operate(function(T,P){E++,!O&&!x&&S();var q=b=b??p();P.add(function(){E--,E===0&&!O&&!x&&(y=o(A,v))}),q.subscribe(P),!g&&E>0&&(g=new i.SafeSubscriber({next:function(D){return q.next(D)},error:function(D){O=!0,S(),y=o(w,d,D),q.error(D)},complete:function(){x=!0,S(),y=o(w,h),q.complete()}}),r.innerFrom(T).subscribe(g))})(_)}}Yt.share=s;function o(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 i.SafeSubscriber({next:function(){d.unsubscribe(),c()}});return r.innerFrom(u.apply(void 0,t([],e(p)))).subscribe(d)}}return Yt}var ws={},J0;function Xj(){if(J0)return ws;J0=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.shareReplay=void 0;var e=Yg(),t=Qg();function r(n,i,a){var s,o,c,u,p=!1;return n&&typeof n=="object"?(s=n.bufferSize,u=s===void 0?1/0:s,o=n.windowTime,i=o===void 0?1/0:o,c=n.refCount,p=c===void 0?!1:c,a=n.scheduler):u=n??1/0,t.share({connector:function(){return new e.ReplaySubject(u,i,a)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:p})}return ws.shareReplay=r,ws}var Ss={},Ts={},Q0;function Jj(){if(Q0)return Ts;Q0=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.SequenceError=void 0;var e=En();return Ts.SequenceError=e.createErrorClass(function(t){return function(n){t(this),this.name="SequenceError",this.message=n}}),Ts}var Ps={},$0;function Qj(){if($0)return Ps;$0=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.NotFoundError=void 0;var e=En();return Ps.NotFoundError=e.createErrorClass(function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}}),Ps}var eS;function $j(){if(eS)return Ss;eS=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.single=void 0;var e=wn(),t=Jj(),r=Qj(),n=ue(),i=fe();function a(s){return n.operate(function(o,c){var u=!1,p,l=!1,d=0;o.subscribe(i.createOperatorSubscriber(c,function(f){l=!0,(!s||s(f,d++,o))&&(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 Ss.single=a,Ss}var As={},tS;function eN(){if(tS)return As;tS=1,Object.defineProperty(As,"__esModule",{value:!0}),As.skip=void 0;var e=hr();function t(r){return e.filter(function(n,i){return r<=i})}return As.skip=t,As}var Rs={},rS;function tN(){if(rS)return Rs;rS=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.skipLast=void 0;var e=ot(),t=ue(),r=fe();function n(i){return i<=0?e.identity:t.operate(function(a,s){var o=new Array(i),c=0;return a.subscribe(r.createOperatorSubscriber(s,function(u){var p=c++;if(p<i)o[p]=u;else{var l=p%i,d=o[l];o[l]=u,s.next(d)}})),function(){o=null}})}return Rs.skipLast=n,Rs}var Ms={},nS;function rN(){if(nS)return Ms;nS=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.skipUntil=void 0;var e=ue(),t=fe(),r=Se(),n=at();function i(a){return e.operate(function(s,o){var c=!1,u=t.createOperatorSubscriber(o,function(){u?.unsubscribe(),c=!0},n.noop);r.innerFrom(a).subscribe(u),s.subscribe(t.createOperatorSubscriber(o,function(p){return c&&o.next(p)}))})}return Ms.skipUntil=i,Ms}var Is={},iS;function nN(){if(iS)return Is;iS=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.skipWhile=void 0;var e=ue(),t=fe();function r(n){return e.operate(function(i,a){var s=!1,o=0;i.subscribe(t.createOperatorSubscriber(a,function(c){return(s||(s=!n(c,o++)))&&a.next(c)}))})}return Is.skipWhile=r,Is}var Cs={},aS;function iN(){if(aS)return Cs;aS=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.startWith=void 0;var e=Ip(),t=bt(),r=ue();function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=t.popScheduler(i);return r.operate(function(o,c){(s?e.concat(i,o,s):e.concat(i,o)).subscribe(c)})}return Cs.startWith=n,Cs}var js={},Ns={},oS;function Ll(){if(oS)return Ns;oS=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.switchMap=void 0;var e=Se(),t=ue(),r=fe();function n(i,a){return t.operate(function(s,o){var c=null,u=0,p=!1,l=function(){return p&&!c&&o.complete()};s.subscribe(r.createOperatorSubscriber(o,function(d){c?.unsubscribe();var f=0,h=u++;e.innerFrom(i(d,h)).subscribe(c=r.createOperatorSubscriber(o,function(m){return o.next(a?a(d,m,h,f++):m)},function(){c=null,l()}))},function(){p=!0,l()}))})}return Ns.switchMap=n,Ns}var sS;function aN(){if(sS)return js;sS=1,Object.defineProperty(js,"__esModule",{value:!0}),js.switchAll=void 0;var e=Ll(),t=ot();function r(){return e.switchMap(t.identity)}return js.switchAll=r,js}var qs={},cS;function oN(){if(cS)return qs;cS=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.switchMapTo=void 0;var e=Ll(),t=qe();function r(n,i){return t.isFunction(i)?e.switchMap(function(){return n},i):e.switchMap(function(){return n})}return qs.switchMapTo=r,qs}var Fs={},uS;function sN(){if(uS)return Fs;uS=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.switchScan=void 0;var e=Ll(),t=ue();function r(n,i){return t.operate(function(a,s){var o=i;return e.switchMap(function(c,u){return n(o,c,u)},function(c,u){return o=u,u})(a).subscribe(s),function(){o=null}})}return Fs.switchScan=r,Fs}var ks={},lS;function cN(){if(lS)return ks;lS=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.takeUntil=void 0;var e=ue(),t=fe(),r=Se(),n=at();function i(a){return e.operate(function(s,o){r.innerFrom(a).subscribe(t.createOperatorSubscriber(o,function(){return o.complete()},n.noop)),!o.closed&&s.subscribe(o)})}return ks.takeUntil=i,ks}var Ds={},dS;function uN(){if(dS)return Ds;dS=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.takeWhile=void 0;var e=ue(),t=fe();function r(n,i){return i===void 0&&(i=!1),e.operate(function(a,s){var o=0;a.subscribe(t.createOperatorSubscriber(s,function(c){var u=n(c,o++);(u||i)&&s.next(c),!u&&s.complete()}))})}return Ds.takeWhile=r,Ds}var Ls={},pS;function lN(){if(pS)return Ls;pS=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.tap=void 0;var e=qe(),t=ue(),r=fe(),n=ot();function i(a,s,o){var c=e.isFunction(a)||s||o?{next:a,error:s,complete:o}:a;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 Ls.tap=i,Ls}var Us={},fS;function $g(){if(fS)return Us;fS=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.throttle=void 0;var e=ue(),t=fe(),r=Se();function n(i,a){return e.operate(function(s,o){var c=a??{},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&&o.complete())},g=function(){m=null,v&&o.complete()},y=function(E){return m=r.innerFrom(i(E)).subscribe(t.createOperatorSubscriber(o,_,g))},b=function(){if(f){f=!1;var E=h;h=null,o.next(E),!v&&y(E)}};s.subscribe(t.createOperatorSubscriber(o,function(E){f=!0,h=E,!(m&&!m.closed)&&(p?b():y(E))},function(){v=!0,!(d&&f&&m&&!m.closed)&&o.complete()}))})}return Us.throttle=n,Us}var zs={},hS;function dN(){if(hS)return zs;hS=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.throttleTime=void 0;var e=yt(),t=$g(),r=xn();function n(i,a,s){a===void 0&&(a=e.asyncScheduler);var o=r.timer(i,a);return t.throttle(function(){return o},s)}return zs.throttleTime=n,zs}var Vr={},vS;function pN(){if(vS)return Vr;vS=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.TimeInterval=Vr.timeInterval=void 0;var e=yt(),t=ue(),r=fe();function n(a){return a===void 0&&(a=e.asyncScheduler),t.operate(function(s,o){var c=a.now();s.subscribe(r.createOperatorSubscriber(o,function(u){var p=a.now(),l=p-c;c=p,o.next(new i(u,l))}))})}Vr.timeInterval=n;var i=(function(){function a(s,o){this.value=s,this.interval=o}return a})();return Vr.TimeInterval=i,Vr}var sv={},mS;function up(){return mS||(mS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var t=yt(),r=Ig(),n=ue(),i=Se(),a=En(),s=fe(),o=dr();e.TimeoutError=a.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=o.executeSchedule(x,g,function(){try{O.unsubscribe(),i.innerFrom(v({meta:b,lastValue:w,seen:A})).subscribe(x)}catch(q){x.error(q)}},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)}})(sv)),sv}var Bs={},_S;function fN(){if(_S)return Bs;_S=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.timeoutWith=void 0;var e=yt(),t=Ig(),r=up();function n(i,a,s){var o,c,u;if(s=s??e.async,t.isValidDate(i)?o=i:typeof i=="number"&&(c=i),a)u=function(){return a};else throw new TypeError("No observable provided to switch to");if(o==null&&c==null)throw new TypeError("No timeout provided.");return r.timeout({first:o,each:c,scheduler:s,with:u})}return Bs.timeoutWith=n,Bs}var Hs={},gS;function hN(){if(gS)return Hs;gS=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.timestamp=void 0;var e=Mg(),t=fr();function r(n){return n===void 0&&(n=e.dateTimestampProvider),t.map(function(i){return{value:i,timestamp:n.now()}})}return Hs.timestamp=r,Hs}var Vs={},yS;function vN(){if(yS)return Vs;yS=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.window=void 0;var e=st(),t=ue(),r=fe(),n=at(),i=Se();function a(s){return t.operate(function(o,c){var u=new e.Subject;c.next(u.asObservable());var p=function(l){u.error(l),c.error(l)};return o.subscribe(r.createOperatorSubscriber(c,function(l){return u?.next(l)},function(){u.complete(),c.complete()},p)),i.innerFrom(s).subscribe(r.createOperatorSubscriber(c,function(){u.complete(),c.next(u=new e.Subject)},n.noop,p)),function(){u?.unsubscribe(),u=null}})}return Vs.window=a,Vs}var Gr={},bS;function mN(){if(bS)return Gr;bS=1;var e=Gr&&Gr.__values||function(a){var s=typeof Symbol=="function"&&Symbol.iterator,o=s&&a[s],c=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.windowCount=void 0;var t=st(),r=ue(),n=fe();function i(a,s){s===void 0&&(s=0);var o=s>0?s:a;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-a+1;if(g>=0&&g%o===0&&p.shift().complete(),++l%o===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 Gr.windowCount=i,Gr}var Gs={},ES;function _N(){if(ES)return Gs;ES=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.windowTime=void 0;var e=st(),t=yt(),r=wt(),n=ue(),i=fe(),a=lr(),s=bt(),o=dr();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(),a.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()),o.executeSchedule(w,h,function(){return E(T)},u)}};m!==null&&m>=0?o.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(i.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 Gs.windowTime=c,Gs}var Wr={},xS;function gN(){if(xS)return Wr;xS=1;var e=Wr&&Wr.__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(Wr,"__esModule",{value:!0}),Wr.windowToggle=void 0;var t=st(),r=wt(),n=ue(),i=Se(),a=fe(),s=at(),o=lr();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)};i.innerFrom(u).subscribe(a.createOperatorSubscriber(d,function(m){var v=new t.Subject;f.push(v);var _=new r.Subscription,g=function(){o.arrRemove(f,v),v.complete(),_.unsubscribe()},y;try{y=i.innerFrom(p(m))}catch(b){h(b);return}d.next(v.asObservable()),_.add(y.subscribe(a.createOperatorSubscriber(d,g,s.noop,h)))},s.noop)),l.subscribe(a.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 Wr.windowToggle=c,Wr}var Ws={},OS;function yN(){if(OS)return Ws;OS=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.windowWhen=void 0;var e=st(),t=ue(),r=fe(),n=Se();function i(a){return t.operate(function(s,o){var c,u,p=function(d){c.error(d),o.error(d)},l=function(){u?.unsubscribe(),c?.complete(),c=new e.Subject,o.next(c.asObservable());var d;try{d=n.innerFrom(a())}catch(f){p(f);return}d.subscribe(u=r.createOperatorSubscriber(o,l,l,p))};l(),s.subscribe(r.createOperatorSubscriber(o,function(d){return c.next(d)},function(){c.complete(),o.complete()},p,function(){u?.unsubscribe(),c=null}))})}return Ws.windowWhen=i,Ws}var Xt={},wS;function bN(){if(wS)return Xt;wS=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.withLatestFrom=void 0;var r=ue(),n=fe(),i=Se(),a=ot(),s=at(),o=bt();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=o.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){i.innerFrom(u[b]).subscribe(n.createOperatorSubscriber(f,function(E){m[b]=E,!_&&!v[b]&&(v[b]=!0,(_=v.every(a.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 Xt.withLatestFrom=c,Xt}var Jt={},Qt={},SS;function ey(){if(SS)return Qt;SS=1;var e=Qt&&Qt.__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=Qt&&Qt.__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(Qt,"__esModule",{value:!0}),Qt.zip=void 0;var r=ke(),n=Se(),i=vi(),a=Nt(),s=fe(),o=bt();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=o.popResultSelector(u),d=i.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}}):a.EMPTY}return Qt.zip=c,Qt}var TS;function EN(){if(TS)return Jt;TS=1;var e=Jt&&Jt.__read||function(a,s){var o=typeof Symbol=="function"&&a[Symbol.iterator];if(!o)return a;var c=o.call(a),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&&(o=c.return)&&o.call(c)}finally{if(l)throw l.error}}return p},t=Jt&&Jt.__spreadArray||function(a,s){for(var o=0,c=s.length,u=a.length;o<c;o++,u++)a[u]=s[o];return a};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.zip=void 0;var r=ey(),n=ue();function i(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n.operate(function(o,c){r.zip.apply(void 0,t([o],e(a))).subscribe(c)})}return Jt.zip=i,Jt}var Zs={},PS;function xN(){if(PS)return Zs;PS=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.zipAll=void 0;var e=ey(),t=YC();function r(n){return t.joinAllInternals(e.zip,n)}return Zs.zipAll=r,Zs}var $t={},AS;function ON(){if(AS)return $t;AS=1;var e=$t&&$t.__read||function(i,a){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var o=s.call(i),c,u=[],p;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(p)throw p.error}}return u},t=$t&&$t.__spreadArray||function(i,a){for(var s=0,o=a.length,c=i.length;s<o;s++,c++)i[c]=a[s];return i};Object.defineProperty($t,"__esModule",{value:!0}),$t.zipWith=void 0;var r=EN();function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r.zip.apply(void 0,t([],e(i)))}return $t.zipWith=n,$t}var RS;function ty(){return RS||(RS=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=Rg();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return t.audit}});var r=FC();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return r.auditTime}});var n=kC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return n.buffer}});var i=DC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return i.bufferCount}});var a=LC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return a.bufferTime}});var s=UC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return s.bufferToggle}});var o=zC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return o.bufferWhen}});var c=BC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return c.catchError}});var u=XC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return u.combineAll}});var p=qg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var l=JC();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return l.combineLatest}});var d=QC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return d.combineLatestWith}});var f=$C();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return f.concat}});var h=Rp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return h.concatAll}});var m=Fg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return m.concatMap}});var v=ej();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var _=tj();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return _.concatWith}});var g=Mp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return g.connect}});var y=nj();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return y.count}});var b=ij();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return b.debounce}});var E=aj();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return E.debounceTime}});var x=Fl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return x.defaultIfEmpty}});var O=oj();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return O.delay}});var S=Lg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return S.delayWhen}});var w=cj();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return w.dematerialize}});var A=uj();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return A.distinct}});var T=Bg();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return T.distinctUntilChanged}});var P=lj();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return P.distinctUntilKeyChanged}});var q=pj();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return q.elementAt}});var D=fj();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return D.endWith}});var H=hj();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return H.every}});var k=vj();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return k.exhaust}});var F=Vg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return F.exhaustAll}});var Z=Hg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Z.exhaustMap}});var Q=mj();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return Q.expand}});var U=hr();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return U.filter}});var $=_j();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return $.finalize}});var C=Gg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return C.find}});var N=gj();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return N.findIndex}});var L=yj();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return L.first}});var B=bj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return B.groupBy}});var M=kg();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return M.ignoreElements}});var j=Ej();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return j.isEmpty}});var z=xj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return z.last}});var X=fr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return X.map}});var te=Dg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return te.mapTo}});var R=Oj();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return R.materialize}});var I=wj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return I.max}});var W=Sj();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return W.merge}});var ee=ql();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return ee.mergeAll}});var se=Tj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return se.flatMap}});var re=nr();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return re.mergeMap}});var de=Pj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return de.mergeMapTo}});var ge=Aj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return ge.mergeScan}});var Ee=Rj();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return Ee.mergeWith}});var Pe=Mj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Pe.min}});var Me=jp();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return Me.multicast}});var xe=jl();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return xe.observeOn}});var Ae=Cj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Ae.onErrorResumeNext}});var _e=jj();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return _e.pairwise}});var Fe=VU();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Fe.partition}});var Qe=qj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Qe.pluck}});var be=Fj();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return be.publish}});var Ke=Dj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Ke.publishBehavior}});var Si=Lj();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return Si.publishLast}});var Ti=Uj();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Ti.publishReplay}});var br=GU();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return br.race}});var V=Xg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return V.raceWith}});var G=hi();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return G.reduce}});var K=Bj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return K.repeat}});var ne=Hj();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return ne.repeatWhen}});var he=Vj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return he.retry}});var Ge=Gj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Ge.retryWhen}});var Be=Zg();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return Be.refCount}});var we=Jg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return we.sample}});var ae=Zj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return ae.sampleTime}});var ce=Kj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return ce.scan}});var le=Yj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return le.sequenceEqual}});var pe=Qg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return pe.share}});var Te=Xj();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Te.shareReplay}});var Ie=$j();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return Ie.single}});var De=eN();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return De.skip}});var ut=tN();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return ut.skipLast}});var In=rN();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return In.skipUntil}});var Pi=nN();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Pi.skipWhile}});var Ai=iN();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Ai.startWith}});var $p=Nl();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return $p.subscribeOn}});var ef=aN();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return ef.switchAll}});var tf=Ll();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return tf.switchMap}});var rf=oN();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return rf.switchMapTo}});var nf=sN();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return nf.switchScan}});var af=kl();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return af.take}});var of=Wg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return of.takeLast}});var sf=cN();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return sf.takeUntil}});var cf=uN();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return cf.takeWhile}});var uf=lN();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return uf.tap}});var lf=$g();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return lf.throttle}});var df=dN();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return df.throttleTime}});var pf=Dl();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return pf.throwIfEmpty}});var ff=pN();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return ff.timeInterval}});var hf=up();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return hf.timeout}});var vf=fN();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return vf.timeoutWith}});var mf=hN();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return mf.timestamp}});var _f=Ng();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return _f.toArray}});var gf=vN();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return gf.window}});var yf=mN();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return yf.windowCount}});var bf=_N();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return bf.windowTime}});var Ef=gN();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return Ef.windowToggle}});var xf=yN();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return xf.windowWhen}});var Of=bN();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return Of.withLatestFrom}});var wf=EN();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return wf.zip}});var Sf=xN();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return Sf.zipAll}});var Tf=ON();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return Tf.zipWith}})})(rv)),rv}var Ks={},MS;function wN(){return MS||(MS=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.CLASS_SERIALIZER_OPTIONS=void 0,Ks.CLASS_SERIALIZER_OPTIONS="class_serializer:options"),Ks}var IS;function WU(){if(IS)return Yn;IS=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.ClassSerializerInterceptor=void 0;const e=oe(),t=ty(),r=sr(),n=gC(),i=Al(),a=ie(),s=wN();let o={};const c="Reflector";let u=class{constructor(l,d={}){this.reflector=l,this.defaultOptions=d,o=d?.transformerPackage??(0,i.loadPackage)("class-transformer","ClassSerializerInterceptor",()=>wC),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,a.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 o.classToPlain(l,d);const f=o.plainToInstance(d.type,l,d);return o.classToPlain(f,d)}getContextOptions(l){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[l.getHandler(),l.getClass()])}};return Yn.ClassSerializerInterceptor=u,Yn.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),Yn}var cv={},Ys={},CS;function ZU(){if(CS)return Ys;CS=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.SerializeOptions=void 0;const e=Eg(),t=wN(),r=n=>(0,e.SetMetadata)(t.CLASS_SERIALIZER_OPTIONS,n);return Ys.SerializeOptions=r,Ys}var jS;function KU(){return jS||(jS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(ZU(),e)})(cv)),cv}var uv={},NS;function YU(){return NS||(NS=1,Object.defineProperty(uv,"__esModule",{value:!0})),uv}var qS;function XU(){return qS||(qS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(WU(),e),t.__exportStar(KU(),e),t.__exportStar(YU(),e)})(tv)),tv}var lv={},Xs={},FS;function JU(){if(FS)return Xs;FS=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.forwardRef=void 0;const e=t=>({forwardRef:t});return Xs.forwardRef=e,Xs}var kS;function QU(){return kS||(kS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(JU(),e)})(lv)),lv}var DS;function me(){return DS||(DS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;const t=oe();bg(),t.__exportStar(Eg(),e),t.__exportStar(Pl(),e),t.__exportStar(xg(),e),t.__exportStar(gC(),e);var r=Sp();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(lU(),e),t.__exportStar(qU(),e),t.__exportStar(XU(),e),t.__exportStar(_C(),e),t.__exportStar(QU(),e)})(Mf)),Mf}var ht={},Ct={exports:{}};const $U="17.2.3",ez={version:$U};var LS;function SN(){if(LS)return Ct.exports;LS=1;const e=wl,t=or,r=bp,n=li,a=ez.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 o(){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 q=T.toString();q=q.replace(/\r\n?/mg,`
|
|
9
|
-
`);let
|
|
10
|
-
`),k=k.replace(/\\r/g,"\r")),P[H]=k}return P}function f(T){T=T||{};const P=y(T);T.path=P;const q=A.configDotenv(T);if(!q.parsed){const F=new Error(`MISSING_DATA: Cannot parse ${P} for an unknown reason`);throw F.code="MISSING_DATA",F}const D=_(T).split(","),H=D.length;let k;for(let F=0;F<H;F++)try{const Z=D[F].trim(),Q=g(q,Z);k=A.decrypt(Q.ciphertext,Q.key);break}catch(Z){if(F+1>=H)throw Z}return A.parse(k)}function h(T){console.error(`[dotenv@${a}][WARN] ${T}`)}function m(T){console.log(`[dotenv@${a}][DEBUG] ${T}`)}function v(T){console.log(`[dotenv@${a}] ${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 q;try{q=new URL(P)}catch(Z){if(Z.code==="ERR_INVALID_URL"){const Q=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 Q.code="INVALID_DOTENV_KEY",Q}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 H=q.searchParams.get("environment");if(!H){const Z=new Error("INVALID_DOTENV_KEY: Missing environment part");throw Z.code="INVALID_DOTENV_KEY",Z}const k=`DOTENV_VAULT_${H.toUpperCase()}`,F=T.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(T){let P=null;if(T&&T.path&&T.path.length>0)if(Array.isArray(T.path))for(const q of T.path)e.existsSync(q)&&(P=q.endsWith(".vault")?q:`${q}.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),q=c(process.env.DOTENV_CONFIG_QUIET||T&&T.quiet);(P||!q)&&v("Loading env from encrypted .env.vault");const D=A._parseVault(T);let H=process.env;return T&&T.processEnv!=null&&(H=T.processEnv),A.populate(H,D,T),{parsed:D}}function x(T){const P=t.resolve(process.cwd(),".env");let q="utf8",D=process.env;T&&T.processEnv!=null&&(D=T.processEnv);let H=c(D.DOTENV_CONFIG_DEBUG||T&&T.debug),k=c(D.DOTENV_CONFIG_QUIET||T&&T.quiet);T&&T.encoding?q=T.encoding:H&&m("No encoding is specified. UTF-8 is used by default");let F=[P];if(T&&T.path)if(!Array.isArray(T.path))F=[b(T.path)];else{F=[];for(const $ of T.path)F.push(b($))}let Z;const Q={};for(const $ of F)try{const C=A.parse(e.readFileSync($,{encoding:q}));A.populate(Q,C,T)}catch(C){H&&m(`Failed to load ${$} ${C.message}`),Z=C}const U=A.populate(D,Q,T);if(H=c(D.DOTENV_CONFIG_DEBUG||H),k=c(D.DOTENV_CONFIG_QUIET||k),H||!k){const $=Object.keys(U).length,C=[];for(const N of F)try{const L=t.relative(process.cwd(),N);C.push(L)}catch(L){H&&m(`Failed to load ${N} ${L.message}`),Z=L}v(`injecting env (${$}) from ${C.join(",")} ${p(`-- tip: ${o()}`)}`)}return Z?{parsed:Q,error:Z}:{parsed:Q}}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 q=Buffer.from(P.slice(-64),"hex");let D=Buffer.from(T,"base64");const H=D.subarray(0,12),k=D.subarray(-16);D=D.subarray(12,-16);try{const F=n.createDecipheriv("aes-256-gcm",q,H);return F.setAuthTag(k),`${F.update(D)}${F.final()}`}catch(F){const Z=F instanceof RangeError,Q=F.message==="Invalid key length",U=F.message==="Unsupported state or unable to authenticate data";if(Z||Q){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 F}}function w(T,P,q={}){const D=!!(q&&q.debug),H=!!(q&&q.override),k={};if(typeof P!="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(P))Object.prototype.hasOwnProperty.call(T,F)?(H===!0&&(T[F]=P[F],k[F]=P[F]),D&&m(H===!0?`"${F}" is already defined and WAS overwritten`:`"${F}" is already defined and was NOT overwritten`)):(T[F]=P[F],k[F]=P[F]);return k}const A={configDotenv:x,_configVault:E,_parseVault:f,config:O,decrypt:S,parse:d,populate:w};return Ct.exports.configDotenv=A.configDotenv,Ct.exports._configVault=A._configVault,Ct.exports._parseVault=A._parseVault,Ct.exports.config=A.config,Ct.exports.decrypt=A.decrypt,Ct.exports.parse=A.parse,Ct.exports.populate=A.populate,Ct.exports=A,Ct.exports}var dv={},US;function tz(){if(US)return dv;US=1;function e(n){return n.replace(/\\\$/g,"$")}function t(n,i,a){const s={...a,...i},o=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;let c=n,u;const p=new Set;for(;(u=o.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===a[E])break;o.lastIndex=0}return c}function r(n){const i={};let a=process.env;n&&n.processEnv!=null&&(a=n.processEnv);for(const s in n.parsed){let o=n.parsed[s];a[s]&&a[s]!==o?o=a[s]:o=t(o,a,i),n.parsed[s]=e(o),i[s]=e(o)}for(const s in n.parsed)a[s]=n.parsed[s];return n}return dv.expand=r,dv}var ar={},$e={},zS;function Ul(){return zS||(zS=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.AS_PROVIDER_METHOD_KEY=$e.VALIDATED_ENV_PROPNAME=$e.PARTIAL_CONFIGURATION_PROPNAME=$e.PARTIAL_CONFIGURATION_KEY=$e.VALIDATED_ENV_LOADER=$e.CONFIGURATION_LOADER=$e.CONFIGURATION_TOKEN=$e.CONFIGURATION_SERVICE_TOKEN=void 0,$e.CONFIGURATION_SERVICE_TOKEN=Symbol("CONFIG_SERVICE"),$e.CONFIGURATION_TOKEN="CONFIGURATION_TOKEN",$e.CONFIGURATION_LOADER="CONFIGURATION_LOADER",$e.VALIDATED_ENV_LOADER="VALIDATED_ENV_LOADER",$e.PARTIAL_CONFIGURATION_KEY="PARTIAL_CONFIGURATION_KEY",$e.PARTIAL_CONFIGURATION_PROPNAME="KEY",$e.VALIDATED_ENV_PROPNAME="_PROCESS_ENV_VALIDATED",$e.AS_PROVIDER_METHOD_KEY="asProvider"),$e}var Ye={},pv,BS;function Np(){if(BS)return pv;BS=1;var e=Array.isArray;return pv=e,pv}var fv,HS;function rz(){if(HS)return fv;HS=1;var e=typeof vt=="object"&&vt&&vt.Object===Object&&vt;return fv=e,fv}var hv,VS;function ry(){if(VS)return hv;VS=1;var e=rz(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return hv=r,hv}var vv,GS;function ny(){if(GS)return vv;GS=1;var e=ry(),t=e.Symbol;return vv=t,vv}var mv,WS;function nz(){if(WS)return mv;WS=1;var e=ny(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(s){var o=r.call(s,i),c=s[i];try{s[i]=void 0;var u=!0}catch{}var p=n.call(s);return u&&(o?s[i]=c:delete s[i]),p}return mv=a,mv}var _v,ZS;function iz(){if(ZS)return _v;ZS=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return _v=r,_v}var gv,KS;function iy(){if(KS)return gv;KS=1;var e=ny(),t=nz(),r=iz(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?i:n:a&&a in Object(o)?t(o):r(o)}return gv=s,gv}var yv,YS;function ay(){if(YS)return yv;YS=1;function e(t){return t!=null&&typeof t=="object"}return yv=e,yv}var bv,XS;function oy(){if(XS)return bv;XS=1;var e=iy(),t=ay(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return bv=n,bv}var Ev,JS;function az(){if(JS)return Ev;JS=1;var e=Np(),t=oy(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){if(e(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||s!=null&&a in Object(s)}return Ev=i,Ev}var xv,QS;function sy(){if(QS)return xv;QS=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return xv=e,xv}var Ov,$S;function oz(){if($S)return Ov;$S=1;var e=iy(),t=sy(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(o){if(!t(o))return!1;var c=e(o);return c==n||c==i||c==r||c==a}return Ov=s,Ov}var wv,e1;function sz(){if(e1)return wv;e1=1;var e=ry(),t=e["__core-js_shared__"];return wv=t,wv}var Sv,t1;function cz(){if(t1)return Sv;t1=1;var e=sz(),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 Sv=r,Sv}var Tv,r1;function uz(){if(r1)return Tv;r1=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 Tv=r,Tv}var Pv,n1;function lz(){if(n1)return Pv;n1=1;var e=oz(),t=cz(),r=sy(),n=uz(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,c=s.toString,u=o.hasOwnProperty,p=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var f=e(d)?p:a;return f.test(n(d))}return Pv=l,Pv}var Av,i1;function dz(){if(i1)return Av;i1=1;function e(t,r){return t?.[r]}return Av=e,Av}var Rv,a1;function cy(){if(a1)return Rv;a1=1;var e=lz(),t=dz();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Rv=r,Rv}var Mv,o1;function qp(){if(o1)return Mv;o1=1;var e=cy(),t=e(Object,"create");return Mv=t,Mv}var Iv,s1;function pz(){if(s1)return Iv;s1=1;var e=qp();function t(){this.__data__=e?e(null):{},this.size=0}return Iv=t,Iv}var Cv,c1;function fz(){if(c1)return Cv;c1=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Cv=e,Cv}var jv,u1;function hz(){if(u1)return jv;u1=1;var e=qp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var s=this.__data__;if(e){var o=s[a];return o===t?void 0:o}return n.call(s,a)?s[a]:void 0}return jv=i,jv}var Nv,l1;function vz(){if(l1)return Nv;l1=1;var e=qp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Nv=n,Nv}var qv,d1;function mz(){if(d1)return qv;d1=1;var e=qp(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return qv=r,qv}var Fv,p1;function _z(){if(p1)return Fv;p1=1;var e=pz(),t=fz(),r=hz(),n=vz(),i=mz();function a(s){var o=-1,c=s==null?0:s.length;for(this.clear();++o<c;){var u=s[o];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Fv=a,Fv}var kv,f1;function gz(){if(f1)return kv;f1=1;function e(){this.__data__=[],this.size=0}return kv=e,kv}var Dv,h1;function TN(){if(h1)return Dv;h1=1;function e(t,r){return t===r||t!==t&&r!==r}return Dv=e,Dv}var Lv,v1;function Fp(){if(v1)return Lv;v1=1;var e=TN();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Lv=t,Lv}var Uv,m1;function yz(){if(m1)return Uv;m1=1;var e=Fp(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var o=a.length-1;return s==o?a.pop():r.call(a,s,1),--this.size,!0}return Uv=n,Uv}var zv,_1;function bz(){if(_1)return zv;_1=1;var e=Fp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return zv=t,zv}var Bv,g1;function Ez(){if(g1)return Bv;g1=1;var e=Fp();function t(r){return e(this.__data__,r)>-1}return Bv=t,Bv}var Hv,y1;function xz(){if(y1)return Hv;y1=1;var e=Fp();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Hv=t,Hv}var Vv,b1;function Oz(){if(b1)return Vv;b1=1;var e=gz(),t=yz(),r=bz(),n=Ez(),i=xz();function a(s){var o=-1,c=s==null?0:s.length;for(this.clear();++o<c;){var u=s[o];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Vv=a,Vv}var Gv,E1;function wz(){if(E1)return Gv;E1=1;var e=cy(),t=ry(),r=e(t,"Map");return Gv=r,Gv}var Wv,x1;function Sz(){if(x1)return Wv;x1=1;var e=_z(),t=Oz(),r=wz();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Wv=n,Wv}var Zv,O1;function Tz(){if(O1)return Zv;O1=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Zv=e,Zv}var Kv,w1;function kp(){if(w1)return Kv;w1=1;var e=Tz();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Kv=t,Kv}var Yv,S1;function Pz(){if(S1)return Yv;S1=1;var e=kp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Yv=t,Yv}var Xv,T1;function Az(){if(T1)return Xv;T1=1;var e=kp();function t(r){return e(this,r).get(r)}return Xv=t,Xv}var Jv,P1;function Rz(){if(P1)return Jv;P1=1;var e=kp();function t(r){return e(this,r).has(r)}return Jv=t,Jv}var Qv,A1;function Mz(){if(A1)return Qv;A1=1;var e=kp();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Qv=t,Qv}var $v,R1;function Iz(){if(R1)return $v;R1=1;var e=Sz(),t=Pz(),r=Az(),n=Rz(),i=Mz();function a(s){var o=-1,c=s==null?0:s.length;for(this.clear();++o<c;){var u=s[o];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,$v=a,$v}var em,M1;function Cz(){if(M1)return em;M1=1;var e=Iz(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,o=i?i.apply(this,s):s[0],c=a.cache;if(c.has(o))return c.get(o);var u=n.apply(this,s);return a.cache=c.set(o,u)||c,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,em=r,em}var tm,I1;function jz(){if(I1)return tm;I1=1;var e=Cz(),t=500;function r(n){var i=e(n,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return tm=r,tm}var rm,C1;function Nz(){if(C1)return rm;C1=1;var e=jz(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,o,c,u){a.push(c?u.replace(r,"$1"):o||s)}),a});return rm=n,rm}var nm,j1;function qz(){if(j1)return nm;j1=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return nm=e,nm}var im,N1;function Fz(){if(N1)return im;N1=1;var e=ny(),t=qz(),r=Np(),n=oy(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return t(o,s)+"";if(n(o))return a?a.call(o):"";var c=o+"";return c=="0"&&1/o==-1/0?"-0":c}return im=s,im}var am,q1;function kz(){if(q1)return am;q1=1;var e=Fz();function t(r){return r==null?"":e(r)}return am=t,am}var om,F1;function uy(){if(F1)return om;F1=1;var e=Np(),t=az(),r=Nz(),n=kz();function i(a,s){return e(a)?a:t(a,s)?[a]:r(n(a))}return om=i,om}var sm,k1;function ly(){if(k1)return sm;k1=1;var e=oy();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return sm=t,sm}var cm,D1;function Dz(){if(D1)return cm;D1=1;var e=uy(),t=ly();function r(n,i){i=e(i,n);for(var a=0,s=i.length;n!=null&&a<s;)n=n[t(i[a++])];return a&&a==s?n:void 0}return cm=r,cm}var um,L1;function Lz(){if(L1)return um;L1=1;var e=Dz();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return um=t,um}var lm,U1;function Uz(){if(U1)return lm;U1=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return lm=r,lm}var dm,z1;function zz(){if(z1)return dm;z1=1;var e=iy(),t=ay(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return dm=n,dm}var pm,B1;function Bz(){if(B1)return pm;B1=1;var e=zz(),t=ay(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!i.call(s,"callee")};return pm=a,pm}var fm,H1;function PN(){if(H1)return fm;H1=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return fm=r,fm}var hm,V1;function Hz(){if(V1)return hm;V1=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return hm=t,hm}var vm,G1;function Vz(){if(G1)return vm;G1=1;var e=uy(),t=Bz(),r=Np(),n=PN(),i=Hz(),a=ly();function s(o,c,u){c=e(c,o);for(var p=-1,l=c.length,d=!1;++p<l;){var f=a(c[p]);if(!(d=o!=null&&u(o,f)))break;o=o[f]}return d||++p!=l?d:(l=o==null?0:o.length,!!l&&i(l)&&n(f,l)&&(r(o)||t(o)))}return vm=s,vm}var mm,W1;function Gz(){if(W1)return mm;W1=1;var e=Uz(),t=Vz();function r(n,i){return n!=null&&t(n,i,e)}return mm=r,mm}var _m,Z1;function Wz(){if(Z1)return _m;Z1=1;var e=cy(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return _m=t,_m}var gm,K1;function Zz(){if(K1)return gm;K1=1;var e=Wz();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return gm=t,gm}var ym,Y1;function Kz(){if(Y1)return ym;Y1=1;var e=Zz(),t=TN(),r=Object.prototype,n=r.hasOwnProperty;function i(a,s,o){var c=a[s];(!(n.call(a,s)&&t(c,o))||o===void 0&&!(s in a))&&e(a,s,o)}return ym=i,ym}var bm,X1;function Yz(){if(X1)return bm;X1=1;var e=Kz(),t=uy(),r=PN(),n=sy(),i=ly();function a(s,o,c,u){if(!n(s))return s;o=t(o,s);for(var p=-1,l=o.length,d=l-1,f=s;f!=null&&++p<l;){var h=i(o[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(o[p+1])?[]:{})}e(f,h,m),f=f[h]}return s}return bm=a,bm}var Em,J1;function AN(){if(J1)return Em;J1=1;var e=Yz();function t(r,n,i){return r==null?r:e(r,n,i)}return Em=t,Em}var Zr={},Js={},xm={},Q1;function Xz(){return Q1||(Q1=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}})(xm)),xm}var Kr={},$1;function RN(){return $1||($1=1,(function(e){var t=Kr&&Kr.__read||function(i,a){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var o=s.call(i),c,u=[],p;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(p)throw p.error}}return u},r=Kr&&Kr.__spreadArray||function(i,a){for(var s=0,o=a.length,c=i.length;s<o;s++,c++)i[c]=a[s];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var n=wt();e.animationFrameProvider={schedule:function(i){var a=requestAnimationFrame,s=cancelAnimationFrame,o=e.animationFrameProvider.delegate;o&&(a=o.requestAnimationFrame,s=o.cancelAnimationFrame);var c=a(function(u){s=void 0,i(u)});return new n.Subscription(function(){return s?.(c)})},requestAnimationFrame:function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=e.animationFrameProvider.delegate;return(s?.requestAnimationFrame||requestAnimationFrame).apply(void 0,r([],t(i)))},cancelAnimationFrame:function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=e.animationFrameProvider.delegate;return(s?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,r([],t(i)))},delegate:void 0}})(Kr)),Kr}var eT;function Jz(){if(eT)return Js;eT=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.animationFrames=void 0;var e=ke(),t=Xz(),r=RN();function n(s){return s?i(s):a}Js.animationFrames=n;function i(s){return new e.Observable(function(o){var c=s||t.performanceTimestampProvider,u=c.now(),p=0,l=function(){o.closed||(p=r.animationFrameProvider.requestAnimationFrame(function(d){p=0;var f=c.now();o.next({timestamp:s?f:d,elapsed:f-u}),l()}))};return l(),function(){p&&r.animationFrameProvider.cancelAnimationFrame(p)}})}var a=i();return Js}var Om={},Yr={},Xr={},Jr={},tT;function Qz(){if(tT)return Jr;tT=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.TestTools=Jr.Immediate=void 0;var e=1,t,r={};function n(i){return i in r?(delete r[i],!0):!1}return Jr.Immediate={setImmediate:function(i){var a=e++;return r[a]=!0,t||(t=Promise.resolve()),t.then(function(){return n(a)&&i()}),a},clearImmediate:function(i){n(i)}},Jr.TestTools={pending:function(){return Object.keys(r).length}},Jr}var rT;function $z(){return rT||(rT=1,(function(e){var t=Xr&&Xr.__read||function(s,o){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(o===void 0||o-- >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=Xr&&Xr.__spreadArray||function(s,o){for(var c=0,u=o.length,p=s.length;c<u;c++,p++)s[p]=o[c];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var n=Qz(),i=n.Immediate.setImmediate,a=n.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var c=e.immediateProvider.delegate;return(c?.setImmediate||i).apply(void 0,r([],t(s)))},clearImmediate:function(s){var o=e.immediateProvider.delegate;return(o?.clearImmediate||a)(s)},delegate:void 0}})(Xr)),Xr}var nT;function eB(){if(nT)return Yr;nT=1;var e=Yr&&Yr.__extends||(function(){var i=function(a,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(o[u]=c[u])},i(a,s)};return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(a,s);function o(){this.constructor=a}a.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}})();Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.AsapAction=void 0;var t=Il(),r=$z(),n=(function(i){e(a,i);function a(s,o){var c=i.call(this,s,o)||this;return c.scheduler=s,c.work=o,c}return a.prototype.requestAsyncId=function(s,o,c){return c===void 0&&(c=0),c!==null&&c>0?i.prototype.requestAsyncId.call(this,s,o,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.immediateProvider.setImmediate(s.flush.bind(s,void 0))))},a.prototype.recycleAsyncId=function(s,o,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return i.prototype.recycleAsyncId.call(this,s,o,c);var p=s.actions;o!=null&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==o&&(r.immediateProvider.clearImmediate(o),s._scheduled===o&&(s._scheduled=void 0))},a})(t.AsyncAction);return Yr.AsapAction=n,Yr}var Qr={},iT;function tB(){if(iT)return Qr;iT=1;var e=Qr&&Qr.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.AsapScheduler=void 0;var t=Cl(),r=(function(n){e(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.flush=function(a){this._active=!0;var s=this._scheduled;this._scheduled=void 0;var o=this.actions,c;a=a||o.shift();do if(c=a.execute(a.state,a.delay))break;while((a=o[0])&&a.id===s&&o.shift());if(this._active=!1,c){for(;(a=o[0])&&a.id===s&&o.shift();)a.unsubscribe();throw c}},i})(t.AsyncScheduler);return Qr.AsapScheduler=r,Qr}var aT;function rB(){return aT||(aT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var t=eB(),r=tB();e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})(Om)),Om}var wm={},$r={},oT;function nB(){if(oT)return $r;oT=1;var e=$r&&$r.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty($r,"__esModule",{value:!0}),$r.QueueAction=void 0;var t=Il(),r=(function(n){e(i,n);function i(a,s){var o=n.call(this,a,s)||this;return o.scheduler=a,o.work=s,o}return i.prototype.schedule=function(a,s){return s===void 0&&(s=0),s>0?n.prototype.schedule.call(this,a,s):(this.delay=s,this.state=a,this.scheduler.flush(this),this)},i.prototype.execute=function(a,s){return s>0||this.closed?n.prototype.execute.call(this,a,s):this._execute(a,s)},i.prototype.requestAsyncId=function(a,s,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?n.prototype.requestAsyncId.call(this,a,s,o):(a.flush(this),0)},i})(t.AsyncAction);return $r.QueueAction=r,$r}var en={},sT;function iB(){if(sT)return en;sT=1;var e=en&&en.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(en,"__esModule",{value:!0}),en.QueueScheduler=void 0;var t=Cl(),r=(function(n){e(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i})(t.AsyncScheduler);return en.QueueScheduler=r,en}var cT;function aB(){return cT||(cT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var t=nB(),r=iB();e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})(wm)),wm}var Sm={},tn={},uT;function oB(){if(uT)return tn;uT=1;var e=tn&&tn.__extends||(function(){var i=function(a,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(o[u]=c[u])},i(a,s)};return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(a,s);function o(){this.constructor=a}a.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}})();Object.defineProperty(tn,"__esModule",{value:!0}),tn.AnimationFrameAction=void 0;var t=Il(),r=RN(),n=(function(i){e(a,i);function a(s,o){var c=i.call(this,s,o)||this;return c.scheduler=s,c.work=o,c}return a.prototype.requestAsyncId=function(s,o,c){return c===void 0&&(c=0),c!==null&&c>0?i.prototype.requestAsyncId.call(this,s,o,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.animationFrameProvider.requestAnimationFrame(function(){return s.flush(void 0)})))},a.prototype.recycleAsyncId=function(s,o,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return i.prototype.recycleAsyncId.call(this,s,o,c);var p=s.actions;o!=null&&o===s._scheduled&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==o&&(r.animationFrameProvider.cancelAnimationFrame(o),s._scheduled=void 0)},a})(t.AsyncAction);return tn.AnimationFrameAction=n,tn}var rn={},lT;function sB(){if(lT)return rn;lT=1;var e=rn&&rn.__extends||(function(){var n=function(i,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},n(i,a)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(i,a);function s(){this.constructor=i}i.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}})();Object.defineProperty(rn,"__esModule",{value:!0}),rn.AnimationFrameScheduler=void 0;var t=Cl(),r=(function(n){e(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.flush=function(a){this._active=!0;var s;a?s=a.id:(s=this._scheduled,this._scheduled=void 0);var o=this.actions,c;a=a||o.shift();do if(c=a.execute(a.state,a.delay))break;while((a=o[0])&&a.id===s&&o.shift());if(this._active=!1,c){for(;(a=o[0])&&a.id===s&&o.shift();)a.unsubscribe();throw c}},i})(t.AsyncScheduler);return rn.AnimationFrameScheduler=r,rn}var dT;function cB(){return dT||(dT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=oB(),r=sB();e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})(Sm)),Sm}var er={},pT;function uB(){if(pT)return er;pT=1;var e=er&&er.__extends||(function(){var s=function(o,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(o,c)};return function(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(o,c);function u(){this.constructor=o}o.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}})();Object.defineProperty(er,"__esModule",{value:!0}),er.VirtualAction=er.VirtualTimeScheduler=void 0;var t=Il(),r=wt(),n=Cl(),i=(function(s){e(o,s);function o(c,u){c===void 0&&(c=a),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 o.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}},o.frameTimeFactor=10,o})(n.AsyncScheduler);er.VirtualTimeScheduler=i;var a=(function(s){e(o,s);function o(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 o.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 o(this.scheduler,this.work);return this.add(p),p.schedule(c,u)}else return r.Subscription.EMPTY},o.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(o.sortActions),1},o.prototype.recycleAsyncId=function(c,u,p){},o.prototype._execute=function(c,u){if(this.active===!0)return s.prototype._execute.call(this,c,u)},o.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},o})(t.AsyncAction);return er.VirtualAction=a,er}var Qs={},fT;function lB(){if(fT)return Qs;fT=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.isObservable=void 0;var e=ke(),t=qe();function r(n){return!!n&&(n instanceof e.Observable||t.isFunction(n.lift)&&t.isFunction(n.subscribe))}return Qs.isObservable=r,Qs}var $s={},hT;function dB(){if(hT)return $s;hT=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.lastValueFrom=void 0;var e=wn();function t(r,n){var i=typeof n=="object";return new Promise(function(a,s){var o=!1,c;r.subscribe({next:function(u){c=u,o=!0},error:s,complete:function(){o?a(c):i?a(n.defaultValue):s(new e.EmptyError)}})})}return $s.lastValueFrom=t,$s}var ec={},vT;function pB(){if(vT)return ec;vT=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.firstValueFrom=void 0;var e=wn(),t=Ml();function r(n,i){var a=typeof i=="object";return new Promise(function(s,o){var c=new t.SafeSubscriber({next:function(u){s(u),c.unsubscribe()},error:o,complete:function(){a?s(i.defaultValue):o(new e.EmptyError)}});n.subscribe(c)})}return ec.firstValueFrom=r,ec}var tc={},tr={},mT;function MN(){if(mT)return tr;mT=1;var e=tr&&tr.__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=tr&&tr.__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(tr,"__esModule",{value:!0}),tr.bindCallbackInternals=void 0;var r=Ap(),n=ke(),i=Nl(),a=On(),s=jl(),o=Kg();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(a.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(i.subscribeOn(d),s.observeOn(d))}:function(){for(var f=this,h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=new o.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 tr.bindCallbackInternals=c,tr}var _T;function fB(){if(_T)return tc;_T=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.bindCallback=void 0;var e=MN();function t(r,n,i){return e.bindCallbackInternals(!1,r,n,i)}return tc.bindCallback=t,tc}var rc={},gT;function hB(){if(gT)return rc;gT=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.bindNodeCallback=void 0;var e=MN();function t(r,n,i){return e.bindCallbackInternals(!0,r,n,i)}return rc.bindNodeCallback=t,rc}var nc={},ic={},yT;function Dp(){if(yT)return ic;yT=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.defer=void 0;var e=ke(),t=Se();function r(n){return new e.Observable(function(i){t.innerFrom(n()).subscribe(i)})}return ic.defer=r,ic}var bT;function vB(){if(bT)return nc;bT=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.connectable=void 0;var e=st(),t=ke(),r=Dp(),n={connector:function(){return new e.Subject},resetOnDisconnect:!0};function i(a,s){s===void 0&&(s=n);var o=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(!o||o.closed)&&(o=r.defer(function(){return a}).subscribe(l),p&&o.add(function(){return l=c()})),o},d}return nc.connectable=i,nc}var ac={},ET;function mB(){if(ET)return ac;ET=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.forkJoin=void 0;var e=ke(),t=HC(),r=Se(),n=bt(),i=fe(),a=On(),s=ZC();function o(){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(i.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(a.mapOneOrManyArgs(p)):h}return ac.forkJoin=o,ac}var nn={},xT;function _B(){if(xT)return nn;xT=1;var e=nn&&nn.__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(nn,"__esModule",{value:!0}),nn.fromEvent=void 0;var t=Se(),r=ke(),n=nr(),i=Tg(),a=qe(),s=On(),o=["addListener","removeListener"],c=["addEventListener","removeEventListener"],u=["on","off"];function p(m,v,_,g){if(a.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)?o.map(l(m,v)):f(m)?u.map(l(m,v)):[],2),b=y[0],E=y[1];if(!b&&i.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)}})}nn.fromEvent=p;function l(m,v){return function(_){return function(g){return m[_](v,g)}}}function d(m){return a.isFunction(m.addListener)&&a.isFunction(m.removeListener)}function f(m){return a.isFunction(m.on)&&a.isFunction(m.off)}function h(m){return a.isFunction(m.addEventListener)&&a.isFunction(m.removeEventListener)}return nn}var oc={},OT;function gB(){if(OT)return oc;OT=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.fromEventPattern=void 0;var e=ke(),t=qe(),r=On();function n(i,a,s){return s?n(i,a).pipe(r.mapOneOrManyArgs(s)):new e.Observable(function(o){var c=function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];return o.next(p.length===1?p[0]:p)},u=i(c);return t.isFunction(a)?function(){return a(c,u)}:void 0})}return oc.fromEventPattern=n,oc}var an={},wT;function yB(){if(wT)return an;wT=1;var e=an&&an.__generator||function(s,o){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=o.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(an,"__esModule",{value:!0}),an.generate=void 0;var t=ot(),r=Ap(),n=Dp(),i=VC();function a(s,o,c,u,p){var l,d,f,h;arguments.length===1?(l=s,h=l.initialState,o=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!o||o(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 i.scheduleIterable(m(),p)}:m)}return an.generate=a,an}var sc={},ST;function bB(){if(ST)return sc;ST=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.iif=void 0;var e=Dp();function t(r,n,i){return e.defer(function(){return r()?n:i})}return sc.iif=t,sc}var cc={},TT;function EB(){if(TT)return cc;TT=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.merge=void 0;var e=ql(),t=Se(),r=Nt(),n=bt(),i=pr();function a(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];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)(i.from(p,c)):r.EMPTY}return cc.merge=a,cc}var Tm={},PT;function AT(){return PT||(PT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var t=ke(),r=at();e.NEVER=new t.Observable(r.noop);function n(){return e.NEVER}e.never=n})(Tm)),Tm}var uc={},RT;function xB(){if(RT)return uc;RT=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.pairs=void 0;var e=pr();function t(r,n){return e.from(Object.entries(r),n)}return uc.pairs=t,uc}var lc={},MT;function OB(){if(MT)return lc;MT=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.partition=void 0;var e=Nj(),t=hr(),r=Se();function n(i,a,s){return[t.filter(a,s)(r.innerFrom(i)),t.filter(e.not(a,s))(r.innerFrom(i))]}return lc.partition=n,lc}var dc={},IT;function wB(){if(IT)return dc;IT=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.range=void 0;var e=ke(),t=Nt();function r(n,i,a){if(i==null&&(i=n,n=0),i<=0)return t.EMPTY;var s=i+n;return new e.Observable(a?function(o){var c=n;return a.schedule(function(){c<s?(o.next(c++),this.schedule()):o.complete()})}:function(o){for(var c=n;c<s&&!o.closed;)o.next(c++);o.complete()})}return dc.range=r,dc}var pc={},CT;function SB(){if(CT)return pc;CT=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.using=void 0;var e=ke(),t=Se(),r=Nt();function n(i,a){return new e.Observable(function(s){var o=i(),c=a(o),u=c?t.innerFrom(c):r.EMPTY;return u.subscribe(s),function(){o&&o.unsubscribe()}})}return pc.using=n,pc}var Pm={},jT;function TB(){return jT||(jT=1,Object.defineProperty(Pm,"__esModule",{value:!0})),Pm}var NT;function Sn(){return NT||(NT=1,(function(e){var t=Zr&&Zr.__createBinding||(Object.create?(function(Cn,jn,Ft,Er){Er===void 0&&(Er=Ft),Object.defineProperty(Cn,Er,{enumerable:!0,get:function(){return jn[Ft]}})}):(function(Cn,jn,Ft,Er){Er===void 0&&(Er=Ft),Cn[Er]=jn[Ft]})),r=Zr&&Zr.__exportStar||function(Cn,jn){for(var Ft in Cn)Ft!=="default"&&!Object.prototype.hasOwnProperty.call(jn,Ft)&&t(jn,Cn,Ft)};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=ke();Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return n.Observable}});var i=Cp();Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=Tp();Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var s=Jz();Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return s.animationFrames}});var o=st();Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return o.Subject}});var c=kj();Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var u=Yg();Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return u.ReplaySubject}});var p=Kg();Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var l=rB();Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return l.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return l.asapScheduler}});var d=yt();Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var f=aB();Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return f.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return f.queueScheduler}});var h=cB();Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return h.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return h.animationFrameScheduler}});var m=uB();Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return m.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return m.VirtualAction}});var v=qC();Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var _=wt();Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return _.Subscription}});var g=Ml();Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var y=zg();Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return y.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return y.NotificationKind}});var b=Pp();Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return b.pipe}});var E=at();Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return E.noop}});var x=ot();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return x.identity}});var O=lB();Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return O.isObservable}});var S=dB();Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});var w=pB();Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return w.firstValueFrom}});var A=dj();Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var T=wn();Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return T.EmptyError}});var P=Qj();Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return P.NotFoundError}});var q=rj();Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return q.ObjectUnsubscribedError}});var D=Jj();Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return D.SequenceError}});var H=up();Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return H.TimeoutError}});var k=PC();Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return k.UnsubscriptionError}});var F=fB();Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return F.bindCallback}});var Z=hB();Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return Z.bindNodeCallback}});var Q=Cg();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return Q.combineLatest}});var U=Ip();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return U.concat}});var $=vB();Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return $.connectable}});var C=Dp();Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return C.defer}});var N=Nt();Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return N.empty}});var L=mB();Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return L.forkJoin}});var B=pr();Object.defineProperty(e,"from",{enumerable:!0,get:function(){return B.from}});var M=_B();Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return M.fromEvent}});var j=gB();Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return j.fromEventPattern}});var z=yB();Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return z.generate}});var X=bB();Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return X.iif}});var te=Wj();Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return te.interval}});var R=EB();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return R.merge}});var I=AT();Object.defineProperty(e,"never",{enumerable:!0,get:function(){return I.never}});var W=Ug();Object.defineProperty(e,"of",{enumerable:!0,get:function(){return W.of}});var ee=Ij();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return ee.onErrorResumeNext}});var se=xB();Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return se.pairs}});var re=OB();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return re.partition}});var de=zj();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return de.race}});var ge=wB();Object.defineProperty(e,"range",{enumerable:!0,get:function(){return ge.range}});var Ee=sj();Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return Ee.throwError}});var Pe=xn();Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Pe.timer}});var Me=SB();Object.defineProperty(e,"using",{enumerable:!0,get:function(){return Me.using}});var xe=ey();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return xe.zip}});var Ae=WC();Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return Ae.scheduled}});var _e=Nt();Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return _e.EMPTY}});var Fe=AT();Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return Fe.NEVER}}),r(TB(),e);var Qe=Rl();Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Qe.config}});var be=Rg();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return be.audit}});var Ke=FC();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Ke.auditTime}});var Si=kC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return Si.buffer}});var Ti=DC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return Ti.bufferCount}});var br=LC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return br.bufferTime}});var V=UC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return V.bufferToggle}});var G=zC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return G.bufferWhen}});var K=BC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return K.catchError}});var ne=XC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return ne.combineAll}});var he=qg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return he.combineLatestAll}});var Ge=QC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Ge.combineLatestWith}});var Be=Rp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Be.concatAll}});var we=Fg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return we.concatMap}});var ae=ej();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return ae.concatMapTo}});var ce=tj();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return ce.concatWith}});var le=Mp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return le.connect}});var pe=nj();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return pe.count}});var Te=ij();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Te.debounce}});var Ie=aj();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Ie.debounceTime}});var De=Fl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return De.defaultIfEmpty}});var ut=oj();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return ut.delay}});var In=Lg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return In.delayWhen}});var Pi=cj();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Pi.dematerialize}});var Ai=uj();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Ai.distinct}});var $p=Bg();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return $p.distinctUntilChanged}});var ef=lj();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return ef.distinctUntilKeyChanged}});var tf=pj();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return tf.elementAt}});var rf=fj();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return rf.endWith}});var nf=hj();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return nf.every}});var af=vj();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return af.exhaust}});var of=Vg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return of.exhaustAll}});var sf=Hg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return sf.exhaustMap}});var cf=mj();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return cf.expand}});var uf=hr();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return uf.filter}});var lf=_j();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return lf.finalize}});var df=Gg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return df.find}});var pf=gj();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return pf.findIndex}});var ff=yj();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return ff.first}});var hf=bj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return hf.groupBy}});var vf=kg();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return vf.ignoreElements}});var mf=Ej();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return mf.isEmpty}});var _f=xj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return _f.last}});var gf=fr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return gf.map}});var yf=Dg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return yf.mapTo}});var bf=Oj();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return bf.materialize}});var Ef=wj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return Ef.max}});var xf=ql();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return xf.mergeAll}});var Of=Tj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return Of.flatMap}});var wf=nr();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return wf.mergeMap}});var Sf=Pj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return Sf.mergeMapTo}});var Tf=Aj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return Tf.mergeScan}});var FF=Rj();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return FF.mergeWith}});var kF=Mj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return kF.min}});var DF=jp();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return DF.multicast}});var LF=jl();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return LF.observeOn}});var UF=Cj();Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return UF.onErrorResumeNextWith}});var zF=jj();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return zF.pairwise}});var BF=qj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return BF.pluck}});var HF=Fj();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return HF.publish}});var VF=Dj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return VF.publishBehavior}});var GF=Lj();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return GF.publishLast}});var WF=Uj();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return WF.publishReplay}});var ZF=Xg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return ZF.raceWith}});var KF=hi();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return KF.reduce}});var YF=Bj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return YF.repeat}});var XF=Hj();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return XF.repeatWhen}});var JF=Vj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return JF.retry}});var QF=Gj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return QF.retryWhen}});var $F=Zg();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return $F.refCount}});var ek=Jg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return ek.sample}});var tk=Zj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return tk.sampleTime}});var rk=Kj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return rk.scan}});var nk=Yj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return nk.sequenceEqual}});var ik=Qg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return ik.share}});var ak=Xj();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return ak.shareReplay}});var ok=$j();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return ok.single}});var sk=eN();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return sk.skip}});var ck=tN();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return ck.skipLast}});var uk=rN();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return uk.skipUntil}});var lk=nN();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return lk.skipWhile}});var dk=iN();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return dk.startWith}});var pk=Nl();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return pk.subscribeOn}});var fk=aN();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return fk.switchAll}});var hk=Ll();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return hk.switchMap}});var vk=oN();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return vk.switchMapTo}});var mk=sN();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return mk.switchScan}});var _k=kl();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return _k.take}});var gk=Wg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return gk.takeLast}});var yk=cN();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return yk.takeUntil}});var bk=uN();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return bk.takeWhile}});var Ek=lN();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return Ek.tap}});var xk=$g();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return xk.throttle}});var Ok=dN();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Ok.throttleTime}});var wk=Dl();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return wk.throwIfEmpty}});var Sk=pN();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Sk.timeInterval}});var Tk=up();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Tk.timeout}});var Pk=fN();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Pk.timeoutWith}});var Ak=hN();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Ak.timestamp}});var Rk=Ng();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Rk.toArray}});var Mk=vN();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Mk.window}});var Ik=mN();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return Ik.windowCount}});var Ck=_N();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return Ck.windowTime}});var jk=gN();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return jk.windowToggle}});var Nk=yN();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return Nk.windowWhen}});var qk=bN();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return qk.withLatestFrom}});var Fk=xN();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return Fk.zipAll}});var kk=ON();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return kk.zipWith}})})(Zr)),Zr}var qT;function dy(){if(qT)return Ye;qT=1;var e=Ye&&Ye.__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=Ye&&Ye.__setModuleDefault||(Object.create?(function(_,g){Object.defineProperty(_,"default",{enumerable:!0,value:g})}):function(_,g){_.default=g}),r=Ye&&Ye.__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=Ye&&Ye.__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}})(),i=Ye&&Ye.__metadata||function(_,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,g)},a=Ye&&Ye.__param||function(_,g){return function(y,b){g(y,b,_)}},s=Ye&&Ye.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.ConfigService=void 0;const o=me(),c=ie(),u=n(SN()),p=s(wl),l=s(Lz()),d=s(Gz()),f=s(AN()),h=Sn(),m=Ul();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 Ye.ConfigService=v,Ye.ConfigService=v=r([(0,o.Injectable)(),a(0,(0,o.Optional)()),a(0,(0,o.Inject)(m.CONFIGURATION_TOKEN)),i("design:paramtypes",[Object])],v),Ye}var FT;function PB(){if(FT)return ar;FT=1;var e=ar&&ar.__decorate||function(a,s,o,c){var u=arguments.length,p=u<3?s:c===null?c=Object.getOwnPropertyDescriptor(s,o):c,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(a,s,o,c);else for(var d=a.length-1;d>=0;d--)(l=a[d])&&(p=(u<3?l(p):u>3?l(s,o,p):l(s,o))||p);return u>3&&p&&Object.defineProperty(s,o,p),p};Object.defineProperty(ar,"__esModule",{value:!0}),ar.ConfigHostModule=void 0;const t=me(),r=Ul(),n=dy();let i=class{};return ar.ConfigHostModule=i,ar.ConfigHostModule=i=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]})],i),ar}var Ad={},Rd={},kT;function py(){if(kT)return Rd;kT=1,Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.getConfigToken=e;function e(t){return`CONFIGURATION(${t.toString()})`}return Rd}var DT;function AB(){if(DT)return Ad;DT=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.createConfigProvider=r;const e=py(),t=li;function r(n){return{provide:n.KEY||(0,e.getConfigToken)((0,t.randomUUID)()),useFactory:n,inject:[]}}return Ad}var Md={},LT;function RB(){if(LT)return Md;LT=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.getRegistrationToken=t;const e=Ul();function t(r){return r[e.PARTIAL_CONFIGURATION_KEY]}return Md}var Xn={},UT;function MB(){if(UT)return Xn;UT=1;var e=Xn&&Xn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.mergeConfigObject=r;const t=e(AN());function r(n,i,a){if(a)return(0,t.default)(n,a,i),i;Object.assign(n,i)}return Xn}var zT;function IN(){if(zT)return ht;zT=1;var e=ht&&ht.__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=ht&&ht.__setModuleDefault||(Object.create?(function(g,y){Object.defineProperty(g,"default",{enumerable:!0,value:y})}):function(g,y){g.default=y}),r=ht&&ht.__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=ht&&ht.__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}})(),i;Object.defineProperty(ht,"__esModule",{value:!0}),ht.ConfigModule=void 0;const a=me(),s=ie(),o=n(SN()),c=tz(),u=n(wl),p=or,l=PB(),d=Ul(),f=dy(),h=AB(),m=RB(),v=MB();let _=i=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:q,value:D}=y.validationSchema.validate(x,P);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(P=>(0,h.createConfigProvider)(P)).filter(P=>P),A=w.map(P=>P.provide),T={provide:f.ConfigService,useFactory:P=>{const q=P;return y.cache&&(q.isCacheEnabled=!0),y.skipProcessEnv&&(q.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:q=>{q[d.VALIDATED_ENV_PROPNAME]=E},inject:[d.CONFIGURATION_TOKEN]};w.push(P)}return this.environmentVariablesLoadedSignal(),{module:i,global:y.isGlobal,providers:O?[...w,{provide:d.CONFIGURATION_LOADER,useFactory:(P,...q)=>{q.forEach((D,H)=>this.mergePartial(P,D,w[H]))},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:i,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(o.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 ht.ConfigModule=_,_._envVariablesLoaded=new Promise(g=>i.environmentVariablesLoadedSignal=g),ht.ConfigModule=_=i=r([(0,a.Module)({imports:[l.ConfigHostModule],providers:[{provide:f.ConfigService,useExisting:d.CONFIGURATION_SERVICE_TOKEN}],exports:[l.ConfigHostModule,f.ConfigService]})],_),ht}var BT;function IB(){if(BT)return Ri;BT=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.ConditionalModule=void 0;const e=me(),t=IN(),r=i=>i?.forwardRef?i.forwardRef()?.name:i.module?i.module?.name:i.name;class n{static async registerWhen(a,s,o){const{timeout:c=5e3,debug:u=!0}=o??{},p=r(a)||a.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(a),d.exports.push(a)):u&&e.Logger.debug(`${s.toString()} evaluated to false. Skipping the registration of ${p}`,n.name),d}}return Ri.ConditionalModule=n,Ri}var on={},Am={},HT;function CB(){return HT||(HT=1,Object.defineProperty(Am,"__esModule",{value:!0})),Am}var Rm={},VT;function jB(){return VT||(VT=1,Object.defineProperty(Rm,"__esModule",{value:!0})),Rm}var Mm={},GT;function NB(){return GT||(GT=1,Object.defineProperty(Mm,"__esModule",{value:!0})),Mm}var Im={},WT;function qB(){return WT||(WT=1,Object.defineProperty(Im,"__esModule",{value:!0})),Im}var ZT;function FB(){return ZT||(ZT=1,(function(e){var t=on&&on.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=on&&on.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(CB(),e),r(jB(),e),r(NB(),e),r(qB(),e)})(on)),on}var sn={},Id={},KT;function kB(){if(KT)return Id;KT=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.registerAs=n;const e=CN(),t=Ul(),r=py();function n(i,a){const s=(o,c)=>{Object.defineProperty(a,o,{configurable:!1,enumerable:!1,value:c,writable:!1})};return s(t.PARTIAL_CONFIGURATION_KEY,i),s(t.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(i)),s(t.AS_PROVIDER_METHOD_KEY,()=>({imports:[e.ConfigModule.forFeature(a)],useFactory:o=>o,inject:[(0,r.getConfigToken)(i)]})),a}return Id}var YT;function DB(){return YT||(YT=1,(function(e){var t=sn&&sn.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=sn&&sn.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(kB(),e),r(py(),e)})(sn)),sn}var cn={},Cm={},XT;function LB(){return XT||(XT=1,Object.defineProperty(Cm,"__esModule",{value:!0})),Cm}var jm={},JT;function UB(){return JT||(JT=1,Object.defineProperty(jm,"__esModule",{value:!0})),jm}var Nm={},QT;function zB(){return QT||(QT=1,Object.defineProperty(Nm,"__esModule",{value:!0})),Nm}var $T;function BB(){return $T||($T=1,(function(e){var t=cn&&cn.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=cn&&cn.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(LB(),e),r(UB(),e),r(zB(),e)})(cn)),cn}var eP;function CN(){return eP||(eP=1,(function(e){var t=xr&&xr.__createBinding||(Object.create?(function(n,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,s,o)}):(function(n,i,a,s){s===void 0&&(s=a),n[s]=i[a]})),r=xr&&xr.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(IB(),e),r(IN(),e),r(dy(),e),r(FB(),e),r(DB(),e),r(BB(),e)})(xr)),xr}var tP;function HB(){return tP||(tP=1,(function(e){function t(r){for(var n in r)e.hasOwnProperty(n)||(e[n]=r[n])}e.__esModule=!0,t(CN())})(Rf)),Rf}var lp=HB();const VB=(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},GB=[];for(let e=0;e<256;++e)GB.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function Y(e,t,r){function n(o,c){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,c);const u=s.prototype,p=Object.keys(u);for(let l=0;l<p.length;l++){const d=p[l];d in o||(o[d]=u[d].bind(o))}}const i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function s(o){var c;const u=r?.Parent?new a:this;n(u,o),(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:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class oi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class jN extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const NN={};function vn(e){return NN}function qN(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 fg(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)}function WB(e,t){const r=(e.toString().split(".")[1]||"").length,n=t.toString();let i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(i=Number.parseInt(c[1]))}const a=r>i?r:i,s=Number.parseInt(e.toFixed(a).replace(".","")),o=Number.parseInt(t.toFixed(a).replace(".",""));return s%o/10**a}const rP=Symbol("evaluating");function Ce(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==rP)return n===void 0&&(n=rP,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Tn(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 nP(e){return JSON.stringify(e)}function ZB(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const FN="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function dp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const KB=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(dp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(dp(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function kN(e){return bl(e)?{...e}:Array.isArray(e)?[...e]:e}const YB=new Set(["string","number","symbol"]);function Lp(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 ve(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 XB(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const JB={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 QB(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 a={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Tn(this,"shape",a),a},checks:[]});return mr(e,i)}function $B(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 a={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Tn(this,"shape",a),a},checks:[]});return mr(e,i)}function eH(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 a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=vr(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Tn(this,"shape",i),i}});return mr(e,n)}function tH(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 Tn(this,"shape",n),n}});return mr(e,r)}function rH(e,t){const r=vr(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Tn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return mr(e,r)}function nH(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 i=vr(t._zod.def,{get shape(){const a=t._zod.def.shape,s={...a};if(r)for(const o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(s[o]=e?new e({type:"optional",innerType:a[o]}):a[o])}else for(const o in a)s[o]=e?new e({type:"optional",innerType:a[o]}):a[o];return Tn(this,"shape",s),s},checks:[]});return mr(t,i)}function iH(e,t,r){const n=vr(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(r)for(const s in r){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=new e({type:"nonoptional",innerType:i[s]}))}else for(const s in i)a[s]=new e({type:"nonoptional",innerType:i[s]});return Tn(this,"shape",a),a}});return mr(t,n)}function ii(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 DN(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Cd(e){return typeof e=="string"?e:e?.message}function mn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const i=Cd(e.inst?._zod.def?.error?.(e))??Cd(t?.error?.(e))??Cd(r.customError?.(e))??Cd(r.localeError?.(e))??"Invalid input";n.message=i}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 LN=(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,fg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},UN=Y("$ZodError",LN),zN=Y("$ZodError",LN,{Parent:Error});function aH(e,t=r=>r.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function oH(e,t=r=>r.message){const r={_errors:[]},n=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>n({issues:s}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let s=r,o=0;for(;o<a.path.length;){const c=a.path[o];o===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(a))):s[c]=s[c]||{_errors:[]},s=s[c],o++}}};return n(e),r}const _y=e=>(t,r,n,i)=>{const a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new oi;if(s.issues.length){const o=new(i?.Err??e)(s.issues.map(c=>mn(c,a,vn())));throw FN(o,i?.callee),o}return s.value},gy=e=>async(t,r,n,i)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const o=new(i?.Err??e)(s.issues.map(c=>mn(c,a,vn())));throw FN(o,i?.callee),o}return s.value},Up=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new oi;return a.issues.length?{success:!1,error:new(e??UN)(a.issues.map(s=>mn(s,i,vn())))}:{success:!0,data:a.value}},sH=Up(zN),zp=e=>async(t,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>mn(s,i,vn())))}:{success:!0,data:a.value}},cH=zp(zN),uH=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return _y(e)(t,r,i)},lH=e=>(t,r,n)=>_y(e)(t,r,n),dH=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return gy(e)(t,r,i)},pH=e=>async(t,r,n)=>gy(e)(t,r,n),fH=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Up(e)(t,r,i)},hH=e=>(t,r,n)=>Up(e)(t,r,n),vH=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zp(e)(t,r,i)},mH=e=>async(t,r,n)=>zp(e)(t,r,n),_H=/^[cC][^\s-]{8,}$/,gH=/^[0-9a-z]+$/,yH=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bH=/^[0-9a-vA-V]{20}$/,EH=/^[A-Za-z0-9]{27}$/,xH=/^[a-zA-Z0-9_-]{21}$/,OH=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wH=/^([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})$/,iP=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)$/,SH=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,TH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function PH(){return new RegExp(TH,"u")}const AH=/^(?:(?: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])$/,RH=/^(([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}|:))$/,MH=/^((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])$/,IH=/^(([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])$/,CH=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,BN=/^[A-Za-z0-9_-]*$/,jH=/^\+[1-9]\d{6,14}$/,HN="(?:(?:\\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])))",NH=new RegExp(`^${HN}$`);function VN(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 qH(e){return new RegExp(`^${VN(e)}$`)}function FH(e){const t=VN({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(`^${HN}T(?:${n})$`)}const kH=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},DH=/^-?\d+$/,LH=/^-?\d+(?:\.\d+)?$/,UH=/^[^A-Z]*$/,zH=/^[^a-z]*$/,mt=Y("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),GN={number:"number",bigint:"bigint",object:"date"},WN=Y("$ZodCheckLessThan",(e,t)=>{mt.init(e,t);const r=GN[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.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})}}),ZN=Y("$ZodCheckGreaterThan",(e,t)=>{mt.init(e,t);const r=GN[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.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})}}),BH=Y("$ZodCheckMultipleOf",(e,t)=>{mt.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})}}),HH=Y("$ZodCheckNumberFormat",(e,t)=>{mt.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),n=r?"int":"number",[i,a]=JB[t.format];e._zod.onattach.push(s=>{const o=s._zod.bag;o.format=t.format,o.minimum=i,o.maximum=a,r&&(o.pattern=DH)}),e._zod.check=s=>{const o=s.value;if(r){if(!Number.isInteger(o)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?s.issues.push({input:o,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:o,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}}o<i&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),o>a&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),VH=Y("$ZodCheckMaxLength",(e,t)=>{var r;mt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!hy(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const a=my(i);n.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),GH=Y("$ZodCheckMinLength",(e,t)=>{var r;mt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!hy(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const a=my(i);n.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),WH=Y("$ZodCheckLengthEquals",(e,t)=>{var r;mt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!hy(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{const i=n.value,a=i.length;if(a===t.length)return;const s=my(i),o=a>t.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Bp=Y("$ZodCheckStringFormat",(e,t)=>{var r,n;mt.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),ZH=Y("$ZodCheckRegex",(e,t)=>{Bp.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})}}),KH=Y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=UH),Bp.init(e,t)}),YH=Y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zH),Bp.init(e,t)}),XH=Y("$ZodCheckIncludes",(e,t)=>{mt.init(e,t);const r=Lp(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),JH=Y("$ZodCheckStartsWith",(e,t)=>{mt.init(e,t);const r=new RegExp(`^${Lp(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.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})}}),QH=Y("$ZodCheckEndsWith",(e,t)=>{mt.init(e,t);const r=new RegExp(`.*${Lp(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.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})}}),$H=Y("$ZodCheckOverwrite",(e,t)=>{mt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class eV{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
|
-
|
|
12
|
-
|
|
13
|
-
if (${y}.issues.length) {
|
|
14
|
-
if (${b} in input) {
|
|
15
|
-
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);let f=require(`path`);f=u(f);var p=s((()=>{var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:s(),r=i(e);n.Reflect!==void 0&&(r=i(n.Reflect,r)),t(r,n),n.Reflect===void 0&&(n.Reflect=e);function i(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}function a(){try{return Function(`return this;`)()}catch{}}function o(){try{return(0,eval)(`(function() { return this; })()`)}catch{}}function s(){return a()||o()}})(function(e,t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol==`function`,i=r&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,a=r&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,o=typeof Object.create==`function`,s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return Ae(Object.create(null))}:s?function(){return Ae({__proto__:null})}:function(){return Ae({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d=typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:Oe(),f=typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:ke(),p=typeof WeakMap==`function`?WeakMap:P(),m=r?Symbol.for(`@reflect-metadata:registry`):void 0,h=we(),g=Te(h);function _(e,t,n,r){if(M(n)){if(!fe(e)||!me(t))throw TypeError();return D(e,t)}else{if(!fe(e)||!N(t)||!N(r)&&!M(r)&&!ae(r))throw TypeError();return ae(r)&&(r=void 0),n=de(n),O(e,t,n,r)}}e(`decorate`,_);function v(e,t){function n(n,r){if(!N(n)||!M(r)&&!he(r))throw TypeError();ne(e,t,n,r)}return n}e(`metadata`,v);function y(e,t,n,r){if(!N(n))throw TypeError();return M(r)||(r=de(r)),ne(e,t,n,r)}e(`defineMetadata`,y);function b(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),k(e,t,n)}e(`hasMetadata`,b);function x(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),A(e,t,n)}e(`hasOwnMetadata`,x);function S(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),ee(e,t,n)}e(`getMetadata`,S);function C(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),te(e,t,n)}e(`getOwnMetadata`,C);function w(e,t){if(!N(e))throw TypeError();return M(t)||(t=de(t)),j(e,t)}e(`getMetadataKeys`,w);function T(e,t){if(!N(e))throw TypeError();return M(t)||(t=de(t)),re(e,t)}e(`getOwnMetadataKeys`,T);function E(e,t,n){if(!N(t)||(M(n)||(n=de(n)),!N(t)))throw TypeError();M(n)||(n=de(n));var r=De(t,n,!1);return M(r)?!1:r.OrdinaryDeleteMetadata(e,t,n)}e(`deleteMetadata`,E);function D(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!M(i)&&!ae(i)){if(!me(i))throw TypeError();t=i}}return t}function O(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!M(o)&&!ae(o)){if(!N(o))throw TypeError();r=o}}return r}function k(e,t,n){if(A(e,t,n))return!0;var r=Se(t);return ae(r)?!1:k(e,r,n)}function A(e,t,n){var r=De(t,n,!1);return M(r)?!1:le(r.OrdinaryHasOwnMetadata(e,t,n))}function ee(e,t,n){if(A(e,t,n))return te(e,t,n);var r=Se(t);if(!ae(r))return ee(e,r,n)}function te(e,t,n){var r=De(t,n,!1);if(!M(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function ne(e,t,n,r){De(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function j(e,t){var n=re(e,t),r=Se(e);if(r===null)return n;var i=j(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function re(e,t){var n=De(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function ie(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function M(e){return e===void 0}function ae(e){return e===null}function oe(e){return typeof e==`symbol`}function N(e){return typeof e==`object`?e!==null:typeof e==`function`}function se(e,t){switch(ie(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,r=_e(e,i);if(r!==void 0){var a=r.call(e,n);if(N(a))throw TypeError();return a}return ce(e,n===`default`?`number`:n)}function ce(e,t){if(t===`string`){var n=e.toString;if(pe(n)){var r=n.call(e);if(!N(r))return r}var i=e.valueOf;if(pe(i)){var r=i.call(e);if(!N(r))return r}}else{var i=e.valueOf;if(pe(i)){var r=i.call(e);if(!N(r))return r}var a=e.toString;if(pe(a)){var r=a.call(e);if(!N(r))return r}}throw TypeError()}function le(e){return!!e}function ue(e){return``+e}function de(e){var t=se(e,3);return oe(t)?t:ue(t)}function fe(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function pe(e){return typeof e==`function`}function me(e){return typeof e==`function`}function he(e){switch(ie(e)){case 3:return!0;case 4:return!0;default:return!1}}function ge(e,t){return e===t||e!==e&&t!==t}function _e(e,t){var n=e[t];if(n!=null){if(!pe(n))throw TypeError();return n}}function ve(e){var t=_e(e,a);if(!pe(t))throw TypeError();var n=t.call(e);if(!N(n))throw TypeError();return n}function ye(e){return e.value}function be(e){var t=e.next();return t.done?!1:t}function xe(e){var t=e.return;t&&t.call(e)}function Se(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===u||t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function Ce(){var e;!M(m)&&t.Reflect!==void 0&&!(m in t.Reflect)&&typeof t.Reflect.defineMetadata==`function`&&(e=Ee(t.Reflect));var n,r,i,a=new p,o={registerProvider:s,getProvider:l,setProvider:h};return o;function s(t){if(!Object.isExtensible(o))throw Error(`Cannot add provider to a frozen registry.`);switch(!0){case e===t:break;case M(n):n=t;break;case n===t:break;case M(r):r=t;break;case r===t:break;default:i===void 0&&(i=new f),i.add(t);break}}function c(t,a){if(!M(n)){if(n.isProviderFor(t,a))return n;if(!M(r)){if(r.isProviderFor(t,a))return n;if(!M(i))for(var o=ve(i);;){var s=be(o);if(!s)return;var c=ye(s);if(c.isProviderFor(t,a))return xe(o),c}}}if(!M(e)&&e.isProviderFor(t,a))return e}function l(e,t){var n=a.get(e),r;return M(n)||(r=n.get(t)),M(r)?(r=c(e,t),M(r)||(M(n)&&(n=new d,a.set(e,n)),n.set(t,r)),r):r}function u(e){if(M(e))throw TypeError();return n===e||r===e||!M(i)&&i.has(e)}function h(e,t,n){if(!u(n))throw Error(`Metadata provider not registered.`);var r=l(e,t);if(r!==n){if(!M(r))return!1;var i=a.get(e);M(i)&&(i=new d,a.set(e,i)),i.set(t,n)}return!0}}function we(){var e;return!M(m)&&N(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),M(e)&&(e=Ce()),!M(m)&&N(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function Te(e){var t=new p,n={isProviderFor:function(e,n){var r=t.get(e);return M(r)?!1:r.has(n)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:i,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(M(o)){if(!a)return;o=new d,t.set(r,o),s=!0}var c=o.get(i);if(M(c)){if(!a)return;if(c=new d,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),Error(`Wrong provider for target.`)}return c}function i(e,t,n){var i=r(t,n,!1);return M(i)?!1:le(i.has(e))}function a(e,t,n){var i=r(t,n,!1);if(!M(i))return i.get(e)}function o(e,t,n,i){r(n,i,!0).set(e,t)}function s(e,t){var n=[],i=r(e,t,!1);if(M(i))return n;for(var a=ve(i.keys()),o=0;;){var s=be(a);if(!s)return n.length=o,n;var c=ye(s);try{n[o]=c}catch(e){try{xe(a)}finally{throw e}}o++}}function c(e,n,i){var a=r(n,i,!1);if(M(a)||!a.delete(e))return!1;if(a.size===0){var o=t.get(n);M(o)||(o.delete(i),o.size===0&&t.delete(o))}return!0}}function Ee(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new p;return{isProviderFor:function(e,t){var n=o.get(e);return!M(n)&&n.has(t)?!0:i(e,t).length?(M(n)&&(n=new f,o.set(e,n)),n.add(t),!0):!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}function De(e,t,n){var r=h.getProvider(e,t);if(!M(r))return r;if(n){if(h.setProvider(e,t,g))return g;throw Error(`Illegal state.`)}}function Oe(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,`size`,{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,ge(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!ge(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(ge(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function ke(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,`size`,{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}()}function P(){var e=16,t=l.create(),r=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=a(e,!1);return t===void 0?!1:l.has(t,this._key)},e.prototype.get=function(e){var t=a(e,!1);return t===void 0?void 0:l.get(t,this._key)},e.prototype.set=function(e,t){var n=a(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=a(e,!1);return t===void 0?!1:delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var e;do e=`@@WeakMap@@`+c();while(l.has(t,e));return t[e]=!0,e}function a(e,t){if(!n.call(e,r)){if(!t)return;Object.defineProperty(e,r,{value:l.create()})}return e[r]}function o(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function s(e){if(typeof Uint8Array==`function`){var t=new Uint8Array(e);return typeof crypto<`u`?crypto.getRandomValues(t):typeof msCrypto<`u`?msCrypto.getRandomValues(t):o(t,e),t}return o(Array(e),e)}function c(){var t=s(e);t[6]=t[6]&79|64,t[8]=t[8]&191|128;for(var n=``,r=0;r<e;++r){var i=t[r];(r===4||r===6||r===8)&&(n+=`-`),i<16&&(n+=`0`),n+=i.toString(16).toLowerCase()}return n}}function Ae(e){return e.__=void 0,delete e.__,e}})})(e||={})}));p();var m=Object.create,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=_(t),a=0,o=i.length,s;a<o;a++)s=i[a],!y.call(e,s)&&s!==n&&h(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=g(t,s))||r.enumerable});return e},S=(e,t,n)=>(n=e==null?{}:m(v(e)),x(t||!e||!e.__esModule?h(n,`default`,{value:e,enumerable:!0}):n,e)),C=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),w=S(b(((e,t)=>{var n=C(`fs`),r=C(`path`),i=C(`os`),a=C(`crypto`),o=[`◈ encrypted .env [www.dotenvx.com]`,`◈ secrets for agents [www.dotenvx.com]`,`⌁ auth for agents [www.vestauth.com]`,`⌘ custom filepath { path: '/custom/path/.env' }`,`⌘ enable debugging { debug: true }`,`⌘ override existing { override: true }`,`⌘ suppress logs { quiet: true }`,`⌘ multiple files { path: ['.env.local', '.env'] }`];function s(){return o[Math.floor(Math.random()*o.length)]}function c(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function l(){return process.stdout.isTTY}function u(e){return l()?`\x1b[2m${e}\x1b[0m`:e}var d=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function f(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
2
|
+
`);let r;for(;(r=d.exec(n))!=null;){let e=r[1],n=r[2]||``;n=n.trim();let i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,`$2`),i===`"`&&(n=n.replace(/\\n/g,`
|
|
3
|
+
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function p(e){e||={};let t=y(e);e.path=t;let n=D.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=_(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=v(n,r[e].trim());a=D.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return D.parse(a)}function m(e){console.error(`⚠ ${e}`)}function h(e){console.log(`┆ ${e}`)}function g(e){console.log(`◇ ${e}`)}function _(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function v(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function y(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=r.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function b(e){return e[0]===`~`?r.join(i.homedir(),e.slice(1)):e}function x(e){let t=c(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=c(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&g(`loading env from encrypted .env.vault`);let r=D._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),D.populate(i,r,e),{parsed:r}}function S(e){let t=r.resolve(process.cwd(),`.env`),i=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=c(a.DOTENV_CONFIG_DEBUG||e&&e.debug),l=c(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?i=e.encoding:o&&h(`no encoding is specified (UTF-8 is used by default)`);let d=[t];if(e&&e.path)if(!Array.isArray(e.path))d=[b(e.path)];else{d=[];for(let t of e.path)d.push(b(t))}let f,p={};for(let t of d)try{let r=D.parse(n.readFileSync(t,{encoding:i}));D.populate(p,r,e)}catch(e){o&&h(`failed to load ${t} ${e.message}`),f=e}let m=D.populate(a,p,e);if(o=c(a.DOTENV_CONFIG_DEBUG||o),l=c(a.DOTENV_CONFIG_QUIET||l),o||!l){let e=Object.keys(m).length,t=[];for(let e of d)try{let n=r.relative(process.cwd(),e);t.push(n)}catch(t){o&&h(`failed to load ${e} ${t.message}`),f=t}g(`injected env (${e}) from ${t.join(`,`)} ${u(`// tip: ${s()}`)}`)}return f?{parsed:p,error:f}:{parsed:p}}function w(e){if(_(e).length===0)return D.configDotenv(e);let t=y(e);return t?D._configVault(e):(m(`you set DOTENV_KEY but you are missing a .env.vault file at ${t}`),D.configDotenv(e))}function T(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{let e=a.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function E(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&h(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}var D={configDotenv:S,_configVault:x,_parseVault:p,config:w,decrypt:T,parse:f,populate:E};t.exports.configDotenv=D.configDotenv,t.exports._configVault=D._configVault,t.exports._parseVault=D._parseVault,t.exports.config=D.config,t.exports.decrypt=D.decrypt,t.exports.parse=D.parse,t.exports.populate=D.populate,t.exports=D}))(),1),T=(e={})=>{let{env:t,configPath:n}=e,r=f.default.resolve(n??process.cwd(),`.env${t?`.${t}`:``}`),{parsed:i}=w.config({path:r});return i};b(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:+(e>t)}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}}))();var E=s(((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,ee,te,ne;(function(e){var n=typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:{};typeof define==`function`&&define.amd?define(`tslib`,[`exports`],function(t){e(r(n,r(t)))}):typeof t==`object`&&typeof t.exports==`object`?e(r(n,r(t.exports))):e(r(n));function r(e,t){return e!==n&&(typeof Object.create==`function`?Object.defineProperty(e,`__esModule`,{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};n=function(e,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},a=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},c=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},l=function(e){return typeof e==`symbol`?e:`${e}`},u=function(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})},d=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},f=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},p=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},m=function(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&A(t,e,n)},A=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),h=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},g=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},_=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e},v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},y=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},b=function(e){return this instanceof b?(this.v=e,this):new b(e)},x=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}},S=function(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:!1}:i?i(t):t}:i}},C=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof h==`function`?h(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},w=function(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e};var j=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},re=function(e){return re=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},re(e)};T=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=re(e),r=0;r<n.length;r++)n[r]!==`default`&&A(t,e,n[r]);return j(t,e),t},E=function(e){return e&&e.__esModule?e:{default:e}},D=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},O=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},k=function(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)},ee=function(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t};var ie=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r};te=function(e){function t(t){e.error=e.hasError?new ie(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()},ne=function(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e},e(`__extends`,n),e(`__assign`,r),e(`__rest`,i),e(`__decorate`,a),e(`__param`,o),e(`__esDecorate`,s),e(`__runInitializers`,c),e(`__propKey`,l),e(`__setFunctionName`,u),e(`__metadata`,d),e(`__awaiter`,f),e(`__generator`,p),e(`__exportStar`,m),e(`__createBinding`,A),e(`__values`,h),e(`__read`,g),e(`__spread`,_),e(`__spreadArrays`,v),e(`__spreadArray`,y),e(`__await`,b),e(`__asyncGenerator`,x),e(`__asyncDelegator`,S),e(`__asyncValues`,C),e(`__makeTemplateObject`,w),e(`__importStar`,T),e(`__importDefault`,E),e(`__classPrivateFieldGet`,D),e(`__classPrivateFieldSet`,O),e(`__classPrivateFieldIn`,k),e(`__addDisposableResource`,ee),e(`__disposeResources`,te),e(`__rewriteRelativeImportExtension`,ne)})})),D=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Bind=t;function t(...e){return(t,n,r)=>(e.forEach((e,r)=>e(t,n,r)),r)}})),O=s((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__`})),k=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Catch=n;var t=O();function n(...e){return n=>{Reflect.defineMetadata(t.CATCH_WATERMARK,!0,n),Reflect.defineMetadata(t.FILTER_CATCH_EXCEPTIONS,e,n)}}})),A=s((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,e.isUndefined=e=>e===void 0,e.isObject=t=>!(0,e.isNil)(t)&&typeof t==`object`,e.isPlainObject=t=>{if(!(0,e.isObject)(t))return!1;let n=Object.getPrototypeOf(t);if(n===null)return!0;let r=Object.prototype.hasOwnProperty.call(n,`constructor`)&&n.constructor;return typeof r==`function`&&r instanceof r&&Function.prototype.toString.call(r)===Function.prototype.toString.call(Object)},e.addLeadingSlash=e=>e&&typeof e==`string`?e.charAt(0)!==`/`&&e.substring(0,2)!==`{/`?`/`+e:e:``,e.normalizePath=e=>e?e.startsWith(`/`)?(`/`+e.replace(/\/+$/,``)).replace(/\/+/g,`/`):`/`+e.replace(/\/+$/,``):`/`,e.stripEndSlash=e=>e[e.length-1]===`/`?e.slice(0,e.length-1):e,e.isFunction=e=>typeof e==`function`,e.isString=e=>typeof e==`string`,e.isNumber=e=>typeof e==`number`,e.isConstructor=e=>e===`constructor`,e.isNil=t=>(0,e.isUndefined)(t)||t===null,e.isEmpty=e=>!(e&&e.length>0),e.isSymbol=e=>typeof e==`symbol`})),ee=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Controller=r;var t=O(),n=A();function r(e){let[r,i,a,o]=(0,n.isUndefined)(e)?[`/`,void 0,void 0,void 0]:(0,n.isString)(e)||Array.isArray(e)?[e,void 0,void 0,void 0]:[e.path||`/`,e.host,{scope:e.scope,durable:e.durable},Array.isArray(e.version)?Array.from(new Set(e.version)):e.version];return e=>{Reflect.defineMetadata(t.CONTROLLER_WATERMARK,!0,e),Reflect.defineMetadata(t.PATH_METADATA,r,e),Reflect.defineMetadata(t.HOST_METADATA,i,e),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,a,e),Reflect.defineMetadata(t.VERSION_METADATA,o,e)}}})),te=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Dependencies=void 0,e.flatten=n;var t=O();function n(e){let t=[].concat(...e);return t.some(Array.isArray)?n(t):t}e.Dependencies=(...e)=>{let r=n(e);return e=>{Reflect.defineMetadata(t.PARAMTYPES_METADATA,r,e)}}})),ne=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendArrayMetadata=t;function t(e,t,n){let r=[...Reflect.getMetadata(e,n)||[],...t];Reflect.defineMetadata(e,r,n)}})),j=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidDecoratorItemException=void 0,e.validateEach=n;var t=class extends Error{constructor(e,t,n){let r=`Invalid ${t} passed to ${e}() decorator (${n}).`;super(r),this.msg=r}what(){return this.msg}};e.InvalidDecoratorItemException=t;function n(e,n,r,i,a){if(!e||!e.name)return!0;if(n.some(e=>!r(e)))throw new t(i,a,e.name);return!0}})),re=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseFilters=void 0;var t=O(),n=ne(),r=A(),i=j();e.UseFilters=(...e)=>a(...e);function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.catch));return s?((0,i.validateEach)(a.constructor,e,c,`@UseFilters`,`filter`),(0,n.extendArrayMetadata)(t.EXCEPTION_FILTERS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseFilters`,`filter`),(0,n.extendArrayMetadata)(t.EXCEPTION_FILTERS_METADATA,e,a),a)}}})),ie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Inject=r;var t=O(),n=A();function r(e){let r=arguments.length>0;return(i,a,o)=>{let s=e||Reflect.getMetadata(`design:type`,i,a);if(!s&&!r&&(s=Reflect.getMetadata(t.PARAMTYPES_METADATA,i,a)?.[o]),!(0,n.isUndefined)(o)){let e=Reflect.getMetadata(t.SELF_DECLARED_DEPS_METADATA,i)||[];e=[...e,{index:o,param:s}],Reflect.defineMetadata(t.SELF_DECLARED_DEPS_METADATA,e,i);return}let c=Reflect.getMetadata(t.PROPERTY_DEPS_METADATA,i.constructor)||[];c=[...c,{key:a,type:s}],Reflect.defineMetadata(t.PROPERTY_DEPS_METADATA,c,i.constructor)}}})),M=s((e=>{for(var t=256,n=[],r=256,i;t--;)n[t]=(t+256).toString(16).substring(1);function a(e){var a=0,o=e||11;if(!i||t+o>r*2)for(i=``,t=0;a<r;a++)i+=n[Math.random()*256|0];return i.substring(t,t+++o)}e.uid=a})),ae=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Injectable=r,e.mixin=i;var t=M(),n=O();function r(e){return t=>{Reflect.defineMetadata(n.INJECTABLE_WATERMARK,!0,t),Reflect.defineMetadata(n.SCOPE_OPTIONS_METADATA,e,t)}}function i(e){return Object.defineProperty(e,`name`,{value:(0,t.uid)(21)}),r()(e),e}})),oe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Optional=r;var t=O(),n=A();function r(){return(e,r,i)=>{if(!(0,n.isUndefined)(i)){let n=Reflect.getMetadata(t.OPTIONAL_DEPS_METADATA,e)||[];Reflect.defineMetadata(t.OPTIONAL_DEPS_METADATA,[...n,i],e);return}let a=Reflect.getMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,e.constructor)||[];Reflect.defineMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,[...a,r],e.constructor)}}})),N=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SetMetadata=void 0,e.SetMetadata=(e,t)=>{let n=(n,r,i)=>i?(Reflect.defineMetadata(e,t,i.value),i):(Reflect.defineMetadata(e,t,n),n);return n.KEY=e,n}})),se=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseGuards=a;var t=O(),n=ne(),r=A(),i=j();function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.canActivate));return s?((0,i.validateEach)(a.constructor,e,c,`@UseGuards`,`guard`),(0,n.extendArrayMetadata)(t.GUARDS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseGuards`,`guard`),(0,n.extendArrayMetadata)(t.GUARDS_METADATA,e,a),a)}}})),ce=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseInterceptors=a;var t=O(),n=ne(),r=A(),i=j();function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.intercept));return s?((0,i.validateEach)(a.constructor,e,c,`@UseInterceptors`,`interceptor`),(0,n.extendArrayMetadata)(t.INTERCEPTORS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseInterceptors`,`interceptor`),(0,n.extendArrayMetadata)(t.INTERCEPTORS_METADATA,e,a),a)}}})),le=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UsePipes=a;var t=O(),n=ne(),r=A(),i=j();function a(...e){return(a,o,s)=>s?((0,n.extendArrayMetadata)(t.PIPES_METADATA,e,s.value),s):((0,i.validateEach)(a,e,e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.transform)),`@UsePipes`,`pipe`),(0,n.extendArrayMetadata)(t.PIPES_METADATA,e,a),a)}})),ue=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.applyDecorators=t;function t(...e){return(t,n,r)=>{for(let i of e){if(t instanceof Function&&!r){i(t);continue}i(t,n,r)}}}})),de=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Version=n;var t=O();function n(e){return Array.isArray(e)&&(e=Array.from(new Set(e))),(n,r,i)=>(Reflect.defineMetadata(t.VERSION_METADATA,e,i.value),i)}})),fe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(D(),e),t.__exportStar(k(),e),t.__exportStar(ee(),e),t.__exportStar(te(),e),t.__exportStar(re(),e),t.__exportStar(ie(),e),t.__exportStar(ae(),e),t.__exportStar(oe(),e),t.__exportStar(N(),e),t.__exportStar(se(),e),t.__exportStar(ce(),e),t.__exportStar(le(),e),t.__exportStar(ue(),e),t.__exportStar(de(),e)})),pe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Global=n;var t=O();function n(){return e=>{Reflect.defineMetadata(t.GLOBAL_MODULE_METADATA,!0,e)}}})),me=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=r;var t=O();e.INVALID_MODULE_CONFIG_MESSAGE=(e,t)=>`Invalid property '${t}' passed into the @Module() decorator.`;var n=[t.MODULE_METADATA.IMPORTS,t.MODULE_METADATA.EXPORTS,t.MODULE_METADATA.CONTROLLERS,t.MODULE_METADATA.PROVIDERS];function r(t){t.forEach(t=>{if(!n.includes(t))throw Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${t}`)})}})),he=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Module=n;var t=me();function n(e){let n=Object.keys(e);return(0,t.validateModuleKeys)(n),t=>{for(let n in e)Object.hasOwnProperty.call(e,n)&&Reflect.defineMetadata(n,e[n],t)}}})),ge=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(pe(),e),t.__exportStar(he(),e)})),_e=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequestMethod=void 0;var t;(function(e){e[e.GET=0]=`GET`,e[e.POST=1]=`POST`,e[e.PUT=2]=`PUT`,e[e.DELETE=3]=`DELETE`,e[e.PATCH=4]=`PATCH`,e[e.ALL=5]=`ALL`,e[e.OPTIONS=6]=`OPTIONS`,e[e.HEAD=7]=`HEAD`,e[e.SEARCH=8]=`SEARCH`,e[e.PROPFIND=9]=`PROPFIND`,e[e.PROPPATCH=10]=`PROPPATCH`,e[e.MKCOL=11]=`MKCOL`,e[e.COPY=12]=`COPY`,e[e.MOVE=13]=`MOVE`,e[e.LOCK=14]=`LOCK`,e[e.UNLOCK=15]=`UNLOCK`})(t||(e.RequestMethod=t={}))})),ve=s((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;var t=O(),n=_e(),r={[t.PATH_METADATA]:`/`,[t.METHOD_METADATA]:n.RequestMethod.GET};e.RequestMapping=(e=r)=>{let i=e[t.PATH_METADATA],a=i&&i.length?i:`/`,o=e[t.METHOD_METADATA]||n.RequestMethod.GET;return(e,n,r)=>(Reflect.defineMetadata(t.PATH_METADATA,a,r.value),Reflect.defineMetadata(t.METHOD_METADATA,o,r.value),r)};var i=n=>r=>(0,e.RequestMapping)({[t.PATH_METADATA]:r,[t.METHOD_METADATA]:n});e.Post=i(n.RequestMethod.POST),e.Get=i(n.RequestMethod.GET),e.Delete=i(n.RequestMethod.DELETE),e.Put=i(n.RequestMethod.PUT),e.Patch=i(n.RequestMethod.PATCH),e.Options=i(n.RequestMethod.OPTIONS),e.Head=i(n.RequestMethod.HEAD),e.All=i(n.RequestMethod.ALL),e.Search=i(n.RequestMethod.SEARCH),e.Propfind=i(n.RequestMethod.PROPFIND),e.Proppatch=i(n.RequestMethod.PROPPATCH),e.Mkcol=i(n.RequestMethod.MKCOL),e.Copy=i(n.RequestMethod.COPY),e.Move=i(n.RequestMethod.MOVE),e.Lock=i(n.RequestMethod.LOCK),e.Unlock=i(n.RequestMethod.UNLOCK)})),ye=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteParamtypes=void 0;var t;(function(e){e[e.REQUEST=0]=`REQUEST`,e[e.RESPONSE=1]=`RESPONSE`,e[e.NEXT=2]=`NEXT`,e[e.BODY=3]=`BODY`,e[e.QUERY=4]=`QUERY`,e[e.PARAM=5]=`PARAM`,e[e.HEADERS=6]=`HEADERS`,e[e.SESSION=7]=`SESSION`,e[e.FILE=8]=`FILE`,e[e.FILES=9]=`FILES`,e[e.HOST=10]=`HOST`,e[e.IP=11]=`IP`,e[e.RAW_BODY=12]=`RAW_BODY`,e[e.ACK=13]=`ACK`})(t||(e.RouteParamtypes=t={}))})),be=s((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=i,e.UploadedFile=s,e.UploadedFiles=c,e.Query=l,e.Body=u,e.RawBody=d,e.Param=f,e.HostParam=p;var t=O(),n=ye(),r=A();function i(e,t,n,r,...i){return{...e,[`${t}:${n}`]:{index:n,data:r,pipes:i}}}function a(e){return n=>(r,a,o)=>{let s=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,r.constructor,a)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(s,e,o,n),r.constructor,a)}}var o=e=>(n,...a)=>(o,s,c)=>{let l=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,o.constructor,s)||{},u=(0,r.isNil)(n)||(0,r.isString)(n),d=u?n:void 0,f=u?a:[n,...a];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(l,e,c,d,...f),o.constructor,s)};e.Request=a(n.RouteParamtypes.REQUEST),e.Response=e=>(r,i,o)=>(e?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,e?.passthrough,r.constructor,i),a(n.RouteParamtypes.RESPONSE)()(r,i,o)),e.Next=a(n.RouteParamtypes.NEXT),e.Ip=a(n.RouteParamtypes.IP),e.Session=a(n.RouteParamtypes.SESSION);function s(e,...t){return o(n.RouteParamtypes.FILE)(e,...t)}function c(...e){return o(n.RouteParamtypes.FILES)(void 0,...e)}e.Headers=a(n.RouteParamtypes.HEADERS);function l(e,...t){return o(n.RouteParamtypes.QUERY)(e,...t)}function u(e,...t){return o(n.RouteParamtypes.BODY)(e,...t)}function d(...e){return o(n.RouteParamtypes.RAW_BODY)(void 0,...e)}function f(e,...t){return o(n.RouteParamtypes.PARAM)(e,...t)}function p(e){return a(n.RouteParamtypes.HOST)(e)}e.Req=e.Request,e.Res=e.Response})),xe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpCode=n;var t=O();function n(e){return(n,r,i)=>(Reflect.defineMetadata(t.HTTP_CODE_METADATA,e,i.value),i)}})),Se=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignCustomParameterMetadata=n;var t=O();function n(e,n,r,i,a,...o){return{...e,[`${n}${t.CUSTOM_ROUTE_ARGS_METADATA}:${r}`]:{index:r,factory:i,data:a,pipes:o}}}})),Ce=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createParamDecorator=a;var t=M(),n=O(),r=Se(),i=A();function a(e,a=[]){let o=(0,t.uid)(21);return(t,...s)=>(c,l,u)=>{let d=Reflect.getMetadata(n.ROUTE_ARGS_METADATA,c.constructor,l)||{},f=(0,i.isNil)(t)||!(e=>e&&((0,i.isFunction)(e)&&e.prototype&&(0,i.isFunction)(e.prototype.transform)||(0,i.isFunction)(e.transform)))(t),p=f?t:void 0,m=f?s:[t,...s];Reflect.defineMetadata(n.ROUTE_ARGS_METADATA,(0,r.assignCustomParameterMetadata)(d,o,u,e,p,...m),c.constructor,l),a.forEach(e=>e(c,l,u))}}})),we=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Render=n;var t=O();function n(e){return(n,r,i)=>(Reflect.defineMetadata(t.RENDER_METADATA,e,i.value),i)}})),Te=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Header=r;var t=O(),n=ne();function r(e,r){return(i,a,o)=>((0,n.extendArrayMetadata)(t.HEADERS_METADATA,[{name:e,value:r}],o.value),o)}})),Ee=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Redirect=n;var t=O();function n(e=``,n){return(r,i,a)=>(Reflect.defineMetadata(t.REDIRECT_METADATA,{statusCode:n,url:e},a.value),a)}})),De=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Sse=r;var t=O(),n=_e();function r(e,r={[t.METHOD_METADATA]:n.RequestMethod.GET}){return(n,i,a)=>(e=e&&e.length?e:`/`,Reflect.defineMetadata(t.PATH_METADATA,e,a.value),Reflect.defineMetadata(t.METHOD_METADATA,r[t.METHOD_METADATA],a.value),Reflect.defineMetadata(t.SSE_METADATA,!0,a.value),a)}})),Oe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(ve(),e),t.__exportStar(be(),e),t.__exportStar(xe(),e),t.__exportStar(Ce(),e),t.__exportStar(we(),e),t.__exportStar(Te(),e),t.__exportStar(Ee(),e),t.__exportStar(De(),e)})),ke=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(fe(),e),t.__exportStar(ge(),e),t.__exportStar(Oe(),e)})),P=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpStatus=void 0;var t;(function(e){e[e.CONTINUE=100]=`CONTINUE`,e[e.SWITCHING_PROTOCOLS=101]=`SWITCHING_PROTOCOLS`,e[e.PROCESSING=102]=`PROCESSING`,e[e.EARLYHINTS=103]=`EARLYHINTS`,e[e.OK=200]=`OK`,e[e.CREATED=201]=`CREATED`,e[e.ACCEPTED=202]=`ACCEPTED`,e[e.NON_AUTHORITATIVE_INFORMATION=203]=`NON_AUTHORITATIVE_INFORMATION`,e[e.NO_CONTENT=204]=`NO_CONTENT`,e[e.RESET_CONTENT=205]=`RESET_CONTENT`,e[e.PARTIAL_CONTENT=206]=`PARTIAL_CONTENT`,e[e.MULTI_STATUS=207]=`MULTI_STATUS`,e[e.ALREADY_REPORTED=208]=`ALREADY_REPORTED`,e[e.CONTENT_DIFFERENT=210]=`CONTENT_DIFFERENT`,e[e.AMBIGUOUS=300]=`AMBIGUOUS`,e[e.MOVED_PERMANENTLY=301]=`MOVED_PERMANENTLY`,e[e.FOUND=302]=`FOUND`,e[e.SEE_OTHER=303]=`SEE_OTHER`,e[e.NOT_MODIFIED=304]=`NOT_MODIFIED`,e[e.TEMPORARY_REDIRECT=307]=`TEMPORARY_REDIRECT`,e[e.PERMANENT_REDIRECT=308]=`PERMANENT_REDIRECT`,e[e.BAD_REQUEST=400]=`BAD_REQUEST`,e[e.UNAUTHORIZED=401]=`UNAUTHORIZED`,e[e.PAYMENT_REQUIRED=402]=`PAYMENT_REQUIRED`,e[e.FORBIDDEN=403]=`FORBIDDEN`,e[e.NOT_FOUND=404]=`NOT_FOUND`,e[e.METHOD_NOT_ALLOWED=405]=`METHOD_NOT_ALLOWED`,e[e.NOT_ACCEPTABLE=406]=`NOT_ACCEPTABLE`,e[e.PROXY_AUTHENTICATION_REQUIRED=407]=`PROXY_AUTHENTICATION_REQUIRED`,e[e.REQUEST_TIMEOUT=408]=`REQUEST_TIMEOUT`,e[e.CONFLICT=409]=`CONFLICT`,e[e.GONE=410]=`GONE`,e[e.LENGTH_REQUIRED=411]=`LENGTH_REQUIRED`,e[e.PRECONDITION_FAILED=412]=`PRECONDITION_FAILED`,e[e.PAYLOAD_TOO_LARGE=413]=`PAYLOAD_TOO_LARGE`,e[e.URI_TOO_LONG=414]=`URI_TOO_LONG`,e[e.UNSUPPORTED_MEDIA_TYPE=415]=`UNSUPPORTED_MEDIA_TYPE`,e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]=`REQUESTED_RANGE_NOT_SATISFIABLE`,e[e.EXPECTATION_FAILED=417]=`EXPECTATION_FAILED`,e[e.I_AM_A_TEAPOT=418]=`I_AM_A_TEAPOT`,e[e.MISDIRECTED=421]=`MISDIRECTED`,e[e.UNPROCESSABLE_ENTITY=422]=`UNPROCESSABLE_ENTITY`,e[e.LOCKED=423]=`LOCKED`,e[e.FAILED_DEPENDENCY=424]=`FAILED_DEPENDENCY`,e[e.PRECONDITION_REQUIRED=428]=`PRECONDITION_REQUIRED`,e[e.TOO_MANY_REQUESTS=429]=`TOO_MANY_REQUESTS`,e[e.UNRECOVERABLE_ERROR=456]=`UNRECOVERABLE_ERROR`,e[e.INTERNAL_SERVER_ERROR=500]=`INTERNAL_SERVER_ERROR`,e[e.NOT_IMPLEMENTED=501]=`NOT_IMPLEMENTED`,e[e.BAD_GATEWAY=502]=`BAD_GATEWAY`,e[e.SERVICE_UNAVAILABLE=503]=`SERVICE_UNAVAILABLE`,e[e.GATEWAY_TIMEOUT=504]=`GATEWAY_TIMEOUT`,e[e.HTTP_VERSION_NOT_SUPPORTED=505]=`HTTP_VERSION_NOT_SUPPORTED`,e[e.INSUFFICIENT_STORAGE=507]=`INSUFFICIENT_STORAGE`,e[e.LOOP_DETECTED=508]=`LOOP_DETECTED`})(t||(e.HttpStatus=t={}))})),Ae=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ShutdownSignal=void 0;var t;(function(e){e.SIGHUP=`SIGHUP`,e.SIGINT=`SIGINT`,e.SIGQUIT=`SIGQUIT`,e.SIGILL=`SIGILL`,e.SIGTRAP=`SIGTRAP`,e.SIGABRT=`SIGABRT`,e.SIGBUS=`SIGBUS`,e.SIGFPE=`SIGFPE`,e.SIGSEGV=`SIGSEGV`,e.SIGUSR2=`SIGUSR2`,e.SIGTERM=`SIGTERM`})(t||(e.ShutdownSignal=t={}))})),je=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VersioningType=void 0;var t;(function(e){e[e.URI=0]=`URI`,e[e.HEADER=1]=`HEADER`,e[e.MEDIA_TYPE=2]=`MEDIA_TYPE`,e[e.CUSTOM=3]=`CUSTOM`})(t||(e.VersioningType=t={}))})),Me=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(_e(),e),t.__exportStar(P(),e),t.__exportStar(Ae(),e),t.__exportStar(je(),e)})),Ne=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.IntrinsicException=void 0,e.IntrinsicException=class extends Error{}})),F=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpException=void 0;var t=A(),n=Ne();e.HttpException=class extends n.IntrinsicException{constructor(e,t,n){super(),this.response=e,this.status=t,this.options=n,this.initMessage(),this.initName(),this.initCause()}initCause(){if(this.options?.cause){this.cause=this.options.cause;return}}initMessage(){(0,t.isString)(this.response)?this.message=this.response:(0,t.isObject)(this.response)&&(0,t.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(e,n,r){return e?(0,t.isString)(e)||Array.isArray(e)||(0,t.isNumber)(e)?{message:e,error:n,statusCode:r}:e:{message:n,statusCode:r}}static getDescriptionFrom(e){return(0,t.isString)(e)?e:e?.description}static getHttpExceptionOptionsFrom(e){return(0,t.isString)(e)?{}:e}static extractDescriptionAndOptionsFrom(e){return{description:(0,t.isString)(e)?e:e?.description,httpExceptionOptions:(0,t.isString)(e)?{}:e}}}})),Pe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BadGatewayException=void 0;var t=P(),n=F();e.BadGatewayException=class extends n.HttpException{constructor(e,r=`Bad Gateway`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.BAD_GATEWAY),t.HttpStatus.BAD_GATEWAY,a)}}})),Fe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BadRequestException=void 0;var t=P(),n=F();e.BadRequestException=class extends n.HttpException{constructor(e,r=`Bad Request`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.BAD_REQUEST),t.HttpStatus.BAD_REQUEST,a)}}})),Ie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConflictException=void 0;var t=P(),n=F();e.ConflictException=class extends n.HttpException{constructor(e,r=`Conflict`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.CONFLICT),t.HttpStatus.CONFLICT,a)}}})),Le=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ForbiddenException=void 0;var t=P(),n=F();e.ForbiddenException=class extends n.HttpException{constructor(e,r=`Forbidden`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.FORBIDDEN),t.HttpStatus.FORBIDDEN,a)}}})),Re=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GatewayTimeoutException=void 0;var t=P(),n=F();e.GatewayTimeoutException=class extends n.HttpException{constructor(e,r=`Gateway Timeout`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.GATEWAY_TIMEOUT),t.HttpStatus.GATEWAY_TIMEOUT,a)}}})),ze=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GoneException=void 0;var t=P(),n=F();e.GoneException=class extends n.HttpException{constructor(e,r=`Gone`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.GONE),t.HttpStatus.GONE,a)}}})),Be=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpVersionNotSupportedException=void 0;var t=P(),n=F();e.HttpVersionNotSupportedException=class extends n.HttpException{constructor(e,r=`HTTP Version Not Supported`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),t.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,a)}}})),Ve=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ImATeapotException=void 0;var t=P(),n=F();e.ImATeapotException=class extends n.HttpException{constructor(e,r=`I'm a teapot`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.I_AM_A_TEAPOT),t.HttpStatus.I_AM_A_TEAPOT,a)}}})),He=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalServerErrorException=void 0;var t=P(),n=F();e.InternalServerErrorException=class extends n.HttpException{constructor(e,r=`Internal Server Error`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.INTERNAL_SERVER_ERROR),t.HttpStatus.INTERNAL_SERVER_ERROR,a)}}})),Ue=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MethodNotAllowedException=void 0;var t=P(),n=F();e.MethodNotAllowedException=class extends n.HttpException{constructor(e,r=`Method Not Allowed`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.METHOD_NOT_ALLOWED),t.HttpStatus.METHOD_NOT_ALLOWED,a)}}})),We=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MisdirectedException=void 0;var t=P(),n=F();e.MisdirectedException=class extends n.HttpException{constructor(e,r=`Misdirected`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.MISDIRECTED),t.HttpStatus.MISDIRECTED,a)}}})),Ge=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotAcceptableException=void 0;var t=P(),n=F();e.NotAcceptableException=class extends n.HttpException{constructor(e,r=`Not Acceptable`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_ACCEPTABLE),t.HttpStatus.NOT_ACCEPTABLE,a)}}})),Ke=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotFoundException=void 0;var t=P(),n=F();e.NotFoundException=class extends n.HttpException{constructor(e,r=`Not Found`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_FOUND),t.HttpStatus.NOT_FOUND,a)}}})),qe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotImplementedException=void 0;var t=P(),n=F();e.NotImplementedException=class extends n.HttpException{constructor(e,r=`Not Implemented`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_IMPLEMENTED),t.HttpStatus.NOT_IMPLEMENTED,a)}}})),Je=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PayloadTooLargeException=void 0;var t=P(),n=F();e.PayloadTooLargeException=class extends n.HttpException{constructor(e,r=`Payload Too Large`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.PAYLOAD_TOO_LARGE),t.HttpStatus.PAYLOAD_TOO_LARGE,a)}}})),Ye=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PreconditionFailedException=void 0;var t=P(),n=F();e.PreconditionFailedException=class extends n.HttpException{constructor(e,r=`Precondition Failed`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.PRECONDITION_FAILED),t.HttpStatus.PRECONDITION_FAILED,a)}}})),Xe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequestTimeoutException=void 0;var t=P(),n=F();e.RequestTimeoutException=class extends n.HttpException{constructor(e,r=`Request Timeout`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.REQUEST_TIMEOUT),t.HttpStatus.REQUEST_TIMEOUT,a)}}})),Ze=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceUnavailableException=void 0;var t=P(),n=F();e.ServiceUnavailableException=class extends n.HttpException{constructor(e,r=`Service Unavailable`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.SERVICE_UNAVAILABLE),t.HttpStatus.SERVICE_UNAVAILABLE,a)}}})),Qe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnauthorizedException=void 0;var t=P(),n=F();e.UnauthorizedException=class extends n.HttpException{constructor(e,r=`Unauthorized`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNAUTHORIZED),t.HttpStatus.UNAUTHORIZED,a)}}})),$e=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnprocessableEntityException=void 0;var t=P(),n=F();e.UnprocessableEntityException=class extends n.HttpException{constructor(e,r=`Unprocessable Entity`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNPROCESSABLE_ENTITY),t.HttpStatus.UNPROCESSABLE_ENTITY,a)}}})),et=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsupportedMediaTypeException=void 0;var t=P(),n=F();e.UnsupportedMediaTypeException=class extends n.HttpException{constructor(e,r=`Unsupported Media Type`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNSUPPORTED_MEDIA_TYPE),t.HttpStatus.UNSUPPORTED_MEDIA_TYPE,a)}}})),tt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Pe(),e),t.__exportStar(Fe(),e),t.__exportStar(Ie(),e),t.__exportStar(Le(),e),t.__exportStar(Re(),e),t.__exportStar(ze(),e),t.__exportStar(Be(),e),t.__exportStar(F(),e),t.__exportStar(Ve(),e),t.__exportStar(He(),e),t.__exportStar(Ne(),e),t.__exportStar(Ue(),e),t.__exportStar(We(),e),t.__exportStar(Ge(),e),t.__exportStar(Ke(),e),t.__exportStar(qe(),e),t.__exportStar(Je(),e),t.__exportStar(Ye(),e),t.__exportStar(Xe(),e),t.__exportStar(Ze(),e),t.__exportStar(Qe(),e),t.__exportStar($e(),e),t.__exportStar(et(),e)})),nt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.yellow=e.clc=e.isColorAllowed=void 0,e.isColorAllowed=()=>!process.env.NO_COLOR;var t=t=>n=>(0,e.isColorAllowed)()?t(n):n;e.clc={bold:t(e=>`\x1B[1m${e}\x1B[0m`),green:t(e=>`\x1B[32m${e}\x1B[39m`),yellow:t(e=>`\x1B[33m${e}\x1B[39m`),red:t(e=>`\x1B[31m${e}\x1B[39m`),magentaBright:t(e=>`\x1B[95m${e}\x1B[39m`),cyanBright:t(e=>`\x1B[96m${e}\x1B[39m`)},e.yellow=t(e=>`\x1B[38;5;3m${e}\x1B[39m`)})),rt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLogLevelEnabled=n;var t={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};function n(e,n){if(!n||Array.isArray(n)&&n?.length===0)return!1;if(n.includes(e))return!0;let r=-1/0;for(let e of n){let n=t[e];n>r&&(r=n)}return t[e]>=r}})),it=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.ConsoleLogger=void 0;var n=E(),r=require(`util`),i=fe(),a=nt(),o=A(),s=rt(),c=5,l=[`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`}),d=t=class{constructor(e,t){let[n,r]=(0,o.isString)(e)?[e,t]:t?[void 0,t]:[e?.context,e];r??={},r.logLevels??=l,r.colors??=r.colors??(r.json?!1:(0,a.isColorAllowed)()),r.prefix??=`Nest`,this.options=r,this.inspectOptions=this.getInspectOptions(),n&&(this.context=n,this.originalContext=n)}log(e,...t){if(!this.isLevelEnabled(`log`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`log`)}error(e,...t){if(!this.isLevelEnabled(`error`))return;let{messages:n,context:r,stack:i}=this.getContextAndStackAndMessagesToPrint([e,...t]);this.printMessages(n,r,`error`,`stderr`,i),this.printStackTrace(i)}warn(e,...t){if(!this.isLevelEnabled(`warn`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`warn`)}debug(e,...t){if(!this.isLevelEnabled(`debug`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`debug`)}verbose(e,...t){if(!this.isLevelEnabled(`verbose`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`verbose`)}fatal(e,...t){if(!this.isLevelEnabled(`fatal`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`fatal`)}setLogLevels(e){this.options||={},this.options.logLevels=e}setContext(e){this.context=e}resetContext(){this.context=this.originalContext}isLevelEnabled(e){let t=this.options?.logLevels;return(0,s.isLogLevelEnabled)(e,t)}getTimestamp(){return u.format(Date.now())}printMessages(e,t=``,n=`log`,r,i){e.forEach(e=>{if(this.options.json){this.printAsJson(e,{context:t,logLevel:n,writeStreamType:r,errorStack:i});return}let a=this.formatPid(process.pid),o=this.formatContext(t),s=this.updateAndGetTimestampDiff(),c=n.toUpperCase().padStart(7,` `),l=this.formatMessage(n,e,a,c,o,s);this.options.forceConsole?r===`stderr`?console.error(l.trim()):console.log(l.trim()):process[r??`stdout`].write(l)})}printAsJson(e,t){let n=this.getJsonLogObject(e,t),i=!this.options.colors&&this.inspectOptions.compact===!0?JSON.stringify(n,this.stringifyReplacer):(0,r.inspect)(n,this.inspectOptions);this.options.forceConsole?t.writeStreamType===`stderr`?console.error(i):console.log(i):process[t.writeStreamType??`stdout`].write(`${i}\n`)}getJsonLogObject(e,t){let n={level:t.logLevel,pid:process.pid,timestamp:Date.now(),message:e};return t.context&&(n.context=t.context),t.errorStack&&(n.stack=t.errorStack),n}formatPid(e){return`[${this.options.prefix}] ${e} - `}formatContext(e){return e?(e=`[${e}] `,this.options.colors?(0,a.yellow)(e):e):``}formatMessage(e,t,n,r,i,a){let o=this.stringifyMessage(t,e);return n=this.colorize(n,e),r=this.colorize(r,e),`${n}${this.getTimestamp()} ${r} ${i}${o}${a}\n`}stringifyMessage(e,t){if((0,o.isFunction)(e))return Function.prototype.toString.call(e).startsWith(`class `)?this.stringifyMessage(e.name,t):this.stringifyMessage(e(),t);if(typeof e==`string`)return this.colorize(e,t);let n=(0,r.inspect)(e,this.inspectOptions);return(0,o.isPlainObject)(e)?`Object(${Object.keys(e).length}) ${n}`:Array.isArray(e)?`Array(${e.length}) ${n}`:n}colorize(e,t){return!this.options.colors||this.options.json?e:this.getColorByLogLevel(t)(e)}printStackTrace(e){!e||this.options.json||(this.options.forceConsole?console.error(e):process.stderr.write(`${e}\n`))}updateAndGetTimestampDiff(){let e=t.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-t.lastTimestampAt):``;return t.lastTimestampAt=Date.now(),e}formatTimestampDiff(e){let t=` +${e}ms`;return this.options.colors?(0,a.yellow)(t):t}getInspectOptions(){let e=this.options.breakLength;e===void 0&&(e=this.options.colors?this.options.compact?1/0:void 0:this.options.compact===!1?void 0:1/0);let t={depth:this.options.depth??c,sorted:this.options.sorted,showHidden:this.options.showHidden,compact:this.options.compact??!!this.options.json,colors:this.options.colors,breakLength:e};return this.options.maxArrayLength!==void 0&&(t.maxArrayLength=this.options.maxArrayLength),this.options.maxStringLength!==void 0&&(t.maxStringLength=this.options.maxStringLength),t}stringifyReplacer(e,t){return typeof t==`bigint`||typeof t==`symbol`?t.toString():t instanceof Map||t instanceof Set||t instanceof Error?`${(0,r.inspect)(t,this.inspectOptions)}`:t}getContextAndMessagesToPrint(e){if(e?.length<=1)return{messages:e,context:this.context};let t=e[e.length-1];return(0,o.isString)(t)?{context:t,messages:e.slice(0,e.length-1)}:{messages:e,context:this.context}}getContextAndStackAndMessagesToPrint(e){if(e.length===2)return this.isStackFormat(e[1])?{messages:[e[0]],stack:e[1],context:this.context}:{...this.getContextAndMessagesToPrint(e)};let{messages:t,context:n}=this.getContextAndMessagesToPrint(e);if(t?.length<=1)return{messages:t,context:n};let r=t[t.length-1];return!(0,o.isString)(r)&&!(0,o.isUndefined)(r)?{messages:t,context:n}:{stack:r,messages:t.slice(0,t.length-1),context:n}}isStackFormat(e){return!(0,o.isString)(e)&&!(0,o.isUndefined)(e)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(e)}getColorByLogLevel(e){switch(e){case`debug`:return a.clc.magentaBright;case`warn`:return a.clc.yellow;case`error`:return a.clc.red;case`verbose`:return a.clc.cyanBright;case`fatal`:return a.clc.bold;default:return a.clc.green}}};e.ConsoleLogger=d,e.ConsoleLogger=d=t=n.__decorate([(0,i.Injectable)(),n.__param(0,(0,i.Optional)()),n.__param(1,(0,i.Optional)()),n.__metadata(`design:paramtypes`,[Object,Object])],d)})),at=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLogLevel=n;var t=ct();function n(e){return t.LOG_LEVELS.includes(e)}})),ot=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.filterLogLevels=r;var t=ct(),n=at();function r(e=``){let r=e.replaceAll(` `,``).toLowerCase();if(r[0]===`>`){let e=r[1]===`=`,n=t.LOG_LEVELS.indexOf(r.substring(e?2:1));if(n===-1)throw Error(`parse error (unknown log level): ${r}`);return t.LOG_LEVELS.slice(e?n:n+1)}else if(r.includes(`,`))return r.split(`,`).filter(n.isLogLevel);return(0,n.isLogLevel)(r)?[r]:t.LOG_LEVELS}})),st=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(ot(),e),t.__exportStar(rt(),e),t.__exportStar(at(),e)})),ct=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.Logger=e.LOG_LEVELS=void 0;var n=E(),r=fe(),i=A(),a=it(),o=st();e.LOG_LEVELS=[`verbose`,`debug`,`log`,`warn`,`error`,`fatal`];var s=new a.ConsoleLogger,c=new Intl.DateTimeFormat(void 0,{year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`,day:`2-digit`,month:`2-digit`}),l=t=class{constructor(e,t={}){this.context=e,this.options=t}get localInstance(){return t.staticInstanceRef===s||t.staticInstanceRef instanceof t&&Object.getPrototypeOf(t.staticInstanceRef).constructor===t?this.registerLocalInstanceRef():t.staticInstanceRef}error(e,...t){t=this.context?(t.length?t:[void 0]).concat(this.context):t,this.localInstance?.error(e,...t)}log(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.log(e,...t)}warn(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.warn(e,...t)}debug(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.debug?.(e,...t)}verbose(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.verbose?.(e,...t)}fatal(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.fatal?.(e,...t)}static error(e,...t){this.staticInstanceRef?.error(e,...t)}static log(e,...t){this.staticInstanceRef?.log(e,...t)}static warn(e,...t){this.staticInstanceRef?.warn(e,...t)}static debug(e,...t){this.staticInstanceRef?.debug?.(e,...t)}static verbose(e,...t){this.staticInstanceRef?.verbose?.(e,...t)}static fatal(e,...t){this.staticInstanceRef?.fatal?.(e,...t)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(e=>e.methodRef(...e.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return c.format(Date.now())}static overrideLogger(e){if(Array.isArray(e))return t.logLevels=e,this.staticInstanceRef?.setLogLevels?.(e);if((0,i.isObject)(e)){if(e instanceof t&&e.constructor!==t){let e=`Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.`;throw this.staticInstanceRef?.error(e),Error(e)}this.staticInstanceRef=e}else this.staticInstanceRef=void 0}static isLevelEnabled(e){let n=t.logLevels;return(0,o.isLogLevelEnabled)(e,n)}registerLocalInstanceRef(){return this.localInstanceRef||=new a.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:t.logLevels}),this.localInstanceRef}};e.Logger=l,l.logBuffer=[],l.staticInstanceRef=s,l.WrapBuffer=(e,n,r)=>{let i=r.value;r.value=function(...e){if(t.isBufferAttached){t.logBuffer.push({methodRef:i.bind(this),arguments:e});return}return i.call(this,...e)}},n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`error`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`log`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`warn`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`debug`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`verbose`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`fatal`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`error`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`log`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`warn`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`debug`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`verbose`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`fatal`,null),e.Logger=l=t=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,r.Optional)()),n.__param(1,(0,r.Optional)()),n.__metadata(`design:paramtypes`,[String,Object])],l)})),lt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(it(),e),t.__exportStar(ct(),e),t.__exportStar(ot(),e)})),ut=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.StreamableFile=void 0;var t=require(`stream`),n=require(`util`),r=Me(),i=lt(),a=A();e.StreamableFile=class{constructor(e,o={}){this.options=o,this.logger=new i.Logger(`StreamableFile`),this.handleError=(e,t)=>{if(!t.destroyed){if(t.headersSent){t.end();return}t.statusCode=r.HttpStatus.BAD_REQUEST,t.send(e.message)}},this.logError=e=>{this.logger.error(e)},n.types.isUint8Array(e)?(this.stream=new t.Readable,this.stream.push(e),this.stream.push(null),this.options.length??=e.length):e.pipe&&(0,a.isFunction)(e.pipe)&&(this.stream=e)}getStream(){return this.stream}getHeaders(){let{type:e=`application/octet-stream`,disposition:t=void 0,length:n=void 0}=this.options;return{type:e,disposition:t,length:n}}get errorHandler(){return this.handleError}setErrorHandler(e){return this.handleError=e,this}get errorLogger(){return this.logError}setErrorLogger(e){return this.logError=e,this}}})),dt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(ut(),e)})),ft=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),pt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),mt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ht=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),gt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),_t=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),vt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),bt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),xt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),St=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ct=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),wt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Tt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Et=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Dt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ot=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),kt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),At=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),jt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Mt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Dt(),e),t.__exportStar(Ot(),e),t.__exportStar(kt(),e),t.__exportStar(At(),e),t.__exportStar(jt(),e)})),Nt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Pt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ft=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),It=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Lt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Rt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Nt(),e),t.__exportStar(Pt(),e),t.__exportStar(Ft(),e),t.__exportStar(It(),e),t.__exportStar(Lt(),e)})),zt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Bt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Vt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ht=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ut=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Wt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Gt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Vt(),e),t.__exportStar(Ht(),e),t.__exportStar(Ut(),e),t.__exportStar(Wt(),e)})),Kt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),qt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Jt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Yt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Xt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Zt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Qt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),$t=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),en=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Kt(),e),t.__exportStar(qt(),e),t.__exportStar(Jt(),e),t.__exportStar(Yt(),e),t.__exportStar(Xt(),e),t.__exportStar(Zt(),e),t.__exportStar(Qt(),e),t.__exportStar($t(),e)})),tn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),nn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),rn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),an=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),on=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scope=void 0;var t;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.TRANSIENT=1]=`TRANSIENT`,e[e.REQUEST=2]=`REQUEST`})(t||(e.Scope=t={}))})),sn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),cn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ln=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION_NEUTRAL=void 0,e.VERSION_NEUTRAL=Symbol(`VERSION_NEUTRAL`)})),un=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),dn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(ft(),e),t.__exportStar(pt(),e),t.__exportStar(mt(),e),t.__exportStar(ht(),e),t.__exportStar(gt(),e),t.__exportStar(_t(),e),t.__exportStar(vt(),e),t.__exportStar(yt(),e),t.__exportStar(bt(),e),t.__exportStar(xt(),e),t.__exportStar(St(),e),t.__exportStar(Ct(),e),t.__exportStar(wt(),e),t.__exportStar(Tt(),e),t.__exportStar(Et(),e),t.__exportStar(Mt(),e),t.__exportStar(Rt(),e),t.__exportStar(zt(),e),t.__exportStar(Bt(),e),t.__exportStar(Gt(),e),t.__exportStar(en(),e),t.__exportStar(tn(),e),t.__exportStar(nn(),e),t.__exportStar(rn(),e),t.__exportStar(an(),e),t.__exportStar(on(),e),t.__exportStar(sn(),e),t.__exportStar(cn(),e),t.__exportStar(ln(),e),t.__exportStar(un(),e)})),fn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.randomStringGenerator=void 0;var t=M();e.randomStringGenerator=()=>(0,t.uid)(21)})),pn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ASYNC_OPTIONS_METADATA_KEYS=e.CONFIGURABLE_MODULE_ID=e.ASYNC_METHOD_SUFFIX=e.DEFAULT_FACTORY_CLASS_METHOD_KEY=e.DEFAULT_METHOD_KEY=void 0,e.DEFAULT_METHOD_KEY=`register`,e.DEFAULT_FACTORY_CLASS_METHOD_KEY=`create`,e.ASYNC_METHOD_SUFFIX=`Async`,e.CONFIGURABLE_MODULE_ID=`CONFIGURABLE_MODULE_ID`,e.ASYNC_OPTIONS_METADATA_KEYS=[`useFactory`,`useClass`,`useExisting`,`inject`,`imports`,`provideInjectionTokensFrom`]})),mn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.generateOptionsInjectionToken=n;var t=fn();function n(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,t.randomStringGenerator)()}]`}})),hn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getInjectionProviders=i;var t=A();function n(e){return!(0,t.isUndefined)(e.token)&&!(0,t.isUndefined)(e.optional)&&!e.prototype}var r=e=>n(e)?e.token:e;function i(e,t){let n=[],i=t.map(r);for(;i.length>0;){let t=(e??[]).filter(e=>!n.includes(e)&&(i.includes(e)||i.includes(e?.provide)));n.push(...t),i=t.filter(e=>e?.inject).flatMap(e=>e.inject).map(r)}return n}})),gn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(mn(),e),t.__exportStar(hn(),e)})),_n=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigurableModuleBuilder=void 0;var t=ct(),n=fn(),r=pn(),i=gn();e.ConfigurableModuleBuilder=class e{constructor(n={},r){this.options=n,this.logger=new t.Logger(e.name),r&&(this.staticMethodKey=r.staticMethodKey,this.factoryClassMethodKey=r.factoryClassMethodKey,this.transformModuleDefinition=r.transformModuleDefinition,this.extras=r.extras)}setExtras(t,n=e=>e){let r=new e(this.options,this);return r.extras=t,r.transformModuleDefinition=n,r}setClassMethodName(t){let n=new e(this.options,this);return n.staticMethodKey=t,n}setFactoryMethodName(t){let n=new e(this.options,this);return n.factoryClassMethodKey=t,n}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,i.generateOptionsInjectionToken)(),this.transformModuleDefinition??=e=>e,{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(){let e=this,t=this.staticMethodKey+r.ASYNC_METHOD_SUFFIX;class a{static[e.staticMethodKey](t){let i=[{provide:e.options.optionsInjectionToken,useValue:this.omitExtras(t,e.extras)}];return e.options.alwaysTransient&&i.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,n.randomStringGenerator)()}),e.transformModuleDefinition({module:this,providers:i},{...e.extras,...t})}static[t](t){let i=this.createAsyncProviders(t);return e.options.alwaysTransient&&i.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,n.randomStringGenerator)()}),e.transformModuleDefinition({module:this,imports:t.imports||[],providers:i},{...e.extras,...this.extractExtrasFromAsyncOptions(t,e.extras)})}static omitExtras(e,t){if(!t)return e;let n={},r=Object.keys(t);return Object.keys(e).filter(e=>!r.includes(e)).forEach(t=>{n[t]=e[t]}),n}static extractExtrasFromAsyncOptions(e,t){if(!t)return{};let n={};return Object.keys(e).filter(e=>!r.ASYNC_OPTIONS_METADATA_KEYS.includes(e)).forEach(t=>{n[t]=e[t]}),n}static createAsyncProviders(e){return e.useExisting||e.useFactory?e.inject&&e.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(e),...(0,i.getInjectionProviders)(e.provideInjectionTokensFrom,e.inject)]:[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(t){return t.useFactory?{provide:e.options.optionsInjectionToken,useFactory:t.useFactory,inject:t.inject||[]}:{provide:e.options.optionsInjectionToken,useFactory:async t=>await t[e.factoryClassMethodKey](),inject:[t.useExisting||t.useClass]}}}return a}createTypeProxy(e){return new Proxy({},{get:()=>{throw Error(`"${e}" is not supposed to be used as a value.`)}})}}})),vn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),bn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),xn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(vn(),e),t.__exportStar(yn(),e),t.__exportStar(bn(),e)})),Sn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(_n(),e),t.__exportStar(xn(),e)})),Cn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultValuePipe=void 0;var t=E(),n=ae(),r=A(),i=class{constructor(e){this.defaultValue=e}transform(e,t){return(0,r.isNil)(e)||(0,r.isNumber)(e)&&isNaN(e)?this.defaultValue:e}};e.DefaultValuePipe=i,e.DefaultValuePipe=i=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[Object])],i)})),wn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileValidator=void 0,e.FileValidator=class{constructor(e){this.validationOptions=e}}})),Tn=s(((e,t)=>{t.exports={loadEsm:e=>import(e)}})),En=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileTypeValidator=void 0;var t=require(`url`),n=ct(),r=wn(),i=Tn(),a=new n.Logger(`FileTypeValidator`);e.FileTypeValidator=class extends r.FileValidator{buildErrorMessage(e){let{errorMessage:t,...n}=this.validationOptions;if(t)return typeof t==`function`?t({file:e,config:n}):t;if(e?.mimetype){let t=`Validation failed (current file type is ${e.mimetype}, expected type is ${this.validationOptions.fileType})`;return this.validationOptions.fallbackToMimetype?`${t} - magic number detection failed, used mimetype fallback`:t}return`Validation failed (expected type is ${this.validationOptions.fileType})`}async isValid(e){if(!this.validationOptions)return!0;let n=!!e&&`mimetype`in e;if(this.validationOptions.skipMagicNumbersValidation)return n&&!!e.mimetype.match(this.validationOptions.fileType);if(!n)return!1;if(!e.buffer)return this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1;try{let n;try{let e=require.resolve(`file-type`);n=(0,t.pathToFileURL)(e).href}catch{n=`file-type`}let{fileTypeFromBuffer:r}=await(0,i.loadEsm)(n),a=await r(e.buffer);return a?!!a.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1}catch(t){let n=t instanceof Error?t.message:String(t);return(n.includes(`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`)||n.includes(`Cannot find module`)||n.includes(`ERR_MODULE_NOT_FOUND`))&&a.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: ${n}`),this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1}}}})),Dn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MaxFileSizeValidator=void 0;var t=wn();e.MaxFileSizeValidator=class extends t.FileValidator{buildErrorMessage(e){let{errorMessage:t,message:n,...r}=this.validationOptions;return t?typeof t==`function`?t({file:e,config:r}):t:n?typeof n==`function`?n(this.validationOptions.maxSize):n:e?.size?`Validation failed (current file size is ${e.size}, expected size is less than ${this.validationOptions.maxSize})`:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(e){return!this.validationOptions||!e?!0:`size`in e&&e.size<this.validationOptions.maxSize}}})),On=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),kn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpErrorByCode=void 0;var t=Me(),n=tt();e.HttpErrorByCode={[t.HttpStatus.BAD_GATEWAY]:n.BadGatewayException,[t.HttpStatus.BAD_REQUEST]:n.BadRequestException,[t.HttpStatus.CONFLICT]:n.ConflictException,[t.HttpStatus.FORBIDDEN]:n.ForbiddenException,[t.HttpStatus.GATEWAY_TIMEOUT]:n.GatewayTimeoutException,[t.HttpStatus.GONE]:n.GoneException,[t.HttpStatus.I_AM_A_TEAPOT]:n.ImATeapotException,[t.HttpStatus.INTERNAL_SERVER_ERROR]:n.InternalServerErrorException,[t.HttpStatus.METHOD_NOT_ALLOWED]:n.MethodNotAllowedException,[t.HttpStatus.NOT_ACCEPTABLE]:n.NotAcceptableException,[t.HttpStatus.NOT_FOUND]:n.NotFoundException,[t.HttpStatus.NOT_IMPLEMENTED]:n.NotImplementedException,[t.HttpStatus.PAYLOAD_TOO_LARGE]:n.PayloadTooLargeException,[t.HttpStatus.PRECONDITION_FAILED]:n.PreconditionFailedException,[t.HttpStatus.REQUEST_TIMEOUT]:n.RequestTimeoutException,[t.HttpStatus.SERVICE_UNAVAILABLE]:n.ServiceUnavailableException,[t.HttpStatus.UNAUTHORIZED]:n.UnauthorizedException,[t.HttpStatus.UNPROCESSABLE_ENTITY]:n.UnprocessableEntityException,[t.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:n.UnsupportedMediaTypeException}})),An=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFilePipe=void 0;var t=E(),n=fe(),r=Me(),i=kn(),a=A(),o=class{constructor(e={}){let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST,validators:a=[],fileIsRequired:o}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e)),this.validators=a,this.fileIsRequired=o??!0}async transform(e){let t=this.thereAreNoFilesIn(e);if(t&&this.fileIsRequired)throw this.exceptionFactory(`File is required`);return!t&&this.validators.length&&await this.validateFilesOrFile(e),e}async validateFilesOrFile(e){Array.isArray(e)?await Promise.all(e.map(e=>this.validate(e))):await this.validate(e)}thereAreNoFilesIn(e){let t=Array.isArray(e)&&(0,a.isEmpty)(e),n=(0,a.isObject)(e)&&(0,a.isEmpty)(Object.keys(e));return(0,a.isUndefined)(e)||t||n}async validate(e){for(let t of this.validators)await this.validateOrThrow(e,t);return e}async validateOrThrow(e,t){if(!await t.isValid(e)){let n=t.buildErrorMessage(e);throw this.exceptionFactory(n)}}getValidators(){return this.validators}};e.ParseFilePipe=o,e.ParseFilePipe=o=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object])],o)})),jn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFilePipeBuilder=void 0;var t=En(),n=Dn(),r=An();e.ParseFilePipeBuilder=class{constructor(){this.validators=[]}addMaxSizeValidator(e){return this.addValidator(new n.MaxFileSizeValidator(e))}addFileTypeValidator(e){return this.addValidator(new t.FileTypeValidator(e))}addValidator(e){return this.validators.push(e),this}build(e){let t=new r.ParseFilePipe({...e,validators:this.validators});return this.validators=[],t}}})),Mn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(En(),e),t.__exportStar(wn(),e),t.__exportStar(Dn(),e),t.__exportStar(On(),e),t.__exportStar(An(),e),t.__exportStar(jn(),e)})),Nn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConcatIterator=class{constructor(e){this.toConcat=e}next(){if(this.toConcat.length===0)return{done:!0};let e=this.toConcat[0].next();return e.done?(this.toConcat.shift(),this.next()):e}}})),Pn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FilterIterator=class{constructor(e,t){this.source=e,this.predicate=t}next(){let e;do e=this.source.next();while(!e.done&&!this.predicate(e.value));return e}}})),Fn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`object`&&!!e&&typeof e.next==`function`}e.isIterator=t;function n(e){return typeof e==`object`&&!!e&&typeof e[Symbol.iterator]==`function`}e.isIterable=n;function r(e){if(t(e))return e;if(n(e))return e[Symbol.iterator]();throw Error(`Passed collection is neither an Iterator nor an Iterable`)}e.toIterator=r})),In=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Fn();e.FlattenIterator=class{constructor(e){this.outer=e}next(){if(this.inner){let e=this.inner.next();if(!e.done)return e;this.inner=void 0}let{value:e,done:n}=this.outer.next();return t.isIterable(e)?(this.inner=e[Symbol.iterator](),this.next()):{value:e,done:n}}}})),Ln=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MapIterator=class{constructor(e,t){this.source=e,this.iteratee=t}next(){let{value:e,done:t}=this.source.next();return{value:!t&&this.iteratee(e),done:t}}}})),Rn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SliceIterator=class{constructor(e,t,n=1/0){this.source=e,this.start=t,this.end=n,this.i=0}next(){for(;this.i<this.start;){let e=this.source.next();if(e.done)return e;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}})),zn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ZipIterator=class{constructor(e,t){this.a=e,this.b=t}next(){let e=this.a.next();if(e.done)return{done:!0};let t=this.b.next();return t.done?{done:!0}:{value:[e.value,t.value],done:!1}}}})),Bn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Nn(),n=Pn(),r=In(),i=Ln(),a=Rn(),o=Fn(),s=zn(),c=class e{constructor(e){this.source=e}next(){return this.source.next()}[Symbol.iterator](){return this}map(t){return new e(new i.MapIterator(this.source,t))}filter(t){return new e(new n.FilterIterator(this.source,t))}concat(n){return new e(new t.ConcatIterator([this.source,o.toIterator(n)]))}take(t){return new e(new a.SliceIterator(this.source,0,t+1))}drop(t){return new e(new a.SliceIterator(this.source,t,1/0))}slice(t,n=1/0){return new e(new a.SliceIterator(this.source,t,n))}flatten(){return new e(new r.FlattenIterator(this.source))}reduce(e,t){let n;if(t===void 0){if(n=this.source.next(),n.done)throw TypeError(`Reduce of empty Iterator with no initial value`);t=n.value}for(;n=this.source.next(),!n.done;)t=e(t,n.value);return t}find(e){let t;for(;;){if(t=this.source.next(),t.done)return;if(e(t.value))return t.value}}includes(e){let t;do if(t=this.source.next(),!t.done&&t.value===e)return!0;while(!t.done);return!1}some(e){let t;do if(t=this.source.next(),!t.done&&e(t.value))return!0;while(!t.done);return!1}every(e){let t;do if(t=this.source.next(),!t.done&&!e(t.value))return!1;while(!t.done);return!0}forEach(e){let t;for(;t=this.source.next(),!t.done;)e(t.value)}join(e=`,`){let t=``,n;for(;n=this.source.next(),!n.done;)t+=e+n.value;return t.substr(e.length)}toArray(){return Array.from(this)}toSet(){let e=new Set;for(;;){let{value:t,done:n}=this.next();if(n)return e;e.add(t)}}toMap(){return new Map(this)}};e.IteratorWithOperators=c;function l(e){return new c(o.toIterator(e))}e.iterate=l;function u(e,t){return new c(new s.ZipIterator(o.toIterator(e),o.toIterator(t)))}e.zip=u,e.default=l})),I=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Bn();e.iterate=t.iterate,e.zip=t.zip,e.default=t.iterate})),Vn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadPackage=i;var t=ct(),n=(e,t)=>`The "${e}" package is missing. Please, make sure to install it to take advantage of ${t}.`,r=new t.Logger(`PackageLoader`);function i(e,i,a){try{return a?a():require(e)}catch{r.error(n(e,i)),t.Logger.flush(),process.exit(1)}}})),Hn=o((()=>{throw Error(`Could not resolve "class-validator" imported by "@nestjs/common". Is it installed?`)})),Un=o((()=>{throw Error(`Could not resolve "class-transformer" imported by "@nestjs/common". Is it installed?`)})),Wn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValidationPipe=void 0;var t=E(),n=I(),r=require(`util`),i=ke(),a=fe(),o=P(),s=kn(),c=Vn(),l=A(),u={},d={},f=[Date,RegExp,Error,Map,Set,WeakMap,WeakSet],p=class{constructor(e){e||={};let{transform:t,disableErrorMessages:n,errorHttpStatusCode:r,expectedType:i,transformOptions:a,validateCustomDecorators:s,...c}=e;this.validatorOptions={forbidUnknownValues:!1,...c},this.isTransformEnabled=!!t,this.transformOptions=a,this.isDetailedOutputDisabled=n,this.validateCustomDecorators=s||!1,this.errorHttpStatusCode=r||o.HttpStatus.BAD_REQUEST,this.expectedType=i,this.exceptionFactory=e.exceptionFactory||this.createExceptionFactory(),u=this.loadValidator(e.validatorPackage),d=this.loadTransformer(e.transformerPackage)}loadValidator(e){return e??(0,c.loadPackage)(`class-validator`,`ValidationPipe`,()=>Hn())}loadTransformer(e){return e??(0,c.loadPackage)(`class-transformer`,`ValidationPipe`,()=>Un())}async transform(e,t){this.expectedType&&(t={...t,metatype:this.expectedType});let n=t.metatype;if(!n||!this.toValidate(t))return this.isTransformEnabled?this.transformPrimitive(e,t):e;let r=e;e=this.toEmptyIfNil(e,n);let i=e!==r,a=this.isPrimitive(e);this.stripProtoKeys(e);let o=d.plainToInstance(n,e,this.transformOptions),s=o,c=o.constructor!==n;c&&!a?o.constructor=n:c&&(o={constructor:n});let l=await this.validate(o,this.validatorOptions);if(l.length>0)throw await this.exceptionFactory(l);return r===void 0&&s===``?r:(a&&(o=s),this.isTransformEnabled?o:i?r:Object.keys(this.validatorOptions).length>1?d.classToPlain(o,this.transformOptions):e)}createExceptionFactory(){return(e=[])=>{if(this.isDetailedOutputDisabled)return new s.HttpErrorByCode[this.errorHttpStatusCode];let t=this.flattenValidationErrors(e);return new s.HttpErrorByCode[this.errorHttpStatusCode](t)}}toValidate(e){let{metatype:t,type:n}=e;return n===`custom`&&!this.validateCustomDecorators?!1:![String,Boolean,Number,Array,Object,Buffer,Date].some(e=>t===e)&&!(0,l.isNil)(t)}transformPrimitive(e,t){if(!t.data)return e;let{type:n,metatype:r}=t;return n!==`param`&&n!==`query`?e:r===Boolean?(0,l.isUndefined)(e)?void 0:e===!0||e===`true`:r===Number?(0,l.isUndefined)(e)?void 0:+e:r===String&&!(0,l.isUndefined)(e)?String(e):e}toEmptyIfNil(e,t){return(0,l.isNil)(e)?typeof t==`function`||t&&`prototype`in t&&t.prototype?.constructor?{}:``:e}stripProtoKeys(e){if(typeof e!=`object`||!e||r.types.isTypedArray(e)||f.some(t=>e instanceof t))return;if(Array.isArray(e)){for(let t of e)this.stripProtoKeys(t);return}delete e.__proto__,delete e.prototype;let t=e?.constructor;t&&!f.includes(t)&&delete e.constructor;for(let t in e)this.stripProtoKeys(e[t])}isPrimitive(e){return[`number`,`boolean`,`string`].includes(typeof e)}validate(e,t){return u.validate(e,t)}flattenValidationErrors(e){return(0,n.iterate)(e).map(e=>this.mapChildrenToValidationErrors(e)).flatten().filter(e=>!!e.constraints).map(e=>Object.values(e.constraints)).flatten().toArray()}mapChildrenToValidationErrors(e,t){if(!(e.children&&e.children.length))return[e];let n=[];t=t?`${t}.${e.property}`:e.property;for(let r of e.children)r.children&&r.children.length&&n.push(...this.mapChildrenToValidationErrors(r,t)),n.push(this.prependConstraintsWithParentProp(t,r));return n}prependConstraintsWithParentProp(e,t){let n={};for(let r in t.constraints)n[r]=`${e}.${t.constraints[r]}`;return{...t,constraints:n}}};e.ValidationPipe=p,e.ValidationPipe=p=t.__decorate([(0,a.Injectable)(),t.__param(0,(0,i.Optional)()),t.__metadata(`design:paramtypes`,[Object])],p)})),Gn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseArrayPipe=void 0;var t=E(),n=ae(),r=oe(),i=P(),a=kn(),o=A(),s=Wn(),c=`Validation failed (parsable array expected)`,l=`,`,u=class{constructor(e={}){this.options=e,this.validationPipe=new s.ValidationPipe({transform:!0,validateCustomDecorators:!0,...e});let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if(!e&&!this.options.optional)throw this.exceptionFactory(c);if((0,o.isNil)(e)&&this.options.optional)return e;if(!Array.isArray(e))if((0,o.isString)(e))try{e=e.trim().split(this.options.separator||l)}catch{throw this.exceptionFactory(c)}else throw this.exceptionFactory(c);if(this.options.items){let t={metatype:this.options.items,type:`query`},n=this.isExpectedTypePrimitive(),r=(e,r)=>{if(this.options.items!==String)try{e=JSON.parse(e)}catch{}return n?this.validatePrimitive(e,r):this.validationPipe.transform(e,t)};if(this.options.stopAtFirstError===!1){let t=[],n=e;for(let e=0;e<n.length;e++)try{n[e]=await r(n[e])}catch(n){let r;if(n.getResponse){let t=n.getResponse();r=Array.isArray(t.message)?t.message.map(t=>`[${e}] ${t}`):`[${e}] ${t.message}`}else r=n;t=t.concat(r)}if(t.length>0)throw this.exceptionFactory(t);return n}else e=await Promise.all(e.map(r))}return e}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(e,t){if(this.options.items===Number){let n=e!==null&&e!==``?+e:NaN;if(isNaN(n))throw this.exceptionFactory(`${(0,o.isUndefined)(t)?``:`[${t}] `}item must be a number`);return n}else if(this.options.items===String){if(!(0,o.isString)(e))return`${e}`}else if(this.options.items===Boolean&&typeof e!=`boolean`)throw this.exceptionFactory(`${(0,o.isUndefined)(t)?``:`[${t}] `}item must be a boolean value`);return e}};e.ParseArrayPipe=u,e.ParseArrayPipe=u=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],u)})),Kn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseBoolPipe=void 0;var t=E(),n=ae(),r=oe(),i=P(),a=kn(),o=A(),s=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(this.isTrue(e))return!0;if(this.isFalse(e))return!1;throw this.exceptionFactory(`Validation failed (boolean string is expected)`)}isTrue(e){return e===!0||e===`true`}isFalse(e){return e===!1||e===`false`}};e.ParseBoolPipe=s,e.ParseBoolPipe=s=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],s)})),qn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseDatePipe=void 0;var t=E(),n=ae(),r=P(),i=kn(),a=A(),o=class{constructor(e={}){this.options=e;let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e))}transform(e){if(this.options.optional&&(0,a.isNil)(e))return this.options.default?this.options.default():e;if(!e)throw this.exceptionFactory(`Validation failed (no Date provided)`);let t=new Date(e);if(isNaN(t.getTime()))throw this.exceptionFactory(`Validation failed (invalid date format)`);return t}};e.ParseDatePipe=o,e.ParseDatePipe=o=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[Object])],o)})),Jn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseEnumPipe=void 0;var t=E(),n=fe(),r=H(),i=kn(),a=A(),o=class{constructor(e,t){if(this.enumType=e,this.options=t,!e)throw Error(`"ParseEnumPipe" requires "enumType" argument specified (to validate input values).`);t||={};let{exceptionFactory:n,errorHttpStatusCode:a=r.HttpStatus.BAD_REQUEST}=t;this.exceptionFactory=n||(e=>new i.HttpErrorByCode[a](e))}async transform(e,t){if((0,a.isNil)(e)&&this.options?.optional)return e;if(!this.isEnum(e))throw this.exceptionFactory(`Validation failed (enum string is expected)`);return e}isEnum(e){return Object.keys(this.enumType).map(e=>this.enumType[e]).includes(e)}};e.ParseEnumPipe=o,e.ParseEnumPipe=o=t.__decorate([(0,n.Injectable)(),t.__param(1,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object,Object])],o)})),Yn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFloatPipe=void 0;var t=E(),n=fe(),r=H(),i=kn(),a=A(),o=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e))}async transform(e,t){if((0,a.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory(`Validation failed (numeric string is expected)`);return parseFloat(e)}isNumeric(e){return[`string`,`number`].includes(typeof e)&&!isNaN(parseFloat(e))&&isFinite(e)}};e.ParseFloatPipe=o,e.ParseFloatPipe=o=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object])],o)})),Xn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseIntPipe=void 0;var t=E(),n=ae(),r=oe(),i=P(),a=kn(),o=A(),s=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory(`Validation failed (numeric string is expected)`);return parseInt(e,10)}isNumeric(e){return[`string`,`number`].includes(typeof e)&&/^-?\d+$/.test(e)&&isFinite(e)}};e.ParseIntPipe=s,e.ParseIntPipe=s=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],s)})),Zn=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseUUIDPipe=void 0;var n=E(),r=ae(),i=oe(),a=P(),o=kn(),s=A(),c=t=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=a.HttpStatus.BAD_REQUEST,version:r}=e;this.version=r,this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,s.isNil)(e)&&this.options?.optional)return e;if(!this.isUUID(e,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:``} is expected)`);return e}isUUID(e,n=`all`){if(!(0,s.isString)(e))throw this.exceptionFactory(`The value passed as UUID is not a string`);return t.uuidRegExps[n]?.test(e)}};e.ParseUUIDPipe=c,c.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},e.ParseUUIDPipe=c=t=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,i.Optional)()),n.__metadata(`design:paramtypes`,[Object])],c)})),Qn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Cn(),e),t.__exportStar(Mn(),e),t.__exportStar(Gn(),e),t.__exportStar(Kn(),e),t.__exportStar(qn(),e),t.__exportStar(Jn(),e),t.__exportStar(Yn(),e),t.__exportStar(Xn(),e),t.__exportStar(Zn(),e),t.__exportStar(Wn(),e)})),L=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isFunction=void 0;function t(e){return typeof e==`function`}e.isFunction=t})),R=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.operate=e.hasLift=void 0;var t=L();function n(e){return t.isFunction(e?.lift)}e.hasLift=n;function r(e){return function(t){if(n(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}e.operate=r})),$n=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArrayLike=void 0,e.isArrayLike=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`})})),er=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromise=void 0;var t=L();function n(e){return t.isFunction(e?.then)}e.isPromise=n})),tr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createErrorClass=void 0;function t(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.createErrorClass=t})),nr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsubscriptionError=void 0,e.UnsubscriptionError=tr().createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
4
|
+
`+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
|
|
5
|
+
`):``,this.name=`UnsubscriptionError`,this.errors=t}})})),rr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.arrRemove=void 0;function t(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}e.arrRemove=t})),ir=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.isSubscription=e.EMPTY_SUBSCRIPTION=e.Subscription=void 0;var i=L(),a=nr(),o=rr(),s=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,o,s,c,u;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var f=t(d),p=f.next();!p.done;p=f.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(e)throw e.error}}else d.remove(this);var m=this.initialTeardown;if(i.isFunction(m))try{m()}catch(e){u=e instanceof a.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=t(h),_=g.next();!_.done;_=g.next()){var v=_.value;try{l(v)}catch(e){u??=[],e instanceof a.UnsubscriptionError?u=r(r([],n(u)),n(e.errors)):u.push(e)}}}catch(e){s={error:e}}finally{try{_&&!_.done&&(c=g.return)&&c.call(g)}finally{if(s)throw s.error}}}if(u)throw new a.UnsubscriptionError(u)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&o.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&o.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}();e.Subscription=s,e.EMPTY_SUBSCRIPTION=s.EMPTY;function c(e){return e instanceof s||e&&`closed`in e&&i.isFunction(e.remove)&&i.isFunction(e.add)&&i.isFunction(e.unsubscribe)}e.isSubscription=c;function l(e){i.isFunction(e)?e():e.unsubscribe()}})),ar=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}})),or=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=e.timeoutProvider.delegate;return s?.setTimeout?s.setTimeout.apply(s,n([r,i],t(a))):setTimeout.apply(void 0,n([r,i],t(a)))},clearTimeout:function(t){return(e.timeoutProvider.delegate?.clearTimeout||clearTimeout)(t)},delegate:void 0}})),sr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reportUnhandledError=void 0;var t=ar(),n=or();function r(e){n.timeoutProvider.setTimeout(function(){var n=t.config.onUnhandledError;if(n)n(e);else throw e})}e.reportUnhandledError=r})),cr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.noop=void 0;function t(){}e.noop=t})),lr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createNotification=e.nextNotification=e.errorNotification=e.COMPLETE_NOTIFICATION=void 0,e.COMPLETE_NOTIFICATION=(function(){return r(`C`,void 0,void 0)})();function t(e){return r(`E`,void 0,e)}e.errorNotification=t;function n(e){return r(`N`,e,void 0)}e.nextNotification=n;function r(e,t,n){return{kind:e,value:t,error:n}}e.createNotification=r})),ur=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.captureError=e.errorContext=void 0;var t=ar(),n=null;function r(e){if(t.config.useDeprecatedSynchronousErrorHandling){var r=!n;if(r&&(n={errorThrown:!1,error:null}),e(),r){var i=n,a=i.errorThrown,o=i.error;if(n=null,a)throw o}}else e()}e.errorContext=r;function i(e){t.config.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}e.captureError=i})),dr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var n=L(),r=ir(),i=ar(),a=sr(),o=cr(),s=lr(),c=or(),l=ur(),u=function(n){t(i,n);function i(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,r.isSubscription(t)&&t.add(i)):i.destination=e.EMPTY_OBSERVER,i}return i.create=function(e,t,n){return new m(e,t,n)},i.prototype.next=function(e){this.isStopped?_(s.nextNotification(e),this):this._next(e)},i.prototype.error=function(e){this.isStopped?_(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped?_(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(r.Subscription);e.Subscriber=u;var d=Function.prototype.bind;function f(e,t){return d.call(e,t)}var p=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),m=function(e){t(r,e);function r(t,r,a){var o=e.call(this)||this,s;if(n.isFunction(t)||!t)s={next:t??void 0,error:r??void 0,complete:a??void 0};else{var c;o&&i.config.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&f(t.next,c),error:t.error&&f(t.error,c),complete:t.complete&&f(t.complete,c)}):s=t}return o.destination=new p(s),o}return r}(u);e.SafeSubscriber=m;function h(e){i.config.useDeprecatedSynchronousErrorHandling?l.captureError(e):a.reportUnhandledError(e)}function g(e){throw e}function _(e,t){var n=i.config.onStoppedNotification;n&&c.timeoutProvider.setTimeout(function(){return n(e,t)})}e.EMPTY_OBSERVER={closed:!0,next:o.noop,error:g,complete:o.noop}})),fr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observable=void 0,e.observable=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})()})),pr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.identity=void 0;function t(e){return e}e.identity=t})),mr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pipeFromArray=e.pipe=void 0;var t=pr();function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}e.pipe=n;function r(e){return e.length===0?t.identity:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.pipeFromArray=r})),z=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=void 0;var t=dr(),n=ir(),r=fr(),i=mr(),a=ar(),o=L(),s=ur();e.Observable=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,n,r){var i=this,a=u(e)?e:new t.SafeSubscriber(e,n,r);return s.errorContext(function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,n){var r=this;return n=c(n),new n(function(n,i){var a=new t.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),a.unsubscribe()}},error:i,complete:n});r.subscribe(a)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[r.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=c(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function c(e){return e??a.config.Promise??Promise}function l(e){return e&&o.isFunction(e.next)&&o.isFunction(e.error)&&o.isFunction(e.complete)}function u(e){return e&&e instanceof t.Subscriber||l(e)&&n.isSubscription(e)}})),hr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isInteropObservable=void 0;var t=fr(),n=L();function r(e){return n.isFunction(e[t.observable])}e.isInteropObservable=r})),gr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isAsyncIterable=void 0;var t=L();function n(e){return Symbol.asyncIterator&&t.isFunction(e?.[Symbol.asyncIterator])}e.isAsyncIterable=n})),_r=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createInvalidObservableTypeError=void 0;function t(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}e.createInvalidObservableTypeError=t})),vr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.iterator=e.getSymbolIterator=void 0;function t(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}e.getSymbolIterator=t,e.iterator=t()})),yr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isIterable=void 0;var t=vr(),n=L();function r(e){return n.isFunction(e?.[t.iterator])}e.isIterable=r})),br=s((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},n=e&&e.__await||function(e){return this instanceof n?(this.v=e,this):new n(e)},r=e&&e.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,t||[]),a,o=[];return a={},s(`next`),s(`throw`),s(`return`),a[Symbol.asyncIterator]=function(){return this},a;function s(e){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||c(e,t)})})}function c(e,t){try{l(i[e](t))}catch(e){f(o[0][3],e)}}function l(e){e.value instanceof n?Promise.resolve(e.value.v).then(u,d):f(o[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(e,`__esModule`,{value:!0}),e.isReadableStreamLike=e.readableStreamLikeToAsyncGenerator=void 0;var i=L();function a(e){return r(this,arguments,function(){var r,i,a,o;return t(this,function(t){switch(t.label){case 0:r=e.getReader(),t.label=1;case 1:t.trys.push([1,,9,10]),t.label=2;case 2:return[4,n(r.read())];case 3:return i=t.sent(),a=i.value,o=i.done,o?[4,n(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,n(a)];case 6:return[4,t.sent()];case 7:return t.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}e.readableStreamLikeToAsyncGenerator=a;function o(e){return i.isFunction(e?.getReader)}e.isReadableStreamLike=o})),B=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},r=e&&e.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof i==`function`?i(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),a(r,i,n.done,n.value)})}}function a(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.fromReadableStreamLike=e.fromAsyncIterable=e.fromIterable=e.fromPromise=e.fromArrayLike=e.fromInteropObservable=e.innerFrom=void 0;var a=$n(),o=er(),s=z(),c=hr(),l=gr(),u=_r(),d=yr(),f=br(),p=L(),m=sr(),h=fr();function g(e){if(e instanceof s.Observable)return e;if(e!=null){if(c.isInteropObservable(e))return _(e);if(a.isArrayLike(e))return v(e);if(o.isPromise(e))return y(e);if(l.isAsyncIterable(e))return x(e);if(d.isIterable(e))return b(e);if(f.isReadableStreamLike(e))return S(e)}throw u.createInvalidObservableTypeError(e)}e.innerFrom=g;function _(e){return new s.Observable(function(t){var n=e[h.observable]();if(p.isFunction(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}e.fromInteropObservable=_;function v(e){return new s.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}e.fromArrayLike=v;function y(e){return new s.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,m.reportUnhandledError)})}e.fromPromise=y;function b(e){return new s.Observable(function(t){var n,r;try{for(var a=i(e),o=a.next();!o.done;o=a.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()})}e.fromIterable=b;function x(e){return new s.Observable(function(t){C(e,t).catch(function(e){return t.error(e)})})}e.fromAsyncIterable=x;function S(e){return x(f.readableStreamLikeToAsyncGenerator(e))}e.fromReadableStreamLike=S;function C(e,i){var a,o,s,c;return t(this,void 0,void 0,function(){var t,l;return n(this,function(n){switch(n.label){case 0:n.trys.push([0,5,6,11]),a=r(e),n.label=1;case 1:return[4,a.next()];case 2:if(o=n.sent(),o.done)return[3,4];if(t=o.value,i.next(t),i.closed)return[2];n.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=n.sent(),s={error:l},[3,11];case 6:return n.trys.push([6,,9,10]),o&&!o.done&&(c=a.return)?[4,c.call(a)]:[3,8];case 7:n.sent(),n.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return i.complete(),[2]}})})}})),V=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.OperatorSubscriber=e.createOperatorSubscriber=void 0;var n=dr();function r(e,t,n,r,a){return new i(e,t,n,r,a)}e.createOperatorSubscriber=r;var i=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},n}(n.Subscriber);e.OperatorSubscriber=i})),xr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.audit=void 0;var t=R(),n=B(),r=V();function i(e){return t.operate(function(t,i){var a=!1,o=null,s=null,c=!1,l=function(){if(s?.unsubscribe(),s=null,a){a=!1;var e=o;o=null,i.next(e)}c&&i.complete()},u=function(){s=null,c&&i.complete()};t.subscribe(r.createOperatorSubscriber(i,function(t){a=!0,o=t,s||n.innerFrom(e(t)).subscribe(s=r.createOperatorSubscriber(i,l,u))},function(){c=!0,(!a||!s||s.closed)&&i.complete()}))})}e.audit=i})),Sr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Action=void 0,e.Action=function(e){t(n,e);function n(t,n){return e.call(this)||this}return n.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},n}(ir().Subscription)})),Cr=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=e.intervalProvider.delegate;return s?.setInterval?s.setInterval.apply(s,n([r,i],t(a))):setInterval.apply(void 0,n([r,i],t(a)))},clearInterval:function(t){return(e.intervalProvider.delegate?.clearInterval||clearInterval)(t)},delegate:void 0}})),wr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncAction=void 0;var n=Sr(),r=Cr(),i=rr();e.AsyncAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this},n.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),r.intervalProvider.setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&r.intervalProvider.clearInterval(t)},n.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,a=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,i.arrRemove(a,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(n.Action)})),Tr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})),Er=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scheduler=void 0;var t=Tr();e.Scheduler=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=t.dateTimestampProvider.now,e}()})),Dr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncScheduler=void 0;var n=Er();e.AsyncScheduler=function(e){t(r,e);function r(t,r){r===void 0&&(r=n.Scheduler.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return r.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},r}(n.Scheduler)})),Or=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.async=e.asyncScheduler=void 0;var t=wr();e.asyncScheduler=new(Dr()).AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})),kr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isScheduler=void 0;var t=L();function n(e){return e&&t.isFunction(e.schedule)}e.isScheduler=n})),Ar=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isValidDate=void 0;function t(e){return e instanceof Date&&!isNaN(e)}e.isValidDate=t})),jr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timer=void 0;var t=z(),n=Or(),r=kr(),i=Ar();function a(e,a,o){e===void 0&&(e=0),o===void 0&&(o=n.async);var s=-1;return a!=null&&(r.isScheduler(a)?o=a:s=a),new t.Observable(function(t){var n=i.isValidDate(e)?+e-o.now():e;n<0&&(n=0);var r=0;return o.schedule(function(){t.closed||(t.next(r++),0<=s?this.schedule(void 0,s):t.complete())},n)})}e.timer=a})),Mr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.auditTime=void 0;var t=Or(),n=xr(),r=jr();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.audit(function(){return r.timer(e,i)})}e.auditTime=i})),Nr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buffer=void 0;var t=R(),n=cr(),r=V(),i=B();function a(e){return t.operate(function(t,a){var o=[];return t.subscribe(r.createOperatorSubscriber(a,function(e){return o.push(e)},function(){a.next(o),a.complete()})),i.innerFrom(e).subscribe(r.createOperatorSubscriber(a,function(){var e=o;o=[],a.next(e)},n.noop)),function(){o=null}})}e.buffer=a})),Pr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferCount=void 0;var n=R(),r=V(),i=rr();function a(e,a){return a===void 0&&(a=null),a??=e,n.operate(function(n,o){var s=[],c=0;n.subscribe(r.createOperatorSubscriber(o,function(n){var r,l,u,d,f=null;c++%a===0&&s.push([]);try{for(var p=t(s),m=p.next();!m.done;m=p.next()){var h=m.value;h.push(n),e<=h.length&&(f??=[],f.push(h))}}catch(e){r={error:e}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(r)throw r.error}}if(f)try{for(var g=t(f),_=g.next();!_.done;_=g.next()){var h=_.value;i.arrRemove(s,h),o.next(h)}}catch(e){u={error:e}}finally{try{_&&!_.done&&(d=g.return)&&d.call(g)}finally{if(u)throw u.error}}},function(){var e,n;try{for(var r=t(s),i=r.next();!i.done;i=r.next()){var a=i.value;o.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}o.complete()},void 0,function(){s=null}))})}e.bufferCount=a})),Fr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.popNumber=e.popScheduler=e.popResultSelector=void 0;var t=L(),n=kr();function r(e){return e[e.length-1]}function i(e){return t.isFunction(r(e))?e.pop():void 0}e.popResultSelector=i;function a(e){return n.isScheduler(r(e))?e.pop():void 0}e.popScheduler=a;function o(e,t){return typeof r(e)==`number`?e.pop():t}e.popNumber=o})),Ir=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.executeSchedule=void 0;function t(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}e.executeSchedule=t})),Lr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferTime=void 0;var n=ir(),r=R(),i=V(),a=rr(),o=Or(),s=Fr(),c=Ir();function l(e){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var d=s.popScheduler(l)??o.asyncScheduler,f=l[0]??null,p=l[1]||1/0;return r.operate(function(r,o){var s=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(s,e),o.next(t),l&&m()},m=function(){if(s){var t=new n.Subscription;o.add(t);var r={buffer:[],subs:t};s.push(r),c.executeSchedule(t,d,function(){return u(r)},e)}};f!==null&&f>=0?c.executeSchedule(o,d,m,f,!0):l=!0,m();var h=i.createOperatorSubscriber(o,function(e){var n,r,i=s.slice();try{for(var a=t(i),o=a.next();!o.done;o=a.next()){var c=o.value,l=c.buffer;l.push(e),p<=l.length&&u(c)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},function(){for(;s?.length;)o.next(s.shift().buffer);h?.unsubscribe(),o.complete(),o.unsubscribe()},void 0,function(){return s=null});r.subscribe(h)})}e.bufferTime=l})),Rr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferToggle=void 0;var n=ir(),r=R(),i=B(),a=V(),o=cr(),s=rr();function c(e,c){return r.operate(function(r,l){var u=[];i.innerFrom(e).subscribe(a.createOperatorSubscriber(l,function(e){var t=[];u.push(t);var r=new n.Subscription;r.add(i.innerFrom(c(e)).subscribe(a.createOperatorSubscriber(l,function(){s.arrRemove(u,t),l.next(t),r.unsubscribe()},o.noop)))},o.noop)),r.subscribe(a.createOperatorSubscriber(l,function(e){var n,r;try{for(var i=t(u),a=i.next();!a.done;a=i.next())a.value.push(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},function(){for(;u.length>0;)l.next(u.shift());l.complete()}))})}e.bufferToggle=c})),zr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferWhen=void 0;var t=R(),n=cr(),r=V(),i=B();function a(e){return t.operate(function(t,a){var o=null,s=null,c=function(){s?.unsubscribe();var t=o;o=[],t&&a.next(t),i.innerFrom(e()).subscribe(s=r.createOperatorSubscriber(a,c,n.noop))};c(),t.subscribe(r.createOperatorSubscriber(a,function(e){return o?.push(e)},function(){o&&a.next(o),a.complete()},void 0,function(){return o=s=null}))})}e.bufferWhen=a})),Br=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.catchError=void 0;var t=B(),n=V(),r=R();function i(e){return r.operate(function(r,a){var o=null,s=!1,c;o=r.subscribe(n.createOperatorSubscriber(a,void 0,void 0,function(n){c=t.innerFrom(e(n,i(e)(r))),o?(o.unsubscribe(),o=null,c.subscribe(a)):s=!0})),s&&(o.unsubscribe(),o=null,c.subscribe(a))})}e.catchError=i})),Vr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.argsArgArrayOrObject=void 0;var t=Array.isArray,n=Object.getPrototypeOf,r=Object.prototype,i=Object.keys;function a(e){if(e.length===1){var n=e[0];if(t(n))return{args:n,keys:null};if(o(n)){var r=i(n);return{args:r.map(function(e){return n[e]}),keys:r}}}return{args:e,keys:null}}e.argsArgArrayOrObject=a;function o(e){return e&&typeof e==`object`&&n(e)===r}})),Hr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observeOn=void 0;var t=Ir(),n=R(),r=V();function i(e,i){return i===void 0&&(i=0),n.operate(function(n,a){n.subscribe(r.createOperatorSubscriber(a,function(n){return t.executeSchedule(a,e,function(){return a.next(n)},i)},function(){return t.executeSchedule(a,e,function(){return a.complete()},i)},function(n){return t.executeSchedule(a,e,function(){return a.error(n)},i)}))})}e.observeOn=i})),Ur=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.subscribeOn=void 0;var t=R();function n(e,n){return n===void 0&&(n=0),t.operate(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}e.subscribeOn=n})),Wr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleObservable=void 0;var t=B(),n=Hr(),r=Ur();function i(e,i){return t.innerFrom(e).pipe(r.subscribeOn(i),n.observeOn(i))}e.scheduleObservable=i})),Gr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.schedulePromise=void 0;var t=B(),n=Hr(),r=Ur();function i(e,i){return t.innerFrom(e).pipe(r.subscribeOn(i),n.observeOn(i))}e.schedulePromise=i})),Kr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleArray=void 0;var t=z();function n(e,n){return new t.Observable(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}e.scheduleArray=n})),qr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleIterable=void 0;var t=z(),n=vr(),r=L(),i=Ir();function a(e,a){return new t.Observable(function(t){var o;return i.executeSchedule(t,a,function(){o=e[n.iterator](),i.executeSchedule(t,a,function(){var e,n,r;try{e=o.next(),n=e.value,r=e.done}catch(e){t.error(e);return}r?t.complete():t.next(n)},0,!0)}),function(){return r.isFunction(o?.return)&&o.return()}})}e.scheduleIterable=a})),Jr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleAsyncIterable=void 0;var t=z(),n=Ir();function r(e,r){if(!e)throw Error(`Iterable cannot be null`);return new t.Observable(function(t){n.executeSchedule(t,r,function(){var i=e[Symbol.asyncIterator]();n.executeSchedule(t,r,function(){i.next().then(function(e){e.done?t.complete():t.next(e.value)})},0,!0)})})}e.scheduleAsyncIterable=r})),Yr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleReadableStreamLike=void 0;var t=Jr(),n=br();function r(e,r){return t.scheduleAsyncIterable(n.readableStreamLikeToAsyncGenerator(e),r)}e.scheduleReadableStreamLike=r})),Xr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduled=void 0;var t=Wr(),n=Gr(),r=Kr(),i=qr(),a=Jr(),o=hr(),s=er(),c=$n(),l=yr(),u=gr(),d=_r(),f=br(),p=Yr();function m(e,m){if(e!=null){if(o.isInteropObservable(e))return t.scheduleObservable(e,m);if(c.isArrayLike(e))return r.scheduleArray(e,m);if(s.isPromise(e))return n.schedulePromise(e,m);if(u.isAsyncIterable(e))return a.scheduleAsyncIterable(e,m);if(l.isIterable(e))return i.scheduleIterable(e,m);if(f.isReadableStreamLike(e))return p.scheduleReadableStreamLike(e,m)}throw d.createInvalidObservableTypeError(e)}e.scheduled=m})),Zr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.from=void 0;var t=Xr(),n=B();function r(e,r){return r?t.scheduled(e,r):n.innerFrom(e)}e.from=r})),Qr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.map=void 0;var t=R(),n=V();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){i.next(e.call(r,t,a++))}))})}e.map=r})),$r=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.mapOneOrManyArgs=void 0;var r=Qr(),i=Array.isArray;function a(e,r){return i(r)?e.apply(void 0,n([],t(r))):e(r)}function o(e){return r.map(function(t){return a(e,t)})}e.mapOneOrManyArgs=o})),ei=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createObject=void 0;function t(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}e.createObject=t})),ti=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var t=z(),n=Vr(),r=Zr(),i=pr(),a=$r(),o=Fr(),s=ei(),c=V(),l=Ir();function u(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=o.popScheduler(e),u=o.popResultSelector(e),f=n.argsArgArrayOrObject(e),p=f.args,m=f.keys;if(p.length===0)return r.from([],l);var h=new t.Observable(d(p,l,m?function(e){return s.createObject(m,e)}:i.identity));return u?h.pipe(a.mapOneOrManyArgs(u)):h}e.combineLatest=u;function d(e,t,n){return n===void 0&&(n=i.identity),function(i){f(t,function(){for(var a=e.length,o=Array(a),s=a,l=a,u=function(a){f(t,function(){var u=r.from(e[a],t),d=!1;u.subscribe(c.createOperatorSubscriber(i,function(e){o[a]=e,d||(d=!0,l--),l||i.next(n(o.slice()))},function(){--s||i.complete()}))},i)},d=0;d<a;d++)u(d)},i)}}e.combineLatestInit=d;function f(e,t,n){e?l.executeSchedule(n,e,t):t()}})),ni=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeInternals=void 0;var t=B(),n=Ir(),r=V();function i(e,i,a,o,s,c,l,u){var d=[],f=0,p=0,m=!1,h=function(){m&&!d.length&&!f&&i.complete()},g=function(e){return f<o?_(e):d.push(e)},_=function(e){c&&i.next(e),f++;var u=!1;t.innerFrom(a(e,p++)).subscribe(r.createOperatorSubscriber(i,function(e){s?.(e),c?g(e):i.next(e)},function(){u=!0},void 0,function(){if(u)try{f--;for(var e=function(){var e=d.shift();l?n.executeSchedule(i,l,function(){return _(e)}):_(e)};d.length&&f<o;)e();h()}catch(e){i.error(e)}}))};return e.subscribe(r.createOperatorSubscriber(i,g,function(){m=!0,h()})),function(){u?.()}}e.mergeInternals=i})),ri=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeMap=void 0;var t=Qr(),n=B(),r=R(),i=ni(),a=L();function o(e,s,c){return c===void 0&&(c=1/0),a.isFunction(s)?o(function(r,i){return t.map(function(e,t){return s(r,e,i,t)})(n.innerFrom(e(r,i)))},c):(typeof s==`number`&&(c=s),r.operate(function(t,n){return i.mergeInternals(t,n,e,c)}))}e.mergeMap=o})),ii=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scanInternals=void 0;var t=V();function n(e,n,r,i,a){return function(o,s){var c=r,l=n,u=0;o.subscribe(t.createOperatorSubscriber(s,function(t){var n=u++;l=c?e(l,t,n):(c=!0,t),i&&s.next(l)},a&&(function(){c&&s.next(l),s.complete()})))}}e.scanInternals=n})),ai=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reduce=void 0;var t=ii(),n=R();function r(e,r){return n.operate(t.scanInternals(e,r,arguments.length>=2,!1,!0))}e.reduce=r})),oi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.toArray=void 0;var t=ai(),n=R(),r=function(e,t){return e.push(t),e};function i(){return n.operate(function(e,n){t.reduce(r,[])(e).subscribe(n)})}e.toArray=i})),si=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.joinAllInternals=void 0;var t=pr(),n=$r(),r=mr(),i=ri(),a=oi();function o(e,o){return r.pipe(a.toArray(),i.mergeMap(function(t){return e(t)}),o?n.mapOneOrManyArgs(o):t.identity)}e.joinAllInternals=o})),ci=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestAll=void 0;var t=ti(),n=si();function r(e){return n.joinAllInternals(t.combineLatest,e)}e.combineLatestAll=r})),li=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineAll=void 0,e.combineAll=ci().combineLatestAll})),ui=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;function n(e){return e.length===1&&t(e[0])?e[0]:e}e.argsOrArgArray=n})),di=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatest=void 0;var r=ti(),i=R(),a=ui(),o=$r(),s=mr(),c=Fr();function l(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];var d=c.popResultSelector(e);return d?s.pipe(l.apply(void 0,n([],t(e))),o.mapOneOrManyArgs(d)):i.operate(function(i,o){r.combineLatestInit(n([i],t(a.argsOrArgArray(e))))(o)})}e.combineLatest=l})),fi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestWith=void 0;var r=di();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.combineLatest.apply(void 0,n([],t(e)))}e.combineLatestWith=i})),pi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeAll=void 0;var t=ri(),n=pr();function r(e){return e===void 0&&(e=1/0),t.mergeMap(n.identity,e)}e.mergeAll=r})),mi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatAll=void 0;var t=pi();function n(){return t.mergeAll(1)}e.concatAll=n})),hi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=void 0;var r=R(),i=mi(),a=Fr(),o=Zr();function s(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var c=a.popScheduler(e);return r.operate(function(r,a){i.concatAll()(o.from(n([r],t(e)),c)).subscribe(a)})}e.concat=s})),gi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatMap=void 0;var t=ri(),n=L();function r(e,r){return n.isFunction(r)?t.mergeMap(e,r,1):t.mergeMap(e,1)}e.concatMap=r})),_i=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatMapTo=void 0;var t=gi(),n=L();function r(e,r){return n.isFunction(r)?t.concatMap(function(){return e},r):t.concatMap(function(){return e})}e.concatMapTo=r})),vi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.concatWith=void 0;var r=hi();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.concat.apply(void 0,n([],t(e)))}e.concatWith=i})),yi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ObjectUnsubscribedError=void 0,e.ObjectUnsubscribedError=tr().createErrorClass(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}})})),bi=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.AnonymousSubject=e.Subject=void 0;var r=z(),i=ir(),a=yi(),o=rr(),s=ur(),c=function(e){t(c,e);function c(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return c.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},c.prototype._throwIfClosed=function(){if(this.closed)throw new a.ObjectUnsubscribedError},c.prototype.next=function(e){var t=this;s.errorContext(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var a=n(t.currentObservers),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}})},c.prototype.error=function(e){var t=this;s.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},c.prototype.complete=function(){var e=this;s.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},c.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(c.prototype,`observed`,{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),c.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},c.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},c.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,s=n.observers;return r||a?i.EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(e),new i.Subscription(function(){t.currentObservers=null,o.arrRemove(s,e)}))},c.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},c.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},c.create=function(e,t){return new l(e,t)},c}(r.Observable);e.Subject=c;var l=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return n.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},n.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},n.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},n.prototype._subscribe=function(e){return this.source?.subscribe(e)??i.EMPTY_SUBSCRIPTION},n}(c);e.AnonymousSubject=l})),xi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fromSubscribable=void 0;var t=z();function n(e){return new t.Observable(function(t){return e.subscribe(t)})}e.fromSubscribable=n})),Si=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.connect=void 0;var t=bi(),n=B(),r=R(),i=xi(),a={connector:function(){return new t.Subject}};function o(e,t){t===void 0&&(t=a);var o=t.connector;return r.operate(function(t,r){var a=o();n.innerFrom(e(i.fromSubscribable(a))).subscribe(r),r.add(t.subscribe(a))})}e.connect=o})),Ci=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.count=void 0;var t=ai();function n(e){return t.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}e.count=n})),wi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounce=void 0;var t=R(),n=cr(),r=V(),i=B();function a(e){return t.operate(function(t,a){var o=!1,s=null,c=null,l=function(){if(c?.unsubscribe(),c=null,o){o=!1;var e=s;s=null,a.next(e)}};t.subscribe(r.createOperatorSubscriber(a,function(t){c?.unsubscribe(),o=!0,s=t,c=r.createOperatorSubscriber(a,l,n.noop),i.innerFrom(e(t)).subscribe(c)},function(){l(),a.complete()},void 0,function(){s=c=null}))})}e.debounce=a})),Ti=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounceTime=void 0;var t=Or(),n=R(),r=V();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.operate(function(t,n){var a=null,o=null,s=null,c=function(){if(a){a.unsubscribe(),a=null;var e=o;o=null,n.next(e)}};function l(){var t=s+e,r=i.now();if(r<t){a=this.schedule(void 0,t-r),n.add(a);return}c()}t.subscribe(r.createOperatorSubscriber(n,function(t){o=t,s=i.now(),a||(a=i.schedule(l,e),n.add(a))},function(){c(),n.complete()},void 0,function(){o=a=null}))})}e.debounceTime=i})),Ei=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultIfEmpty=void 0;var t=R(),n=V();function r(e){return t.operate(function(t,r){var i=!1;t.subscribe(n.createOperatorSubscriber(r,function(e){i=!0,r.next(e)},function(){i||r.next(e),r.complete()}))})}e.defaultIfEmpty=r})),Di=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=void 0;var t=mi(),n=Fr(),r=Zr();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.concatAll()(r.from(e,n.popScheduler(e)))}e.concat=i})),Oi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.empty=e.EMPTY=void 0;var t=z();e.EMPTY=new t.Observable(function(e){return e.complete()});function n(t){return t?r(t):e.EMPTY}e.empty=n;function r(e){return new t.Observable(function(t){return e.schedule(function(){return t.complete()})})}})),ki=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.take=void 0;var t=Oi(),n=R(),r=V();function i(e){return e<=0?function(){return t.EMPTY}:n.operate(function(t,n){var i=0;t.subscribe(r.createOperatorSubscriber(n,function(t){++i<=e&&(n.next(t),e<=i&&n.complete())}))})}e.take=i})),Ai=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ignoreElements=void 0;var t=R(),n=V(),r=cr();function i(){return t.operate(function(e,t){e.subscribe(n.createOperatorSubscriber(t,r.noop))})}e.ignoreElements=i})),ji=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapTo=void 0;var t=Qr();function n(e){return t.map(function(){return e})}e.mapTo=n})),Mi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.delayWhen=void 0;var t=Di(),n=ki(),r=Ai(),i=ji(),a=ri(),o=B();function s(e,c){return c?function(i){return t.concat(c.pipe(n.take(1),r.ignoreElements()),i.pipe(s(e)))}:a.mergeMap(function(t,r){return o.innerFrom(e(t,r)).pipe(n.take(1),i.mapTo(t))})}e.delayWhen=s})),Ni=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.delay=void 0;var t=Or(),n=Mi(),r=jr();function i(e,i){i===void 0&&(i=t.asyncScheduler);var a=r.timer(e,i);return n.delayWhen(function(){return a})}e.delay=i})),Pi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.of=void 0;var t=Fr(),n=Zr();function r(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.popScheduler(e);return n.from(e,i)}e.of=r})),Fi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throwError=void 0;var t=z(),n=L();function r(e,r){var i=n.isFunction(e)?e:function(){return e},a=function(e){return e.error(i())};return new t.Observable(r?function(e){return r.schedule(a,0,e)}:a)}e.throwError=r})),Ii=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=Oi(),n=Pi(),r=Fi(),i=L();(function(e){e.NEXT=`N`,e.ERROR=`E`,e.COMPLETE=`C`})(e.NotificationKind||={}),e.Notification=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e===`N`}return e.prototype.observe=function(e){return a(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,a=r.value,o=r.error;return i===`N`?e?.(a):i===`E`?t?.(o):n?.()},e.prototype.accept=function(e,t,n){return i.isFunction(e?.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,i=e.kind,a=e.value,o=e.error,s=i===`N`?n.of(a):i===`E`?r.throwError(function(){return o}):i===`C`?t.EMPTY:0;if(!s)throw TypeError(`Unexpected notification kind `+i);return s},e.createNext=function(t){return new e(`N`,t)},e.createError=function(t){return new e(`E`,void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e(`C`),e}();function a(e,t){var n,r,i,a=e,o=a.kind,s=a.value,c=a.error;if(typeof o!=`string`)throw TypeError(`Invalid notification, missing "kind"`);o===`N`?(n=t.next)==null||n.call(t,s):o===`E`?(r=t.error)==null||r.call(t,c):(i=t.complete)==null||i.call(t)}e.observeNotification=a})),Li=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dematerialize=void 0;var t=Ii(),n=R(),r=V();function i(){return n.operate(function(e,n){e.subscribe(r.createOperatorSubscriber(n,function(e){return t.observeNotification(e,n)}))})}e.dematerialize=i})),Ri=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinct=void 0;var t=R(),n=V(),r=cr(),i=B();function a(e,a){return t.operate(function(t,o){var s=new Set;t.subscribe(n.createOperatorSubscriber(o,function(t){var n=e?e(t):t;s.has(n)||(s.add(n),o.next(t))})),a&&i.innerFrom(a).subscribe(n.createOperatorSubscriber(o,function(){return s.clear()},r.noop))})}e.distinct=a})),zi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinctUntilChanged=void 0;var t=pr(),n=R(),r=V();function i(e,i){return i===void 0&&(i=t.identity),e??=a,n.operate(function(t,n){var a,o=!0;t.subscribe(r.createOperatorSubscriber(n,function(t){var r=i(t);(o||!e(a,r))&&(o=!1,a=r,n.next(t))}))})}e.distinctUntilChanged=i;function a(e,t){return e===t}})),Bi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinctUntilKeyChanged=void 0;var t=zi();function n(e,n){return t.distinctUntilChanged(function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})}e.distinctUntilKeyChanged=n})),Vi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ArgumentOutOfRangeError=void 0,e.ArgumentOutOfRangeError=tr().createErrorClass(function(e){return function(){e(this),this.name=`ArgumentOutOfRangeError`,this.message=`argument out of range`}})})),Hi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.filter=void 0;var t=R(),n=V();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){return e.call(r,t,a++)&&i.next(t)}))})}e.filter=r})),Ui=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EmptyError=void 0,e.EmptyError=tr().createErrorClass(function(e){return function(){e(this),this.name=`EmptyError`,this.message=`no elements in sequence`}})})),Wi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throwIfEmpty=void 0;var t=Ui(),n=R(),r=V();function i(e){return e===void 0&&(e=a),n.operate(function(t,n){var i=!1;t.subscribe(r.createOperatorSubscriber(n,function(e){i=!0,n.next(e)},function(){return i?n.complete():n.error(e())}))})}e.throwIfEmpty=i;function a(){return new t.EmptyError}})),Gi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.elementAt=void 0;var t=Vi(),n=Hi(),r=Wi(),i=Ei(),a=ki();function o(e,o){if(e<0)throw new t.ArgumentOutOfRangeError;var s=arguments.length>=2;return function(c){return c.pipe(n.filter(function(t,n){return n===e}),a.take(1),s?i.defaultIfEmpty(o):r.throwIfEmpty(function(){return new t.ArgumentOutOfRangeError}))}}e.elementAt=o})),Ki=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.endWith=void 0;var r=Di(),i=Pi();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return function(a){return r.concat(a,i.of.apply(void 0,n([],t(e))))}}e.endWith=a})),qi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.every=void 0;var t=R(),n=V();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(n){e.call(r,n,a++,t)||(i.next(!1),i.complete())},function(){i.next(!0),i.complete()}))})}e.every=r})),Ji=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaustMap=void 0;var t=Qr(),n=B(),r=R(),i=V();function a(e,o){return o?function(r){return r.pipe(a(function(r,i){return n.innerFrom(e(r,i)).pipe(t.map(function(e,t){return o(r,e,i,t)}))}))}:r.operate(function(t,r){var a=0,o=null,s=!1;t.subscribe(i.createOperatorSubscriber(r,function(t){o||(o=i.createOperatorSubscriber(r,void 0,function(){o=null,s&&r.complete()}),n.innerFrom(e(t,a++)).subscribe(o))},function(){s=!0,!o&&r.complete()}))})}e.exhaustMap=a})),Yi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaustAll=void 0;var t=Ji(),n=pr();function r(){return t.exhaustMap(n.identity)}e.exhaustAll=r})),Xi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaust=void 0,e.exhaust=Yi().exhaustAll})),Zi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.expand=void 0;var t=R(),n=ni();function r(e,r,i){return r===void 0&&(r=1/0),r=(r||0)<1?1/0:r,t.operate(function(t,a){return n.mergeInternals(t,a,e,r,void 0,!0,i)})}e.expand=r})),Qi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.finalize=void 0;var t=R();function n(e){return t.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}e.finalize=n})),$i=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createFind=e.find=void 0;var t=R(),n=V();function r(e,n){return t.operate(i(e,n,`value`))}e.find=r;function i(e,t,r){var i=r===`index`;return function(r,a){var o=0;r.subscribe(n.createOperatorSubscriber(a,function(n){var s=o++;e.call(t,n,s,r)&&(a.next(i?s:n),a.complete())},function(){a.next(i?-1:void 0),a.complete()}))}}e.createFind=i})),ea=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.findIndex=void 0;var t=R(),n=$i();function r(e,r){return t.operate(n.createFind(e,r,`index`))}e.findIndex=r})),ta=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.first=void 0;var t=Ui(),n=Hi(),r=ki(),i=Ei(),a=Wi(),o=pr();function s(e,s){var c=arguments.length>=2;return function(l){return l.pipe(e?n.filter(function(t,n){return e(t,n,l)}):o.identity,r.take(1),c?i.defaultIfEmpty(s):a.throwIfEmpty(function(){return new t.EmptyError}))}}e.first=s})),na=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.groupBy=void 0;var t=z(),n=B(),r=bi(),i=R(),a=V();function o(e,o,s,c){return i.operate(function(i,l){var u;!o||typeof o==`function`?u=o:(s=o.duration,u=o.element,c=o.connector);var d=new Map,f=function(e){d.forEach(e),e(l)},p=function(e){return f(function(t){return t.error(e)})},m=0,h=!1,g=new a.OperatorSubscriber(l,function(t){try{var i=e(t),o=d.get(i);if(!o){d.set(i,o=c?c():new r.Subject);var f=_(i,o);if(l.next(f),s){var m=a.createOperatorSubscriber(o,function(){o.complete(),m?.unsubscribe()},void 0,void 0,function(){return d.delete(i)});g.add(n.innerFrom(s(f)).subscribe(m))}}o.next(u?u(t):t)}catch(e){p(e)}},function(){return f(function(e){return e.complete()})},p,function(){return d.clear()},function(){return h=!0,m===0});i.subscribe(g);function _(e,n){var r=new t.Observable(function(e){m++;var t=n.subscribe(e);return function(){t.unsubscribe(),--m===0&&h&&g.unsubscribe()}});return r.key=e,r}})}e.groupBy=o})),ra=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isEmpty=void 0;var t=R(),n=V();function r(){return t.operate(function(e,t){e.subscribe(n.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}e.isEmpty=r})),ia=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.takeLast=void 0;var n=Oi(),r=R(),i=V();function a(e){return e<=0?function(){return n.EMPTY}:r.operate(function(n,r){var a=[];n.subscribe(i.createOperatorSubscriber(r,function(t){a.push(t),e<a.length&&a.shift()},function(){var e,n;try{for(var i=t(a),o=i.next();!o.done;o=i.next()){var s=o.value;r.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}r.complete()},void 0,function(){a=null}))})}e.takeLast=a})),aa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.last=void 0;var t=Ui(),n=Hi(),r=ia(),i=Wi(),a=Ei(),o=pr();function s(e,s){var c=arguments.length>=2;return function(l){return l.pipe(e?n.filter(function(t,n){return e(t,n,l)}):o.identity,r.takeLast(1),c?a.defaultIfEmpty(s):i.throwIfEmpty(function(){return new t.EmptyError}))}}e.last=s})),oa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.materialize=void 0;var t=Ii(),n=R(),r=V();function i(){return n.operate(function(e,n){e.subscribe(r.createOperatorSubscriber(n,function(e){n.next(t.Notification.createNext(e))},function(){n.next(t.Notification.createComplete()),n.complete()},function(e){n.next(t.Notification.createError(e)),n.complete()}))})}e.materialize=i})),sa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.max=void 0;var t=ai(),n=L();function r(e){return t.reduce(n.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}e.max=r})),ca=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;var r=R(),i=pi(),a=Fr(),o=Zr();function s(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var c=a.popScheduler(e),l=a.popNumber(e,1/0);return r.operate(function(r,a){i.mergeAll(l)(o.from(n([r],t(e)),c)).subscribe(a)})}e.merge=s})),la=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flatMap=void 0,e.flatMap=ri().mergeMap})),ua=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeMapTo=void 0;var t=ri(),n=L();function r(e,r,i){return i===void 0&&(i=1/0),n.isFunction(r)?t.mergeMap(function(){return e},r,i):(typeof r==`number`&&(i=r),t.mergeMap(function(){return e},i))}e.mergeMapTo=r})),da=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeScan=void 0;var t=R(),n=ni();function r(e,r,i){return i===void 0&&(i=1/0),t.operate(function(t,a){var o=r;return n.mergeInternals(t,a,function(t,n){return e(o,t,n)},i,function(e){o=e},!1,void 0,function(){return o=null})})}e.mergeScan=r})),fa=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeWith=void 0;var r=ca();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.merge.apply(void 0,n([],t(e)))}e.mergeWith=i})),pa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.min=void 0;var t=ai(),n=L();function r(e){return t.reduce(n.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}e.min=r})),ma=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.refCount=void 0;var t=R(),n=V();function r(){return t.operate(function(e,t){var r=null;e._refCount++;var i=n.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var n=e._connection,i=r;r=null,n&&(!i||n===i)&&n.unsubscribe(),t.unsubscribe()});e.subscribe(i),i.closed||(r=e.connect())})}e.refCount=r})),ha=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ConnectableObservable=void 0;var n=z(),r=ir(),i=ma(),a=V(),o=R();e.ConnectableObservable=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,o.hasLift(t)&&(r.lift=t.lift),r}return n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e?.unsubscribe()},n.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new r.Subscription;var n=this.getSubject();t.add(this.source.subscribe(a.createOperatorSubscriber(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=r.Subscription.EMPTY)}return t},n.prototype.refCount=function(){return i.refCount()(this)},n}(n.Observable)})),ga=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.multicast=void 0;var t=ha(),n=L(),r=Si();function i(e,i){var a=n.isFunction(e)?e:function(){return e};return n.isFunction(i)?r.connect(i,{connector:a}):function(e){return new t.ConnectableObservable(e,a)}}e.multicast=i})),_a=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.onErrorResumeNext=void 0;var t=z(),n=ui(),r=V(),i=cr(),a=B();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=n.argsOrArgArray(e);return new t.Observable(function(e){var t=0,n=function(){if(t<s.length){var o=void 0;try{o=a.innerFrom(s[t++])}catch{n();return}var c=new r.OperatorSubscriber(e,void 0,i.noop,i.noop);o.subscribe(c),c.add(n)}else e.complete()};n()})}e.onErrorResumeNext=o})),va=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.onErrorResumeNext=e.onErrorResumeNextWith=void 0;var r=ui(),i=_a();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];var o=r.argsOrArgArray(e);return function(e){return i.onErrorResumeNext.apply(void 0,n([e],t(o)))}}e.onErrorResumeNextWith=a,e.onErrorResumeNext=a})),ya=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pairwise=void 0;var t=R(),n=V();function r(){return t.operate(function(e,t){var r,i=!1;e.subscribe(n.createOperatorSubscriber(t,function(e){var n=r;r=e,i&&t.next([n,e]),i=!0}))})}e.pairwise=r})),ba=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.not=void 0;function t(e,t){return function(n,r){return!e.call(t,n,r)}}e.not=t})),xa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.partition=void 0;var t=ba(),n=Hi();function r(e,r){return function(i){return[n.filter(e,r)(i),n.filter(t.not(e,r))(i)]}}e.partition=r})),Sa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluck=void 0;var t=Qr();function n(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length;if(r===0)throw Error(`list of properties cannot be empty.`);return t.map(function(t){for(var n=t,i=0;i<r;i++){var a=n?.[e[i]];if(a!==void 0)n=a;else return}return n})}e.pluck=n})),Ca=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publish=void 0;var t=bi(),n=ga(),r=Si();function i(e){return e?function(t){return r.connect(e)(t)}:function(e){return n.multicast(new t.Subject)(e)}}e.publish=i})),wa=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.BehaviorSubject=void 0,e.BehaviorSubject=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(n.prototype,`value`,{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(bi().Subject)})),Ta=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishBehavior=void 0;var t=wa(),n=ha();function r(e){return function(r){var i=new t.BehaviorSubject(e);return new n.ConnectableObservable(r,function(){return i})}}e.publishBehavior=r})),Ea=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncSubject=void 0,e.AsyncSubject=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return n.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,a=t.thrownError,o=t.isStopped,s=t._isComplete;n?e.error(a):(o||s)&&(r&&e.next(i),e.complete())},n.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},n.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},n}(bi().Subject)})),Da=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishLast=void 0;var t=Ea(),n=ha();function r(){return function(e){var r=new t.AsyncSubject;return new n.ConnectableObservable(e,function(){return r})}}e.publishLast=r})),Oa=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplaySubject=void 0;var n=bi(),r=Tr();e.ReplaySubject=function(e){t(n,e);function n(t,n,i){t===void 0&&(t=1/0),n===void 0&&(n=1/0),i===void 0&&(i=r.dateTimestampProvider);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=n,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=n===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,n),a}return n.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},n.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a<i.length&&!e.closed;a+=r?1:2)e.next(i[a]);return this._checkFinalizedStatuses(e),t},n.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,c=1;c<r.length&&r[c]<=o;c+=2)s=c;s&&r.splice(0,s+1)}},n}(n.Subject)})),ka=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishReplay=void 0;var t=Oa(),n=ga(),r=L();function i(e,i,a,o){a&&!r.isFunction(a)&&(o=a);var s=r.isFunction(a)?a:void 0;return function(r){return n.multicast(new t.ReplaySubject(e,i,o),s)(r)}}e.publishReplay=i})),Aa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.raceInit=e.race=void 0;var t=z(),n=B(),r=ui(),i=V();function a(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e=r.argsOrArgArray(e),e.length===1?n.innerFrom(e[0]):new t.Observable(o(e))}e.race=a;function o(e){return function(t){for(var r=[],a=function(a){r.push(n.innerFrom(e[a]).subscribe(i.createOperatorSubscriber(t,function(e){if(r){for(var n=0;n<r.length;n++)n!==a&&r[n].unsubscribe();r=null}t.next(e)})))},o=0;r&&!t.closed&&o<e.length;o++)a(o)}}e.raceInit=o})),ja=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.raceWith=void 0;var r=Aa(),i=R(),a=pr();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length?i.operate(function(i,a){r.raceInit(n([i],t(e)))(a)}):a.identity}e.raceWith=o})),Ma=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.race=void 0;var r=ui(),i=ja();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i.raceWith.apply(void 0,n([],t(r.argsOrArgArray(e))))}e.race=a})),Na=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repeat=void 0;var t=Oi(),n=R(),r=V(),i=B(),a=jr();function o(e){var o,s=1/0,c;return e!=null&&(typeof e==`object`?(o=e.count,s=o===void 0?1/0:o,c=e.delay):s=e),s<=0?function(){return t.EMPTY}:n.operate(function(e,t){var n=0,o,l=function(){if(o?.unsubscribe(),o=null,c!=null){var e=typeof c==`number`?a.timer(c):i.innerFrom(c(n)),s=r.createOperatorSubscriber(t,function(){s.unsubscribe(),u()});e.subscribe(s)}else u()},u=function(){var i=!1;o=e.subscribe(r.createOperatorSubscriber(t,void 0,function(){++n<s?o?l():i=!0:t.complete()})),i&&l()};u()})}e.repeat=o})),Pa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repeatWhen=void 0;var t=B(),n=bi(),r=R(),i=V();function a(e){return r.operate(function(r,a){var o,s=!1,c,l=!1,u=!1,d=function(){return u&&l&&(a.complete(),!0)},f=function(){return c||(c=new n.Subject,t.innerFrom(e(c)).subscribe(i.createOperatorSubscriber(a,function(){o?p():s=!0},function(){l=!0,d()}))),c},p=function(){u=!1,o=r.subscribe(i.createOperatorSubscriber(a,void 0,function(){u=!0,!d()&&f().next()})),s&&(o.unsubscribe(),o=null,s=!1,p())};p()})}e.repeatWhen=a})),Fa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.retry=void 0;var t=R(),n=V(),r=pr(),i=jr(),a=B();function o(e){e===void 0&&(e=1/0);var o=e&&typeof e==`object`?e:{count:e},s=o.count,c=s===void 0?1/0:s,l=o.delay,u=o.resetOnSuccess,d=u===void 0?!1:u;return c<=0?r.identity:t.operate(function(e,t){var r=0,o,s=function(){var u=!1;o=e.subscribe(n.createOperatorSubscriber(t,function(e){d&&(r=0),t.next(e)},void 0,function(e){if(r++<c){var d=function(){o?(o.unsubscribe(),o=null,s()):u=!0};if(l!=null){var f=typeof l==`number`?i.timer(l):a.innerFrom(l(e,r)),p=n.createOperatorSubscriber(t,function(){p.unsubscribe(),d()},function(){t.complete()});f.subscribe(p)}else d()}else t.error(e)})),u&&(o.unsubscribe(),o=null,s())};s()})}e.retry=o})),Ia=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.retryWhen=void 0;var t=B(),n=bi(),r=R(),i=V();function a(e){return r.operate(function(r,a){var o,s=!1,c,l=function(){o=r.subscribe(i.createOperatorSubscriber(a,void 0,void 0,function(r){c||(c=new n.Subject,t.innerFrom(e(c)).subscribe(i.createOperatorSubscriber(a,function(){return o?l():s=!0}))),c&&c.next(r)})),s&&(o.unsubscribe(),o=null,s=!1,l())};l()})}e.retryWhen=a})),La=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sample=void 0;var t=B(),n=R(),r=cr(),i=V();function a(e){return n.operate(function(n,a){var o=!1,s=null;n.subscribe(i.createOperatorSubscriber(a,function(e){o=!0,s=e})),t.innerFrom(e).subscribe(i.createOperatorSubscriber(a,function(){if(o){o=!1;var e=s;s=null,a.next(e)}},r.noop))})}e.sample=a})),Ra=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.interval=void 0;var t=Or(),n=jr();function r(e,r){return e===void 0&&(e=0),r===void 0&&(r=t.asyncScheduler),e<0&&(e=0),n.timer(e,e,r)}e.interval=r})),za=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sampleTime=void 0;var t=Or(),n=La(),r=Ra();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.sample(r.interval(e,i))}e.sampleTime=i})),Ba=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scan=void 0;var t=R(),n=ii();function r(e,r){return t.operate(n.scanInternals(e,r,arguments.length>=2,!0))}e.scan=r})),Va=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sequenceEqual=void 0;var t=R(),n=V(),r=B();function i(e,i){return i===void 0&&(i=function(e,t){return e===t}),t.operate(function(t,o){var s=a(),c=a(),l=function(e){o.next(e),o.complete()},u=function(e,t){var r=n.createOperatorSubscriber(o,function(n){var r=t.buffer,a=t.complete;r.length===0?a?l(!1):e.buffer.push(n):!i(n,r.shift())&&l(!1)},function(){e.complete=!0;var n=t.complete,i=t.buffer;n&&l(i.length===0),r?.unsubscribe()});return r};t.subscribe(u(s,c)),r.innerFrom(e).subscribe(u(c,s))})}e.sequenceEqual=i;function a(){return{buffer:[],complete:!1}}})),Ha=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.share=void 0;var r=B(),i=bi(),a=dr(),o=R();function s(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new i.Subject}:t,s=e.resetOnError,l=s===void 0?!0:s,u=e.resetOnComplete,d=u===void 0?!0:u,f=e.resetOnRefCountZero,p=f===void 0?!0:f;return function(e){var t,i,s,u=0,f=!1,m=!1,h=function(){i?.unsubscribe(),i=void 0},g=function(){h(),t=s=void 0,f=m=!1},_=function(){var e=t;g(),e?.unsubscribe()};return o.operate(function(e,o){u++,!m&&!f&&h();var v=s??=n();o.add(function(){u--,u===0&&!m&&!f&&(i=c(_,p))}),v.subscribe(o),!t&&u>0&&(t=new a.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){m=!0,h(),i=c(g,l,e),v.error(e)},complete:function(){f=!0,h(),i=c(g,d),v.complete()}}),r.innerFrom(e).subscribe(t))})(e)}}e.share=s;function c(e,i){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];if(i===!0){e();return}if(i!==!1){var c=new a.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return r.innerFrom(i.apply(void 0,n([],t(o)))).subscribe(c)}}})),Ua=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shareReplay=void 0;var t=Oa(),n=Ha();function r(e,r,i){var a,o,s,c,l=!1;return e&&typeof e==`object`?(a=e.bufferSize,c=a===void 0?1/0:a,o=e.windowTime,r=o===void 0?1/0:o,s=e.refCount,l=s===void 0?!1:s,i=e.scheduler):c=e??1/0,n.share({connector:function(){return new t.ReplaySubject(c,r,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}e.shareReplay=r})),Wa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SequenceError=void 0,e.SequenceError=tr().createErrorClass(function(e){return function(t){e(this),this.name=`SequenceError`,this.message=t}})})),Ga=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotFoundError=void 0,e.NotFoundError=tr().createErrorClass(function(e){return function(t){e(this),this.name=`NotFoundError`,this.message=t}})})),Ka=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.single=void 0;var t=Ui(),n=Wa(),r=Ga(),i=R(),a=V();function o(e){return i.operate(function(i,o){var s=!1,c,l=!1,u=0;i.subscribe(a.createOperatorSubscriber(o,function(t){l=!0,(!e||e(t,u++,i))&&(s&&o.error(new n.SequenceError(`Too many matching values`)),s=!0,c=t)},function(){s?(o.next(c),o.complete()):o.error(l?new r.NotFoundError(`No matching values`):new t.EmptyError)}))})}e.single=o})),qa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skip=void 0;var t=Hi();function n(e){return t.filter(function(t,n){return e<=n})}e.skip=n})),Ja=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipLast=void 0;var t=pr(),n=R(),r=V();function i(e){return e<=0?t.identity:n.operate(function(t,n){var i=Array(e),a=0;return t.subscribe(r.createOperatorSubscriber(n,function(t){var r=a++;if(r<e)i[r]=t;else{var o=r%e,s=i[o];i[o]=t,n.next(s)}})),function(){i=null}})}e.skipLast=i})),Ya=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipUntil=void 0;var t=R(),n=V(),r=B(),i=cr();function a(e){return t.operate(function(t,a){var o=!1,s=n.createOperatorSubscriber(a,function(){s?.unsubscribe(),o=!0},i.noop);r.innerFrom(e).subscribe(s),t.subscribe(n.createOperatorSubscriber(a,function(e){return o&&a.next(e)}))})}e.skipUntil=a})),Xa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipWhile=void 0;var t=R(),n=V();function r(e){return t.operate(function(t,r){var i=!1,a=0;t.subscribe(n.createOperatorSubscriber(r,function(t){return(i||=!e(t,a++))&&r.next(t)}))})}e.skipWhile=r})),Za=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.startWith=void 0;var t=Di(),n=Fr(),r=R();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=n.popScheduler(e);return r.operate(function(n,r){(a?t.concat(e,n,a):t.concat(e,n)).subscribe(r)})}e.startWith=i})),Qa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchMap=void 0;var t=B(),n=R(),r=V();function i(e,i){return n.operate(function(n,a){var o=null,s=0,c=!1,l=function(){return c&&!o&&a.complete()};n.subscribe(r.createOperatorSubscriber(a,function(n){o?.unsubscribe();var c=0,u=s++;t.innerFrom(e(n,u)).subscribe(o=r.createOperatorSubscriber(a,function(e){return a.next(i?i(n,e,u,c++):e)},function(){o=null,l()}))},function(){c=!0,l()}))})}e.switchMap=i})),$a=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchAll=void 0;var t=Qa(),n=pr();function r(){return t.switchMap(n.identity)}e.switchAll=r})),eo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchMapTo=void 0;var t=Qa(),n=L();function r(e,r){return n.isFunction(r)?t.switchMap(function(){return e},r):t.switchMap(function(){return e})}e.switchMapTo=r})),to=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchScan=void 0;var t=Qa(),n=R();function r(e,r){return n.operate(function(n,i){var a=r;return t.switchMap(function(t,n){return e(a,t,n)},function(e,t){return a=t,t})(n).subscribe(i),function(){a=null}})}e.switchScan=r})),no=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.takeUntil=void 0;var t=R(),n=V(),r=B(),i=cr();function a(e){return t.operate(function(t,a){r.innerFrom(e).subscribe(n.createOperatorSubscriber(a,function(){return a.complete()},i.noop)),!a.closed&&t.subscribe(a)})}e.takeUntil=a})),ro=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.takeWhile=void 0;var t=R(),n=V();function r(e,r){return r===void 0&&(r=!1),t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){var n=e(t,a++);(n||r)&&i.next(t),!n&&i.complete()}))})}e.takeWhile=r})),io=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.tap=void 0;var t=L(),n=R(),r=V(),i=pr();function a(e,a,o){var s=t.isFunction(e)||a||o?{next:e,error:a,complete:o}:e;return s?n.operate(function(e,t){var n;(n=s.subscribe)==null||n.call(s);var i=!0;e.subscribe(r.createOperatorSubscriber(t,function(e){var n;(n=s.next)==null||n.call(s,e),t.next(e)},function(){var e;i=!1,(e=s.complete)==null||e.call(s),t.complete()},function(e){var n;i=!1,(n=s.error)==null||n.call(s,e),t.error(e)},function(){var e,t;i&&((e=s.unsubscribe)==null||e.call(s)),(t=s.finalize)==null||t.call(s)}))}):i.identity}e.tap=a})),ao=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throttle=void 0;var t=R(),n=V(),r=B();function i(e,i){return t.operate(function(t,a){var o=i??{},s=o.leading,c=s===void 0?!0:s,l=o.trailing,u=l===void 0?!1:l,d=!1,f=null,p=null,m=!1,h=function(){p?.unsubscribe(),p=null,u&&(v(),m&&a.complete())},g=function(){p=null,m&&a.complete()},_=function(t){return p=r.innerFrom(e(t)).subscribe(n.createOperatorSubscriber(a,h,g))},v=function(){if(d){d=!1;var e=f;f=null,a.next(e),!m&&_(e)}};t.subscribe(n.createOperatorSubscriber(a,function(e){d=!0,f=e,!(p&&!p.closed)&&(c?v():_(e))},function(){m=!0,!(u&&d&&p&&!p.closed)&&a.complete()}))})}e.throttle=i})),oo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throttleTime=void 0;var t=Or(),n=ao(),r=jr();function i(e,i,a){i===void 0&&(i=t.asyncScheduler);var o=r.timer(e,i);return n.throttle(function(){return o},a)}e.throttleTime=i})),so=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TimeInterval=e.timeInterval=void 0;var t=Or(),n=R(),r=V();function i(e){return e===void 0&&(e=t.asyncScheduler),n.operate(function(t,n){var i=e.now();t.subscribe(r.createOperatorSubscriber(n,function(t){var r=e.now(),o=r-i;i=r,n.next(new a(t,o))}))})}e.timeInterval=i;var a=function(){function e(e,t){this.value=e,this.interval=t}return e}();e.TimeInterval=a})),co=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timeout=e.TimeoutError=void 0;var t=Or(),n=Ar(),r=R(),i=B(),a=tr(),o=V(),s=Ir();e.TimeoutError=a.createErrorClass(function(e){return function(t){t===void 0&&(t=null),e(this),this.message=`Timeout has occurred`,this.name=`TimeoutError`,this.info=t}});function c(e,a){var c=n.isValidDate(e)?{first:e}:typeof e==`number`?{each:e}:e,u=c.first,d=c.each,f=c.with,p=f===void 0?l:f,m=c.scheduler,h=m===void 0?a??t.asyncScheduler:m,g=c.meta,_=g===void 0?null:g;if(u==null&&d==null)throw TypeError(`No timeout provided.`);return r.operate(function(e,t){var n,r,a=null,c=0,l=function(e){r=s.executeSchedule(t,h,function(){try{n.unsubscribe(),i.innerFrom(p({meta:_,lastValue:a,seen:c})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(o.createOperatorSubscriber(t,function(e){r?.unsubscribe(),c++,t.next(a=e),d>0&&l(d)},void 0,void 0,function(){r?.closed||r?.unsubscribe(),a=null})),!c&&l(u==null?d:typeof u==`number`?u:+u-h.now())})}e.timeout=c;function l(t){throw new e.TimeoutError(t)}})),lo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timeoutWith=void 0;var t=Or(),n=Ar(),r=co();function i(e,i,a){var o,s,c;if(a??=t.async,n.isValidDate(e)?o=e:typeof e==`number`&&(s=e),i)c=function(){return i};else throw TypeError(`No observable provided to switch to`);if(o==null&&s==null)throw TypeError(`No timeout provided.`);return r.timeout({first:o,each:s,scheduler:a,with:c})}e.timeoutWith=i})),uo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timestamp=void 0;var t=Tr(),n=Qr();function r(e){return e===void 0&&(e=t.dateTimestampProvider),n.map(function(t){return{value:t,timestamp:e.now()}})}e.timestamp=r})),fo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.window=void 0;var t=bi(),n=R(),r=V(),i=cr(),a=B();function o(e){return n.operate(function(n,o){var s=new t.Subject;o.next(s.asObservable());var c=function(e){s.error(e),o.error(e)};return n.subscribe(r.createOperatorSubscriber(o,function(e){return s?.next(e)},function(){s.complete(),o.complete()},c)),a.innerFrom(e).subscribe(r.createOperatorSubscriber(o,function(){s.complete(),o.next(s=new t.Subject)},i.noop,c)),function(){s?.unsubscribe(),s=null}})}e.window=o})),po=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.windowCount=void 0;var n=bi(),r=R(),i=V();function a(e,a){a===void 0&&(a=0);var o=a>0?a:e;return r.operate(function(r,a){var s=[new n.Subject],c=0;a.next(s[0].asObservable()),r.subscribe(i.createOperatorSubscriber(a,function(r){var i,l;try{for(var u=t(s),d=u.next();!d.done;d=u.next())d.value.next(r)}catch(e){i={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(i)throw i.error}}var f=c-e+1;if(f>=0&&f%o===0&&s.shift().complete(),++c%o===0){var p=new n.Subject;s.push(p),a.next(p.asObservable())}},function(){for(;s.length>0;)s.shift().complete();a.complete()},function(e){for(;s.length>0;)s.shift().error(e);a.error(e)},function(){s=null}))})}e.windowCount=a})),mo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.windowTime=void 0;var t=bi(),n=Or(),r=ir(),i=R(),a=V(),o=rr(),s=Fr(),c=Ir();function l(e){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var d=s.popScheduler(l)??n.asyncScheduler,f=l[0]??null,p=l[1]||1/0;return i.operate(function(n,i){var s=[],l=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),o.arrRemove(s,e),l&&m()},m=function(){if(s){var n=new r.Subscription;i.add(n);var a=new t.Subject,o={window:a,subs:n,seen:0};s.push(o),i.next(a.asObservable()),c.executeSchedule(n,d,function(){return u(o)},e)}};f!==null&&f>=0?c.executeSchedule(i,d,m,f,!0):l=!0,m();var h=function(e){return s.slice().forEach(e)},g=function(e){h(function(t){var n=t.window;return e(n)}),e(i),i.unsubscribe()};return n.subscribe(a.createOperatorSubscriber(i,function(e){h(function(t){t.window.next(e),p<=++t.seen&&u(t)})},function(){return g(function(e){return e.complete()})},function(e){return g(function(t){return t.error(e)})})),function(){s=null}})}e.windowTime=l})),ho=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.windowToggle=void 0;var n=bi(),r=ir(),i=R(),a=B(),o=V(),s=cr(),c=rr();function l(e,l){return i.operate(function(i,u){var d=[],f=function(e){for(;0<d.length;)d.shift().error(e);u.error(e)};a.innerFrom(e).subscribe(o.createOperatorSubscriber(u,function(e){var t=new n.Subject;d.push(t);var i=new r.Subscription,p=function(){c.arrRemove(d,t),t.complete(),i.unsubscribe()},m;try{m=a.innerFrom(l(e))}catch(e){f(e);return}u.next(t.asObservable()),i.add(m.subscribe(o.createOperatorSubscriber(u,p,s.noop,f)))},s.noop)),i.subscribe(o.createOperatorSubscriber(u,function(e){var n,r,i=d.slice();try{for(var a=t(i),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},function(){for(;0<d.length;)d.shift().complete();u.complete()},f,function(){for(;0<d.length;)d.shift().unsubscribe()}))})}e.windowToggle=l})),go=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.windowWhen=void 0;var t=bi(),n=R(),r=V(),i=B();function a(e){return n.operate(function(n,a){var o,s,c=function(e){o.error(e),a.error(e)},l=function(){s?.unsubscribe(),o?.complete(),o=new t.Subject,a.next(o.asObservable());var n;try{n=i.innerFrom(e())}catch(e){c(e);return}n.subscribe(s=r.createOperatorSubscriber(a,l,l,c))};l(),n.subscribe(r.createOperatorSubscriber(a,function(e){return o.next(e)},function(){o.complete(),a.complete()},c,function(){s?.unsubscribe(),o=null}))})}e.windowWhen=a})),_o=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.withLatestFrom=void 0;var r=R(),i=V(),a=B(),o=pr(),s=cr(),c=Fr();function l(){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];var u=c.popResultSelector(e);return r.operate(function(r,c){for(var l=e.length,d=Array(l),f=e.map(function(){return!1}),p=!1,m=function(t){a.innerFrom(e[t]).subscribe(i.createOperatorSubscriber(c,function(e){d[t]=e,!p&&!f[t]&&(f[t]=!0,(p=f.every(o.identity))&&(f=null))},s.noop))},h=0;h<l;h++)m(h);r.subscribe(i.createOperatorSubscriber(c,function(e){if(p){var r=n([e],t(d));c.next(u?u.apply(void 0,n([],t(r))):r)}}))})}e.withLatestFrom=l})),vo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zip=void 0;var r=z(),i=B(),a=ui(),o=Oi(),s=V(),c=Fr();function l(){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];var u=c.popResultSelector(e),d=a.argsOrArgArray(e);return d.length?new r.Observable(function(e){var r=d.map(function(){return[]}),a=d.map(function(){return!1});e.add(function(){r=a=null});for(var o=function(o){i.innerFrom(d[o]).subscribe(s.createOperatorSubscriber(e,function(i){if(r[o].push(i),r.every(function(e){return e.length})){var s=r.map(function(e){return e.shift()});e.next(u?u.apply(void 0,n([],t(s))):s),r.some(function(e,t){return!e.length&&a[t]})&&e.complete()}},function(){a[o]=!0,!r[o].length&&e.complete()}))},c=0;!e.closed&&c<d.length;c++)o(c);return function(){r=a=null}}):o.EMPTY}e.zip=l})),yo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zip=void 0;var r=vo(),i=R();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i.operate(function(i,a){r.zip.apply(void 0,n([i],t(e))).subscribe(a)})}e.zip=a})),bo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.zipAll=void 0;var t=vo(),n=si();function r(e){return n.joinAllInternals(t.zip,e)}e.zipAll=r})),xo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zipWith=void 0;var r=yo();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.zip.apply(void 0,n([],t(e)))}e.zipWith=i})),So=s((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=xr();Object.defineProperty(e,`audit`,{enumerable:!0,get:function(){return t.audit}});var n=Mr();Object.defineProperty(e,`auditTime`,{enumerable:!0,get:function(){return n.auditTime}});var r=Nr();Object.defineProperty(e,`buffer`,{enumerable:!0,get:function(){return r.buffer}});var i=Pr();Object.defineProperty(e,`bufferCount`,{enumerable:!0,get:function(){return i.bufferCount}});var a=Lr();Object.defineProperty(e,`bufferTime`,{enumerable:!0,get:function(){return a.bufferTime}});var o=Rr();Object.defineProperty(e,`bufferToggle`,{enumerable:!0,get:function(){return o.bufferToggle}});var s=zr();Object.defineProperty(e,`bufferWhen`,{enumerable:!0,get:function(){return s.bufferWhen}});var c=Br();Object.defineProperty(e,`catchError`,{enumerable:!0,get:function(){return c.catchError}});var l=li();Object.defineProperty(e,`combineAll`,{enumerable:!0,get:function(){return l.combineAll}});var u=ci();Object.defineProperty(e,`combineLatestAll`,{enumerable:!0,get:function(){return u.combineLatestAll}});var d=di();Object.defineProperty(e,`combineLatest`,{enumerable:!0,get:function(){return d.combineLatest}});var f=fi();Object.defineProperty(e,`combineLatestWith`,{enumerable:!0,get:function(){return f.combineLatestWith}});var p=hi();Object.defineProperty(e,`concat`,{enumerable:!0,get:function(){return p.concat}});var m=mi();Object.defineProperty(e,`concatAll`,{enumerable:!0,get:function(){return m.concatAll}});var h=gi();Object.defineProperty(e,`concatMap`,{enumerable:!0,get:function(){return h.concatMap}});var g=_i();Object.defineProperty(e,`concatMapTo`,{enumerable:!0,get:function(){return g.concatMapTo}});var _=vi();Object.defineProperty(e,`concatWith`,{enumerable:!0,get:function(){return _.concatWith}});var v=Si();Object.defineProperty(e,`connect`,{enumerable:!0,get:function(){return v.connect}});var y=Ci();Object.defineProperty(e,`count`,{enumerable:!0,get:function(){return y.count}});var b=wi();Object.defineProperty(e,`debounce`,{enumerable:!0,get:function(){return b.debounce}});var x=Ti();Object.defineProperty(e,`debounceTime`,{enumerable:!0,get:function(){return x.debounceTime}});var S=Ei();Object.defineProperty(e,`defaultIfEmpty`,{enumerable:!0,get:function(){return S.defaultIfEmpty}});var C=Ni();Object.defineProperty(e,`delay`,{enumerable:!0,get:function(){return C.delay}});var w=Mi();Object.defineProperty(e,`delayWhen`,{enumerable:!0,get:function(){return w.delayWhen}});var T=Li();Object.defineProperty(e,`dematerialize`,{enumerable:!0,get:function(){return T.dematerialize}});var E=Ri();Object.defineProperty(e,`distinct`,{enumerable:!0,get:function(){return E.distinct}});var D=zi();Object.defineProperty(e,`distinctUntilChanged`,{enumerable:!0,get:function(){return D.distinctUntilChanged}});var O=Bi();Object.defineProperty(e,`distinctUntilKeyChanged`,{enumerable:!0,get:function(){return O.distinctUntilKeyChanged}});var k=Gi();Object.defineProperty(e,`elementAt`,{enumerable:!0,get:function(){return k.elementAt}});var A=Ki();Object.defineProperty(e,`endWith`,{enumerable:!0,get:function(){return A.endWith}});var ee=qi();Object.defineProperty(e,`every`,{enumerable:!0,get:function(){return ee.every}});var te=Xi();Object.defineProperty(e,`exhaust`,{enumerable:!0,get:function(){return te.exhaust}});var ne=Yi();Object.defineProperty(e,`exhaustAll`,{enumerable:!0,get:function(){return ne.exhaustAll}});var j=Ji();Object.defineProperty(e,`exhaustMap`,{enumerable:!0,get:function(){return j.exhaustMap}});var re=Zi();Object.defineProperty(e,`expand`,{enumerable:!0,get:function(){return re.expand}});var ie=Hi();Object.defineProperty(e,`filter`,{enumerable:!0,get:function(){return ie.filter}});var M=Qi();Object.defineProperty(e,`finalize`,{enumerable:!0,get:function(){return M.finalize}});var ae=$i();Object.defineProperty(e,`find`,{enumerable:!0,get:function(){return ae.find}});var oe=ea();Object.defineProperty(e,`findIndex`,{enumerable:!0,get:function(){return oe.findIndex}});var N=ta();Object.defineProperty(e,`first`,{enumerable:!0,get:function(){return N.first}});var se=na();Object.defineProperty(e,`groupBy`,{enumerable:!0,get:function(){return se.groupBy}});var ce=Ai();Object.defineProperty(e,`ignoreElements`,{enumerable:!0,get:function(){return ce.ignoreElements}});var le=ra();Object.defineProperty(e,`isEmpty`,{enumerable:!0,get:function(){return le.isEmpty}});var ue=aa();Object.defineProperty(e,`last`,{enumerable:!0,get:function(){return ue.last}});var de=Qr();Object.defineProperty(e,`map`,{enumerable:!0,get:function(){return de.map}});var fe=ji();Object.defineProperty(e,`mapTo`,{enumerable:!0,get:function(){return fe.mapTo}});var pe=oa();Object.defineProperty(e,`materialize`,{enumerable:!0,get:function(){return pe.materialize}});var me=sa();Object.defineProperty(e,`max`,{enumerable:!0,get:function(){return me.max}});var he=ca();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return he.merge}});var ge=pi();Object.defineProperty(e,`mergeAll`,{enumerable:!0,get:function(){return ge.mergeAll}});var _e=la();Object.defineProperty(e,`flatMap`,{enumerable:!0,get:function(){return _e.flatMap}});var ve=ri();Object.defineProperty(e,`mergeMap`,{enumerable:!0,get:function(){return ve.mergeMap}});var ye=ua();Object.defineProperty(e,`mergeMapTo`,{enumerable:!0,get:function(){return ye.mergeMapTo}});var be=da();Object.defineProperty(e,`mergeScan`,{enumerable:!0,get:function(){return be.mergeScan}});var xe=fa();Object.defineProperty(e,`mergeWith`,{enumerable:!0,get:function(){return xe.mergeWith}});var Se=pa();Object.defineProperty(e,`min`,{enumerable:!0,get:function(){return Se.min}});var Ce=ga();Object.defineProperty(e,`multicast`,{enumerable:!0,get:function(){return Ce.multicast}});var we=Hr();Object.defineProperty(e,`observeOn`,{enumerable:!0,get:function(){return we.observeOn}});var Te=va();Object.defineProperty(e,`onErrorResumeNext`,{enumerable:!0,get:function(){return Te.onErrorResumeNext}});var Ee=ya();Object.defineProperty(e,`pairwise`,{enumerable:!0,get:function(){return Ee.pairwise}});var De=xa();Object.defineProperty(e,`partition`,{enumerable:!0,get:function(){return De.partition}});var Oe=Sa();Object.defineProperty(e,`pluck`,{enumerable:!0,get:function(){return Oe.pluck}});var ke=Ca();Object.defineProperty(e,`publish`,{enumerable:!0,get:function(){return ke.publish}});var P=Ta();Object.defineProperty(e,`publishBehavior`,{enumerable:!0,get:function(){return P.publishBehavior}});var Ae=Da();Object.defineProperty(e,`publishLast`,{enumerable:!0,get:function(){return Ae.publishLast}});var je=ka();Object.defineProperty(e,`publishReplay`,{enumerable:!0,get:function(){return je.publishReplay}});var Me=Ma();Object.defineProperty(e,`race`,{enumerable:!0,get:function(){return Me.race}});var Ne=ja();Object.defineProperty(e,`raceWith`,{enumerable:!0,get:function(){return Ne.raceWith}});var F=ai();Object.defineProperty(e,`reduce`,{enumerable:!0,get:function(){return F.reduce}});var Pe=Na();Object.defineProperty(e,`repeat`,{enumerable:!0,get:function(){return Pe.repeat}});var Fe=Pa();Object.defineProperty(e,`repeatWhen`,{enumerable:!0,get:function(){return Fe.repeatWhen}});var Ie=Fa();Object.defineProperty(e,`retry`,{enumerable:!0,get:function(){return Ie.retry}});var Le=Ia();Object.defineProperty(e,`retryWhen`,{enumerable:!0,get:function(){return Le.retryWhen}});var Re=ma();Object.defineProperty(e,`refCount`,{enumerable:!0,get:function(){return Re.refCount}});var ze=La();Object.defineProperty(e,`sample`,{enumerable:!0,get:function(){return ze.sample}});var Be=za();Object.defineProperty(e,`sampleTime`,{enumerable:!0,get:function(){return Be.sampleTime}});var Ve=Ba();Object.defineProperty(e,`scan`,{enumerable:!0,get:function(){return Ve.scan}});var He=Va();Object.defineProperty(e,`sequenceEqual`,{enumerable:!0,get:function(){return He.sequenceEqual}});var Ue=Ha();Object.defineProperty(e,`share`,{enumerable:!0,get:function(){return Ue.share}});var We=Ua();Object.defineProperty(e,`shareReplay`,{enumerable:!0,get:function(){return We.shareReplay}});var Ge=Ka();Object.defineProperty(e,`single`,{enumerable:!0,get:function(){return Ge.single}});var Ke=qa();Object.defineProperty(e,`skip`,{enumerable:!0,get:function(){return Ke.skip}});var qe=Ja();Object.defineProperty(e,`skipLast`,{enumerable:!0,get:function(){return qe.skipLast}});var Je=Ya();Object.defineProperty(e,`skipUntil`,{enumerable:!0,get:function(){return Je.skipUntil}});var Ye=Xa();Object.defineProperty(e,`skipWhile`,{enumerable:!0,get:function(){return Ye.skipWhile}});var Xe=Za();Object.defineProperty(e,`startWith`,{enumerable:!0,get:function(){return Xe.startWith}});var Ze=Ur();Object.defineProperty(e,`subscribeOn`,{enumerable:!0,get:function(){return Ze.subscribeOn}});var Qe=$a();Object.defineProperty(e,`switchAll`,{enumerable:!0,get:function(){return Qe.switchAll}});var $e=Qa();Object.defineProperty(e,`switchMap`,{enumerable:!0,get:function(){return $e.switchMap}});var et=eo();Object.defineProperty(e,`switchMapTo`,{enumerable:!0,get:function(){return et.switchMapTo}});var tt=to();Object.defineProperty(e,`switchScan`,{enumerable:!0,get:function(){return tt.switchScan}});var nt=ki();Object.defineProperty(e,`take`,{enumerable:!0,get:function(){return nt.take}});var rt=ia();Object.defineProperty(e,`takeLast`,{enumerable:!0,get:function(){return rt.takeLast}});var it=no();Object.defineProperty(e,`takeUntil`,{enumerable:!0,get:function(){return it.takeUntil}});var at=ro();Object.defineProperty(e,`takeWhile`,{enumerable:!0,get:function(){return at.takeWhile}});var ot=io();Object.defineProperty(e,`tap`,{enumerable:!0,get:function(){return ot.tap}});var st=ao();Object.defineProperty(e,`throttle`,{enumerable:!0,get:function(){return st.throttle}});var ct=oo();Object.defineProperty(e,`throttleTime`,{enumerable:!0,get:function(){return ct.throttleTime}});var lt=Wi();Object.defineProperty(e,`throwIfEmpty`,{enumerable:!0,get:function(){return lt.throwIfEmpty}});var ut=so();Object.defineProperty(e,`timeInterval`,{enumerable:!0,get:function(){return ut.timeInterval}});var dt=co();Object.defineProperty(e,`timeout`,{enumerable:!0,get:function(){return dt.timeout}});var ft=lo();Object.defineProperty(e,`timeoutWith`,{enumerable:!0,get:function(){return ft.timeoutWith}});var pt=uo();Object.defineProperty(e,`timestamp`,{enumerable:!0,get:function(){return pt.timestamp}});var mt=oi();Object.defineProperty(e,`toArray`,{enumerable:!0,get:function(){return mt.toArray}});var ht=fo();Object.defineProperty(e,`window`,{enumerable:!0,get:function(){return ht.window}});var gt=po();Object.defineProperty(e,`windowCount`,{enumerable:!0,get:function(){return gt.windowCount}});var _t=mo();Object.defineProperty(e,`windowTime`,{enumerable:!0,get:function(){return _t.windowTime}});var vt=ho();Object.defineProperty(e,`windowToggle`,{enumerable:!0,get:function(){return vt.windowToggle}});var yt=go();Object.defineProperty(e,`windowWhen`,{enumerable:!0,get:function(){return yt.windowWhen}});var bt=_o();Object.defineProperty(e,`withLatestFrom`,{enumerable:!0,get:function(){return bt.withLatestFrom}});var xt=yo();Object.defineProperty(e,`zip`,{enumerable:!0,get:function(){return xt.zip}});var St=bo();Object.defineProperty(e,`zipAll`,{enumerable:!0,get:function(){return St.zipAll}});var Ct=xo();Object.defineProperty(e,`zipWith`,{enumerable:!0,get:function(){return Ct.zipWith}})})),Co=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CLASS_SERIALIZER_OPTIONS=void 0,e.CLASS_SERIALIZER_OPTIONS=`class_serializer:options`})),wo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ClassSerializerInterceptor=void 0;var t=E(),n=So(),r=fe(),i=dt(),a=Vn(),o=A(),s=Co(),c={},l=`Reflector`,u=class{constructor(e,t={}){this.reflector=e,this.defaultOptions=t,c=t?.transformerPackage??(0,a.loadPackage)(`class-transformer`,`ClassSerializerInterceptor`,()=>Un()),t?.transformerPackage||Un()}intercept(e,t){let r=this.getContextOptions(e),i={...this.defaultOptions,...r};return t.handle().pipe((0,n.map)(e=>this.serialize(e,i)))}serialize(e,t){return!(0,o.isObject)(e)||e instanceof i.StreamableFile?e:Array.isArray(e)?e.map(e=>this.transformToPlain(e,t)):this.transformToPlain(e,t)}transformToPlain(e,t){if(!e)return e;if(!t.type||e instanceof t.type)return c.classToPlain(e,t);let n=c.plainToInstance(t.type,e,t);return c.classToPlain(n,t)}getContextOptions(e){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[e.getHandler(),e.getClass()])}};e.ClassSerializerInterceptor=u,e.ClassSerializerInterceptor=u=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,r.Inject)(l)),t.__param(1,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object,Object])],u)})),To=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializeOptions=void 0;var t=ke(),n=Co();e.SerializeOptions=e=>(0,t.SetMetadata)(n.CLASS_SERIALIZER_OPTIONS,e)})),Eo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(To(),e)})),Do=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Oo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(wo(),e),t.__exportStar(Eo(),e),t.__exportStar(Do(),e)})),ko=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.forwardRef=void 0,e.forwardRef=e=>({forwardRef:e})})),Ao=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(ko(),e)})),H=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;var t=E();p(),t.__exportStar(ke(),e),t.__exportStar(Me(),e),t.__exportStar(tt(),e),t.__exportStar(dt(),e);var n=dn();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,`VERSION_NEUTRAL`,{enumerable:!0,get:function(){return n.VERSION_NEUTRAL}}),t.__exportStar(Sn(),e),t.__exportStar(Qn(),e),t.__exportStar(Oo(),e),t.__exportStar(lt(),e),t.__exportStar(Ao(),e)})),jo=c({browser:()=>qo,default:()=>Jo,description:()=>Po,devDependencies:()=>Go,engines:()=>Ko,exports:()=>Lo,funding:()=>Vo,homepage:()=>Bo,keywords:()=>Ho,license:()=>Wo,main:()=>Fo,name:()=>Mo,readmeFilename:()=>Uo,repository:()=>zo,scripts:()=>Ro,types:()=>Io,version:()=>No}),Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo=o((()=>{Mo=`dotenv`,No=`17.2.3`,Po=`Loads environment variables from .env file`,Fo=`lib/main.js`,Io=`lib/main.d.ts`,Lo={".":{types:`./lib/main.d.ts`,require:`./lib/main.js`,default:`./lib/main.js`},"./config":`./config.js`,"./config.js":`./config.js`,"./lib/env-options":`./lib/env-options.js`,"./lib/env-options.js":`./lib/env-options.js`,"./lib/cli-options":`./lib/cli-options.js`,"./lib/cli-options.js":`./lib/cli-options.js`,"./package.json":`./package.json`},Ro={"dts-check":`tsc --project tests/types/tsconfig.json`,lint:`standard`,pretest:`npm run lint && npm run dts-check`,test:`tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000`,"test:coverage":`tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov`,prerelease:`npm test`,release:`standard-version`},zo={type:`git`,url:`git://github.com/motdotla/dotenv.git`},Bo=`https://github.com/motdotla/dotenv#readme`,Vo=`https://dotenvx.com`,Ho=[`dotenv`,`env`,`.env`,`environment`,`variables`,`config`,`settings`],Uo=`README.md`,Wo=`BSD-2-Clause`,Go={"@types/node":`^18.11.3`,decache:`^4.6.2`,sinon:`^14.0.1`,standard:`^17.0.0`,"standard-version":`^9.5.0`,tap:`^19.2.0`,typescript:`^4.8.4`},Ko={node:`>=12`},qo={fs:!1},Jo={name:Mo,version:No,description:Po,main:Fo,types:Io,exports:Lo,scripts:Ro,repository:zo,homepage:Bo,funding:Vo,keywords:Ho,readmeFilename:Uo,license:Wo,devDependencies:Go,engines:Ko,browser:qo}})),Xo=s(((e,t)=>{var n=require(`fs`),r=require(`path`),i=require(`os`),a=require(`crypto`),o=(Yo(),d(jo).default).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 c(){return s[Math.floor(Math.random()*s.length)]}function l(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function u(){return process.stdout.isTTY}function f(e){return u()?`\x1b[2m${e}\x1b[0m`:e}var p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function m(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
6
|
+
`);let r;for(;(r=p.exec(n))!=null;){let e=r[1],n=r[2]||``;n=n.trim();let i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,`$2`),i===`"`&&(n=n.replace(/\\n/g,`
|
|
7
|
+
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function h(e){e||={};let t=x(e);e.path=t;let n=O.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=y(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=b(n,r[e].trim());a=O.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return O.parse(a)}function g(e){console.error(`[dotenv@${o}][WARN] ${e}`)}function _(e){console.log(`[dotenv@${o}][DEBUG] ${e}`)}function v(e){console.log(`[dotenv@${o}] ${e}`)}function y(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function b(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function x(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=r.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function S(e){return e[0]===`~`?r.join(i.homedir(),e.slice(1)):e}function C(e){let t=l(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=l(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&v(`Loading env from encrypted .env.vault`);let r=O._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),O.populate(i,r,e),{parsed:r}}function w(e){let t=r.resolve(process.cwd(),`.env`),i=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=l(a.DOTENV_CONFIG_DEBUG||e&&e.debug),s=l(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?i=e.encoding:o&&_(`No encoding is specified. UTF-8 is used by default`);let u=[t];if(e&&e.path)if(!Array.isArray(e.path))u=[S(e.path)];else{u=[];for(let t of e.path)u.push(S(t))}let d,p={};for(let t of u)try{let r=O.parse(n.readFileSync(t,{encoding:i}));O.populate(p,r,e)}catch(e){o&&_(`Failed to load ${t} ${e.message}`),d=e}let m=O.populate(a,p,e);if(o=l(a.DOTENV_CONFIG_DEBUG||o),s=l(a.DOTENV_CONFIG_QUIET||s),o||!s){let e=Object.keys(m).length,t=[];for(let e of u)try{let n=r.relative(process.cwd(),e);t.push(n)}catch(t){o&&_(`Failed to load ${e} ${t.message}`),d=t}v(`injecting env (${e}) from ${t.join(`,`)} ${f(`-- tip: ${c()}`)}`)}return d?{parsed:p,error:d}:{parsed:p}}function T(e){if(y(e).length===0)return O.configDotenv(e);let t=x(e);return t?O._configVault(e):(g(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),O.configDotenv(e))}function E(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{let e=a.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function D(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&_(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}var O={configDotenv:w,_configVault:C,_parseVault:h,config:T,decrypt:E,parse:m,populate:D};t.exports.configDotenv=O.configDotenv,t.exports._configVault=O._configVault,t.exports._parseVault=O._parseVault,t.exports.config=O.config,t.exports.decrypt=O.decrypt,t.exports.parse=O.parse,t.exports.populate=O.populate,t.exports=O})),Zo=s(((e,t)=>{function n(e){return e.replace(/\\\$/g,`$`)}function r(e,t,n){let r={...n,...t},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,a=e,o,s=new Set;for(;(o=i.exec(a))!==null;){s.add(a);let[e,t,c]=o,l=t||c,u=l.match(/(:\+|\+|:-|-)/),d=u?u[0]:null,f=l.split(d),p,m,h=f.shift();if([`:+`,`+`].includes(d)?(p=r[h]?f.join(d):``,m=null):(p=f.join(d),m=r[h]),a=m?s.has(m)?a.replace(e,p):a.replace(e,m):a.replace(e,p),a===n[h])break;i.lastIndex=0}return a}function i(e){let t={},i=process.env;e&&e.processEnv!=null&&(i=e.processEnv);for(let a in e.parsed){let o=e.parsed[a];o=i[a]&&i[a]!==o?i[a]:r(o,i,t),e.parsed[a]=n(o),t[a]=n(o)}for(let t in e.parsed)i[t]=e.parsed[t];return e}t.exports.expand=i})),Qo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AS_PROVIDER_METHOD_KEY=e.VALIDATED_ENV_PROPNAME=e.PARTIAL_CONFIGURATION_PROPNAME=e.PARTIAL_CONFIGURATION_KEY=e.VALIDATED_ENV_LOADER=e.CONFIGURATION_LOADER=e.CONFIGURATION_TOKEN=e.CONFIGURATION_SERVICE_TOKEN=void 0,e.CONFIGURATION_SERVICE_TOKEN=Symbol(`CONFIG_SERVICE`),e.CONFIGURATION_TOKEN=`CONFIGURATION_TOKEN`,e.CONFIGURATION_LOADER=`CONFIGURATION_LOADER`,e.VALIDATED_ENV_LOADER=`VALIDATED_ENV_LOADER`,e.PARTIAL_CONFIGURATION_KEY=`PARTIAL_CONFIGURATION_KEY`,e.PARTIAL_CONFIGURATION_PROPNAME=`KEY`,e.VALIDATED_ENV_PROPNAME=`_PROCESS_ENV_VALIDATED`,e.AS_PROVIDER_METHOD_KEY=`asProvider`})),$o=s(((e,t)=>{t.exports=Array.isArray})),es=s(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),ts=s(((e,t)=>{var n=es(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),ns=s(((e,t)=>{t.exports=ts().Symbol})),rs=s(((e,t)=>{var n=ns(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),is=s(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),as=s(((e,t)=>{var n=ns(),r=rs(),i=is(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),os=s(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),ss=s(((e,t)=>{var n=as(),r=os(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),cs=s(((e,t)=>{var n=$o(),r=ss(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),ls=s(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),us=s(((e,t)=>{var n=as(),r=ls(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),ds=s(((e,t)=>{t.exports=ts()[`__core-js_shared__`]})),fs=s(((e,t)=>{var n=ds(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),ps=s(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),ms=s(((e,t)=>{var n=us(),r=fs(),i=ls(),a=ps(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),hs=s(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),gs=s(((e,t)=>{var n=ms(),r=hs();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),_s=s(((e,t)=>{t.exports=gs()(Object,`create`)})),vs=s(((e,t)=>{var n=_s();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),ys=s(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),bs=s(((e,t)=>{var n=_s(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),xs=s(((e,t)=>{var n=_s(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Ss=s(((e,t)=>{var n=_s(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Cs=s(((e,t)=>{var n=vs(),r=ys(),i=bs(),a=xs(),o=Ss();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),ws=s(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ts=s(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Es=s(((e,t)=>{var n=Ts();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Ds=s(((e,t)=>{var n=Es(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Os=s(((e,t)=>{var n=Es();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),ks=s(((e,t)=>{var n=Es();function r(e){return n(this.__data__,e)>-1}t.exports=r})),As=s(((e,t)=>{var n=Es();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),js=s(((e,t)=>{var n=ws(),r=Ds(),i=Os(),a=ks(),o=As();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ms=s(((e,t)=>{t.exports=gs()(ts(),`Map`)})),Ns=s(((e,t)=>{var n=Cs(),r=js(),i=Ms();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Ps=s(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Fs=s(((e,t)=>{var n=Ps();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Is=s(((e,t)=>{var n=Fs();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Ls=s(((e,t)=>{var n=Fs();function r(e){return n(this,e).get(e)}t.exports=r})),Rs=s(((e,t)=>{var n=Fs();function r(e){return n(this,e).has(e)}t.exports=r})),zs=s(((e,t)=>{var n=Fs();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Bs=s(((e,t)=>{var n=Ns(),r=Is(),i=Ls(),a=Rs(),o=zs();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Vs=s(((e,t)=>{var n=Bs(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Hs=s(((e,t)=>{var n=Vs(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Us=s(((e,t)=>{var n=Hs(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Ws=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Gs=s(((e,t)=>{var n=ns(),r=Ws(),i=$o(),a=ss(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Ks=s(((e,t)=>{var n=Gs();function r(e){return e==null?``:n(e)}t.exports=r})),qs=s(((e,t)=>{var n=$o(),r=cs(),i=Us(),a=Ks();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Js=s(((e,t)=>{var n=ss(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Ys=s(((e,t)=>{var n=qs(),r=Js();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),Xs=s(((e,t)=>{var n=Ys();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Zs=s(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){return e!=null&&n.call(e,t)}t.exports=r})),Qs=s(((e,t)=>{var n=as(),r=os(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),$s=s(((e,t)=>{var n=Qs(),r=os(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),ec=s(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),tc=s(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),nc=s(((e,t)=>{var n=qs(),r=$s(),i=$o(),a=ec(),o=tc(),s=Js();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),rc=s(((e,t)=>{var n=Zs(),r=nc();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),ic=s(((e,t)=>{var n=gs();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),ac=s(((e,t)=>{var n=ic();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),oc=s(((e,t)=>{var n=ac(),r=Ts(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),sc=s(((e,t)=>{var n=oc(),r=qs(),i=ec(),a=ls(),o=Js();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),cc=s(((e,t)=>{var n=sc();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),lc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}})),uc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrameProvider=void 0;var r=ir();e.animationFrameProvider={schedule:function(t){var n=requestAnimationFrame,i=cancelAnimationFrame,a=e.animationFrameProvider.delegate;a&&(n=a.requestAnimationFrame,i=a.cancelAnimationFrame);var o=n(function(e){i=void 0,t(e)});return new r.Subscription(function(){return i?.(o)})},requestAnimationFrame:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(e.animationFrameProvider.delegate?.requestAnimationFrame||requestAnimationFrame).apply(void 0,n([],t(r)))},cancelAnimationFrame:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(e.animationFrameProvider.delegate?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,n([],t(r)))},delegate:void 0}})),dc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrames=void 0;var t=z(),n=lc(),r=uc();function i(e){return e?a(e):o}e.animationFrames=i;function a(e){return new t.Observable(function(t){var i=e||n.performanceTimestampProvider,a=i.now(),o=0,s=function(){t.closed||(o=r.animationFrameProvider.requestAnimationFrame(function(n){o=0;var r=i.now();t.next({timestamp:e?r:n,elapsed:r-a}),s()}))};return s(),function(){o&&r.animationFrameProvider.cancelAnimationFrame(o)}})}var o=a()})),fc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTools=e.Immediate=void 0;var t=1,n,r={};function i(e){return e in r?(delete r[e],!0):!1}e.Immediate={setImmediate:function(e){var a=t++;return r[a]=!0,n||=Promise.resolve(),n.then(function(){return i(a)&&e()}),a},clearImmediate:function(e){i(e)}},e.TestTools={pending:function(){return Object.keys(r).length}}})),pc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.immediateProvider=void 0;var r=fc(),i=r.Immediate.setImmediate,a=r.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return(e.immediateProvider.delegate?.setImmediate||i).apply(void 0,n([],t(r)))},clearImmediate:function(t){return(e.immediateProvider.delegate?.clearImmediate||a)(t)},delegate:void 0}})),mc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapAction=void 0;var n=wr(),r=pc();e.AsapAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t._scheduled||=r.immediateProvider.setImmediate(t.flush.bind(t,void 0)))},n.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i==null?this.delay>0:i>0)return e.prototype.recycleAsyncId.call(this,t,n,i);var a=t.actions;n!=null&&a[a.length-1]?.id!==n&&(r.immediateProvider.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},n}(n.AsyncAction)})),hc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapScheduler=void 0,e.AsapScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},n}(Dr().AsyncScheduler)})),gc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.asap=e.asapScheduler=void 0;var t=mc();e.asapScheduler=new(hc()).AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})),_c=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueAction=void 0,e.QueueAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!=null&&r>0||r==null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.flush(this),0)},n}(wr().AsyncAction)})),vc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueScheduler=void 0,e.QueueScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(Dr().AsyncScheduler)})),yc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.queue=e.queueScheduler=void 0;var t=_c();e.queueScheduler=new(vc()).QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})),bc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameAction=void 0;var n=wr(),r=uc();e.AnimationFrameAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t._scheduled||=r.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)}))},n.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i==null?this.delay>0:i>0)return e.prototype.recycleAsyncId.call(this,t,n,i);var a=t.actions;n!=null&&n===t._scheduled&&a[a.length-1]?.id!==n&&(r.animationFrameProvider.cancelAnimationFrame(n),t._scheduled=void 0)},n}(n.AsyncAction)})),xc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameScheduler=void 0,e.AnimationFrameScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this._active=!0;var t;e?t=e.id:(t=this._scheduled,this._scheduled=void 0);var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},n}(Dr().AsyncScheduler)})),Sc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=bc();e.animationFrameScheduler=new(xc()).AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})),Cc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var n=wr(),r=ir();e.VirtualTimeScheduler=function(e){t(n,e);function n(t,n){t===void 0&&(t=i),n===void 0&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return n.prototype.flush=function(){for(var e=this,t=e.actions,n=e.maxFrames,r,i;(i=t[0])&&i.delay<=n&&(t.shift(),this.frame=i.delay,!(r=i.execute(i.state,i.delay))););if(r){for(;i=t.shift();)i.unsubscribe();throw r}},n.frameTimeFactor=10,n}(Dr().AsyncScheduler);var i=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return n.prototype.schedule=function(t,i){if(i===void 0&&(i=0),Number.isFinite(i)){if(!this.id)return e.prototype.schedule.call(this,t,i);this.active=!1;var a=new n(this.scheduler,this.work);return this.add(a),a.schedule(t,i)}else return r.Subscription.EMPTY},n.prototype.requestAsyncId=function(e,t,r){r===void 0&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),1},n.prototype.recycleAsyncId=function(e,t,n){n===void 0&&(n=0)},n.prototype._execute=function(t,n){if(this.active===!0)return e.prototype._execute.call(this,t,n)},n.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},n}(n.AsyncAction);e.VirtualAction=i})),wc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isObservable=void 0;var t=z(),n=L();function r(e){return!!e&&(e instanceof t.Observable||n.isFunction(e.lift)&&n.isFunction(e.subscribe))}e.isObservable=r})),Tc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lastValueFrom=void 0;var t=Ui();function n(e,n){var r=typeof n==`object`;return new Promise(function(i,a){var o=!1,s;e.subscribe({next:function(e){s=e,o=!0},error:a,complete:function(){o?i(s):r?i(n.defaultValue):a(new t.EmptyError)}})})}e.lastValueFrom=n})),Ec=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.firstValueFrom=void 0;var t=Ui(),n=dr();function r(e,r){var i=typeof r==`object`;return new Promise(function(a,o){var s=new n.SafeSubscriber({next:function(e){a(e),s.unsubscribe()},error:o,complete:function(){i?a(r.defaultValue):o(new t.EmptyError)}});e.subscribe(s)})}e.firstValueFrom=r})),Dc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.bindCallbackInternals=void 0;var r=kr(),i=z(),a=Ur(),o=$r(),s=Hr(),c=Ea();function l(e,u,d,f){if(d)if(r.isScheduler(d))f=d;else return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(e,u,f).apply(this,t).pipe(o.mapOneOrManyArgs(d))};return f?function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(e,u).apply(this,t).pipe(a.subscribeOn(f),s.observeOn(f))}:function(){for(var r=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=new c.AsyncSubject,l=!0;return new i.Observable(function(i){var o=s.subscribe(i);if(l){l=!1;var c=!1,d=!1;u.apply(r,n(n([],t(a)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(r!=null){s.error(r);return}}s.next(1<t.length?t:t[0]),d=!0,c&&s.complete()}])),d&&s.complete(),c=!0}return o})}}e.bindCallbackInternals=l})),Oc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bindCallback=void 0;var t=Dc();function n(e,n,r){return t.bindCallbackInternals(!1,e,n,r)}e.bindCallback=n})),kc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bindNodeCallback=void 0;var t=Dc();function n(e,n,r){return t.bindCallbackInternals(!0,e,n,r)}e.bindNodeCallback=n})),Ac=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defer=void 0;var t=z(),n=B();function r(e){return new t.Observable(function(t){n.innerFrom(e()).subscribe(t)})}e.defer=r})),jc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.connectable=void 0;var t=bi(),n=z(),r=Ac(),i={connector:function(){return new t.Subject},resetOnDisconnect:!0};function a(e,t){t===void 0&&(t=i);var a=null,o=t.connector,s=t.resetOnDisconnect,c=s===void 0?!0:s,l=o(),u=new n.Observable(function(e){return l.subscribe(e)});return u.connect=function(){return(!a||a.closed)&&(a=r.defer(function(){return e}).subscribe(l),c&&a.add(function(){return l=o()})),a},u}e.connectable=a})),Mc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.forkJoin=void 0;var t=z(),n=Vr(),r=B(),i=Fr(),a=V(),o=$r(),s=ei();function c(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=i.popResultSelector(e),u=n.argsArgArrayOrObject(e),d=u.args,f=u.keys,p=new t.Observable(function(e){var t=d.length;if(!t){e.complete();return}for(var n=Array(t),i=t,o=t,c=function(t){var c=!1;r.innerFrom(d[t]).subscribe(a.createOperatorSubscriber(e,function(e){c||(c=!0,o--),n[t]=e},function(){return i--},void 0,function(){(!i||!c)&&(o||e.next(f?s.createObject(f,n):n),e.complete())}))},l=0;l<t;l++)c(l)});return l?p.pipe(o.mapOneOrManyArgs(l)):p}e.forkJoin=c})),Nc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,`__esModule`,{value:!0}),e.fromEvent=void 0;var n=B(),r=z(),i=ri(),a=$n(),o=L(),s=$r(),c=[`addListener`,`removeListener`],l=[`addEventListener`,`removeEventListener`],u=[`on`,`off`];function d(e,g,_,v){if(o.isFunction(_)&&(v=_,_=void 0),v)return d(e,g,_).pipe(s.mapOneOrManyArgs(v));var y=t(h(e)?l.map(function(t){return function(n){return e[t](g,n,_)}}):p(e)?c.map(f(e,g)):m(e)?u.map(f(e,g)):[],2),b=y[0],x=y[1];if(!b&&a.isArrayLike(e))return i.mergeMap(function(e){return d(e,g,_)})(n.innerFrom(e));if(!b)throw TypeError(`Invalid event target`);return new r.Observable(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return b(t),function(){return x(t)}})}e.fromEvent=d;function f(e,t){return function(n){return function(r){return e[n](t,r)}}}function p(e){return o.isFunction(e.addListener)&&o.isFunction(e.removeListener)}function m(e){return o.isFunction(e.on)&&o.isFunction(e.off)}function h(e){return o.isFunction(e.addEventListener)&&o.isFunction(e.removeEventListener)}})),Pc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fromEventPattern=void 0;var t=z(),n=L(),r=$r();function i(e,a,o){return o?i(e,a).pipe(r.mapOneOrManyArgs(o)):new t.Observable(function(t){var r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(e.length===1?e[0]:e)},i=e(r);return n.isFunction(a)?function(){return a(r,i)}:void 0})}e.fromEventPattern=i})),Fc=s((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0}),e.generate=void 0;var n=pr(),r=kr(),i=Ac(),a=qr();function o(e,o,s,c,l){var u,d,f,p;arguments.length===1?(u=e,p=u.initialState,o=u.condition,s=u.iterate,d=u.resultSelector,f=d===void 0?n.identity:d,l=u.scheduler):(p=e,!c||r.isScheduler(c)?(f=n.identity,l=c):f=c);function m(){var e;return t(this,function(t){switch(t.label){case 0:e=p,t.label=1;case 1:return!o||o(e)?[4,f(e)]:[3,4];case 2:t.sent(),t.label=3;case 3:return e=s(e),[3,1];case 4:return[2]}})}return i.defer(l?function(){return a.scheduleIterable(m(),l)}:m)}e.generate=o})),Ic=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.iif=void 0;var t=Ac();function n(e,n,r){return t.defer(function(){return e()?n:r})}e.iif=n})),Lc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;var t=pi(),n=B(),r=Oi(),i=Fr(),a=Zr();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=i.popScheduler(e),c=i.popNumber(e,1/0),l=e;return l.length?l.length===1?n.innerFrom(l[0]):t.mergeAll(c)(a.from(l,s)):r.EMPTY}e.merge=o})),Rc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.never=e.NEVER=void 0;var t=z(),n=cr();e.NEVER=new t.Observable(n.noop);function r(){return e.NEVER}e.never=r})),zc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pairs=void 0;var t=Zr();function n(e,n){return t.from(Object.entries(e),n)}e.pairs=n})),Bc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.partition=void 0;var t=ba(),n=Hi(),r=B();function i(e,i,a){return[n.filter(i,a)(r.innerFrom(e)),n.filter(t.not(i,a))(r.innerFrom(e))]}e.partition=i})),Vc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.range=void 0;var t=z(),n=Oi();function r(e,r,i){if(r??(r=e,e=0),r<=0)return n.EMPTY;var a=r+e;return new t.Observable(i?function(t){var n=e;return i.schedule(function(){n<a?(t.next(n++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<a&&!t.closed;)t.next(n++);t.complete()})}e.range=r})),Hc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.using=void 0;var t=z(),n=B(),r=Oi();function i(e,i){return new t.Observable(function(t){var a=e(),o=i(a);return(o?n.innerFrom(o):r.EMPTY).subscribe(t),function(){a&&a.unsubscribe()}})}e.using=i})),Uc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Wc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),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 r=z();Object.defineProperty(e,`Observable`,{enumerable:!0,get:function(){return r.Observable}});var i=ha();Object.defineProperty(e,`ConnectableObservable`,{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=fr();Object.defineProperty(e,`observable`,{enumerable:!0,get:function(){return a.observable}});var o=dc();Object.defineProperty(e,`animationFrames`,{enumerable:!0,get:function(){return o.animationFrames}});var s=bi();Object.defineProperty(e,`Subject`,{enumerable:!0,get:function(){return s.Subject}});var c=wa();Object.defineProperty(e,`BehaviorSubject`,{enumerable:!0,get:function(){return c.BehaviorSubject}});var l=Oa();Object.defineProperty(e,`ReplaySubject`,{enumerable:!0,get:function(){return l.ReplaySubject}});var u=Ea();Object.defineProperty(e,`AsyncSubject`,{enumerable:!0,get:function(){return u.AsyncSubject}});var d=gc();Object.defineProperty(e,`asap`,{enumerable:!0,get:function(){return d.asap}}),Object.defineProperty(e,`asapScheduler`,{enumerable:!0,get:function(){return d.asapScheduler}});var f=Or();Object.defineProperty(e,`async`,{enumerable:!0,get:function(){return f.async}}),Object.defineProperty(e,`asyncScheduler`,{enumerable:!0,get:function(){return f.asyncScheduler}});var p=yc();Object.defineProperty(e,`queue`,{enumerable:!0,get:function(){return p.queue}}),Object.defineProperty(e,`queueScheduler`,{enumerable:!0,get:function(){return p.queueScheduler}});var m=Sc();Object.defineProperty(e,`animationFrame`,{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(e,`animationFrameScheduler`,{enumerable:!0,get:function(){return m.animationFrameScheduler}});var h=Cc();Object.defineProperty(e,`VirtualTimeScheduler`,{enumerable:!0,get:function(){return h.VirtualTimeScheduler}}),Object.defineProperty(e,`VirtualAction`,{enumerable:!0,get:function(){return h.VirtualAction}});var g=Er();Object.defineProperty(e,`Scheduler`,{enumerable:!0,get:function(){return g.Scheduler}});var _=ir();Object.defineProperty(e,`Subscription`,{enumerable:!0,get:function(){return _.Subscription}});var v=dr();Object.defineProperty(e,`Subscriber`,{enumerable:!0,get:function(){return v.Subscriber}});var y=Ii();Object.defineProperty(e,`Notification`,{enumerable:!0,get:function(){return y.Notification}}),Object.defineProperty(e,`NotificationKind`,{enumerable:!0,get:function(){return y.NotificationKind}});var b=mr();Object.defineProperty(e,`pipe`,{enumerable:!0,get:function(){return b.pipe}});var x=cr();Object.defineProperty(e,`noop`,{enumerable:!0,get:function(){return x.noop}});var S=pr();Object.defineProperty(e,`identity`,{enumerable:!0,get:function(){return S.identity}});var C=wc();Object.defineProperty(e,`isObservable`,{enumerable:!0,get:function(){return C.isObservable}});var w=Tc();Object.defineProperty(e,`lastValueFrom`,{enumerable:!0,get:function(){return w.lastValueFrom}});var T=Ec();Object.defineProperty(e,`firstValueFrom`,{enumerable:!0,get:function(){return T.firstValueFrom}});var E=Vi();Object.defineProperty(e,`ArgumentOutOfRangeError`,{enumerable:!0,get:function(){return E.ArgumentOutOfRangeError}});var D=Ui();Object.defineProperty(e,`EmptyError`,{enumerable:!0,get:function(){return D.EmptyError}});var O=Ga();Object.defineProperty(e,`NotFoundError`,{enumerable:!0,get:function(){return O.NotFoundError}});var k=yi();Object.defineProperty(e,`ObjectUnsubscribedError`,{enumerable:!0,get:function(){return k.ObjectUnsubscribedError}});var A=Wa();Object.defineProperty(e,`SequenceError`,{enumerable:!0,get:function(){return A.SequenceError}});var ee=co();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return ee.TimeoutError}});var te=nr();Object.defineProperty(e,`UnsubscriptionError`,{enumerable:!0,get:function(){return te.UnsubscriptionError}});var ne=Oc();Object.defineProperty(e,`bindCallback`,{enumerable:!0,get:function(){return ne.bindCallback}});var j=kc();Object.defineProperty(e,`bindNodeCallback`,{enumerable:!0,get:function(){return j.bindNodeCallback}});var re=ti();Object.defineProperty(e,`combineLatest`,{enumerable:!0,get:function(){return re.combineLatest}});var ie=Di();Object.defineProperty(e,`concat`,{enumerable:!0,get:function(){return ie.concat}});var M=jc();Object.defineProperty(e,`connectable`,{enumerable:!0,get:function(){return M.connectable}});var ae=Ac();Object.defineProperty(e,`defer`,{enumerable:!0,get:function(){return ae.defer}});var oe=Oi();Object.defineProperty(e,`empty`,{enumerable:!0,get:function(){return oe.empty}});var N=Mc();Object.defineProperty(e,`forkJoin`,{enumerable:!0,get:function(){return N.forkJoin}});var se=Zr();Object.defineProperty(e,`from`,{enumerable:!0,get:function(){return se.from}});var ce=Nc();Object.defineProperty(e,`fromEvent`,{enumerable:!0,get:function(){return ce.fromEvent}});var le=Pc();Object.defineProperty(e,`fromEventPattern`,{enumerable:!0,get:function(){return le.fromEventPattern}});var ue=Fc();Object.defineProperty(e,`generate`,{enumerable:!0,get:function(){return ue.generate}});var de=Ic();Object.defineProperty(e,`iif`,{enumerable:!0,get:function(){return de.iif}});var fe=Ra();Object.defineProperty(e,`interval`,{enumerable:!0,get:function(){return fe.interval}});var pe=Lc();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return pe.merge}});var me=Rc();Object.defineProperty(e,`never`,{enumerable:!0,get:function(){return me.never}});var he=Pi();Object.defineProperty(e,`of`,{enumerable:!0,get:function(){return he.of}});var ge=_a();Object.defineProperty(e,`onErrorResumeNext`,{enumerable:!0,get:function(){return ge.onErrorResumeNext}});var _e=zc();Object.defineProperty(e,`pairs`,{enumerable:!0,get:function(){return _e.pairs}});var ve=Bc();Object.defineProperty(e,`partition`,{enumerable:!0,get:function(){return ve.partition}});var ye=Aa();Object.defineProperty(e,`race`,{enumerable:!0,get:function(){return ye.race}});var be=Vc();Object.defineProperty(e,`range`,{enumerable:!0,get:function(){return be.range}});var xe=Fi();Object.defineProperty(e,`throwError`,{enumerable:!0,get:function(){return xe.throwError}});var Se=jr();Object.defineProperty(e,`timer`,{enumerable:!0,get:function(){return Se.timer}});var Ce=Hc();Object.defineProperty(e,`using`,{enumerable:!0,get:function(){return Ce.using}});var we=vo();Object.defineProperty(e,`zip`,{enumerable:!0,get:function(){return we.zip}});var Te=Xr();Object.defineProperty(e,`scheduled`,{enumerable:!0,get:function(){return Te.scheduled}});var Ee=Oi();Object.defineProperty(e,`EMPTY`,{enumerable:!0,get:function(){return Ee.EMPTY}});var De=Rc();Object.defineProperty(e,`NEVER`,{enumerable:!0,get:function(){return De.NEVER}}),n(Uc(),e);var Oe=ar();Object.defineProperty(e,`config`,{enumerable:!0,get:function(){return Oe.config}});var ke=xr();Object.defineProperty(e,`audit`,{enumerable:!0,get:function(){return ke.audit}});var P=Mr();Object.defineProperty(e,`auditTime`,{enumerable:!0,get:function(){return P.auditTime}});var Ae=Nr();Object.defineProperty(e,`buffer`,{enumerable:!0,get:function(){return Ae.buffer}});var je=Pr();Object.defineProperty(e,`bufferCount`,{enumerable:!0,get:function(){return je.bufferCount}});var Me=Lr();Object.defineProperty(e,`bufferTime`,{enumerable:!0,get:function(){return Me.bufferTime}});var Ne=Rr();Object.defineProperty(e,`bufferToggle`,{enumerable:!0,get:function(){return Ne.bufferToggle}});var F=zr();Object.defineProperty(e,`bufferWhen`,{enumerable:!0,get:function(){return F.bufferWhen}});var Pe=Br();Object.defineProperty(e,`catchError`,{enumerable:!0,get:function(){return Pe.catchError}});var Fe=li();Object.defineProperty(e,`combineAll`,{enumerable:!0,get:function(){return Fe.combineAll}});var Ie=ci();Object.defineProperty(e,`combineLatestAll`,{enumerable:!0,get:function(){return Ie.combineLatestAll}});var Le=fi();Object.defineProperty(e,`combineLatestWith`,{enumerable:!0,get:function(){return Le.combineLatestWith}});var Re=mi();Object.defineProperty(e,`concatAll`,{enumerable:!0,get:function(){return Re.concatAll}});var ze=gi();Object.defineProperty(e,`concatMap`,{enumerable:!0,get:function(){return ze.concatMap}});var Be=_i();Object.defineProperty(e,`concatMapTo`,{enumerable:!0,get:function(){return Be.concatMapTo}});var Ve=vi();Object.defineProperty(e,`concatWith`,{enumerable:!0,get:function(){return Ve.concatWith}});var He=Si();Object.defineProperty(e,`connect`,{enumerable:!0,get:function(){return He.connect}});var Ue=Ci();Object.defineProperty(e,`count`,{enumerable:!0,get:function(){return Ue.count}});var We=wi();Object.defineProperty(e,`debounce`,{enumerable:!0,get:function(){return We.debounce}});var Ge=Ti();Object.defineProperty(e,`debounceTime`,{enumerable:!0,get:function(){return Ge.debounceTime}});var Ke=Ei();Object.defineProperty(e,`defaultIfEmpty`,{enumerable:!0,get:function(){return Ke.defaultIfEmpty}});var qe=Ni();Object.defineProperty(e,`delay`,{enumerable:!0,get:function(){return qe.delay}});var Je=Mi();Object.defineProperty(e,`delayWhen`,{enumerable:!0,get:function(){return Je.delayWhen}});var Ye=Li();Object.defineProperty(e,`dematerialize`,{enumerable:!0,get:function(){return Ye.dematerialize}});var Xe=Ri();Object.defineProperty(e,`distinct`,{enumerable:!0,get:function(){return Xe.distinct}});var Ze=zi();Object.defineProperty(e,`distinctUntilChanged`,{enumerable:!0,get:function(){return Ze.distinctUntilChanged}});var Qe=Bi();Object.defineProperty(e,`distinctUntilKeyChanged`,{enumerable:!0,get:function(){return Qe.distinctUntilKeyChanged}});var $e=Gi();Object.defineProperty(e,`elementAt`,{enumerable:!0,get:function(){return $e.elementAt}});var et=Ki();Object.defineProperty(e,`endWith`,{enumerable:!0,get:function(){return et.endWith}});var tt=qi();Object.defineProperty(e,`every`,{enumerable:!0,get:function(){return tt.every}});var nt=Xi();Object.defineProperty(e,`exhaust`,{enumerable:!0,get:function(){return nt.exhaust}});var rt=Yi();Object.defineProperty(e,`exhaustAll`,{enumerable:!0,get:function(){return rt.exhaustAll}});var it=Ji();Object.defineProperty(e,`exhaustMap`,{enumerable:!0,get:function(){return it.exhaustMap}});var at=Zi();Object.defineProperty(e,`expand`,{enumerable:!0,get:function(){return at.expand}});var ot=Hi();Object.defineProperty(e,`filter`,{enumerable:!0,get:function(){return ot.filter}});var st=Qi();Object.defineProperty(e,`finalize`,{enumerable:!0,get:function(){return st.finalize}});var ct=$i();Object.defineProperty(e,`find`,{enumerable:!0,get:function(){return ct.find}});var lt=ea();Object.defineProperty(e,`findIndex`,{enumerable:!0,get:function(){return lt.findIndex}});var ut=ta();Object.defineProperty(e,`first`,{enumerable:!0,get:function(){return ut.first}});var dt=na();Object.defineProperty(e,`groupBy`,{enumerable:!0,get:function(){return dt.groupBy}});var ft=Ai();Object.defineProperty(e,`ignoreElements`,{enumerable:!0,get:function(){return ft.ignoreElements}});var pt=ra();Object.defineProperty(e,`isEmpty`,{enumerable:!0,get:function(){return pt.isEmpty}});var mt=aa();Object.defineProperty(e,`last`,{enumerable:!0,get:function(){return mt.last}});var ht=Qr();Object.defineProperty(e,`map`,{enumerable:!0,get:function(){return ht.map}});var gt=ji();Object.defineProperty(e,`mapTo`,{enumerable:!0,get:function(){return gt.mapTo}});var _t=oa();Object.defineProperty(e,`materialize`,{enumerable:!0,get:function(){return _t.materialize}});var vt=sa();Object.defineProperty(e,`max`,{enumerable:!0,get:function(){return vt.max}});var yt=pi();Object.defineProperty(e,`mergeAll`,{enumerable:!0,get:function(){return yt.mergeAll}});var bt=la();Object.defineProperty(e,`flatMap`,{enumerable:!0,get:function(){return bt.flatMap}});var xt=ri();Object.defineProperty(e,`mergeMap`,{enumerable:!0,get:function(){return xt.mergeMap}});var St=ua();Object.defineProperty(e,`mergeMapTo`,{enumerable:!0,get:function(){return St.mergeMapTo}});var Ct=da();Object.defineProperty(e,`mergeScan`,{enumerable:!0,get:function(){return Ct.mergeScan}});var wt=fa();Object.defineProperty(e,`mergeWith`,{enumerable:!0,get:function(){return wt.mergeWith}});var Tt=pa();Object.defineProperty(e,`min`,{enumerable:!0,get:function(){return Tt.min}});var Et=ga();Object.defineProperty(e,`multicast`,{enumerable:!0,get:function(){return Et.multicast}});var Dt=Hr();Object.defineProperty(e,`observeOn`,{enumerable:!0,get:function(){return Dt.observeOn}});var Ot=va();Object.defineProperty(e,`onErrorResumeNextWith`,{enumerable:!0,get:function(){return Ot.onErrorResumeNextWith}});var kt=ya();Object.defineProperty(e,`pairwise`,{enumerable:!0,get:function(){return kt.pairwise}});var At=Sa();Object.defineProperty(e,`pluck`,{enumerable:!0,get:function(){return At.pluck}});var jt=Ca();Object.defineProperty(e,`publish`,{enumerable:!0,get:function(){return jt.publish}});var Mt=Ta();Object.defineProperty(e,`publishBehavior`,{enumerable:!0,get:function(){return Mt.publishBehavior}});var Nt=Da();Object.defineProperty(e,`publishLast`,{enumerable:!0,get:function(){return Nt.publishLast}});var Pt=ka();Object.defineProperty(e,`publishReplay`,{enumerable:!0,get:function(){return Pt.publishReplay}});var Ft=ja();Object.defineProperty(e,`raceWith`,{enumerable:!0,get:function(){return Ft.raceWith}});var It=ai();Object.defineProperty(e,`reduce`,{enumerable:!0,get:function(){return It.reduce}});var Lt=Na();Object.defineProperty(e,`repeat`,{enumerable:!0,get:function(){return Lt.repeat}});var Rt=Pa();Object.defineProperty(e,`repeatWhen`,{enumerable:!0,get:function(){return Rt.repeatWhen}});var zt=Fa();Object.defineProperty(e,`retry`,{enumerable:!0,get:function(){return zt.retry}});var Bt=Ia();Object.defineProperty(e,`retryWhen`,{enumerable:!0,get:function(){return Bt.retryWhen}});var Vt=ma();Object.defineProperty(e,`refCount`,{enumerable:!0,get:function(){return Vt.refCount}});var Ht=La();Object.defineProperty(e,`sample`,{enumerable:!0,get:function(){return Ht.sample}});var Ut=za();Object.defineProperty(e,`sampleTime`,{enumerable:!0,get:function(){return Ut.sampleTime}});var Wt=Ba();Object.defineProperty(e,`scan`,{enumerable:!0,get:function(){return Wt.scan}});var Gt=Va();Object.defineProperty(e,`sequenceEqual`,{enumerable:!0,get:function(){return Gt.sequenceEqual}});var Kt=Ha();Object.defineProperty(e,`share`,{enumerable:!0,get:function(){return Kt.share}});var qt=Ua();Object.defineProperty(e,`shareReplay`,{enumerable:!0,get:function(){return qt.shareReplay}});var Jt=Ka();Object.defineProperty(e,`single`,{enumerable:!0,get:function(){return Jt.single}});var Yt=qa();Object.defineProperty(e,`skip`,{enumerable:!0,get:function(){return Yt.skip}});var Xt=Ja();Object.defineProperty(e,`skipLast`,{enumerable:!0,get:function(){return Xt.skipLast}});var Zt=Ya();Object.defineProperty(e,`skipUntil`,{enumerable:!0,get:function(){return Zt.skipUntil}});var Qt=Xa();Object.defineProperty(e,`skipWhile`,{enumerable:!0,get:function(){return Qt.skipWhile}});var $t=Za();Object.defineProperty(e,`startWith`,{enumerable:!0,get:function(){return $t.startWith}});var en=Ur();Object.defineProperty(e,`subscribeOn`,{enumerable:!0,get:function(){return en.subscribeOn}});var tn=$a();Object.defineProperty(e,`switchAll`,{enumerable:!0,get:function(){return tn.switchAll}});var nn=Qa();Object.defineProperty(e,`switchMap`,{enumerable:!0,get:function(){return nn.switchMap}});var rn=eo();Object.defineProperty(e,`switchMapTo`,{enumerable:!0,get:function(){return rn.switchMapTo}});var an=to();Object.defineProperty(e,`switchScan`,{enumerable:!0,get:function(){return an.switchScan}});var on=ki();Object.defineProperty(e,`take`,{enumerable:!0,get:function(){return on.take}});var sn=ia();Object.defineProperty(e,`takeLast`,{enumerable:!0,get:function(){return sn.takeLast}});var cn=no();Object.defineProperty(e,`takeUntil`,{enumerable:!0,get:function(){return cn.takeUntil}});var ln=ro();Object.defineProperty(e,`takeWhile`,{enumerable:!0,get:function(){return ln.takeWhile}});var un=io();Object.defineProperty(e,`tap`,{enumerable:!0,get:function(){return un.tap}});var dn=ao();Object.defineProperty(e,`throttle`,{enumerable:!0,get:function(){return dn.throttle}});var fn=oo();Object.defineProperty(e,`throttleTime`,{enumerable:!0,get:function(){return fn.throttleTime}});var pn=Wi();Object.defineProperty(e,`throwIfEmpty`,{enumerable:!0,get:function(){return pn.throwIfEmpty}});var mn=so();Object.defineProperty(e,`timeInterval`,{enumerable:!0,get:function(){return mn.timeInterval}});var hn=co();Object.defineProperty(e,`timeout`,{enumerable:!0,get:function(){return hn.timeout}});var gn=lo();Object.defineProperty(e,`timeoutWith`,{enumerable:!0,get:function(){return gn.timeoutWith}});var _n=uo();Object.defineProperty(e,`timestamp`,{enumerable:!0,get:function(){return _n.timestamp}});var vn=oi();Object.defineProperty(e,`toArray`,{enumerable:!0,get:function(){return vn.toArray}});var yn=fo();Object.defineProperty(e,`window`,{enumerable:!0,get:function(){return yn.window}});var bn=po();Object.defineProperty(e,`windowCount`,{enumerable:!0,get:function(){return bn.windowCount}});var xn=mo();Object.defineProperty(e,`windowTime`,{enumerable:!0,get:function(){return xn.windowTime}});var Sn=ho();Object.defineProperty(e,`windowToggle`,{enumerable:!0,get:function(){return Sn.windowToggle}});var Cn=go();Object.defineProperty(e,`windowWhen`,{enumerable:!0,get:function(){return Cn.windowWhen}});var wn=_o();Object.defineProperty(e,`withLatestFrom`,{enumerable:!0,get:function(){return wn.withLatestFrom}});var Tn=bo();Object.defineProperty(e,`zipAll`,{enumerable:!0,get:function(){return Tn.zipAll}});var En=xo();Object.defineProperty(e,`zipWith`,{enumerable:!0,get:function(){return En.zipWith}})})),Gc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),a=e&&e.__metadata||function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},o=e&&e.__param||function(e,t){return function(n,r){t(n,r,e)}},s=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigService=void 0;var c=H(),l=A(),u=i(Xo()),d=s(require(`fs`)),f=s(Xs()),p=s(rc()),m=s(cc()),h=Wc(),g=Qo(),_=class{set isCacheEnabled(e){this._isCacheEnabled=e}get isCacheEnabled(){return this._isCacheEnabled}set skipProcessEnv(e){this._skipProcessEnv=e}get skipProcessEnv(){return this._skipProcessEnv}constructor(e={}){this.internalConfig=e,this.cache={},this._changes$=new h.Subject,this._skipProcessEnv=!1,this._isCacheEnabled=!1,this.envFilePaths=[]}get changes$(){return this._changes$.asObservable()}get(e,t,n){let r=this.getFromInternalConfig(e);if(!(0,l.isUndefined)(r))return r;let i=this.getFromValidatedEnv(e);if(!(0,l.isUndefined)(i))return i;let a=this.isGetOptionsObject(t)&&!n?void 0:t;if(!this._skipProcessEnv){let t=this.getFromProcessEnv(e,a);if(!(0,l.isUndefined)(t))return t}return a}getOrThrow(e,t,n){let r=this.get(e,t,n);if((0,l.isUndefined)(r))throw TypeError(`Configuration key "${e.toString()}" does not exist`);return r}set(e,t){let n=this.get(e);(0,m.default)(this.internalConfig,e,t),typeof e==`string`&&(process.env[e]=String(t),this.updateInterpolatedEnv(e,String(t))),this.isCacheEnabled&&this.setInCacheIfDefined(e,t),this._changes$.next({path:e,oldValue:n,newValue:t})}setEnvFilePaths(e){this.envFilePaths=e}getFromCache(e,t){let n=(0,f.default)(this.cache,e);return(0,l.isUndefined)(n)?t:n}getFromValidatedEnv(e){return(0,f.default)(this.internalConfig[g.VALIDATED_ENV_PROPNAME],e)}getFromProcessEnv(e,t){if(this.isCacheEnabled&&(0,p.default)(this.cache,e)){let n=this.getFromCache(e,t);return(0,l.isUndefined)(n)?t:n}let n=(0,f.default)(process.env,e);return this.setInCacheIfDefined(e,n),n}getFromInternalConfig(e){return(0,f.default)(this.internalConfig,e)}setInCacheIfDefined(e,t){t!==void 0&&(0,m.default)(this.cache,e,t)}isGetOptionsObject(e){return e&&e?.infer&&Object.keys(e).length===1}updateInterpolatedEnv(e,t){let n={};for(let e of this.envFilePaths)d.default.existsSync(e)&&(n=Object.assign(u.parse(d.default.readFileSync(e)),n));let r=RegExp(`\\$\\{?${e}\\}?`,`g`);for(let[e,i]of Object.entries(n))r.test(i)&&(process.env[e]=i.replace(r,t))}};e.ConfigService=_,e.ConfigService=_=r([(0,c.Injectable)(),o(0,(0,c.Optional)()),o(0,(0,c.Inject)(g.CONFIGURATION_TOKEN)),a(`design:paramtypes`,[Object])],_)})),Kc=s((e=>{var t=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigHostModule=void 0;var n=H(),r=Qo(),i=Gc(),a=class{};e.ConfigHostModule=a,e.ConfigHostModule=a=t([(0,n.Global)(),(0,n.Module)({providers:[{provide:r.CONFIGURATION_TOKEN,useFactory:()=>({})},{provide:r.CONFIGURATION_SERVICE_TOKEN,useClass:i.ConfigService}],exports:[r.CONFIGURATION_TOKEN,r.CONFIGURATION_SERVICE_TOKEN]})],a)})),qc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getConfigToken=t;function t(e){return`CONFIGURATION(${e.toString()})`}})),Jc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfigProvider=r;var t=qc(),n=require(`crypto`);function r(e){return{provide:e.KEY||(0,t.getConfigToken)((0,n.randomUUID)()),useFactory:e,inject:[]}}})),Yc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getRegistrationToken=n;var t=Qo();function n(e){return e[t.PARTIAL_CONFIGURATION_KEY]}})),Xc=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeConfigObject=r;var n=t(cc());function r(e,t,r){if(r)return(0,n.default)(e,r,t),t;Object.assign(e,t)}})),Zc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),a;Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigModule=void 0;var o=H(),s=A(),c=i(Xo()),l=Zo(),u=i(require(`fs`)),d=require(`path`),f=Kc(),p=Qo(),m=Gc(),h=Jc(),g=Yc(),_=Xc(),v=a=class{static get envVariablesLoaded(){return this._envVariablesLoaded}static async forRoot(e={}){let t=Array.isArray(e.envFilePath)?e.envFilePath:[e.envFilePath||(0,d.resolve)(process.cwd(),`.env`)],n,r=e.ignoreEnvFile?{}:this.loadEnvFile(t,e);if(!e.ignoreEnvVars&&e.validatePredefined!==!1&&(r={...r,...process.env}),e.validate){let t=e.validate(r);n=t,this.assignVariablesToProcess(t)}else if(e.validationSchema){let t=this.getSchemaValidationOptions(e),{error:i,value:a}=e.validationSchema.validate(r,t);if(i)throw Error(`Config validation error: ${i.message}`);n=a,this.assignVariablesToProcess(a)}else this.assignVariablesToProcess(r);let i=e.load&&e.load.length,o=(await Promise.all(e.load||[])).map(e=>(0,h.createConfigProvider)(e)).filter(e=>e),s=o.map(e=>e.provide),c={provide:m.ConfigService,useFactory:n=>{let r=n;return e.cache&&(r.isCacheEnabled=!0),e.skipProcessEnv&&(r.skipProcessEnv=!0),n.setEnvFilePaths(t),n},inject:[p.CONFIGURATION_SERVICE_TOKEN,...s]};if(o.push(c),n){let e={provide:p.VALIDATED_ENV_LOADER,useFactory:e=>{e[p.VALIDATED_ENV_PROPNAME]=n},inject:[p.CONFIGURATION_TOKEN]};o.push(e)}return this.environmentVariablesLoadedSignal(),{module:a,global:e.isGlobal,providers:i?[...o,{provide:p.CONFIGURATION_LOADER,useFactory:(e,...t)=>{t.forEach((t,n)=>this.mergePartial(e,t,o[n]))},inject:[p.CONFIGURATION_TOKEN,...s]}]:o,exports:[m.ConfigService,...s]}}static forFeature(e){let t=(0,h.createConfigProvider)(e),n={provide:m.ConfigService,useFactory:e=>e,inject:[p.CONFIGURATION_SERVICE_TOKEN,t.provide]};return{module:a,providers:[t,n,{provide:p.CONFIGURATION_LOADER,useFactory:(e,n)=>{this.mergePartial(e,n,t)},inject:[p.CONFIGURATION_TOKEN,t.provide]}],exports:[m.ConfigService,t.provide]}}static loadEnvFile(e,t){let n={};for(let r of e)if(u.existsSync(r)&&(n=Object.assign(c.parse(u.readFileSync(r)),n),t.expandVariables)){let e=typeof t.expandVariables==`object`?t.expandVariables:{};n=(0,l.expand)({...e,parsed:n}).parsed||n}return n}static assignVariablesToProcess(e){(0,s.isObject)(e)&&Object.keys(e).filter(e=>!(e in process.env)).forEach(t=>{let n=e[t];typeof n==`string`?process.env[t]=n:(typeof n==`boolean`||typeof n==`number`)&&(process.env[t]=`${n}`)})}static mergePartial(e,t,n){let r=n.useFactory,i=(0,g.getRegistrationToken)(r);(0,_.mergeConfigObject)(e,t,i)}static getSchemaValidationOptions(e){return e.validationOptions?(e.validationOptions.allowUnknown===void 0&&(e.validationOptions.allowUnknown=!0),e.validationOptions):{abortEarly:!1,allowUnknown:!0}}};e.ConfigModule=v,v._envVariablesLoaded=new Promise(e=>a.environmentVariablesLoadedSignal=e),e.ConfigModule=v=a=r([(0,o.Module)({imports:[f.ConfigHostModule],providers:[{provide:m.ConfigService,useExisting:p.CONFIGURATION_SERVICE_TOKEN}],exports:[f.ConfigHostModule,m.ConfigService]})],v)})),Qc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConditionalModule=void 0;var t=H(),n=Zc(),r=e=>e?.forwardRef?e.forwardRef()?.name:e.module?e.module?.name:e.name;e.ConditionalModule=class e{static async registerWhen(i,a,o){let{timeout:s=5e3,debug:c=!0}=o??{},l=r(i)||i.toString(),u=setTimeout(()=>{throw Error(`Nest was not able to resolve the config variables within ${s} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${l} should be registered or not`)},s);u.unref();let d={module:e,imports:[],exports:[]};if(typeof a==`string`){let e=a;a=t=>t[e]?.toLowerCase()!==`false`}return await n.ConfigModule.envVariablesLoaded,clearTimeout(u),a(process.env)?(d.imports.push(i),d.exports.push(i)):c&&t.Logger.debug(`${a.toString()} evaluated to false. Skipping the registration of ${l}`,e.name),d}}})),$c=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),el=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),tl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),nl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),rl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n($c(),e),n(el(),e),n(tl(),e),n(nl(),e)})),il=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerAs=i;var t=ul(),n=Qo(),r=qc();function i(e,i){let a=(e,t)=>{Object.defineProperty(i,e,{configurable:!1,enumerable:!1,value:t,writable:!1})};return a(n.PARTIAL_CONFIGURATION_KEY,e),a(n.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(e)),a(n.AS_PROVIDER_METHOD_KEY,()=>({imports:[t.ConfigModule.forFeature(i)],useFactory:e=>e,inject:[(0,r.getConfigToken)(e)]})),i}})),al=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(il(),e),n(qc(),e)})),ol=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),sl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),cl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ll=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(ol(),e),n(sl(),e),n(cl(),e)})),ul=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Qc(),e),n(Zc(),e),n(Gc(),e),n(rl(),e),n(al(),e),n(ll(),e)})),dl=s((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,t(ul())}))(),fl=(e,t=process.env)=>{let n=e.safeParse(t);if(!n.success)throw Error(`Invalid environment variables: ${JSON.stringify(n.error.issues)}`);return n.data},pl=[];for(let e=0;e<256;++e)pl.push((e+256).toString(16).slice(1));typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Object.freeze({status:`aborted`});function U(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var ml=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},hl=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},gl={};function _l(e){return e&&Object.assign(gl,e),gl}function vl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function yl(e,t){return typeof t==`bigint`?t.toString():t}function bl(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function xl(e){return e==null}function Sl(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Cl(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var wl=Symbol(`evaluating`);function W(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==wl)return r===void 0&&(r=wl,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Tl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function El(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Dl(e){return JSON.stringify(e)}function Ol(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var kl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Al(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var jl=bl(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ml(e){if(Al(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Al(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Nl(e){return Ml(e)?{...e}:Array.isArray(e)?[...e]:e}var Pl=new Set([`string`,`number`,`symbol`]);function Fl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Il(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw 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 Ll(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Rl={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function zl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Il(e,El(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Tl(this,`shape`,e),e},checks:[]}))}function Bl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Il(e,El(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Tl(this,`shape`,r),r},checks:[]}))}function Vl(e,t){if(!Ml(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Il(e,El(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Tl(this,`shape`,n),n}}))}function Hl(e,t){if(!Ml(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Il(e,El(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Tl(this,`shape`,n),n}}))}function Ul(e,t){return Il(e,El(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Tl(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Wl(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Il(t,El(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Tl(this,`shape`,i),i},checks:[]}))}function Gl(e,t,n){return Il(t,El(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Tl(this,`shape`,i),i}}))}function Kl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ql(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Jl(e){return typeof e==`string`?e:e?.message}function Yl(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Jl(e.inst?._zod.def?.error?.(e))??Jl(t?.error?.(e))??Jl(n.customError?.(e))??Jl(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Xl(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Zl(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ql=(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,yl,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},$l=U(`$ZodError`,Ql),eu=U(`$ZodError`,Ql,{Parent:Error});function tu(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function nu(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var ru=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ml;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Yl(e,a,_l())));throw kl(t,i?.callee),t}return o.value},iu=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Yl(e,a,_l())));throw kl(t,i?.callee),t}return o.value},au=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ml;return a.issues.length?{success:!1,error:new(e??$l)(a.issues.map(e=>Yl(e,i,_l())))}:{success:!0,data:a.value}},ou=au(eu),su=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Yl(e,i,_l())))}:{success:!0,data:a.value}},cu=su(eu),lu=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return ru(e)(t,n,i)},uu=e=>(t,n,r)=>ru(e)(t,n,r),du=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return iu(e)(t,n,i)},fu=e=>async(t,n,r)=>iu(e)(t,n,r),pu=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return au(e)(t,n,i)},mu=e=>(t,n,r)=>au(e)(t,n,r),hu=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return su(e)(t,n,i)},gu=e=>async(t,n,r)=>su(e)(t,n,r),_u=/^[cC][^\s-]{8,}$/,vu=/^[0-9a-z]+$/,yu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bu=/^[0-9a-vA-V]{20}$/,xu=/^[A-Za-z0-9]{27}$/,Su=/^[a-zA-Z0-9_-]{21}$/,Cu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wu=/^([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})$/,Tu=e=>e?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)$/,Eu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Du=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Ou(){return new RegExp(Du,`u`)}var ku=/^(?:(?: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])$/,Au=/^(([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}|:))$/,ju=/^((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])$/,Mu=/^(([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])$/,Nu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pu=/^[A-Za-z0-9_-]*$/,Fu=/^\+[1-9]\d{6,14}$/,Iu=`(?:(?:\\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])))`,Lu=RegExp(`^${Iu}$`);function Ru(e){let 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 zu(e){return RegExp(`^${Ru(e)}$`)}function Bu(e){let t=Ru({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Iu}T(?:${r})$`)}var Vu=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Hu=/^-?\d+$/,Uu=/^-?\d+(?:\.\d+)?$/,Wu=/^[^A-Z]*$/,Gu=/^[^a-z]*$/,Ku=U(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qu={number:`number`,bigint:`bigint`,object:`date`},Ju=U(`$ZodCheckLessThan`,(e,t)=>{Ku.init(e,t);let n=qu[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Yu=U(`$ZodCheckGreaterThan`,(e,t)=>{Ku.init(e,t);let n=qu[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xu=U(`$ZodCheckMultipleOf`,(e,t)=>{Ku.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Cl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Zu=U(`$ZodCheckNumberFormat`,(e,t)=>{Ku.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Rl[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Hu)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Qu=U(`$ZodCheckMaxLength`,(e,t)=>{var n;Ku.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Xl(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$u=U(`$ZodCheckMinLength`,(e,t)=>{var n;Ku.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Xl(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ed=U(`$ZodCheckLengthEquals`,(e,t)=>{var n;Ku.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Xl(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),td=U(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Ku.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),nd=U(`$ZodCheckRegex`,(e,t)=>{td.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rd=U(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Wu,td.init(e,t)}),id=U(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Gu,td.init(e,t)}),ad=U(`$ZodCheckIncludes`,(e,t)=>{Ku.init(e,t);let n=Fl(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),od=U(`$ZodCheckStartsWith`,(e,t)=>{Ku.init(e,t);let n=RegExp(`^${Fl(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),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})}}),sd=U(`$ZodCheckEndsWith`,(e,t)=>{Ku.init(e,t);let n=RegExp(`.*${Fl(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),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})}}),cd=U(`$ZodCheckOverwrite`,(e,t)=>{Ku.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ld=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
8
|
+
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
9
|
+
`))}},ud={major:4,minor:3,patch:6},K=U(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ud;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Kl(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ml;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Kl(e,t))});else{if(e.issues.length===t)continue;r||=Kl(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Kl(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ml;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ml;return o.then(e=>t(e,r,a))}return t(o,r,a)}}W(e,`~standard`,()=>({validate:t=>{try{let n=ou(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return cu(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),dd=U(`$ZodString`,(e,t)=>{K.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Vu(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),q=U(`$ZodStringFormat`,(e,t)=>{td.init(e,t),dd.init(e,t)}),fd=U(`$ZodGUID`,(e,t)=>{t.pattern??=wu,q.init(e,t)}),pd=U(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Tu(e)}else t.pattern??=Tu();q.init(e,t)}),md=U(`$ZodEmail`,(e,t)=>{t.pattern??=Eu,q.init(e,t)}),hd=U(`$ZodURL`,(e,t)=>{q.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),gd=U(`$ZodEmoji`,(e,t)=>{t.pattern??=Ou(),q.init(e,t)}),_d=U(`$ZodNanoID`,(e,t)=>{t.pattern??=Su,q.init(e,t)}),vd=U(`$ZodCUID`,(e,t)=>{t.pattern??=_u,q.init(e,t)}),yd=U(`$ZodCUID2`,(e,t)=>{t.pattern??=vu,q.init(e,t)}),bd=U(`$ZodULID`,(e,t)=>{t.pattern??=yu,q.init(e,t)}),xd=U(`$ZodXID`,(e,t)=>{t.pattern??=bu,q.init(e,t)}),Sd=U(`$ZodKSUID`,(e,t)=>{t.pattern??=xu,q.init(e,t)}),Cd=U(`$ZodISODateTime`,(e,t)=>{t.pattern??=Bu(t),q.init(e,t)}),wd=U(`$ZodISODate`,(e,t)=>{t.pattern??=Lu,q.init(e,t)}),Td=U(`$ZodISOTime`,(e,t)=>{t.pattern??=zu(t),q.init(e,t)}),Ed=U(`$ZodISODuration`,(e,t)=>{t.pattern??=Cu,q.init(e,t)}),Dd=U(`$ZodIPv4`,(e,t)=>{t.pattern??=ku,q.init(e,t),e._zod.bag.format=`ipv4`}),Od=U(`$ZodIPv6`,(e,t)=>{t.pattern??=Au,q.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),kd=U(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ju,q.init(e,t)}),Ad=U(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Mu,q.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function jd(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Md=U(`$ZodBase64`,(e,t)=>{t.pattern??=Nu,q.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{jd(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Nd(e){if(!Pu.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return jd(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Pd=U(`$ZodBase64URL`,(e,t)=>{t.pattern??=Pu,q.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Nd(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Fd=U(`$ZodE164`,(e,t)=>{t.pattern??=Fu,q.init(e,t)});function Id(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ld=U(`$ZodJWT`,(e,t)=>{q.init(e,t),e._zod.check=n=>{Id(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Rd=U(`$ZodNumber`,(e,t)=>{K.init(e,t),e._zod.pattern=e._zod.bag.pattern??Uu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),zd=U(`$ZodNumberFormat`,(e,t)=>{Zu.init(e,t),Rd.init(e,t)}),Bd=U(`$ZodUnknown`,(e,t)=>{K.init(e,t),e._zod.parse=e=>e}),Vd=U(`$ZodNever`,(e,t)=>{K.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Hd(e,t,n){e.issues.length&&t.issues.push(...ql(n,e.issues)),t.value[n]=e.value}var Ud=U(`$ZodArray`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Hd(t,n,e))):Hd(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Wd(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...ql(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Gd(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Ll(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Kd(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Wd(e,n,i,t,u))):Wd(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var qd=U(`$ZodObject`,(e,t)=>{if(K.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=bl(()=>Gd(t));W(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Al,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Wd(n,t,e,s,r))):Wd(i,t,e,s,r)}return i?Kd(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Jd=U(`$ZodObjectJIT`,(e,t)=>{qd.init(e,t);let n=e._zod.parse,r=bl(()=>Gd(t)),i=e=>{let t=new ld([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Dl(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Dl(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
|
10
|
+
if (${n}.issues.length) {
|
|
11
|
+
if (${o} in input) {
|
|
12
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
16
13
|
...iss,
|
|
17
|
-
path: iss.path ? [${
|
|
14
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
18
15
|
})));
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
18
|
|
|
22
|
-
if (${
|
|
23
|
-
if (${
|
|
24
|
-
newResult[${
|
|
19
|
+
if (${n}.value === undefined) {
|
|
20
|
+
if (${o} in input) {
|
|
21
|
+
newResult[${o}] = undefined;
|
|
25
22
|
}
|
|
26
23
|
} else {
|
|
27
|
-
newResult[${
|
|
24
|
+
newResult[${o}] = ${n}.value;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
`):
|
|
31
|
-
if (${
|
|
32
|
-
payload.issues = payload.issues.concat(${
|
|
27
|
+
`):t.write(`
|
|
28
|
+
if (${n}.issues.length) {
|
|
29
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
33
30
|
...iss,
|
|
34
|
-
path: iss.path ? [${
|
|
31
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
35
32
|
})));
|
|
36
33
|
}
|
|
37
34
|
|
|
38
|
-
if (${
|
|
39
|
-
if (${
|
|
40
|
-
newResult[${
|
|
35
|
+
if (${n}.value === undefined) {
|
|
36
|
+
if (${o} in input) {
|
|
37
|
+
newResult[${o}] = undefined;
|
|
41
38
|
}
|
|
42
39
|
} else {
|
|
43
|
-
newResult[${
|
|
40
|
+
newResult[${o}] = ${n}.value;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
`)}d.write("payload.value = newResult;"),d.write("return payload;");const _=d.compile();return(g,y)=>_(l,g,y)};let a;const s=dp,o=!NN.jitless,c=o&&KB.value,u=t.catchall;let p;e._zod.parse=(l,d)=>{p??(p=n.value);const f=l.value;return s(f)?o&&c&&d?.async===!1&&d.jitless!==!0?(a||(a=i(t.shape)),l=a(l,d),u?JN([],f,l,d,p,e):l):r(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l)}});function oP(e,t,r,n){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!ii(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>mn(s,n,vn())))}),t)}const jV=Y("$ZodUnion",(e,t)=>{Xe.init(e,t),Ce(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Ce(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ce(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Ce(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>vy(a.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let s=!1;const o=[];for(const c of t.options){const u=c._zod.run({value:i.value,issues:[]},a);if(u instanceof Promise)o.push(u),s=!0;else{if(u.issues.length===0)return u;o.push(u)}}return s?Promise.all(o).then(c=>oP(c,i,e,a)):oP(o,i,e,a)}}),NV=Y("$ZodIntersection",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{const i=r.value,a=t.left._zod.run({value:i,issues:[]},n),s=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([o,c])=>sP(r,o,c)):sP(r,a,s)}});function hg(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(a=>r.indexOf(a)!==-1),i={...e,...t};for(const a of n){const s=hg(e[a],t[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};i[a]=s.data}return{valid:!0,data:i}}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 i=e[n],a=t[n],s=hg(i,a);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function sP(e,t,r){const n=new Map;let i;for(const o of t.issues)if(o.code==="unrecognized_keys"){i??(i=o);for(const c of o.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(o);for(const o of r.issues)if(o.code==="unrecognized_keys")for(const c of o.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(o);const a=[...n].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(a.length&&i&&e.issues.push({...i,keys:a}),ii(e))return e;const s=hg(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 qV=Y("$ZodEnum",(e,t)=>{Xe.init(e,t);const r=qN(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>YB.has(typeof i)).map(i=>typeof i=="string"?Lp(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:e}),i}}),FV=Y("$ZodTransform",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new jN(e.constructor.name);const i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(r.value=a,r));if(i instanceof Promise)throw new oi;return r.value=i,r}});function cP(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const QN=Y("$ZodOptional",(e,t)=>{Xe.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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>cP(a,r.value)):cP(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),kV=Y("$ZodExactOptional",(e,t)=>{QN.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)}),DV=Y("$ZodNullable",(e,t)=>{Xe.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)}),LV=Y("$ZodDefault",(e,t)=>{Xe.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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>uP(a,t)):uP(i,t)}});function uP(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const UV=Y("$ZodPrefault",(e,t)=>{Xe.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))}),zV=Y("$ZodNonOptional",(e,t)=>{Xe.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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>lP(a,e)):lP(i,e)}});function lP(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 BV=Y("$ZodCatch",(e,t)=>{Xe.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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(s=>mn(s,n,vn()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>mn(a,n,vn()))},input:r.value}),r.issues=[]),r)}}),HV=Y("$ZodPipe",(e,t)=>{Xe.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 a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>jd(s,t.in,n)):jd(a,t.in,n)}const i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>jd(a,t.out,n)):jd(i,t.out,n)}});function jd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const VV=Y("$ZodReadonly",(e,t)=>{Xe.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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(dP):dP(i)}});function dP(e){return e.value=Object.freeze(e.value),e}const GV=Y("$ZodCustom",(e,t)=>{mt.init(e,t),Xe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>pP(a,r,n,e));pP(i,r,n,e)}});function pP(e,t,r,n){if(!e){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(El(i))}}var fP;class WV{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 i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ZV(){return new WV}(fP=globalThis).__zod_globalRegistry??(fP.__zod_globalRegistry=ZV());const gl=globalThis.__zod_globalRegistry;function KV(e,t){return new e({type:"string",...ve(t)})}function YV(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ve(t)})}function hP(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ve(t)})}function XV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ve(t)})}function JV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ve(t)})}function QV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ve(t)})}function $V(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ve(t)})}function eG(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ve(t)})}function tG(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ve(t)})}function rG(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ve(t)})}function nG(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ve(t)})}function iG(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ve(t)})}function aG(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ve(t)})}function oG(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ve(t)})}function sG(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ve(t)})}function cG(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ve(t)})}function uG(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ve(t)})}function lG(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ve(t)})}function dG(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ve(t)})}function pG(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ve(t)})}function fG(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ve(t)})}function hG(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ve(t)})}function vG(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ve(t)})}function mG(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ve(t)})}function _G(e,t){return new e({type:"string",format:"date",check:"string_format",...ve(t)})}function gG(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ve(t)})}function yG(e,t){return new e({type:"string",format:"duration",check:"string_format",...ve(t)})}function bG(e,t){return new e({type:"number",checks:[],...ve(t)})}function EG(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ve(t)})}function xG(e){return new e({type:"unknown"})}function OG(e,t){return new e({type:"never",...ve(t)})}function vP(e,t){return new WN({check:"less_than",...ve(t),value:e,inclusive:!1})}function qm(e,t){return new WN({check:"less_than",...ve(t),value:e,inclusive:!0})}function mP(e,t){return new ZN({check:"greater_than",...ve(t),value:e,inclusive:!1})}function Fm(e,t){return new ZN({check:"greater_than",...ve(t),value:e,inclusive:!0})}function _P(e,t){return new BH({check:"multiple_of",...ve(t),value:e})}function $N(e,t){return new VH({check:"max_length",...ve(t),maximum:e})}function fp(e,t){return new GH({check:"min_length",...ve(t),minimum:e})}function eq(e,t){return new WH({check:"length_equals",...ve(t),length:e})}function wG(e,t){return new ZH({check:"string_format",format:"regex",...ve(t),pattern:e})}function SG(e){return new KH({check:"string_format",format:"lowercase",...ve(e)})}function TG(e){return new YH({check:"string_format",format:"uppercase",...ve(e)})}function PG(e,t){return new XH({check:"string_format",format:"includes",...ve(t),includes:e})}function AG(e,t){return new JH({check:"string_format",format:"starts_with",...ve(t),prefix:e})}function RG(e,t){return new QH({check:"string_format",format:"ends_with",...ve(t),suffix:e})}function mi(e){return new $H({check:"overwrite",tx:e})}function MG(e){return mi(t=>t.normalize(e))}function IG(){return mi(e=>e.trim())}function CG(){return mi(e=>e.toLowerCase())}function jG(){return mi(e=>e.toUpperCase())}function NG(){return mi(e=>ZB(e))}function qG(e,t,r){return new e({type:"array",element:t,...ve(r)})}function FG(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ve(r)})}function kG(e){const t=DG(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(El(n,r.value,t._zod.def));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(El(i))}},e(r.value,r)));return t}function DG(e,t){const r=new mt({check:"custom",...ve(t)});return r._zod.check=e,r}function tq(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??gl,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 nt(e,t,r={path:[],schemaPath:[]}){var n;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);const o=e._zod.toJSONSchema?.();if(o)s.schema=o;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[i.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);d(e,t,l,u)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),nt(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"&&pt(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 rq(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 o=e.metadataRegistry.get(s[0])?.id;if(o){const c=n.get(o);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(o,s[0])}}const i=s=>{const o=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")}#/${o}/${d}`}}if(s[1]===r)return{ref:"#"};const c=`#/${o}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},a=s=>{if(s[1].schema.$ref)return;const o=s[1],{ref:c,defId:u}=i(s);o.def={...o.schema},u&&(o.defId=u);const p=o.schema;for(const l in p)delete p[l];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
47
|
-
|
|
48
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const o=s[1];if(t===s[0]){a(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){a(s);continue}}if(e.metadataRegistry.get(s[0])?.id){a(s);continue}if(o.cycle){a(s);continue}if(o.count>1&&e.reused==="ref"){a(s);continue}}}function nq(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 o=e.seen.get(s);if(o.ref===null)return;const c=o.def??o.schema,u={...c},p=o.ref;if(o.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:o.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$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");i.$id=e.external.uri(s)}Object.assign(i,r.def??r.schema);const a=e.external?.defs??{};for(const s of e.seen.entries()){const o=s[1];o.def&&o.defId&&(a[o.defId]=o.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{const s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:hp(t,"input",e.processors),output:hp(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function pt(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 pt(n.element,r);if(n.type==="set")return pt(n.valueType,r);if(n.type==="lazy")return pt(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 pt(n.innerType,r);if(n.type==="intersection")return pt(n.left,r)||pt(n.right,r);if(n.type==="record"||n.type==="map")return pt(n.keyType,r)||pt(n.valueType,r);if(n.type==="pipe")return pt(n.in,r)||pt(n.out,r);if(n.type==="object"){for(const i in n.shape)if(pt(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(const i of n.options)if(pt(i,r))return!0;return!1}if(n.type==="tuple"){for(const i of n.items)if(pt(i,r))return!0;return!!(n.rest&&pt(n.rest,r))}return!1}const LG=(e,t={})=>r=>{const n=tq({...r,processors:t});return nt(e,n),rq(n,e),nq(n,e)},hp=(e,t,r={})=>n=>{const{libraryOptions:i,target:a}=n??{},s=tq({...i??{},target:a,io:t,processors:r});return nt(e,s),rq(s,e),nq(s,e)},UG={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zG=(e,t,r,n)=>{const i=r;i.type="string";const{minimum:a,maximum:s,format:o,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof s=="number"&&(i.maxLength=s),o&&(i.format=UG[o]??o,i.format===""&&delete i.format,o==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){const p=[...c];p.length===1?i.pattern=p[0].source:p.length>1&&(i.allOf=[...p.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},BG=(e,t,r,n)=>{const i=r,{minimum:a,maximum:s,format:o,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof o=="string"&&o.includes("int")?i.type="integer":i.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=p,i.exclusiveMinimum=!0):i.exclusiveMinimum=p),typeof a=="number"&&(i.minimum=a,typeof p=="number"&&t.target!=="draft-04"&&(p>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof s=="number"&&(i.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof c=="number"&&(i.multipleOf=c)},HG=(e,t,r,n)=>{r.not={}},VG=(e,t,r,n)=>{},GG=(e,t,r,n)=>{const i=e._zod.def,a=qN(i.entries);a.every(s=>typeof s=="number")&&(r.type="number"),a.every(s=>typeof s=="string")&&(r.type="string"),r.enum=a},WG=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ZG=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},KG=(e,t,r,n)=>{const i=r,a=e._zod.def,{minimum:s,maximum:o}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof o=="number"&&(i.maxItems=o),i.type="array",i.items=nt(a.element,t,{...n,path:[...n.path,"items"]})},YG=(e,t,r,n)=>{const i=r,a=e._zod.def;i.type="object",i.properties={};const s=a.shape;for(const u in s)i.properties[u]=nt(s[u],t,{...n,path:[...n.path,"properties",u]});const o=new Set(Object.keys(s)),c=new Set([...o].filter(u=>{const p=a.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=nt(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},XG=(e,t,r,n)=>{const i=e._zod.def,a=i.inclusive===!1,s=i.options.map((o,c)=>nt(o,t,{...n,path:[...n.path,a?"oneOf":"anyOf",c]}));a?r.oneOf=s:r.anyOf=s},JG=(e,t,r,n)=>{const i=e._zod.def,a=nt(i.left,t,{...n,path:[...n.path,"allOf",0]}),s=nt(i.right,t,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,c=[...o(a)?a.allOf:[a],...o(s)?s.allOf:[s]];r.allOf=c},QG=(e,t,r,n)=>{const i=e._zod.def,a=nt(i.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},$G=(e,t,r,n)=>{const i=e._zod.def;nt(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType},e2=(e,t,r,n)=>{const i=e._zod.def;nt(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},t2=(e,t,r,n)=>{const i=e._zod.def;nt(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},r2=(e,t,r,n)=>{const i=e._zod.def;nt(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},n2=(e,t,r,n)=>{const i=e._zod.def,a=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;nt(a,t,n);const s=t.seen.get(e);s.ref=a},i2=(e,t,r,n)=>{const i=e._zod.def;nt(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,r.readOnly=!0},iq=(e,t,r,n)=>{const i=e._zod.def;nt(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType},a2=Y("ZodISODateTime",(e,t)=>{fV.init(e,t),He.init(e,t)});function o2(e){return mG(a2,e)}const s2=Y("ZodISODate",(e,t)=>{hV.init(e,t),He.init(e,t)});function c2(e){return _G(s2,e)}const u2=Y("ZodISOTime",(e,t)=>{vV.init(e,t),He.init(e,t)});function l2(e){return gG(u2,e)}const d2=Y("ZodISODuration",(e,t)=>{mV.init(e,t),He.init(e,t)});function p2(e){return yG(d2,e)}const f2=(e,t)=>{UN.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>oH(e,r)},flatten:{value:r=>aH(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,fg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,fg,2)}},isEmpty:{get(){return e.issues.length===0}}})},St=Y("ZodError",f2,{Parent:Error}),h2=_y(St),v2=gy(St),m2=Up(St),_2=zp(St),g2=uH(St),y2=lH(St),b2=dH(St),E2=pH(St),x2=fH(St),O2=hH(St),w2=vH(St),S2=mH(St),Je=Y("ZodType",(e,t)=>(Xe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:hp(e,"input"),output:hp(e,"output")}}),e.toJSONSchema=LG(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)=>h2(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>m2(e,r,n),e.parseAsync=async(r,n)=>v2(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>_2(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>g2(e,r,n),e.decode=(r,n)=>y2(e,r,n),e.encodeAsync=async(r,n)=>b2(e,r,n),e.decodeAsync=async(r,n)=>E2(e,r,n),e.safeEncode=(r,n)=>x2(e,r,n),e.safeDecode=(r,n)=>O2(e,r,n),e.safeEncodeAsync=async(r,n)=>w2(e,r,n),e.safeDecodeAsync=async(r,n)=>S2(e,r,n),e.refine=(r,n)=>e.check(bW(r,n)),e.superRefine=r=>e.check(EW(r)),e.overwrite=r=>e.check(mi(r)),e.optional=()=>EP(e),e.exactOptional=()=>sW(e),e.nullable=()=>xP(e),e.nullish=()=>EP(xP(e)),e.nonoptional=r=>fW(e,r),e.array=()=>J2(e),e.or=r=>sq([e,r]),e.and=r=>rW(e,r),e.transform=r=>OP(e,aW(r)),e.default=r=>lW(e,r),e.prefault=r=>pW(e,r),e.catch=r=>vW(e,r),e.pipe=r=>OP(e,r),e.readonly=()=>gW(e),e.describe=r=>{const n=e.clone();return gl.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return gl.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return gl.get(e);const n=e.clone();return gl.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),aq=Y("_ZodString",(e,t)=>{yy.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,i,a)=>zG(e,n,i);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(wG(...n)),e.includes=(...n)=>e.check(PG(...n)),e.startsWith=(...n)=>e.check(AG(...n)),e.endsWith=(...n)=>e.check(RG(...n)),e.min=(...n)=>e.check(fp(...n)),e.max=(...n)=>e.check($N(...n)),e.length=(...n)=>e.check(eq(...n)),e.nonempty=(...n)=>e.check(fp(1,...n)),e.lowercase=n=>e.check(SG(n)),e.uppercase=n=>e.check(TG(n)),e.trim=()=>e.check(IG()),e.normalize=(...n)=>e.check(MG(...n)),e.toLowerCase=()=>e.check(CG()),e.toUpperCase=()=>e.check(jG()),e.slugify=()=>e.check(NG())}),T2=Y("ZodString",(e,t)=>{yy.init(e,t),aq.init(e,t),e.email=r=>e.check(YV(A2,r)),e.url=r=>e.check(eG(R2,r)),e.jwt=r=>e.check(vG(V2,r)),e.emoji=r=>e.check(tG(M2,r)),e.guid=r=>e.check(hP(gP,r)),e.uuid=r=>e.check(XV(Nd,r)),e.uuidv4=r=>e.check(JV(Nd,r)),e.uuidv6=r=>e.check(QV(Nd,r)),e.uuidv7=r=>e.check($V(Nd,r)),e.nanoid=r=>e.check(rG(I2,r)),e.guid=r=>e.check(hP(gP,r)),e.cuid=r=>e.check(nG(C2,r)),e.cuid2=r=>e.check(iG(j2,r)),e.ulid=r=>e.check(aG(N2,r)),e.base64=r=>e.check(pG(z2,r)),e.base64url=r=>e.check(fG(B2,r)),e.xid=r=>e.check(oG(q2,r)),e.ksuid=r=>e.check(sG(F2,r)),e.ipv4=r=>e.check(cG(k2,r)),e.ipv6=r=>e.check(uG(D2,r)),e.cidrv4=r=>e.check(lG(L2,r)),e.cidrv6=r=>e.check(dG(U2,r)),e.e164=r=>e.check(hG(H2,r)),e.datetime=r=>e.check(o2(r)),e.date=r=>e.check(c2(r)),e.time=r=>e.check(l2(r)),e.duration=r=>e.check(p2(r))});function P2(e){return KV(T2,e)}const He=Y("ZodStringFormat",(e,t)=>{Ue.init(e,t),aq.init(e,t)}),A2=Y("ZodEmail",(e,t)=>{iV.init(e,t),He.init(e,t)}),gP=Y("ZodGUID",(e,t)=>{rV.init(e,t),He.init(e,t)}),Nd=Y("ZodUUID",(e,t)=>{nV.init(e,t),He.init(e,t)}),R2=Y("ZodURL",(e,t)=>{aV.init(e,t),He.init(e,t)}),M2=Y("ZodEmoji",(e,t)=>{oV.init(e,t),He.init(e,t)}),I2=Y("ZodNanoID",(e,t)=>{sV.init(e,t),He.init(e,t)}),C2=Y("ZodCUID",(e,t)=>{cV.init(e,t),He.init(e,t)}),j2=Y("ZodCUID2",(e,t)=>{uV.init(e,t),He.init(e,t)}),N2=Y("ZodULID",(e,t)=>{lV.init(e,t),He.init(e,t)}),q2=Y("ZodXID",(e,t)=>{dV.init(e,t),He.init(e,t)}),F2=Y("ZodKSUID",(e,t)=>{pV.init(e,t),He.init(e,t)}),k2=Y("ZodIPv4",(e,t)=>{_V.init(e,t),He.init(e,t)}),D2=Y("ZodIPv6",(e,t)=>{gV.init(e,t),He.init(e,t)}),L2=Y("ZodCIDRv4",(e,t)=>{yV.init(e,t),He.init(e,t)}),U2=Y("ZodCIDRv6",(e,t)=>{bV.init(e,t),He.init(e,t)}),z2=Y("ZodBase64",(e,t)=>{EV.init(e,t),He.init(e,t)}),B2=Y("ZodBase64URL",(e,t)=>{OV.init(e,t),He.init(e,t)}),H2=Y("ZodE164",(e,t)=>{wV.init(e,t),He.init(e,t)}),V2=Y("ZodJWT",(e,t)=>{TV.init(e,t),He.init(e,t)}),oq=Y("ZodNumber",(e,t)=>{YN.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,i,a)=>BG(e,n,i),e.gt=(n,i)=>e.check(mP(n,i)),e.gte=(n,i)=>e.check(Fm(n,i)),e.min=(n,i)=>e.check(Fm(n,i)),e.lt=(n,i)=>e.check(vP(n,i)),e.lte=(n,i)=>e.check(qm(n,i)),e.max=(n,i)=>e.check(qm(n,i)),e.int=n=>e.check(yP(n)),e.safe=n=>e.check(yP(n)),e.positive=n=>e.check(mP(0,n)),e.nonnegative=n=>e.check(Fm(0,n)),e.negative=n=>e.check(vP(0,n)),e.nonpositive=n=>e.check(qm(0,n)),e.multipleOf=(n,i)=>e.check(_P(n,i)),e.step=(n,i)=>e.check(_P(n,i)),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 G2(e){return bG(oq,e)}const W2=Y("ZodNumberFormat",(e,t)=>{PV.init(e,t),oq.init(e,t)});function yP(e){return EG(W2,e)}const Z2=Y("ZodUnknown",(e,t)=>{AV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>VG()});function bP(){return xG(Z2)}const K2=Y("ZodNever",(e,t)=>{RV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HG(e,r,n)});function Y2(e){return OG(K2,e)}const X2=Y("ZodArray",(e,t)=>{MV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>KG(e,r,n,i),e.element=t.element,e.min=(r,n)=>e.check(fp(r,n)),e.nonempty=r=>e.check(fp(1,r)),e.max=(r,n)=>e.check($N(r,n)),e.length=(r,n)=>e.check(eq(r,n)),e.unwrap=()=>e.element});function J2(e,t){return qG(X2,e,t)}const Q2=Y("ZodObject",(e,t)=>{CV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>YG(e,r,n,i),Ce(e,"shape",()=>t.shape),e.keyof=()=>nW(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bP()}),e.loose=()=>e.clone({...e._zod.def,catchall:bP()}),e.strict=()=>e.clone({...e._zod.def,catchall:Y2()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>eH(e,r),e.safeExtend=r=>tH(e,r),e.merge=r=>rH(e,r),e.pick=r=>QB(e,r),e.omit=r=>$B(e,r),e.partial=(...r)=>nH(cq,e,r[0]),e.required=(...r)=>iH(uq,e,r[0])});function $2(e,t){const r={type:"object",shape:e??{},...ve(t)};return new Q2(r)}const eW=Y("ZodUnion",(e,t)=>{jV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>XG(e,r,n,i),e.options=t.options});function sq(e,t){return new eW({type:"union",options:e,...ve(t)})}const tW=Y("ZodIntersection",(e,t)=>{NV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>JG(e,r,n,i)});function rW(e,t){return new tW({type:"intersection",left:e,right:t})}const vg=Y("ZodEnum",(e,t)=>{qV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(n,i,a)=>GG(e,n,i),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{const a={};for(const s of n)if(r.has(s))a[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new vg({...t,checks:[],...ve(i),entries:a})},e.exclude=(n,i)=>{const a={...t.entries};for(const s of n)if(r.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new vg({...t,checks:[],...ve(i),entries:a})}});function nW(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new vg({type:"enum",entries:r,...ve(t)})}const iW=Y("ZodTransform",(e,t)=>{FV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ZG(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new jN(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(El(a,r.value,t));else{const s=a;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 i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)}});function aW(e){return new iW({type:"transform",transform:e})}const cq=Y("ZodOptional",(e,t)=>{QN.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>iq(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function EP(e){return new cq({type:"optional",innerType:e})}const oW=Y("ZodExactOptional",(e,t)=>{kV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>iq(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function sW(e){return new oW({type:"optional",innerType:e})}const cW=Y("ZodNullable",(e,t)=>{DV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>QG(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function xP(e){return new cW({type:"nullable",innerType:e})}const uW=Y("ZodDefault",(e,t)=>{LV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>e2(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lW(e,t){return new uW({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():kN(t)}})}const dW=Y("ZodPrefault",(e,t)=>{UV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>t2(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function pW(e,t){return new dW({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():kN(t)}})}const uq=Y("ZodNonOptional",(e,t)=>{zV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>$G(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function fW(e,t){return new uq({type:"nonoptional",innerType:e,...ve(t)})}const hW=Y("ZodCatch",(e,t)=>{BV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>r2(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vW(e,t){return new hW({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const mW=Y("ZodPipe",(e,t)=>{HV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>n2(e,r,n,i),e.in=t.in,e.out=t.out});function OP(e,t){return new mW({type:"pipe",in:e,out:t})}const _W=Y("ZodReadonly",(e,t)=>{VV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>i2(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function gW(e){return new _W({type:"readonly",innerType:e})}const yW=Y("ZodCustom",(e,t)=>{GV.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,n,i)=>WG(e,r)});function bW(e,t={}){return FG(yW,e,t)}function EW(e){return kG(e)}const wP=sq([G2(),P2()]).optional().transform(e=>e===void 0||e===""?void 0:Number(e)).refine(e=>e===void 0||!Number.isNaN(e),{message:"Must be a valid number"});$2({page:wP,pageSize:wP});function J(e,t,r){function n(o,c){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,c);const u=s.prototype,p=Object.keys(u);for(let l=0;l<p.length;l++){const d=p[l];d in o||(o[d]=u[d].bind(o))}}const i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function s(o){var c;const u=r?.Parent?new a:this;n(u,o),(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:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class si extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class lq extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const dq={};function _n(e){return dq}function pq(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function mg(e,t){return typeof t=="bigint"?t.toString():t}function by(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ey(e){return e==null}function xy(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const SP=Symbol("evaluating");function je(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==SP)return n===void 0&&(n=SP,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Pn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function _r(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function TP(e){return JSON.stringify(e)}function xW(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const fq="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const OW=by(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xl(e){if(vp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(vp(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function hq(e){return xl(e)?{...e}:Array.isArray(e)?[...e]:e}const wW=new Set(["string","number","symbol"]);function Hp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ye(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 SW(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function TW(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 a=_r(e._zod.def,{get shape(){const s={};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=r.shape[o])}return Pn(this,"shape",s),s},checks:[]});return gr(e,a)}function PW(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 a=_r(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete s[o]}return Pn(this,"shape",s),s},checks:[]});return gr(e,a)}function AW(e,t){if(!xl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const a=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(a,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=_r(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Pn(this,"shape",a),a}});return gr(e,i)}function RW(e,t){if(!xl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=_r(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return Pn(this,"shape",n),n}});return gr(e,r)}function MW(e,t){const r=_r(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Pn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return gr(e,r)}function IW(e,t,r){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=_r(t._zod.def,{get shape(){const o=t._zod.def.shape,c={...o};if(r)for(const u in r){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(const u in o)c[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return Pn(this,"shape",c),c},checks:[]});return gr(t,s)}function CW(e,t,r){const n=_r(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(r)for(const s in r){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=new e({type:"nonoptional",innerType:i[s]}))}else for(const s in i)a[s]=new e({type:"nonoptional",innerType:i[s]});return Pn(this,"shape",a),a}});return gr(t,n)}function ai(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 vq(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function qd(e){return typeof e=="string"?e:e?.message}function gn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const i=qd(e.inst?._zod.def?.error?.(e))??qd(t?.error?.(e))??qd(r.customError?.(e))??qd(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Oy(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ol(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const mq=(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,mg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},_q=J("$ZodError",mq),gq=J("$ZodError",mq,{Parent:Error});function jW(e,t=r=>r.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function NW(e,t=r=>r.message){const r={_errors:[]},n=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>n({issues:s}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let s=r,o=0;for(;o<a.path.length;){const c=a.path[o];o===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(a))):s[c]=s[c]||{_errors:[]},s=s[c],o++}}};return n(e),r}const wy=e=>(t,r,n,i)=>{const a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new si;if(s.issues.length){const o=new(i?.Err??e)(s.issues.map(c=>gn(c,a,_n())));throw fq(o,i?.callee),o}return s.value},Sy=e=>async(t,r,n,i)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const o=new(i?.Err??e)(s.issues.map(c=>gn(c,a,_n())));throw fq(o,i?.callee),o}return s.value},Vp=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new si;return a.issues.length?{success:!1,error:new(e??_q)(a.issues.map(s=>gn(s,i,_n())))}:{success:!0,data:a.value}},qW=Vp(gq),Gp=e=>async(t,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>gn(s,i,_n())))}:{success:!0,data:a.value}},FW=Gp(gq),kW=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return wy(e)(t,r,i)},DW=e=>(t,r,n)=>wy(e)(t,r,n),LW=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Sy(e)(t,r,i)},UW=e=>async(t,r,n)=>Sy(e)(t,r,n),zW=e=>(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Vp(e)(t,r,i)},BW=e=>(t,r,n)=>Vp(e)(t,r,n),HW=e=>async(t,r,n)=>{const i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Gp(e)(t,r,i)},VW=e=>async(t,r,n)=>Gp(e)(t,r,n),GW=/^[cC][^\s-]{8,}$/,WW=/^[0-9a-z]+$/,ZW=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,KW=/^[0-9a-vA-V]{20}$/,YW=/^[A-Za-z0-9]{27}$/,XW=/^[a-zA-Z0-9_-]{21}$/,JW=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QW=/^([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})$/,PP=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)$/,$W=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tZ(){return new RegExp(eZ,"u")}const rZ=/^(?:(?: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])$/,nZ=/^(([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}|:))$/,iZ=/^((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])$/,aZ=/^(([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])$/,oZ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yq=/^[A-Za-z0-9_-]*$/,sZ=/^\+[1-9]\d{6,14}$/,bq="(?:(?:\\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])))",cZ=new RegExp(`^${bq}$`);function Eq(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 uZ(e){return new RegExp(`^${Eq(e)}$`)}function lZ(e){const t=Eq({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(`^${bq}T(?:${n})$`)}const dZ=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},pZ=/^[^A-Z]*$/,fZ=/^[^a-z]*$/,qt=J("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),hZ=J("$ZodCheckMaxLength",(e,t)=>{var r;qt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!Ey(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const s=Oy(i);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),vZ=J("$ZodCheckMinLength",(e,t)=>{var r;qt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!Ey(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const s=Oy(i);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),mZ=J("$ZodCheckLengthEquals",(e,t)=>{var r;qt.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!Ey(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{const i=n.value,a=i.length;if(a===t.length)return;const s=Oy(i),o=a>t.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Wp=J("$ZodCheckStringFormat",(e,t)=>{var r,n;qt.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),_Z=J("$ZodCheckRegex",(e,t)=>{Wp.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})}}),gZ=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=pZ),Wp.init(e,t)}),yZ=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=fZ),Wp.init(e,t)}),bZ=J("$ZodCheckIncludes",(e,t)=>{qt.init(e,t);const r=Hp(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),EZ=J("$ZodCheckStartsWith",(e,t)=>{qt.init(e,t);const r=new RegExp(`^${Hp(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.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})}}),xZ=J("$ZodCheckEndsWith",(e,t)=>{qt.init(e,t);const r=new RegExp(`.*${Hp(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.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})}}),OZ=J("$ZodCheckOverwrite",(e,t)=>{qt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class wZ{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
|
-
`).filter(
|
|
50
|
-
`))}}
|
|
51
|
-
if (${
|
|
52
|
-
if (${
|
|
53
|
-
payload.issues = payload.issues.concat(${
|
|
43
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Al,s=!gl.jitless,c=s&&jl.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Kd([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Yd(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Kl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Yl(e,r,_l())))}),t)}var Xd=U(`$ZodUnion`,(e,t)=>{K.init(e,t),W(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),W(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),W(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),W(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Sl(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Yd(t,i,e,a)):Yd(s,i,e,a)}}),Zd=U(`$ZodIntersection`,(e,t)=>{K.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>$d(e,t,n)):$d(e,i,a)}});function Qd(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ml(e)&&Ml(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Qd(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Qd(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function $d(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Kl(e))return e;let o=Qd(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var ef=U(`$ZodEnum`,(e,t)=>{K.init(e,t);let n=vl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Pl.has(typeof e)).map(e=>typeof e==`string`?Fl(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),tf=U(`$ZodTransform`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new hl(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new ml;return n.value=i,n}});function nf(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var rf=U(`$ZodOptional`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Sl(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>nf(t,e.value)):nf(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),af=U(`$ZodExactOptional`,(e,t)=>{rf.init(e,t),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),of=U(`$ZodNullable`,(e,t)=>{K.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Sl(e.source)}|null)$`):void 0}),W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),sf=U(`$ZodDefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>cf(e,t)):cf(r,t)}});function cf(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var lf=U(`$ZodPrefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),uf=U(`$ZodNonOptional`,(e,t)=>{K.init(e,t),W(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>df(t,e)):df(i,e)}});function df(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var ff=U(`$ZodCatch`,(e,t)=>{K.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Yl(e,n,_l()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Yl(e,n,_l()))},input:e.value}),e.issues=[]),e)}}),pf=U(`$ZodPipe`,(e,t)=>{K.init(e,t),W(e._zod,`values`,()=>t.in._zod.values),W(e._zod,`optin`,()=>t.in._zod.optin),W(e._zod,`optout`,()=>t.out._zod.optout),W(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>mf(e,t.in,n)):mf(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>mf(e,t.out,n)):mf(r,t.out,n)}});function mf(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var hf=U(`$ZodReadonly`,(e,t)=>{K.init(e,t),W(e._zod,`propValues`,()=>t.innerType._zod.propValues),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`optin`,()=>t.innerType?._zod?.optin),W(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(gf):gf(r)}});function gf(e){return e.value=Object.freeze(e.value),e}var _f=U(`$ZodCustom`,(e,t)=>{Ku.init(e,t),K.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>vf(t,n,r,e));vf(i,n,r,e)}});function vf(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Zl(e))}}var yf,bf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function xf(){return new bf}(yf=globalThis).__zod_globalRegistry??(yf.__zod_globalRegistry=xf());var Sf=globalThis.__zod_globalRegistry;function Cf(e,t){return new e({type:`string`,...G(t)})}function wf(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...G(t)})}function Tf(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...G(t)})}function Ef(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...G(t)})}function Df(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...G(t)})}function Of(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...G(t)})}function kf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...G(t)})}function Af(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...G(t)})}function jf(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...G(t)})}function Mf(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...G(t)})}function Nf(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...G(t)})}function Pf(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...G(t)})}function Ff(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...G(t)})}function If(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...G(t)})}function Lf(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...G(t)})}function Rf(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...G(t)})}function zf(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...G(t)})}function Bf(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...G(t)})}function Vf(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...G(t)})}function Hf(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...G(t)})}function Uf(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...G(t)})}function Wf(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...G(t)})}function Gf(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...G(t)})}function Kf(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...G(t)})}function qf(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...G(t)})}function Jf(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...G(t)})}function Yf(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...G(t)})}function Xf(e,t){return new e({type:`number`,checks:[],...G(t)})}function Zf(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...G(t)})}function Qf(e){return new e({type:`unknown`})}function $f(e,t){return new e({type:`never`,...G(t)})}function ep(e,t){return new Ju({check:`less_than`,...G(t),value:e,inclusive:!1})}function tp(e,t){return new Ju({check:`less_than`,...G(t),value:e,inclusive:!0})}function np(e,t){return new Yu({check:`greater_than`,...G(t),value:e,inclusive:!1})}function rp(e,t){return new Yu({check:`greater_than`,...G(t),value:e,inclusive:!0})}function ip(e,t){return new Xu({check:`multiple_of`,...G(t),value:e})}function ap(e,t){return new Qu({check:`max_length`,...G(t),maximum:e})}function op(e,t){return new $u({check:`min_length`,...G(t),minimum:e})}function sp(e,t){return new ed({check:`length_equals`,...G(t),length:e})}function cp(e,t){return new nd({check:`string_format`,format:`regex`,...G(t),pattern:e})}function lp(e){return new rd({check:`string_format`,format:`lowercase`,...G(e)})}function up(e){return new id({check:`string_format`,format:`uppercase`,...G(e)})}function dp(e,t){return new ad({check:`string_format`,format:`includes`,...G(t),includes:e})}function fp(e,t){return new od({check:`string_format`,format:`starts_with`,...G(t),prefix:e})}function pp(e,t){return new sd({check:`string_format`,format:`ends_with`,...G(t),suffix:e})}function mp(e){return new cd({check:`overwrite`,tx:e})}function hp(e){return mp(t=>t.normalize(e))}function gp(){return mp(e=>e.trim())}function _p(){return mp(e=>e.toLowerCase())}function vp(){return mp(e=>e.toUpperCase())}function yp(){return mp(e=>Ol(e))}function bp(e,t,n){return new e({type:`array`,element:t,...G(n)})}function xp(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...G(n)})}function Sp(e){let t=Cp(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Zl(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Zl(r))}},e(n.value,n)));return t}function Cp(e,t){let n=new Ku({check:`custom`,...G(t)});return n._zod.check=e,n}function wp(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??Sf,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 Tp(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Tp(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Op(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ep(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
44
|
+
|
|
45
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Dp(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Ap(t,`input`,e.processors),output:Ap(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Op(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Op(r.element,n);if(r.type===`set`)return Op(r.valueType,n);if(r.type===`lazy`)return Op(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Op(r.innerType,n);if(r.type===`intersection`)return Op(r.left,n)||Op(r.right,n);if(r.type===`record`||r.type===`map`)return Op(r.keyType,n)||Op(r.valueType,n);if(r.type===`pipe`)return Op(r.in,n)||Op(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Op(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Op(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Op(e,n))return!0;return!!(r.rest&&Op(r.rest,n))}return!1}var kp=(e,t={})=>n=>{let r=wp({...n,processors:t});return Tp(e,r),Ep(r,e),Dp(r,e)},Ap=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wp({...i??{},target:a,io:t,processors:n});return Tp(e,o),Ep(o,e),Dp(o,e)},jp={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Mp=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=jp[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Np=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Pp=(e,t,n,r)=>{n.not={}},Fp=(e,t,n,r)=>{let i=e._zod.def,a=vl(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Ip=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Lp=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Rp=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Tp(a.element,t,{...r,path:[...r.path,`items`]})},zp=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Tp(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Tp(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Bp=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Tp(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Vp=(e,t,n,r)=>{let i=e._zod.def,a=Tp(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Tp(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Hp=(e,t,n,r)=>{let i=e._zod.def,a=Tp(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Up=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Wp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Gp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Kp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},qp=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Tp(a,t,r);let o=t.seen.get(e);o.ref=a},Jp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Yp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Xp=U(`ZodISODateTime`,(e,t)=>{Cd.init(e,t),J.init(e,t)});function Zp(e){return Kf(Xp,e)}var Qp=U(`ZodISODate`,(e,t)=>{wd.init(e,t),J.init(e,t)});function $p(e){return qf(Qp,e)}var em=U(`ZodISOTime`,(e,t)=>{Td.init(e,t),J.init(e,t)});function tm(e){return Jf(em,e)}var nm=U(`ZodISODuration`,(e,t)=>{Ed.init(e,t),J.init(e,t)});function rm(e){return Yf(nm,e)}var im=(e,t)=>{$l.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>nu(e,t)},flatten:{value:t=>tu(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,yl,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,yl,2)}},isEmpty:{get(){return e.issues.length===0}}})};U(`ZodError`,im);var am=U(`ZodError`,im,{Parent:Error}),om=ru(am),sm=iu(am),cm=au(am),lm=su(am),um=lu(am),dm=uu(am),fm=du(am),pm=fu(am),mm=pu(am),hm=mu(am),gm=hu(am),_m=gu(am),vm=U(`ZodType`,(e,t)=>(K.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Ap(e,`input`),output:Ap(e,`output`)}}),e.toJSONSchema=kp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(El(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>Il(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>om(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>cm(e,t,n),e.parseAsync=async(t,n)=>sm(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>lm(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>um(e,t,n),e.decode=(t,n)=>dm(e,t,n),e.encodeAsync=async(t,n)=>fm(e,t,n),e.decodeAsync=async(t,n)=>pm(e,t,n),e.safeEncode=(t,n)=>mm(e,t,n),e.safeDecode=(t,n)=>hm(e,t,n),e.safeEncodeAsync=async(t,n)=>gm(e,t,n),e.safeDecodeAsync=async(t,n)=>_m(e,t,n),e.refine=(t,n)=>e.check(Eh(t,n)),e.superRefine=t=>e.check(Dh(t)),e.overwrite=t=>e.check(mp(t)),e.optional=()=>ch(e),e.exactOptional=()=>uh(e),e.nullable=()=>fh(e),e.nullish=()=>ch(fh(e)),e.nonoptional=t=>vh(e,t),e.array=()=>Xm(e),e.or=t=>eh([e,t]),e.and=t=>nh(e,t),e.transform=t=>Sh(e,oh(t)),e.default=t=>mh(e,t),e.prefault=t=>gh(e,t),e.catch=t=>bh(e,t),e.pipe=t=>Sh(e,t),e.readonly=()=>wh(e),e.describe=t=>{let n=e.clone();return Sf.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Sf.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Sf.get(e);let n=e.clone();return Sf.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),ym=U(`_ZodString`,(e,t)=>{dd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mp(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(cp(...t)),e.includes=(...t)=>e.check(dp(...t)),e.startsWith=(...t)=>e.check(fp(...t)),e.endsWith=(...t)=>e.check(pp(...t)),e.min=(...t)=>e.check(op(...t)),e.max=(...t)=>e.check(ap(...t)),e.length=(...t)=>e.check(sp(...t)),e.nonempty=(...t)=>e.check(op(1,...t)),e.lowercase=t=>e.check(lp(t)),e.uppercase=t=>e.check(up(t)),e.trim=()=>e.check(gp()),e.normalize=(...t)=>e.check(hp(...t)),e.toLowerCase=()=>e.check(_p()),e.toUpperCase=()=>e.check(vp()),e.slugify=()=>e.check(yp())}),bm=U(`ZodString`,(e,t)=>{dd.init(e,t),ym.init(e,t),e.email=t=>e.check(wf(Sm,t)),e.url=t=>e.check(Af(Tm,t)),e.jwt=t=>e.check(Gf(Bm,t)),e.emoji=t=>e.check(jf(Em,t)),e.guid=t=>e.check(Tf(Cm,t)),e.uuid=t=>e.check(Ef(wm,t)),e.uuidv4=t=>e.check(Df(wm,t)),e.uuidv6=t=>e.check(Of(wm,t)),e.uuidv7=t=>e.check(kf(wm,t)),e.nanoid=t=>e.check(Mf(Dm,t)),e.guid=t=>e.check(Tf(Cm,t)),e.cuid=t=>e.check(Nf(Om,t)),e.cuid2=t=>e.check(Pf(km,t)),e.ulid=t=>e.check(Ff(Am,t)),e.base64=t=>e.check(Hf(Lm,t)),e.base64url=t=>e.check(Uf(Rm,t)),e.xid=t=>e.check(If(jm,t)),e.ksuid=t=>e.check(Lf(Mm,t)),e.ipv4=t=>e.check(Rf(Nm,t)),e.ipv6=t=>e.check(zf(Pm,t)),e.cidrv4=t=>e.check(Bf(Fm,t)),e.cidrv6=t=>e.check(Vf(Im,t)),e.e164=t=>e.check(Wf(zm,t)),e.datetime=t=>e.check(Zp(t)),e.date=t=>e.check($p(t)),e.time=t=>e.check(tm(t)),e.duration=t=>e.check(rm(t))});function xm(e){return Cf(bm,e)}var J=U(`ZodStringFormat`,(e,t)=>{q.init(e,t),ym.init(e,t)}),Sm=U(`ZodEmail`,(e,t)=>{md.init(e,t),J.init(e,t)}),Cm=U(`ZodGUID`,(e,t)=>{fd.init(e,t),J.init(e,t)}),wm=U(`ZodUUID`,(e,t)=>{pd.init(e,t),J.init(e,t)}),Tm=U(`ZodURL`,(e,t)=>{hd.init(e,t),J.init(e,t)}),Em=U(`ZodEmoji`,(e,t)=>{gd.init(e,t),J.init(e,t)}),Dm=U(`ZodNanoID`,(e,t)=>{_d.init(e,t),J.init(e,t)}),Om=U(`ZodCUID`,(e,t)=>{vd.init(e,t),J.init(e,t)}),km=U(`ZodCUID2`,(e,t)=>{yd.init(e,t),J.init(e,t)}),Am=U(`ZodULID`,(e,t)=>{bd.init(e,t),J.init(e,t)}),jm=U(`ZodXID`,(e,t)=>{xd.init(e,t),J.init(e,t)}),Mm=U(`ZodKSUID`,(e,t)=>{Sd.init(e,t),J.init(e,t)}),Nm=U(`ZodIPv4`,(e,t)=>{Dd.init(e,t),J.init(e,t)}),Pm=U(`ZodIPv6`,(e,t)=>{Od.init(e,t),J.init(e,t)}),Fm=U(`ZodCIDRv4`,(e,t)=>{kd.init(e,t),J.init(e,t)}),Im=U(`ZodCIDRv6`,(e,t)=>{Ad.init(e,t),J.init(e,t)}),Lm=U(`ZodBase64`,(e,t)=>{Md.init(e,t),J.init(e,t)}),Rm=U(`ZodBase64URL`,(e,t)=>{Pd.init(e,t),J.init(e,t)}),zm=U(`ZodE164`,(e,t)=>{Fd.init(e,t),J.init(e,t)}),Bm=U(`ZodJWT`,(e,t)=>{Ld.init(e,t),J.init(e,t)}),Vm=U(`ZodNumber`,(e,t)=>{Rd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Np(e,t,n,r),e.gt=(t,n)=>e.check(np(t,n)),e.gte=(t,n)=>e.check(rp(t,n)),e.min=(t,n)=>e.check(rp(t,n)),e.lt=(t,n)=>e.check(ep(t,n)),e.lte=(t,n)=>e.check(tp(t,n)),e.max=(t,n)=>e.check(tp(t,n)),e.int=t=>e.check(Wm(t)),e.safe=t=>e.check(Wm(t)),e.positive=t=>e.check(np(0,t)),e.nonnegative=t=>e.check(rp(0,t)),e.negative=t=>e.check(ep(0,t)),e.nonpositive=t=>e.check(tp(0,t)),e.multipleOf=(t,n)=>e.check(ip(t,n)),e.step=(t,n)=>e.check(ip(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Hm(e){return Xf(Vm,e)}var Um=U(`ZodNumberFormat`,(e,t)=>{zd.init(e,t),Vm.init(e,t)});function Wm(e){return Zf(Um,e)}var Gm=U(`ZodUnknown`,(e,t)=>{Bd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Km(){return Qf(Gm)}var qm=U(`ZodNever`,(e,t)=>{Vd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pp(e,t,n,r)});function Jm(e){return $f(qm,e)}var Ym=U(`ZodArray`,(e,t)=>{Ud.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rp(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(op(t,n)),e.nonempty=t=>e.check(op(1,t)),e.max=(t,n)=>e.check(ap(t,n)),e.length=(t,n)=>e.check(sp(t,n)),e.unwrap=()=>e.element});function Xm(e,t){return bp(Ym,e,t)}var Zm=U(`ZodObject`,(e,t)=>{Jd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zp(e,t,n,r),W(e,`shape`,()=>t.shape),e.keyof=()=>ih(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Km()}),e.loose=()=>e.clone({...e._zod.def,catchall:Km()}),e.strict=()=>e.clone({...e._zod.def,catchall:Jm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Vl(e,t),e.safeExtend=t=>Hl(e,t),e.merge=t=>Ul(e,t),e.pick=t=>zl(e,t),e.omit=t=>Bl(e,t),e.partial=(...t)=>Wl(sh,e,t[0]),e.required=(...t)=>Gl(_h,e,t[0])});function Qm(e,t){return new Zm({type:`object`,shape:e??{},...G(t)})}var $m=U(`ZodUnion`,(e,t)=>{Xd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bp(e,t,n,r),e.options=t.options});function eh(e,t){return new $m({type:`union`,options:e,...G(t)})}var th=U(`ZodIntersection`,(e,t)=>{Zd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vp(e,t,n,r)});function nh(e,t){return new th({type:`intersection`,left:e,right:t})}var rh=U(`ZodEnum`,(e,t)=>{ef.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fp(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new rh({...t,checks:[],...G(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rh({...t,checks:[],...G(r),entries:i})}});function ih(e,t){return new rh({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...G(t)})}var ah=U(`ZodTransform`,(e,t)=>{tf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lp(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new hl(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Zl(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Zl(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function oh(e){return new ah({type:`transform`,transform:e})}var sh=U(`ZodOptional`,(e,t)=>{rf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ch(e){return new sh({type:`optional`,innerType:e})}var lh=U(`ZodExactOptional`,(e,t)=>{af.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function uh(e){return new lh({type:`optional`,innerType:e})}var dh=U(`ZodNullable`,(e,t)=>{of.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function fh(e){return new dh({type:`nullable`,innerType:e})}var ph=U(`ZodDefault`,(e,t)=>{sf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mh(e,t){return new ph({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nl(t)}})}var hh=U(`ZodPrefault`,(e,t)=>{lf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gh(e,t){return new hh({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nl(t)}})}var _h=U(`ZodNonOptional`,(e,t)=>{uf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Up(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vh(e,t){return new _h({type:`nonoptional`,innerType:e,...G(t)})}var yh=U(`ZodCatch`,(e,t)=>{ff.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bh(e,t){return new yh({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var xh=U(`ZodPipe`,(e,t)=>{pf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qp(e,t,n,r),e.in=t.in,e.out=t.out});function Sh(e,t){return new xh({type:`pipe`,in:e,out:t})}var Ch=U(`ZodReadonly`,(e,t)=>{hf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wh(e){return new Ch({type:`readonly`,innerType:e})}var Th=U(`ZodCustom`,(e,t)=>{_f.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ip(e,t,n,r)});function Eh(e,t={}){return xp(Th,e,t)}function Dh(e){return Sp(e)}var Oh=eh([Hm(),xm()]).optional().transform(e=>e===void 0||e===``?void 0:Number(e)).refine(e=>e===void 0||!Number.isNaN(e),{message:`Must be a valid number`});Qm({page:Oh,pageSize:Oh}),Object.freeze({status:`aborted`});function Y(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var kh=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ah=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},jh={};function Mh(e){return e&&Object.assign(jh,e),jh}function Nh(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Ph(e,t){return typeof t==`bigint`?t.toString():t}function Fh(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function Ih(e){return e==null}function Lh(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var Rh=Symbol(`evaluating`);function X(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Rh)return r===void 0&&(r=Rh,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function zh(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Bh(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Vh(e){return JSON.stringify(e)}function Hh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Uh=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Wh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Gh=Fh(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Kh(e){if(Wh(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Wh(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function qh(e){return Kh(e)?{...e}:Array.isArray(e)?[...e]:e}var Jh=new Set([`string`,`number`,`symbol`]);function Yh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Xh(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw 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 Zh(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Qh(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Xh(e,Bh(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return zh(this,`shape`,e),e},checks:[]}))}function $h(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Xh(e,Bh(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return zh(this,`shape`,r),r},checks:[]}))}function eg(e,t){if(!Kh(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Xh(e,Bh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zh(this,`shape`,n),n}}))}function tg(e,t){if(!Kh(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Xh(e,Bh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zh(this,`shape`,n),n}}))}function ng(e,t){return Xh(e,Bh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return zh(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function rg(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Xh(t,Bh(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return zh(this,`shape`,i),i},checks:[]}))}function ig(e,t,n){return Xh(t,Bh(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return zh(this,`shape`,i),i}}))}function ag(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function og(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function sg(e){return typeof e==`string`?e:e?.message}function cg(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=sg(e.inst?._zod.def?.error?.(e))??sg(t?.error?.(e))??sg(n.customError?.(e))??sg(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function lg(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function ug(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var dg=(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,Ph,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},fg=Y(`$ZodError`,dg),pg=Y(`$ZodError`,dg,{Parent:Error});function mg(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function hg(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var gg=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new kh;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>cg(e,a,Mh())));throw Uh(t,i?.callee),t}return o.value},_g=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>cg(e,a,Mh())));throw Uh(t,i?.callee),t}return o.value},vg=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new kh;return a.issues.length?{success:!1,error:new(e??fg)(a.issues.map(e=>cg(e,i,Mh())))}:{success:!0,data:a.value}},yg=vg(pg),bg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>cg(e,i,Mh())))}:{success:!0,data:a.value}},xg=bg(pg),Sg=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return gg(e)(t,n,i)},Cg=e=>(t,n,r)=>gg(e)(t,n,r),wg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return _g(e)(t,n,i)},Tg=e=>async(t,n,r)=>_g(e)(t,n,r),Eg=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return vg(e)(t,n,i)},Dg=e=>(t,n,r)=>vg(e)(t,n,r),Og=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return bg(e)(t,n,i)},kg=e=>async(t,n,r)=>bg(e)(t,n,r),Ag=/^[cC][^\s-]{8,}$/,jg=/^[0-9a-z]+$/,Mg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ng=/^[0-9a-vA-V]{20}$/,Pg=/^[A-Za-z0-9]{27}$/,Fg=/^[a-zA-Z0-9_-]{21}$/,Ig=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Lg=/^([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})$/,Rg=e=>e?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)$/,zg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Bg=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Vg(){return new RegExp(Bg,`u`)}var Hg=/^(?:(?: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])$/,Ug=/^(([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}|:))$/,Wg=/^((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])$/,Gg=/^(([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])$/,Kg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qg=/^[A-Za-z0-9_-]*$/,Jg=/^\+[1-9]\d{6,14}$/,Yg=`(?:(?:\\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])))`,Xg=RegExp(`^${Yg}$`);function Zg(e){let 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 Qg(e){return RegExp(`^${Zg(e)}$`)}function $g(e){let t=Zg({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Yg}T(?:${r})$`)}var e_=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},t_=/^[^A-Z]*$/,n_=/^[^a-z]*$/,r_=Y(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),i_=Y(`$ZodCheckMaxLength`,(e,t)=>{var n;r_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ih(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=lg(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),a_=Y(`$ZodCheckMinLength`,(e,t)=>{var n;r_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ih(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=lg(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),o_=Y(`$ZodCheckLengthEquals`,(e,t)=>{var n;r_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ih(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=lg(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),s_=Y(`$ZodCheckStringFormat`,(e,t)=>{var n,r;r_.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),c_=Y(`$ZodCheckRegex`,(e,t)=>{s_.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),l_=Y(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=t_,s_.init(e,t)}),u_=Y(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=n_,s_.init(e,t)}),d_=Y(`$ZodCheckIncludes`,(e,t)=>{r_.init(e,t);let n=Yh(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),f_=Y(`$ZodCheckStartsWith`,(e,t)=>{r_.init(e,t);let n=RegExp(`^${Yh(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),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})}}),p_=Y(`$ZodCheckEndsWith`,(e,t)=>{r_.init(e,t);let n=RegExp(`.*${Yh(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),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})}}),m_=Y(`$ZodCheckOverwrite`,(e,t)=>{r_.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),h_=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
46
|
+
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
47
|
+
`))}},g_={major:4,minor:3,patch:6},__=Y(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=g_;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ag(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new kh;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ag(e,t))});else{if(e.issues.length===t)continue;r||=ag(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ag(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new kh;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new kh;return o.then(e=>t(e,r,a))}return t(o,r,a)}}X(e,`~standard`,()=>({validate:t=>{try{let n=yg(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return xg(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),v_=Y(`$ZodString`,(e,t)=>{__.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??e_(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Q=Y(`$ZodStringFormat`,(e,t)=>{s_.init(e,t),v_.init(e,t)}),y_=Y(`$ZodGUID`,(e,t)=>{t.pattern??=Lg,Q.init(e,t)}),b_=Y(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Rg(e)}else t.pattern??=Rg();Q.init(e,t)}),x_=Y(`$ZodEmail`,(e,t)=>{t.pattern??=zg,Q.init(e,t)}),S_=Y(`$ZodURL`,(e,t)=>{Q.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),C_=Y(`$ZodEmoji`,(e,t)=>{t.pattern??=Vg(),Q.init(e,t)}),w_=Y(`$ZodNanoID`,(e,t)=>{t.pattern??=Fg,Q.init(e,t)}),T_=Y(`$ZodCUID`,(e,t)=>{t.pattern??=Ag,Q.init(e,t)}),E_=Y(`$ZodCUID2`,(e,t)=>{t.pattern??=jg,Q.init(e,t)}),D_=Y(`$ZodULID`,(e,t)=>{t.pattern??=Mg,Q.init(e,t)}),O_=Y(`$ZodXID`,(e,t)=>{t.pattern??=Ng,Q.init(e,t)}),k_=Y(`$ZodKSUID`,(e,t)=>{t.pattern??=Pg,Q.init(e,t)}),A_=Y(`$ZodISODateTime`,(e,t)=>{t.pattern??=$g(t),Q.init(e,t)}),j_=Y(`$ZodISODate`,(e,t)=>{t.pattern??=Xg,Q.init(e,t)}),M_=Y(`$ZodISOTime`,(e,t)=>{t.pattern??=Qg(t),Q.init(e,t)}),N_=Y(`$ZodISODuration`,(e,t)=>{t.pattern??=Ig,Q.init(e,t)}),P_=Y(`$ZodIPv4`,(e,t)=>{t.pattern??=Hg,Q.init(e,t),e._zod.bag.format=`ipv4`}),F_=Y(`$ZodIPv6`,(e,t)=>{t.pattern??=Ug,Q.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),I_=Y(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Wg,Q.init(e,t)}),L_=Y(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Gg,Q.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function R_(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var z_=Y(`$ZodBase64`,(e,t)=>{t.pattern??=Kg,Q.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{R_(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function B_(e){if(!qg.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return R_(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var V_=Y(`$ZodBase64URL`,(e,t)=>{t.pattern??=qg,Q.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{B_(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),H_=Y(`$ZodE164`,(e,t)=>{t.pattern??=Jg,Q.init(e,t)});function U_(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var W_=Y(`$ZodJWT`,(e,t)=>{Q.init(e,t),e._zod.check=n=>{U_(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),G_=Y(`$ZodUnknown`,(e,t)=>{__.init(e,t),e._zod.parse=e=>e}),K_=Y(`$ZodNever`,(e,t)=>{__.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function q_(e,t,n){e.issues.length&&t.issues.push(...og(n,e.issues)),t.value[n]=e.value}var J_=Y(`$ZodArray`,(e,t)=>{__.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>q_(t,n,e))):q_(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Y_(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...og(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function X_(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Zh(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Z_(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Y_(e,n,i,t,u))):Y_(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Q_=Y(`$ZodObject`,(e,t)=>{if(__.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=Fh(()=>X_(t));X(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Wh,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Y_(n,t,e,s,r))):Y_(i,t,e,s,r)}return i?Z_(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),$_=Y(`$ZodObjectJIT`,(e,t)=>{Q_.init(e,t);let n=e._zod.parse,r=Fh(()=>X_(t)),i=e=>{let t=new h_([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Vh(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Vh(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
|
48
|
+
if (${n}.issues.length) {
|
|
49
|
+
if (${o} in input) {
|
|
50
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
54
51
|
...iss,
|
|
55
|
-
path: iss.path ? [${
|
|
52
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
56
53
|
})));
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
|
|
60
|
-
if (${
|
|
61
|
-
if (${
|
|
62
|
-
newResult[${
|
|
57
|
+
if (${n}.value === undefined) {
|
|
58
|
+
if (${o} in input) {
|
|
59
|
+
newResult[${o}] = undefined;
|
|
63
60
|
}
|
|
64
61
|
} else {
|
|
65
|
-
newResult[${
|
|
62
|
+
newResult[${o}] = ${n}.value;
|
|
66
63
|
}
|
|
67
64
|
|
|
68
|
-
`):
|
|
69
|
-
if (${
|
|
70
|
-
payload.issues = payload.issues.concat(${
|
|
65
|
+
`):t.write(`
|
|
66
|
+
if (${n}.issues.length) {
|
|
67
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
71
68
|
...iss,
|
|
72
|
-
path: iss.path ? [${
|
|
69
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
73
70
|
})));
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
if (${
|
|
77
|
-
if (${
|
|
78
|
-
newResult[${
|
|
73
|
+
if (${n}.value === undefined) {
|
|
74
|
+
if (${o} in input) {
|
|
75
|
+
newResult[${o}] = undefined;
|
|
79
76
|
}
|
|
80
77
|
} else {
|
|
81
|
-
newResult[${
|
|
78
|
+
newResult[${o}] = ${n}.value;
|
|
82
79
|
}
|
|
83
80
|
|
|
84
|
-
`)}f.write("payload.value = newResult;"),f.write("return payload;");const g=f.compile();return(y,b)=>g(d,y,b)};let a;const s=vp,o=!dq.jitless,u=o&&OW.value,p=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=n.value);const h=d.value;return s(h)?o&&u&&f?.async===!1&&f.jitless!==!0?(a||(a=i(t.shape)),d=a(d,f),p?wq([],h,d,f,l,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function RP(e,t,r,n){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!ai(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>gn(s,n,_n())))}),t)}const r4=J("$ZodUnion",(e,t)=>{et.init(e,t),je(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),je(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),je(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),je(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>xy(a.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let s=!1;const o=[];for(const c of t.options){const u=c._zod.run({value:i.value,issues:[]},a);if(u instanceof Promise)o.push(u),s=!0;else{if(u.issues.length===0)return u;o.push(u)}}return s?Promise.all(o).then(c=>RP(c,i,e,a)):RP(o,i,e,a)}}),n4=J("$ZodIntersection",(e,t)=>{et.init(e,t),e._zod.parse=(r,n)=>{const i=r.value,a=t.left._zod.run({value:i,issues:[]},n),s=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([c,u])=>MP(r,c,u)):MP(r,a,s)}});function _g(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(xl(e)&&xl(t)){const r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(const a of n){const s=_g(e[a],t[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};i[a]=s.data}return{valid:!0,data:i}}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 i=e[n],a=t[n],s=_g(i,a);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function MP(e,t,r){const n=new Map;let i;for(const o of t.issues)if(o.code==="unrecognized_keys"){i??(i=o);for(const c of o.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(o);for(const o of r.issues)if(o.code==="unrecognized_keys")for(const c of o.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(o);const a=[...n].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(a.length&&i&&e.issues.push({...i,keys:a}),ai(e))return e;const s=_g(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 i4=J("$ZodEnum",(e,t)=>{et.init(e,t);const r=pq(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>wW.has(typeof i)).map(i=>typeof i=="string"?Hp(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:r,input:s,inst:e}),i}}),a4=J("$ZodTransform",(e,t)=>{et.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new lq(e.constructor.name);const i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(r.value=s,r));if(i instanceof Promise)throw new si;return r.value=i,r}});function IP(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Sq=J("$ZodOptional",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",je(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),je(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${xy(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>IP(a,r.value)):IP(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),o4=J("$ZodExactOptional",(e,t)=>{Sq.init(e,t),je(e._zod,"values",()=>t.innerType._zod.values),je(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),s4=J("$ZodNullable",(e,t)=>{et.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${xy(r.source)}|null)$`):void 0}),je(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)}),c4=J("$ZodDefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",je(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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>CP(a,t)):CP(i,t)}});function CP(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const u4=J("$ZodPrefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",je(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))}),l4=J("$ZodNonOptional",(e,t)=>{et.init(e,t),je(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 i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>jP(a,e)):jP(i,e)}});function jP(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 d4=J("$ZodCatch",(e,t)=>{et.init(e,t),je(e._zod,"optin",()=>t.innerType._zod.optin),je(e._zod,"optout",()=>t.innerType._zod.optout),je(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(s=>gn(s,n,_n()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>gn(a,n,_n()))},input:r.value}),r.issues=[]),r)}}),p4=J("$ZodPipe",(e,t)=>{et.init(e,t),je(e._zod,"values",()=>t.in._zod.values),je(e._zod,"optin",()=>t.in._zod.optin),je(e._zod,"optout",()=>t.out._zod.optout),je(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>Fd(s,t.in,n)):Fd(a,t.in,n)}const i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>Fd(a,t.out,n)):Fd(i,t.out,n)}});function Fd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const f4=J("$ZodReadonly",(e,t)=>{et.init(e,t),je(e._zod,"propValues",()=>t.innerType._zod.propValues),je(e._zod,"values",()=>t.innerType._zod.values),je(e._zod,"optin",()=>t.innerType?._zod?.optin),je(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(NP):NP(i)}});function NP(e){return e.value=Object.freeze(e.value),e}const h4=J("$ZodCustom",(e,t)=>{qt.init(e,t),et.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>qP(a,r,n,e));qP(i,r,n,e)}});function qP(e,t,r,n){if(!e){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(Ol(i))}}var FP;class v4{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 i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function m4(){return new v4}(FP=globalThis).__zod_globalRegistry??(FP.__zod_globalRegistry=m4());const yl=globalThis.__zod_globalRegistry;function _4(e,t){return new e({type:"string",...ye(t)})}function g4(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ye(t)})}function kP(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ye(t)})}function y4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ye(t)})}function b4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ye(t)})}function E4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ye(t)})}function x4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ye(t)})}function O4(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ye(t)})}function w4(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ye(t)})}function S4(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ye(t)})}function T4(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ye(t)})}function P4(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ye(t)})}function A4(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ye(t)})}function R4(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ye(t)})}function M4(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ye(t)})}function I4(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ye(t)})}function C4(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ye(t)})}function j4(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ye(t)})}function N4(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ye(t)})}function q4(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ye(t)})}function F4(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ye(t)})}function k4(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ye(t)})}function D4(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ye(t)})}function L4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ye(t)})}function U4(e,t){return new e({type:"string",format:"date",check:"string_format",...ye(t)})}function z4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ye(t)})}function B4(e,t){return new e({type:"string",format:"duration",check:"string_format",...ye(t)})}function H4(e){return new e({type:"unknown"})}function V4(e,t){return new e({type:"never",...ye(t)})}function Tq(e,t){return new hZ({check:"max_length",...ye(t),maximum:e})}function _p(e,t){return new vZ({check:"min_length",...ye(t),minimum:e})}function Pq(e,t){return new mZ({check:"length_equals",...ye(t),length:e})}function G4(e,t){return new _Z({check:"string_format",format:"regex",...ye(t),pattern:e})}function W4(e){return new gZ({check:"string_format",format:"lowercase",...ye(e)})}function Z4(e){return new yZ({check:"string_format",format:"uppercase",...ye(e)})}function K4(e,t){return new bZ({check:"string_format",format:"includes",...ye(t),includes:e})}function Y4(e,t){return new EZ({check:"string_format",format:"starts_with",...ye(t),prefix:e})}function X4(e,t){return new xZ({check:"string_format",format:"ends_with",...ye(t),suffix:e})}function _i(e){return new OZ({check:"overwrite",tx:e})}function J4(e){return _i(t=>t.normalize(e))}function Q4(){return _i(e=>e.trim())}function $4(){return _i(e=>e.toLowerCase())}function e3(){return _i(e=>e.toUpperCase())}function t3(){return _i(e=>xW(e))}function r3(e,t,r){return new e({type:"array",element:t,...ye(r)})}function n3(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ye(r)})}function i3(e){const t=a3(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Ol(n,r.value,t._zod.def));else{const i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(Ol(i))}},e(r.value,r)));return t}function a3(e,t){const r=new qt({check:"custom",...ye(t)});return r._zod.check=e,r}function Aq(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??yl,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 it(e,t,r={path:[],schemaPath:[]}){var n;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s);const o=e._zod.toJSONSchema?.();if(o)s.schema=o;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[i.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);f(e,t,d,p)}const l=e._zod.parent;l&&(s.ref||(s.ref=l),it(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"&&ft(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 Rq(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 o=e.metadataRegistry.get(s[0])?.id;if(o){const c=n.get(o);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(o,s[0])}}const i=s=>{const o=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")}#/${o}/${f}`}}if(s[1]===r)return{ref:"#"};const u=`#/${o}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},a=s=>{if(s[1].schema.$ref)return;const o=s[1],{ref:c,defId:u}=i(s);o.def={...o.schema},u&&(o.defId=u);const p=o.schema;for(const l in p)delete p[l];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
85
|
-
|
|
86
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const o=s[1];if(t===s[0]){a(s);continue}if(e.external){const u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){a(s);continue}}if(e.metadataRegistry.get(s[0])?.id){a(s);continue}if(o.cycle){a(s);continue}if(o.count>1&&e.reused==="ref"){a(s);continue}}}function Mq(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 o=e.seen.get(s);if(o.ref===null)return;const c=o.def??o.schema,u={...c},p=o.ref;if(o.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:o.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$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");i.$id=e.external.uri(s)}Object.assign(i,r.def??r.schema);const a=e.external?.defs??{};for(const s of e.seen.entries()){const o=s[1];o.def&&o.defId&&(a[o.defId]=o.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{const s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:gp(t,"input",e.processors),output:gp(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ft(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 ft(n.element,r);if(n.type==="set")return ft(n.valueType,r);if(n.type==="lazy")return ft(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 ft(n.innerType,r);if(n.type==="intersection")return ft(n.left,r)||ft(n.right,r);if(n.type==="record"||n.type==="map")return ft(n.keyType,r)||ft(n.valueType,r);if(n.type==="pipe")return ft(n.in,r)||ft(n.out,r);if(n.type==="object"){for(const i in n.shape)if(ft(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(const i of n.options)if(ft(i,r))return!0;return!1}if(n.type==="tuple"){for(const i of n.items)if(ft(i,r))return!0;return!!(n.rest&&ft(n.rest,r))}return!1}const o3=(e,t={})=>r=>{const n=Aq({...r,processors:t});return it(e,n),Rq(n,e),Mq(n,e)},gp=(e,t,r={})=>n=>{const{libraryOptions:i,target:a}=n??{},s=Aq({...i??{},target:a,io:t,processors:r});return it(e,s),Rq(s,e),Mq(s,e)},s3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},c3=(e,t,r,n)=>{const i=r;i.type="string";const{minimum:a,maximum:s,format:o,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof s=="number"&&(i.maxLength=s),o&&(i.format=s3[o]??o,i.format===""&&delete i.format,o==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){const p=[...c];p.length===1?i.pattern=p[0].source:p.length>1&&(i.allOf=[...p.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},u3=(e,t,r,n)=>{r.not={}},l3=(e,t,r,n)=>{},d3=(e,t,r,n)=>{const i=e._zod.def,a=pq(i.entries);a.every(s=>typeof s=="number")&&(r.type="number"),a.every(s=>typeof s=="string")&&(r.type="string"),r.enum=a},p3=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},f3=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},h3=(e,t,r,n)=>{const i=r,a=e._zod.def,{minimum:s,maximum:o}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof o=="number"&&(i.maxItems=o),i.type="array",i.items=it(a.element,t,{...n,path:[...n.path,"items"]})},v3=(e,t,r,n)=>{const i=r,a=e._zod.def;i.type="object",i.properties={};const s=a.shape;for(const u in s)i.properties[u]=it(s[u],t,{...n,path:[...n.path,"properties",u]});const o=new Set(Object.keys(s)),c=new Set([...o].filter(u=>{const p=a.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=it(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},m3=(e,t,r,n)=>{const i=e._zod.def,a=i.inclusive===!1,s=i.options.map((o,c)=>it(o,t,{...n,path:[...n.path,a?"oneOf":"anyOf",c]}));a?r.oneOf=s:r.anyOf=s},_3=(e,t,r,n)=>{const i=e._zod.def,a=it(i.left,t,{...n,path:[...n.path,"allOf",0]}),s=it(i.right,t,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,c=[...o(a)?a.allOf:[a],...o(s)?s.allOf:[s]];r.allOf=c},g3=(e,t,r,n)=>{const i=e._zod.def,a=it(i.innerType,t,n),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},y3=(e,t,r,n)=>{const i=e._zod.def;it(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType},b3=(e,t,r,n)=>{const i=e._zod.def;it(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},E3=(e,t,r,n)=>{const i=e._zod.def;it(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},x3=(e,t,r,n)=>{const i=e._zod.def;it(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},O3=(e,t,r,n)=>{const i=e._zod.def,a=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;it(a,t,n);const s=t.seen.get(e);s.ref=a},w3=(e,t,r,n)=>{const i=e._zod.def;it(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,r.readOnly=!0},Iq=(e,t,r,n)=>{const i=e._zod.def;it(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType},S3=J("ZodISODateTime",(e,t)=>{kZ.init(e,t),Ve.init(e,t)});function T3(e){return L4(S3,e)}const P3=J("ZodISODate",(e,t)=>{DZ.init(e,t),Ve.init(e,t)});function A3(e){return U4(P3,e)}const R3=J("ZodISOTime",(e,t)=>{LZ.init(e,t),Ve.init(e,t)});function M3(e){return z4(R3,e)}const I3=J("ZodISODuration",(e,t)=>{UZ.init(e,t),Ve.init(e,t)});function C3(e){return B4(I3,e)}const j3=(e,t)=>{_q.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>NW(e,r)},flatten:{value:r=>jW(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,mg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,mg,2)}},isEmpty:{get(){return e.issues.length===0}}})},Tt=J("ZodError",j3,{Parent:Error}),N3=wy(Tt),q3=Sy(Tt),F3=Vp(Tt),k3=Gp(Tt),D3=kW(Tt),L3=DW(Tt),U3=LW(Tt),z3=UW(Tt),B3=zW(Tt),H3=BW(Tt),V3=HW(Tt),G3=VW(Tt),tt=J("ZodType",(e,t)=>(et.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:gp(e,"input"),output:gp(e,"output")}}),e.toJSONSchema=o3(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(_r(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)=>gr(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)=>F3(e,r,n),e.parseAsync=async(r,n)=>q3(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>k3(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>D3(e,r,n),e.decode=(r,n)=>L3(e,r,n),e.encodeAsync=async(r,n)=>U3(e,r,n),e.decodeAsync=async(r,n)=>z3(e,r,n),e.safeEncode=(r,n)=>B3(e,r,n),e.safeDecode=(r,n)=>H3(e,r,n),e.safeEncodeAsync=async(r,n)=>V3(e,r,n),e.safeDecodeAsync=async(r,n)=>G3(e,r,n),e.refine=(r,n)=>e.check(FK(r,n)),e.superRefine=r=>e.check(kK(r)),e.overwrite=r=>e.check(_i(r)),e.optional=()=>UP(e),e.exactOptional=()=>OK(e),e.nullable=()=>zP(e),e.nullish=()=>UP(zP(e)),e.nonoptional=r=>RK(e,r),e.array=()=>jq(e),e.or=r=>_K([e,r]),e.and=r=>yK(e,r),e.transform=r=>BP(e,EK(r)),e.default=r=>TK(e,r),e.prefault=r=>AK(e,r),e.catch=r=>IK(e,r),e.pipe=r=>BP(e,r),e.readonly=()=>NK(e),e.describe=r=>{const n=e.clone();return yl.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return yl.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return yl.get(e);const n=e.clone();return yl.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Cq=J("_ZodString",(e,t)=>{Ty.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,i,a)=>c3(e,n,i);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(G4(...n)),e.includes=(...n)=>e.check(K4(...n)),e.startsWith=(...n)=>e.check(Y4(...n)),e.endsWith=(...n)=>e.check(X4(...n)),e.min=(...n)=>e.check(_p(...n)),e.max=(...n)=>e.check(Tq(...n)),e.length=(...n)=>e.check(Pq(...n)),e.nonempty=(...n)=>e.check(_p(1,...n)),e.lowercase=n=>e.check(W4(n)),e.uppercase=n=>e.check(Z4(n)),e.trim=()=>e.check(Q4()),e.normalize=(...n)=>e.check(J4(...n)),e.toLowerCase=()=>e.check($4()),e.toUpperCase=()=>e.check(e3()),e.slugify=()=>e.check(t3())}),W3=J("ZodString",(e,t)=>{Ty.init(e,t),Cq.init(e,t),e.email=r=>e.check(g4(Z3,r)),e.url=r=>e.check(O4(K3,r)),e.jwt=r=>e.check(D4(uK,r)),e.emoji=r=>e.check(w4(Y3,r)),e.guid=r=>e.check(kP(DP,r)),e.uuid=r=>e.check(y4(kd,r)),e.uuidv4=r=>e.check(b4(kd,r)),e.uuidv6=r=>e.check(E4(kd,r)),e.uuidv7=r=>e.check(x4(kd,r)),e.nanoid=r=>e.check(S4(X3,r)),e.guid=r=>e.check(kP(DP,r)),e.cuid=r=>e.check(T4(J3,r)),e.cuid2=r=>e.check(P4(Q3,r)),e.ulid=r=>e.check(A4($3,r)),e.base64=r=>e.check(q4(oK,r)),e.base64url=r=>e.check(F4(sK,r)),e.xid=r=>e.check(R4(eK,r)),e.ksuid=r=>e.check(M4(tK,r)),e.ipv4=r=>e.check(I4(rK,r)),e.ipv6=r=>e.check(C4(nK,r)),e.cidrv4=r=>e.check(j4(iK,r)),e.cidrv6=r=>e.check(N4(aK,r)),e.e164=r=>e.check(k4(cK,r)),e.datetime=r=>e.check(T3(r)),e.date=r=>e.check(A3(r)),e.time=r=>e.check(M3(r)),e.duration=r=>e.check(C3(r))});function jt(e){return _4(W3,e)}const Ve=J("ZodStringFormat",(e,t)=>{ze.init(e,t),Cq.init(e,t)}),Z3=J("ZodEmail",(e,t)=>{AZ.init(e,t),Ve.init(e,t)}),DP=J("ZodGUID",(e,t)=>{TZ.init(e,t),Ve.init(e,t)}),kd=J("ZodUUID",(e,t)=>{PZ.init(e,t),Ve.init(e,t)}),K3=J("ZodURL",(e,t)=>{RZ.init(e,t),Ve.init(e,t)}),Y3=J("ZodEmoji",(e,t)=>{MZ.init(e,t),Ve.init(e,t)}),X3=J("ZodNanoID",(e,t)=>{IZ.init(e,t),Ve.init(e,t)}),J3=J("ZodCUID",(e,t)=>{CZ.init(e,t),Ve.init(e,t)}),Q3=J("ZodCUID2",(e,t)=>{jZ.init(e,t),Ve.init(e,t)}),$3=J("ZodULID",(e,t)=>{NZ.init(e,t),Ve.init(e,t)}),eK=J("ZodXID",(e,t)=>{qZ.init(e,t),Ve.init(e,t)}),tK=J("ZodKSUID",(e,t)=>{FZ.init(e,t),Ve.init(e,t)}),rK=J("ZodIPv4",(e,t)=>{zZ.init(e,t),Ve.init(e,t)}),nK=J("ZodIPv6",(e,t)=>{BZ.init(e,t),Ve.init(e,t)}),iK=J("ZodCIDRv4",(e,t)=>{HZ.init(e,t),Ve.init(e,t)}),aK=J("ZodCIDRv6",(e,t)=>{VZ.init(e,t),Ve.init(e,t)}),oK=J("ZodBase64",(e,t)=>{GZ.init(e,t),Ve.init(e,t)}),sK=J("ZodBase64URL",(e,t)=>{ZZ.init(e,t),Ve.init(e,t)}),cK=J("ZodE164",(e,t)=>{KZ.init(e,t),Ve.init(e,t)}),uK=J("ZodJWT",(e,t)=>{XZ.init(e,t),Ve.init(e,t)}),lK=J("ZodUnknown",(e,t)=>{JZ.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>l3()});function LP(){return H4(lK)}const dK=J("ZodNever",(e,t)=>{QZ.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>u3(e,r,n)});function pK(e){return V4(dK,e)}const fK=J("ZodArray",(e,t)=>{$Z.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>h3(e,r,n,i),e.element=t.element,e.min=(r,n)=>e.check(_p(r,n)),e.nonempty=r=>e.check(_p(1,r)),e.max=(r,n)=>e.check(Tq(r,n)),e.length=(r,n)=>e.check(Pq(r,n)),e.unwrap=()=>e.element});function jq(e,t){return r3(fK,e,t)}const hK=J("ZodObject",(e,t)=>{t4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>v3(e,r,n,i),je(e,"shape",()=>t.shape),e.keyof=()=>Nq(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:LP()}),e.loose=()=>e.clone({...e._zod.def,catchall:LP()}),e.strict=()=>e.clone({...e._zod.def,catchall:pK()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>AW(e,r),e.safeExtend=r=>RW(e,r),e.merge=r=>MW(e,r),e.pick=r=>TW(e,r),e.omit=r=>PW(e,r),e.partial=(...r)=>IW(qq,e,r[0]),e.required=(...r)=>CW(Fq,e,r[0])});function vK(e,t){const r={type:"object",shape:e??{},...ye(t)};return new hK(r)}const mK=J("ZodUnion",(e,t)=>{r4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>m3(e,r,n,i),e.options=t.options});function _K(e,t){return new mK({type:"union",options:e,...ye(t)})}const gK=J("ZodIntersection",(e,t)=>{n4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>_3(e,r,n,i)});function yK(e,t){return new gK({type:"intersection",left:e,right:t})}const gg=J("ZodEnum",(e,t)=>{i4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,i,a)=>d3(e,n,i),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{const a={};for(const s of n)if(r.has(s))a[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new gg({...t,checks:[],...ye(i),entries:a})},e.exclude=(n,i)=>{const a={...t.entries};for(const s of n)if(r.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new gg({...t,checks:[],...ye(i),entries:a})}});function Nq(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new gg({type:"enum",entries:r,...ye(t)})}const bK=J("ZodTransform",(e,t)=>{a4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>f3(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new lq(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(Ol(a,r.value,t));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(Ol(s))}};const i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)}});function EK(e){return new bK({type:"transform",transform:e})}const qq=J("ZodOptional",(e,t)=>{Sq.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>Iq(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function UP(e){return new qq({type:"optional",innerType:e})}const xK=J("ZodExactOptional",(e,t)=>{o4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>Iq(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function OK(e){return new xK({type:"optional",innerType:e})}const wK=J("ZodNullable",(e,t)=>{s4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>g3(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function zP(e){return new wK({type:"nullable",innerType:e})}const SK=J("ZodDefault",(e,t)=>{c4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>b3(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function TK(e,t){return new SK({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():hq(t)}})}const PK=J("ZodPrefault",(e,t)=>{u4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>E3(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function AK(e,t){return new PK({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():hq(t)}})}const Fq=J("ZodNonOptional",(e,t)=>{l4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>y3(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function RK(e,t){return new Fq({type:"nonoptional",innerType:e,...ye(t)})}const MK=J("ZodCatch",(e,t)=>{d4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>x3(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function IK(e,t){return new MK({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const CK=J("ZodPipe",(e,t)=>{p4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>O3(e,r,n,i),e.in=t.in,e.out=t.out});function BP(e,t){return new CK({type:"pipe",in:e,out:t})}const jK=J("ZodReadonly",(e,t)=>{f4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>w3(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function NK(e){return new jK({type:"readonly",innerType:e})}const qK=J("ZodCustom",(e,t)=>{h4.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>p3(e,r)});function FK(e,t={}){return n3(qK,e,t)}function kK(e){return i3(e)}const ci="nestjs-app-config",DK=jq(Nq(["verbose","debug","log","warn","error","fatal"])).default(["log"]),kq=vK({APP_PORT:jt().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:jt().optional(),LOGGER_LEVELS:jt().optional().default("verbose,debug,log,warn,error,fatal").transform(e=>e.split(",").map(t=>t.trim())),CORS_ORIGIN:jt().default("*"),CORS_METHODS:jt().default("GET,POST,PUT,DELETE,PATCH,OPTIONS").transform(e=>e.split(",").map(t=>t.trim())),CORS_ALLOWED_HEADERS:jt().default("Content-Type,Authorization").transform(e=>e.split(",").map(t=>t.trim())),CORS_CREDENTIALS:jt().default("true").transform(e=>e.toLowerCase()==="true"),CORS_MAX_AGE:jt().default("3600").transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:"CORS_MAX_AGE must be a valid number"}),CORE_API_VERSION:jt().default("latest"),LOG_LEVELS:jt().default("verbose,debug,log,warn,error,fatal").transform(e=>{const t=e.split(",");return DK.parse(t)})}),LK=e=>lp.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[lp.registerAs(e,()=>VB(kq))]}),UK=()=>LK(ci);var xt=me(),km={},Dm={},fc={},HP;function Dq(){if(HP)return fc;HP=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.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,i){return this.instance.listen(r,n,i)}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 fc.AbstractHttpAdapter=e,fc}var VP;function zK(){return VP||(VP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(Dq(),e)})(Dm)),Dm}var hc={},GP;function yr(){if(GP)return hc;GP=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.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 hc.ApplicationConfig=e,hc}var Lm={},WP;function gi(){return WP||(WP=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"}})(Lm)),Lm}var Um={},Jn={},vc={},ZP;function An(){if(ZP)return vc;ZP=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.MetadataScanner=void 0;const e=ie();class t{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(n,i,a){if(!i)return[];const s=new Map,o=[];do for(const c of Object.getOwnPropertyNames(i)){if(s.has(c))continue;s.set(c,!0);const u=Object.getOwnPropertyDescriptor(i,c);if(u.set||u.get||(0,e.isConstructor)(c)||!(0,e.isFunction)(i[c]))continue;const p=a(c);(0,e.isNil)(p)||o.push(p)}while((i=Reflect.getPrototypeOf(i))&&i!==Object.prototype);return o}*getAllFilteredMethodNames(n){yield*this.getAllMethodNames(n)}getAllMethodNames(n){if(!n)return[];if(this.cachedScannedPrototypes.has(n))return this.cachedScannedPrototypes.get(n);const i=new Map,a=[];this.cachedScannedPrototypes.set(n,a);do for(const s of Object.getOwnPropertyNames(n)){if(i.has(s))continue;i.set(s,!0);const o=Object.getOwnPropertyDescriptor(n,s);o.set||o.get||(0,e.isConstructor)(s)||!(0,e.isFunction)(n[s])||a.push(s)}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype);return a}}return vc.MetadataScanner=t,vc}var Qn={},mc={},KP;function yi(){if(KP)return mc;KP=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.ModulesContainer=void 0;const e=Sn(),t=yn();class r extends Map{constructor(){super(...arguments),this._applicationId=(0,t.uid)(21),this._rpcTargetRegistry$=new e.ReplaySubject}get applicationId(){return this._applicationId}getById(i){return Array.from(this.values()).find(a=>a.id===i)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(i){this._rpcTargetRegistry$.next(i)}}return mc.ModulesContainer=r,mc}var _c={},YP;function Lq(){if(YP)return _c;YP=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.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,i){if(i.has(r))i.get(r).add(n);else{const a=new Set;a.add(n),i.set(r,a)}}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,i){const a=e.getMetaKeyByInstanceWrapper(n);if(!a)return;let s;i.has(r)?s=i.get(r):(s=new Map,i.set(r,s)),this.insertByMetaKey(a,n,s)}static getMetaKeyByInstanceWrapper(r){return this.metaHostLinks.get(r.metatype||r.inject?r.instance?.constructor??r.metatype:r.metatype)}}return _c.DiscoverableMetaHostCollection=e,e.metaHostLinks=new Map,e.providersByMetaKey=new WeakMap,e.controllersByMetaKey=new WeakMap,_c}var XP;function Uq(){if(XP)return Qn;XP=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.DiscoveryService=void 0;const e=oe(),t=me(),r=yn(),n=yi(),i=Lq();let a=class{constructor(o){this.modulesContainer=o}static createDecorator(){const o=(0,r.uid)(21),c=u=>(p,l,d)=>{d||i.DiscoverableMetaHostCollection.addClassMetaHostLink(p,o),(0,t.SetMetadata)(o,u??{})(p,l,d)};return c.KEY=o,c}getProviders(o={},c=this.getModules(o)){if("metadataKey"in o){const p=i.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,o.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.providers.values()]);return(0,t.flatten)(u)}getControllers(o={},c=this.getModules(o)){if("metadataKey"in o){const p=i.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,o.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.controllers.values()]);return(0,t.flatten)(u)}getMetadataByDecorator(o,c,u){if(u)return Reflect.getMetadata(o.KEY,c.instance[u]);const p=c.instance?.constructor??c.metatype;return Reflect.getMetadata(o.KEY,p)}getModules(o={}){return"include"in o?this.includeWhitelisted(o.include):[...this.modulesContainer.values()]}includeWhitelisted(o){return[...this.modulesContainer.values()].filter(({metatype:u})=>o.some(p=>p===u))}};return Qn.DiscoveryService=a,Qn.DiscoveryService=a=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[n.ModulesContainer])],a),Qn}var JP;function BK(){if(JP)return Jn;JP=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.DiscoveryModule=void 0;const e=oe(),t=me(),r=An(),n=Uq();let i=class{};return Jn.DiscoveryModule=i,Jn.DiscoveryModule=i=e.__decorate([(0,t.Module)({providers:[r.MetadataScanner,n.DiscoveryService],exports:[r.MetadataScanner,n.DiscoveryService]})],i),Jn}var QP;function HK(){return QP||(QP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(BK(),e),t.__exportStar(Uq(),e)})(Um)),Um}var zm={},gc={},yc={},$P;function zl(){if($P)return yc;$P=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.HttpAdapterHost=void 0;const e=Sn();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 yc.HttpAdapterHost=t,yc}var eA;function zq(){if(eA)return gc;eA=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.BaseExceptionFilter=void 0;const e=oe(),t=me(),r=ie(),n=gi(),i=zl();class a{constructor(o){this.applicationRef=o}catch(o,c){const u=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(o instanceof t.HttpException))return this.handleUnknownError(o,c,u);const p=o.getResponse(),l=(0,r.isObject)(p)?p:{statusCode:o.getStatus(),message:p},d=c.getArgByIndex(1);u.isHeadersSent(d)?u.end(d):u.reply(d,l,o.getStatus())}handleUnknownError(o,c,u){const p=this.isHttpError(o)?{statusCode:o.statusCode,message:o.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),o instanceof t.IntrinsicException||a.logger.error(o)}isExceptionObject(o){return(0,r.isObject)(o)&&!!o.message}isHttpError(o){return o?.statusCode&&o?.message}}return gc.BaseExceptionFilter=a,a.logger=new t.Logger("ExceptionsHandler"),e.__decorate([(0,t.Optional)(),(0,t.Inject)(),e.__metadata("design:type",i.HttpAdapterHost)],a.prototype,"httpAdapterHost",void 0),gc}var tA;function VK(){return tA||(tA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(zq(),e)})(zm)),zm}var Bm={},$n={},un={},rA;function Rn(){return rA||(rA=1,Object.defineProperty(un,"__esModule",{value:!0}),un.REQUEST_CONTEXT_ID=un.REQUEST=void 0,un.REQUEST="REQUEST",un.REQUEST_CONTEXT_ID=Symbol("REQUEST_CONTEXT_ID")),un}var nA;function Bl(){if(nA)return $n;nA=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.ContextIdFactory=void 0,$n.createContextId=r;const e=ie(),t=Rn();function r(){return{id:Math.random()}}class n{static create(){return r()}static getByRequest(a,s=["raw"]){if(!a)return n.create();if(a[t.REQUEST_CONTEXT_ID])return a[t.REQUEST_CONTEXT_ID];for(const u of s)if(a[u]?.[t.REQUEST_CONTEXT_ID])return a[u][t.REQUEST_CONTEXT_ID];if(!this.strategy)return n.create();const o=r(),c=this.strategy.attach(o,a);return this.isContextIdResolverWithPayload(c)?(o.getParent=c.resolve,o.payload=c.payload):o.getParent=c,o}static apply(a){this.strategy=a}static isContextIdResolverWithPayload(a){return(0,e.isObject)(a)}}return $n.ContextIdFactory=n,$n}var bc={},Ec={},ln={},iA;function ct(){if(iA)return ln;iA=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.STATIC_CONTEXT=ln.CONTROLLER_ID_KEY=void 0,ln.CONTROLLER_ID_KEY="CONTROLLER_ID";const e=1;return ln.STATIC_CONTEXT=Object.freeze({id:e}),ln}var xc={},Oc={},aA;function Zp(){if(aA)return Oc;aA=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.ContextCreator=void 0;const e=ct();class t{createContext(n,i,a,s=e.STATIC_CONTEXT,o){const c=this.getGlobalMetadata&&this.getGlobalMetadata(s,o),u=this.reflectClassMetadata(n,a),p=this.reflectMethodMetadata(i,a);return[...this.createConcreteContext(c||[],s,o),...this.createConcreteContext(u,s,o),...this.createConcreteContext(p,s,o)]}reflectClassMetadata(n,i){const a=Object.getPrototypeOf(n);return Reflect.getMetadata(i,a.constructor)}reflectMethodMetadata(n,i){return Reflect.getMetadata(i,n)}getContextId(n,i){return n.getParent?n.getParent({token:i.token,isTreeDurable:i.isDependencyTreeDurable()}):n}}return Oc.ContextCreator=t,Oc}var oA;function Bq(){if(oA)return xc;oA=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.BaseExceptionFilterContext=void 0;const e=Oe(),t=ie(),r=Ze(),n=Zp(),i=ct();class a extends n.ContextCreator{constructor(o){super(),this.container=o}createConcreteContext(o,c=i.STATIC_CONTEXT,u){return(0,t.isEmpty)(o)?[]:(0,r.iterate)(o).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(o,c=i.STATIC_CONTEXT,u){if(!!o.catch)return o;const l=this.getInstanceByMetatype(o);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(o){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(o)}reflectCatchExceptions(o){const c=Object.getPrototypeOf(o);return Reflect.getMetadata(e.FILTER_CATCH_EXCEPTIONS,c.constructor)||[]}}return xc.BaseExceptionFilterContext=a,xc}var wc={},Sc={},sA;function Hq(){if(sA)return Sc;sA=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.selectExceptionFilterMetadata=void 0;const e=(t,r)=>t.find(({exceptionMetatypes:n})=>!n.length||n.some(i=>r instanceof i));return Sc.selectExceptionFilterMetadata=e,Sc}var Tc={},Pc={},cA;function rt(){if(cA)return Pc;cA=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.RuntimeException=void 0;class e extends Error{constructor(r=""){super(r)}what(){return this.message}}return Pc.RuntimeException=e,Pc}var Re={},uA;function Pt(){if(uA)return Re;uA=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=Re.INVALID_EXCEPTION_FILTER=Re.UNHANDLED_RUNTIME_EXCEPTION=Re.INVALID_MIDDLEWARE_CONFIGURATION=Re.UNKNOWN_REQUEST_MAPPING=Re.INVALID_CLASS_SCOPE_MESSAGE=Re.INVALID_CLASS_MESSAGE=Re.UNKNOWN_EXPORT_MESSAGE=Re.UNDEFINED_MODULE_MESSAGE=Re.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=Re.INVALID_MODULE_MESSAGE=Re.UNDEFINED_FORWARDREF_MESSAGE=Re.INVALID_MIDDLEWARE_MESSAGE=Re.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;const e=ie(),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",i=m=>(m||[]).map(t).join(" -> "),a=(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=`
|
|
81
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Wh,s=!jh.jitless,c=s&&Gh.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Z_([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function ev(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ag(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>cg(e,r,Mh())))}),t)}var tv=Y(`$ZodUnion`,(e,t)=>{__.init(e,t),X(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),X(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),X(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),X(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Lh(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>ev(t,i,e,a)):ev(s,i,e,a)}}),nv=Y(`$ZodIntersection`,(e,t)=>{__.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>iv(e,t,n)):iv(e,i,a)}});function rv(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kh(e)&&Kh(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=rv(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=rv(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function iv(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ag(e))return e;let o=rv(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var av=Y(`$ZodEnum`,(e,t)=>{__.init(e,t);let n=Nh(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Jh.has(typeof e)).map(e=>typeof e==`string`?Yh(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ov=Y(`$ZodTransform`,(e,t)=>{__.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ah(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new kh;return n.value=i,n}});function sv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var cv=Y(`$ZodOptional`,(e,t)=>{__.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),X(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Lh(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>sv(t,e.value)):sv(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),lv=Y(`$ZodExactOptional`,(e,t)=>{cv.init(e,t),X(e._zod,`values`,()=>t.innerType._zod.values),X(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),uv=Y(`$ZodNullable`,(e,t)=>{__.init(e,t),X(e._zod,`optin`,()=>t.innerType._zod.optin),X(e._zod,`optout`,()=>t.innerType._zod.optout),X(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Lh(e.source)}|null)$`):void 0}),X(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),dv=Y(`$ZodDefault`,(e,t)=>{__.init(e,t),e._zod.optin=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>fv(e,t)):fv(r,t)}});function fv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var pv=Y(`$ZodPrefault`,(e,t)=>{__.init(e,t),e._zod.optin=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),mv=Y(`$ZodNonOptional`,(e,t)=>{__.init(e,t),X(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>hv(t,e)):hv(i,e)}});function hv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var gv=Y(`$ZodCatch`,(e,t)=>{__.init(e,t),X(e._zod,`optin`,()=>t.innerType._zod.optin),X(e._zod,`optout`,()=>t.innerType._zod.optout),X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>cg(e,n,Mh()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>cg(e,n,Mh()))},input:e.value}),e.issues=[]),e)}}),_v=Y(`$ZodPipe`,(e,t)=>{__.init(e,t),X(e._zod,`values`,()=>t.in._zod.values),X(e._zod,`optin`,()=>t.in._zod.optin),X(e._zod,`optout`,()=>t.out._zod.optout),X(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>vv(e,t.in,n)):vv(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>vv(e,t.out,n)):vv(r,t.out,n)}});function vv(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var yv=Y(`$ZodReadonly`,(e,t)=>{__.init(e,t),X(e._zod,`propValues`,()=>t.innerType._zod.propValues),X(e._zod,`values`,()=>t.innerType._zod.values),X(e._zod,`optin`,()=>t.innerType?._zod?.optin),X(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(bv):bv(r)}});function bv(e){return e.value=Object.freeze(e.value),e}var xv=Y(`$ZodCustom`,(e,t)=>{r_.init(e,t),__.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Sv(t,n,r,e));Sv(i,n,r,e)}});function Sv(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ug(e))}}var Cv,wv=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Tv(){return new wv}(Cv=globalThis).__zod_globalRegistry??(Cv.__zod_globalRegistry=Tv());var Ev=globalThis.__zod_globalRegistry;function Dv(e,t){return new e({type:`string`,...Z(t)})}function Ov(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Z(t)})}function kv(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Z(t)})}function Av(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Z(t)})}function jv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Z(t)})}function Mv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Z(t)})}function Nv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Z(t)})}function Pv(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Z(t)})}function Fv(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Z(t)})}function Iv(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Z(t)})}function Lv(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Z(t)})}function Rv(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Z(t)})}function zv(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Z(t)})}function Bv(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Z(t)})}function Vv(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Z(t)})}function Hv(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Z(t)})}function Uv(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Z(t)})}function Wv(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Z(t)})}function Gv(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Z(t)})}function Kv(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Z(t)})}function qv(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Z(t)})}function Jv(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Z(t)})}function Yv(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Z(t)})}function Xv(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Z(t)})}function Zv(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Z(t)})}function Qv(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Z(t)})}function $v(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Z(t)})}function ey(e){return new e({type:`unknown`})}function ty(e,t){return new e({type:`never`,...Z(t)})}function ny(e,t){return new i_({check:`max_length`,...Z(t),maximum:e})}function ry(e,t){return new a_({check:`min_length`,...Z(t),minimum:e})}function iy(e,t){return new o_({check:`length_equals`,...Z(t),length:e})}function ay(e,t){return new c_({check:`string_format`,format:`regex`,...Z(t),pattern:e})}function oy(e){return new l_({check:`string_format`,format:`lowercase`,...Z(e)})}function sy(e){return new u_({check:`string_format`,format:`uppercase`,...Z(e)})}function cy(e,t){return new d_({check:`string_format`,format:`includes`,...Z(t),includes:e})}function ly(e,t){return new f_({check:`string_format`,format:`starts_with`,...Z(t),prefix:e})}function uy(e,t){return new p_({check:`string_format`,format:`ends_with`,...Z(t),suffix:e})}function dy(e){return new m_({check:`overwrite`,tx:e})}function fy(e){return dy(t=>t.normalize(e))}function py(){return dy(e=>e.trim())}function my(){return dy(e=>e.toLowerCase())}function hy(){return dy(e=>e.toUpperCase())}function gy(){return dy(e=>Hh(e))}function _y(e,t,n){return new e({type:`array`,element:t,...Z(n)})}function vy(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Z(n)})}function yy(e){let t=by(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(ug(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(ug(r))}},e(n.value,n)));return t}function by(e,t){let n=new r_({check:`custom`,...Z(t)});return n._zod.check=e,n}function xy(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??Ev,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 Sy(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Sy(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Ty(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Cy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
87
82
|
|
|
83
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function wy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Dy(t,`input`,e.processors),output:Dy(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ty(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ty(r.element,n);if(r.type===`set`)return Ty(r.valueType,n);if(r.type===`lazy`)return Ty(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Ty(r.innerType,n);if(r.type===`intersection`)return Ty(r.left,n)||Ty(r.right,n);if(r.type===`record`||r.type===`map`)return Ty(r.keyType,n)||Ty(r.valueType,n);if(r.type===`pipe`)return Ty(r.in,n)||Ty(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ty(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ty(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ty(e,n))return!0;return!!(r.rest&&Ty(r.rest,n))}return!1}var Ey=(e,t={})=>n=>{let r=xy({...n,processors:t});return Sy(e,r),Cy(r,e),wy(r,e)},Dy=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=xy({...i??{},target:a,io:t,processors:n});return Sy(e,o),Cy(o,e),wy(o,e)},Oy={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ky=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Oy[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Ay=(e,t,n,r)=>{n.not={}},jy=(e,t,n,r)=>{let i=e._zod.def,a=Nh(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},My=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Ny=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Py=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Sy(a.element,t,{...r,path:[...r.path,`items`]})},Fy=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Sy(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Sy(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Iy=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Sy(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Ly=(e,t,n,r)=>{let i=e._zod.def,a=Sy(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Sy(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Ry=(e,t,n,r)=>{let i=e._zod.def,a=Sy(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},zy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},By=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Vy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Hy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Uy=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Sy(a,t,r);let o=t.seen.get(e);o.ref=a},Wy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Gy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ky=Y(`ZodISODateTime`,(e,t)=>{A_.init(e,t),$.init(e,t)});function qy(e){return Xv(Ky,e)}var Jy=Y(`ZodISODate`,(e,t)=>{j_.init(e,t),$.init(e,t)});function Yy(e){return Zv(Jy,e)}var Xy=Y(`ZodISOTime`,(e,t)=>{M_.init(e,t),$.init(e,t)});function Zy(e){return Qv(Xy,e)}var Qy=Y(`ZodISODuration`,(e,t)=>{N_.init(e,t),$.init(e,t)});function $y(e){return $v(Qy,e)}var eb=(e,t)=>{fg.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>hg(e,t)},flatten:{value:t=>mg(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ph,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ph,2)}},isEmpty:{get(){return e.issues.length===0}}})};Y(`ZodError`,eb);var tb=Y(`ZodError`,eb,{Parent:Error}),nb=gg(tb),rb=_g(tb),ib=vg(tb),ab=bg(tb),ob=Sg(tb),sb=Cg(tb),cb=wg(tb),lb=Tg(tb),ub=Eg(tb),db=Dg(tb),fb=Og(tb),pb=kg(tb),mb=Y(`ZodType`,(e,t)=>(__.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Dy(e,`input`),output:Dy(e,`output`)}}),e.toJSONSchema=Ey(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Bh(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>Xh(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>nb(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ib(e,t,n),e.parseAsync=async(t,n)=>rb(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ab(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ob(e,t,n),e.decode=(t,n)=>sb(e,t,n),e.encodeAsync=async(t,n)=>cb(e,t,n),e.decodeAsync=async(t,n)=>lb(e,t,n),e.safeEncode=(t,n)=>ub(e,t,n),e.safeDecode=(t,n)=>db(e,t,n),e.safeEncodeAsync=async(t,n)=>fb(e,t,n),e.safeDecodeAsync=async(t,n)=>pb(e,t,n),e.refine=(t,n)=>e.check(vx(t,n)),e.superRefine=t=>e.check(yx(t)),e.overwrite=t=>e.check(dy(t)),e.optional=()=>ex(e),e.exactOptional=()=>nx(e),e.nullable=()=>ix(e),e.nullish=()=>ex(ix(e)),e.nonoptional=t=>ux(e,t),e.array=()=>Hb(e),e.or=t=>Kb([e,t]),e.and=t=>Jb(e,t),e.transform=t=>mx(e,Qb(t)),e.default=t=>ox(e,t),e.prefault=t=>cx(e,t),e.catch=t=>fx(e,t),e.pipe=t=>mx(e,t),e.readonly=()=>gx(e),e.describe=t=>{let n=e.clone();return Ev.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Ev.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Ev.get(e);let n=e.clone();return Ev.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),hb=Y(`_ZodString`,(e,t)=>{v_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ky(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ay(...t)),e.includes=(...t)=>e.check(cy(...t)),e.startsWith=(...t)=>e.check(ly(...t)),e.endsWith=(...t)=>e.check(uy(...t)),e.min=(...t)=>e.check(ry(...t)),e.max=(...t)=>e.check(ny(...t)),e.length=(...t)=>e.check(iy(...t)),e.nonempty=(...t)=>e.check(ry(1,...t)),e.lowercase=t=>e.check(oy(t)),e.uppercase=t=>e.check(sy(t)),e.trim=()=>e.check(py()),e.normalize=(...t)=>e.check(fy(...t)),e.toLowerCase=()=>e.check(my()),e.toUpperCase=()=>e.check(hy()),e.slugify=()=>e.check(gy())}),gb=Y(`ZodString`,(e,t)=>{v_.init(e,t),hb.init(e,t),e.email=t=>e.check(Ov(vb,t)),e.url=t=>e.check(Pv(xb,t)),e.jwt=t=>e.check(Yv(Ib,t)),e.emoji=t=>e.check(Fv(Sb,t)),e.guid=t=>e.check(kv(yb,t)),e.uuid=t=>e.check(Av(bb,t)),e.uuidv4=t=>e.check(jv(bb,t)),e.uuidv6=t=>e.check(Mv(bb,t)),e.uuidv7=t=>e.check(Nv(bb,t)),e.nanoid=t=>e.check(Iv(Cb,t)),e.guid=t=>e.check(kv(yb,t)),e.cuid=t=>e.check(Lv(wb,t)),e.cuid2=t=>e.check(Rv(Tb,t)),e.ulid=t=>e.check(zv(Eb,t)),e.base64=t=>e.check(Kv(Nb,t)),e.base64url=t=>e.check(qv(Pb,t)),e.xid=t=>e.check(Bv(Db,t)),e.ksuid=t=>e.check(Vv(Ob,t)),e.ipv4=t=>e.check(Hv(kb,t)),e.ipv6=t=>e.check(Uv(Ab,t)),e.cidrv4=t=>e.check(Wv(jb,t)),e.cidrv6=t=>e.check(Gv(Mb,t)),e.e164=t=>e.check(Jv(Fb,t)),e.datetime=t=>e.check(qy(t)),e.date=t=>e.check(Yy(t)),e.time=t=>e.check(Zy(t)),e.duration=t=>e.check($y(t))});function _b(e){return Dv(gb,e)}var $=Y(`ZodStringFormat`,(e,t)=>{Q.init(e,t),hb.init(e,t)}),vb=Y(`ZodEmail`,(e,t)=>{x_.init(e,t),$.init(e,t)}),yb=Y(`ZodGUID`,(e,t)=>{y_.init(e,t),$.init(e,t)}),bb=Y(`ZodUUID`,(e,t)=>{b_.init(e,t),$.init(e,t)}),xb=Y(`ZodURL`,(e,t)=>{S_.init(e,t),$.init(e,t)}),Sb=Y(`ZodEmoji`,(e,t)=>{C_.init(e,t),$.init(e,t)}),Cb=Y(`ZodNanoID`,(e,t)=>{w_.init(e,t),$.init(e,t)}),wb=Y(`ZodCUID`,(e,t)=>{T_.init(e,t),$.init(e,t)}),Tb=Y(`ZodCUID2`,(e,t)=>{E_.init(e,t),$.init(e,t)}),Eb=Y(`ZodULID`,(e,t)=>{D_.init(e,t),$.init(e,t)}),Db=Y(`ZodXID`,(e,t)=>{O_.init(e,t),$.init(e,t)}),Ob=Y(`ZodKSUID`,(e,t)=>{k_.init(e,t),$.init(e,t)}),kb=Y(`ZodIPv4`,(e,t)=>{P_.init(e,t),$.init(e,t)}),Ab=Y(`ZodIPv6`,(e,t)=>{F_.init(e,t),$.init(e,t)}),jb=Y(`ZodCIDRv4`,(e,t)=>{I_.init(e,t),$.init(e,t)}),Mb=Y(`ZodCIDRv6`,(e,t)=>{L_.init(e,t),$.init(e,t)}),Nb=Y(`ZodBase64`,(e,t)=>{z_.init(e,t),$.init(e,t)}),Pb=Y(`ZodBase64URL`,(e,t)=>{V_.init(e,t),$.init(e,t)}),Fb=Y(`ZodE164`,(e,t)=>{H_.init(e,t),$.init(e,t)}),Ib=Y(`ZodJWT`,(e,t)=>{W_.init(e,t),$.init(e,t)}),Lb=Y(`ZodUnknown`,(e,t)=>{G_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Rb(){return ey(Lb)}var zb=Y(`ZodNever`,(e,t)=>{K_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ay(e,t,n,r)});function Bb(e){return ty(zb,e)}var Vb=Y(`ZodArray`,(e,t)=>{J_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Py(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(ry(t,n)),e.nonempty=t=>e.check(ry(1,t)),e.max=(t,n)=>e.check(ny(t,n)),e.length=(t,n)=>e.check(iy(t,n)),e.unwrap=()=>e.element});function Hb(e,t){return _y(Vb,e,t)}var Ub=Y(`ZodObject`,(e,t)=>{$_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fy(e,t,n,r),X(e,`shape`,()=>t.shape),e.keyof=()=>Xb(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Rb()}),e.loose=()=>e.clone({...e._zod.def,catchall:Rb()}),e.strict=()=>e.clone({...e._zod.def,catchall:Bb()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>eg(e,t),e.safeExtend=t=>tg(e,t),e.merge=t=>ng(e,t),e.pick=t=>Qh(e,t),e.omit=t=>$h(e,t),e.partial=(...t)=>rg($b,e,t[0]),e.required=(...t)=>ig(lx,e,t[0])});function Wb(e,t){return new Ub({type:`object`,shape:e??{},...Z(t)})}var Gb=Y(`ZodUnion`,(e,t)=>{tv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iy(e,t,n,r),e.options=t.options});function Kb(e,t){return new Gb({type:`union`,options:e,...Z(t)})}var qb=Y(`ZodIntersection`,(e,t)=>{nv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ly(e,t,n,r)});function Jb(e,t){return new qb({type:`intersection`,left:e,right:t})}var Yb=Y(`ZodEnum`,(e,t)=>{av.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jy(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Yb({...t,checks:[],...Z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Yb({...t,checks:[],...Z(r),entries:i})}});function Xb(e,t){return new Yb({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Z(t)})}var Zb=Y(`ZodTransform`,(e,t)=>{ov.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ny(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ah(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ug(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ug(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Qb(e){return new Zb({type:`transform`,transform:e})}var $b=Y(`ZodOptional`,(e,t)=>{cv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ex(e){return new $b({type:`optional`,innerType:e})}var tx=Y(`ZodExactOptional`,(e,t)=>{lv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nx(e){return new tx({type:`optional`,innerType:e})}var rx=Y(`ZodNullable`,(e,t)=>{uv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ry(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ix(e){return new rx({type:`nullable`,innerType:e})}var ax=Y(`ZodDefault`,(e,t)=>{dv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>By(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ox(e,t){return new ax({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():qh(t)}})}var sx=Y(`ZodPrefault`,(e,t)=>{pv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cx(e,t){return new sx({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():qh(t)}})}var lx=Y(`ZodNonOptional`,(e,t)=>{mv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ux(e,t){return new lx({type:`nonoptional`,innerType:e,...Z(t)})}var dx=Y(`ZodCatch`,(e,t)=>{gv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fx(e,t){return new dx({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var px=Y(`ZodPipe`,(e,t)=>{_v.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uy(e,t,n,r),e.in=t.in,e.out=t.out});function mx(e,t){return new px({type:`pipe`,in:e,out:t})}var hx=Y(`ZodReadonly`,(e,t)=>{yv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gx(e){return new hx({type:`readonly`,innerType:e})}var _x=Y(`ZodCustom`,(e,t)=>{xv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>My(e,t,n,r)});function vx(e,t={}){return vy(_x,e,t)}function yx(e){return yy(e)}var bx=`nestjs-app-config`,xx=Hb(Xb([`verbose`,`debug`,`log`,`warn`,`error`,`fatal`])).default([`log`]),Sx=Wb({APP_PORT:_b().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:_b().optional(),LOGGER_LEVELS:_b().optional().default(`verbose,debug,log,warn,error,fatal`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_ORIGIN:_b().default(`*`),CORS_METHODS:_b().default(`GET,POST,PUT,DELETE,PATCH,OPTIONS`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_ALLOWED_HEADERS:_b().default(`Content-Type,Authorization`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_CREDENTIALS:_b().default(`true`).transform(e=>e.toLowerCase()===`true`),CORS_MAX_AGE:_b().default(`3600`).transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:`CORS_MAX_AGE must be a valid number`}),CORE_API_VERSION:_b().default(`latest`),LOG_LEVELS:_b().default(`verbose,debug,log,warn,error,fatal`).transform(e=>{let t=e.split(`,`);return xx.parse(t)})}),Cx=e=>dl.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[(0,dl.registerAs)(e,()=>fl(Sx))]}),wx=()=>Cx(bx),Tx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractHttpAdapter=void 0,e.AbstractHttpAdapter=class{constructor(e){this.instance=e}async init(){}use(...e){return this.instance.use(...e)}get(...e){return this.instance.get(...e)}post(...e){return this.instance.post(...e)}head(...e){return this.instance.head(...e)}delete(...e){return this.instance.delete(...e)}put(...e){return this.instance.put(...e)}patch(...e){return this.instance.patch(...e)}propfind(...e){return this.instance.propfind(...e)}proppatch(...e){return this.instance.proppatch(...e)}mkcol(...e){return this.instance.mkcol(...e)}copy(...e){return this.instance.copy(...e)}move(...e){return this.instance.move(...e)}lock(...e){return this.instance.lock(...e)}unlock(...e){return this.instance.unlock(...e)}all(...e){return this.instance.all(...e)}search(...e){return this.instance.search(...e)}options(...e){return this.instance.options(...e)}listen(e,t,n){return this.instance.listen(e,t,n)}getHttpServer(){return this.httpServer}setHttpServer(e){this.httpServer=e}setInstance(e){this.instance=e}getInstance(){return this.instance}normalizePath(e){return e}setOnRouteTriggered(e){this.onRouteTriggered=e}getOnRouteTriggered(){return this.onRouteTriggered}setOnRequestHook(e){}setOnResponseHook(e){}}})),Ex=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(Tx(),e)})),Dx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ApplicationConfig=void 0,e.ApplicationConfig=class{constructor(e=null){this.ioAdapter=e,this.globalPrefix=``,this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(e){this.globalPrefix=e}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(e){this.globalPrefixOptions=e}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(e){this.ioAdapter=e}getIoAdapter(){return this.ioAdapter}addGlobalPipe(e){this.globalPipes.push(e)}useGlobalPipes(...e){this.globalPipes=this.globalPipes.concat(e)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(e){this.globalFilters.push(e)}useGlobalFilters(...e){this.globalFilters=this.globalFilters.concat(e)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(e){this.globalInterceptors.push(e)}useGlobalInterceptors(...e){this.globalInterceptors=this.globalInterceptors.concat(e)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(e){this.globalGuards.push(e)}useGlobalGuards(...e){this.globalGuards=this.globalGuards.concat(e)}addGlobalRequestInterceptor(e){this.globalRequestInterceptors.push(e)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(e){this.globalRequestPipes.push(e)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(e){this.globalRequestFilters.push(e)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(e){this.globalRequestGuards.push(e)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(e){Array.isArray(e.defaultVersion)&&(e.defaultVersion=Array.from(new Set(e.defaultVersion))),this.versioningOptions=e}getVersioning(){return this.versioningOptions}}})),Ox=s((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`}})),kx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MetadataScanner=void 0;var t=A();e.MetadataScanner=class{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(e,n,r){if(!n)return[];let i=new Map,a=[];do for(let e of Object.getOwnPropertyNames(n)){if(i.has(e))continue;i.set(e,!0);let o=Object.getOwnPropertyDescriptor(n,e);if(o.set||o.get||(0,t.isConstructor)(e)||!(0,t.isFunction)(n[e]))continue;let s=r(e);(0,t.isNil)(s)||a.push(s)}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype);return a}*getAllFilteredMethodNames(e){yield*this.getAllMethodNames(e)}getAllMethodNames(e){if(!e)return[];if(this.cachedScannedPrototypes.has(e))return this.cachedScannedPrototypes.get(e);let n=new Map,r=[];this.cachedScannedPrototypes.set(e,r);do for(let i of Object.getOwnPropertyNames(e)){if(n.has(i))continue;n.set(i,!0);let a=Object.getOwnPropertyDescriptor(e,i);a.set||a.get||(0,t.isConstructor)(i)||!(0,t.isFunction)(e[i])||r.push(i)}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return r}}})),Ax=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModulesContainer=void 0;var t=Wc(),n=M();e.ModulesContainer=class extends Map{constructor(){super(...arguments),this._applicationId=(0,n.uid)(21),this._rpcTargetRegistry$=new t.ReplaySubject}get applicationId(){return this._applicationId}getById(e){return Array.from(this.values()).find(t=>t.id===e)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(e){this._rpcTargetRegistry$.next(e)}}})),jx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoverableMetaHostCollection=void 0;var t=class e{static addClassMetaHostLink(e,t){this.metaHostLinks.set(e,t)}static inspectProvider(e,t){return this.inspectInstanceWrapper(e,t,this.providersByMetaKey)}static inspectController(e,t){return this.inspectInstanceWrapper(e,t,this.controllersByMetaKey)}static insertByMetaKey(e,t,n){if(n.has(e))n.get(e).add(t);else{let r=new Set;r.add(t),n.set(e,r)}}static getProvidersByMetaKey(e,t){return this.providersByMetaKey.get(e)?.get(t)??new Set}static getControllersByMetaKey(e,t){return this.controllersByMetaKey.get(e)?.get(t)??new Set}static inspectInstanceWrapper(t,n,r){let i=e.getMetaKeyByInstanceWrapper(n);if(!i)return;let a;r.has(t)?a=r.get(t):(a=new Map,r.set(t,a)),this.insertByMetaKey(i,n,a)}static getMetaKeyByInstanceWrapper(e){return this.metaHostLinks.get(e.metatype||e.inject?e.instance?.constructor??e.metatype:e.metatype)}};e.DiscoverableMetaHostCollection=t,t.metaHostLinks=new Map,t.providersByMetaKey=new WeakMap,t.controllersByMetaKey=new WeakMap})),Mx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoveryService=void 0;var t=E(),n=H(),r=M(),i=Ax(),a=jx(),o=class{constructor(e){this.modulesContainer=e}static createDecorator(){let e=(0,r.uid)(21),t=t=>(r,i,o)=>{o||a.DiscoverableMetaHostCollection.addClassMetaHostLink(r,e),(0,n.SetMetadata)(e,t??{})(r,i,o)};return t.KEY=e,t}getProviders(e={},t=this.getModules(e)){if(`metadataKey`in e){let t=a.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,e.metadataKey);return Array.from(t)}let r=t.map(e=>[...e.providers.values()]);return(0,n.flatten)(r)}getControllers(e={},t=this.getModules(e)){if(`metadataKey`in e){let t=a.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,e.metadataKey);return Array.from(t)}let r=t.map(e=>[...e.controllers.values()]);return(0,n.flatten)(r)}getMetadataByDecorator(e,t,n){if(n)return Reflect.getMetadata(e.KEY,t.instance[n]);let r=t.instance?.constructor??t.metatype;return Reflect.getMetadata(e.KEY,r)}getModules(e={}){return`include`in e?this.includeWhitelisted(e.include):[...this.modulesContainer.values()]}includeWhitelisted(e){return[...this.modulesContainer.values()].filter(({metatype:t})=>e.some(e=>e===t))}};e.DiscoveryService=o,e.DiscoveryService=o=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[i.ModulesContainer])],o)})),Nx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoveryModule=void 0;var t=E(),n=H(),r=kx(),i=Mx(),a=class{};e.DiscoveryModule=a,e.DiscoveryModule=a=t.__decorate([(0,n.Module)({providers:[r.MetadataScanner,i.DiscoveryService],exports:[r.MetadataScanner,i.DiscoveryService]})],a)})),Px=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Nx(),e),t.__exportStar(Mx(),e)})),Fx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpAdapterHost=void 0;var t=Wc();e.HttpAdapterHost=class{constructor(){this._listen$=new t.Subject,this._init$=new t.ReplaySubject,this.isListening=!1}set httpAdapter(e){this._httpAdapter=e,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(e){this.isListening=e,e&&(this._listen$.next(),this._listen$.complete())}get listening(){return this.isListening}}})),Ix=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseExceptionFilter=void 0;var t=E(),n=H(),r=A(),i=Ox(),a=Fx(),o=class e{constructor(e){this.applicationRef=e}catch(e,t){let i=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(e instanceof n.HttpException))return this.handleUnknownError(e,t,i);let a=e.getResponse(),o=(0,r.isObject)(a)?a:{statusCode:e.getStatus(),message:a},s=t.getArgByIndex(1);i.isHeadersSent(s)?i.end(s):i.reply(s,o,e.getStatus())}handleUnknownError(t,r,a){let o=this.isHttpError(t)?{statusCode:t.statusCode,message:t.message}:{statusCode:n.HttpStatus.INTERNAL_SERVER_ERROR,message:i.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE},s=r.getArgByIndex(1);a.isHeadersSent(s)?a.end(s):a.reply(s,o,o.statusCode),t instanceof n.IntrinsicException||e.logger.error(t)}isExceptionObject(e){return(0,r.isObject)(e)&&!!e.message}isHttpError(e){return e?.statusCode&&e?.message}};e.BaseExceptionFilter=o,o.logger=new n.Logger(`ExceptionsHandler`),t.__decorate([(0,n.Optional)(),(0,n.Inject)(),t.__metadata(`design:type`,a.HttpAdapterHost)],o.prototype,`httpAdapterHost`,void 0)})),Lx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(Ix(),e)})),Rx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REQUEST_CONTEXT_ID=e.REQUEST=void 0,e.REQUEST=`REQUEST`,e.REQUEST_CONTEXT_ID=Symbol(`REQUEST_CONTEXT_ID`)})),zx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextIdFactory=void 0,e.createContextId=r;var t=A(),n=Rx();function r(){return{id:Math.random()}}e.ContextIdFactory=class e{static create(){return r()}static getByRequest(t,i=[`raw`]){if(!t)return e.create();if(t[n.REQUEST_CONTEXT_ID])return t[n.REQUEST_CONTEXT_ID];for(let e of i)if(t[e]?.[n.REQUEST_CONTEXT_ID])return t[e][n.REQUEST_CONTEXT_ID];if(!this.strategy)return e.create();let a=r(),o=this.strategy.attach(a,t);return this.isContextIdResolverWithPayload(o)?(a.getParent=o.resolve,a.payload=o.payload):a.getParent=o,a}static apply(e){this.strategy=e}static isContextIdResolverWithPayload(e){return(0,t.isObject)(e)}}})),Bx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.STATIC_CONTEXT=e.CONTROLLER_ID_KEY=void 0,e.CONTROLLER_ID_KEY=`CONTROLLER_ID`,e.STATIC_CONTEXT=Object.freeze({id:1})})),Vx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextCreator=void 0;var t=Bx();e.ContextCreator=class{createContext(e,n,r,i=t.STATIC_CONTEXT,a){let o=this.getGlobalMetadata&&this.getGlobalMetadata(i,a),s=this.reflectClassMetadata(e,r),c=this.reflectMethodMetadata(n,r);return[...this.createConcreteContext(o||[],i,a),...this.createConcreteContext(s,i,a),...this.createConcreteContext(c,i,a)]}reflectClassMetadata(e,t){let n=Object.getPrototypeOf(e);return Reflect.getMetadata(t,n.constructor)}reflectMethodMetadata(e,t){return Reflect.getMetadata(t,e)}getContextId(e,t){return e.getParent?e.getParent({token:t.token,isTreeDurable:t.isDependencyTreeDurable()}):e}}})),Hx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseExceptionFilterContext=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.BaseExceptionFilterContext=class extends i.ContextCreator{constructor(e){super(),this.container=e}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&((0,n.isFunction)(e.catch)||e.name)).map(e=>this.getFilterInstance(e,t,i)).filter(e=>!!e).map(e=>({func:e.catch.bind(e),exceptionMetatypes:this.reflectCatchExceptions(e)})).toArray()}getFilterInstance(e,t=a.STATIC_CONTEXT,n){if(e.catch)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}reflectCatchExceptions(e){let n=Object.getPrototypeOf(e);return Reflect.getMetadata(t.FILTER_CATCH_EXCEPTIONS,n.constructor)||[]}}})),Ux=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectExceptionFilterMetadata=void 0,e.selectExceptionFilterMetadata=(e,t)=>e.find(({exceptionMetatypes:e})=>!e.length||e.some(e=>t instanceof e))})),Wx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RuntimeException=void 0,e.RuntimeException=class extends Error{constructor(e=``){super(e)}what(){return this.message}}})),Gx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=e.INVALID_EXCEPTION_FILTER=e.UNHANDLED_RUNTIME_EXCEPTION=e.INVALID_MIDDLEWARE_CONFIGURATION=e.UNKNOWN_REQUEST_MAPPING=e.INVALID_CLASS_SCOPE_MESSAGE=e.INVALID_CLASS_MESSAGE=e.UNKNOWN_EXPORT_MESSAGE=e.UNDEFINED_MODULE_MESSAGE=e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=e.INVALID_MODULE_MESSAGE=e.UNDEFINED_FORWARDREF_MESSAGE=e.INVALID_MIDDLEWARE_MESSAGE=e.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;var t=A(),n=e=>e?.forwardRef?e.forwardRef()?.name:e?.module?e.module?.name:e?.name,r=(e,r,i=!0)=>n(e)||(0,t.isSymbol)(e)&&e.toString()||(e?i?`"${e}"`:e:void 0)||r,i=e=>e&&n(e.metatype)||`current`,a=e=>(e||[]).map(n).join(` -> `);e.UNKNOWN_DEPENDENCIES_MESSAGE=(e,n,a)=>{let{index:o,name:s,dependencies:c,key:l}=n,u=i(a),d=r(s,`dependency`),f=!(0,t.isNil)(o)&&c&&(c[o]===void 0||c[o]===Object||typeof c[o]==`function`&&c[o].name===`Object`),p;p=f?`\n
|
|
88
84
|
Potential solutions:
|
|
89
|
-
- The dependency at index [${
|
|
85
|
+
- The dependency at index [${o}] appears to be undefined at runtime
|
|
90
86
|
- This commonly occurs when using 'import type' instead of 'import' for injectable classes
|
|
91
87
|
- Check your imports and change:
|
|
92
88
|
❌ import type { SomeService } from './some.service';
|
|
@@ -94,77 +90,59 @@ Potential solutions:
|
|
|
94
90
|
- Ensure the imported class is decorated with @Injectable() or is a valid provider
|
|
95
91
|
- If using dynamic imports, ensure the class is available at runtime, not just for type checking
|
|
96
92
|
|
|
97
|
-
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`:
|
|
98
|
-
|
|
93
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`:u===`current`?`\n
|
|
99
94
|
Potential solutions:
|
|
100
|
-
-
|
|
101
|
-
- If ${
|
|
102
|
-
- If ${O} is exported from a separate @Module, is that module imported within ${x}?
|
|
95
|
+
- If ${d} is a provider, is it part of the current Module?
|
|
96
|
+
- If ${d} is exported from a separate @Module, is that module imported within Module?
|
|
103
97
|
@Module({
|
|
104
|
-
imports: [ /* the Module containing ${
|
|
98
|
+
imports: [ /* the Module containing ${d} */ ]
|
|
105
99
|
})
|
|
106
100
|
|
|
107
|
-
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors
|
|
108
|
-
|
|
101
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`:`\n
|
|
109
102
|
Potential solutions:
|
|
110
|
-
-
|
|
111
|
-
- If ${
|
|
103
|
+
- Is ${u} a valid NestJS module?
|
|
104
|
+
- If ${d} is a provider, is it part of the current ${u}?
|
|
105
|
+
- If ${d} is exported from a separate @Module, is that module imported within ${u}?
|
|
112
106
|
@Module({
|
|
113
|
-
imports: [ /* the Module containing ${
|
|
107
|
+
imports: [ /* the Module containing ${d} */ ]
|
|
114
108
|
})
|
|
115
109
|
|
|
116
|
-
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`;let
|
|
110
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`;let m=`Nest can't resolve dependencies of the ${e.toString()}`;if((0,t.isNil)(o))return m+=`. Please make sure that the "${l.toString()}" property is available in the current context.${p}`,m;let h=(c||[]).map(e=>r(e,`+`,!1));h[o]=`?`;let g=!f&&s!==void 0?` ${d}`:``,_=f?`current`:u;return m+=` (`,m+=h.join(`, `),m+=`). Please make sure that the argument${g} at index [${o}]`,m+=` is available in the ${_} module.`,m+=p,m},e.INVALID_MIDDLEWARE_MESSAGE=(e,t)=>`The middleware doesn't provide the 'use' method (${t})`,e.UNDEFINED_FORWARDREF_MESSAGE=e=>`Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it.
|
|
117
111
|
|
|
118
112
|
(Read more: https://docs.nestjs.com/fundamentals/circular-dependency)
|
|
119
|
-
Scope [${
|
|
120
|
-
|
|
121
|
-
Received an unexpected value at index [${
|
|
113
|
+
Scope [${a(e)}]
|
|
114
|
+
`,e.INVALID_MODULE_MESSAGE=(e,t,n)=>{let r=e?.name||`module`;return`Nest cannot create the ${r} instance.
|
|
115
|
+
Received an unexpected value at index [${t}] of the ${r} "imports" array.
|
|
122
116
|
|
|
123
|
-
Scope [${
|
|
124
|
-
Please remove ${`"${
|
|
117
|
+
Scope [${a(n)}]`},e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=(e,t)=>`Classes annotated with @Injectable(), @Catch(), and @Controller() decorators must not appear in the "imports" array of a module.
|
|
118
|
+
Please remove ${`"${n(e)}"`} (including forwarded occurrences, if any) from all of the "imports" arrays.
|
|
125
119
|
|
|
126
|
-
Scope [${
|
|
127
|
-
|
|
128
|
-
The module at index [${
|
|
120
|
+
Scope [${a(t)}]
|
|
121
|
+
`,e.UNDEFINED_MODULE_MESSAGE=(e,t,n)=>{let r=e?.name||`module`;return`Nest cannot create the ${r} instance.
|
|
122
|
+
The module at index [${t}] of the ${r} "imports" array is undefined.
|
|
129
123
|
|
|
130
124
|
Potential causes:
|
|
131
125
|
- A circular dependency between modules. Use forwardRef() to avoid it. Read more: https://docs.nestjs.com/fundamentals/circular-dependency
|
|
132
|
-
- The module at index [${
|
|
126
|
+
- The module at index [${t}] is of type "undefined". Check your import statements and the type of the module.
|
|
133
127
|
|
|
134
|
-
Scope [${
|
|
128
|
+
Scope [${a(n)}]`},e.UNKNOWN_EXPORT_MESSAGE=(e=`item`,n)=>(e=(0,t.isSymbol)(e)?e.toString():e,`Nest cannot export a provider/module that is not a part of the currently processed module (${n}). Please verify whether the exported ${e} is available in this particular context.
|
|
135
129
|
|
|
136
130
|
Possible Solutions:
|
|
137
|
-
- Is ${
|
|
131
|
+
- Is ${e} part of the relevant providers/imports within ${n}?
|
|
138
132
|
|
|
139
133
|
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors
|
|
140
|
-
`);Re.UNKNOWN_EXPORT_MESSAGE=l;const d=(m,v)=>`ModuleRef cannot instantiate class (${v} is not constructable).`;Re.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.`;Re.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 Re.UNKNOWN_REQUEST_MAPPING=h,Re.INVALID_MIDDLEWARE_CONFIGURATION="An invalid middleware configuration has been passed inside the module 'configure()' method.",Re.UNHANDLED_RUNTIME_EXCEPTION="Unhandled Runtime Exception.",Re.INVALID_EXCEPTION_FILTER="Invalid exception filters (@UseFilters()).",Re.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION="Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)",Re}var lA;function Vq(){if(lA)return Tc;lA=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.InvalidExceptionFilterException=void 0;const e=rt(),t=Pt();class r extends e.RuntimeException{constructor(){super(t.INVALID_EXCEPTION_FILTER)}}return Tc.InvalidExceptionFilterException=r,Tc}var Ac={},dA;function GK(){if(dA)return Ac;dA=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.ExternalExceptionFilter=void 0;const e=me();class t{catch(n,i){throw n instanceof Error&&!(n instanceof e.IntrinsicException)&&t.logger.error(n),n}}return Ac.ExternalExceptionFilter=t,t.logger=new e.Logger("ExceptionsHandler"),Ac}var pA;function WK(){if(pA)return wc;pA=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.ExternalExceptionsHandler=void 0;const e=Hq(),t=ie(),r=Vq(),n=GK();class i extends n.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,o){const c=this.invokeCustomFilters(s,o);return c||super.catch(s,o)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,o){if((0,t.isEmpty)(this.filters))return null;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c?c.func(s,o):null}}return wc.ExternalExceptionsHandler=i,wc}var fA;function ZK(){if(fA)return Ec;fA=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.ExternalExceptionFilterContext=void 0;const e=Oe(),t=ie(),r=Ze(),n=ct(),i=Bq(),a=WK();class s extends i.BaseExceptionFilterContext{constructor(c,u){super(c),this.config=u}create(c,u,p,l=n.STATIC_CONTEXT,d){this.moduleContext=p;const f=new a.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 Ec.ExternalExceptionFilterContext=s,Ec}var Hm={},Rc={},hA;function Gq(){return hA||(hA=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.FORBIDDEN_MESSAGE=void 0,Rc.FORBIDDEN_MESSAGE="Forbidden resource"),Rc}var Mc={},Ic={},vA;function Mn(){if(vA)return Ic;vA=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.ExecutionContextHost=void 0;class e{constructor(r,n=null,i=null){this.args=r,this.constructorRef=n,this.handler=i,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 Ic.ExecutionContextHost=e,Ic}var mA;function KK(){if(mA)return Mc;mA=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.GuardsConsumer=void 0;const e=ie(),t=Sn(),r=Mn();class n{async tryActivate(a,s,o,c,u){if(!a||(0,e.isEmpty)(a))return!0;const p=this.createContext(s,o,c);p.setType(u);for(const l of a){const d=l.canActivate(p);if(typeof d=="boolean"){if(!d)return!1;continue}if(!await this.pickResult(d))return!1}return!0}createContext(a,s,o){return new r.ExecutionContextHost(a,s.constructor,o)}async pickResult(a){return a instanceof t.Observable?(0,t.lastValueFrom)(a):a}}return Mc.GuardsConsumer=n,Mc}var Cc={},_A;function YK(){if(_A)return Cc;_A=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.GuardsContextCreator=void 0;const e=Oe(),t=ie(),r=Ze(),n=Zp(),i=ct();class a extends n.ContextCreator{constructor(o,c){super(),this.container=o,this.config=c}create(o,c,u,p=i.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(o,c,e.GUARDS_METADATA,p,l)}createConcreteContext(o,c=i.STATIC_CONTEXT,u){return(0,t.isEmpty)(o)?[]:(0,r.iterate)(o).filter(p=>p&&(p.name||p.canActivate)).map(p=>this.getGuardInstance(p,c,u)).filter(p=>!!p&&(0,t.isFunction)(p.canActivate)).toArray()}getGuardInstance(o,c=i.STATIC_CONTEXT,u){if(!!o.canActivate)return o;const l=this.getInstanceByMetatype(o);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(o){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);return u?u.injectables.get(o):void 0}getGlobalMetadata(o=i.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalGuards();if(o===i.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestGuards(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(o,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Cc.GuardsContextCreator=a,Cc}var gA;function Py(){return gA||(gA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(Gq(),e),t.__exportStar(KK(),e),t.__exportStar(YK(),e)})(Hm)),Hm}var Vm={},jc={},yA;function XK(){if(yA)return jc;yA=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.InterceptorsConsumer=void 0;const e=ie(),t=Gk,r=Sn(),n=ty(),i=Mn();class a{async intercept(o,c,u,p,l,d){if((0,e.isEmpty)(o))return l();const f=this.createContext(c,u,p);f.setType(d);const h=async(m=0)=>{if(m>=o.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 o[m].intercept(f,v)};return(0,r.defer)(()=>h()).pipe((0,n.mergeAll)())}createContext(o,c,u){return new i.ExecutionContextHost(o,c.constructor,u)}transformDeferred(o){return(0,r.from)(o()).pipe((0,n.switchMap)(c=>c instanceof Promise||c instanceof r.Observable?c:Promise.resolve(c)))}}return jc.InterceptorsConsumer=a,jc}var Nc={},bA;function JK(){if(bA)return Nc;bA=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.InterceptorsContextCreator=void 0;const e=Oe(),t=ie(),r=Ze(),n=Zp(),i=ct();class a extends n.ContextCreator{constructor(o,c){super(),this.container=o,this.config=c}create(o,c,u,p=i.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(o,c,e.INTERCEPTORS_METADATA,p,l)}createConcreteContext(o,c=i.STATIC_CONTEXT,u){return(0,t.isEmpty)(o)?[]:(0,r.iterate)(o).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(o,c=i.STATIC_CONTEXT,u){if(!!o.intercept)return o;const l=this.getInstanceByMetatype(o);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(o){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(o)}getGlobalMetadata(o=i.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalInterceptors();if(o===i.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestInterceptors(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(o,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Nc.InterceptorsContextCreator=a,Nc}var EA;function Wq(){return EA||(EA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(XK(),e),t.__exportStar(JK(),e)})(Vm)),Vm}var Gm={},qc={},xA;function Zq(){if(xA)return qc;xA=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.ParamsTokenFactory=void 0;const e=wp();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 qc.ParamsTokenFactory=t,qc}var Fc={},OA;function QK(){if(OA)return Fc;OA=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.PipesConsumer=void 0;const e=Zq();class t{constructor(){this.paramsTokenFactory=new e.ParamsTokenFactory}async apply(n,{metatype:i,type:a,data:s},o){const c=this.paramsTokenFactory.exchangeEnumForString(a);return this.applyPipes(n,{metatype:i,type:c,data:s},o)}async applyPipes(n,{metatype:i,type:a,data:s},o){return o.reduce(async(c,u)=>{const p=await c;return u.transform(p,{metatype:i,type:a,data:s})},Promise.resolve(n))}}return Fc.PipesConsumer=t,Fc}var kc={},wA;function $K(){if(wA)return kc;wA=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.PipesContextCreator=void 0;const e=Oe(),t=ie(),r=Ze(),n=Zp(),i=ct();class a extends n.ContextCreator{constructor(o,c){super(),this.container=o,this.config=c}create(o,c,u,p=i.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(o,c,e.PIPES_METADATA,p,l)}createConcreteContext(o,c=i.STATIC_CONTEXT,u){return(0,t.isEmpty)(o)?[]:(0,r.iterate)(o).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(o,c=i.STATIC_CONTEXT,u){if(!!o.transform)return o;const l=this.getInstanceByMetatype(o);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(o){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(o)}getGlobalMetadata(o=i.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalPipes();if(o===i.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestPipes(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(o,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}setModuleContext(o){this.moduleContext=o}}return kc.PipesContextCreator=a,kc}var SA;function Kq(){return SA||(SA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(Zq(),e),t.__exportStar(QK(),e),t.__exportStar($K(),e)})(Gm)),Gm}var Dc={},TA;function Yq(){if(TA)return Dc;TA=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.ContextUtils=void 0;const e=Oe(),t=ie(),r=Mn();class n{mapParamType(a){return a.split(":")[0]}reflectCallbackParamtypes(a,s){return Reflect.getMetadata(e.PARAMTYPES_METADATA,a,s)}reflectCallbackMetadata(a,s,o){return Reflect.getMetadata(o,a.constructor,s)}reflectPassthrough(a,s){return Reflect.getMetadata(e.RESPONSE_PASSTHROUGH_METADATA,a.constructor,s)}getArgumentsLength(a,s){return a.length?Math.max(...a.map(o=>s[o].index))+1:0}createNullArray(a){const s=new Array(a);for(let o=0;o<a;++o)s[o]=void 0;return s}mergeParamsMetatypes(a,s){return s?a.map(o=>({...o,metatype:s[o.index]})):a}getCustomFactory(a,s,o){return(0,t.isFunction)(a)?(...c)=>a(s,o(c)):()=>null}getContextFactory(a,s,o){const c=s&&s.constructor;return u=>{const p=new r.ExecutionContextHost(u,c,o);return p.setType(a),p}}}return Dc.ContextUtils=n,Dc}var Lc={},PA;function eY(){if(PA)return Lc;PA=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.ExternalErrorProxy=void 0;const e=Mn();class t{createProxy(n,i,a){return async(...s)=>{try{return await n(...s)}catch(o){const c=new e.ExecutionContextHost(s);return c.setType(a),i.next(o,c)}}}}return Lc.ExternalErrorProxy=t,Lc}var Wm={},AA;function Xq(){return AA||(AA=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;const r=ct();e.HANDLER_METADATA_SYMBOL=Symbol.for("handler_metadata:cache");class n{constructor(){this[t]=new Map}set(a,s,o){const c=this.getMetadataKey(a,s);this[e.HANDLER_METADATA_SYMBOL].set(c,o)}get(a,s){const o=this.getMetadataKey(a,s);return this[e.HANDLER_METADATA_SYMBOL].get(o)}getMetadataKey(a,s){const o=a.constructor;return(o&&(o[r.CONTROLLER_ID_KEY]||o.name))+s}}e.HandlerMetadataStorage=n,t=e.HANDLER_METADATA_SYMBOL})(Wm)),Wm}var RA;function Ay(){if(RA)return bc;RA=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.ExternalContextCreator=void 0;const e=me(),t=Oe(),r=ie(),n=Sn(),i=ZK(),a=Py(),s=Gq(),o=ct(),c=Wq(),u=Kq(),p=Yq(),l=eY(),d=Xq();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 a.GuardsContextCreator(m,m.applicationConfig),_=new a.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 i.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=o.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),q=this.guardsContextCreator.create(m,v,S,b,E),D=this.filtersContextCreator.create(m,v,S,b,E),H=x.interceptors?this.interceptorsContextCreator.create(m,v,S,b,E):[],k=T(S,b,E),F=k?this.contextUtils.mergeParamsMetatypes(k,A):[],Z=x.guards?this.createGuardsFn(q,m,v,O):null,Q=this.createPipesFn(P,F),U=(C,...N)=>async()=>Q?(await Q(C,...N),v.apply(m,C)):v.apply(m,N),$=async(...C)=>{const N=this.contextUtils.createNullArray(w);Z&&await Z(C);const L=await this.interceptorsConsumer.intercept(H,C,m,v,U(N,...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,q=o.STATIC_CONTEXT,D)=>g?this.exchangeKeysForValues(x,E,P,g,q,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=o.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],H=this.contextUtils.getCustomFactory(D,S,E);return{index:O,extractValue:H,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 bc.ExternalContextCreator=f,bc}var MA;function tY(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(Bl(),e),t.__exportStar(Ay(),e),t.__exportStar(zl(),e)})(Bm)),Bm}var Zm={},Uc={},Km={},zc={},IA;function Jq(){if(IA)return zc;IA=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.CircularDependencyException=void 0;const e=rt();class t extends e.RuntimeException{constructor(n){const i=n?` inside ${n}`:"";super(`A circular dependency has been detected${i}. 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 zc.CircularDependencyException=t,zc}var Bc={},CA;function Qq(){if(CA)return Bc;CA=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.UnknownElementException=void 0;const e=rt();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 Bc.UnknownElementException=t,Bc}var Hc={},jA;function rY(){if(jA)return Hc;jA=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.InvalidClassScopeException=void 0;const e=ie(),t=Pt(),r=rt();class n extends r.RuntimeException{constructor(a){let s=(0,e.isFunction)(a)?a.name:a;s=s&&s.toString(),super((0,t.INVALID_CLASS_SCOPE_MESSAGE)`${s}`)}}return Hc.InvalidClassScopeException=n,Hc}var Vc={},NA;function nY(){if(NA)return Vc;NA=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.InvalidClassException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i){super((0,e.INVALID_CLASS_MESSAGE)`${i}`)}}return Vc.InvalidClassException=r,Vc}var Gc={},qA;function iY(){if(qA)return Gc;qA=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.UnknownExportException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i,a){super((0,e.UNKNOWN_EXPORT_MESSAGE)(i,a))}}return Gc.UnknownExportException=r,Gc}var Wc={},FA;function aY(){if(FA)return Wc;FA=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.UnknownModuleException=void 0;const e=rt();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 Wc.UnknownModuleException=t,Wc}var Zc={},kA;function oY(){if(kA)return Zc;kA=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.UndefinedForwardRefException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i){super((0,e.UNDEFINED_FORWARDREF_MESSAGE)(i))}}return Zc.UndefinedForwardRefException=r,Zc}var DA;function Hl(){return DA||(DA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(Jq(),e),t.__exportStar(rt(),e),t.__exportStar(Qq(),e),t.__exportStar(rY(),e),t.__exportStar(nY(),e),t.__exportStar(iY(),e),t.__exportStar(aY(),e),t.__exportStar(oY(),e)})(Km)),Km}var Kc={},LA;function Ry(){if(LA)return Kc;LA=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.InitializeOnPreviewAllowlist=void 0;class e{static add(r){this.allowlist.set(r,!0)}static has(r){return this.allowlist.has(r)}}return Kc.InitializeOnPreviewAllowlist=e,e.allowlist=new WeakMap,Kc}var Yc={},Xc={},UA;function My(){return UA||(UA=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.INQUIRER=void 0,Xc.INQUIRER="INQUIRER"),Xc}var Jc={},Qc={},zA;function sY(){if(zA)return Qc;zA=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.SilentLogger=void 0;const e=me(),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 Qc.SilentLogger=r,Qc}var $c={},Dd={},BA;function Kp(){if(BA)return Dd;BA=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.getClassScope=t;const e=Oe();function t(r){const n=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return n&&n.scope}return Dd}var Ld={},HA;function Iy(){if(HA)return Ld;HA=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.isDurable=t;const e=Oe();function t(r){const n=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return n&&n.durable}return Ld}var eu={},VA;function $q(){if(VA)return eu;VA=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.AbstractInstanceResolver=void 0;const e=me(),t=Hl();class r{find(i,a){const s=this.instanceLinksHost.get(i,a),o=({wrapperRef:c})=>{if(c.scope===e.Scope.REQUEST||c.scope===e.Scope.TRANSIENT||!c.isDependencyTreeStatic())throw new t.InvalidClassScopeException(i);return c.instance};return Array.isArray(s)?s.map(o):o(s)}async resolvePerContext(i,a,s,o){const c=o?.strict?this.instanceLinksHost.get(i,{moduleId:a.id,each:o.each}):this.instanceLinksHost.get(i,{each:o?.each}),u=async p=>{const{wrapperRef:l,collection:d}=p;if(l.isDependencyTreeStatic()&&!l.isTransient)return l.instance;const f=l.instance||{constructor:i},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 eu.AbstractInstanceResolver=r,eu}var tu={},ru={},GA;function cY(){if(GA)return ru;GA=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.UndefinedDependencyException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i,a,s){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(i,a,s))}}return ru.UndefinedDependencyException=r,ru}var nu={},WA;function eF(){if(WA)return nu;WA=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.UnknownDependenciesException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i,a,s,o){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(i,a,s)),this.type=i,this.context=a,this.metadata=o,this.moduleRef=s&&{id:s.id}}}return nu.UnknownDependenciesException=r,nu}var iu={},ZA;function uY(){if(ZA)return iu;ZA=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.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 iu.Barrier=e,iu}var Ym={},KA;function tF(){return KA||(KA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(My(),e)})(Ym)),Ym}var Xm={},dn={},au={},YA;function Cy(){if(YA)return au;YA=1,Object.defineProperty(au,"__esModule",{value:!0}),au.DeterministicUuidRegistry=void 0;class e{static get(r,n=0){const i=n?this.hashCode(`${r}_${n}`):this.hashCode(r);return this.registry.has(i)?this.get(r,n+1):(this.registry.set(i,!0),i)}static clear(){this.registry.clear()}static hashCode(r){let n=0;for(let i=0;i<r.length;i++)n=Math.imul(31,n)+r.charCodeAt(i)|0;return n.toString()}}return au.DeterministicUuidRegistry=e,e.registry=new Map,au}var XA;function Vl(){if(XA)return dn;XA=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.UuidFactory=dn.UuidFactoryMode=void 0;const e=ur(),t=Cy();var r;(function(i){i.Random="random",i.Deterministic="deterministic"})(r||(dn.UuidFactoryMode=r={}));class n{static set mode(a){this._mode=a}static get(a=""){return this._mode===r.Deterministic?t.DeterministicUuidRegistry.get(a):(0,e.randomStringGenerator)()}}return dn.UuidFactory=n,n._mode=r.Random,dn}var ei={},JA;function lY(){if(JA)return ei;JA=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.isClassProvider=t,ei.isValueProvider=r,ei.isFactoryProvider=n;const e=ie();function t(i){return!!i?.useClass}function r(i){const a=i?.useValue;return!(0,e.isUndefined)(a)}function n(i){return!!i.useFactory}return ei}var QA;function Gl(){return QA||(QA=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=me(),n=cr(),i=ur(),a=ie(),s=Ze(),o=Vl(),c=ct(),u=lY();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,a.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,a.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,a.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,a.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,a.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,a.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?o.UuidFactory.get(d):(0,i.randomStringGenerator)()}}e.InstanceWrapper=p,t=e.INSTANCE_METADATA_SYMBOL,p.logger=new r.Logger(p.name)})(Xm)),Xm}var ou={},$A;function dY(){if($A)return ou;$A=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.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 ou.SettlementSignal=e,ou}var eR;function bi(){if(eR)return tu;eR=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.Injector=void 0;const e=me(),t=Oe(),r=cr(),n=ie(),i=Ze(),a=Wk,s=Hl(),o=rt(),c=cY(),u=eF(),p=uY(),l=ct(),d=tF(),f=Gl(),h=dY();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(q=>{if(q)throw q})}const S=this.applySettlementSignal(O,_),w=_.token||_.name,{inject:A}=_,T=g.get(w);if((0,n.isUndefined)(T))throw new o.RuntimeException;if(O.isResolved)return S.complete();try{const P=this.getNowTimestamp(),q=async D=>{const H=await this.resolveProperties(_,y,A,b,_,E),k=await this.instantiateClass(D,_,T,b,E);this.applyProperties(k,H),_.initTime=this.getNowTimestamp()-P,S.complete()};await this.resolveConstructorParams(_,y,A,q,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 k=await this.loadCtorMetadata(S,E,x,O);return b(k)}const w=!(0,n.isNil)(y),[A,T]=w?this.getFactoryProviderDependencies(_):this.getClassDependencies(_),P=new p.Barrier(A.length);let q=!0;const D=async(k,F)=>{try{if(this.isInquirer(k,O))return P.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 P.signalAndWait();const Q=this.getEffectiveInquirer(Z,x,O,E),U=await this.resolveComponentHost(g,Z,E,Q),$=U.getInstanceByContextId(this.getContextId(E,U),this.getInquirerId(Q));return!$.isResolved&&!U.forwardRef&&(q=!1),$?.instance}catch(Z){if(P.signal(),!T.includes(F))throw Z;return}},H=await Promise.all(A.map(D));q&&await b(H)}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=q=>q;let P=[...A.values()].filter(T);if(S){const q=_.exports;P=P.filter(D=>q.has(D.metatype))}for(const q of P){if(b.has(q.id))continue;this.printLookingForProviderLog(g,q),b.add(q.id);const{providers:D,exports:H}=q;if(!H.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 T=>{try{const P={key:T.key,name:T.name};if(this.isInquirer(T.name,x))return w.signal(),x&&x.instance;const q=await this.resolveSingleParam(_,T.name,P,g,b,E,T.key);await w.signalAndWait();const D=this.getEffectiveInquirer(q,E,x,b),H=await this.resolveComponentHost(g,q,b,D);return H?H.getInstanceByContextId(this.getContextId(b,H),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,i.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 a.performance.now()}}return tu.Injector=m,tu}var su={},tR;function rF(){if(tR)return su;tR=1,Object.defineProperty(su,"__esModule",{value:!0}),su.InstanceLinksHost=void 0;const e=ie(),t=Qq();class r{constructor(i){this.container=i,this.instanceLinks=new Map,this.initialize()}get(i,a={}){const s=this.instanceLinks.get(i);if(!s)throw new t.UnknownElementException(this.getInstanceNameByToken(i));if(a.each)return s;const o=a.moduleId?s.find(c=>c.moduleId===a.moduleId):s[s.length-1];if(!o)throw new t.UnknownElementException(this.getInstanceNameByToken(i));return o}initialize(){this.container.getModules().forEach(a=>{const{providers:s,injectables:o,controllers:c}=a;s.forEach((u,p)=>this.addLink(u,p,a,"providers")),o.forEach((u,p)=>this.addLink(u,p,a,"injectables")),c.forEach((u,p)=>this.addLink(u,p,a,"controllers"))})}addLink(i,a,s,o){const c={moduleId:s.id,wrapperRef:i,collection:s[o],token:a},u=this.instanceLinks.get(a);u?u.push(c):this.instanceLinks.set(a,[c])}getInstanceNameByToken(i){return(0,e.isFunction)(i)?i?.name:i}}return su.InstanceLinksHost=r,su}var rR;function Yp(){if(rR)return $c;rR=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.ModuleRef=void 0;const e=me(),t=Kp(),r=Iy(),n=$q(),i=bi(),a=rF(),s=Gl();class o extends n.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new a.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(u){super(),this.container=u,this.injector=new i.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 $c.ModuleRef=o,$c}var nR;function jy(){if(nR)return Jc;nR=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.LazyModuleLoader=void 0;const e=sY(),t=Yp();class r{constructor(i,a,s,o,c){this.dependenciesScanner=i,this.instanceLoader=a,this.moduleCompiler=s,this.modulesContainer=o,this.moduleOverrides=c}async load(i,a){this.registerLoggerConfiguration(a);const s=await i(),o=await this.dependenciesScanner.scanForModules({moduleDefinition:s,overrides:this.moduleOverrides,lazy:!0});if(o.length===0){const{token:p}=await this.moduleCompiler.compile(s),l=this.modulesContainer.get(p);return l&&this.getTargetModuleRef(l)}const c=this.createLazyModulesContainer(o);await this.dependenciesScanner.scanModulesForDependencies(c),await this.instanceLoader.createInstancesOfDependencies(c);const[u]=o;return this.getTargetModuleRef(u)}registerLoggerConfiguration(i){i?.logger===!1&&this.instanceLoader.setLogger(new e.SilentLogger)}createLazyModulesContainer(i){return i=Array.from(new Set(i)),new Map(i.map(a=>[a.token,a]))}getTargetModuleRef(i){return i.getProviderByKey(t.ModuleRef).instance}}return Jc.LazyModuleLoader=r,Jc}var cu={},iR;function nF(){if(iR)return cu;iR=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.Reflector=void 0;const e=me(),t=ie(),r=yn();class n{static createDecorator(a={}){const s=a.key??(0,r.uid)(21),o=c=>(u,p,l)=>{const d=a.transform?a.transform(c):c;(0,e.SetMetadata)(s,d??{})(u,p,l)};return o.KEY=s,o}get(a,s){const o=a.KEY??a;return Reflect.getMetadata(o,s)}getAll(a,s){return(s||[]).map(o=>this.get(a,o))}getAllAndMerge(a,s){const o=this.getAll(a,s).filter(c=>c!==void 0);if((0,t.isEmpty)(o))return o;if(o.length===1){const c=o[0];return(0,t.isObject)(c)?c:o}return o.reduce((c,u)=>Array.isArray(c)?c.concat(u):(0,t.isObject)(c)&&(0,t.isObject)(u)?{...c,...u}:[c,u])}getAllAndOverride(a,s){for(const o of s){const c=this.get(a,o);if(c!==void 0)return c}}}return cu.Reflector=n,cu}var aR;function Ny(){if(aR)return Yc;aR=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.SerializedGraph=void 0;const e=yr(),t=Ay(),r=zl(),n=My(),i=jy(),a=Yp(),s=yi(),o=Rn(),c=nF(),u=Cy();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 Yc.SerializedGraph=p,p.INTERNAL_PROVIDERS=[e.ApplicationConfig,a.ModuleRef,r.HttpAdapterHost,i.LazyModuleLoader,t.ExternalContextCreator,s.ModulesContainer,c.Reflector,p,r.HttpAdapterHost.name,c.Reflector.name,o.REQUEST,n.INQUIRER],Yc}var uu={},oR;function pY(){if(oR)return uu;oR=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.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:i}=this.extractMetadata(r),a=i?this._moduleOpaqueKeyFactory.createForDynamic(n,i,r):this._moduleOpaqueKeyFactory.createForStatic(n,r);return{type:n,dynamicMetadata:i,token:a}}extractMetadata(r){if(!this.isDynamicModule(r))return{type:r?.forwardRef?r.forwardRef():r,dynamicMetadata:void 0};const{module:n,...i}=r;return{type:n,dynamicMetadata:i}}isDynamicModule(r){return!!r.module}}return uu.ModuleCompiler=e,uu}var ti={},lu={},sR;function fY(){if(sR)return lu;sR=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.requestProvider=void 0;const e=me(),t=Rn(),r=()=>{};return lu.requestProvider={provide:t.REQUEST,scope:e.Scope.REQUEST,useFactory:r},lu}var Jm={},cR;function iF(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(nF(),e)})(Jm)),Jm}var du={},uR;function hY(){if(uR)return du;uR=1,Object.defineProperty(du,"__esModule",{value:!0}),du.inquirerProvider=void 0;const e=me(),t=My(),r=()=>{};return du.inquirerProvider={provide:t.INQUIRER,scope:e.Scope.TRANSIENT,useFactory:r},du}var lR;function Xp(){if(lR)return ti;lR=1;var e;Object.defineProperty(ti,"__esModule",{value:!0}),ti.InternalCoreModule=void 0;const t=oe(),r=me(),n=fY(),i=iF(),a=hY(),s={provide:i.Reflector.name,useExisting:i.Reflector};let o=e=class{static register(u){return{module:e,providers:[...u],exports:[...u.map(p=>p.provide)]}}};return ti.InternalCoreModule=o,ti.InternalCoreModule=o=e=t.__decorate([(0,r.Global)(),(0,r.Module)({providers:[i.Reflector,s,n.requestProvider,a.inquirerProvider],exports:[i.Reflector,s,n.requestProvider,a.inquirerProvider]})],o),ti}var pu={},dR;function vY(){if(dR)return pu;dR=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.InternalProvidersStorage=void 0;const e=zl();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 pu.InternalProvidersStorage=t,pu}var fu={},pR;function mY(){if(pR)return fu;pR=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.Module=void 0;const e=Oe(),t=Sp(),r=ur(),n=ie(),i=Ze(),a=yr(),s=Hl(),o=Bl(),c=Kp(),u=Iy(),p=Vl(),l=ct(),d=Gl(),f=Yp();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(a.ApplicationConfig,new d.InstanceWrapper({token:a.ApplicationConfig,name:a.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,i.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,o.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 fu.Module=h,fu}var hu={},fR;function _Y(){if(fR)return hu;fR=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.ByReferenceModuleOpaqueKeyFactory=void 0;const e=ur(),t=li,r=Symbol("K_MODULE_ID");class n{constructor(a){this.keyGenerationStrategy=a?.keyGenerationStrategy??"random"}createForStatic(a,s=a){return this.getOrCreateModuleId(a,void 0,s)}createForDynamic(a,s,o){return this.getOrCreateModuleId(a,s,o)}getOrCreateModuleId(a,s,o){if(o[r])return o[r];let c;return this.keyGenerationStrategy==="random"?c=this.generateRandomString():c=s?`${this.generateRandomString()}:${this.hashString(a.name+JSON.stringify(s))}`:`${this.generateRandomString()}:${this.hashString(a.toString())}`,o[r]=c,c}hashString(a){return(0,t.createHash)("sha256").update(a).digest("hex")}generateRandomString(){return(0,e.randomStringGenerator)()}}return hu.ByReferenceModuleOpaqueKeyFactory=n,hu}var vu={},Qm,hR;function gY(){if(hR)return Qm;hR=1,Qm=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(d,f,h,m){typeof m>"u"&&(m=i()),o(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 o(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++)o(d[y],y,y,m,d,_,g);else{var b=Object.keys(d);for(y=0;y<b.length;y++){var E=b[y];o(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=i());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 Qm}var vR;function yY(){if(vR)return vu;vR=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.DeepHashedModuleOpaqueKeyFactory=void 0;const e=Ot(),t=ur(),r=ie(),n=li,i=gY(),a="class ",s=a.length;class o{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new e.Logger(o.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,i.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)===a?p.name:l}return(0,r.isSymbol)(p)?p.toString():p}}return vu.DeepHashedModuleOpaqueKeyFactory=o,vu}var mR;function qy(){if(mR)return Uc;mR=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.NestContainer=void 0;const e=Oe(),t=Lq(),r=Hl(),n=Ry(),i=Ny(),a=Rn(),s=pY(),o=Xp(),c=vY(),u=mY(),p=yi(),l=_Y(),d=yY();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 i.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[o.InternalCoreModule.name]=m}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(m,v){this.internalCoreModule.getProviderByKey(a.REQUEST).setInstanceByContextId(v,{instance:m,isResolved:!0})}shouldInitOnPreview(m){return n.InitializeOnPreviewAllowlist.has(m)}}return Uc.NestContainer=f,Uc}var _R;function aF(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(qy(),e),t.__exportStar(tF(),e),t.__exportStar(jy(),e),t.__exportStar(Yp(),e),t.__exportStar(yi(),e)})(Zm)),Zm}var $m={},mu={},_u={},gR;function oF(){if(gR)return _u;gR=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.PartialGraphHost=void 0;class e{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(r){this.partialGraph=r}}return _u.PartialGraphHost=e,_u}var yR;function Jp(){if(yR)return mu;yR=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.GraphInspector=void 0;const e=eF(),t=Cy(),r=oF();class n{constructor(a){this.container=a,this.enhancersMetadataCache=new Array,this.graph=a.serializedGraph}inspectModules(a=this.container.getModules()){for(const s of a.values())this.insertModuleNode(s),this.insertClassNodes(s),this.insertModuleToModuleEdges(s);this.enhancersMetadataCache.forEach(s=>this.insertEnhancerEdge(s)),t.DeterministicUuidRegistry.clear()}registerPartial(a){this.graph.status="partial",a instanceof e.UnknownDependenciesException?this.graph.metadata={cause:{type:"unknown-dependencies",context:a.context,moduleId:a.moduleRef?.id,nodeId:a.metadata?.id}}:this.graph.metadata={cause:{type:"unknown",error:a}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(a,s){a.getCtorMetadata()?.forEach((u,p)=>this.insertClassToClassEdge(a,u,s,p,"constructor")),a.getPropertiesMetadata()?.forEach(({key:u,wrapper:p})=>this.insertClassToClassEdge(a,p,s,u,"property"))}insertEnhancerMetadataCache(a){this.enhancersMetadataCache.push(a)}insertOrphanedEnhancer(a){this.graph.insertOrphanedEnhancer({...a,ref:a.ref?.constructor?.name??"Object"})}insertAttachedEnhancer(a){const s=this.graph.getNodeById(a.id);s.metadata.global=!0,this.graph.insertAttachedEnhancer(s.id)}insertEntrypointDefinition(a,s){a={...a,id:`${a.classNodeId}_${a.methodName}`},this.graph.insertEntrypoint(a,s)}insertClassNode(a,s,o){this.graph.insertNode({id:s.id,label:s.name,parent:a.id,metadata:{type:o,internal:s.metatype===a.metatype,sourceModuleName:a.name,durable:s.isDependencyTreeDurable(),static:s.isDependencyTreeStatic(),scope:s.scope,transient:s.isTransient,exported:a.exports.has(s.token),token:s.token,subtype:s.subtype,initTime:s.initTime}})}insertModuleNode(a){const s=this.container.getDynamicMetadataByToken(a.token),o={id:a.id,label:a.name,metadata:{type:"module",global:a.isGlobal,dynamic:!!s,internal:a.name==="InternalCoreModule"}};this.graph.insertNode(o)}insertModuleToModuleEdges(a){for(const s of a.imports)this.graph.insertEdge({source:a.id,target:s.id,metadata:{type:"module-to-module",sourceModuleName:a.name,targetModuleName:s.name}})}insertEnhancerEdge(a){const s=this.container.getModuleByKey(a.moduleToken),o=s.controllers.get(a.classRef)??s.providers.get(a.classRef),c=this.graph.getNodeById(o.id),u=c.metadata.enhancers??[];if(a.enhancerInstanceWrapper)this.insertClassToClassEdge(o,a.enhancerInstanceWrapper,s,void 0,"decorator"),u.push({id:a.enhancerInstanceWrapper.id,methodKey:a.methodKey,subtype:a.subtype});else{const p=a.enhancerRef.constructor?.name??a.enhancerRef.name;u.push({name:p,methodKey:a.methodKey,subtype:a.subtype})}c.metadata.enhancers=u}insertClassToClassEdge(a,s,o,c,u){this.graph.insertEdge({source:a.id,target:s.id,metadata:{type:"class-to-class",sourceModuleName:o.name,sourceClassName:a.name,targetClassName:s.name,sourceClassToken:a.token,targetClassToken:s.token,targetModuleName:s.host?.name,keyOrIndex:c,injectionType:u}})}insertClassNodes(a){a.providers.forEach(s=>this.insertClassNode(a,s,"provider")),a.injectables.forEach(s=>this.insertClassNode(a,s,"injectable")),a.controllers.forEach(s=>this.insertClassNode(a,s,"controller"))}}return mu.GraphInspector=n,mu}var bR;function bY(){return bR||(bR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(Jp(),e),t.__exportStar(Ry(),e),t.__exportStar(oF(),e),t.__exportStar(Ny(),e)})($m)),$m}var e_={},gu={},t_={},Et={},ER;function Fy(){if(ER)return Et;ER=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.PathError=Et.TokenData=void 0,Et.parse=u,Et.compile=p,Et.match=f,Et.pathToRegexp=h,Et.stringify=b;const e="/",t=O=>O,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function a(O){return O.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function s(O){return O.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class o{constructor(S,w){this.tokens=S,this.originalPath=w}}Et.TokenData=o;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}}Et.PathError=c;function u(O,S={}){const{encodePath:w=t}=S,A=[...O],T=[];let P=0,q=0;function D(){let k="";if(r.test(A[P]))do k+=A[P++];while(n.test(A[P]));else if(A[P]==='"'){let F=P;for(;P++<A.length;){if(A[P]==='"'){P++,F=0;break}A[P]==="\\"&&P++,k+=A[P]}if(F)throw new c(`Unterminated quote at index ${F}`,O)}if(!k)throw new c(`Missing parameter name at index ${P}`,O);return k}for(;P<A.length;){const k=A[P],F=i[k];F?T.push({type:F,index:P++,value:k}):k==="\\"?T.push({type:"escape",index:P++,value:A[P++]}):k===":"?T.push({type:"param",index:P++,value:D()}):k==="*"?T.push({type:"wildcard",index:P++,value:D()}):T.push({type:"char",index:P++,value:k})}T.push({type:"end",index:P,value:""});function H(k){const F=[];for(;;){const Z=T[q++];if(Z.type===k)break;if(Z.type==="char"||Z.type==="escape"){let Q=Z.value,U=T[q];for(;U.type==="char"||U.type==="escape";)Q+=U.value,U=T[++q];F.push({type:"text",value:w(Q)});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:H("}")});continue}throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${k}`,O)}return F}return new o(H("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[H,...k]=P(D);if(k.length)throw new TypeError(`Missing parameters: ${k.join(", ")}`);return H}}function l(O,S,w){const A=O.map(T=>d(T,S,w));return T=>{const P=[""];for(const q of A){const[D,...H]=q(T);P[0]+=D,P.push(...H)}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[q,...D]=T(P);return D.length?[""]:[q]}}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((q,D)=>{if(typeof q!="string")throw new TypeError(`Expected "${O.name}/${D}" to be a string`);return A(q)}).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),q=P.map(D=>w===!1?t:D.type==="param"?w:H=>H.split(A).map(w));return function(H){const k=T.exec(H);if(!k)return!1;const F=k[0],Z=Object.create(null);for(let Q=1;Q<k.length;Q++){if(k[Q]===void 0)continue;const U=P[Q-1],$=q[Q-1];Z[U.name]=$(k[Q])}return{path:F,params:Z}}}function h(O,S={}){const{delimiter:w=e,end:A=!0,sensitive:T=!1,trailing:P=!0}=S,q=[],D=T?"":"i",H=[];for(const Z of m(O,[])){const Q=typeof Z=="object"?Z:u(Z,S);for(const U of v(Q.tokens,0,[]))H.push(_(U,w,q,Q.originalPath))}let k=`^(?:${H.join("|")})`;return P&&(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 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="",q=!0;for(const D of O){if(D.type==="text"){T+=s(D.value),P+=D.value,q||(q=D.value.includes(S));continue}if(D.type==="param"||D.type==="wildcard"){if(!q&&!P)throw new c(`Missing text before "${D.name}" ${D.type}`,A);D.type==="param"?T+=`(${g(S,q?"":P)}+)`:T+="([\\s\\S]+)",w.push(D),P="",q=!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+=a(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 Et}var yu={},xR;function sF(){if(xR)return yu;xR=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.LegacyRouteConverter=void 0;const e=me(),t=(n,i)=>`Unsupported route path: "${i}". 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(i,a){const s=i.startsWith("/")?i:`/${i}`,o=i.endsWith("/")?s:`${s}/`,u=a?.logs??!0?this.printWarning.bind(this):()=>{};return o.endsWith("/(.*)/")?(o!=="/(.*)/"&&u(i),i.replace("(.*)","{*path}")):o.endsWith("/*/")?(o!=="/*/"&&u(i),i.replace("*","{*path}")):o.endsWith("/+/")?(u(i),i.replace("/+","/*path")):o.includes("/*/")?(u(i),i.replaceAll("/*/",(p,l)=>`/*path${l}/`)):i}static printError(i){this.logger.error(t`${i}`)}static printWarning(i){this.logger.warn(t`${i}`+" Attempting to auto-convert...")}}return yu.LegacyRouteConverter=r,r.logger=new e.Logger(r.name),yu}var r_={},n_={},OR;function EY(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=i;const t=me(),r=ie(),n=a=>t.RequestMethod.ALL===a||a===-1;e.isRequestMethodAll=n;function i(a,s,o){return a.some(c=>(0,e.isRequestMethodAll)(c.requestMethod)||c.requestMethod===o?c.pathRegex.exec((0,r.addLeadingSlash)(s)):!1)}})(n_)),n_}var Ud={},wR;function xY(){if(wR)return Ud;wR=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.flattenRoutePaths=t;const e=ie();function t(r){const n=[];return r.forEach(i=>{if(i.module&&i.path&&n.push({module:i.module,path:i.path}),i.children){const a=i.children;a.forEach(s=>{!(0,e.isString)(s)&&(0,e.isString)(s.path)?s.path=(0,e.normalizePath)((0,e.normalizePath)(i.path)+(0,e.normalizePath)(s.path)):n.push({path:i.path,module:s})}),n.push(...t(a))}}),n}return Ud}var SR;function Wl(){return SR||(SR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(EY(),e),t.__exportStar(xY(),e)})(r_)),r_}var TR;function cF(){return TR||(TR=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=me(),r=ie(),n=Ze(),i=Fy(),a=yn(),s=sF(),o=Wl(),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,i.pathToRegexp)((0,r.addLeadingSlash)(_)).regexp}:{path:_,requestMethod:m.method,pathRegex:(0,i.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,a.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,o.isRouteExcluded)(m,b,t.RequestMethod[_])}})(t_)),t_}var PR;function uF(){if(PR)return gu;PR=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.MiddlewareBuilder=void 0;const e=ie(),t=Ze(),r=cF();class n{constructor(a,s,o){this.routesMapper=a,this.httpAdapter=s,this.routeInfoPathExtractor=o,this.middlewareCollection=new Set}apply(...a){return new n.ConfigProxy(this,a.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}}return gu.MiddlewareBuilder=n,n.ConfigProxy=class{constructor(i,a,s){this.builder=i,this.middleware=a,this.routeInfoPathExtractor=s,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...i){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(i).reduce((a,s)=>{for(const o of this.routeInfoPathExtractor.extractPathFrom(s))a.push({...s,path:o});return a},[])],this}forRoutes(...i){const{middlewareCollection:a}=this.builder,s=this.getRoutesFlatList(i),o=this.removeOverlappedRoutes(s),c={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:o};return a.add(c),this.builder}getRoutesFlatList(i){const{routesMapper:a}=this.builder;return(0,t.iterate)(i).map(s=>a.mapRouteToRouteInfo(s)).flatten().toArray()}removeOverlappedRoutes(i){const a=/(:[^/]*)/g,s="([^/]*)",o=i.filter(c=>c.path.includes(":")).map(c=>({method:c.method,path:c.path,regex:new RegExp("^("+c.path.replace(a,s)+")$","g")}));return i.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 o.find(u)===void 0})}},gu}var AR;function OY(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(uF(),e)})(e_)),e_}var bu={},zd={},RR;function wY(){if(RR)return zd;RR=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.optionalRequire=e;function e(t,r){try{return r?r():Sg(t)}catch{return{}}}return zd}var Eu={},MR;function SY(){if(MR)return Eu;MR=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.MiddlewareContainer=void 0;const e=Kp(),t=Iy(),r=Gl();class n{constructor(a){this.container=a,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(a){if(!this.middleware.has(a)){const s=this.container.getModuleByKey(a);this.middleware.set(a,s.middlewares)}return this.middleware.get(a)}getConfigurations(){return this.configurationSets}insertConfig(a,s){const o=this.getMiddlewareCollection(s),c=this.getTargetConfig(s),u=a||[],p=l=>{const d=l;o.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(a){return this.configurationSets.has(a)||this.configurationSets.set(a,new Set),this.configurationSets.get(a)}}return Eu.MiddlewareContainer=n,Eu}var xu={},Ou={},IR;function TY(){if(IR)return Ou;IR=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.InvalidMiddlewareException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i){super((0,e.INVALID_MIDDLEWARE_MESSAGE)`${i}`)}}return Ou.InvalidMiddlewareException=r,Ou}var wu={},Su={},CR;function PY(){if(CR)return Su;CR=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.ExceptionsHandler=void 0;const e=Hq(),t=ie(),r=Vq(),n=zq();class i extends n.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,o){this.invokeCustomFilters(s,o)||super.catch(s,o)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,o){if((0,t.isEmpty)(this.filters))return!1;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c&&c.func(s,o),!!c}}return Su.ExceptionsHandler=i,Su}var jR;function lF(){if(jR)return wu;jR=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.RouterExceptionFilters=void 0;const e=Oe(),t=ie(),r=Ze(),n=Bq(),i=PY(),a=ct();class s extends n.BaseExceptionFilterContext{constructor(c,u,p){super(c),this.config=u,this.applicationRef=p}create(c,u,p,l=a.STATIC_CONTEXT,d){this.moduleContext=p;const f=new i.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=a.STATIC_CONTEXT,u){const p=this.config.getGlobalFilters();if(c===a.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 wu.RouterExceptionFilters=s,wu}var Tu={},NR;function dF(){if(NR)return Tu;NR=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.RouterProxy=void 0;const e=Mn();class t{createProxy(n,i){return async(a,s,o)=>{try{await n(a,s,o)}catch(c){const u=new e.ExecutionContextHost([a,s,o]);return i.next(c,u),s}}}createExceptionLayerProxy(n,i){return async(a,s,o,c)=>{try{await n(a,s,o,c)}catch(u){const p=new e.ExecutionContextHost([s,o,c]);return i.next(u,p),o}}}}return Tu.RouterProxy=t,Tu}var Pu={},qR;function AY(){if(qR)return Pu;qR=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.MiddlewareResolver=void 0;class e{constructor(r,n){this.middlewareContainer=r,this.injector=n}async resolveInstances(r,n){const i=this.middlewareContainer.getMiddlewareCollection(n),a=async s=>this.resolveMiddlewareInstance(s,i,r);await Promise.all([...i.values()].map(a))}async resolveMiddlewareInstance(r,n,i){await this.injector.loadMiddleware(r,n,i)}}return Pu.MiddlewareResolver=e,Pu}var Au={},Ru={},FR;function pF(){if(FR)return Ru;FR=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.RoutePathFactory=void 0;const e=me(),t=ie(),r=Wl();class n{constructor(a){this.applicationConfig=a}create(a,s){let o=[""];const c=this.getVersion(a);if(c&&a.versioningOptions?.type===e.VersioningType.URI){const u=this.getVersionPrefix(a.versioningOptions);Array.isArray(c)?o=(0,e.flatten)(o.map(p=>c.map(l=>l===e.VERSION_NEUTRAL?p:`${p}/${u}${l}`))):c!==e.VERSION_NEUTRAL&&(o=o.map(p=>`${p}/${u}${c}`))}return o=this.appendToAllIfDefined(o,a.modulePath),o=this.appendToAllIfDefined(o,a.ctrlPath),o=this.appendToAllIfDefined(o,a.methodPath),a.globalPrefix&&(o=o.map(u=>this.isExcludedFromGlobalPrefix(u,s,c,a.versioningOptions)?u:(0,t.stripEndSlash)(a.globalPrefix||"")+u)),o.map(u=>(0,t.addLeadingSlash)(u||"/")).map(u=>u!=="/"?(0,t.stripEndSlash)(u):u)}getVersion(a){return a.methodVersion||a.controllerVersion}getVersionPrefix(a){if(a.type===e.VersioningType.URI){if(a.prefix===!1)return"";if(a.prefix!==void 0)return a.prefix}return"v"}appendToAllIfDefined(a,s){if(!s)return a;const o=(c,u)=>(0,t.stripEndSlash)(c)+(0,t.addLeadingSlash)(u);if(Array.isArray(s)){const c=a.map(u=>s.map(p=>o(u,p)));return(0,e.flatten)(c)}return a.map(c=>o(c,s))}isExcludedFromGlobalPrefix(a,s,o,c){if((0,t.isUndefined)(s))return!1;const p=this.applicationConfig.getGlobalPrefixOptions().exclude;return o&&o!==e.VERSION_NEUTRAL&&c?.type===e.VersioningType.URI&&(a=this.truncateVersionPrefixFromPath(a,o,c)),Array.isArray(p)&&(0,r.isRouteExcluded)(p,a,s)}truncateVersionPrefixFromPath(a,s,o){if(typeof s!="string")return s.forEach(u=>{typeof u=="string"&&(a=this.truncateVersionPrefixFromPath(a,u,o))}),a;const c=`/${this.getVersionPrefix(o)}${s}`;return a.startsWith(c)?a.replace(c,""):a}}return Ru.RoutePathFactory=n,Ru}var kR;function RY(){if(kR)return Au;kR=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.RouteInfoPathExtractor=void 0;const e=me(),t=ie(),r=Wl(),n=pF();class i{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:o,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:o,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:o,version:c}){const u=this.extractVersionPathFrom(c);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,s,o)?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 o=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(s)?s.map(c=>(0,t.addLeadingSlash)(o+c.toString())):[(0,t.addLeadingSlash)(o+s.toString())]}}return Au.RouteInfoPathExtractor=i,Au}var Mu={},Iu={},DR;function fF(){if(DR)return Iu;DR=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.PathsExplorer=void 0;const e=Oe(),t=ie();class r{constructor(i){this.metadataScanner=i}scanForPaths(i,a){const s=(0,t.isUndefined)(a)?Object.getPrototypeOf(i):a;return this.metadataScanner.getAllMethodNames(s).reduce((o,c)=>{const u=this.exploreMethodMetadata(i,s,c);return u&&o.push(u),o},[])}exploreMethodMetadata(i,a,s){const o=i[s],c=a[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:o,methodName:s,version:l}}}return Iu.PathsExplorer=r,Iu}var i_={},LR;function hF(){return LR||(LR=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;const r=oe(),n=me(),i=Oe(),a=ie(),s=yi(),o=Wl();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,o.flattenRoutePaths)(this.routes).forEach(l=>{const d=(0,a.normalizePath)(l.path);this.registerModulePathMetadata(l.module,d),this.updateTargetModulesCache(l.module)})}registerModulePathMetadata(p,l){Reflect.defineMetadata(i.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)})(i_)),i_}var UR;function MY(){if(UR)return Mu;UR=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.RoutesMapper=void 0;const e=Oe(),t=Sp(),r=ie(),n=An(),i=fF(),a=hF();class s{constructor(c,u){this.container=c,this.applicationConfig=u,this.pathsExplorer=new i.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=a.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 Mu.RoutesMapper=s,Mu}var zR;function IY(){if(zR)return xu;zR=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.MiddlewareModule=void 0;const e=me(),t=fi(),r=ie(),n=TY(),i=rt(),a=Bl(),s=Mn(),o=ct(),c=Rn(),u=lF(),p=dF(),l=Wl(),d=uF(),f=AY(),h=RY(),m=MY();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 i.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,q)=>{try{const D=this.getContextId(T,A),H=await this.injector.loadPerContext(O,E,x,D);return(await this.createProxy(H,D))(T,P,q)}catch(D){let H=this.exceptionFiltersCache.get(O.use);H||(H=this.routerExceptionFilter.create(O,O.use,void 0),this.exceptionFiltersCache.set(O.use,H));const k=new s.ExecutionContextHost([T,P,q]);H.next(D,k)}})}async createProxy(g,y=o.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,q,D)=>{const H=g.getRequestMethod?.(P);return H===S||H===t.RequestMethod[t.RequestMethod.HEAD]&&S===t.RequestMethod[t.RequestMethod.GET]?b(P,q,D):D()},T=[];x.some(P=>P.match(/^\/?$/))?T.push("/"):T.push(...x),T.forEach(P=>w(P,A))}getContextId(g,y){const b=a.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 xu.MiddlewareModule=v,xu}var Cu={},a_={},Bd={},ju={},BR;function Zl(){if(BR)return ju;BR=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.getTransientInstances=t,ju.getNonTransientInstances=r;const e=Ze();function t(n){return(0,e.iterate)(n).filter(([i,a])=>a.isDependencyTreeStatic()).map(([i,a])=>a.getStaticTransientInstances()).flatten().filter(i=>!!i).map(({instance:i})=>i).toArray()}function r(n){return(0,e.iterate)(n).filter(([i,a])=>a.isDependencyTreeStatic()&&!a.isTransient).map(([i,{instance:a}])=>a).toArray()}return ju}var HR;function CY(){if(HR)return Bd;HR=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.callModuleBootstrapHook=a;const e=ie(),t=Ze(),r=Zl();function n(s){return(0,e.isFunction)(s.onApplicationBootstrap)}function i(s){return(0,t.iterate)(s).filter(o=>!(0,e.isNil)(o)).filter(n).map(async o=>o.onApplicationBootstrap()).toArray()}async function a(s){const o=s.getNonAliasProviders(),[c,u]=o.shift(),p=[...s.controllers,...o,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(i(l));const d=(0,r.getTransientInstances)(p);await Promise.all(i(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onApplicationBootstrap()}return Bd}var Hd={},VR;function jY(){if(VR)return Hd;VR=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.callAppShutdownHook=a;const e=ie(),t=Ze(),r=Zl();function n(s){return(0,e.isFunction)(s.onApplicationShutdown)}function i(s,o){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(n).map(async c=>c.onApplicationShutdown(o)).toArray()}async function a(s,o){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(i(d,o));const f=(0,r.getTransientInstances)(l);await Promise.all(i(f,o));const h=p.instance;h&&n(h)&&p.isDependencyTreeStatic()&&await h.onApplicationShutdown(o)}return Hd}var Vd={},GR;function NY(){if(GR)return Vd;GR=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.callModuleDestroyHook=a;const e=ie(),t=Ze(),r=Zl();function n(s){return(0,e.isFunction)(s.onModuleDestroy)}function i(s){return(0,t.iterate)(s).filter(o=>!(0,e.isNil)(o)).filter(n).map(async o=>o.onModuleDestroy()).toArray()}async function a(s){const o=s.getNonAliasProviders(),[c,u]=o.shift(),p=[...s.controllers,...o,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(i(l));const d=(0,r.getTransientInstances)(p);await Promise.all(i(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onModuleDestroy()}return Vd}var Gd={},WR;function qY(){if(WR)return Gd;WR=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.callModuleInitHook=a;const e=ie(),t=Ze(),r=Zl();function n(s){return(0,e.isFunction)(s.onModuleInit)}function i(s){return(0,t.iterate)(s).filter(o=>!(0,e.isNil)(o)).filter(n).map(async o=>o.onModuleInit()).toArray()}async function a(s){const o=s.getNonAliasProviders(),[c,u]=o.shift(),p=[...s.controllers,...o,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(i(l));const d=(0,r.getTransientInstances)(p);await Promise.all(i(d));const f=u.instance;f&&n(f)&&u.isDependencyTreeStatic()&&await f.onModuleInit()}return Gd}var Wd={},ZR;function FY(){if(ZR)return Wd;ZR=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.callBeforeAppShutdownHook=a;const e=ie(),t=Ze(),r=Zl();function n(s){return(0,e.isFunction)(s.beforeApplicationShutdown)}function i(s,o){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(n).map(async c=>c.beforeApplicationShutdown(o)).toArray()}async function a(s,o){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(i(d,o));const f=(0,r.getTransientInstances)(l);await Promise.all(i(f,o));const h=p.instance;h&&n(h)&&p.isDependencyTreeStatic()&&await h.beforeApplicationShutdown(o)}return Wd}var KR;function kY(){return KR||(KR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(CY(),e),t.__exportStar(jY(),e),t.__exportStar(NY(),e),t.__exportStar(qY(),e),t.__exportStar(FY(),e)})(a_)),a_}var YR;function ky(){if(YR)return Cu;YR=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.NestApplicationContext=void 0;const e=me(),t=ie(),r=Ze(),n=gi(),i=Hl(),a=Bl(),s=kY(),o=$q(),c=bi(),u=rF();class p extends o.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 i.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,a.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 Cu.NestApplicationContext=p,Cu}var Nu={},dt={},XR;function Dy(){if(XR)return dt;XR=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.INVALID_EXECUTION_CONTEXT=dt.VERSIONED_CONTROLLER_MAPPING_MESSAGE=dt.CONTROLLER_MAPPING_MESSAGE=dt.VERSIONED_ROUTE_MAPPED_MESSAGE=dt.ROUTE_MAPPED_MESSAGE=dt.MODULE_INIT_MESSAGE=void 0;const e=fi(),t=yC(),r=(c,u)=>`${u} dependencies initialized`;dt.MODULE_INIT_MESSAGE=r;const n=(c,u)=>`Mapped {${c}, ${e.RequestMethod[u]}} route`;dt.ROUTE_MAPPED_MESSAGE=n;const i=(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`};dt.VERSIONED_ROUTE_MAPPED_MESSAGE=i;const a=(c,u)=>`${c} {${u}}:`;dt.CONTROLLER_MAPPING_MESSAGE=a;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}):`};dt.VERSIONED_CONTROLLER_MAPPING_MESSAGE=s;const o=(c,u)=>`Calling ${c} is not allowed in this context. Your current execution context is "${u}".`;return dt.INVALID_EXECUTION_CONTEXT=o,dt}var qu={},Fu={},JR;function DY(){if(JR)return Fu;JR=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.UnknownRequestMappingException=void 0;const e=rt(),t=Pt();class r extends e.RuntimeException{constructor(i){super((0,t.UNKNOWN_REQUEST_MAPPING)(i))}}return Fu.UnknownRequestMappingException=r,Fu}var o_={},QR;function vF(){return QR||(QR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;const t=fi();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(i,a){const s=e.REQUEST_METHOD_MAP[a],o=i[s];return o||i.use}}e.RouterMethodFactory=r})(o_)),o_}var ku={},$R;function LY(){if($R)return ku;$R=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.RouteParamsFactory=void 0;const e=wp();class t{exchangeKeyForValue(n,i,{req:a,res:s,next:o}){switch(n){case e.RouteParamtypes.NEXT:return o;case e.RouteParamtypes.REQUEST:return a;case e.RouteParamtypes.RESPONSE:return s;case e.RouteParamtypes.BODY:return i&&a.body?a.body[i]:a.body;case e.RouteParamtypes.RAW_BODY:return a.rawBody;case e.RouteParamtypes.PARAM:return i?a.params[i]:a.params;case e.RouteParamtypes.HOST:const c=a.hosts||{};return i?c[i]:c;case e.RouteParamtypes.QUERY:return i?a.query[i]:a.query;case e.RouteParamtypes.HEADERS:return i?a.headers[i.toLowerCase()]:a.headers;case e.RouteParamtypes.SESSION:return a.session;case e.RouteParamtypes.FILE:return a[i||"file"];case e.RouteParamtypes.FILES:return a.files;case e.RouteParamtypes.IP:return a.ip;default:return null}}}return ku.RouteParamsFactory=t,ku}var Du={},Lu={},Uu={},eM;function UY(){if(eM)return Uu;eM=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.SseStream=void 0;const e=ie(),t=Ep;function r(i){return(0,e.isObject)(i)?r(JSON.stringify(i)):i.split(/\r\n|\r|\n/).map(a=>`data: ${a}
|
|
141
|
-
`).
|
|
142
|
-
`),super.pipe(a,s)}_transform(a,s,o){let c=a.type?`event: ${a.type}
|
|
143
|
-
`:"";c+=a.id?`id: ${a.id}
|
|
144
|
-
`:"",c+=a.retry?`retry: ${a.retry}
|
|
145
|
-
`:"",c+=a.data?r(a.data):"",c+=`
|
|
146
|
-
`,this.push(c),o()}writeMessage(a,s){a.id||(this.lastEventId++,a.id=this.lastEventId.toString()),this.write(a,"utf-8")?process.nextTick(s):this.once("drain",s)}}return Uu.SseStream=n,Uu}var tM;function zY(){if(tM)return Lu;tM=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.RouterResponseController=void 0;const e=me(),t=ie(),r=Sn(),n=ty(),i=UY();class a{constructor(o){this.applicationRef=o,this.logger=new e.Logger(a.name)}async apply(o,c,u){return this.applicationRef.reply(c,o,u)}async redirect(o,c,u){const p=await this.transformToResult(o),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(o,c,u){const p=await this.transformToResult(o);return this.applicationRef.render(c,u,p)}async transformToResult(o){return(0,r.isObservable)(o)?(0,r.lastValueFrom)(o):o}getStatusByMethod(o){return o===e.RequestMethod.POST?e.HttpStatus.CREATED:e.HttpStatus.OK}setHeaders(o,c){c.forEach(({name:u,value:p})=>this.applicationRef.setHeader(o,u,typeof p=="function"?p():p))}setStatus(o,c){this.applicationRef.status(o,c)}async sse(o,c,u,p){if(c.writableEnded)return;const l=await Promise.resolve(o);this.assertObservable(l);const d=new i.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(o){if(!(0,r.isObservable)(o))throw new ReferenceError("You must return an Observable stream to use Server-Sent Events (SSE).")}}return Lu.RouterResponseController=a,Lu}var rM;function BY(){if(rM)return Du;rM=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.RouterExecutionContext=void 0;const e=me(),t=Oe(),r=wp(),n=ie(),i=Py(),a=Yq(),s=Xq(),o=ct(),c=zY();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 a.ContextUtils,this.responseController=new c.RouterResponseController(g)}create(l,d,f,h,m,v=o.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,_),q=this.interceptorsContextCreator.create(l,d,h,v,_),D=this.createGuardsFn(P,l,d,g),H=this.createPipesFn(T,A),k=(F,Z,Q,U)=>async()=>(H&&await H(F,Z,Q,U),d.apply(l,F));return async(F,Z,Q)=>{const U=this.contextUtils.createNullArray(y);D&&await D([F,Z,Q]),this.responseController.setStatus(Z,O),w&&this.responseController.setHeaders(Z,S);const $=await this.interceptorsConsumer.intercept(q,[F,Z,Q],l,d,k(U,F,Z,Q),g);await b($,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=o.STATIC_CONTEXT,Q)=>this.exchangeKeysForValues(y,g,F,Z,Q,x),S=O(h),w=this.isResponseHandled(l,f,S),A=this.reflectRedirect(d),T=this.createHandleResponseFn(d,w,A),P=this.reflectHttpStatusCode(d),q=P||this.responseController.getStatusByMethod(m),D=this.reflectResponseHeaders(d),H=!(0,n.isEmpty)(D),k={argsLength:b,fnHandleResponse:T,paramtypes:E,getParamsMetadata:O,httpStatusCode:q,hasCustomHeaders:H,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=o.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(i.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 Du.RouterExecutionContext=u,Du}var nM;function mF(){if(nM)return qu;nM=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.RouterExplorer=void 0;const e=Oe(),t=Pl(),r=xg(),n=Ot(),i=ie(),a=Fy(),s=DY(),o=Py(),c=Bl(),u=Mn(),p=Dy(),l=vF(),d=ct(),f=Wq(),h=Kq(),m=fF(),v=Rn(),_=LY(),g=BY();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 q=new _.RouteParamsFactory,D=new h.PipesContextCreator(x,A),H=new h.PipesConsumer,k=new o.GuardsContextCreator(x,A),F=new o.GuardsConsumer,Z=new f.InterceptorsContextCreator(x,A),Q=new f.InterceptorsConsumer;this.executionContextCreator=new g.RouterExecutionContext(q,D,H,k,F,Z,Q,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,i.isUndefined)(x))throw new s.UnknownRequestMappingException(E);return Array.isArray(x)?x.map(O=>(0,i.addLeadingSlash)(O)):[(0,i.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:q,methodName:D}=x,{instance:H}=O,k=this.routerMethodFactory.get(E,P).bind(E),Z=!O.isDependencyTreeStatic()?this.createRequestScopedHandler(O,P,this.container.getModuleByKey(S),S,D):this.createCallbackProxy(H,q,D,S,P),Q=(w.methodVersion||w.controllerVersion)&&w.versioningOptions;let U=this.applyHostFilter(A,Z);T.forEach($=>{Q&&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(q,U);const M=E.normalizePath?E.normalizePath(L):L,z=this.container.getHttpAdapterRef().getOnRouteTriggered?.();z?k(M,(...X)=>(z(P,L),U(...X))):k(M,U),this.graphInspector.insertEntrypointDefinition(B,O.id)}),this.routePathFactory.create({...w,versioningOptions:void 0},P).forEach(L=>{if(Q){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,a.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,q)=>{T.hosts={};const D=O.getRequestHostname(T)||"";for(const H of w){const k=D.match(H.regexp);if(k){if(H.keys.length>0)H.keys.forEach((F,Z)=>T.hosts[F.name]=k[Z+1]);else if(H.regexp&&k.groups)for(const F in k.groups)T.hosts[F]=k.groups[F];return x(T,P,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,T){const P=this.executionContextCreator.create(E,x,O,S,w,A,T),q=this.exceptionsFilter.create(E,x,S,A,T);return this.routerProxy.createProxy(P,q)}createRequestScopedHandler(E,x,O,S,w){const{instance:A}=E,T=O.controllers,P=E.isDependencyTreeDurable();return async(q,D,H)=>{try{const k=this.getContextId(q,P),F=await this.injector.loadPerContext(A,O,T,k);await this.createCallbackProxy(F,F[w],w,S,x,k,E.id)(q,D,H)}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,H]);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 qu.RouterExplorer=y,qu}var iM;function _F(){if(iM)return Nu;iM=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.RoutesResolver=void 0;const e=me(),t=Oe(),r=Ot(),n=Dy(),i=An(),a=pF(),s=lF(),o=mF(),c=dF();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 a.RoutePathFactory(this.applicationConfig);const v=new i.MetadataScanner;this.routerExplorer=new o.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 Nu.RoutesResolver=u,Nu}const HY={},VY=Object.freeze(Object.defineProperty({__proto__:null,default:HY},Symbol.toStringTag,{value:"Module"})),GY=pi(VY),WY={},ZY=Object.freeze(Object.defineProperty({__proto__:null,default:WY},Symbol.toStringTag,{value:"Module"})),KY=pi(ZY),YY={},XY=Object.freeze(Object.defineProperty({__proto__:null,default:YY},Symbol.toStringTag,{value:"Module"})),gF=pi(XY);var aM;function Ly(){if(aM)return bu;aM=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.NestApplication=void 0;const e=me(),t=Ot(),r=Al(),n=ie(),i=Ze(),a=bp,s=yr(),o=gi(),c=wY(),u=bi(),p=SY(),l=IY(),d=cF(),f=ky(),h=_F(),{SocketModule:m}=(0,c.optionalRequire)("@nestjs/websockets/socket-module",()=>GY),{MicroservicesModule:v}=(0,c.optionalRequire)("@nestjs/microservices/microservices-module",()=>KY);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,i.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(o.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",()=>gF),{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(o.MESSAGES.CALL_LISTEN_FIRST),b(o.MESSAGES.CALL_LISTEN_FIRST);return}const E=this.httpServer.address();y(this.formatAddress(E))})}formatAddress(y){if((0,n.isString)(y)){if((0,a.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 bu.NestApplication=_,bu}var pn={},zu={},Bu={},oM;function JY(){if(oM)return Bu;oM=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.ExceptionHandler=void 0;const e=Ot();class t{handle(n){t.logger.error(n)}}return Bu.ExceptionHandler=t,t.logger=new e.Logger(t.name),Bu}var sM;function QY(){if(sM)return zu;sM=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.ExceptionsZone=void 0;const e=me(),t=JY(),r=()=>process.exit(1);class n{static run(a,s=r,o){try{a()}catch(c){this.exceptionHandler.handle(c),o&&e.Logger.flush(),s(c)}}static async asyncRun(a,s=r,o){try{await a()}catch(c){this.exceptionHandler.handle(c),o&&e.Logger.flush(),s(c)}}}return zu.ExceptionsZone=n,n.exceptionHandler=new t.ExceptionHandler,zu}var Zd={},cM;function $Y(){if(cM)return Zd;cM=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.loadAdapter=n;const e=me(),t=(i,a)=>`No driver (${a}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${i}" package ($ npm install ${i}).`,r=new e.Logger("PackageLoader");function n(i,a,s){try{return s?s():Sg(i)}catch{r.error(t(i,a)),process.exit(1)}}return Zd}var Hu={},uM;function e6(){if(uM)return Hu;uM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.rethrow=void 0;const e=t=>{throw t};return Hu.rethrow=e,Hu}var Vu={},lM;function Uy(){if(lM)return Vu;lM=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.InstanceLoader=void 0;const e=me(),t=Dy(),r=Xp();class n{constructor(a,s,o,c=new e.Logger(n.name,{timestamp:!0})){this.container=a,this.injector=s,this.graphInspector=o,this.logger=c}setLogger(a){this.logger=a}async createInstancesOfDependencies(a=this.container.getModules()){this.createPrototypes(a);try{await this.createInstances(a)}catch(s){throw this.graphInspector.inspectModules(a),this.graphInspector.registerPartial(s),s}this.graphInspector.inspectModules(a)}createPrototypes(a){a.forEach(s=>{this.createPrototypesOfProviders(s),this.createPrototypesOfInjectables(s),this.createPrototypesOfControllers(s)})}async createInstances(a){await Promise.all([...a.values()].map(async s=>{await this.createInstancesOfProviders(s),await this.createInstancesOfInjectables(s),await this.createInstancesOfControllers(s);const{name:o}=s;this.isModuleWhitelisted(o)&&this.logger.log((0,t.MODULE_INIT_MESSAGE)`${o}`)}))}createPrototypesOfProviders(a){const{providers:s}=a;s.forEach(o=>this.injector.loadPrototype(o,s))}async createInstancesOfProviders(a){const{providers:s}=a,o=[...s.values()];await Promise.all(o.map(async c=>{await this.injector.loadProvider(c,a),this.graphInspector.inspectInstanceWrapper(c,a)}))}createPrototypesOfControllers(a){const{controllers:s}=a;s.forEach(o=>this.injector.loadPrototype(o,s))}async createInstancesOfControllers(a){const{controllers:s}=a,o=[...s.values()];await Promise.all(o.map(async c=>{await this.injector.loadController(c,a),this.graphInspector.inspectInstanceWrapper(c,a)}))}createPrototypesOfInjectables(a){const{injectables:s}=a;s.forEach(o=>this.injector.loadPrototype(o,s))}async createInstancesOfInjectables(a){const{injectables:s}=a,o=[...s.values()];await Promise.all(o.map(async c=>{await this.injector.loadInjectable(c,a),this.graphInspector.inspectInstanceWrapper(c,a)}))}isModuleWhitelisted(a){return a!==r.InternalCoreModule.name}}return Vu.InstanceLoader=n,Vu}var Gu={},dM;function yF(){if(dM)return Gu;dM=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.NoopGraphInspector=void 0;const e=Jp(),t=()=>{};return Gu.NoopGraphInspector=new Proxy(e.GraphInspector.prototype,{get:()=>t}),Gu}var Wu={},Zu={},pM;function t6(){if(pM)return Zu;pM=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.InvalidClassModuleException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i,a){super((0,e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(i,a))}}return Zu.InvalidClassModuleException=r,Zu}var Ku={},fM;function r6(){if(fM)return Ku;fM=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.InvalidModuleException=void 0;const e=Pt(),t=rt();class r extends t.RuntimeException{constructor(i,a,s){super((0,e.INVALID_MODULE_MESSAGE)(i,a,s))}}return Ku.InvalidModuleException=r,Ku}var Yu={},hM;function n6(){if(hM)return Yu;hM=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.UndefinedModuleException=void 0;const e=rt(),t=Pt();class r extends e.RuntimeException{constructor(i,a,s){super((0,t.UNDEFINED_MODULE_MESSAGE)(i,a,s))}}return Yu.UndefinedModuleException=r,Yu}var Xu={},vM;function i6(){if(vM)return Xu;vM=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.InternalCoreModuleFactory=void 0;const e=me(),t=Ay(),r=zl(),n=Ry(),i=Ny(),a=bi(),s=Uy(),o=jy(),c=yi(),u=Xp();class p{static create(d,f,h,m,v,_){const g=()=>{const y=new e.Logger(o.LazyModuleLoader.name,{timestamp:!1}),b=new a.Injector({preview:d.contextOptions?.preview,instanceDecorator:d.contextOptions?.instrument?.instanceDecorator}),E=new s.InstanceLoader(d,b,v,y);return new o.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:o.LazyModuleLoader,useFactory:g},{provide:i.SerializedGraph,useFactory:()=>d.serializedGraph}])}}return Xu.InternalCoreModuleFactory=p,Xu}var Ju={},Qu={},mM;function a6(){if(mM)return Qu;mM=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.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,i=this;for(;i;){if(n++,i=i.parent,r.has(i))return-1;r.add(i)}return n}hasCycleWith(r){const n=new Set;let i=this;for(;i;){if(i.value===r)return!0;if(i=i.parent,n.has(i))return!1;n.add(i)}return!1}}return Qu.TreeNode=e,Qu}var _M;function o6(){if(_M)return Ju;_M=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.TopologyTree=void 0;const e=a6();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 i(a,s=1){n(a.value,s),a.children.forEach(o=>i(o,s+1))}i(this.root)}traverseAndMapToTree(n,i=1){n.value.imports&&n.value.imports.forEach(a=>{if(!a)return;if(this.links.has(a)){const o=this.links.get(a);if(n.hasCycleWith(a))return;o.getDepth()<i&&o.relink(n);return}const s=new e.TreeNode({value:a,parent:n});n.addChild(s),this.links.set(a,s),this.traverseAndMapToTree(s,i+1)})}}return Ju.TopologyTree=t,Ju}var gM;function bF(){if(gM)return Wu;gM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.DependenciesScanner=void 0;const e=Oe(),t=Sp(),r=ie(),n=Ze(),i=yr(),a=gi(),s=Jq(),o=t6(),c=r6(),u=n6(),p=Kp(),l=i6(),d=o6(),f=Vl();class h{constructor(v,_,g,y=new i.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 o.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=a.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{[a.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalInterceptor(v),[a.APP_PIPE]:v=>this.applicationConfig.addGlobalPipe(v),[a.APP_GUARD]:v=>this.applicationConfig.addGlobalGuard(v),[a.APP_FILTER]:v=>this.applicationConfig.addGlobalFilter(v)}}getApplyRequestProvidersMap(){return{[a.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalRequestInterceptor(v),[a.APP_PIPE]:v=>this.applicationConfig.addGlobalRequestPipe(v),[a.APP_GUARD]:v=>this.applicationConfig.addGlobalRequestGuard(v),[a.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 Wu.DependenciesScanner=h,Wu}var s_={},c_={},$u={},u_={exports:{}};var l_,yM;function s6(){if(yM)return l_;yM=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;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 l_=i()?Object.assign:function(a,s){for(var o,c=n(a),u,p=1;p<arguments.length;p++){o=Object(arguments[p]);for(var l in o)t.call(o,l)&&(c[l]=o[l]);if(e){u=e(o);for(var d=0;d<u.length;d++)r.call(o,u[d])&&(c[u[d]]=o[u[d]])}}return c},l_}var Kd={exports:{}};var bM;function c6(){if(bM)return Kd.exports;bM=1,Kd.exports=n,Kd.exports.append=t;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function t(i,a){if(typeof i!="string")throw new TypeError("header argument is required");if(!a)throw new TypeError("field argument is required");for(var s=Array.isArray(a)?a:r(String(a)),o=0;o<s.length;o++)if(!e.test(s[o]))throw new TypeError("field argument contains an invalid header name");if(i==="*")return i;var c=i,u=r(i.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(i){for(var a=0,s=[],o=0,c=0,u=i.length;c<u;c++)switch(i.charCodeAt(c)){case 32:o===a&&(o=a=c+1);break;case 44:s.push(i.substring(o,a)),o=a=c+1;break;default:a=c+1;break}return s.push(i.substring(o,a)),s}function n(i,a){if(!i||!i.getHeader||!i.setHeader)throw new TypeError("res argument is required");var s=i.getHeader("Vary")||"",o=Array.isArray(s)?s.join(", "):String(s);(s=t(o,a))&&i.setHeader("Vary",s)}return Kd.exports}var EM;function u6(){return EM||(EM=1,(function(){var e=s6(),t=c6(),r={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function n(h){return typeof h=="string"||h instanceof String}function i(h,m){if(Array.isArray(m)){for(var v=0;v<m.length;++v)if(i(h,m[v]))return!0;return!1}else return n(m)?h===m:m instanceof RegExp?m.test(h):!!m}function a(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=i(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 o(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(a(h,m)),g.push(o(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(a(h,m)),g.push(o(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()}})}}u_.exports=f})()),u_.exports}var Yd={},xM;function l6(){if(xM)return Yd;xM=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.getBodyParserOptions=t;const e=(r,n,i)=>(Buffer.isBuffer(i)&&(r.rawBody=i),!0);function t(r,n){let i=n||{};return r===!0&&(i={...i,verify:e}),i}return Yd}var OM;function d6(){if(OM)return $u;OM=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.ExpressAdapter=void 0;const e=me(),t=ie(),r=Dq(),n=vF(),i=sF(),a=u6(),s=Zk,o=Kk,c=Yk,u=Fy(),p=l6();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=i.LegacyRouteConverter.tryConvert(f);return(0,u.pathToRegexp)(h),h}catch(h){throw h instanceof TypeError&&i.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(a(f))}createMiddlewareFactory(f){return(h,m)=>{try{const v=i.LegacyRouteConverter.tryConvert(h);return this.routerMethodFactory.get(this.instance,f).call(this.instance,v,m)}catch(v){throw v instanceof TypeError&&i.LegacyRouteConverter.printError(h),v}}}initHttpServer(f){f&&f.httpsOptions?this.httpServer=c.createServer(f.httpsOptions,this.getInstance()):this.httpServer=o.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 $u.ExpressAdapter=l,$u}var wM;function p6(){return wM||(wM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(d6(),e)})(c_)),c_}var d_={},p_={},SM;function f6(){return SM||(SM=1,Object.defineProperty(p_,"__esModule",{value:!0})),p_}var f_={},TM;function h6(){return TM||(TM=1,Object.defineProperty(f_,"__esModule",{value:!0})),f_}var PM;function v6(){return PM||(PM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(f6(),e),t.__exportStar(h6(),e)})(d_)),d_}var h_={},v_={},Xd={},ri={exports:{}},fn={exports:{}},Jd={};var AM;function m6(){if(AM)return Jd;AM=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,i=/([\\"])/g,a=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,o=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Jd.format=c,Jd.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||!a.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(i,"\\$1")+'"'}function d(f){var h=o.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 Jd}var m_={};const _6={"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 __,RM;function g6(){return RM||(RM=1,__=_6),__}var MM;function y6(){return MM||(MM=1,(function(e){var t=g6(),r=or.extname,n=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=s,e.extension=o,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),u(e.extensions,e.types);function a(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&&i.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 o(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}}})}})(m_)),m_}var IM;function b6(){if(IM)return fn.exports;IM=1;var e=m6(),t=y6();fn.exports=i,fn.exports.is=r,fn.exports.hasBody=n,fn.exports.normalize=a,fn.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(a(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 i(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 a(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 o(u){var p=e.parse(u);return p.parameters=void 0,e.format(p)}function c(u){if(!u)return null;try{return o(u)}catch{return null}}return fn.exports}var g_,CM;function zy(){if(CM)return g_;CM=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 i(f){let h;for(;;)switch(f){case"utf-8":case"utf8":return a.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 a.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return a.utf16le;case"base64":return a.base64;default:if(h===void 0){h=!0,f=f.toLowerCase();continue}return a.other.bind(f)}}const a={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=i(h);if(v)return v(f,m)}function o(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 g_={basename:o,convertToUTF8:s,getDecoder:i,parseContentType:e,parseDisposition:r},g_}var y_,jM;function E6(){if(jM)return y_;jM=1;function e(i,a,s,o,c){for(let u=0;u<c;++u)if(i[a+u]!==s[o+u])return!1;return!0}class t{constructor(a,s){if(typeof s!="function")throw new Error("Missing match callback");if(typeof a=="string")a=Buffer.from(a);else if(!Buffer.isBuffer(a))throw new Error(`Expected Buffer for needle, got ${typeof a}`);const o=a.length;if(this.maxMatches=1/0,this.matches=0,this._cb=s,this._lookbehindSize=0,this._needle=a,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(o),this._occ=[o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o],o>1)for(let c=0;c<o-1;++c)this._occ[a[c]]=o-1-c}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(a,s){let o;Buffer.isBuffer(a)||(a=Buffer.from(a,"latin1"));const c=a.length;for(this._bufPos=s||0;o!==c&&this.matches<this.maxMatches;)o=r(this,a);return o}destroy(){const a=this._lookbehindSize;a&&this._cb(!1,this._lookbehind,0,a,!1),this.reset()}}function r(i,a){const s=a.length,o=i._needle,c=o.length;let u=-i._lookbehindSize;const p=c-1,l=o[p],d=s-c,f=i._occ,h=i._lookbehind;if(u<0){for(;u<0&&u<=d;){const v=u+p,_=v<0?h[i._lookbehindSize+v]:a[v];if(_===l&&n(i,a,u,p))return i._lookbehindSize=0,++i.matches,u>-i._lookbehindSize?i._cb(!0,h,0,i._lookbehindSize+u,!1):i._cb(!0,void 0,0,0,!0),i._bufPos=u+c;u+=f[_]}for(;u<0&&!n(i,a,u,s-u);)++u;if(u<0){const v=i._lookbehindSize+u;return v>0&&i._cb(!1,h,0,v,!1),i._lookbehindSize-=v,h.copy(h,0,v,i._lookbehindSize),h.set(a,i._lookbehindSize),i._lookbehindSize+=s,i._bufPos=s,s}i._cb(!1,h,0,i._lookbehindSize,!1),i._lookbehindSize=0}u+=i._bufPos;const m=o[0];for(;u<=d;){const v=a[u+p];if(v===l&&a[u]===m&&e(o,0,a,u,p))return++i.matches,u>0?i._cb(!0,a,i._bufPos,u,!0):i._cb(!0,void 0,0,0,!0),i._bufPos=u+c;u+=f[v]}for(;u<s;){if(a[u]!==m||!e(a,u,o,0,s-u)){++u;continue}a.copy(h,0,u,s),i._lookbehindSize=s-u;break}return u>0&&i._cb(!1,a,i._bufPos,u<s?u:s,!0),i._bufPos=s,s}function n(i,a,s,o){const c=i._lookbehind,u=i._lookbehindSize,p=i._needle;for(let l=0;l<o;++l,++s)if((s<0?c[u+s]:a[s])!==p[l])return!1;return!0}return y_=t,y_}var b_,NM;function x6(){if(NM)return b_;NM=1;const{Readable:e,Writable:t}=Ep,r=E6(),{basename:n,convertToUTF8:i,getDecoder:a,parseContentType:s,parseDisposition:o}=zy(),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(P){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=h,this.name="",this.value="",this.crlf=0,this.cb=P}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=h,this.name="",this.value="",this.crlf=0}push(P,q,D){let H=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=P[q];if(w[F]!==1){if(F!==58||(this.name+=P.latin1Slice(H,q),this.name.length===0))return-1;++q,k=!0,this.state=m;break}}if(!k){this.name+=P.latin1Slice(H,q);break}}case m:{let k=!1;for(;q<D;++q){if(this.byteCount===f)return-1;++this.byteCount;const F=P[q];if(F!==32&&F!==9){H=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=P[q];if(A[k]!==1){if(k!==13)return-1;++this.crlf;break}}this.value+=P.latin1Slice(H,q++);break;case 1:if(this.byteCount===f||(++this.byteCount,P[q++]!==10))return-1;++this.crlf;break;case 2:{if(this.byteCount===f)return-1;++this.byteCount;const k=P[q];k===32||k===9?(H=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):(H=q,this.crlf=0,this.state=h,this.name="",this.value=""));break}case 3:{if(this.byteCount===f||(++this.byteCount,P[q++]!==10))return-1;const k=this.header;return this.reset(),this.cb(k),q}}break}return q}}class g extends e{constructor(P,q){super(P),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(P){const q=this._readcb;q&&(this._readcb=null,q())}}const y={push:(T,P)=>{},destroy:()=>{}};function b(T,P){const q=T._writecb;T._writecb=null,q&&q()}function E(T,P){return T}class x extends t{constructor(P){const q={autoDestroy:!0,emitClose:!0,highWaterMark:typeof P.highWaterMark=="number"?P.highWaterMark:void 0};if(super(q),!P.conType.params||typeof P.conType.params.boundary!="string")throw new Error("Multipart: Boundary not found");const D=P.conType.params.boundary,H=typeof P.defParamCharset=="string"&&P.defParamCharset?a(P.defParamCharset):E,k=P.defCharset||"utf8",F=P.preservePath,Z={autoDestroy:!0,emitClose:!0,highWaterMark:typeof P.fileHwm=="number"?P.fileHwm:void 0},Q=P.limits,U=Q&&typeof Q.fieldSize=="number"?Q.fieldSize:1*1024*1024,$=Q&&typeof Q.fileSize=="number"?Q.fileSize:1/0,C=Q&&typeof Q.files=="number"?Q.files:1/0,N=Q&&typeof Q.fields=="number"?Q.fields:1/0,L=Q&&typeof Q.parts=="number"?Q.parts:1/0;let B=-1,M=0,j=0,z=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let X=0,te,R=0,I,W,ee,se,re=!1,de=!1,ge=!1;this._hparser=null;const Ee=new _(xe=>{this._hparser=null,z=!1,ee="text/plain",I=k,W="7bit",se=void 0,re=!1;let Ae;if(!xe["content-disposition"]){z=!0;return}const _e=o(xe["content-disposition"][0],H);if(!_e||_e.type!=="form-data"){z=!0;return}if(_e.params&&(_e.params.name&&(se=_e.params.name),_e.params["filename*"]?Ae=_e.params["filename*"]:_e.params.filename&&(Ae=_e.params.filename),Ae!==void 0&&!F&&(Ae=n(Ae))),xe["content-type"]){const Fe=s(xe["content-type"][0]);Fe&&(ee=`${Fe.type}/${Fe.subtype}`,Fe.params&&typeof Fe.params.charset=="string"&&(I=Fe.params.charset.toLowerCase()))}if(xe["content-transfer-encoding"]&&(W=xe["content-transfer-encoding"][0].toLowerCase()),ee==="application/octet-stream"||Ae!==void 0){if(j===C){de||(de=!0,this.emit("filesLimit")),z=!0;return}if(++j,this.listenerCount("file")===0){z=!0;return}X=0,this._fileStream=new g(Z,this),++this._fileEndsLeft,this.emit("file",se,this._fileStream,{filename:Ae,encoding:W,mimeType:ee})}else{if(M===N){ge||(ge=!0,this.emit("fieldsLimit")),z=!0;return}if(++M,this.listenerCount("field")===0){z=!0;return}te=[],R=0}});let Pe=0;const Me=(xe,Ae,_e,Fe,Qe)=>{e:for(;Ae;){if(this._hparser!==null){const be=this._hparser.push(Ae,_e,Fe);if(be===-1){this._hparser=null,Ee.reset(),this.emit("error",new Error("Malformed part header"));break}_e=be}if(_e===Fe)break;if(Pe!==0){if(Pe===1){switch(Ae[_e]){case 45:Pe=2,++_e;break;case 13:Pe=3,++_e;break;default:Pe=0}if(_e===Fe)return}if(Pe===2){if(Pe=0,Ae[_e]===45){this._complete=!0,this._bparser=y;return}const be=this._writecb;this._writecb=l,Me(!1,p,0,1,!1),this._writecb=be}else if(Pe===3)if(Pe=0,Ae[_e]===10){if(++_e,B>=L||(this._hparser=Ee,_e===Fe))break;continue e}else{const be=this._writecb;this._writecb=l,Me(!1,u,0,1,!1),this._writecb=be}}if(!z){if(this._fileStream){let be;const Ke=Math.min(Fe-_e,$-X);Qe?be=Ae.slice(_e,_e+Ke):(be=Buffer.allocUnsafe(Ke),Ae.copy(be,0,_e,_e+Ke)),X+=be.length,X===$?(be.length>0&&this._fileStream.push(be),this._fileStream.emit("limit"),this._fileStream.truncated=!0,z=!0):this._fileStream.push(be)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(te!==void 0){let be;const Ke=Math.min(Fe-_e,U-R);Qe?be=Ae.slice(_e,_e+Ke):(be=Buffer.allocUnsafe(Ke),Ae.copy(be,0,_e,_e+Ke)),R+=Ke,te.push(be),R===U&&(z=!0,re=!0)}}break}if(xe){if(Pe=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(te!==void 0){let be;switch(te.length){case 0:be="";break;case 1:be=i(te[0],I,0);break;default:be=i(Buffer.concat(te,R),I,0)}te=void 0,R=0,this.emit("field",se,be,{nameTruncated:!1,valueTruncated:re,encoding:W,mimeType:ee})}++B===L&&this.emit("partsLimit")}};this._bparser=new r(`\r
|
|
148
|
-
--${D}`,Me),this._writecb=null,this._finalcb=null,this.write(c)}static detect(P){return P.type==="multipart"&&P.subtype==="form-data"}_write(P,q,D){this._writecb=D,this._bparser.push(P,0),this._writecb&&b(this)}_destroy(P,q){this._hparser=null,this._bparser=y,P||(P=S(this));const D=this._fileStream;D&&(this._fileStream=null,D.destroy(P)),q(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,q){if(q)return P(q);q=S(T),P(q)}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 b_=x,b_}var E_,qM;function O6(){if(qM)return E_;qM=1;const{Writable:e}=Ep,{getDecoder:t}=zy();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=i(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=i(this,c,l,d);continue}++l,++this._bytesKey,l=i(this,c,l,d)}this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l))}else{for(l=a(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=a(this,c,l,d);continue}++l,++this._bytesVal,l=a(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(o,c,u,p){if(u>=p)return p;if(o._byte===-1){const l=s[c[u++]];if(l===-1)return-1;if(l>=8&&(o._encode=2),u<p){const d=s[c[u++]];if(d===-1)return-1;o._inKey?o._key+=String.fromCharCode((l<<4)+d):o._val+=String.fromCharCode((l<<4)+d),o._byte=-2,o._lastPos=u}else o._byte=l}else{const l=s[c[u++]];if(l===-1)return-1;o._inKey?o._key+=String.fromCharCode((o._byte<<4)+l):o._val+=String.fromCharCode((o._byte<<4)+l),o._byte=-2,o._lastPos=u}return u}function i(o,c,u,p){if(o._bytesKey>o.fieldNameSizeLimit){for(o._keyTrunc||o._lastPos<u&&(o._key+=c.latin1Slice(o._lastPos,u-1)),o._keyTrunc=!0;u<p;++u){const l=c[u];if(l===61||l===38)break;++o._bytesKey}o._lastPos=u}return u}function a(o,c,u,p){if(o._bytesVal>o.fieldSizeLimit){for(o._valTrunc||o._lastPos<u&&(o._val+=c.latin1Slice(o._lastPos,u-1)),o._valTrunc=!0;u<p&&c[u]!==38;++u)++o._bytesVal;o._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 E_=r,E_}var x_,FM;function w6(){if(FM)return x_;FM=1;const{parseContentType:e}=zy();function t(n){const i=n.headers,a=e(i["content-type"]);if(!a)throw new Error("Malformed content type");for(const s of r){if(!s.detect(a))continue;const c={limits:n.limits,headers:i,conType:a,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: ${i["content-type"]}`)}const r=[x6(),O6()].filter(function(n){return typeof n.detect=="function"});return x_=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)},x_}var O_,kM;function S6(){if(kM)return O_;kM=1;var e=/^[^\[]*/,t=/^\[(\d+)\]/,r=/^\[([^\]]+)\]/;function n(i){function a(){return[{type:"object",key:i,last:!0}]}var s=e.exec(i)[0];if(!s)return a();for(var o=i.length,c=s.length,u={type:"object",key:s},p=[u];c<o;){var l;if(i[c]==="["&&i[c+1]==="]"){if(c+=2,u.append=!0,c!==o)return a();continue}if(l=t.exec(i.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(i.substring(c)),l!==null){c+=l[0].length,u.nextType="object",u={type:"object",key:l[1]},p.push(u);continue}return a()}return u.last=!0,p}return O_=n,O_}var w_,DM;function T6(){if(DM)return w_;DM=1;function e(n){return n===void 0?"undefined":Array.isArray(n)?"array":typeof n=="object"?"object":"scalar"}function t(n,i,a,s){switch(e(a)){case"undefined":i.append?n[i.key]=[s]:n[i.key]=s;break;case"array":n[i.key].push(s);break;case"object":return t(a,{key:""},a[""],s);case"scalar":n[i.key]=[n[i.key],s];break}return n}function r(n,i,a,s){if(i.last)return t(n,i,a,s);var o;switch(e(a)){case"undefined":return i.nextType==="array"?n[i.key]=[]:n[i.key]=Object.create(null),n[i.key];case"object":return n[i.key];case"array":return i.nextType==="array"?a:(o=Object.create(null),n[i.key]=o,a.forEach(function(c,u){c!==void 0&&(o[""+u]=c)}),o);case"scalar":return o=Object.create(null),o[""]=a,n[i.key]=o,o}}return w_=r,w_}var S_,LM;function P6(){if(LM)return S_;LM=1;var e=S6(),t=T6();function r(n,i,a){var s=e(i);s.reduce(function(o,c){return t(o,c,o[c.key],a)},n)}return S_=r,S_}var T_,UM;function A6(){if(UM)return T_;UM=1;var e=yg.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)},T_=t,T_}var P_,zM;function EF(){if(zM)return P_;zM=1;var e=di,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,i){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t[n],this.code=n,i&&(this.field=i)}return e.inherits(r,Error),P_=r,P_}var A_,BM;function R6(){if(BM)return A_;BM=1;function e(r,n){var i=r.indexOf(n);~i&&r.splice(i,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)},A_=t,A_}var R_,HM;function M6(){if(HM)return R_;HM=1;function e(t,r,n){var i=t.length,a=[];if(i===0)return n(null,a);function s(o){var c=t[o];r(c,function(u){u&&(u.file=c,u.field=c.fieldname,a.push(u)),o<i-1?setImmediate(function(){s(o+1)}):n(null,a)})}s(0)}return R_=e,R_}var M_,VM;function I6(){if(VM)return M_;VM=1;var e=b6(),t=w6(),r=P6(),n=A6(),i=EF(),a=R6(),s=M6();function o(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,T=[];function P(F){var Z=!1;function Q(){Z||(Z=!0,f(F))}if(!O){if(O=!0,E&&(l.unpipe(E),setImmediate(()=>{E.removeAllListeners()})),o(l),l.resume(),F&&l.readable&&!l.destroyed){l.once("end",Q),l.once("error",Q),l.once("close",Q);return}f(F)}}function q(){S&&A.isZero()&&!w&&P()}function D(F,Z){if(w)return;w=!0;function Q(){function U($,C){v._removeFile(l,$,C)}s(T,U,function($,C){if($)return P($);F.storageErrors=C,P(F)})}Z?Q():A.onceZero(Q)}function H(F,Z){D(new i(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 a(g,l),E.on("field",function(F,Z,{nameTruncated:Q,valueTruncated:U}){if(F==null)return H("MISSING_FIELD_NAME");if(Q)return H("LIMIT_FIELD_KEY");if(U)return H("LIMIT_FIELD_VALUE",F);if(m&&Object.prototype.hasOwnProperty.call(m,"fieldNameSize")&&F.length>m.fieldNameSize)return H("LIMIT_FIELD_KEY");r(l.body,F,Z)}),E.on("file",function(F,Z,{filename:Q,encoding:U,mimeType:$}){var C=!1;if(Z.on("error",function(B){C&&A.decrement(),D(B)}),F==null)return H("MISSING_FIELD_NAME");if(!Q)return Z.resume();if(m&&Object.prototype.hasOwnProperty.call(m,"fieldNameSize")&&F.length>m.fieldNameSize)return H("LIMIT_FIELD_KEY");var N={fieldname:F,originalname:Q,encoding:U,mimetype:$},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,H("LIMIT_FILE_SIZE",F)}),v._handleFile(l,N,function(z,X){if(j)return x.removePlaceholder(L),T.push({...N,...X}),A.decrement();if(z)return x.removePlaceholder(L),A.decrement(),D(z);var te={...N,...X};x.replacePlaceholder(L,te),T.push(te),A.decrement(),q()})})}),E.on("error",function(F){D(F)}),E.on("partsLimit",function(){H("LIMIT_PART_COUNT")}),E.on("filesLimit",function(){H("LIMIT_FILE_COUNT")}),E.on("fieldsLimit",function(){H("LIMIT_FIELD_COUNT")}),E.on("close",function(){S=!0,q()}),l.pipe(E)}}return M_=c,M_}var I_,GM;function C6(){if(GM)return I_;GM=1;var e=wl,t=bp,r=or,n=li;function i(o,c,u){n.randomBytes(16,function(p,l){u(p,p?void 0:l.toString("hex"))})}function a(o,c,u){u(null,t.tmpdir())}function s(o){this.getFilename=o.filename||i,typeof o.destination=="string"?(e.mkdirSync(o.destination,{recursive:!0}),this.getDestination=function(c,u,p){p(null,o.destination)}):this.getDestination=o.destination||a}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)},I_=function(o){return new s(o)},I_}var Qd={exports:{}},C_,WM;function xF(){return WM||(WM=1,C_=yg.EventEmitter),C_}var j_,ZM;function j6(){if(ZM)return j_;ZM=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 i(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 a(h,m,v){return m&&i(h.prototype,m),Object.defineProperty(h,"prototype",{writable:!1}),h}function s(h){var m=o(h,"string");return typeof m=="symbol"?m:String(m)}function o(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=xp,u=c.Buffer,p=di,l=p.inspect,d=l&&l.custom||"inspect";function f(h,m,v){u.prototype.copy.call(h,m,v)}return j_=(function(){function h(){n(this,h),this.head=null,this.tail=null,this.length=0}return a(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})(),j_}var N_,KM;function OF(){if(KM)return N_;KM=1;function e(s,o){var c=this,u=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return u||p?(o?o(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,s)):process.nextTick(i,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(l){!o&&l?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,l)):process.nextTick(t,c,l):o?(process.nextTick(r,c),o(l)):process.nextTick(r,c)}),this)}function t(s,o){i(s,o),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 i(s,o){s.emit("error",o)}function a(s,o){var c=s._readableState,u=s._writableState;c&&c.autoDestroy||u&&u.autoDestroy?s.destroy(o):s.emit("error",o)}return N_={destroy:e,undestroy:n,errorOrDestroy:a},N_}var q_={},YM;function Ei(){if(YM)return q_;YM=1;function e(o,c){o.prototype=Object.create(c.prototype),o.prototype.constructor=o,o.__proto__=c}var t={};function r(o,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=o,t[o]=l}function n(o,c){if(Array.isArray(o)){var u=o.length;return o=o.map(function(p){return String(p)}),u>2?"one of ".concat(c," ").concat(o.slice(0,u-1).join(", "),", or ")+o[u-1]:u===2?"one of ".concat(c," ").concat(o[0]," or ").concat(o[1]):"of ".concat(c," ").concat(o[0])}else return"of ".concat(c," ").concat(String(o))}function i(o,c,u){return o.substr(0,c.length)===c}function a(o,c,u){return(u===void 0||u>o.length)&&(u=o.length),o.substring(u-c.length,u)===c}function s(o,c,u){return typeof u!="number"&&(u=0),u+c.length>o.length?!1:o.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(o,c){return'The value "'+c+'" is invalid for option "'+o+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(o,c,u){var p;typeof c=="string"&&i(c,"not ")?(p="must not be",c=c.replace(/^not /,"")):p="must be";var l;if(a(o," argument"))l="The ".concat(o," ").concat(p," ").concat(n(c,"type"));else{var d=s(o,".")?"property":"argument";l='The "'.concat(o,'" ').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(o){return"The "+o+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(o){return"Cannot call "+o+" 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(o){return"Unknown encoding: "+o},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),q_.codes=t,q_}var F_,XM;function wF(){if(XM)return F_;XM=1;var e=Ei().codes.ERR_INVALID_OPT_VALUE;function t(n,i,a){return n.highWaterMark!=null?n.highWaterMark:i?n[a]:null}function r(n,i,a,s){var o=t(i,s,a);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var c=s?a:"highWaterMark";throw new e(c,o)}return Math.floor(o)}return n.objectMode?16:16*1024}return F_={getHighWaterMark:r},F_}var $d={exports:{}},JM;function xi(){return JM||(JM=1,typeof Object.create=="function"?$d.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$d.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),$d.exports}var k_,QM;function N6(){if(QM)return k_;QM=1,k_=e;function e(r,n){if(t("noDeprecation"))return r;var i=!1;function a(){if(!i){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return r.apply(this,arguments)}return a}function t(r){try{if(!vt.localStorage)return!1}catch{return!1}var n=vt.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return k_}var D_,$M;function SF(){if($M)return D_;$M=1,D_=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:N6()},n=xF(),i=xp.Buffer,a=(typeof vt<"u"?vt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(M){return i.from(M)}function o(M){return i.isBuffer(M)||M instanceof a}var c=OF(),u=wF(),p=u.getHighWaterMark,l=Ei().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;xi()(S,n);function E(){}function x(M,j,z){t=t||ui(),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 X=M.decodeStrings===!1;this.decodeStrings=!X,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){k(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||ui();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,X){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(X,te),!1):!0}S.prototype.write=function(M,j,z){var X=this._writableState,te=!1,R=!X.objectMode&&o(M);return R&&!i.isBuffer(M)&&(M=s(M)),typeof j=="function"&&(z=j,j=null),R?j="buffer":j||(j=X.defaultEncoding),typeof z!="function"&&(z=E),X.ending?w(this,z):(R||A(this,X,M,z))&&(X.pendingcb++,te=P(this,X,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&&Q(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=i.from(j,z)),j}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P(M,j,z,X,te,R){if(!z){var I=T(j,X,te);X!==I&&(z=!0,te="buffer",X=I)}var W=j.objectMode?1:X.length;j.length+=W;var ee=j.length<j.highWaterMark;if(ee||(j.needDrain=!0),j.writing||j.corked){var se=j.lastBufferedRequest;j.lastBufferedRequest={chunk:X,encoding:te,isBuf:z,callback:R,next:null},se?se.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else q(M,j,!1,W,X,te,R);return ee}function q(M,j,z,X,te,R,I){j.writelen=X,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,X,te){--j.pendingcb,z?(process.nextTick(te,X),process.nextTick(N,M,j),M._writableState.errorEmitted=!0,b(M,X)):(te(X),M._writableState.errorEmitted=!0,b(M,X),N(M,j))}function H(M){M.writing=!1,M.writecb=null,M.length-=M.writelen,M.writelen=0}function k(M,j){var z=M._writableState,X=z.sync,te=z.writecb;if(typeof te!="function")throw new h;if(H(z),j)D(M,z,X,j,te);else{var R=U(z)||M.destroyed;!R&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&Q(M,z),X?process.nextTick(F,M,z,R,te):F(M,z,R,te)}}function F(M,j,z,X){z||Z(M,j),j.pendingcb--,X(),N(M,j)}function Z(M,j){j.length===0&&j.needDrain&&(j.needDrain=!1,M.emit("drain"))}function Q(M,j){j.bufferProcessing=!0;var z=j.bufferedRequest;if(M._writev&&z&&z.next){var X=j.bufferedRequestCount,te=new Array(X),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,q(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 ee=z.chunk,se=z.encoding,re=z.callback,de=j.objectMode?1:ee.length;if(q(M,j,!1,de,ee,se,re),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 X=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),X.corked&&(X.corked=1,this.uncork()),X.ending||L(this,X,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"),N(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 N(M,j){var z=U(j);if(z&&(C(M,j),j.pendingcb===0&&(j.finished=!0,M.emit("finish"),j.autoDestroy))){var X=M._readableState;(!X||X.autoDestroy&&X.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 X=M.entry;for(M.entry=null;X;){var te=X.callback;j.pendingcb--,te(z),X=X.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)},D_}var L_,eI;function ui(){if(eI)return L_;eI=1;var e=Object.keys||function(u){var p=[];for(var l in u)p.push(l);return p};L_=s;var t=TF(),r=SF();xi()(s,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];s.prototype[a]||(s.prototype[a]=r.prototype[a])}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",o)))}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 o(){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)}}),L_}var U_={},ep={exports:{}};var tI;function q6(){return tI||(tI=1,(function(e,t){var r=xp,n=r.Buffer;function i(s,o){for(var c in s)o[c]=s[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a);function a(s,o,c){return n(s,o,c)}a.prototype=Object.create(n.prototype),i(n,a),a.from=function(s,o,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,o,c)},a.alloc=function(s,o,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=n(s);return o!==void 0?typeof c=="string"?u.fill(o,c):u.fill(o):u.fill(0),u},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(ep,ep.exports)),ep.exports}var rI;function nI(){if(rI)return U_;rI=1;var e=q6().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||_}U_.StringDecoder=i;function i(_){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)}i.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||""},i.prototype.end=p,i.prototype.text=u,i.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 a(_){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=a(g[b]);return E>=0?(E>0&&(_.lastNeed=E-1),E):--b<y||E===-2?0:(E=a(g[b]),E>=0?(E>0&&(_.lastNeed=E-2),E):--b<y||E===-2?0:(E=a(g[b]),E>=0?(E>0&&(E===2?E=0:_.lastNeed=E-3),E):0))}function o(_,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=o(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 U_}var z_,iI;function By(){if(iI)return z_;iI=1;var e=Ei().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var s=!1;return function(){if(!s){s=!0;for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];a.apply(this,c)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function i(a,s,o){if(typeof s=="function")return i(a,null,s);s||(s={}),o=t(o||r);var c=s.readable||s.readable!==!1&&a.readable,u=s.writable||s.writable!==!1&&a.writable,p=function(){a.writable||d()},l=a._writableState&&a._writableState.finished,d=function(){u=!1,l=!0,c||o.call(a)},f=a._readableState&&a._readableState.endEmitted,h=function(){c=!1,f=!0,u||o.call(a)},m=function(y){o.call(a,y)},v=function(){var y;if(c&&!f)return(!a._readableState||!a._readableState.ended)&&(y=new e),o.call(a,y);if(u&&!l)return(!a._writableState||!a._writableState.ended)&&(y=new e),o.call(a,y)},_=function(){a.req.on("finish",d)};return n(a)?(a.on("complete",d),a.on("abort",v),a.req?_():a.on("request",_)):u&&!a._writableState&&(a.on("end",p),a.on("close",p)),a.on("end",h),a.on("finish",d),s.error!==!1&&a.on("error",m),a.on("close",v),function(){a.removeListener("complete",d),a.removeListener("abort",v),a.removeListener("request",_),a.req&&a.req.removeListener("finish",d),a.removeListener("end",p),a.removeListener("close",p),a.removeListener("finish",d),a.removeListener("end",h),a.removeListener("error",m),a.removeListener("close",v)}}return z_=i,z_}var B_,aI;function F6(){if(aI)return B_;aI=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 i=By(),a=Symbol("lastResolve"),s=Symbol("lastReject"),o=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[a];if(b!==null){var E=y[l].read();E!==null&&(y[u]=null,y[a]=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[o];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[o]?A(b[o]):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,a,{value:null,writable:!0}),t(E,s,{value:null,writable:!0}),t(E,o,{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[a]=null,x[s]=null,S(d(A,!1))):(x[a]=S,x[s]=w)},writable:!0}),E));return x[u]=null,i(b,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S=x[s];S!==null&&(x[u]=null,x[a]=null,x[s]=null,S(O)),x[o]=O;return}var w=x[a];w!==null&&(x[u]=null,x[a]=null,x[s]=null,w(d(void 0,!0))),x[c]=!0}),b.on("readable",h.bind(null,x)),x};return B_=g,B_}var H_,oI;function k6(){return oI||(oI=1,H_=function(){throw new Error("Readable.from is not available in the browser")}),H_}var V_,sI;function TF(){if(sI)return V_;sI=1,V_=w;var e;w.ReadableState=S,yg.EventEmitter;var t=function(I,W){return I.listeners(W).length},r=xF(),n=xp.Buffer,i=(typeof vt<"u"?vt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(R){return n.from(R)}function s(R){return n.isBuffer(R)||R instanceof i}var o=di,c;o&&o.debuglog?c=o.debuglog("stream"):c=function(){};var u=j6(),p=OF(),l=wF(),d=l.getHighWaterMark,f=Ei().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;xi()(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||ui(),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=nI().StringDecoder),this.decoder=new g(R.encoding),this.encoding=R.encoding)}function w(R){if(e=e||ui(),!(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,ee;return W.objectMode?ee=!0:typeof R=="string"&&(I=I||W.defaultEncoding,I!==W.encoding&&(R=n.from(R,I),I=""),ee=!0),A(this,R,I,!1,ee)},w.prototype.unshift=function(R){return A(this,R,null,!0,!1)};function A(R,I,W,ee,se){c("readableAddChunk",I);var re=R._readableState;if(I===null)re.reading=!1,k(R,re);else{var de;if(se||(de=P(re,I)),de)E(R,de);else if(re.objectMode||I&&I.length>0)if(typeof I!="string"&&!re.objectMode&&Object.getPrototypeOf(I)!==n.prototype&&(I=a(I)),ee)re.endEmitted?E(R,new _):T(R,re,I,!0);else if(re.ended)E(R,new m);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!W?(I=re.decoder.write(I),re.objectMode||I.length!==0?T(R,re,I,!1):Q(R,re)):T(R,re,I,!1)}else ee||(re.reading=!1,Q(R,re))}return!re.ended&&(re.length<re.highWaterMark||re.length===0)}function T(R,I,W,ee){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,R.emit("data",W)):(I.length+=I.objectMode?1:W.length,ee?I.buffer.unshift(W):I.buffer.push(W),I.needReadable&&F(R)),Q(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=nI().StringDecoder);var I=new g(R);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,ee="";W!==null;)ee+=I.write(W.data),W=W.next;return this._readableState.buffer.clear(),ee!==""&&this._readableState.buffer.push(ee),this._readableState.length=ee.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 H(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=H(R,I),R===0&&I.ended)return I.length===0&&z(this),null;var ee=I.needReadable;c("need readable",ee),(I.length===0||I.length-R<I.highWaterMark)&&(ee=!0,c("length less than watermark",ee)),I.ended||I.reading?(ee=!1,c("reading or ended",ee)):ee&&(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=H(W,I)));var se;return R>0?se=j(R,I):se=null,se===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)),se!==null&&this.emit("data",se),se};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 Q(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,ee=this._readableState;switch(ee.pipesCount){case 0:ee.pipes=R;break;case 1:ee.pipes=[ee.pipes,R];break;default:ee.pipes.push(R);break}ee.pipesCount+=1,c("pipe count=%d opts=%j",ee.pipesCount,I);var se=(!I||I.end!==!1)&&R!==process.stdout&&R!==process.stderr,re=se?ge:Qe;ee.endEmitted?process.nextTick(re):W.once("end",re),R.on("unpipe",de);function de(be,Ke){c("onunpipe"),be===W&&Ke&&Ke.hasUnpiped===!1&&(Ke.hasUnpiped=!0,Me())}function ge(){c("onend"),R.end()}var Ee=$(W);R.on("drain",Ee);var Pe=!1;function Me(){c("cleanup"),R.removeListener("close",_e),R.removeListener("finish",Fe),R.removeListener("drain",Ee),R.removeListener("error",Ae),R.removeListener("unpipe",de),W.removeListener("end",ge),W.removeListener("end",Qe),W.removeListener("data",xe),Pe=!0,ee.awaitDrain&&(!R._writableState||R._writableState.needDrain)&&Ee()}W.on("data",xe);function xe(be){c("ondata");var Ke=R.write(be);c("dest.write",Ke),Ke===!1&&((ee.pipesCount===1&&ee.pipes===R||ee.pipesCount>1&&te(ee.pipes,R)!==-1)&&!Pe&&(c("false write response, pause",ee.awaitDrain),ee.awaitDrain++),W.pause())}function Ae(be){c("onerror",be),Qe(),R.removeListener("error",Ae),t(R,"error")===0&&E(R,be)}O(R,"error",Ae);function _e(){R.removeListener("finish",Fe),Qe()}R.once("close",_e);function Fe(){c("onfinish"),R.removeListener("close",_e),Qe()}R.once("finish",Fe);function Qe(){c("unpipe"),W.unpipe(R)}return R.emit("pipe",W),ee.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 ee=I.pipes,se=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var re=0;re<se;re++)ee[re].emit("unpipe",this,{hasUnpiped:!1});return this}var de=te(I.pipes,R);return de===-1?this:(I.pipes.splice(de,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),ee=this._readableState;return R==="data"?(ee.readableListening=this.listenerCount("readable")>0,ee.flowing!==!1&&this.resume()):R==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,c("on readable",ee.length,ee.reading),ee.length?F(this):ee.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,ee=!1;R.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var de=W.decoder.end();de&&de.length&&I.push(de)}I.push(null)}),R.on("data",function(de){if(c("wrapped data"),W.decoder&&(de=W.decoder.write(de)),!(W.objectMode&&de==null)&&!(!W.objectMode&&(!de||!de.length))){var ge=I.push(de);ge||(ee=!0,R.pause())}});for(var se in R)this[se]===void 0&&typeof R[se]=="function"&&(this[se]=(function(ge){return function(){return R[ge].apply(R,arguments)}})(se));for(var re=0;re<x.length;re++)R.on(x[re],this.emit.bind(this,x[re]));return this._read=function(de){c("wrapped _read",de),ee&&(ee=!1,R.resume())},this},typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=F6()),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(X,I,R))}function X(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=k6()),b(w,R,I)});function te(R,I){for(var W=0,ee=R.length;W<ee;W++)if(R[W]===I)return W;return-1}return V_}var G_,cI;function PF(){if(cI)return G_;cI=1,G_=o;var e=Ei().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=e.ERR_TRANSFORM_WITH_LENGTH_0,a=ui();xi()(o,a);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 o(p){if(!(this instanceof o))return new o(p);a.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)}o.prototype.push=function(p,l){return this._transformState.needTransform=!1,a.prototype.push.call(this,p,l)},o.prototype._transform=function(p,l,d){d(new t("_transform()"))},o.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)}},o.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},o.prototype._destroy=function(p,l){a.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 i;if(p._transformState.transforming)throw new n;return p.push(null)}return G_}var W_,uI;function D6(){if(uI)return W_;uI=1,W_=t;var e=PF();xi()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,i){i(null,r)},W_}var Z_,lI;function L6(){if(lI)return Z_;lI=1;var e;function t(d){var f=!1;return function(){f||(f=!0,d.apply(void 0,arguments))}}var r=Ei().codes,n=r.ERR_MISSING_ARGS,i=r.ERR_STREAM_DESTROYED;function a(d){if(d)throw d}function s(d){return d.setHeader&&typeof d.abort=="function"}function o(d,f,h,m){m=t(m);var v=!1;d.on("close",function(){v=!0}),e===void 0&&(e=By()),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 i("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"?a: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 o(g,b,E,function(x){v||(v=x),x&&_.forEach(c),!b&&(_.forEach(c),m(v))})});return f.reduce(u)}return Z_=l,Z_}var dI;function U6(){return dI||(dI=1,(function(e,t){t=e.exports=TF(),t.Stream=t,t.Readable=t,t.Writable=SF(),t.Duplex=ui(),t.Transform=PF(),t.PassThrough=D6(),t.finished=By(),t.pipeline=L6()})(Qd,Qd.exports)),Qd.exports}var K_,pI;function z6(){if(pI)return K_;pI=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,o,c){o>>>=0;var u=s.byteLength-o;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(o,o+c)):new Buffer(new Uint8Array(s.slice(o,o+c)))}function i(s,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Buffer.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');return t?Buffer.from(s,o):new Buffer(s,o)}function a(s,o,c){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return r(s)?n(s,o,c):typeof s=="string"?i(s,o):t?Buffer.from(s):new Buffer(s)}return K_=a,K_}var Y_={},fI;function B6(){return fI||(fI=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,N){return N in C},HasOwnProperty:function(C,N){return $.call(C,N)},IsCallable:function(C){return typeof C=="function"},ToInt32:function(C){return C>>0},ToUint32:function(C){return C>>>0}}})(),i=Math.LN2,a=Math.abs,s=Math.floor,o=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 $(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)$(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 q(U){return v(U[0]<<24|U[1]<<16|U[2]<<8|U[3],32)}function D(U,$,C){var N=(1<<$-1)-1,L,B,M,j,z,X,te;function R(I){var W=s(I),ee=I-W;return ee<.5?W:ee>.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=a(U),U>=u(2,1-N)?(B=c(s(o(U)/i),1023),M=R(U/u(2,B)*u(2,C)),M/u(2,C)>=2&&(B=B+1,M=1),B>N?(B=(1<<$)-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=$;j;j-=1)z.push(B%2?1:0),B=s(B/2);for(z.push(L?1:0),z.reverse(),X=z.join(""),te=[];X.length;)te.push(parseInt(X.substring(0,8),2)),X=X.substring(8);return te}function H(U,$,C){var N=[],L,B,M,j,z,X,te,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<<$-1)-1,X=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:X*(1/0):te>0?X*u(2,te-z)*(1+R/u(2,C)):R!==0?X*u(2,-(z-1))*(R/u(2,C)):X<0?-0:0}function k(U){return H(U,11,52)}function F(U){return D(U,11,52)}function Z(U){return H(U,8,23)}function Q(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 ee;for(ee=0;ee<this.byteLength;ee+=1)this._bytes[ee]=0;l(this)};e.ArrayBuffer=e.ArrayBuffer||U;var $=function(){};function C(I,W,ee){var se;return se=function(re,de,ge){var Ee,Pe,Me,xe;if(!arguments.length||typeof arguments[0]=="number"){if(this.length=n.ToInt32(arguments[0]),ge<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===se)for(Ee=arguments[0],this.length=Ee.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new U(this.byteLength),this.byteOffset=0,Me=0;Me<this.length;Me+=1)this._setter(Me,Ee._getter(Me));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,Me=0;Me<this.length;Me+=1)xe=Pe[Me],this._setter(Me,Number(xe));else if(typeof arguments[0]=="object"&&(arguments[0]instanceof U||n.Class(arguments[0])==="ArrayBuffer")){if(this.buffer=re,this.byteOffset=n.ToUint32(de),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(ge),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=se,l(this),h(this)},se.prototype=new $,se.prototype.BYTES_PER_ELEMENT=I,se.prototype._pack=W,se.prototype._unpack=ee,se.BYTES_PER_ELEMENT=I,se.prototype._getter=function(re){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(re=n.ToUint32(re),re>=this.length)return t;var de=[],ge,Ee;for(ge=0,Ee=this.byteOffset+re*this.BYTES_PER_ELEMENT;ge<this.BYTES_PER_ELEMENT;ge+=1,Ee+=1)de.push(this.buffer._bytes[Ee]);return this._unpack(de)},se.prototype.get=se.prototype._getter,se.prototype._setter=function(re,de){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if(re=n.ToUint32(re),re>=this.length)return t;var ge=this._pack(de),Ee,Pe;for(Ee=0,Pe=this.byteOffset+re*this.BYTES_PER_ELEMENT;Ee<this.BYTES_PER_ELEMENT;Ee+=1,Pe+=1)this.buffer._bytes[Pe]=ge[Ee]},se.prototype.set=function(re,de){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var ge,Ee,Pe,Me,xe,Ae,_e,Fe,Qe,be;if(typeof arguments[0]=="object"&&arguments[0].constructor===this.constructor){if(ge=arguments[0],Pe=n.ToUint32(arguments[1]),Pe+ge.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(Fe=this.byteOffset+Pe*this.BYTES_PER_ELEMENT,Qe=ge.length*this.BYTES_PER_ELEMENT,ge.buffer===this.buffer){for(be=[],xe=0,Ae=ge.byteOffset;xe<Qe;xe+=1,Ae+=1)be[xe]=ge.buffer._bytes[Ae];for(xe=0,_e=Fe;xe<Qe;xe+=1,_e+=1)this.buffer._bytes[_e]=be[xe]}else for(xe=0,Ae=ge.byteOffset,_e=Fe;xe<Qe;xe+=1,Ae+=1,_e+=1)this.buffer._bytes[_e]=ge.buffer._bytes[Ae]}else if(typeof arguments[0]=="object"&&typeof arguments[0].length<"u"){if(Ee=arguments[0],Me=n.ToUint32(Ee.length),Pe=n.ToUint32(arguments[1]),Pe+Me>this.length)throw new RangeError("Offset plus length of array is out of range");for(xe=0;xe<Me;xe+=1)Ae=Ee[xe],this._setter(Pe+xe,Number(Ae))}else throw new TypeError("Unexpected argument type(s)")},se.prototype.subarray=function(re,de){function ge(Pe,Me,xe){return Pe<Me?Me:Pe>xe?xe:Pe}re=n.ToInt32(re),de=n.ToInt32(de),arguments.length<1&&(re=0),arguments.length<2&&(de=this.length),re<0&&(re=this.length+re),de<0&&(de=this.length+de),re=ge(re,0,this.length),de=ge(de,0,this.length);var Ee=de-re;return Ee<0&&(Ee=0),new this.constructor(this.buffer,this.byteOffset+re*this.BYTES_PER_ELEMENT,Ee)},se}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,T),X=C(4,P,q),te=C(4,Q,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||X,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 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),X=[],te;for(te=0;te<B.BYTES_PER_ELEMENT;te+=1)X.push(U(z,te));return!!j==!!$&&X.reverse(),U(new B(new e.Uint8Array(X).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 X=new B([j]),te=new e.Uint8Array(X.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})()})(Y_)),Y_}var X_,hI;function H6(){if(hI)return X_;hI=1;var e=U6().Writable,t=xi(),r=z6();if(typeof Uint8Array>"u")var n=B6().Uint8Array;else var n=Uint8Array;function i(l,d){if(!(this instanceof i))return new i(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=[]}X_=i,t(i,e),i.prototype._write=function(l,d,f){this.body.push(l),f()},i.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"},i.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"?o(this.body):this.encoding==="buffer"?c(this.body):this.encoding==="uint8array"?p(this.body):this.body)};function a(l){return/Array\]$/.test(Object.prototype.toString.call(l))}function s(l){return typeof l=="string"||a(l)||l&&typeof l.subarray=="function"}function o(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 X_}var J_,vI;function V6(){if(vI)return J_;vI=1;var e=H6();function t(r){}return t.prototype._handleFile=function(n,i,a){i.stream.pipe(e({encoding:"buffer"},function(s){a(null,{buffer:s,size:s.length})}))},t.prototype._removeFile=function(n,i,a){delete i.buffer,a(null)},J_=function(r){return new t},J_}var mI;function Kl(){if(mI)return ri.exports;mI=1;var e=I6(),t=C6(),r=V6(),n=EF();function i(o,c,u){u(null,!0)}function a(o){o.storage?this.storage=o.storage:o.dest?this.storage=t({destination:o.dest}):this.storage=r(),this.limits=o.limits,this.preservePath=o.preservePath,this.defParamCharset=o.defParamCharset||"latin1",this.fileFilter=o.fileFilter||i}a.prototype._makeMiddleware=function(o,c){function u(){var p=this.fileFilter,l=Object.create(null);o.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))},a.prototype.single=function(o){return this._makeMiddleware([{name:o,maxCount:1}],"VALUE")},a.prototype.array=function(o,c){return this._makeMiddleware([{name:o,maxCount:c}],"ARRAY")},a.prototype.fields=function(o){return this._makeMiddleware(o,"OBJECT")},a.prototype.none=function(){return this._makeMiddleware([],"NONE")},a.prototype.any=function(){function o(){return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:"ARRAY"}}return e(o.bind(this))};function s(o){if(o===void 0)return new a({});if(typeof o=="object"&&o!==null)return new a(o);throw new TypeError("Expected object for argument options")}return ri.exports=s,ri.exports.diskStorage=t,ri.exports.memoryStorage=r,ri.exports.MulterError=n,ri.exports}var el={},_I;function Oi(){return _I||(_I=1,Object.defineProperty(el,"__esModule",{value:!0}),el.MULTER_MODULE_OPTIONS=void 0,el.MULTER_MODULE_OPTIONS="MULTER_MODULE_OPTIONS"),el}var tp={},hn={},gI;function G6(){return gI||(gI=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.busboyExceptions=hn.multerExceptions=void 0,hn.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"},hn.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"}),hn}var yI;function Yl(){if(yI)return tp;yI=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.transformException=r;const e=me(),t=G6();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 tp}var bI;function W6(){if(bI)return Xd;bI=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.AnyFilesInterceptor=a;const e=oe(),t=me(),r=Kl(),n=Oi(),i=Yl();function a(s){let o=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,i.transformException)(m);return h(v)}f()})),l.handle()}};return o=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],o),(0,t.mixin)(o)}return Xd}var rp={},EI;function Z6(){if(EI)return rp;EI=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.FileFieldsInterceptor=a;const e=oe(),t=me(),r=Kl(),n=Oi(),i=Yl();function a(s,o){let c=class{constructor(l={}){this.multer=r({...l,...o})}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,i.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 rp}var np={},xI;function K6(){if(xI)return np;xI=1,Object.defineProperty(np,"__esModule",{value:!0}),np.FileInterceptor=a;const e=oe(),t=me(),r=Kl(),n=Oi(),i=Yl();function a(s,o){let c=class{constructor(l={}){this.multer=r({...l,...o})}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,i.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 np}var ip={},OI;function Y6(){if(OI)return ip;OI=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.FilesInterceptor=a;const e=oe(),t=me(),r=Kl(),n=Oi(),i=Yl();function a(s,o,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,o)(h.getRequest(),h.getResponse(),_=>{if(_){const g=(0,i.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 ip}var ap={},wI;function X6(){if(wI)return ap;wI=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.NoFilesInterceptor=a;const e=oe(),t=me(),r=Kl(),n=Oi(),i=Yl();function a(s){let o=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,i.transformException)(m);return h(v)}f()})),l.handle()}};return o=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(n.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],o),(0,t.mixin)(o)}return ap}var SI;function J6(){return SI||(SI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(W6(),e),t.__exportStar(Z6(),e),t.__exportStar(K6(),e),t.__exportStar(Y6(),e),t.__exportStar(X6(),e)})(v_)),v_}var Q_={},$_={},TI;function Q6(){return TI||(TI=1,Object.defineProperty($_,"__esModule",{value:!0})),$_}var PI;function $6(){return PI||(PI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(Q6(),e)})(Q_)),Q_}var ni={},tl={},AI;function e9(){return AI||(AI=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.MULTER_MODULE_ID=void 0,tl.MULTER_MODULE_ID="MULTER_MODULE_ID"),tl}var RI;function t9(){if(RI)return ni;RI=1;var e;Object.defineProperty(ni,"__esModule",{value:!0}),ni.MulterModule=void 0;const t=oe(),r=me(),n=ur(),i=Oi(),a=e9();let s=e=class{static register(c={}){return{module:e,providers:[{provide:i.MULTER_MODULE_OPTIONS,useFactory:()=>c},{provide:a.MULTER_MODULE_ID,useValue:(0,n.randomStringGenerator)()}],exports:[i.MULTER_MODULE_OPTIONS]}}static registerAsync(c){return{module:e,imports:c.imports,providers:[...this.createAsyncProviders(c),{provide:a.MULTER_MODULE_ID,useValue:(0,n.randomStringGenerator)()}],exports:[i.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:i.MULTER_MODULE_OPTIONS,useFactory:c.useFactory,inject:c.inject||[]}:{provide:i.MULTER_MODULE_OPTIONS,useFactory:async u=>u.createMulterOptions(),inject:[c.useExisting||c.useClass]}}};return ni.MulterModule=s,ni.MulterModule=s=e=t.__decorate([(0,r.Module)({})],s),ni}var MI;function r9(){return MI||(MI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(J6(),e),t.__exportStar($6(),e),t.__exportStar(t9(),e)})(h_)),h_}var II;function AF(){return II||(II=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(p6(),e),t.__exportStar(v6(),e),t.__exportStar(r9(),e)})(s_)),s_}var CI;function RF(){if(CI)return pn;CI=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.NestFactory=pn.NestFactoryStatic=void 0;const e=Og(),t=Ot(),r=Al(),n=ie(),i=yr(),a=gi(),s=QY(),o=$Y(),c=e6(),u=qy(),p=bi(),l=Uy(),d=Jp(),f=yF(),h=Vl(),m=An(),v=Ly(),_=ky(),g=bF();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 i.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 q=new v.NestApplication(T,S,A,P,w),D=this.createNestInstance(q);return this.createAdapterProxy(D,S)}async createMicroservice(E,x){const{NestMicroservice:O}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>gF),S=new i.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 i.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 i.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),q=new m.MetadataScanner,D=new g.DependenciesScanner(x,q,O,S);x.setHttpAdapter(A);const H=this.abortOnError===!1?c.rethrow:void 0;await A?.init?.();try{this.logger.log(a.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await D.scan(E),await P.createInstancesOfDependencies(),D.applyApplicationProviders()},H,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,o.loadAdapter)("@nestjs/platform-express","HTTP",()=>AF());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 pn.NestFactoryStatic=y,pn.NestFactory=new y,pn}var eg={},op={},sp={},jI;function n9(){if(jI)return sp;jI=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.assignToObject=e;function e(t,r){return Object.defineProperties(t,Object.keys(r).reduce((n,i)=>(n[i]=Object.getOwnPropertyDescriptor(r,i),n),Object.create(null))),t}return sp}var rl={},NI;function i9(){return NI||(NI=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.REPL_INITIALIZED_MESSAGE=void 0,rl.REPL_INITIALIZED_MESSAGE="REPL initialized"),rl}var nl={},tg={},il={},al={},qI;function wi(){if(qI)return al;qI=1,Object.defineProperty(al,"__esModule",{value:!0}),al.ReplFunction=void 0;const e=cr();class t{constructor(n){this.ctx=n,this.logger=n.logger}makeHelpMessage(){const{description:n,name:i,signature:a}=this.fnDefinition,s=`${i}${a}`;return`${e.clc.yellow(n)}
|
|
149
|
-
${e.clc.magentaBright("Interface:")} ${e.clc.bold(s)}
|
|
150
|
-
`}}return al.ReplFunction=t,al}var FI;function a9(){if(FI)return il;FI=1,Object.defineProperty(il,"__esModule",{value:!0}),il.HelpReplFn=void 0;const e=Ze(),t=cr(),r=wi();class n extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"help",signature:"() => void",description:"Display all available REPL native functions."}}action(){const a=(0,e.iterate)(this.ctx.nativeFunctions).map(([,s])=>s.fnDefinition).toArray().sort((s,o)=>s.name<o.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
|
-
|
|
152
|
-
`+a.map(n.buildHelpMessage).join(`
|
|
134
|
+
`),e.INVALID_CLASS_MESSAGE=(e,t)=>`ModuleRef cannot instantiate class (${t} is not constructable).`,e.INVALID_CLASS_SCOPE_MESSAGE=(e,t)=>`${t||`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.`,e.UNKNOWN_REQUEST_MAPPING=e=>{let t=e.name;return t?`An invalid controller has been detected. "${t}" 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.`},e.INVALID_MIDDLEWARE_CONFIGURATION=`An invalid middleware configuration has been passed inside the module 'configure()' method.`,e.UNHANDLED_RUNTIME_EXCEPTION=`Unhandled Runtime Exception.`,e.INVALID_EXCEPTION_FILTER=`Invalid exception filters (@UseFilters()).`,e.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=`Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)`})),Kx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidExceptionFilterException=void 0;var t=Wx(),n=Gx();e.InvalidExceptionFilterException=class extends t.RuntimeException{constructor(){super(n.INVALID_EXCEPTION_FILTER)}}})),qx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionFilter=void 0;var t=H(),n=class e{catch(n,r){throw n instanceof Error&&!(n instanceof t.IntrinsicException)&&e.logger.error(n),n}};e.ExternalExceptionFilter=n,n.logger=new t.Logger(`ExceptionsHandler`)})),Jx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionsHandler=void 0;var t=Ux(),n=A(),r=Kx(),i=qx();e.ExternalExceptionsHandler=class extends i.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(e,t){return this.invokeCustomFilters(e,t)||super.catch(e,t)}setCustomFilters(e){if(!Array.isArray(e))throw new r.InvalidExceptionFilterException;this.filters=e}invokeCustomFilters(e,r){if((0,n.isEmpty)(this.filters))return null;let i=(0,t.selectExceptionFilterMetadata)(this.filters,e);return i?i.func(e,r):null}}})),Yx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionFilterContext=void 0;var t=O(),n=A(),r=I(),i=Bx(),a=Hx(),o=Jx();e.ExternalExceptionFilterContext=class extends a.BaseExceptionFilterContext{constructor(e,t){super(e),this.config=t}create(e,r,a,s=i.STATIC_CONTEXT,c){this.moduleContext=a;let l=new o.ExternalExceptionsHandler,u=this.createContext(e,r,t.EXCEPTION_FILTERS_METADATA,s,c);return(0,n.isEmpty)(u)||l.setCustomFilters(u.reverse()),l}getGlobalMetadata(e=i.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalFilters();if(e===i.STATIC_CONTEXT&&!t)return n;let a=this.config.getGlobalRequestFilters(),o=(0,r.iterate)(a).map(n=>n.getInstanceByContextId(e,t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),Xx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FORBIDDEN_MESSAGE=void 0,e.FORBIDDEN_MESSAGE=`Forbidden resource`})),Zx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExecutionContextHost=void 0,e.ExecutionContextHost=class{constructor(e,t=null,n=null){this.args=e,this.constructorRef=t,this.handler=n,this.contextType=`http`}setType(e){e&&(this.contextType=e)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(e){return this.args[e]}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)})}}})),Qx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GuardsConsumer=void 0;var t=A(),n=Wc(),r=Zx();e.GuardsConsumer=class{async tryActivate(e,n,r,i,a){if(!e||(0,t.isEmpty)(e))return!0;let o=this.createContext(n,r,i);o.setType(a);for(let t of e){let e=t.canActivate(o);if(typeof e==`boolean`){if(!e)return!1;continue}if(!await this.pickResult(e))return!1}return!0}createContext(e,t,n){return new r.ExecutionContextHost(e,t.constructor,n)}async pickResult(e){return e instanceof n.Observable?(0,n.lastValueFrom)(e):e}}})),$x=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GuardsContextCreator=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.GuardsContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.GUARDS_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.canActivate)).map(e=>this.getGuardInstance(e,t,i)).filter(e=>!!e&&(0,n.isFunction)(e.canActivate)).toArray()}getGuardInstance(e,t=a.STATIC_CONTEXT,n){if(e.canActivate)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalGuards();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestGuards(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),eS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Xx(),e),t.__exportStar(Qx(),e),t.__exportStar($x(),e)})),tS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InterceptorsConsumer=void 0;var t=A(),n=require(`async_hooks`),r=Wc(),i=So(),a=Zx();e.InterceptorsConsumer=class{async intercept(e,a,o,s,c,l){if((0,t.isEmpty)(e))return c();let u=this.createContext(a,o,s);u.setType(l);let d=async(t=0)=>t>=e.length?(0,r.defer)(n.AsyncResource.bind(()=>this.transformDeferred(c))):e[t].intercept(u,{handle:()=>(0,r.defer)(n.AsyncResource.bind(()=>d(t+1))).pipe((0,i.mergeAll)())});return(0,r.defer)(()=>d()).pipe((0,i.mergeAll)())}createContext(e,t,n){return new a.ExecutionContextHost(e,t.constructor,n)}transformDeferred(e){return(0,r.from)(e()).pipe((0,i.switchMap)(e=>e instanceof Promise||e instanceof r.Observable?e:Promise.resolve(e)))}}})),nS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InterceptorsContextCreator=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.InterceptorsContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.INTERCEPTORS_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.intercept)).map(e=>this.getInterceptorInstance(e,t,i)).filter(e=>e?(0,n.isFunction)(e.intercept):!1).toArray()}getInterceptorInstance(e,t=a.STATIC_CONTEXT,n){if(e.intercept)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalInterceptors();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestInterceptors(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),rS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(tS(),e),t.__exportStar(nS(),e)})),iS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParamsTokenFactory=void 0;var t=ye();e.ParamsTokenFactory=class{exchangeEnumForString(e){switch(e){case t.RouteParamtypes.BODY:return`body`;case t.RouteParamtypes.PARAM:return`param`;case t.RouteParamtypes.QUERY:return`query`;default:return`custom`}}}})),aS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PipesConsumer=void 0;var t=iS();e.PipesConsumer=class{constructor(){this.paramsTokenFactory=new t.ParamsTokenFactory}async apply(e,{metatype:t,type:n,data:r},i){let a=this.paramsTokenFactory.exchangeEnumForString(n);return this.applyPipes(e,{metatype:t,type:a,data:r},i)}async applyPipes(e,{metatype:t,type:n,data:r},i){return i.reduce(async(e,i)=>{let a=await e;return i.transform(a,{metatype:t,type:n,data:r})},Promise.resolve(e))}}})),oS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PipesContextCreator=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.PipesContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.PIPES_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.transform)).map(e=>this.getPipeInstance(e,t,i)).filter(e=>!!e&&e.transform&&(0,n.isFunction)(e.transform)).toArray()}getPipeInstance(e,t=a.STATIC_CONTEXT,n){if(e.transform)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalPipes();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestPipes(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}setModuleContext(e){this.moduleContext=e}}})),sS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(iS(),e),t.__exportStar(aS(),e),t.__exportStar(oS(),e)})),cS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextUtils=void 0;var t=O(),n=A(),r=Zx();e.ContextUtils=class{mapParamType(e){return e.split(`:`)[0]}reflectCallbackParamtypes(e,n){return Reflect.getMetadata(t.PARAMTYPES_METADATA,e,n)}reflectCallbackMetadata(e,t,n){return Reflect.getMetadata(n,e.constructor,t)}reflectPassthrough(e,n){return Reflect.getMetadata(t.RESPONSE_PASSTHROUGH_METADATA,e.constructor,n)}getArgumentsLength(e,t){return e.length?Math.max(...e.map(e=>t[e].index))+1:0}createNullArray(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=void 0;return t}mergeParamsMetatypes(e,t){return t?e.map(e=>({...e,metatype:t[e.index]})):e}getCustomFactory(e,t,r){return(0,n.isFunction)(e)?(...n)=>e(t,r(n)):()=>null}getContextFactory(e,t,n){let i=t&&t.constructor;return t=>{let a=new r.ExecutionContextHost(t,i,n);return a.setType(e),a}}}})),lS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalErrorProxy=void 0;var t=Zx();e.ExternalErrorProxy=class{createProxy(e,n,r){return async(...i)=>{try{return await e(...i)}catch(e){let a=new t.ExecutionContextHost(i);return a.setType(r),n.next(e,a)}}}}})),uS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;var n=Bx();e.HANDLER_METADATA_SYMBOL=Symbol.for(`handler_metadata:cache`),e.HandlerMetadataStorage=class{constructor(){this[t]=new Map}set(t,n,r){let i=this.getMetadataKey(t,n);this[e.HANDLER_METADATA_SYMBOL].set(i,r)}get(t,n){let r=this.getMetadataKey(t,n);return this[e.HANDLER_METADATA_SYMBOL].get(r)}getMetadataKey(e,t){let r=e.constructor;return(r&&(r[n.CONTROLLER_ID_KEY]||r.name))+t}},t=e.HANDLER_METADATA_SYMBOL})),dS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalContextCreator=void 0;var t=H(),n=O(),r=A(),i=Wc(),a=Yx(),o=eS(),s=Xx(),c=Bx(),l=rS(),u=sS(),d=cS(),f=lS(),p=uS();e.ExternalContextCreator=class e{constructor(e,t,n,r,i,a,o,s){this.guardsContextCreator=e,this.guardsConsumer=t,this.interceptorsContextCreator=n,this.interceptorsConsumer=r,this.modulesContainer=i,this.pipesContextCreator=a,this.pipesConsumer=o,this.filtersContextCreator=s,this.contextUtils=new d.ContextUtils,this.externalErrorProxy=new f.ExternalErrorProxy,this.handlerMetadataStorage=new p.HandlerMetadataStorage}static fromContainer(t){let n=new o.GuardsContextCreator(t,t.applicationConfig),r=new o.GuardsConsumer,i=new l.InterceptorsContextCreator(t,t.applicationConfig),s=new l.InterceptorsConsumer,c=new u.PipesContextCreator(t,t.applicationConfig),d=new u.PipesConsumer,f=new a.ExternalExceptionFilterContext(t,t.applicationConfig),p=new e(n,r,i,s,t.getModules(),c,d,f);return p.container=t,p}create(e,t,n,r,i,a=c.STATIC_CONTEXT,o,s={interceptors:!0,guards:!0,filters:!0},l=`http`){let u=this.getContextModuleKey(e.constructor),{argsLength:d,paramtypes:f,getParamsMetadata:p}=this.getMetadata(e,n,r,i,l),m=this.pipesContextCreator.create(e,t,u,a,o),h=this.guardsContextCreator.create(e,t,u,a,o),g=this.filtersContextCreator.create(e,t,u,a,o),_=s.interceptors?this.interceptorsContextCreator.create(e,t,u,a,o):[],v=p(u,a,o),y=v?this.contextUtils.mergeParamsMetatypes(v,f):[],b=s.guards?this.createGuardsFn(h,e,t,l):null,x=this.createPipesFn(m,y),S=(n,...r)=>async()=>x?(await x(n,...r),t.apply(e,n)):t.apply(e,r),C=async(...n)=>{let r=this.contextUtils.createNullArray(d);b&&await b(n);let i=await this.interceptorsConsumer.intercept(_,n,e,t,S(r,...n),l);return this.transformToResult(i)};return s.filters?this.externalErrorProxy.createProxy(C,g,l):C}getMetadata(e,t,n,r,i){let a=this.handlerMetadataStorage.get(e,t);if(a)return a;let o=this.contextUtils.reflectCallbackMetadata(e,t,n||``)||{},s=Object.keys(o),l=this.contextUtils.getArgumentsLength(s,o),u=this.contextUtils.reflectCallbackParamtypes(e,t),d=this.contextUtils.getContextFactory(i,e,e[t]),f={argsLength:l,paramtypes:u,getParamsMetadata:(e,t=c.STATIC_CONTEXT,n)=>r?this.exchangeKeysForValues(s,o,e,r,t,n,d):null};return this.handlerMetadataStorage.set(e,t,f),f}getContextModuleKey(e){if(!e)return``;let t=this.modulesContainer.entries();for(let[n,r]of t)if(r.hasProvider(e))return n;return``}exchangeKeysForValues(e,t,r,i,a=c.STATIC_CONTEXT,o,s=this.contextUtils.getContextFactory(`http`)){return this.pipesContextCreator.setModuleContext(r),e.map(e=>{let{index:r,data:c,pipes:l}=t[e],u=this.pipesContextCreator.createConcreteContext(l,a,o),d=this.contextUtils.mapParamType(e);if(e.includes(n.CUSTOM_ROUTE_ARGS_METADATA)){let{factory:n}=t[e];return{index:r,extractValue:this.contextUtils.getCustomFactory(n,c,s),type:d,data:c,pipes:u}}let f=Number(d);return{index:r,extractValue:(...e)=>i.exchangeKeyForValue(f,c,e),type:f,data:c,pipes:u}})}createPipesFn(e,t){return t.length?async(n,...r)=>{await Promise.all(t.map(async t=>{let{index:i,extractValue:a,type:o,data:s,metatype:c,pipes:l}=t,u=a(...r);n[i]=await this.getParamValue(u,{metatype:c,type:o,data:s},e.concat(l))}))}:null}async getParamValue(e,{metatype:t,type:n,data:i},a){return(0,r.isEmpty)(a)?e:this.pipesConsumer.apply(e,{metatype:t,type:n,data:i},a)}async transformToResult(e){return(0,i.isObservable)(e)?(0,i.lastValueFrom)(e):e}createGuardsFn(e,n,r,i){return e.length?async a=>{if(!await this.guardsConsumer.tryActivate(e,a,n,r,i))throw new t.ForbiddenException(s.FORBIDDEN_MESSAGE)}:null}registerRequestProvider(e,t){this.container.registerRequestProvider(e,t)}}})),fS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(zx(),e),t.__exportStar(dS(),e),t.__exportStar(Fx(),e)})),pS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CircularDependencyException=void 0;var t=Wx();e.CircularDependencyException=class extends t.RuntimeException{constructor(e){let t=e?` inside ${e}`:``;super(`A circular dependency has been detected${t}. 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.`)}}})),mS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownElementException=void 0;var t=Wx();e.UnknownElementException=class extends t.RuntimeException{constructor(e){e&&=e.toString(),super(`Nest could not find ${e||`given`} element (this provider does not exist in the current context)`)}}})),hS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassScopeException=void 0;var t=A(),n=Gx(),r=Wx();e.InvalidClassScopeException=class extends r.RuntimeException{constructor(e){let r=(0,t.isFunction)(e)?e.name:e;r&&=r.toString(),super((0,n.INVALID_CLASS_SCOPE_MESSAGE)`${r}`)}}})),gS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassException=void 0;var t=Gx(),n=Wx();e.InvalidClassException=class extends n.RuntimeException{constructor(e){super((0,t.INVALID_CLASS_MESSAGE)`${e}`)}}})),_S=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownExportException=void 0;var t=Gx(),n=Wx();e.UnknownExportException=class extends n.RuntimeException{constructor(e,n){super((0,t.UNKNOWN_EXPORT_MESSAGE)(e,n))}}})),vS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownModuleException=void 0;var t=Wx();e.UnknownModuleException=class extends t.RuntimeException{constructor(e){super(`Nest could not select the given module (${e?`"${e}"`:`it`} does not exist in current context).`)}}})),yS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedForwardRefException=void 0;var t=Gx(),n=Wx();e.UndefinedForwardRefException=class extends n.RuntimeException{constructor(e){super((0,t.UNDEFINED_FORWARDREF_MESSAGE)(e))}}})),bS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(pS(),e),t.__exportStar(Wx(),e),t.__exportStar(mS(),e),t.__exportStar(hS(),e),t.__exportStar(gS(),e),t.__exportStar(_S(),e),t.__exportStar(vS(),e),t.__exportStar(yS(),e)})),xS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InitializeOnPreviewAllowlist=void 0;var t=class{static add(e){this.allowlist.set(e,!0)}static has(e){return this.allowlist.has(e)}};e.InitializeOnPreviewAllowlist=t,t.allowlist=new WeakMap})),SS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INQUIRER=void 0,e.INQUIRER=`INQUIRER`})),CS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SilentLogger=void 0;var t=H(),n=()=>{};e.SilentLogger=class extends t.Logger{constructor(){super(...arguments),this.log=n,this.error=n,this.warn=n,this.debug=n,this.verbose=n,this.fatal=n,this.setLogLevels=n}}})),wS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getClassScope=n;var t=O();function n(e){let n=Reflect.getMetadata(t.SCOPE_OPTIONS_METADATA,e);return n&&n.scope}})),TS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDurable=n;var t=O();function n(e){let n=Reflect.getMetadata(t.SCOPE_OPTIONS_METADATA,e);return n&&n.durable}})),ES=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractInstanceResolver=void 0;var t=H(),n=bS();e.AbstractInstanceResolver=class{find(e,r){let i=this.instanceLinksHost.get(e,r),a=({wrapperRef:r})=>{if(r.scope===t.Scope.REQUEST||r.scope===t.Scope.TRANSIENT||!r.isDependencyTreeStatic())throw new n.InvalidClassScopeException(e);return r.instance};return Array.isArray(i)?i.map(a):a(i)}async resolvePerContext(e,t,r,i){let a=i?.strict?this.instanceLinksHost.get(e,{moduleId:t.id,each:i.each}):this.instanceLinksHost.get(e,{each:i?.each}),o=async t=>{let{wrapperRef:i,collection:a}=t;if(i.isDependencyTreeStatic()&&!i.isTransient)return i.instance;let o=i.instance||{constructor:e},s=await this.injector.loadPerContext(o,i.host,a,r,i);if(!s)throw new n.UnknownElementException;return s};return Array.isArray(a)?Promise.all(a.map(e=>o(e))):o(a)}}})),DS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedDependencyException=void 0;var t=Gx(),n=Wx();e.UndefinedDependencyException=class extends n.RuntimeException{constructor(e,n,r){super((0,t.UNKNOWN_DEPENDENCIES_MESSAGE)(e,n,r))}}})),OS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownDependenciesException=void 0;var t=Gx(),n=Wx();e.UnknownDependenciesException=class extends n.RuntimeException{constructor(e,n,r,i){super((0,t.UNKNOWN_DEPENDENCIES_MESSAGE)(e,n,r)),this.type=e,this.context=n,this.metadata=i,this.moduleRef=r&&{id:r.id}}}})),kS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Barrier=void 0,e.Barrier=class{constructor(e){this.currentCount=0,this.targetCount=e,this.promise=new Promise(e=>{this.resolve=e})}signal(){this.currentCount+=1,this.currentCount===this.targetCount&&this.resolve()}async wait(){return this.promise}async signalAndWait(){return this.signal(),this.wait()}}})),AS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(SS(),e)})),jS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeterministicUuidRegistry=void 0;var t=class{static get(e,t=0){let n=t?this.hashCode(`${e}_${t}`):this.hashCode(e);return this.registry.has(n)?this.get(e,t+1):(this.registry.set(n,!0),n)}static clear(){this.registry.clear()}static hashCode(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t.toString()}};e.DeterministicUuidRegistry=t,t.registry=new Map})),MS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UuidFactory=e.UuidFactoryMode=void 0;var t=fn(),n=jS(),r;(function(e){e.Random=`random`,e.Deterministic=`deterministic`})(r||(e.UuidFactoryMode=r={}));var i=class{static set mode(e){this._mode=e}static get(e=``){return this._mode===r.Deterministic?n.DeterministicUuidRegistry.get(e):(0,t.randomStringGenerator)()}};e.UuidFactory=i,i._mode=r.Random})),NS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isClassProvider=n,e.isValueProvider=r,e.isFactoryProvider=i;var t=A();function n(e){return!!e?.useClass}function r(e){let n=e?.useValue;return!(0,t.isUndefined)(n)}function i(e){return!!e.useFactory}})),PS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceWrapper=e.INSTANCE_ID_SYMBOL=e.INSTANCE_METADATA_SYMBOL=void 0;var n=H(),r=nt(),i=fn(),a=A(),o=I(),s=MS(),c=Bx(),l=NS();e.INSTANCE_METADATA_SYMBOL=Symbol.for(`instance_metadata:cache`),e.INSTANCE_ID_SYMBOL=Symbol.for(`instance_metadata:id`);var u=class u{constructor(r={}){this.isAlias=!1,this.scope=n.Scope.DEFAULT,this.values=new WeakMap,this[t]={},this.initialize(r),this[e.INSTANCE_ID_SYMBOL]=r[e.INSTANCE_ID_SYMBOL]??this.generateUuid()}get id(){return this[e.INSTANCE_ID_SYMBOL]}set instance(e){this.values.set(c.STATIC_CONTEXT,{instance:e})}get instance(){return this.getInstanceByContextId(c.STATIC_CONTEXT).instance}get isNotMetatype(){return!this.metatype||this.isFactory}get isFactory(){return!!this.metatype&&!(0,a.isNil)(this.inject)}get isTransient(){return this.scope===n.Scope.TRANSIENT}getInstanceByContextId(e,t){return this.scope===n.Scope.TRANSIENT&&t?this.getInstanceByInquirerId(e,t):this.values.get(e)||(e===c.STATIC_CONTEXT?{instance:null,isResolved:!0,isPending:!1}:this.cloneStaticInstance(e))}getInstanceByInquirerId(e,t){let n=this.transientMap.get(t);return n||(n=new WeakMap,this.transientMap.set(t,n)),n.get(e)||this.cloneTransientInstance(e,t)}setInstanceByContextId(e,t,r){if(this.scope===n.Scope.TRANSIENT&&r)return this.setInstanceByInquirerId(e,r,t);this.values.set(e,t)}setInstanceByInquirerId(e,t,n){let r=this.transientMap.get(t);r||(r=new WeakMap,this.transientMap.set(t,r)),r.set(e,n)}removeInstanceByContextId(e,t){if(this.scope===n.Scope.TRANSIENT&&t)return this.removeInstanceByInquirerId(e,t);this.values.delete(e)}removeInstanceByInquirerId(e,t){let n=this.transientMap.get(t);n&&n.delete(e)}addCtorMetadata(t,n){this[e.INSTANCE_METADATA_SYMBOL].dependencies||(this[e.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[e.INSTANCE_METADATA_SYMBOL].dependencies[t]=n}getCtorMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(t,n){this[e.INSTANCE_METADATA_SYMBOL].properties||(this[e.INSTANCE_METADATA_SYMBOL].properties=[]),this[e.INSTANCE_METADATA_SYMBOL].properties.push({key:t,wrapper:n})}getPropertiesMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(t){this[e.INSTANCE_METADATA_SYMBOL].enhancers||(this[e.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[e.INSTANCE_METADATA_SYMBOL].enhancers.push(t)}getEnhancersMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeDurable(e=[]){return(0,a.isUndefined)(this.isTreeDurable)?this.scope===n.Scope.REQUEST?(this.isTreeDurable=this.durable===void 0?!1:this.durable,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable):this.isDependencyTreeStatic()?!1:(this.isTreeDurable=!this.introspectDepsAttribute((e,t)=>e.some(e=>!e.isDependencyTreeStatic()&&!e.isDependencyTreeDurable(t)),e),this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable):this.isTreeDurable}introspectDepsAttribute(t,n=[]){if(n.includes(this[e.INSTANCE_ID_SYMBOL]))return!1;n=n.concat(this[e.INSTANCE_ID_SYMBOL]);let{dependencies:r,properties:i,enhancers:a}=this[e.INSTANCE_METADATA_SYMBOL],o=r?t(r,n):!1;return o||!(i||a)||(o=i?t(i.map(e=>e.wrapper),n):!1,o||!a)?o:a?t(a,n):!1}isDependencyTreeStatic(e=[]){return(0,a.isUndefined)(this.isTreeStatic)?this.scope===n.Scope.REQUEST?(this.isTreeStatic=!1,this.printIntrospectedAsRequestScoped(),this.isTreeStatic):(this.isTreeStatic=!this.introspectDepsAttribute((e,t)=>e.some(e=>!e.isDependencyTreeStatic(t)),e),this.isTreeStatic||this.printIntrospectedAsRequestScoped(),this.isTreeStatic):this.isTreeStatic}cloneStaticInstance(e){let t=this.getInstanceByContextId(c.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return t;let n={...t,instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(n.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(e,n),n}cloneTransientInstance(e,t){let n={...this.getInstanceByContextId(c.STATIC_CONTEXT),instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(n.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(e,t,n),n}createPrototype(e){let t=this.getInstanceByContextId(e);if(!(!this.isNewable()||t.isResolved))return Object.create(this.metatype.prototype)}isInRequestScope(e,t){return!this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!t)}isLazyTransient(e,t){let n=!!(t&&!t.isDependencyTreeStatic());return this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&this.isTransient&&n}isExplicitlyRequested(e,t){let r=t===this;return this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&(r||!!(t&&t.scope===n.Scope.TRANSIENT))}isStatic(e,t){if(!this.isDependencyTreeStatic()||e!==c.STATIC_CONTEXT)return!1;if(!this.isTransient)return!0;let n=t&&!t.isDependencyTreeStatic(),r=this.isTransient&&!n,i=t?.getRootInquirer();return!!(r&&t&&!t.isTransient||r&&i&&!i.isTransient||r&&t?.isTransient&&!i)}attachRootInquirer(e){this.isTransient&&(this.rootInquirer=e.getRootInquirer()??e)}getRootInquirer(){return this.rootInquirer}getStaticTransientInstances(){if(!this.transientMap)return[];let e=[...this.transientMap.values()];return(0,o.iterate)(e).map(e=>e.get(c.STATIC_CONTEXT)).filter(e=>!!(e&&e.isConstructorCalled)).toArray()}mergeWith(e){(0,l.isValueProvider)(e)?(this.metatype=null,this.inject=null,this.scope=n.Scope.DEFAULT,this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:e.useValue,isResolved:!0,isPending:!1})):(0,l.isClassProvider)(e)?(this.inject=null,this.metatype=e.useClass):(0,l.isFactoryProvider)(e)&&(this.metatype=e.useFactory,this.inject=e.inject||[])}isNewable(){return(0,a.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}initialize(e){let{instance:t,isResolved:r,...i}=e;Object.assign(this,i),this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:t,isResolved:r}),this.scope===n.Scope.TRANSIENT&&(this.transientMap=new Map)}printIntrospectedAsRequestScoped(){!this.isDebugMode()||this.name===`REQUEST`||(0,a.isString)(this.name)&&u.logger.log(`${r.clc.cyanBright(this.name)}${r.clc.green(` introspected as `)}${r.clc.magentaBright(`request-scoped`)}`)}printIntrospectedAsDurable(){this.isDebugMode()&&(0,a.isString)(this.name)&&u.logger.log(`${r.clc.cyanBright(this.name)}${r.clc.green(` introspected as `)}${r.clc.magentaBright(`durable`)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}generateUuid(){let e=this.name?.toString()??this.token?.toString();return e+=this.host?.name??``,e?s.UuidFactory.get(e):(0,i.randomStringGenerator)()}};e.InstanceWrapper=u,t=e.INSTANCE_METADATA_SYMBOL,u.logger=new n.Logger(u.name)})),FS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SettlementSignal=void 0,e.SettlementSignal=class{constructor(){this._refs=new Set,this.completed=!1,this.settledPromise=new Promise(e=>{this.settleFn=e})}complete(){this.completed=!0,this.settleFn()}error(e){this.completed=!0,this.settleFn(e)}asPromise(){return this.settledPromise}insertRef(e){this._refs.add(e)}isCycle(e){return!this.completed&&this._refs.has(e)}}})),IS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Injector=void 0;var t=H(),n=O(),r=nt(),i=A(),a=I(),o=require(`perf_hooks`),s=bS(),c=Wx(),l=DS(),u=OS(),d=kS(),f=Bx(),p=AS(),m=PS(),h=FS();e.Injector=class{constructor(e){this.options=e,this.logger=new t.Logger(`InjectorLogger`),this.instanceDecorator=e=>e,e?.instanceDecorator&&(this.instanceDecorator=e.instanceDecorator)}loadPrototype({token:e},t,n=f.STATIC_CONTEXT){if(!t)return;let r=t.get(e),i=r.createPrototype(n);if(i){let n=new m.InstanceWrapper({...r,instance:i});t.set(e,n)}}async loadInstance(e,t,n,r=f.STATIC_CONTEXT,a){let o=this.getInquirerId(a),l=e.getInstanceByContextId(this.getContextId(r,e),o);if(l.isPending){let t=e.settlementSignal;if(a&&t?.isCycle(a.id))throw new s.CircularDependencyException(`"${e.name}"`);return l.donePromise.then(e=>{if(e)throw e})}let u=this.applySettlementSignal(l,e),d=e.token||e.name,{inject:p}=e,m=t.get(d);if((0,i.isUndefined)(m))throw new c.RuntimeException;if(l.isResolved)return u.complete();try{let t=this.getNowTimestamp();await this.resolveConstructorParams(e,n,p,async i=>{let o=await this.resolveProperties(e,n,p,r,e,a),s=await this.instantiateClass(i,e,m,r,a);this.applyProperties(s,o),e.initTime=this.getNowTimestamp()-t,u.complete()},r,e,a)}catch(t){throw e.removeInstanceByContextId(this.getContextId(r,e),o),u.error(t),t}}async loadMiddleware(e,t,n,r=f.STATIC_CONTEXT,a){let{metatype:o,token:s}=e,c=t.get(s);(0,i.isUndefined)(c.instance)&&(c.instance=Object.create(o.prototype),await this.loadInstance(e,t,n,r,a||e))}async loadController(e,t,n=f.STATIC_CONTEXT){let r=t.controllers;await this.loadInstance(e,r,t,n,e),await this.loadEnhancersPerContext(e,n,e)}async loadInjectable(e,t,n=f.STATIC_CONTEXT,r){let i=t.injectables;await this.loadInstance(e,i,t,n,r)}async loadProvider(e,t,n=f.STATIC_CONTEXT,r){let i=t.providers;await this.loadInstance(e,i,t,n,r),await this.loadEnhancersPerContext(e,n,e)}applySettlementSignal(e,t){let n=new h.SettlementSignal;return e.donePromise=n.asPromise(),e.isPending=!0,t.settlementSignal=n,n}async resolveConstructorParams(e,t,n,r,a=f.STATIC_CONTEXT,o,s){let c=e.getCtorMetadata();if(c&&a!==f.STATIC_CONTEXT)return r(await this.loadCtorMetadata(c,a,o,s));let[l,u]=(0,i.isNil)(n)?this.getClassDependencies(e):this.getFactoryProviderDependencies(e),p=new d.Barrier(l.length),m=!0,h=await Promise.all(l.map(async(n,r)=>{try{if(this.isInquirer(n,s))return p.signal(),s&&s.instance;o?.isTransient&&s&&o.attachRootInquirer(s);let i=await this.resolveSingleParam(e,n,{index:r,dependencies:l},t,a,o,r);await p.signalAndWait();let c=this.getEffectiveInquirer(i,o,s,a),u=await this.resolveComponentHost(t,i,a,c),d=u.getInstanceByContextId(this.getContextId(a,u),this.getInquirerId(c));return!d.isResolved&&!u.forwardRef&&(m=!1),d?.instance}catch(e){if(p.signal(),!u.includes(r))throw e;return}}));m&&await r(h)}getClassDependencies(e){let t=e.metatype;return[this.reflectConstructorParams(t),this.reflectOptionalParams(t)]}getFactoryProviderDependencies(e){let t=[];function n(e){return!(0,i.isUndefined)(e.token)&&!(0,i.isUndefined)(e.optional)&&!e.prototype}return[e.inject?.map?.((e,r)=>typeof e==`object`&&n(e)?(e.optional&&t.push(r),e?.token):e),t]}reflectConstructorParams(e){let t=[...Reflect.getMetadata(n.PARAMTYPES_METADATA,e)||[]];return this.reflectSelfParams(e).forEach(({index:e,param:n})=>t[e]=n),Array.from(t)}reflectOptionalParams(e){return Reflect.getMetadata(n.OPTIONAL_DEPS_METADATA,e)||[]}reflectSelfParams(e){return Reflect.getMetadata(n.SELF_DECLARED_DEPS_METADATA,e)||[]}async resolveSingleParam(e,t,n,r,a=f.STATIC_CONTEXT,o,s){if((0,i.isUndefined)(t))throw this.logger.log(`Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration.`),new l.UndefinedDependencyException(e.name,n,r);let c=this.resolveParamToken(e,t);return this.resolveComponentWrapper(r,c,n,e,a,o,s)}resolveParamToken(e,t){return typeof t==`object`&&`forwardRef`in t?(e.forwardRef=!0,t.forwardRef()):t}async resolveComponentWrapper(e,t,n,r,i=f.STATIC_CONTEXT,a,o){this.printResolvingDependenciesLog(t,a),this.printLookingForProviderLog(t,e);let s=e.providers;return this.lookupComponent(s,e,{...n,name:t},r,i,a,o)}async resolveComponentHost(e,t,n=f.STATIC_CONTEXT,r){let i=this.getInquirerId(r),a=t.getInstanceByContextId(this.getContextId(n,t),i);if(!a.isResolved&&!t.forwardRef?(r?.settlementSignal?.insertRef(t.id),await this.loadProvider(t,t.host??e,n,r)):!a.isResolved&&t.forwardRef&&(n!==f.STATIC_CONTEXT||i)&&a.donePromise&&a.donePromise.then(()=>this.loadProvider(t,e,n,r)).catch(e=>{t.settlementSignal?.error(e)}),t.async){let e=t.getInstanceByContextId(this.getContextId(n,t),i);e.instance=await e.instance,t.setInstanceByContextId(n,e,i)}return t}async lookupComponent(e,t,n,r,i=f.STATIC_CONTEXT,a,o){let s=r.token||r.name,{name:c}=n;if(r&&s===c)throw new u.UnknownDependenciesException(r.name,n,t,{id:r.id});if(c&&e.has(c)){let n=e.get(c);return this.printFoundInModuleLog(c,t),this.addDependencyMetadata(o,r,n),n}return this.lookupComponentInParentModules(n,t,r,i,a,o)}async lookupComponentInParentModules(e,t,n,r=f.STATIC_CONTEXT,a,o){let s=await this.lookupComponentInImports(t,e.name,n,new Set,r,a,o);if((0,i.isNil)(s))throw new u.UnknownDependenciesException(n.name,e,t,{id:n.id});return s}async lookupComponentInImports(e,t,n,r=new Set,i=f.STATIC_CONTEXT,a,o,s){let c=null,l=e.imports||new Set,u=e=>e,d=[...l.values()].filter(u);if(s){let t=e.exports;d=d.filter(e=>t.has(e.metatype))}for(let e of d){if(r.has(e.id))continue;this.printLookingForProviderLog(t,e),r.add(e.id);let{providers:s,exports:l}=e;if(!l.has(t)||!s.has(t)){let s=await this.lookupComponentInImports(e,t,n,r,i,a,o,!0);if(s)return this.addDependencyMetadata(o,n,s),s;continue}this.printFoundInModuleLog(t,e),c=s.get(t),this.addDependencyMetadata(o,n,c);let u=this.getInquirerId(a);if(!c.getInstanceByContextId(this.getContextId(i,c),u).isResolved&&!c.forwardRef)break}return c}async resolveProperties(e,t,n,r=f.STATIC_CONTEXT,a,o){if(!(0,i.isNil)(n))return[];let s=e.getPropertiesMetadata();if(s&&r!==f.STATIC_CONTEXT)return this.loadPropertiesMetadata(s,r,a);let c=this.reflectProperties(e.metatype),l=new d.Barrier(c.length),u=await Promise.all(c.map(async n=>{try{let i={key:n.key,name:n.name};if(this.isInquirer(n.name,o))return l.signal(),o&&o.instance;let s=await this.resolveSingleParam(e,n.name,i,t,r,a,n.key);await l.signalAndWait();let c=this.getEffectiveInquirer(s,a,o,r),u=await this.resolveComponentHost(t,s,r,c);return u?u.getInstanceByContextId(this.getContextId(r,u),this.getInquirerId(c)).instance:void 0}catch(e){if(l.signal(),!n.isOptional)throw e;return}}));return c.map((e,t)=>({...e,instance:u[t]}))}reflectProperties(e){let t=Reflect.getMetadata(n.PROPERTY_DEPS_METADATA,e)||[],r=Reflect.getMetadata(n.OPTIONAL_PROPERTY_DEPS_METADATA,e)||[];return t.map(e=>({...e,name:e.type,isOptional:r.includes(e.key)}))}applyProperties(e,t){(0,i.isObject)(e)&&(0,a.iterate)(t).filter(e=>!(0,i.isNil)(e.instance)).forEach(t=>e[t.key]=t.instance)}async instantiateClass(e,t,n,r=f.STATIC_CONTEXT,a){let{metatype:o,inject:s}=t,c=this.getInquirerId(a),l=n.getInstanceByContextId(this.getContextId(r,n),c),u=t.isStatic(r,a)||t.isInRequestScope(r,a)||t.isLazyTransient(r,a)||t.isExplicitlyRequested(r,a);return this.options?.preview&&!t.host?.initOnPreview?(l.isResolved=!0,l.instance):((0,i.isNil)(s)&&u?(l.instance=t.forwardRef?Object.assign(l.instance,new o(...e)):new o(...e),l.instance=this.instanceDecorator(l.instance),l.isConstructorCalled=!0):u&&(l.instance=await n.metatype(...e),l.instance=this.instanceDecorator(l.instance),l.isConstructorCalled=!0),l.isResolved=!0,l.instance)}async loadPerContext(e,t,n,r,i){if(!i){let t=e.constructor;i=n.get(t)}await this.loadInstance(i,n,t,r,i),await this.loadEnhancersPerContext(i,r,i);let a=i.getInstanceByContextId(this.getContextId(r,i),i.id);return a&&a.instance}async loadEnhancersPerContext(e,t,n){let r=e.getEnhancersMetadata()||[];await Promise.all(r.map(e=>{let r=e.host;return this.loadInstance(e,r.injectables,r,t,n)}))}async loadCtorMetadata(e,t,n,r){return(await Promise.all(e.map(async e=>this.resolveScopedComponentHost(e,t,n,r)))).map((i,a)=>{let o=e[a],s=this.getEffectiveInquirer(o,n,r,t);return i?.getInstanceByContextId(this.getContextId(t,i),this.getInquirerId(s)).instance})}async loadPropertiesMetadata(e,t,n){let r=await Promise.all(e.map(async({wrapper:e,key:r})=>({key:r,host:await this.resolveComponentHost(e.host,e,t,n)}))),i=this.getInquirerId(n);return r.map(({key:e,host:n})=>({key:e,name:e,instance:n.getInstanceByContextId(this.getContextId(t,n),i).instance}))}getInquirerId(e){return e?e.id:void 0}getEffectiveInquirer(e,t,n,r){return e?.isTransient&&t?.isTransient&&n&&r!==f.STATIC_CONTEXT?n:t}resolveScopedComponentHost(e,t,n,r){return this.isInquirerRequest(e,r)?r:this.resolveComponentHost(e.host,e,t,this.getEffectiveInquirer(e,n,r,t))}isInquirerRequest(e,t){return e.isTransient&&e.name===p.INQUIRER&&t}isInquirer(e,t){return e===p.INQUIRER&&t}addDependencyMetadata(e,t,n){(0,i.isSymbol)(e)||(0,i.isString)(e)?t.addPropertiesMetadata(e,n):t.addCtorMetadata(e,n)}getTokenName(e){return(0,i.isFunction)(e)?e.name:e.toString()}printResolvingDependenciesLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=(t?.name&&t.name.toString?.())??`unknown`,a=i===n,o=`Resolving dependency ${r.clc.cyanBright(n)}${r.clc.green(` in the `)}${r.clc.yellow(i)}${r.clc.green(` provider ${a?`(alias)`:``}`)}`;this.logger.log(o)}printLookingForProviderLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=t?.metatype?.name??`unknown`;this.logger.log(`Looking for ${r.clc.cyanBright(n)}${r.clc.green(` in `)}${r.clc.magentaBright(i)}`)}printFoundInModuleLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=t?.metatype?.name??`unknown`;this.logger.log(`Found ${r.clc.cyanBright(n)}${r.clc.green(` in `)}${r.clc.magentaBright(i)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}getContextId(e,t){return e.getParent?e.getParent({token:t.token,isTreeDurable:t.isDependencyTreeDurable()}):e}getNowTimestamp(){return o.performance.now()}}})),LS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceLinksHost=void 0;var t=A(),n=mS();e.InstanceLinksHost=class{constructor(e){this.container=e,this.instanceLinks=new Map,this.initialize()}get(e,t={}){let r=this.instanceLinks.get(e);if(!r)throw new n.UnknownElementException(this.getInstanceNameByToken(e));if(t.each)return r;let i=t.moduleId?r.find(e=>e.moduleId===t.moduleId):r[r.length-1];if(!i)throw new n.UnknownElementException(this.getInstanceNameByToken(e));return i}initialize(){this.container.getModules().forEach(e=>{let{providers:t,injectables:n,controllers:r}=e;t.forEach((t,n)=>this.addLink(t,n,e,`providers`)),n.forEach((t,n)=>this.addLink(t,n,e,`injectables`)),r.forEach((t,n)=>this.addLink(t,n,e,`controllers`))})}addLink(e,t,n,r){let i={moduleId:n.id,wrapperRef:e,collection:n[r],token:t},a=this.instanceLinks.get(t);a?a.push(i):this.instanceLinks.set(t,[i])}getInstanceNameByToken(e){return(0,t.isFunction)(e)?e?.name:e}}})),RS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleRef=void 0;var t=H(),n=wS(),r=TS(),i=ES(),a=Bx(),o=IS(),s=LS(),c=PS();e.ModuleRef=class extends i.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||=new s.InstanceLinksHost(this.container),this._instanceLinksHost}constructor(e){super(),this.container=e,this.injector=new o.Injector({preview:e.contextOptions?.preview,instanceDecorator:e.contextOptions?.instrument?.instanceDecorator})}introspect(e){let{wrapperRef:n}=this.instanceLinksHost.get(e),r=t.Scope.DEFAULT;return n.isDependencyTreeStatic()?n.isTransient&&(r=t.Scope.TRANSIENT):r=t.Scope.REQUEST,{scope:r}}registerRequestByContextId(e,t){this.container.registerRequestProvider(e,t)}async instantiateClass(e,t,i){let o=new c.InstanceWrapper({name:e&&e.name,metatype:e,isResolved:!1,scope:(0,n.getClassScope)(e),durable:(0,r.isDurable)(e),host:t});return e?.prototype&&o.setInstanceByContextId(i??a.STATIC_CONTEXT,{instance:Object.create(e.prototype),isResolved:!1,isPending:!1}),new Promise(async(n,r)=>{try{await this.injector.resolveConstructorParams(o,t,void 0,async r=>{let a=await this.injector.resolveProperties(o,t,void 0,i,o),s=new e(...r);this.injector.applyProperties(s,a),n(s)},i,o)}catch(e){r(e)}})}}})),zS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LazyModuleLoader=void 0;var t=CS(),n=RS();e.LazyModuleLoader=class{constructor(e,t,n,r,i){this.dependenciesScanner=e,this.instanceLoader=t,this.moduleCompiler=n,this.modulesContainer=r,this.moduleOverrides=i}async load(e,t){this.registerLoggerConfiguration(t);let n=await e(),r=await this.dependenciesScanner.scanForModules({moduleDefinition:n,overrides:this.moduleOverrides,lazy:!0});if(r.length===0){let{token:e}=await this.moduleCompiler.compile(n),t=this.modulesContainer.get(e);return t&&this.getTargetModuleRef(t)}let i=this.createLazyModulesContainer(r);await this.dependenciesScanner.scanModulesForDependencies(i),await this.instanceLoader.createInstancesOfDependencies(i);let[a]=r;return this.getTargetModuleRef(a)}registerLoggerConfiguration(e){e?.logger===!1&&this.instanceLoader.setLogger(new t.SilentLogger)}createLazyModulesContainer(e){return e=Array.from(new Set(e)),new Map(e.map(e=>[e.token,e]))}getTargetModuleRef(e){return e.getProviderByKey(n.ModuleRef).instance}}})),BS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Reflector=void 0;var t=H(),n=A(),r=M();e.Reflector=class{static createDecorator(e={}){let n=e.key??(0,r.uid)(21),i=r=>(i,a,o)=>{let s=e.transform?e.transform(r):r;(0,t.SetMetadata)(n,s??{})(i,a,o)};return i.KEY=n,i}get(e,t){let n=e.KEY??e;return Reflect.getMetadata(n,t)}getAll(e,t){return(t||[]).map(t=>this.get(e,t))}getAllAndMerge(e,t){let r=this.getAll(e,t).filter(e=>e!==void 0);if((0,n.isEmpty)(r))return r;if(r.length===1){let e=r[0];return(0,n.isObject)(e)?e:r}return r.reduce((e,t)=>Array.isArray(e)?e.concat(t):(0,n.isObject)(e)&&(0,n.isObject)(t)?{...e,...t}:[e,t])}getAllAndOverride(e,t){for(let n of t){let t=this.get(e,n);if(t!==void 0)return t}}}})),VS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializedGraph=void 0;var t=Dx(),n=dS(),r=Fx(),i=SS(),a=zS(),o=RS(),s=Ax(),c=Rx(),l=BS(),u=jS(),d=class e{constructor(){this.nodes=new Map,this.edges=new Map,this.entrypoints=new Map,this.extras={orphanedEnhancers:[],attachedEnhancers:[]},this._status=`complete`}set status(e){this._status=e}set metadata(e){this._metadata=e}insertNode(t){return t.metadata.type===`provider`&&e.INTERNAL_PROVIDERS.includes(t.metadata.token)&&(t.metadata={...t.metadata,internal:!0}),this.nodes.has(t.id)?this.nodes.get(t.id):(this.nodes.set(t.id,t),t)}insertEdge(t){t.metadata.type===`class-to-class`&&(e.INTERNAL_PROVIDERS.includes(t.metadata.sourceClassToken)||e.INTERNAL_PROVIDERS.includes(t.metadata.targetClassToken))&&(t.metadata={...t.metadata,internal:!0});let n=t.id??this.generateUuidByEdgeDefinition(t),r={...t,id:n};return this.edges.set(n,r),r}insertEntrypoint(e,t){this.entrypoints.has(t)?this.entrypoints.get(t).push(e):this.entrypoints.set(t,[e])}insertOrphanedEnhancer(e){this.extras.orphanedEnhancers.push(e)}insertAttachedEnhancer(e){this.extras.attachedEnhancers.push({nodeId:e})}getNodeById(e){return this.nodes.get(e)}toJSON(){let e={nodes:Object.fromEntries(this.nodes),edges:Object.fromEntries(this.edges),entrypoints:Object.fromEntries(this.entrypoints),extras:this.extras};return this._status&&(e.status=this._status),this._metadata&&(e.metadata=this._metadata),e}toString(){return JSON.stringify(this.toJSON(),(e,t)=>typeof t==`symbol`?t.toString():typeof t==`function`?t.name??`Function`:t,2)}generateUuidByEdgeDefinition(e){return u.DeterministicUuidRegistry.get(JSON.stringify(e))}};e.SerializedGraph=d,d.INTERNAL_PROVIDERS=[t.ApplicationConfig,o.ModuleRef,r.HttpAdapterHost,a.LazyModuleLoader,n.ExternalContextCreator,s.ModulesContainer,l.Reflector,d,r.HttpAdapterHost.name,l.Reflector.name,c.REQUEST,i.INQUIRER]})),HS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleCompiler=void 0,e.ModuleCompiler=class{constructor(e){this._moduleOpaqueKeyFactory=e}get moduleOpaqueKeyFactory(){return this._moduleOpaqueKeyFactory}async compile(e){e=await e;let{type:t,dynamicMetadata:n}=this.extractMetadata(e);return{type:t,dynamicMetadata:n,token:n?this._moduleOpaqueKeyFactory.createForDynamic(t,n,e):this._moduleOpaqueKeyFactory.createForStatic(t,e)}}extractMetadata(e){if(!this.isDynamicModule(e))return{type:e?.forwardRef?e.forwardRef():e,dynamicMetadata:void 0};let{module:t,...n}=e;return{type:t,dynamicMetadata:n}}isDynamicModule(e){return!!e.module}}})),US=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.requestProvider=void 0;var t=H();e.requestProvider={provide:Rx().REQUEST,scope:t.Scope.REQUEST,useFactory:()=>{}}})),WS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(BS(),e)})),GS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inquirerProvider=void 0;var t=H();e.inquirerProvider={provide:SS().INQUIRER,scope:t.Scope.TRANSIENT,useFactory:()=>{}}})),KS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalCoreModule=void 0;var n=E(),r=H(),i=US(),a=WS(),o=GS(),s={provide:a.Reflector.name,useExisting:a.Reflector},c=t=class{static register(e){return{module:t,providers:[...e],exports:[...e.map(e=>e.provide)]}}};e.InternalCoreModule=c,e.InternalCoreModule=c=t=n.__decorate([(0,r.Global)(),(0,r.Module)({providers:[a.Reflector,s,i.requestProvider,o.inquirerProvider],exports:[a.Reflector,s,i.requestProvider,o.inquirerProvider]})],c)})),qS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalProvidersStorage=void 0;var t=Fx();e.InternalProvidersStorage=class{constructor(){this._httpAdapterHost=new t.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(e){this._httpAdapter=e}}})),JS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Module=void 0;var t=O(),n=dn(),r=fn(),i=A(),a=I(),o=Dx(),s=bS(),c=zx(),l=wS(),u=TS(),d=MS(),f=Bx(),p=PS(),m=RS();e.Module=class{constructor(e,t){this._metatype=e,this.container=t,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(e){this._token=e}get name(){return this.metatype.name}get isGlobal(){return this._isGlobal}set isGlobal(e){this._isGlobal=e}get initOnPreview(){return this._initOnPreview}set initOnPreview(e){this._initOnPreview=e}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(e=>this.providers.get(e))}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(e){this._distance=e}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){let e=this.createModuleReferenceType();this._providers.set(m.ModuleRef,new p.InstanceWrapper({token:m.ModuleRef,name:m.ModuleRef.name,metatype:m.ModuleRef,isResolved:!0,instance:new e,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new p.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(o.ApplicationConfig,new p.InstanceWrapper({token:o.ApplicationConfig,name:o.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(e,t,n){if(this.isCustomProvider(e))return this.addCustomProvider(e,this._injectables,t);let r=this.injectables.get(e);if(r||(r=new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),subtype:t,host:this}),this._injectables.set(e,r)),n){let e=this._controllers.get(n)||this._providers.get(n);e&&e.addEnhancerMetadata(r)}return r}addProvider(e,t){if(this.isCustomProvider(e))return this.isEntryProvider(e.provide)&&this._entryProviderKeys.add(e.provide),this.addCustomProvider(e,this._providers,t);let n=this._providers.has(e);return(this.isTransientProvider(e)||this.isRequestScopeProvider(e))&&n?e:(this._providers.set(e,new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),host:this})),this.isEntryProvider(e)&&this._entryProviderKeys.add(e),e)}isCustomProvider(e){return!(0,i.isNil)(e.provide)}addCustomProvider(e,t,n){return this.isCustomClass(e)?this.addCustomClass(e,t,n):this.isCustomValue(e)?this.addCustomValue(e,t,n):this.isCustomFactory(e)?this.addCustomFactory(e,t,n):this.isCustomUseExisting(e)&&this.addCustomUseExisting(e,t,n),e.provide}isCustomClass(e){return!(0,i.isUndefined)(e.useClass)}isCustomValue(e){return(0,i.isObject)(e)&&Object.prototype.hasOwnProperty.call(e,`useValue`)}isCustomFactory(e){return!(0,i.isUndefined)(e.useFactory)}isCustomUseExisting(e){return!(0,i.isUndefined)(e.useExisting)}isDynamicModule(e){return e&&e.module}addCustomClass(e,t,n){let{scope:r,durable:a}=e,{useClass:o}=e;(0,i.isUndefined)(r)&&(r=(0,l.getClassScope)(o)),(0,i.isUndefined)(a)&&(a=(0,u.isDurable)(o));let s=e.provide;t.set(s,new p.InstanceWrapper({token:s,name:o?.name||o,metatype:o,instance:null,isResolved:!1,scope:r,durable:a,host:this,subtype:n}))}addCustomValue(e,t,n){let{useValue:r,provide:i}=e,a=this.container.contextOptions?.instrument?.instanceDecorator;t.set(i,new p.InstanceWrapper({token:i,name:i?.name||i,metatype:null,instance:a?a(r):r,isResolved:!0,async:r instanceof Promise,host:this,subtype:n}))}addCustomFactory(e,t,n){let{useFactory:r,inject:i,scope:a,durable:o,provide:s}=e;t.set(s,new p.InstanceWrapper({token:s,name:s?.name||s,metatype:r,instance:null,isResolved:!1,inject:i||[],scope:a,durable:o,host:this,subtype:n}))}addCustomUseExisting(e,t,n){let{useExisting:r,provide:i}=e;t.set(i,new p.InstanceWrapper({token:i,name:i?.name||i,metatype:(e=>e),instance:null,isResolved:!1,inject:[r],host:this,isAlias:!0,subtype:n}))}addExportedProviderOrModule(e){let t=e=>this._exports.add(this.validateExportedProvider(e));if(this.isCustomProvider(e))return this.addCustomExportedProvider(e);if((0,i.isString)(e)||(0,i.isSymbol)(e))return t(e);if(this.isDynamicModule(e)){let{module:n}=e;return t(n)}t(e)}addCustomExportedProvider(e){let t=e.provide;if((0,i.isString)(t)||(0,i.isSymbol)(t))return this._exports.add(this.validateExportedProvider(t));this._exports.add(this.validateExportedProvider(t))}validateExportedProvider(e){if(this._providers.has(e))return e;if(!(0,a.iterate)(this._imports.values()).filter(e=>!!e).map(({metatype:e})=>e).filter(e=>!!e).toArray().includes(e)){let{name:t}=this.metatype,n=(0,i.isFunction)(e)?e.name:e;throw new s.UnknownExportException(n,t)}return e}addController(e){this._controllers.set(e,new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),host:this})),this.assignControllerUniqueId(e)}assignControllerUniqueId(e){Object.defineProperty(e,f.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,r.randomStringGenerator)()})}addImport(e){this._imports.add(e)}replace(e,t){if(t.isProvider&&this.hasProvider(e))return this._providers.get(e).mergeWith({provide:e,...t});if(!t.isProvider&&this.hasInjectable(e))return this._injectables.get(e).mergeWith({provide:e,...t})}hasProvider(e){return this._providers.has(e)}hasInjectable(e){return this._injectables.has(e)}getProviderByKey(e){return this._providers.get(e)}getProviderById(e){return Array.from(this._providers.values()).find(t=>t.id===e)}getControllerById(e){return Array.from(this._controllers.values()).find(t=>t.id===e)}getInjectableById(e){return Array.from(this._injectables.values()).find(t=>t.id===e)}getMiddlewareById(e){return Array.from(this._middlewares.values()).find(t=>t.id===e)}getNonAliasProviders(){return[...this._providers].filter(([e,t])=>!t.isAlias)}createModuleReferenceType(){let e=this;return class extends m.ModuleRef{constructor(){super(e.container)}get(t,n={}){return n.strict??=!0,n.each??=!1,this.find(t,n.strict?{moduleId:e.id,each:n.each}:n)}resolve(t,n=(0,c.createContextId)(),r={}){return r.strict??=!0,r.each??=!1,this.resolvePerContext(t,e,n,r)}async create(t,n){if(!(t&&(0,i.isFunction)(t)&&t.prototype))throw new s.InvalidClassException(t);return this.instantiateClass(t,e,n)}}}isEntryProvider(e){return typeof e==`function`?!!Reflect.getMetadata(t.ENTRY_PROVIDER_WATERMARK,e):!1}generateUuid(){let e=this.token?this.token.includes(`:`)?this.token.split(`:`)[1]:this.token:this.name;return e?d.UuidFactory.get(`M__${e}`):(0,r.randomStringGenerator)()}isTransientProvider(e){return(0,l.getClassScope)(e)===n.Scope.TRANSIENT}isRequestScopeProvider(e){return(0,l.getClassScope)(e)===n.Scope.REQUEST}}})),YS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ByReferenceModuleOpaqueKeyFactory=void 0;var t=fn(),n=require(`crypto`),r=Symbol(`K_MODULE_ID`);e.ByReferenceModuleOpaqueKeyFactory=class{constructor(e){this.keyGenerationStrategy=e?.keyGenerationStrategy??`random`}createForStatic(e,t=e){return this.getOrCreateModuleId(e,void 0,t)}createForDynamic(e,t,n){return this.getOrCreateModuleId(e,t,n)}getOrCreateModuleId(e,t,n){if(n[r])return n[r];let i;return i=this.keyGenerationStrategy===`random`?this.generateRandomString():t?`${this.generateRandomString()}:${this.hashString(e.name+JSON.stringify(t))}`:`${this.generateRandomString()}:${this.hashString(e.toString())}`,n[r]=i,i}hashString(e){return(0,n.createHash)(`sha256`).update(e).digest(`hex`)}generateRandomString(){return(0,t.randomStringGenerator)()}}})),XS=s(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:+(e>t)}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}})),ZS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeepHashedModuleOpaqueKeyFactory=void 0;var t=ct(),n=fn(),r=A(),i=require(`crypto`),a=XS(),o=`class `,s=6;e.DeepHashedModuleOpaqueKeyFactory=class e{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new t.Logger(e.name,{timestamp:!0})}createForStatic(e){let t=`${this.getModuleId(e)}_${this.getModuleName(e)}`;if(this.moduleTokenCache.has(t))return this.moduleTokenCache.get(t);let n=this.hashString(t);return this.moduleTokenCache.set(t,n),n}createForDynamic(e,t){let n={id:this.getModuleId(e),module:this.getModuleName(e),dynamic:t},r=performance.now(),i=this.getStringifiedOpaqueToken(n),a=performance.now()-r;if(a>10){let e=a.toFixed(2);this.logger.warn(`The module "${n.module}" is taking ${e}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(i)}getStringifiedOpaqueToken(e){return e?(0,a.default)(e,this.replacer):``}getModuleId(e){let t=this.moduleIdsCache.get(e);return t||(t=(0,n.randomStringGenerator)(),this.moduleIdsCache.set(e,t),t)}getModuleName(e){return e.name}hashString(e){return(0,i.createHash)(`sha256`).update(e).digest(`hex`)}replacer(e,t){if((0,r.isFunction)(t)){let e=t.toString();return e.slice(0,s)===o?t.name:e}return(0,r.isSymbol)(t)?t.toString():t}}})),QS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestContainer=void 0;var t=O(),n=jx(),r=bS(),i=xS(),a=VS(),o=Rx(),s=HS(),c=KS(),l=qS(),u=JS(),d=Ax(),f=YS(),p=ZS();e.NestContainer=class{constructor(e=void 0,t=void 0){this._applicationConfig=e,this._contextOptions=t,this.globalModules=new Set,this.modules=new d.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new l.InternalProvidersStorage,this._serializedGraph=new a.SerializedGraph;let n=this._contextOptions?.moduleIdGeneratorAlgorithm===`deep-hash`?new p.DeepHashedModuleOpaqueKeyFactory:new f.ByReferenceModuleOpaqueKeyFactory({keyGenerationStrategy:this._contextOptions?.snapshot?`shallow`:`random`});this.moduleCompiler=new s.ModuleCompiler(n)}get serializedGraph(){return this._serializedGraph}get applicationConfig(){return this._applicationConfig}get contextOptions(){return this._contextOptions}setHttpAdapter(e){if(this.internalProvidersStorage.httpAdapter=e,!this.internalProvidersStorage.httpAdapterHost)return;let t=this.internalProvidersStorage.httpAdapterHost;t.httpAdapter=e}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}async addModule(e,t){if(!e)throw new r.UndefinedForwardRefException(t);let{type:n,dynamicMetadata:i,token:a}=await this.moduleCompiler.compile(e);return this.modules.has(a)?{moduleRef:this.modules.get(a),inserted:!0}:{moduleRef:await this.setModule({token:a,type:n,dynamicMetadata:i},t),inserted:!0}}async replaceModule(e,t,n){if(!e||!t)throw new r.UndefinedForwardRefException(n);let{token:i}=await this.moduleCompiler.compile(e),{type:a,dynamicMetadata:o}=await this.moduleCompiler.compile(t);return{moduleRef:await this.setModule({token:i,type:a,dynamicMetadata:o},n),inserted:!1}}async setModule({token:e,dynamicMetadata:t,type:n},r){let i=new u.Module(n,this);i.token=e,i.initOnPreview=this.shouldInitOnPreview(n),this.modules.set(e,i);let a=[].concat(r,n);return await this.addDynamicMetadata(e,t,a),this.isGlobalModule(n,t)&&(i.isGlobal=!0,i.distance=Number.MAX_VALUE,this.addGlobalModule(i)),i}async addDynamicMetadata(e,t,n){if(!t)return;this.dynamicModulesMetadata.set(e,t);let{imports:r}=t;await this.addDynamicModules(r,n)}async addDynamicModules(e,t){e&&await Promise.all(e.map(e=>this.addModule(e,t)))}isGlobalModule(e,n){return n&&n.global?!0:!!Reflect.getMetadata(t.GLOBAL_MODULE_METADATA,e)}addGlobalModule(e){this.globalModules.add(e)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(e){return this.modules.get(e)}getInternalCoreModuleRef(){return this.internalCoreModule}async addImport(e,t){if(!this.modules.has(t))return;let n=this.modules.get(t),{token:r}=await this.moduleCompiler.compile(e),i=this.modules.get(r);n.addImport(i)}addProvider(e,t,i){let a=this.modules.get(t);if(!e)throw new r.CircularDependencyException(a?.metatype.name);if(!a)throw new r.UnknownModuleException;let o=a.addProvider(e,i),s=a.getProviderByKey(o);return n.DiscoverableMetaHostCollection.inspectProvider(this.modules,s),o}addInjectable(e,t,n,i){if(!this.modules.has(t))throw new r.UnknownModuleException;return this.modules.get(t).addInjectable(e,n,i)}addExportedProviderOrModule(e,t){if(!this.modules.has(t))throw new r.UnknownModuleException;this.modules.get(t).addExportedProviderOrModule(e)}addController(e,t){if(!this.modules.has(t))throw new r.UnknownModuleException;let i=this.modules.get(t);i.addController(e);let a=i.controllers.get(e);n.DiscoverableMetaHostCollection.inspectController(this.modules,a)}clear(){this.modules.clear()}replace(e,t){this.modules.forEach(n=>n.replace(e,t))}bindGlobalScope(){this.modules.forEach(e=>this.bindGlobalsToImports(e))}bindGlobalsToImports(e){this.globalModules.forEach(t=>this.bindGlobalModuleToModule(e,t))}bindGlobalModuleToModule(e,t){e===t||e===this.internalCoreModule||e.addImport(t)}getDynamicMetadataByToken(e,t){let n=this.dynamicModulesMetadata.get(e);return t?n?.[t]??[]:n}registerCoreModuleRef(e){this.internalCoreModule=e,this.modules[c.InternalCoreModule.name]=e}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(e,t){this.internalCoreModule.getProviderByKey(o.REQUEST).setInstanceByContextId(t,{instance:e,isResolved:!0})}shouldInitOnPreview(e){return i.InitializeOnPreviewAllowlist.has(e)}}})),$S=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(QS(),e),t.__exportStar(AS(),e),t.__exportStar(zS(),e),t.__exportStar(RS(),e),t.__exportStar(Ax(),e)})),eC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PartialGraphHost=void 0,e.PartialGraphHost=class{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(e){this.partialGraph=e}}})),tC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphInspector=void 0;var t=OS(),n=jS(),r=eC();e.GraphInspector=class{constructor(e){this.container=e,this.enhancersMetadataCache=[],this.graph=e.serializedGraph}inspectModules(e=this.container.getModules()){for(let t of e.values())this.insertModuleNode(t),this.insertClassNodes(t),this.insertModuleToModuleEdges(t);this.enhancersMetadataCache.forEach(e=>this.insertEnhancerEdge(e)),n.DeterministicUuidRegistry.clear()}registerPartial(e){this.graph.status=`partial`,e instanceof t.UnknownDependenciesException?this.graph.metadata={cause:{type:`unknown-dependencies`,context:e.context,moduleId:e.moduleRef?.id,nodeId:e.metadata?.id}}:this.graph.metadata={cause:{type:`unknown`,error:e}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(e,t){e.getCtorMetadata()?.forEach((n,r)=>this.insertClassToClassEdge(e,n,t,r,`constructor`)),e.getPropertiesMetadata()?.forEach(({key:n,wrapper:r})=>this.insertClassToClassEdge(e,r,t,n,`property`))}insertEnhancerMetadataCache(e){this.enhancersMetadataCache.push(e)}insertOrphanedEnhancer(e){this.graph.insertOrphanedEnhancer({...e,ref:e.ref?.constructor?.name??`Object`})}insertAttachedEnhancer(e){let t=this.graph.getNodeById(e.id);t.metadata.global=!0,this.graph.insertAttachedEnhancer(t.id)}insertEntrypointDefinition(e,t){e={...e,id:`${e.classNodeId}_${e.methodName}`},this.graph.insertEntrypoint(e,t)}insertClassNode(e,t,n){this.graph.insertNode({id:t.id,label:t.name,parent:e.id,metadata:{type:n,internal:t.metatype===e.metatype,sourceModuleName:e.name,durable:t.isDependencyTreeDurable(),static:t.isDependencyTreeStatic(),scope:t.scope,transient:t.isTransient,exported:e.exports.has(t.token),token:t.token,subtype:t.subtype,initTime:t.initTime}})}insertModuleNode(e){let t=this.container.getDynamicMetadataByToken(e.token),n={id:e.id,label:e.name,metadata:{type:`module`,global:e.isGlobal,dynamic:!!t,internal:e.name===`InternalCoreModule`}};this.graph.insertNode(n)}insertModuleToModuleEdges(e){for(let t of e.imports)this.graph.insertEdge({source:e.id,target:t.id,metadata:{type:`module-to-module`,sourceModuleName:e.name,targetModuleName:t.name}})}insertEnhancerEdge(e){let t=this.container.getModuleByKey(e.moduleToken),n=t.controllers.get(e.classRef)??t.providers.get(e.classRef),r=this.graph.getNodeById(n.id),i=r.metadata.enhancers??[];if(e.enhancerInstanceWrapper)this.insertClassToClassEdge(n,e.enhancerInstanceWrapper,t,void 0,`decorator`),i.push({id:e.enhancerInstanceWrapper.id,methodKey:e.methodKey,subtype:e.subtype});else{let t=e.enhancerRef.constructor?.name??e.enhancerRef.name;i.push({name:t,methodKey:e.methodKey,subtype:e.subtype})}r.metadata.enhancers=i}insertClassToClassEdge(e,t,n,r,i){this.graph.insertEdge({source:e.id,target:t.id,metadata:{type:`class-to-class`,sourceModuleName:n.name,sourceClassName:e.name,targetClassName:t.name,sourceClassToken:e.token,targetClassToken:t.token,targetModuleName:t.host?.name,keyOrIndex:r,injectionType:i}})}insertClassNodes(e){e.providers.forEach(t=>this.insertClassNode(e,t,`provider`)),e.injectables.forEach(t=>this.insertClassNode(e,t,`injectable`)),e.controllers.forEach(t=>this.insertClassNode(e,t,`controller`))}}})),nC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(tC(),e),t.__exportStar(xS(),e),t.__exportStar(eC(),e),t.__exportStar(VS(),e)})),rC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=u,e.compile=d,e.match=m,e.pathToRegexp=h,e.stringify=b;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function o(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var c=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=c;var l=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=l;function u(e,t={}){let{encodePath:a=n}=t,o=[...e],s=0;function u(t){let n=[],c=``;function d(){c&&=(n.push({type:`text`,value:a(c)}),``)}for(;s<o.length;){let a=o[s++];if(a===t)return d(),n;if(a===`\\`){if(s===o.length)throw new l(`Unexpected end after \\ at index ${s}`,e);c+=o[s++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,c=``;if(r.test(o[s]))do c+=o[s++];while(i.test(o[s]));else if(o[s]===`"`){let t=s;for(;s<o.length;){if(o[++s]===`"`){s++,t=0;break}o[s]===`\\`&&s++,c+=o[s]}if(t)throw new l(`Unterminated quote at index ${t}`,e)}if(!c)throw new l(`Missing parameter name at index ${s}`,e);d(),n.push({type:t,name:c});continue}if(a===`{`){d(),n.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new l(`Unexpected ${a} at index ${s-1}`,e);c+=a}if(t)throw new l(`Unexpected end at index ${s}, expected ${t}`,e);return d(),n}return new c(u(``),e)}function d(e,n={}){let{encode:r=encodeURIComponent,delimiter:i=t}=n,a=f((typeof e==`object`?e:u(e,n)).tokens,i,r);return function(e={}){let t=[],n=a(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function f(e,t,n){let r=e.map(e=>p(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function p(e,t,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let n=f(e.tokens,t,r);return(e,t)=>{let r=t.length,i=n(e,t);return t.length===r?i:(t.length=r,``)}}let i=r||n;return e.type===`wildcard`&&r!==!1?(n,r)=>{let a=n[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let n=0;n<a.length;n++){if(typeof a[n]!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);n>0&&(o+=t),o+=i(a[n])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function m(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=h(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function h(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:o=!0}=n,c=[],d=``,f=0;function p(e){if(Array.isArray(e)){for(let t of e)p(t);return}let t=typeof e==`object`?e:u(e,n);g(t.tokens,0,[],e=>{if(f>=256)throw new l(`Too many path combinations`,t.originalPath);f>0&&(d+=`|`),d+=_(e,r,c,t.originalPath),f++})}p(e);let m=`^(?:${d})`;return o&&(m+=`(?:`+s(r)+`$)?`),m+=i?`$`:`(?=`+s(r)+`|$)`,{regexp:new RegExp(m,a?``:`i`),keys:c}}function g(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;g(i.tokens,0,n,n=>g(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function _(e,t,n,r){let i=``,a=``,o=``,c=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=s(m.value),a+=m.value,c===2&&(o+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(c&&!a)throw new l(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${v(t,a)}+)`:f(d,`wildcard`)?`(${v(t,p(d))}+)`:u&1?`(${v(t,a)}+|${s(a)})`:`(${v(t,``)}+)`,u|=c=1):(i+=u&2?`(${v(a,``)}+)`:o?`(${v(o,``)}+|${v(t,``)}+)`:`([^]+)`,o=``,u|=c=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function v(e,t){return t.length>e.length?v(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${s(e)}|${s(t)})[^])`:e.length>1?`(?:(?!${s(e)})[^${s(t)}])`:`[^${s(e+t)}]`)}function y(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=o(r.value);continue}if(r.type===`group`){n+=`{`+y(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+x(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+x(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function b(e){return y(e.tokens,0)}function x(e,t){return!a.test(e)||t?.type===`text`&&i.test(t.value[0])?JSON.stringify(e):e}})),iC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyRouteConverter=void 0;var t=H(),n=(e,t)=>`Unsupported route path: "${t}". 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.`,r=class{static tryConvert(e,t){let n=e.startsWith(`/`)?e:`/${e}`,r=e.endsWith(`/`)?n:`${n}/`,i=t?.logs??!0?this.printWarning.bind(this):()=>{};return r.endsWith(`/(.*)/`)?(r!==`/(.*)/`&&i(e),e.replace(`(.*)`,`{*path}`)):r.endsWith(`/*/`)?(r!==`/*/`&&i(e),e.replace(`*`,`{*path}`)):r.endsWith(`/+/`)?(i(e),e.replace(`/+`,`/*path`)):r.includes(`/*/`)?(i(e),e.replaceAll(`/*/`,(e,t)=>`/*path${t}/`)):e}static printError(e){this.logger.error(n`${e}`)}static printWarning(e){this.logger.warn(n`${e}`+` Attempting to auto-convert...`)}};e.LegacyRouteConverter=r,r.logger=new t.Logger(r.name)})),aC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=r;var t=H(),n=A();e.isRequestMethodAll=e=>t.RequestMethod.ALL===e||e===-1;function r(t,r,i){return t.some(t=>(0,e.isRequestMethodAll)(t.requestMethod)||t.requestMethod===i?t.pathRegex.exec((0,n.addLeadingSlash)(r)):!1)}})),oC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flattenRoutePaths=n;var t=A();function n(e){let r=[];return e.forEach(e=>{if(e.module&&e.path&&r.push({module:e.module,path:e.path}),e.children){let i=e.children;i.forEach(n=>{!(0,t.isString)(n)&&(0,t.isString)(n.path)?n.path=(0,t.normalizePath)((0,t.normalizePath)(e.path)+(0,t.normalizePath)(n.path)):r.push({path:e.path,module:n})}),r.push(...n(i))}}),r}})),sC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(aC(),e),t.__exportStar(oC(),e)})),cC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapToClass=e.filterMiddleware=e.mapToExcludeRoute=void 0,e.isMiddlewareClass=c,e.assignToken=l,e.isMiddlewareRouteExcluded=u;var t=H(),n=A(),r=I(),i=rC(),a=M(),o=iC(),s=sC();e.mapToExcludeRoute=e=>e.map(e=>{let r=(0,n.isString)(e)?e:e.path,a=o.LegacyRouteConverter.tryConvert(r);try{return(0,n.isString)(e)?{path:a,requestMethod:t.RequestMethod.ALL,pathRegex:(0,i.pathToRegexp)((0,n.addLeadingSlash)(a)).regexp}:{path:a,requestMethod:e.method,pathRegex:(0,i.pathToRegexp)((0,n.addLeadingSlash)(a)).regexp}}catch(e){throw e instanceof TypeError&&o.LegacyRouteConverter.printError(r),e}}),e.filterMiddleware=(t,i,a)=>{let o=(0,e.mapToExcludeRoute)(i);return(0,r.iterate)([]).concat(t).filter(n.isFunction).map(t=>(0,e.mapToClass)(t,o,a)).toArray()},e.mapToClass=(e,t,n)=>c(e)?t.length<=0?e:l(class extends e{use(...e){let[r,i,a]=e;return u(r,t,n)?a():super.use(...e)}},e.name):l(class{constructor(){this.use=(...r)=>{let[i,a,o]=r;return u(i,t,n)?o():e(...r)}}});function c(e){let t=e.toString();if(t.substring(0,5)===`class`)return!0;let r=t.split(` `);return r[0]===`function`&&/[A-Z]/.test(r[1]?.[0])&&(0,n.isFunction)(e.prototype?.use)}function l(e,t=(0,a.uid)(21)){return Object.defineProperty(e,`name`,{value:t}),e}function u(e,n,r){if(n.length<=0)return!1;let i=r.getRequestMethod(e),a=r.getRequestUrl(e),o=a?a.indexOf(`?`):-1,c=o>=0?a.slice(0,o):a;return(0,s.isRouteExcluded)(n,c,t.RequestMethod[i])}})),lC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareBuilder=void 0;var t=A(),n=I(),r=cC(),i=class e{constructor(e,t,n){this.routesMapper=e,this.httpAdapter=t,this.routeInfoPathExtractor=n,this.middlewareCollection=new Set}apply(...t){return new e.ConfigProxy(this,t.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}};e.MiddlewareBuilder=i,i.ConfigProxy=class{constructor(e,t,n){this.builder=e,this.middleware=t,this.routeInfoPathExtractor=n,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...e){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(e).reduce((e,t)=>{for(let n of this.routeInfoPathExtractor.extractPathFrom(t))e.push({...t,path:n});return e},[])],this}forRoutes(...e){let{middlewareCollection:t}=this.builder,n=this.getRoutesFlatList(e),i=this.removeOverlappedRoutes(n),a={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:i};return t.add(a),this.builder}getRoutesFlatList(e){let{routesMapper:t}=this.builder;return(0,n.iterate)(e).map(e=>t.mapRouteToRouteInfo(e)).flatten().toArray()}removeOverlappedRoutes(e){let n=/(:[^/]*)/g,r=e.filter(e=>e.path.includes(`:`)).map(e=>({method:e.method,path:e.path,regex:RegExp(`^(`+e.path.replace(n,`([^/]*)`)+`)$`,`g`)}));return e.filter(e=>r.find(n=>{if(e.method!==n.method)return!1;let r=(0,t.stripEndSlash)(e.path);return r!==n.path&&n.regex.test(r)})===void 0)}}})),uC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(lC(),e)})),dC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.optionalRequire=t;function t(e,t){try{return t?t():require(e)}catch{return{}}}})),fC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareContainer=void 0;var t=wS(),n=TS(),r=PS();e.MiddlewareContainer=class{constructor(e){this.container=e,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(e){if(!this.middleware.has(e)){let t=this.container.getModuleByKey(e);this.middleware.set(e,t.middlewares)}return this.middleware.get(e)}getConfigurations(){return this.configurationSets}insertConfig(e,i){let a=this.getMiddlewareCollection(i),o=this.getTargetConfig(i),s=e||[],c=e=>{let i=e;a.set(i,new r.InstanceWrapper({scope:(0,t.getClassScope)(e),durable:(0,n.isDurable)(e),name:i?.name??i,metatype:e,token:i}))};s.forEach(e=>{[].concat(e.middleware).map(c),o.add(e)})}getTargetConfig(e){return this.configurationSets.has(e)||this.configurationSets.set(e,new Set),this.configurationSets.get(e)}}})),pC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidMiddlewareException=void 0;var t=Gx(),n=Wx();e.InvalidMiddlewareException=class extends n.RuntimeException{constructor(e){super((0,t.INVALID_MIDDLEWARE_MESSAGE)`${e}`)}}})),mC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionsHandler=void 0;var t=Ux(),n=A(),r=Kx(),i=Ix();e.ExceptionsHandler=class extends i.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(e,t){this.invokeCustomFilters(e,t)||super.catch(e,t)}setCustomFilters(e){if(!Array.isArray(e))throw new r.InvalidExceptionFilterException;this.filters=e}invokeCustomFilters(e,r){if((0,n.isEmpty)(this.filters))return!1;let i=(0,t.selectExceptionFilterMetadata)(this.filters,e);return i&&i.func(e,r),!!i}}})),hC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExceptionFilters=void 0;var t=O(),n=A(),r=I(),i=Hx(),a=mC(),o=Bx();e.RouterExceptionFilters=class extends i.BaseExceptionFilterContext{constructor(e,t,n){super(e),this.config=t,this.applicationRef=n}create(e,r,i,s=o.STATIC_CONTEXT,c){this.moduleContext=i;let l=new a.ExceptionsHandler(this.applicationRef),u=this.createContext(e,r,t.EXCEPTION_FILTERS_METADATA,s,c);return(0,n.isEmpty)(u)||l.setCustomFilters(u.reverse()),l}getGlobalMetadata(e=o.STATIC_CONTEXT,t){let n=this.config.getGlobalFilters();if(e===o.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestFilters(),a=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(e,t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(a)}}})),gC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterProxy=void 0;var t=Zx();e.RouterProxy=class{createProxy(e,n){return async(r,i,a)=>{try{await e(r,i,a)}catch(e){let o=new t.ExecutionContextHost([r,i,a]);return n.next(e,o),i}}}createExceptionLayerProxy(e,n){return async(r,i,a,o)=>{try{await e(r,i,a,o)}catch(e){let r=new t.ExecutionContextHost([i,a,o]);return n.next(e,r),a}}}}})),_C=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareResolver=void 0,e.MiddlewareResolver=class{constructor(e,t){this.middlewareContainer=e,this.injector=t}async resolveInstances(e,t){let n=this.middlewareContainer.getMiddlewareCollection(t),r=async t=>this.resolveMiddlewareInstance(t,n,e);await Promise.all([...n.values()].map(r))}async resolveMiddlewareInstance(e,t,n){await this.injector.loadMiddleware(e,t,n)}}})),vC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutePathFactory=void 0;var t=H(),n=A(),r=sC();e.RoutePathFactory=class{constructor(e){this.applicationConfig=e}create(e,r){let i=[``],a=this.getVersion(e);if(a&&e.versioningOptions?.type===t.VersioningType.URI){let n=this.getVersionPrefix(e.versioningOptions);Array.isArray(a)?i=(0,t.flatten)(i.map(e=>a.map(r=>r===t.VERSION_NEUTRAL?e:`${e}/${n}${r}`))):a!==t.VERSION_NEUTRAL&&(i=i.map(e=>`${e}/${n}${a}`))}return i=this.appendToAllIfDefined(i,e.modulePath),i=this.appendToAllIfDefined(i,e.ctrlPath),i=this.appendToAllIfDefined(i,e.methodPath),e.globalPrefix&&(i=i.map(t=>this.isExcludedFromGlobalPrefix(t,r,a,e.versioningOptions)?t:(0,n.stripEndSlash)(e.globalPrefix||``)+t)),i.map(e=>(0,n.addLeadingSlash)(e||`/`)).map(e=>e===`/`?e:(0,n.stripEndSlash)(e))}getVersion(e){return e.methodVersion||e.controllerVersion}getVersionPrefix(e){if(e.type===t.VersioningType.URI){if(e.prefix===!1)return``;if(e.prefix!==void 0)return e.prefix}return`v`}appendToAllIfDefined(e,r){if(!r)return e;let i=(e,t)=>(0,n.stripEndSlash)(e)+(0,n.addLeadingSlash)(t);if(Array.isArray(r)){let n=e.map(e=>r.map(t=>i(e,t)));return(0,t.flatten)(n)}return e.map(e=>i(e,r))}isExcludedFromGlobalPrefix(e,i,a,o){if((0,n.isUndefined)(i))return!1;let s=this.applicationConfig.getGlobalPrefixOptions().exclude;return a&&a!==t.VERSION_NEUTRAL&&o?.type===t.VersioningType.URI&&(e=this.truncateVersionPrefixFromPath(e,a,o)),Array.isArray(s)&&(0,r.isRouteExcluded)(s,e,i)}truncateVersionPrefixFromPath(e,t,n){if(typeof t!=`string`)return t.forEach(t=>{typeof t==`string`&&(e=this.truncateVersionPrefixFromPath(e,t,n))}),e;let r=`/${this.getVersionPrefix(n)}${t}`;return e.startsWith(r)?e.replace(r,``):e}}})),yC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteInfoPathExtractor=void 0;var t=H(),n=A(),r=sC(),i=vC();e.RouteInfoPathExtractor=class{constructor(e){this.applicationConfig=e,this.routePathFactory=new i.RoutePathFactory(e),this.prefixPath=(0,n.stripEndSlash)((0,n.addLeadingSlash)(this.applicationConfig.getGlobalPrefix())),this.excludedGlobalPrefixRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude,this.versioningConfig=this.applicationConfig.getVersioning()}extractPathsFrom({path:e,method:t,version:r}){let i=this.extractVersionPathFrom(r);if(this.isAWildcard(e)){let t=i.length>0?i.map(t=>[this.prefixPath+t+`$`,this.prefixPath+t+(0,n.addLeadingSlash)(e)]).flat():this.prefixPath?[this.prefixPath+`$`,this.prefixPath+(0,n.addLeadingSlash)(e)]:[(0,n.addLeadingSlash)(e)];return Array.isArray(this.excludedGlobalPrefixRoutes)?[...t,...this.excludedGlobalPrefixRoutes.map(e=>Array.isArray(i)&&i.length>0?i.map(t=>t+(0,n.addLeadingSlash)(e.path)):(0,n.addLeadingSlash)(e.path)).flat()]:t}return this.extractNonWildcardPathsFrom({path:e,method:t,version:r})}extractPathFrom(e){return this.isAWildcard(e.path)&&!e.version?[(0,n.addLeadingSlash)(e.path)]:this.extractNonWildcardPathsFrom(e)}isAWildcard(e){return[`*`,`/*`,`/*/`,`(.*)`,`/(.*)`].includes(e)?!0:/^\/\{.*\}.*|^\/\*.*$/.test(e)}extractNonWildcardPathsFrom({path:e,method:t,version:i}){let a=this.extractVersionPathFrom(i);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,e,t)?a.length?a.map(t=>t+(0,n.addLeadingSlash)(e)):[(0,n.addLeadingSlash)(e)]:a.length?a.map(t=>this.prefixPath+t+(0,n.addLeadingSlash)(e)):[this.prefixPath+(0,n.addLeadingSlash)(e)]}extractVersionPathFrom(e){if(!e||this.versioningConfig?.type!==t.VersioningType.URI)return[];let r=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(e)?e.map(e=>(0,n.addLeadingSlash)(r+e.toString())):[(0,n.addLeadingSlash)(r+e.toString())]}}})),bC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathsExplorer=void 0;var t=O(),n=A();e.PathsExplorer=class{constructor(e){this.metadataScanner=e}scanForPaths(e,t){let r=(0,n.isUndefined)(t)?Object.getPrototypeOf(e):t;return this.metadataScanner.getAllMethodNames(r).reduce((t,n)=>{let i=this.exploreMethodMetadata(e,r,n);return i&&t.push(i),t},[])}exploreMethodMetadata(e,r,i){let a=e[i],o=r[i],s=Reflect.getMetadata(t.PATH_METADATA,o);if((0,n.isUndefined)(s))return null;let c=Reflect.getMetadata(t.METHOD_METADATA,o),l=Reflect.getMetadata(t.VERSION_METADATA,o);return{path:(0,n.isString)(s)?[(0,n.addLeadingSlash)(s)]:s.map(e=>(0,n.addLeadingSlash)(e)),requestMethod:c,targetCallback:a,methodName:i,version:l}}}})),xC=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;var n=E(),r=H(),i=O(),a=A(),o=Ax(),s=sC();e.ROUTES=Symbol(`ROUTES`),e.targetModulesByContainer=new WeakMap;var c=t=class{constructor(e,t){this.modulesContainer=e,this.routes=t,this.routes=this.deepCloneRoutes(t),this.initialize()}static register(n){return{module:t,providers:[{provide:e.ROUTES,useValue:n}]}}deepCloneRoutes(e){return e.map(e=>typeof e==`function`?e:e.children?{...e,children:this.deepCloneRoutes(e.children)}:{...e})}initialize(){(0,s.flattenRoutePaths)(this.routes).forEach(e=>{let t=(0,a.normalizePath)(e.path);this.registerModulePathMetadata(e.module,t),this.updateTargetModulesCache(e.module)})}registerModulePathMetadata(e,t){Reflect.defineMetadata(i.MODULE_PATH+this.modulesContainer.applicationId,t,e)}updateTargetModulesCache(t){let n;e.targetModulesByContainer.has(this.modulesContainer)?n=e.targetModulesByContainer.get(this.modulesContainer):(n=new WeakSet,e.targetModulesByContainer.set(this.modulesContainer,n));let r=Array.from(this.modulesContainer.values()).find(e=>e?.metatype===t);r&&n.add(r)}};e.RouterModule=c,e.RouterModule=c=t=n.__decorate([(0,r.Module)({}),n.__param(1,(0,r.Inject)(e.ROUTES)),n.__metadata(`design:paramtypes`,[o.ModulesContainer,Array])],c)})),SC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutesMapper=void 0;var t=O(),n=dn(),r=A(),i=kx(),a=bC(),o=xC();e.RoutesMapper=class{constructor(e,t){this.container=e,this.applicationConfig=t,this.pathsExplorer=new a.PathsExplorer(new i.MetadataScanner)}mapRouteToRouteInfo(e){if((0,r.isString)(e))return this.getRouteInfoFromPath(e);let t=this.getRoutePath(e);return this.isRouteInfo(t,e)?this.getRouteInfoFromObject(e):this.getRouteInfoFromController(e,t)}getRouteInfoFromPath(e){return[{path:(0,r.addLeadingSlash)(e),method:-1}]}getRouteInfoFromObject(e){let t={path:(0,r.addLeadingSlash)(e.path),method:e.method};return e.version&&(t.version=e.version),[t]}getRouteInfoFromController(e,t){let i=this.pathsExplorer.scanForPaths(Object.create(e),e.prototype),a=this.getVersionMetadata(e),o=this.applicationConfig.getVersioning(),s=this.getHostModuleOfController(e),c=this.getModulePath(s?.metatype),l=(e,t)=>e.concat(t),u=e=>e===n.VERSION_NEUTRAL?void 0:e,d=(e,t)=>e.path?.flatMap(n=>{let i=c??``;i+=this.normalizeGlobalPath(t)+(0,r.addLeadingSlash)(n);let s={path:i,method:e.requestMethod},l=e.version??a;if(l&&o){if(typeof l!=`string`&&Array.isArray(l))return l.map(e=>({...s,version:u(e)}));s.version=u(l)}return s});return[].concat(t).map(e=>i.map(t=>d(t,e)).reduce(l,[])).reduce(l,[])}isRouteInfo(e,t){return(0,r.isUndefined)(e)}normalizeGlobalPath(e){let t=(0,r.addLeadingSlash)(e);return t===`/`?``:t}getRoutePath(e){return Reflect.getMetadata(t.PATH_METADATA,e)}getHostModuleOfController(e){if(!e)return;let t=this.container.getModules(),n=o.targetModulesByContainer.get(t);if(n)return Array.from(t.values()).filter(e=>n.has(e)).find(({controllers:t})=>t.has(e))}getModulePath(e){if(!e)return;let n=this.container.getModules();return Reflect.getMetadata(t.MODULE_PATH+n.applicationId,e)??Reflect.getMetadata(t.MODULE_PATH,e)}getVersionMetadata(e){let n=this.applicationConfig.getVersioning();if(n)return Reflect.getMetadata(t.VERSION_METADATA,e)??n.defaultVersion}}})),CC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareModule=void 0;var t=H(),n=_e(),r=A(),i=pC(),a=Wx(),o=zx(),s=Zx(),c=Bx(),l=Rx(),u=hC(),d=gC(),f=sC(),p=lC(),m=_C(),h=yC(),g=SC();e.MiddlewareModule=class e{constructor(){this.routerProxy=new d.RouterProxy,this.exceptionFiltersCache=new WeakMap,this.logger=new t.Logger(e.name)}async register(e,t,n,r,i,a,o){this.appOptions=o;let s=t.getHttpAdapterRef();this.routerExceptionFilter=new u.RouterExceptionFilters(t,n,s),this.routesMapper=new g.RoutesMapper(t,n),this.resolver=new m.MiddlewareResolver(e,r),this.routeInfoPathExtractor=new h.RouteInfoPathExtractor(n),this.injector=r,this.container=t,this.httpAdapter=i,this.graphInspector=a;let c=t.getModules();await this.resolveMiddleware(e,c)}async resolveMiddleware(e,t){let n=[...t.entries()];await Promise.all(n.map(async([t,n])=>{await this.loadConfiguration(e,n,t),await this.resolver.resolveInstances(n,t)}))}async loadConfiguration(e,t,n){let{instance:r}=t;if(!r.configure)return;let i=new p.MiddlewareBuilder(this.routesMapper,this.httpAdapter,this.routeInfoPathExtractor);try{await r.configure(i)}catch(e){if(!this.appOptions.preview)throw e;let n=`Warning! "${t.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(n)}if(!(i instanceof p.MiddlewareBuilder))return;let a=i.build();e.insertConfig(a,n)}async registerMiddleware(e,t){let n=e.getConfigurations(),r=async(n,r)=>{for(let i of r)await this.registerMiddlewareConfig(e,i,n,t)},i=[...n.entries()].sort(([e],[t])=>{let n=this.container.getModuleByKey(e),r=this.container.getModuleByKey(t),i=n.distance===Number.MAX_VALUE,a=r.distance===Number.MAX_VALUE;return i&&a?0:i?-1:a?1:n.distance-r.distance});for(let[e,t]of i)await r(e,[...t])}async registerMiddlewareConfig(e,t,n,r){let{forRoutes:i}=t;for(let a of i)await this.registerRouteMiddleware(e,a,t,n,r)}async registerRouteMiddleware(e,t,i,o,s){let c=[].concat(i.middleware),l=this.container.getModuleByKey(o);for(let i of c){let c=e.getMiddlewareCollection(o),u=c.get(i);if((0,r.isUndefined)(u))throw new a.RuntimeException;if(u.isTransient)return;this.graphInspector.insertClassNode(l,u,`middleware`);let d={type:`middleware`,methodName:`use`,className:u.name,classNodeId:u.id,metadata:{key:t.path,path:t.path,requestMethod:n.RequestMethod[t.method]??`ALL`,version:t.version}};this.graphInspector.insertEntrypointDefinition(d,u.id),await this.bindHandler(u,s,t,l,c)}}async bindHandler(e,t,n,a,o){let{instance:c,metatype:l}=e;if((0,r.isUndefined)(c?.use))throw new i.InvalidMiddlewareException(l.name);if(e.isDependencyTreeStatic()){let e=await this.createProxy(c);return this.registerHandler(t,n,e)}let u=e.isDependencyTreeDurable();await this.registerHandler(t,n,async(e,t,n)=>{try{let r=this.getContextId(e,u),i=await this.injector.loadPerContext(c,a,o,r);return(await this.createProxy(i,r))(e,t,n)}catch(r){let i=this.exceptionFiltersCache.get(c.use);i||(i=this.routerExceptionFilter.create(c,c.use,void 0),this.exceptionFiltersCache.set(c.use,i));let a=new s.ExecutionContextHost([e,t,n]);i.next(r,a)}})}async createProxy(e,t=c.STATIC_CONTEXT){let n=this.routerExceptionFilter.create(e,e.use,void 0,t),r=e.use.bind(e);return this.routerProxy.createProxy(r,n)}async registerHandler(e,t,r){let{method:i}=t,a=this.routeInfoPathExtractor.extractPathsFrom(t),o=(0,f.isRequestMethodAll)(i),s=n.RequestMethod[i],c=await e.createMiddlewareFactory(i),l=o?r:(t,i,a)=>{let o=e.getRequestMethod?.(t);return o===s||o===n.RequestMethod[n.RequestMethod.HEAD]&&s===n.RequestMethod[n.RequestMethod.GET]?r(t,i,a):a()},u=[];a.some(e=>e.match(/^\/?$/))?u.push(`/`):u.push(...a),u.forEach(e=>c(e,l))}getContextId(e,t){let n=o.ContextIdFactory.getByRequest(e);if(!e[l.REQUEST_CONTEXT_ID]){Object.defineProperty(e,l.REQUEST_CONTEXT_ID,{value:n,enumerable:!1,writable:!1,configurable:!1});let r=t?n.payload:Object.assign(e,n.payload);this.container.registerRequestProvider(r,n)}return n}}})),wC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTransientInstances=n,e.getNonTransientInstances=r;var t=I();function n(e){return(0,t.iterate)(e).filter(([e,t])=>t.isDependencyTreeStatic()).map(([e,t])=>t.getStaticTransientInstances()).flatten().filter(e=>!!e).map(({instance:e})=>e).toArray()}function r(e){return(0,t.iterate)(e).filter(([e,t])=>t.isDependencyTreeStatic()&&!t.isTransient).map(([e,{instance:t}])=>t).toArray()}})),TC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleBootstrapHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onApplicationBootstrap)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onApplicationBootstrap()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onApplicationBootstrap()}})),EC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callAppShutdownHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onApplicationShutdown)}function a(e,r){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onApplicationShutdown(r)).toArray()}async function o(e,t){let n=e.getNonAliasProviders(),[o,s]=n.shift(),c=[...e.controllers,...n,...e.injectables,...e.middlewares],l=(0,r.getNonTransientInstances)(c);await Promise.all(a(l,t));let u=(0,r.getTransientInstances)(c);await Promise.all(a(u,t));let d=s.instance;d&&i(d)&&s.isDependencyTreeStatic()&&await d.onApplicationShutdown(t)}})),DC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleDestroyHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onModuleDestroy)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onModuleDestroy()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onModuleDestroy()}})),OC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleInitHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onModuleInit)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onModuleInit()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onModuleInit()}})),kC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callBeforeAppShutdownHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.beforeApplicationShutdown)}function a(e,r){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.beforeApplicationShutdown(r)).toArray()}async function o(e,t){let n=e.getNonAliasProviders(),[o,s]=n.shift(),c=[...e.controllers,...n,...e.injectables,...e.middlewares],l=(0,r.getNonTransientInstances)(c);await Promise.all(a(l,t));let u=(0,r.getTransientInstances)(c);await Promise.all(a(u,t));let d=s.instance;d&&i(d)&&s.isDependencyTreeStatic()&&await d.beforeApplicationShutdown(t)}})),AC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(TC(),e),t.__exportStar(EC(),e),t.__exportStar(DC(),e),t.__exportStar(OC(),e),t.__exportStar(kC(),e)})),jC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestApplicationContext=void 0;var t=H(),n=A(),r=I(),i=Ox(),a=bS(),o=zx(),s=AC(),c=ES(),l=IS(),u=LS();e.NestApplicationContext=class e extends c.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||=new u.InstanceLinksHost(this.container),this._instanceLinksHost}constructor(n,r={},i=null,a=[]){super(),this.container=n,this.appOptions=r,this.contextModule=i,this.scope=a,this.isInitialized=!1,this.logger=new t.Logger(e.name,{timestamp:!0}),this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=[],this.injector=new l.Injector,this.moduleCompiler=n.getModuleCompiler(),this.appOptions.preview&&this.printInPreviewModeWarning()}selectContextModule(){this.contextModule=this.container.getModules().values().next().value}select(t,n){let r=this.container.getModules(),i=this.contextModule.metatype,o=this.scope.concat(i),s=this.container.getModuleTokenFactory(),{type:c,dynamicMetadata:l}=this.moduleCompiler.extractMetadata(t),u=l?s.createForDynamic(c,l,t):s.createForStatic(c,t),d=r.get(u);if(!d)throw new a.UnknownModuleException(c.name);let f=n?.abortOnError===void 0?this.appOptions:{...this.appOptions,...n};return new e(this.container,f,d,o)}get(e,t={strict:!1}){return t&&t.strict?this.find(e,{moduleId:this.contextModule?.id,each:t.each}):this.find(e,t)}resolve(e,t=(0,o.createContextId)(),n={strict:!1}){return this.resolvePerContext(e,this.contextModule,t,n)}registerRequestByContextId(e,t){this.container.registerRequestProvider(e,t)}async init(){return this.isInitialized?this:(this.initializationPromise=new Promise(async(e,t)=>{try{await this.callInitHook(),await this.callBootstrapHook(),e()}catch(e){t(e)}}),await this.initializationPromise,this.isInitialized=!0,this)}async close(e){await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(e),await this.dispose(),await this.callShutdownHook(e),this.unsubscribeFromProcessSignals()}useLogger(e){t.Logger.overrideLogger(e),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){t.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(e=[],i={}){return e=(0,n.isEmpty)(e)?Object.keys(t.ShutdownSignal).map(e=>t.ShutdownSignal[e]):Array.from(new Set(e)),e=(0,r.iterate)(e).map(e=>e.toString().toUpperCase().trim()).filter(e=>!this.activeShutdownSignals.includes(e)).toArray(),this.listenToShutdownSignals(e,i),this}async dispose(){return Promise.resolve()}listenToShutdownSignals(n,r={}){let a=!1,o=async s=>{try{if(a)return;a=!0,await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(s),await this.dispose(),await this.callShutdownHook(s),n.forEach(e=>process.removeListener(e,o)),r.useProcessExit?process.exit(0):process.kill(process.pid,s)}catch(n){t.Logger.error(i.MESSAGES.ERROR_DURING_SHUTDOWN,n?.stack,e.name),process.exit(1)}};this.shutdownCleanupRef=o,n.forEach(e=>{this.activeShutdownSignals.push(e),process.on(e,o)})}unsubscribeFromProcessSignals(){this.shutdownCleanupRef&&this.activeShutdownSignals.forEach(e=>{process.removeListener(e,this.shutdownCleanupRef)})}async callInitHook(){let e=this.getModulesToTriggerHooksOn();for(let t of e)await(0,s.callModuleInitHook)(t)}async callDestroyHook(){let e=[...this.getModulesToTriggerHooksOn()].reverse();for(let t of e)await(0,s.callModuleDestroyHook)(t)}async callBootstrapHook(){let e=this.getModulesToTriggerHooksOn();for(let t of e)await(0,s.callModuleBootstrapHook)(t)}async callShutdownHook(e){let t=[...this.getModulesToTriggerHooksOn()].reverse();for(let n of t)await(0,s.callAppShutdownHook)(n,e)}async callBeforeShutdownHook(e){let t=[...this.getModulesToTriggerHooksOn()].reverse();for(let n of t)await(0,s.callBeforeAppShutdownHook)(n,e)}assertNotInPreviewMode(e){if(this.appOptions.preview){let t=`Calling the "${e}" in the preview mode is not supported.`;throw this.logger.error(t),Error(t)}}getModulesToTriggerHooksOn(){if(this._moduleRefsForHooksByDistance)return this._moduleRefsForHooksByDistance;let e=this.container.getModules(),t=Array.from(e.values()).sort((e,t)=>t.distance-e.distance);return this._moduleRefsForHooksByDistance=this.appOptions?.preview?t.filter(e=>e.initOnPreview):t,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(`------------------------------------------------`)}}})),MC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INVALID_EXECUTION_CONTEXT=e.VERSIONED_CONTROLLER_MAPPING_MESSAGE=e.CONTROLLER_MAPPING_MESSAGE=e.VERSIONED_ROUTE_MAPPED_MESSAGE=e.ROUTE_MAPPED_MESSAGE=e.MODULE_INIT_MESSAGE=void 0;var t=_e(),n=ln();e.MODULE_INIT_MESSAGE=(e,t)=>`${t} dependencies initialized`,e.ROUTE_MAPPED_MESSAGE=(e,n)=>`Mapped {${e}, ${t.RequestMethod[n]}} route`,e.VERSIONED_ROUTE_MAPPED_MESSAGE=(e,r,i)=>{let a=(Array.isArray(i)?i:[i]).map(e=>e===n.VERSION_NEUTRAL?`Neutral`:e).join(`,`);return`Mapped {${e}, ${t.RequestMethod[r]}} (version: ${a}) route`},e.CONTROLLER_MAPPING_MESSAGE=(e,t)=>`${e} {${t}}:`,e.VERSIONED_CONTROLLER_MAPPING_MESSAGE=(e,t,r)=>`${e} {${t}} (version: ${(Array.isArray(r)?r:[r]).map(e=>e===n.VERSION_NEUTRAL?`Neutral`:e).join(`,`)}):`,e.INVALID_EXECUTION_CONTEXT=(e,t)=>`Calling ${e} is not allowed in this context. Your current execution context is "${t}".`})),NC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownRequestMappingException=void 0;var t=Wx(),n=Gx();e.UnknownRequestMappingException=class extends t.RuntimeException{constructor(e){super((0,n.UNKNOWN_REQUEST_MAPPING)(e))}}})),PC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;var t=_e();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`},e.RouterMethodFactory=class{get(t,n){return t[e.REQUEST_METHOD_MAP[n]]||t.use}}})),FC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteParamsFactory=void 0;var t=ye();e.RouteParamsFactory=class{exchangeKeyForValue(e,n,{req:r,res:i,next:a}){switch(e){case t.RouteParamtypes.NEXT:return a;case t.RouteParamtypes.REQUEST:return r;case t.RouteParamtypes.RESPONSE:return i;case t.RouteParamtypes.BODY:return n&&r.body?r.body[n]:r.body;case t.RouteParamtypes.RAW_BODY:return r.rawBody;case t.RouteParamtypes.PARAM:return n?r.params[n]:r.params;case t.RouteParamtypes.HOST:let e=r.hosts||{};return n?e[n]:e;case t.RouteParamtypes.QUERY:return n?r.query[n]:r.query;case t.RouteParamtypes.HEADERS:return n?r.headers[n.toLowerCase()]:r.headers;case t.RouteParamtypes.SESSION:return r.session;case t.RouteParamtypes.FILE:return r[n||`file`];case t.RouteParamtypes.FILES:return r.files;case t.RouteParamtypes.IP:return r.ip;default:return null}}}})),IC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SseStream=void 0;var t=A(),n=require(`stream`);function r(e){return(0,t.isObject)(e)?r(JSON.stringify(e)):e.split(/\r\n|\r|\n/).map(e=>`data: ${e}\n`).join(``)}e.SseStream=class extends n.Transform{constructor(e){super({objectMode:!0}),this.lastEventId=null,e&&e.socket&&(e.socket.setKeepAlive(!0),e.socket.setNoDelay(!0),e.socket.setTimeout(0))}pipe(e,t){if(e.writeHead){let n=t?.statusCode??200;e.writeHead(n,{...t?.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`}),e.flushHeaders?.()}return e.write(`
|
|
135
|
+
`),super.pipe(e,t)}_transform(e,t,n){let i=e=>String(e).replace(/[\r\n]/g,``),a=e.type?`event: ${i(e.type)}\n`:``;a+=e.id?`id: ${i(e.id)}\n`:``,a+=e.retry?`retry: ${i(e.retry)}\n`:``,a+=e.data?r(e.data):``,a+=`
|
|
136
|
+
`,this.push(a),n()}writeMessage(e,t){e.id||=(this.lastEventId++,this.lastEventId.toString()),this.write(e,`utf-8`)?process.nextTick(t):this.once(`drain`,t)}}})),LC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterResponseController=void 0;var t=H(),n=A(),r=Wc(),i=So(),a=IC();e.RouterResponseController=class e{constructor(n){this.applicationRef=n,this.logger=new t.Logger(e.name)}async apply(e,t,n){return this.applicationRef.reply(t,e,n)}async redirect(e,n,r){let i=await this.transformToResult(e),a=i&&i.statusCode?i.statusCode:r.statusCode?r.statusCode:t.HttpStatus.FOUND,o=i&&i.url?i.url:r.url;this.applicationRef.redirect(n,a,o)}async render(e,t,n){let r=await this.transformToResult(e);return this.applicationRef.render(t,n,r)}async transformToResult(e){return(0,r.isObservable)(e)?(0,r.lastValueFrom)(e):e}getStatusByMethod(e){switch(e){case t.RequestMethod.POST:return t.HttpStatus.CREATED;default:return t.HttpStatus.OK}}setHeaders(e,t){t.forEach(({name:t,value:n})=>this.applicationRef.setHeader(e,t,typeof n==`function`?n():n))}setStatus(e,t){this.applicationRef.status(e,t)}async sse(e,t,o,s){if(t.writableEnded)return;let c=await Promise.resolve(e);this.assertObservable(c);let l=new a.SseStream(o),u=t.statusCode,d=u===void 0?s:{...s,statusCode:u};l.pipe(t,d);let f=c.pipe((0,i.map)(e=>(0,n.isObject)(e)?e:{data:e}),(0,i.concatMap)(e=>new Promise(t=>l.writeMessage(e,()=>t()))),(0,i.catchError)(e=>{let t=e instanceof Error?e.message:e;return l.writeMessage({type:`error`,data:t},e=>{e&&this.logger.error(e)}),r.EMPTY})).subscribe({complete:()=>{t.end()}});o.on(`close`,()=>{f.unsubscribe(),l.writableEnded||l.end()})}assertObservable(e){if(!(0,r.isObservable)(e))throw ReferenceError(`You must return an Observable stream to use Server-Sent Events (SSE).`)}}})),RC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExecutionContext=void 0;var t=H(),n=O(),r=ye(),i=A(),a=eS(),o=cS(),s=uS(),c=Bx(),l=LC();e.RouterExecutionContext=class{constructor(e,t,n,r,i,a,c,u){this.paramsFactory=e,this.pipesContextCreator=t,this.pipesConsumer=n,this.guardsContextCreator=r,this.guardsConsumer=i,this.interceptorsContextCreator=a,this.interceptorsConsumer=c,this.applicationRef=u,this.handlerMetadataStorage=new s.HandlerMetadataStorage,this.contextUtils=new o.ContextUtils,this.responseController=new l.RouterResponseController(u)}create(e,t,n,r,i,a=c.STATIC_CONTEXT,o){let s=`http`,{argsLength:l,fnHandleResponse:u,paramtypes:d,getParamsMetadata:f,httpStatusCode:p,responseHeaders:m,hasCustomHeaders:h}=this.getMetadata(e,t,n,r,i,s),g=this.contextUtils.mergeParamsMetatypes(f(r,a,o),d),_=this.pipesContextCreator.create(e,t,r,a,o),v=this.guardsContextCreator.create(e,t,r,a,o),y=this.interceptorsContextCreator.create(e,t,r,a,o),b=this.createGuardsFn(v,e,t,s),x=this.createPipesFn(_,g),S=(n,r,i,a)=>async()=>(x&&await x(n,r,i,a),t.apply(e,n));return async(n,r,i)=>{let a=this.contextUtils.createNullArray(l);b&&await b([n,r,i]),this.responseController.setStatus(r,p),h&&this.responseController.setHeaders(r,m),await u(await this.interceptorsConsumer.intercept(y,[n,r,i],e,t,S(a,n,r,i),s),r,n)}}getMetadata(e,t,r,a,o,s){let l=this.handlerMetadataStorage.get(e,r);if(l)return l;let u=this.contextUtils.reflectCallbackMetadata(e,r,n.ROUTE_ARGS_METADATA)||{},d=Object.keys(u),f=this.contextUtils.getArgumentsLength(d,u),p=this.contextUtils.reflectCallbackParamtypes(e,r),m=this.contextUtils.getContextFactory(s,e,t),h=(e,t=c.STATIC_CONTEXT,n)=>this.exchangeKeysForValues(d,u,e,t,n,m),g=h(a),_=this.isResponseHandled(e,r,g),v=this.reflectRedirect(t),y=this.createHandleResponseFn(t,_,v),b=this.reflectHttpStatusCode(t)||this.responseController.getStatusByMethod(o),x=this.reflectResponseHeaders(t),S={argsLength:f,fnHandleResponse:y,paramtypes:p,getParamsMetadata:h,httpStatusCode:b,hasCustomHeaders:!(0,i.isEmpty)(x),responseHeaders:x};return this.handlerMetadataStorage.set(e,r,S),S}reflectRedirect(e){return Reflect.getMetadata(n.REDIRECT_METADATA,e)}reflectHttpStatusCode(e){return Reflect.getMetadata(n.HTTP_CODE_METADATA,e)}reflectRenderTemplate(e){return Reflect.getMetadata(n.RENDER_METADATA,e)}reflectResponseHeaders(e){return Reflect.getMetadata(n.HEADERS_METADATA,e)||[]}reflectSse(e){return Reflect.getMetadata(n.SSE_METADATA,e)}exchangeKeysForValues(e,t,r,i=c.STATIC_CONTEXT,a,o){return this.pipesContextCreator.setModuleContext(r),e.map(e=>{let{index:r,data:s,pipes:c}=t[e],l=this.pipesContextCreator.createConcreteContext(c,i,a),u=this.contextUtils.mapParamType(e);if(e.includes(n.CUSTOM_ROUTE_ARGS_METADATA)){let{factory:n}=t[e];return{index:r,extractValue:this.contextUtils.getCustomFactory(n,s,o),type:u,data:s,pipes:l}}let d=Number(u);return{index:r,extractValue:(e,t,n)=>this.paramsFactory.exchangeKeyForValue(d,s,{req:e,res:t,next:n}),type:d,data:s,pipes:l}})}async getParamValue(e,{metatype:t,type:n,data:r},a){return(0,i.isEmpty)(a)?e:this.pipesConsumer.apply(e,{metatype:t,type:n,data:r},a)}isPipeable(e){return e===r.RouteParamtypes.BODY||e===r.RouteParamtypes.RAW_BODY||e===r.RouteParamtypes.QUERY||e===r.RouteParamtypes.PARAM||e===r.RouteParamtypes.FILE||e===r.RouteParamtypes.FILES||(0,i.isString)(e)}createGuardsFn(e,n,r,i){return e.length?async o=>{if(!await this.guardsConsumer.tryActivate(e,o,n,r,i))throw new t.ForbiddenException(a.FORBIDDEN_MESSAGE)}:null}createPipesFn(e,t){return t.length?async(n,r,i,a)=>{await Promise.all(t.map(async t=>{let{index:o,extractValue:s,type:c,data:l,metatype:u,pipes:d}=t,f=s(r,i,a);n[o]=this.isPipeable(c)?await this.getParamValue(f,{metatype:u,type:c,data:l},e.concat(d)):f}))}:null}createHandleResponseFn(e,t,n,r){let a=this.reflectRenderTemplate(e);return a?async(e,t)=>await this.responseController.render(e,t,a):n&&(0,i.isString)(n.url)?async(e,t)=>{await this.responseController.redirect(e,t,n)}:this.reflectSse(e)?async(e,t,n)=>{await this.responseController.sse(e,t.raw||t,n.raw||n,{additionalHeaders:t.getHeaders?.()})}:async(e,n)=>(e=await this.responseController.transformToResult(e),!t&&await this.responseController.apply(e,n,r),n)}isResponseHandled(e,t,n){let i=n.some(({type:e})=>e===r.RouteParamtypes.RESPONSE||e===r.RouteParamtypes.NEXT),a=this.contextUtils.reflectPassthrough(e,t);return i&&!a}}})),zC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExplorer=void 0;var t=O(),n=Me(),r=tt(),i=ct(),a=A(),o=rC(),s=NC(),c=eS(),l=zx(),u=Zx(),d=MC(),f=PC(),p=Bx(),m=rS(),h=sS(),g=bC(),_=Rx(),v=FC(),y=RC();e.RouterExplorer=class e{constructor(t,n,r,a,o,s,l,u){this.container=n,this.injector=r,this.routerProxy=a,this.exceptionsFilter=o,this.routePathFactory=l,this.graphInspector=u,this.routerMethodFactory=new f.RouterMethodFactory,this.logger=new i.Logger(e.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap,this.pathsExplorer=new g.PathsExplorer(t);let d=new v.RouteParamsFactory,p=new h.PipesContextCreator(n,s),_=new h.PipesConsumer,b=new c.GuardsContextCreator(n,s),x=new c.GuardsConsumer,S=new m.InterceptorsContextCreator(n,s),C=new m.InterceptorsConsumer;this.executionContextCreator=new y.RouterExecutionContext(d,p,_,b,x,S,C,n.getHttpAdapterRef())}explore(e,t,n,r,i){let{instance:a}=e,o=this.pathsExplorer.scanForPaths(a);this.applyPathsToRouterProxy(n,o,e,t,i,r)}extractRouterPath(e){let n=Reflect.getMetadata(t.PATH_METADATA,e);if((0,a.isUndefined)(n))throw new s.UnknownRequestMappingException(e);return Array.isArray(n)?n.map(e=>(0,a.addLeadingSlash)(e)):[(0,a.addLeadingSlash)(n)]}applyPathsToRouterProxy(e,t,n,r,i,a){(t||[]).forEach(t=>{let{version:o}=t;i.methodVersion=o,this.applyCallbackToRouter(e,t,n,r,i,a)})}applyCallbackToRouter(e,t,r,i,a,o){let{path:s,requestMethod:c,targetCallback:l,methodName:u}=t,{instance:f}=r,p=this.routerMethodFactory.get(e,c).bind(e),m=r.isDependencyTreeStatic()?this.createCallbackProxy(f,l,u,i,c):this.createRequestScopedHandler(r,c,this.container.getModuleByKey(i),i,u),h=(a.methodVersion||a.controllerVersion)&&a.versioningOptions,g=this.applyHostFilter(o,m);s.forEach(t=>{h&&a.versioningOptions.type!==n.VersioningType.URI&&(g=this.applyVersionFilter(e,a,g)),a.methodPath=t,this.routePathFactory.create(a,c).forEach(t=>{let i={type:`http-endpoint`,methodName:u,className:r.name,classNodeId:r.id,metadata:{key:t,path:t,requestMethod:n.RequestMethod[c],methodVersion:a.methodVersion,controllerVersion:a.controllerVersion}};this.copyMetadataToCallback(l,g);let o=e.normalizePath?e.normalizePath(t):t,s=this.container.getHttpAdapterRef().getOnRouteTriggered?.();s?p(o,(...e)=>(s(c,t),g(...e))):p(o,g),this.graphInspector.insertEntrypointDefinition(i,r.id)}),this.routePathFactory.create({...a,versioningOptions:void 0},c).forEach(e=>{if(h){let t=this.routePathFactory.getVersion(a);this.logger.log((0,d.VERSIONED_ROUTE_MAPPED_MESSAGE)(e,c,t))}else this.logger.log((0,d.ROUTE_MAPPED_MESSAGE)(e,c))})})}applyHostFilter(e,t){if(!e)return t;let n=this.container.getHttpAdapterRef(),i=(Array.isArray(e)?e:[e]).map(e=>{if(typeof e==`string`)try{return(0,o.pathToRegexp)(e)}catch(t){throw t instanceof TypeError&&this.logger.error(`Unsupported host "${e}" 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:e,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(e,o,s)=>{e.hosts={};let c=n.getRequestHostname(e)||``;for(let n of i){let r=c.match(n.regexp);if(r){if(n.keys.length>0)n.keys.forEach((t,n)=>e.hosts[t.name]=r[n+1]);else if(n.regexp&&r.groups)for(let t in r.groups)e.hosts[t]=r.groups[t];return t(e,o,s)}}if(!s)throw new r.InternalServerErrorException(a);return s()}}applyVersionFilter(e,t,n){let r=this.routePathFactory.getVersion(t);return e.applyVersionFilter(n,r,t.versioningOptions)}createCallbackProxy(e,t,n,r,i,a=p.STATIC_CONTEXT,o){let s=this.executionContextCreator.create(e,t,n,r,i,a,o),c=this.exceptionsFilter.create(e,t,r,a,o);return this.routerProxy.createProxy(s,c)}createRequestScopedHandler(e,t,n,r,i){let{instance:a}=e,o=n.controllers,s=e.isDependencyTreeDurable();return async(c,l,d)=>{try{let u=this.getContextId(c,s),f=await this.injector.loadPerContext(a,n,o,u);await this.createCallbackProxy(f,f[i],i,r,t,u,e.id)(c,l,d)}catch(e){let t=this.exceptionFiltersCache.get(a[i]);t||(t=this.exceptionsFilter.create(a,a[i],r),this.exceptionFiltersCache.set(a[i],t));let n=new u.ExecutionContextHost([c,l,d]);t.next(e,n)}}}getContextId(e,t){let n=l.ContextIdFactory.getByRequest(e);if(!e[_.REQUEST_CONTEXT_ID]){Object.defineProperty(e,_.REQUEST_CONTEXT_ID,{value:n,enumerable:!1,writable:!1,configurable:!1});let r=t?n.payload:Object.assign(e,n.payload);this.container.registerRequestProvider(r,n)}return n}copyMetadataToCallback(e,t){for(let n of Reflect.getMetadataKeys(e))Reflect.defineMetadata(n,Reflect.getMetadata(n,e),t)}}})),BC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutesResolver=void 0;var t=H(),n=O(),r=ct(),i=MC(),a=kx(),o=vC(),s=hC(),c=zC(),l=gC();e.RoutesResolver=class e{constructor(t,n,i,u){this.container=t,this.applicationConfig=n,this.injector=i,this.logger=new r.Logger(e.name,{timestamp:!0}),this.routerProxy=new l.RouterProxy;let d=t.getHttpAdapterRef();this.routerExceptionsFilter=new s.RouterExceptionFilters(t,n,d),this.routePathFactory=new o.RoutePathFactory(this.applicationConfig);let f=new a.MetadataScanner;this.routerExplorer=new c.RouterExplorer(f,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory,u)}resolve(e,t){this.container.getModules().forEach(({controllers:n,metatype:r},i)=>{let a=this.getModulePathMetadata(r);this.registerRouters(n,i,t,a,e)})}registerRouters(e,t,n,r,a){e.forEach(e=>{let{metatype:o}=e,s=this.getHostMetadata(o),c=this.routerExplorer.extractRouterPath(o),l=this.getVersionMetadata(o),u=o.name;c.forEach(o=>{let c=this.routePathFactory.create({ctrlPath:o,modulePath:r,globalPrefix:n});l?c.forEach(e=>{let t=(0,i.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(u,e,l);this.logger.log(t)}):c.forEach(e=>{let t=(0,i.CONTROLLER_MAPPING_MESSAGE)(u,e);this.logger.log(t)});let d={ctrlPath:o,modulePath:r,globalPrefix:n,controllerVersion:l,versioningOptions:this.applicationConfig.getVersioning()};this.routerExplorer.explore(e,t,a,s,d)})})}registerNotFoundHandler(){let e=this.container.getHttpAdapterRef(),n=(n,r)=>{let i=e.getRequestMethod(n),a=e.getRequestUrl(n);throw new t.NotFoundException(`Cannot ${i} ${a}`)},r=this.routerExceptionsFilter.create({},n,void 0),i=this.routerProxy.createProxy(n,r);e.setNotFoundHandler&&e.setNotFoundHandler(i,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){let e=(e,t,n,r)=>{throw this.mapExternalException(e)},t=this.routerExceptionsFilter.create({},e,void 0),n=this.routerProxy.createExceptionLayerProxy(e,t),r=this.container.getHttpAdapterRef();r.setErrorHandler&&r.setErrorHandler(n,this.applicationConfig.getGlobalPrefix())}mapExternalException(e){switch(!0){case e instanceof SyntaxError||e instanceof URIError:return new t.BadRequestException(e.message);case this.isHttpFastifyError(e):return new t.HttpException(e.message,e.statusCode);default:return e}}isHttpFastifyError(e){return e.statusCode!==void 0&&e instanceof Error&&e.name===`FastifyError`}getModulePathMetadata(e){let t=this.container.getModules();return Reflect.getMetadata(n.MODULE_PATH+t.applicationId,e)??Reflect.getMetadata(n.MODULE_PATH,e)}getHostMetadata(e){return Reflect.getMetadata(n.HOST_METADATA,e)}getVersionMetadata(e){let t=this.applicationConfig.getVersioning();if(t)return Reflect.getMetadata(n.VERSION_METADATA,e)??t.defaultVersion}}})),VC=o((()=>{throw Error(`Could not resolve "@nestjs/websockets/socket-module" imported by "@nestjs/core". Is it installed?`)})),HC=o((()=>{throw Error(`Could not resolve "@nestjs/microservices/microservices-module" imported by "@nestjs/core". Is it installed?`)})),UC=o((()=>{throw Error(`Could not resolve "@nestjs/microservices" imported by "@nestjs/core". Is it installed?`)})),WC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestApplication=void 0;var t=H(),n=ct(),r=Vn(),i=A(),a=I(),o=require(`os`),s=Dx(),c=Ox(),l=dC(),u=IS(),d=fC(),f=CC(),p=cC(),m=jC(),h=BC(),{SocketModule:g}=(0,l.optionalRequire)(`@nestjs/websockets/socket-module`,()=>VC()),{MicroservicesModule:_}=(0,l.optionalRequire)(`@nestjs/microservices/microservices-module`,()=>HC());e.NestApplication=class e extends m.NestApplicationContext{constructor(t,r,i,a,o={}){super(t,o),this.httpAdapter=r,this.config=i,this.graphInspector=a,this.logger=new n.Logger(e.name,{timestamp:!0}),this.middlewareContainer=new d.MiddlewareContainer(this.container),this.microservicesModule=_&&new _,this.socketModule=g&&new g,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 f.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,a.iterate)(this.microservices).map(async e=>{e.setIsTerminated(!0),await e.close()}))}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){if(!(!this.appOptions||!this.appOptions.cors))return(0,i.isObject)(this.appOptions.cors)||(0,i.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(c.MESSAGES.APPLICATION_READY),this)}registerParserMiddleware(){let e=this.config.getGlobalPrefix(),t=!!this.appOptions?.rawBody;this.httpAdapter.registerParserMiddleware(e,t)}async registerRouter(){await this.registerMiddleware(this.httpAdapter);let e=this.config.getGlobalPrefix(),t=(0,i.addLeadingSlash)(e);this.routesResolver.resolve(this.httpAdapter,t)}async registerRouterHooks(){this.routesResolver.registerNotFoundHandler(),this.routesResolver.registerExceptionHandler()}connectMicroservice(e,t={}){let{NestMicroservice:n}=(0,r.loadPackage)(`@nestjs/microservices`,`NestFactory`,()=>UC()),{inheritAppConfig:i}=t,a=i?this.config:new s.ApplicationConfig,o=new n(this.container,e,this.graphInspector,a);return t.deferInitialization||(o.registerListeners(),o.setIsInitialized(!0),o.setIsInitHookCalled(!0)),this.microservices.push(o),o}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}async startAllMicroservices(){return this.assertNotInPreviewMode(`startAllMicroservices`),await Promise.all(this.microservices.map(e=>e.listen())),this}use(...e){return this.httpAdapter.use(...e),this}useBodyParser(...e){if(!(`useBodyParser`in this.httpAdapter))return this.logger.warn("Your HTTP Adapter does not support `.useBodyParser`."),this;let[t,...n]=e,r=!!this.appOptions.rawBody;return this.httpAdapter.useBodyParser?.(t,r,...n),this}enableCors(e){this.httpAdapter.enableCors(e)}enableVersioning(e={type:t.VersioningType.URI}){return this.config.enableVersioning(e),this}async listen(e,...t){this.assertNotInPreviewMode(`listen`),this.isInitialized||await this.init();let n=this.container.getHttpAdapterHostRef();return new Promise((r,a)=>{let o=e=>{this.logger.error(e?.toString?.()),a(e)};this.httpServer.once(`error`,o);let s=(0,i.isFunction)(t[t.length-1]),c=s?t.slice(0,t.length-1):t;this.httpAdapter.listen(e,...c,(...e)=>{if((this.appOptions?.autoFlushLogs??!0)&&this.flushLogs(),e[0]instanceof Error)return a(e[0]);this.httpServer.address()&&(this.httpServer.removeListener(`error`,o),this.isListening=!0,n.listening=!0,r(this.httpServer)),s&&t[t.length-1](...e)})})}async getUrl(){return new Promise((e,t)=>{if(!this.isListening){this.logger.error(c.MESSAGES.CALL_LISTEN_FIRST),t(c.MESSAGES.CALL_LISTEN_FIRST);return}let n=this.httpServer.address();e(this.formatAddress(n))})}formatAddress(e){if((0,i.isString)(e)){if((0,o.platform)()===`win32`)return e;let t=encodeURIComponent(e);return`${this.getProtocol()}+unix://${t}`}let t=this.host();return e&&e.family===`IPv6`?t=t===`::`?`[::1]`:`[${t}]`:t===`0.0.0.0`&&(t=`127.0.0.1`),`${this.getProtocol()}://${t}:${e.port}`}setGlobalPrefix(e,t){if(this.config.setGlobalPrefix(e),t){let e=t?.exclude?(0,p.mapToExcludeRoute)(t.exclude):[];this.config.setGlobalPrefixOptions({...t,exclude:e})}return this}useWebSocketAdapter(e){return this.config.setIoAdapter(e),this}useGlobalFilters(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalFilters(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`filter`,ref:e})),this}useGlobalPipes(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalPipes(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`pipe`,ref:e})),this}useGlobalInterceptors(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalInterceptors(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`interceptor`,ref:e})),this}useGlobalGuards(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalGuards(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`guard`,ref:e})),this}useStaticAssets(e,t){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(e,t),this}setBaseViewsDir(e){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(e),this}setViewEngine(e){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(e),this}host(){let e=this.httpServer.address();if(!(0,i.isString)(e))return e&&e.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?`https`:`http`}async registerMiddleware(e){await this.middlewareModule.registerMiddleware(this.middlewareContainer,e)}applyInstanceDecoratorIfRegistered(...e){return this.appOptions.instrument?.instanceDecorator?e.map(e=>this.appOptions.instrument.instanceDecorator(e)):e}}})),GC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionHandler=void 0;var t=ct(),n=class e{handle(t){e.logger.error(t)}};e.ExceptionHandler=n,n.logger=new t.Logger(n.name)})),KC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionsZone=void 0;var t=H(),n=GC(),r=()=>process.exit(1),i=class{static run(e,n=r,i){try{e()}catch(e){this.exceptionHandler.handle(e),i&&t.Logger.flush(),n(e)}}static async asyncRun(e,n=r,i){try{await e()}catch(e){this.exceptionHandler.handle(e),i&&t.Logger.flush(),n(e)}}};e.ExceptionsZone=i,i.exceptionHandler=new n.ExceptionHandler})),qC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadAdapter=i;var t=H(),n=(e,t)=>`No driver (${t}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${e}" package ($ npm install ${e}).`,r=new t.Logger(`PackageLoader`);function i(e,t,i){try{return i?i():require(e)}catch{r.error(n(e,t)),process.exit(1)}}})),JC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rethrow=void 0,e.rethrow=e=>{throw e}})),YC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceLoader=void 0;var t=H(),n=MC(),r=KS();e.InstanceLoader=class e{constructor(n,r,i,a=new t.Logger(e.name,{timestamp:!0})){this.container=n,this.injector=r,this.graphInspector=i,this.logger=a}setLogger(e){this.logger=e}async createInstancesOfDependencies(e=this.container.getModules()){this.createPrototypes(e);try{await this.createInstances(e)}catch(t){throw this.graphInspector.inspectModules(e),this.graphInspector.registerPartial(t),t}this.graphInspector.inspectModules(e)}createPrototypes(e){e.forEach(e=>{this.createPrototypesOfProviders(e),this.createPrototypesOfInjectables(e),this.createPrototypesOfControllers(e)})}async createInstances(e){await Promise.all([...e.values()].map(async e=>{await this.createInstancesOfProviders(e),await this.createInstancesOfInjectables(e),await this.createInstancesOfControllers(e);let{name:t}=e;this.isModuleWhitelisted(t)&&this.logger.log((0,n.MODULE_INIT_MESSAGE)`${t}`)}))}createPrototypesOfProviders(e){let{providers:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfProviders(e){let{providers:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadProvider(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}createPrototypesOfControllers(e){let{controllers:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfControllers(e){let{controllers:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadController(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}createPrototypesOfInjectables(e){let{injectables:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfInjectables(e){let{injectables:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadInjectable(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}isModuleWhitelisted(e){return e!==r.InternalCoreModule.name}}})),XC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoopGraphInspector=void 0;var t=tC(),n=()=>{};e.NoopGraphInspector=new Proxy(t.GraphInspector.prototype,{get:()=>n})})),ZC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassModuleException=void 0;var t=Gx(),n=Wx();e.InvalidClassModuleException=class extends n.RuntimeException{constructor(e,n){super((0,t.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(e,n))}}})),QC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidModuleException=void 0;var t=Gx(),n=Wx();e.InvalidModuleException=class extends n.RuntimeException{constructor(e,n,r){super((0,t.INVALID_MODULE_MESSAGE)(e,n,r))}}})),$C=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedModuleException=void 0;var t=Wx(),n=Gx();e.UndefinedModuleException=class extends t.RuntimeException{constructor(e,t,r){super((0,n.UNDEFINED_MODULE_MESSAGE)(e,t,r))}}})),ew=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalCoreModuleFactory=void 0;var t=H(),n=dS(),r=Fx(),i=xS(),a=VS(),o=IS(),s=YC(),c=zS(),l=Ax(),u=KS();e.InternalCoreModuleFactory=class{static create(e,d,f,p,m,h){return i.InitializeOnPreviewAllowlist.add(u.InternalCoreModule),u.InternalCoreModule.register([{provide:n.ExternalContextCreator,useFactory:()=>n.ExternalContextCreator.fromContainer(e)},{provide:l.ModulesContainer,useFactory:()=>e.getModules()},{provide:r.HttpAdapterHost,useFactory:()=>p},{provide:c.LazyModuleLoader,useFactory:()=>{let n=new t.Logger(c.LazyModuleLoader.name,{timestamp:!1}),r=new o.Injector({preview:e.contextOptions?.preview,instanceDecorator:e.contextOptions?.instrument?.instanceDecorator}),i=new s.InstanceLoader(e,r,m,n);return new c.LazyModuleLoader(d,i,f,e.getModules(),h)}},{provide:a.SerializedGraph,useFactory:()=>e.serializedGraph}])}}})),tw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TreeNode=void 0,e.TreeNode=class{constructor({value:e,parent:t}){this.children=new Set,this.value=e,this.parent=t}addChild(e){this.children.add(e)}removeChild(e){this.children.delete(e)}relink(e){this.parent?.removeChild(this),this.parent=e,this.parent.addChild(this)}getDepth(){let e=new Set,t=0,n=this;for(;n;){if(t++,n=n.parent,e.has(n))return-1;e.add(n)}return t}hasCycleWith(e){let t=new Set,n=this;for(;n;){if(n.value===e)return!0;if(n=n.parent,t.has(n))return!1;t.add(n)}return!1}}})),nw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TopologyTree=void 0;var t=tw();e.TopologyTree=class{constructor(e){this.links=new Map,this.root=new t.TreeNode({value:e,parent:null}),this.links.set(e,this.root),this.traverseAndMapToTree(this.root)}walk(e){function t(n,r=1){e(n.value,r),n.children.forEach(e=>t(e,r+1))}t(this.root)}traverseAndMapToTree(e,n=1){e.value.imports&&e.value.imports.forEach(r=>{if(!r)return;if(this.links.has(r)){let t=this.links.get(r);if(e.hasCycleWith(r))return;t.getDepth()<n&&t.relink(e);return}let i=new t.TreeNode({value:r,parent:e});e.addChild(i),this.links.set(r,i),this.traverseAndMapToTree(i,n+1)})}}})),rw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DependenciesScanner=void 0;var t=O(),n=dn(),r=A(),i=I(),a=Dx(),o=Ox(),s=pS(),c=ZC(),l=QC(),u=$C(),d=wS(),f=ew(),p=nw(),m=MS();e.DependenciesScanner=class{constructor(e,t,n,r=new a.ApplicationConfig){this.container=e,this.metadataScanner=t,this.graphInspector=n,this.applicationConfig=r,this.applicationProvidersApplyMap=[]}async scan(e,t){await this.registerCoreModule(t?.overrides),await this.scanForModules({moduleDefinition:e,overrides:t?.overrides}),await this.scanModulesForDependencies(),this.addScopedEnhancersMetadata(),this.calculateModulesDistance(),this.container.bindGlobalScope()}async scanForModules({moduleDefinition:e,lazy:n,scope:r=[],ctxRegistry:i=[],overrides:a=[]}){let{moduleRef:o,inserted:s}=await this.insertOrOverrideModule(e,a,r)??{};e=this.getOverrideModuleByModule(e,a)?.newModule??e,e=e instanceof Promise?await e:e,i.push(e),this.isForwardReference(e)&&(e=e.forwardRef());let c=this.isDynamicModule(e)?[...this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e.module),...e.imports||[]]:this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e),d=[];for(let[t,o]of c.entries()){if(o===void 0)throw new u.UndefinedModuleException(e,t,r);if(!o)throw new l.InvalidModuleException(e,t,r);if(i.includes(o))continue;let s=await this.scanForModules({moduleDefinition:o,scope:[].concat(r,e),ctxRegistry:i,overrides:a,lazy:n});d=d.concat(s)}return o?(n&&s&&this.container.bindGlobalsToImports(o),[o].concat(d)):d}async insertModule(e,t){let n=this.isForwardReference(e)?e.forwardRef():e;if(this.isInjectable(n)||this.isController(n)||this.isExceptionFilter(n))throw new c.InvalidClassModuleException(e,t);return this.container.addModule(n,t)}async scanModulesForDependencies(e=this.container.getModules()){for(let[t,{metatype:n}]of e)await this.reflectImports(n,t,n.name),this.reflectProviders(n,t),this.reflectControllers(n,t),this.reflectExports(n,t)}async reflectImports(e,n,r){let i=[...this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.IMPORTS)];for(let e of i)await this.insertImport(e,n,r)}reflectProviders(e,n){[...this.reflectMetadata(t.MODULE_METADATA.PROVIDERS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.PROVIDERS)].forEach(e=>{this.insertProvider(e,n),this.reflectDynamicMetadata(e,n)})}reflectControllers(e,n){[...this.reflectMetadata(t.MODULE_METADATA.CONTROLLERS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.CONTROLLERS)].forEach(e=>{this.insertController(e,n),this.reflectDynamicMetadata(e,n)})}reflectDynamicMetadata(e,n){!e||!e.prototype||(this.reflectInjectables(e,n,t.GUARDS_METADATA),this.reflectInjectables(e,n,t.INTERCEPTORS_METADATA),this.reflectInjectables(e,n,t.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(e,n,t.PIPES_METADATA),this.reflectParamInjectables(e,n,t.ROUTE_ARGS_METADATA))}reflectExports(e,n){[...this.reflectMetadata(t.MODULE_METADATA.EXPORTS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.EXPORTS)].forEach(e=>this.insertExportedProviderOrModule(e,n))}reflectInjectables(e,n,r){let i=this.reflectMetadata(r,e),a=this.metadataScanner.getAllMethodNames(e.prototype).reduce((t,n)=>{let i=this.reflectKeyMetadata(e,r,n);return i&&t.push(i),t},[]);i.forEach(i=>this.insertInjectable(i,n,e,t.ENHANCER_KEY_TO_SUBTYPE_MAP[r])),a.forEach(i=>{i.metadata.forEach(a=>this.insertInjectable(a,n,e,t.ENHANCER_KEY_TO_SUBTYPE_MAP[r],i.methodKey))})}reflectParamInjectables(e,t,n){this.metadataScanner.getAllMethodNames(e.prototype).forEach(r=>{let i=Reflect.getMetadata(n,e,r);i&&Object.values(i).map(e=>e.pipes).flat(1).forEach(n=>this.insertInjectable(n,t,e,`pipe`,r))})}reflectKeyMetadata(e,t,n){let r=e.prototype;do{let e=Reflect.getOwnPropertyDescriptor(r,n);if(!e)continue;let i=Reflect.getMetadata(t,e.value);return i?{methodKey:n,metadata:i}:void 0}while((r=Reflect.getPrototypeOf(r))&&r!==Object.prototype&&r)}calculateModulesDistance(){let e=this.container.getModules().values();e.next();let t=e.next().value;t&&new p.TopologyTree(t).walk((e,t)=>{e.isGlobal||(e.distance=t)})}async insertImport(e,t,n){if((0,r.isUndefined)(e))throw new s.CircularDependencyException(n);if(this.isForwardReference(e))return this.container.addImport(e.forwardRef(),t);await this.container.addImport(e,t)}isCustomProvider(e){return e&&!(0,r.isNil)(e.provide)}insertProvider(e,t){if(!this.isCustomProvider(e))return this.container.addProvider(e,t);let n=this.getApplyProvidersMap(),i=Object.keys(n),a=e.provide;if(!i.includes(a))return this.container.addProvider(e,t);let s=`${a} (UUID: ${m.UuidFactory.get(a.toString())})`,c=e.scope;(0,r.isNil)(c)&&e.useClass&&(c=(0,d.getClassScope)(e.useClass)),this.applicationProvidersApplyMap.push({type:a,moduleKey:t,providerKey:s,scope:c});let l={...e,provide:s,scope:c},u=o.ENHANCER_TOKEN_TO_SUBTYPE_MAP[a],f=l;if(this.isRequestOrTransient(f.scope))return this.container.addInjectable(l,t,u);this.container.addProvider(l,t,u)}insertInjectable(e,t,n,i,a){if((0,r.isFunction)(e)){let r=this.container.addInjectable(e,t,i,n);return this.graphInspector.insertEnhancerMetadataCache({moduleToken:t,classRef:n,enhancerInstanceWrapper:r,targetNodeId:r.id,subtype:i,methodKey:a}),r}else this.graphInspector.insertEnhancerMetadataCache({moduleToken:t,classRef:n,enhancerRef:e,methodKey:a,subtype:i})}insertExportedProviderOrModule(e,t){let n=this.isForwardReference(e)?e.forwardRef():e;this.container.addExportedProviderOrModule(n,t)}insertController(e,t){this.container.addController(e,t)}insertOrOverrideModule(e,t,n){let r=this.getOverrideModuleByModule(e,t);return r===void 0?this.insertModule(e,n):this.overrideModule(e,r.newModule,n)}getOverrideModuleByModule(e,t){return this.isForwardReference(e)?t.find(t=>t.moduleToReplace===e.forwardRef()||t.moduleToReplace.forwardRef?.()===e.forwardRef()):t.find(t=>t.moduleToReplace===e)}async overrideModule(e,t,n){return this.container.replaceModule(this.isForwardReference(e)?e.forwardRef():e,this.isForwardReference(t)?t.forwardRef():t,n)}reflectMetadata(e,t){return Reflect.getMetadata(e,t)||[]}async registerCoreModule(e){let t=f.InternalCoreModuleFactory.create(this.container,this,this.container.getModuleCompiler(),this.container.getHttpAdapterHostRef(),this.graphInspector,e),[n]=await this.scanForModules({moduleDefinition:t,overrides:e});this.container.registerCoreModuleRef(n)}addScopedEnhancersMetadata(){(0,i.iterate)(this.applicationProvidersApplyMap).filter(e=>this.isRequestOrTransient(e.scope)).forEach(({moduleKey:e,providerKey:t})=>{let n=this.container.getModules(),{injectables:r}=n.get(e),a=r.get(t),o=n.values();(0,i.iterate)(o).map(e=>Array.from(e.controllers.values()).concat(e.entryProviders)).flatten().forEach(e=>e.addEnhancerMetadata(a))})}applyApplicationProviders(){let e=this.getApplyProvidersMap(),t=this.getApplyRequestProvidersMap(),n=(e,t,n)=>this.container.getModules().get(e)[n].get(t);this.applicationProvidersApplyMap.forEach(({moduleKey:r,providerKey:i,type:a,scope:o})=>{let s;if(this.isRequestOrTransient(o))return s=n(r,i,`injectables`),this.graphInspector.insertAttachedEnhancer(s),t[a](s);s=n(r,i,`providers`),this.graphInspector.insertAttachedEnhancer(s),e[a](s.instance)})}getApplyProvidersMap(){return{[o.APP_INTERCEPTOR]:e=>this.applicationConfig.addGlobalInterceptor(e),[o.APP_PIPE]:e=>this.applicationConfig.addGlobalPipe(e),[o.APP_GUARD]:e=>this.applicationConfig.addGlobalGuard(e),[o.APP_FILTER]:e=>this.applicationConfig.addGlobalFilter(e)}}getApplyRequestProvidersMap(){return{[o.APP_INTERCEPTOR]:e=>this.applicationConfig.addGlobalRequestInterceptor(e),[o.APP_PIPE]:e=>this.applicationConfig.addGlobalRequestPipe(e),[o.APP_GUARD]:e=>this.applicationConfig.addGlobalRequestGuard(e),[o.APP_FILTER]:e=>this.applicationConfig.addGlobalRequestFilter(e)}}isDynamicModule(e){return e&&!!e.module}isInjectable(e){return!!Reflect.getMetadata(t.INJECTABLE_WATERMARK,e)}isController(e){return!!Reflect.getMetadata(t.CONTROLLER_WATERMARK,e)}isExceptionFilter(e){return!!Reflect.getMetadata(t.CATCH_WATERMARK,e)}isForwardReference(e){return e&&!!e.forwardRef}isRequestOrTransient(e){return e===n.Scope.REQUEST||e===n.Scope.TRANSIENT}}})),iw=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),aw=s(((e,t)=>{t.exports=a,t.exports.append=r;var n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,t){if(typeof e!=`string`)throw TypeError(`header argument is required`);if(!t)throw TypeError(`field argument is required`);for(var r=Array.isArray(t)?t:i(String(t)),a=0;a<r.length;a++)if(!n.test(r[a]))throw TypeError(`field argument contains an invalid header name`);if(e===`*`)return e;var o=e,s=i(e.toLowerCase());if(r.indexOf(`*`)!==-1||s.indexOf(`*`)!==-1)return`*`;for(var c=0;c<r.length;c++){var l=r[c].toLowerCase();s.indexOf(l)===-1&&(s.push(l),o=o?o+`, `+r[c]:r[c])}return o}function i(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}function a(e,t){if(!e||!e.getHeader||!e.setHeader)throw TypeError(`res argument is required`);var n=e.getHeader(`Vary`)||``;(n=r(Array.isArray(n)?n.join(`, `):String(n),t))&&e.setHeader(`Vary`,n)}})),ow=s(((e,t)=>{(function(){"use strict";var e=iw(),n=aw(),r={origin:`*`,methods:`GET,HEAD,PUT,PATCH,POST,DELETE`,preflightContinue:!1,optionsSuccessStatus:204};function i(e){return typeof e==`string`||e instanceof String}function a(e,t){if(Array.isArray(t)){for(var n=0;n<t.length;++n)if(a(e,t[n]))return!0;return!1}else if(i(t))return e===t;else if(t instanceof RegExp)return t.test(e);else return!!t}function o(e,t){var n=t.headers.origin,r=[],o;return!e.origin||e.origin===`*`?r.push([{key:`Access-Control-Allow-Origin`,value:`*`}]):i(e.origin)?(r.push([{key:`Access-Control-Allow-Origin`,value:e.origin}]),r.push([{key:`Vary`,value:`Origin`}])):(o=a(n,e.origin),r.push([{key:`Access-Control-Allow-Origin`,value:o?n:!1}]),r.push([{key:`Vary`,value:`Origin`}])),r}function s(e){var t=e.methods;return t.join&&(t=e.methods.join(`,`)),{key:`Access-Control-Allow-Methods`,value:t}}function c(e){return e.credentials===!0?{key:`Access-Control-Allow-Credentials`,value:`true`}:null}function l(e,t){var n=e.allowedHeaders||e.headers,r=[];return n?n.join&&(n=n.join(`,`)):(n=t.headers[`access-control-request-headers`],r.push([{key:`Vary`,value:`Access-Control-Request-Headers`}])),n&&n.length&&r.push([{key:`Access-Control-Allow-Headers`,value:n}]),r}function u(e){var t=e.exposedHeaders;if(t)t.join&&(t=t.join(`,`));else return null;return t&&t.length?{key:`Access-Control-Expose-Headers`,value:t}:null}function d(e){var t=(typeof e.maxAge==`number`||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:`Access-Control-Max-Age`,value:t}:null}function f(e,t){for(var r=0,i=e.length;r<i;r++){var a=e[r];a&&(Array.isArray(a)?f(a,t):a.key===`Vary`&&a.value?n(t,a.value):a.value&&t.setHeader(a.key,a.value))}}function p(e,t,n,r){var i=[];(t.method&&t.method.toUpperCase&&t.method.toUpperCase())===`OPTIONS`?(i.push(o(e,t)),i.push(c(e)),i.push(s(e)),i.push(l(e,t)),i.push(d(e)),i.push(u(e)),f(i,n),e.preflightContinue?r():(n.statusCode=e.optionsSuccessStatus,n.setHeader(`Content-Length`,`0`),n.end())):(i.push(o(e,t)),i.push(c(e)),i.push(u(e)),f(i,n),r())}function m(t){var n=null;return n=typeof t==`function`?t:function(e,n){n(null,t)},function(t,i,a){n(t,function(n,o){if(n)a(n);else{var s=e({},r,o),c=null;s.origin&&typeof s.origin==`function`?c=s.origin:s.origin&&(c=function(e,t){t(null,s.origin)}),c?c(t.headers.origin,function(e,n){e||!n?a(e):(s.origin=n,p(s,t,i,a))}):a()}})}}t.exports=m})()})),sw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getBodyParserOptions=n;var t=(e,t,n)=>(Buffer.isBuffer(n)&&(e.rawBody=n),!0);function n(e,n){let r=n||{};return e===!0&&(r={...r,verify:t}),r}})),cw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExpressAdapter=void 0;var t=H(),n=A(),r=Tx(),i=PC(),a=iC(),o=ow(),s=require(`express`),c=require(`http`),l=require(`https`),u=rC(),d=sw();e.ExpressAdapter=class e extends r.AbstractHttpAdapter{constructor(n){super(n||s()),this.routerMethodFactory=new i.RouterMethodFactory,this.logger=new t.Logger(e.name),this.openConnections=new Set,this.instance.use((e,t,n)=>{this.onResponseHook&&t.on(`finish`,()=>{this.onResponseHook.apply(this,[e,t])}),this.onRequestHook?this.onRequestHook.apply(this,[e,t,n]):n()})}setOnRequestHook(e){this.onRequestHook=e}setOnResponseHook(e){this.onResponseHook=e}reply(e,r,i){if(i&&e.status(i),(0,n.isNil)(r))return e.send();if(r instanceof t.StreamableFile){this.applyStreamHeaders(e,r);let t=r.getStream();return t.once(`error`,t=>{r.errorHandler(t,e)}),t.pipe(e).on(`error`,e=>r.errorLogger(e))}let a=e.getHeader(`Content-Type`);return typeof a==`string`&&!a.startsWith(`application/json`)&&r?.statusCode>=t.HttpStatus.BAD_REQUEST&&(this.logger.warn(`Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses`),e.setHeader(`Content-Type`,`application/json`)),(0,n.isObject)(r)?e.json(r):e.send(String(r))}status(e,t){return e.status(t)}end(e,t){return e.end(t)}render(e,t,n){return e.render(t,n)}redirect(e,t,n){return e.redirect(t,n)}setErrorHandler(e,t){return this.use(e)}setNotFoundHandler(e,t){return this.use(e)}isHeadersSent(e){return e.headersSent}getHeader(e,t){return e.get(t)}setHeader(e,t,n){return e.set(t,n)}appendHeader(e,t,n){return e.append(t,n)}normalizePath(e){try{let t=a.LegacyRouteConverter.tryConvert(e);return(0,u.pathToRegexp)(t),t}catch(t){throw t instanceof TypeError&&a.LegacyRouteConverter.printError(e),t}}listen(e,...t){return this.httpServer.listen(e,...t)}close(){if(this.closeOpenConnections(),this.httpServer)return new Promise(e=>this.httpServer.close(e))}set(...e){return this.instance.set(...e)}enable(...e){return this.instance.enable(...e)}disable(...e){return this.instance.disable(...e)}engine(...e){return this.instance.engine(...e)}useStaticAssets(e,t){return t&&t.prefix?this.use(t.prefix,s.static(e,t)):this.use(s.static(e,t))}setBaseViewsDir(e){return this.set(`views`,e)}setViewEngine(e){return this.set(`view engine`,e)}getRequestHostname(e){return e.hostname}getRequestMethod(e){return e.method}getRequestUrl(e){return e.originalUrl}enableCors(e){return this.use(o(e))}createMiddlewareFactory(e){return(t,n)=>{try{let r=a.LegacyRouteConverter.tryConvert(t);return this.routerMethodFactory.get(this.instance,e).call(this.instance,r,n)}catch(e){throw e instanceof TypeError&&a.LegacyRouteConverter.printError(t),e}}}initHttpServer(e){e&&e.httpsOptions?this.httpServer=l.createServer(e.httpsOptions,this.getInstance()):this.httpServer=c.createServer(this.getInstance()),e?.forceCloseConnections&&this.trackOpenConnections()}registerParserMiddleware(e,t){let n=(0,d.getBodyParserOptions)(t),r=(0,d.getBodyParserOptions)(t,{extended:!0}),i={jsonParser:s.json(n),urlencodedParser:s.urlencoded(r)};Object.keys(i).filter(e=>!this.isMiddlewareApplied(e)).forEach(e=>this.use(i[e]))}useBodyParser(e,t,n){let r=(0,d.getBodyParserOptions)(t,n),i=s[e](r);return this.use(i),this}setLocal(e,t){return this.instance.locals[e]=t,this}getType(){return`express`}applyVersionFilter(e,r,i){let a=(e,n,r)=>{if(!r)throw new t.InternalServerErrorException(`HTTP adapter does not support filtering on version`);return r()};if(r===t.VERSION_NEUTRAL||i.type===t.VersioningType.URI)return(t,n,r)=>e(t,n,r);if(i.type===t.VersioningType.CUSTOM)return(t,o,s)=>{let c=i.extractor(t);if(Array.isArray(r)){if(Array.isArray(c)&&r.filter(e=>c.includes(e)).length||(0,n.isString)(c)&&r.includes(c))return e(t,o,s)}else if((0,n.isString)(r)&&(Array.isArray(c)&&c.includes(r)||(0,n.isString)(c)&&r===c))return e(t,o,s);return a(t,o,s)};if(i.type===t.VersioningType.MEDIA_TYPE)return(o,s,c)=>{let l=o.headers?.Accept||o.headers?.accept,u=l?l.split(`;`)[1]:void 0;if((0,n.isUndefined)(u)){if(Array.isArray(r)&&r.includes(t.VERSION_NEUTRAL))return e(o,s,c)}else{let t=u.split(i.key)[1];if(Array.isArray(r)){if(r.includes(t))return e(o,s,c)}else if((0,n.isString)(r)&&r===t)return e(o,s,c)}return a(o,s,c)};if(i.type===t.VersioningType.HEADER)return(o,s,c)=>{let l=o.headers?.[i.header]||o.headers?.[i.header.toLowerCase()];if((0,n.isUndefined)(l)){if(Array.isArray(r)&&r.includes(t.VERSION_NEUTRAL))return e(o,s,c)}else if(Array.isArray(r)){if(r.includes(l))return e(o,s,c)}else if((0,n.isString)(r)&&r===l)return e(o,s,c);return a(o,s,c)};throw Error(`Unsupported versioning options`)}trackOpenConnections(){this.httpServer.on(`connection`,e=>{this.openConnections.add(e),e.on(`close`,()=>this.openConnections.delete(e))})}closeOpenConnections(){for(let e of this.openConnections)e.destroy(),this.openConnections.delete(e)}isMiddlewareApplied(e){let t=this.getInstance();return!!t.router&&!!t.router.stack&&(0,n.isFunction)(t.router.stack.filter)&&t.router.stack.some(t=>t&&t.handle&&t.handle.name===e)}setHeaderIfNotExists(e,t,n){if(n!==void 0&&e.getHeader(t)===void 0){let r=Array.isArray(n)?n.join(`,`):n;e.setHeader(t,r)}}applyStreamHeaders(e,t){let n=t.getHeaders();this.setHeaderIfNotExists(e,`Content-Type`,n.type),this.setHeaderIfNotExists(e,`Content-Disposition`,n.disposition),this.setHeaderIfNotExists(e,`Content-Length`,n.length)}}})),lw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(cw(),e)})),uw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),dw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),fw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(uw(),e),t.__exportStar(dw(),e)})),pw=s((e=>{var t=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,n=/^[\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,i=/\\([\u0000-\u007f])/g,a=/([\\"])/g,o=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,c=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;e.format=l,e.parse=u;function l(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var t=e.parameters,n=e.subtype,i=e.suffix,a=e.type;if(!a||!s.test(a))throw TypeError(`invalid type`);if(!n||!o.test(n))throw TypeError(`invalid subtype`);var c=a+`/`+n;if(i){if(!s.test(i))throw TypeError(`invalid suffix`);c+=`+`+i}if(t&&typeof t==`object`)for(var l,u=Object.keys(t).sort(),d=0;d<u.length;d++){if(l=u[d],!r.test(l))throw TypeError(`invalid parameter name`);c+=`; `+l+`=`+f(t[l])}return c}function u(e){if(!e)throw TypeError(`argument string is required`);if(typeof e==`object`&&(e=d(e)),typeof e!=`string`)throw TypeError(`argument string is required to be a string`);var n=e.indexOf(`;`),r=n===-1?e:e.substr(0,n),a,o,s=p(r),c={},l;for(t.lastIndex=n;o=t.exec(e);){if(o.index!==n)throw TypeError(`invalid parameter format`);n+=o[0].length,a=o[1].toLowerCase(),l=o[2],l[0]===`"`&&(l=l.substr(1,l.length-2).replace(i,`$1`)),c[a]=l}if(n!==-1&&n!==e.length)throw TypeError(`invalid parameter format`);return s.parameters=c,s}function d(e){if(typeof e.getHeader==`function`)return e.getHeader(`content-type`);if(typeof e.headers==`object`)return e.headers&&e.headers[`content-type`]}function f(e){var t=String(e);if(r.test(t))return t;if(t.length>0&&!n.test(t))throw TypeError(`invalid parameter value`);return`"`+t.replace(a,`\\$1`)+`"`}function p(e){var t=c.exec(e.toLowerCase());if(!t)throw TypeError(`invalid media type`);var n=t[1],r=t[2],i,a=r.lastIndexOf(`+`);return a!==-1&&(i=r.substr(a+1),r=r.substr(0,a)),{type:n,subtype:r,suffix:i}}})),mw=c({default:()=>hw}),hw,gw=o((()=>{hw={"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}}})),_w=s(((e,t)=>{t.exports=(gw(),d(mw).default)})),vw=s((e=>{var t=_w(),n=require(`path`).extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=o,e.extension=s,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function a(e){if(!e||typeof e!=`string`)return!1;var n=r.exec(e),a=n&&t[n[1].toLowerCase()];return a&&a.charset?a.charset:n&&i.test(n[1])?`UTF-8`:!1}function o(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function s(t){if(!t||typeof t!=`string`)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];return!i||!i.length?!1:i[0]}function c(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().substr(1);return r&&e.types[r]||!1}function l(e,n){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(i){var a=t[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(a.source);if(n[c]!==`application/octet-stream`&&(l>u||l===u&&n[c].substr(0,12)===`application/`))continue}n[c]=i}}})}})),yw=s(((e,t)=>{var n=pw(),r=vw();t.exports=o,t.exports.is=i,t.exports.hasBody=a,t.exports.normalize=s,t.exports.match=c;function i(e,t){var n,r=t,i=u(e);if(!i)return!1;if(r&&!Array.isArray(r))for(r=Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];if(!r||!r.length)return i;var a;for(n=0;n<r.length;n++)if(c(s(a=r[n]),i))return a[0]===`+`||a.indexOf(`*`)!==-1?i:a;return!1}function a(e){return e.headers[`transfer-encoding`]!==void 0||!isNaN(e.headers[`content-length`])}function o(e,t){var n=t;if(!a(e))return null;if(arguments.length>2){n=Array(arguments.length-1);for(var r=0;r<n.length;r++)n[r]=arguments[r+1]}var o=e.headers[`content-type`];return i(o,n)}function s(e){if(typeof e!=`string`)return!1;switch(e){case`urlencoded`:return`application/x-www-form-urlencoded`;case`multipart`:return`multipart/*`}return e[0]===`+`?`*/*`+e:e.indexOf(`/`)===-1?r.lookup(e):e}function c(e,t){if(e===!1)return!1;var n=t.split(`/`),r=e.split(`/`);return n.length!==2||r.length!==2||r[0]!==`*`&&r[0]!==n[0]?!1:r[1].substr(0,2)===`*+`?r[1].length<=n[1].length+1&&r[1].substr(1)===n[1].substr(1-r[1].length):!(r[1]!==`*`&&r[1]!==n[1])}function l(e){var t=n.parse(e);return t.parameters=void 0,n.format(t)}function u(e){if(!e)return null;try{return l(e)}catch{return null}}})),bw=s(((e,t)=>{function n(e){if(e.length===0)return;let t=Object.create(null),n=0;for(;n<e.length;++n){let t=e.charCodeAt(n);if(u[t]!==1){if(t!==47||n===0)return;break}}if(n===e.length)return;let i=e.slice(0,n).toLowerCase(),a=++n;for(;n<e.length;++n)if(u[e.charCodeAt(n)]!==1){if(n===a||r(e,n,t)===void 0)return;break}if(n!==a)return{type:i,subtype:e.slice(a,n).toLowerCase(),params:t}}function r(e,t,n){for(;t<e.length;){for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)break;if(e.charCodeAt(t++)!==59)return;for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)return;let r,i=t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(u[n]!==1){if(n!==61)return;break}}if(t===e.length||(r=e.slice(i,t),++t,t===e.length))return;let a=``,o;if(e.charCodeAt(t)===34){o=++t;let n=!1;for(;t<e.length;++t){let r=e.charCodeAt(t);if(r===92){n?(o=t,n=!1):(a+=e.slice(o,t),n=!0);continue}if(r===34){if(n){o=t,n=!1;continue}a+=e.slice(o,t);break}if(n&&=(o=t-1,!1),d[r]!==1)return}if(t===e.length)return;++t}else{for(o=t;t<e.length;++t)if(u[e.charCodeAt(t)]!==1){if(t===o)return;break}a=e.slice(o,t)}r=r.toLowerCase(),n[r]===void 0&&(n[r]=a)}return n}function i(e,t){if(e.length===0)return;let n=Object.create(null),r=0;for(;r<e.length;++r)if(u[e.charCodeAt(r)]!==1){if(a(e,r,n,t)===void 0)return;break}return{type:e.slice(0,r).toLowerCase(),params:n}}function a(e,t,n,r){for(;t<e.length;){for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)break;if(e.charCodeAt(t++)!==59)return;for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)return;let i,a=t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(u[n]!==1){if(n===61)break;return}}if(t===e.length)return;let o=``,s,l;if(i=e.slice(a,t),i.charCodeAt(i.length-1)===42){let n=++t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(f[n]!==1){if(n!==39)return;break}}if(t===e.length)return;for(l=e.slice(n,t),++t;t<e.length&&e.charCodeAt(t)!==39;++t);if(t===e.length||(++t,t===e.length))return;s=t;let r=0;for(;t<e.length;++t){let n=e.charCodeAt(t);if(p[n]!==1){if(n===37){let n,i;if(t+2<e.length&&(n=m[e.charCodeAt(t+1)])!==-1&&(i=m[e.charCodeAt(t+2)])!==-1){let a=(n<<4)+i;o+=e.slice(s,t),o+=String.fromCharCode(a),t+=2,s=t+1,a>=128?r=2:r===0&&(r=1);continue}return}break}}if(o+=e.slice(s,t),o=c(o,l,r),o===void 0)return}else{if(++t,t===e.length)return;if(e.charCodeAt(t)===34){s=++t;let n=!1;for(;t<e.length;++t){let r=e.charCodeAt(t);if(r===92){n?(s=t,n=!1):(o+=e.slice(s,t),n=!0);continue}if(r===34){if(n){s=t,n=!1;continue}o+=e.slice(s,t);break}if(n&&=(s=t-1,!1),d[r]!==1)return}if(t===e.length)return;++t}else{for(s=t;t<e.length;++t)if(u[e.charCodeAt(t)]!==1){if(t===s)return;break}o=e.slice(s,t)}if(o=r(o,2),o===void 0)return}i=i.toLowerCase(),n[i]===void 0&&(n[i]=o)}return n}function o(e){let t;for(;;)switch(e){case`utf-8`:case`utf8`:return s.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 s.latin1;case`utf16le`:case`utf-16le`:case`ucs2`:case`ucs-2`:return s.utf16le;case`base64`:return s.base64;default:if(t===void 0){t=!0,e=e.toLowerCase();continue}return s.other.bind(e)}}var s={utf8:(e,t)=>{if(e.length===0)return``;if(typeof e==`string`){if(t<2)return e;e=Buffer.from(e,`latin1`)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>e.length===0?``:typeof e==`string`?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,`latin1`)),e.ucs2Slice(0,e.length)),base64:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,`latin1`)),e.base64Slice(0,e.length)),other:(t,n)=>{if(t.length===0)return``;typeof t==`string`&&(t=Buffer.from(t,`latin1`));try{return new TextDecoder(e).decode(t)}catch{}}};function c(e,t,n){let r=o(t);if(r)return r(e,n)}function l(e){if(typeof e!=`string`)return``;for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return e=e.slice(t+1),e===`..`||e===`.`?``:e}return e===`..`||e===`.`?``:e}var u=[0,0,0,0,0,0,0,0,0,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],d=[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],f=[0,0,0,0,0,0,0,0,0,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],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,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],m=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-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];t.exports={basename:l,convertToUTF8:c,getDecoder:o,parseContentType:n,parseDisposition:i}})),xw=s(((e,t)=>{function n(e,t,n,r,i){for(let a=0;a<i;++a)if(e[t+a]!==n[r+a])return!1;return!0}var r=class{constructor(e,t){if(typeof t!=`function`)throw Error(`Missing match callback`);if(typeof e==`string`)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw Error(`Expected Buffer for needle, got ${typeof e}`);let n=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(n),this._occ=[n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n],n>1)for(let t=0;t<n-1;++t)this._occ[e[t]]=n-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,t){let n;Buffer.isBuffer(e)||(e=Buffer.from(e,`latin1`));let r=e.length;for(this._bufPos=t||0;n!==r&&this.matches<this.maxMatches;)n=i(this,e);return n}destroy(){let e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}};function i(e,t){let r=t.length,i=e._needle,o=i.length,s=-e._lookbehindSize,c=o-1,l=i[c],u=r-o,d=e._occ,f=e._lookbehind;if(s<0){for(;s<0&&s<=u;){let n=s+c,r=n<0?f[e._lookbehindSize+n]:t[n];if(r===l&&a(e,t,s,c))return e._lookbehindSize=0,++e.matches,s>-e._lookbehindSize?e._cb(!0,f,0,e._lookbehindSize+s,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=s+o;s+=d[r]}for(;s<0&&!a(e,t,s,r-s);)++s;if(s<0){let n=e._lookbehindSize+s;return n>0&&e._cb(!1,f,0,n,!1),e._lookbehindSize-=n,f.copy(f,0,n,e._lookbehindSize),f.set(t,e._lookbehindSize),e._lookbehindSize+=r,e._bufPos=r,r}e._cb(!1,f,0,e._lookbehindSize,!1),e._lookbehindSize=0}s+=e._bufPos;let p=i[0];for(;s<=u;){let r=t[s+c];if(r===l&&t[s]===p&&n(i,0,t,s,c))return++e.matches,s>0?e._cb(!0,t,e._bufPos,s,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=s+o;s+=d[r]}for(;s<r;){if(t[s]!==p||!n(t,s,i,0,r-s)){++s;continue}t.copy(f,0,s,r),e._lookbehindSize=r-s;break}return s>0&&e._cb(!1,t,e._bufPos,s<r?s:r,!0),e._bufPos=r,r}function a(e,t,n,r){let i=e._lookbehind,a=e._lookbehindSize,o=e._needle;for(let e=0;e<r;++e,++n)if((n<0?i[a+n]:t[n])!==o[e])return!1;return!0}t.exports=r})),Sw=s(((e,t)=>{var{Readable:n,Writable:r}=require(`stream`),i=xw(),{basename:a,convertToUTF8:o,getDecoder:s,parseContentType:c,parseDisposition:l}=bw(),u=Buffer.from(`\r
|
|
137
|
+
`),d=Buffer.from(`\r`),f=Buffer.from(`-`);function p(){}var m=2e3,h=16*1024,g=0,_=1,v=2,y=class{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=g,this.name=``,this.value=``,this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=g,this.name=``,this.value=``,this.crlf=0}push(e,t,n){let r=t;for(;t<n;)switch(this.state){case g:{let i=!1;for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(D[n]!==1){if(n!==58||(this.name+=e.latin1Slice(r,t),this.name.length===0))return-1;++t,i=!0,this.state=_;break}}if(!i){this.name+=e.latin1Slice(r,t);break}}case _:{let i=!1;for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(n!==32&&n!==9){r=t,i=!0,this.state=v;break}}if(!i)break}case v:switch(this.crlf){case 0:for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(O[n]!==1){if(n!==13)return-1;++this.crlf;break}}this.value+=e.latin1Slice(r,t++);break;case 1:if(this.byteCount===h||(++this.byteCount,e[t++]!==10))return-1;++this.crlf;break;case 2:{if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];n===32||n===9?(r=t,this.crlf=0):(++this.pairCount<m&&(this.name=this.name.toLowerCase(),this.header[this.name]===void 0?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),n===13?(++this.crlf,++t):(r=t,this.crlf=0,this.state=g,this.name=``,this.value=``));break}case 3:{if(this.byteCount===h||(++this.byteCount,e[t++]!==10))return-1;let n=this.header;return this.reset(),this.cb(n),t}}break}return t}},b=class extends n{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once(`end`,()=>{if(this._read(),--t._fileEndsLeft===0&&t._finalcb){let e=t._finalcb;t._finalcb=null,process.nextTick(e)}})}_read(e){let t=this._readcb;t&&(this._readcb=null,t())}},x={push:(e,t)=>{},destroy:()=>{}};function S(e,t){let n=e._writecb;e._writecb=null,t?e.destroy(t):n&&n()}function C(e,t){return e}var w=class extends r{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.highWaterMark==`number`?e.highWaterMark:void 0};if(super(t),!e.conType.params||typeof e.conType.params.boundary!=`string`)throw Error(`Multipart: Boundary not found`);let n=e.conType.params.boundary,r=typeof e.defParamCharset==`string`&&e.defParamCharset?s(e.defParamCharset):C,m=e.defCharset||`utf8`,h=e.preservePath,g={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.fileHwm==`number`?e.fileHwm:void 0},_=e.limits,v=_&&typeof _.fieldSize==`number`?_.fieldSize:1*1024*1024,S=_&&typeof _.fileSize==`number`?_.fileSize:1/0,w=_&&typeof _.files==`number`?_.files:1/0,T=_&&typeof _.fields==`number`?_.fields:1/0,E=_&&typeof _.parts==`number`?_.parts:1/0,D=-1,O=0,k=0,A=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let ee=0,te,ne=0,j,re,ie,M,ae=!1,oe=!1,N=!1;this._hparser=null;let se=new y(e=>{this._hparser=null,A=!1,ie=`text/plain`,j=m,re=`7bit`,M=void 0,ae=!1;let t;if(!e[`content-disposition`]){A=!0;return}let n=l(e[`content-disposition`][0],r);if(!n||n.type!==`form-data`){A=!0;return}if(n.params&&(n.params.name&&(M=n.params.name),n.params[`filename*`]?t=n.params[`filename*`]:n.params.filename&&(t=n.params.filename),t!==void 0&&!h&&(t=a(t))),e[`content-type`]){let t=c(e[`content-type`][0]);t&&(ie=`${t.type}/${t.subtype}`,t.params&&typeof t.params.charset==`string`&&(j=t.params.charset.toLowerCase()))}if(e[`content-transfer-encoding`]&&(re=e[`content-transfer-encoding`][0].toLowerCase()),ie===`application/octet-stream`||t!==void 0){if(k===w){oe||(oe=!0,this.emit(`filesLimit`)),A=!0;return}if(++k,this.listenerCount(`file`)===0){A=!0;return}ee=0,this._fileStream=new b(g,this),++this._fileEndsLeft,this.emit(`file`,M,this._fileStream,{filename:t,encoding:re,mimeType:ie})}else{if(O===T){N||(N=!0,this.emit(`fieldsLimit`)),A=!0;return}if(++O,this.listenerCount(`field`)===0){A=!0;return}te=[],ne=0}}),ce=0,le=(e,t,n,r,i)=>{retrydata:for(;t;){if(this._hparser!==null){let e=this._hparser.push(t,n,r);if(e===-1){this._hparser=null,se.reset(),this.emit(`error`,Error(`Malformed part header`));break}n=e}if(n===r)break;if(ce!==0){if(ce===1){switch(t[n]){case 45:ce=2,++n;break;case 13:ce=3,++n;break;default:ce=0}if(n===r)return}if(ce===2){if(ce=0,t[n]===45){this._complete=!0,this._bparser=x;return}let e=this._writecb;this._writecb=p,le(!1,f,0,1,!1),this._writecb=e}else if(ce===3)if(ce=0,t[n]===10){if(++n,D>=E||(this._hparser=se,n===r))break;continue retrydata}else{let e=this._writecb;this._writecb=p,le(!1,d,0,1,!1),this._writecb=e}}if(!A){if(this._fileStream){let e,a=Math.min(r-n,S-ee);i?e=t.slice(n,n+a):(e=Buffer.allocUnsafe(a),t.copy(e,0,n,n+a)),ee+=e.length,ee===S?(e.length>0&&this._fileStream.push(e),this._fileStream.emit(`limit`),this._fileStream.truncated=!0,A=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(te!==void 0){let e,a=Math.min(r-n,v-ne);i?e=t.slice(n,n+a):(e=Buffer.allocUnsafe(a),t.copy(e,0,n,n+a)),ne+=a,te.push(e),ne===v&&(A=!0,ae=!0)}}break}if(e){if(ce=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(te!==void 0){let e;switch(te.length){case 0:e=``;break;case 1:e=o(te[0],j,0);break;default:e=o(Buffer.concat(te,ne),j,0)}te=void 0,ne=0,this.emit(`field`,M,e,{nameTruncated:!1,valueTruncated:ae,encoding:re,mimeType:ie})}++D===E&&this.emit(`partsLimit`)}};this._bparser=new i(`\r\n--${n}`,le),this._writecb=null,this._finalcb=null,this.write(u)}static detect(e){return e.type===`multipart`&&e.subtype===`form-data`}_write(e,t,n){this._writecb=n,this._bparser.push(e,0),this._writecb&&S(this)}_destroy(e,t){this._hparser=null,this._bparser=x,e||=E(this);let n=this._fileStream;n&&(this._fileStream=null,n.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error(`Unexpected end of form`));this._fileEndsLeft?this._finalcb=T.bind(null,this,e):T(this,e)}};function T(e,t,n){if(n)return t(n);n=E(e),t(n)}function E(e){if(e._hparser)return Error(`Malformed part header`);let t=e._fileStream;if(t&&(e._fileStream=null,t.destroy(Error(`Unexpected end of file`))),!e._complete)return Error(`Unexpected end of form`)}var D=[0,0,0,0,0,0,0,0,0,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],O=[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];t.exports=w})),Cw=s(((e,t)=>{var{Writable:n}=require(`stream`),{getDecoder:r}=bw(),i=class extends n{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.highWaterMark==`number`?e.highWaterMark:void 0};super(t);let n=e.defCharset||`utf8`;e.conType.params&&typeof e.conType.params.charset==`string`&&(n=e.conType.params.charset),this.charset=n;let i=e.limits;this.fieldSizeLimit=i&&typeof i.fieldSize==`number`?i.fieldSize:1*1024*1024,this.fieldsLimit=i&&typeof i.fields==`number`?i.fields:1/0,this.fieldNameSizeLimit=i&&typeof i.fieldNameSize==`number`?i.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=r(n)}static detect(e){return e.type===`application`&&e.subtype===`x-www-form-urlencoded`}_write(e,t,n){if(this._fields>=this.fieldsLimit)return n();let r=0,i=e.length;if(this._lastPos=0,this._byte!==-2){if(r=a(this,e,r,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();this._inKey?++this._bytesKey:++this._bytesVal}main:for(;r<i;)if(this._inKey){for(r=o(this,e,r,i);r<i;){switch(e[r]){case 61:this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue main;case 38:if(this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,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`),n();continue;case 43:this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._key+=` `,this._lastPos=r+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=r+1,this._byte=-1,r=a(this,e,r+1,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();++this._bytesKey,r=o(this,e,r,i);continue}++r,++this._bytesKey,r=o(this,e,r,i)}this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r))}else{for(r=s(this,e,r,i);r<i;){switch(e[r]){case 38:if(this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,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`),n();continue main;case 43:this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._val+=` `,this._lastPos=r+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._lastPos=r+1,this._byte=-1,r=a(this,e,r+1,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();++this._bytesVal,r=s(this,e,r,i);continue}++r,++this._bytesVal,r=s(this,e,r,i)}this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r))}n()}_final(e){if(this._byte!==-2)return e(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`})),e()}};function a(e,t,n,r){if(n>=r)return r;if(e._byte===-1){let i=c[t[n++]];if(i===-1)return-1;if(i>=8&&(e._encode=2),n<r){let r=c[t[n++]];if(r===-1)return-1;e._inKey?e._key+=String.fromCharCode((i<<4)+r):e._val+=String.fromCharCode((i<<4)+r),e._byte=-2,e._lastPos=n}else e._byte=i}else{let r=c[t[n++]];if(r===-1)return-1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+r):e._val+=String.fromCharCode((e._byte<<4)+r),e._byte=-2,e._lastPos=n}return n}function o(e,t,n,r){if(e._bytesKey>e.fieldNameSizeLimit){for(e._keyTrunc||e._lastPos<n&&(e._key+=t.latin1Slice(e._lastPos,n-1)),e._keyTrunc=!0;n<r;++n){let r=t[n];if(r===61||r===38)break;++e._bytesKey}e._lastPos=n}return n}function s(e,t,n,r){if(e._bytesVal>e.fieldSizeLimit){for(e._valTrunc||e._lastPos<n&&(e._val+=t.latin1Slice(e._lastPos,n-1)),e._valTrunc=!0;n<r&&t[n]!==38;++n)++e._bytesVal;e._lastPos=n}return n}var c=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-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];t.exports=i})),ww=s(((e,t)=>{var{parseContentType:n}=bw();function r(e){let t=e.headers,r=n(t[`content-type`]);if(!r)throw Error(`Malformed content type`);for(let n of i){if(!n.detect(r))continue;let i={limits:e.limits,headers:t,conType:r,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(i.highWaterMark=e.highWaterMark),e.fileHwm&&(i.fileHwm=e.fileHwm),i.defCharset=e.defCharset,i.defParamCharset=e.defParamCharset,i.preservePath=e.preservePath,new n(i)}throw Error(`Unsupported content type: ${t[`content-type`]}`)}var i=[Sw(),Cw()].filter(function(e){return typeof e.detect==`function`});t.exports=e=>{if((typeof e!=`object`||!e)&&(e={}),typeof e.headers!=`object`||e.headers===null||typeof e.headers[`content-type`]!=`string`)throw Error(`Missing Content-Type`);return r(e)}})),Tw=s(((e,t)=>{var n=/^[^\[]*/,r=/^\[(\d+)\]/,i=/^\[([^\]]+)\]/;function a(e){function t(){return[{type:`object`,key:e,last:!0}]}var a=n.exec(e)[0];if(!a)return t();for(var o=e.length,s=a.length,c={type:`object`,key:a},l=[c];s<o;){var u;if(e[s]===`[`&&e[s+1]===`]`){if(s+=2,c.append=!0,s!==o)return t();continue}if(u=r.exec(e.substring(s)),u!==null){s+=u[0].length,c.nextType=`array`,c={type:`array`,key:parseInt(u[1],10)},l.push(c);continue}if(u=i.exec(e.substring(s)),u!==null){s+=u[0].length,c.nextType=`object`,c={type:`object`,key:u[1]},l.push(c);continue}return t()}return c.last=!0,l}t.exports=a})),Ew=s(((e,t)=>{function n(e){return e===void 0?`undefined`:Array.isArray(e)?`array`:typeof e==`object`?`object`:`scalar`}function r(e,t,i,a){switch(n(i)){case`undefined`:t.append?e[t.key]=[a]:e[t.key]=a;break;case`array`:e[t.key].push(a);break;case`object`:return r(i,{type:`object`,key:``,last:!0},i[``],a);case`scalar`:e[t.key]=[e[t.key],a];break}return e}function i(e,t,i,a){if(t.last)return r(e,t,i,a);var o;switch(n(i)){case`undefined`:return t.nextType===`array`?e[t.key]=[]:e[t.key]=Object.create(null),e[t.key];case`object`:return e[t.key];case`array`:return t.nextType===`array`?i:(o=Object.create(null),e[t.key]=o,i.forEach(function(e,t){e!==void 0&&(o[``+t]=e)}),o);case`scalar`:return o=Object.create(null),o[``]=i,e[t.key]=o,o}}t.exports=i})),Dw=s(((e,t)=>{var n=Tw(),r=Ew();function i(e,t,i){n(t).reduce(function(e,t){return r(e,t,e[t.key],i)},e)}t.exports=i})),Ow=s(((e,t)=>{var n=require(`events`).EventEmitter;function r(){n.call(this),this.value=0}r.prototype=Object.create(n.prototype),r.prototype.increment=function(){this.value++},r.prototype.decrement=function(){--this.value===0&&this.emit(`zero`)},r.prototype.isZero=function(){return this.value===0},r.prototype.onceZero=function(e){if(this.isZero())return e();this.once(`zero`,e)},t.exports=r})),kw=s(((e,t)=>{var n=require(`util`),r={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 i(e,t){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=r[e],this.code=e,t&&(this.field=t)}n.inherits(i,Error),t.exports=i})),Aw=s(((e,t)=>{function n(e,t){var n=e.indexOf(t);~n&&e.splice(n,1)}function r(e,t){switch(this.strategy=e,this.req=t,e){case`NONE`:break;case`VALUE`:break;case`ARRAY`:t.files=[];break;case`OBJECT`:t.files=Object.create(null);break;default:throw Error(`Unknown file strategy: `+e)}}r.prototype.insertPlaceholder=function(e){var t={fieldname:e.fieldname};switch(this.strategy){case`NONE`:break;case`VALUE`:break;case`ARRAY`:this.req.files.push(t);break;case`OBJECT`:this.req.files[e.fieldname]?this.req.files[e.fieldname].push(t):this.req.files[e.fieldname]=[t];break}return t},r.prototype.removePlaceholder=function(e){switch(this.strategy){case`NONE`:break;case`VALUE`:break;case`ARRAY`:n(this.req.files,e);break;case`OBJECT`:this.req.files[e.fieldname].length===1?delete this.req.files[e.fieldname]:n(this.req.files[e.fieldname],e);break}},r.prototype.replacePlaceholder=function(e,t){if(this.strategy===`VALUE`){this.req.file=t;return}delete e.fieldname,Object.assign(e,t)},t.exports=r})),jw=s(((e,t)=>{function n(e,t,n){var r=e.length,i=[];if(r===0)return n(null,i);function a(o){var s=e[o];t(s,function(e){e&&(e.file=s,e.field=s.fieldname,i.push(e)),o<r-1?setImmediate(function(){a(o+1)}):n(null,i)})}a(0)}t.exports=n})),Mw=s(((e,t)=>{var n=yw(),r=ww(),i=Dw(),a=Ow(),o=kw(),s=Aw(),c=jw();function l(e){e.on(`readable`,()=>{for(;e.read()!==null;);})}function u(e){return function(t,u,d){if(!n(t,[`multipart`]))return d();var f=e(),p=f.limits,m=f.storage,h=f.fileFilter,g=f.fileStrategy,_=f.preservePath,v=f.defParamCharset;t.body=Object.create(null);var y,b=null,x=!1,S=!1,C=!1,w=new a,T=[];function E(e){var n=!1;function r(){n||(n=!0,d(e))}if(!x){if(x=!0,y&&(t.unpipe(y),setImmediate(()=>{y.removeAllListeners()})),l(t),t.resume(),e&&t.readable&&!t.destroyed){t.once(`end`,r),t.once(`error`,r),t.once(`close`,r);return}d(e)}}function D(){S&&w.isZero()&&!C&&E()}function O(e,n){if(C)return;C=!0;function r(){function n(e,n){m._removeFile(t,e,n)}c(T,n,function(t,n){if(t)return E(t);e.storageErrors=n,E(e)})}n?r():w.onceZero(r)}function k(e,t){O(new o(e,t))}function A(e){x||(y&&(t.unpipe(y),y.destroy(e)),O(e,!0))}t.on(`error`,function(e){A(e||Error(`Request error`))}),t.on(`aborted`,function(){A(Error(`Request aborted`))}),t.on(`close`,function(){t.readableEnded||A(Error(`Request closed`))});try{y=r({headers:t.headers,limits:p,preservePath:_,defParamCharset:v})}catch(e){return d(e)}b=new s(g,t),y.on(`field`,function(e,n,{nameTruncated:r,valueTruncated:a}){if(e==null)return k(`MISSING_FIELD_NAME`);if(r)return k(`LIMIT_FIELD_KEY`);if(a)return k(`LIMIT_FIELD_VALUE`,e);if(p&&Object.prototype.hasOwnProperty.call(p,`fieldNameSize`)&&e.length>p.fieldNameSize)return k(`LIMIT_FIELD_KEY`);i(t.body,e,n)}),y.on(`file`,function(e,n,{filename:r,encoding:i,mimeType:a}){var o=!1;if(n.on(`error`,function(e){o&&w.decrement(),O(e)}),e==null)return k(`MISSING_FIELD_NAME`);if(!r)return n.resume();if(p&&Object.prototype.hasOwnProperty.call(p,`fieldNameSize`)&&e.length>p.fieldNameSize)return k(`LIMIT_FIELD_KEY`);var s={fieldname:e,originalname:r,encoding:i,mimetype:a},c=b.insertPlaceholder(s);h(t,s,function(r,i){if(C)return b.removePlaceholder(c),n.resume();if(r)return b.removePlaceholder(c),O(r);if(!i)return b.removePlaceholder(c),n.resume();var a=!1;o=!0,w.increment(),Object.defineProperty(s,`stream`,{configurable:!0,enumerable:!1,value:n}),n.on(`limit`,function(){a=!0,k(`LIMIT_FILE_SIZE`,e)}),m._handleFile(t,s,function(e,t){if(a)return b.removePlaceholder(c),T.push({...s,...t}),w.decrement();if(e)return b.removePlaceholder(c),w.decrement(),O(e);var n={...s,...t};b.replacePlaceholder(c,n),T.push(n),w.decrement(),D()})})}),y.on(`error`,function(e){O(e)}),y.on(`partsLimit`,function(){k(`LIMIT_PART_COUNT`)}),y.on(`filesLimit`,function(){k(`LIMIT_FILE_COUNT`)}),y.on(`fieldsLimit`,function(){k(`LIMIT_FIELD_COUNT`)}),y.on(`close`,function(){S=!0,D()}),t.pipe(y)}}t.exports=u})),Nw=s(((e,t)=>{var n=require(`fs`),r=require(`os`),i=require(`path`),a=require(`crypto`);function o(e,t,n){a.randomBytes(16,function(e,t){n(e,e?void 0:t.toString(`hex`))})}function s(e,t,n){n(null,r.tmpdir())}function c(e){this.getFilename=e.filename||o,typeof e.destination==`string`?(n.mkdirSync(e.destination,{recursive:!0}),this.getDestination=function(t,n,r){r(null,e.destination)}):this.getDestination=e.destination||s}c.prototype._handleFile=function(e,t,r){var a=this;a.getDestination(e,t,function(o,s){if(o)return r(o);a.getFilename(e,t,function(e,a){if(e)return r(e);var o=i.join(s,a),c=n.createWriteStream(o);t.stream.pipe(c),c.on(`error`,r),c.on(`finish`,function(){r(null,{destination:s,filename:a,path:o,size:c.bytesWritten})})})})},c.prototype._removeFile=function(e,t,r){var i=t.path;delete t.destination,delete t.filename,delete t.path,n.unlink(i,r)},t.exports=function(e){return new c(e)}})),Pw=s(((e,t)=>{t.exports=require(`events`).EventEmitter})),Fw=s(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=require(`buffer`).Buffer,d=require(`util`).inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),Iw=s(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){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(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Lw=s(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),Rw=s(((e,t)=>{var n=Lw().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),zw=s(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),Bw=s(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),Vw=s(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){ce(t,e)}}var r;T.WritableState=C;var i={deprecate:Bw()},a=Pw(),o=require(`buffer`).Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=Iw(),d=Rw().getHighWaterMark,f=Lw().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;zw()(T,a);function S(){}function C(e,t,i){r||=Hw(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ne(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=Hw();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ie(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return c}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function ee(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(N,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),N(e,t))}function te(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function ne(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(te(n),t)ee(e,n,r,t,i);else{var a=M(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&ie(e,n),r?process.nextTick(j,e,n,a,i):j(e,n,a,i)}}function j(e,t,n,r){n||re(e,t),t.pendingcb--,r(),N(e,t)}function re(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function ie(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,A(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}T.prototype._write=function(e,t,n){n(new m(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||se(this,r,n),this},Object.defineProperty(T.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function M(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ae(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit(`prefinish`),N(e,t)})}function oe(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(ae,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function N(e,t){var n=M(t);if(n&&(oe(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function se(e,t,n){t.ending=!0,N(e,t),n&&(t.finished?process.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function ce(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(e,t){t(e)}})),Hw=s(((e,t)=>{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Jw(),i=Vw();zw()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),Uw=s(((e,t)=>{var n=require(`buffer`),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Ww=s((e=>{var t=Uw().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.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(e){if(!e)return`utf8`;for(var t;;)switch(e){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 e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Gw=s(((e,t)=>{var n=Lw().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Kw=s(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=Gw(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),qw=s(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Jw=s(((e,t)=>{t.exports=E;var n;E.ReadableState=T,require(`events`).EventEmitter;var r=function(e,t){return e.listeners(t).length},i=Pw(),a=require(`buffer`).Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=require(`util`),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=Fw(),f=Iw(),p=Rw().getHighWaterMark,m=Lw().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;zw()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=Hw(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=Ww().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=Hw(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ne(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):ie(e,o)):O(e,o,t,!1);else r||(o.reading=!1,ie(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&j(e)),ie(e,t)}function k(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){y||=Ww().StringDecoder;var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function ee(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function te(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=ee(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?de(this):j(this),null;if(e=te(e,t),e===0&&t.ended)return t.length===0&&de(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=te(n,t)));var i=e>0?ue(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&de(this)),i!==null&&this.emit(`data`,i),i};function ne(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,re(e)))}}function j(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(re,e))}function re(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,le(e)}function ie(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}E.prototype._read=function(e){S(this,new _(`_read()`))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?s:g;i.endEmitted?process.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=ae(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&pe(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function ae(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,le(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=pe(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?j(this):r.reading||process.nextTick(N,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(oe,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(oe,this),t};function oe(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function N(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,se(this,e)),e.paused=!1,this};function se(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(ce,e,t))}function ce(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),le(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function le(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(E.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=Kw()),b(this)}),Object.defineProperty(E.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=ue,Object.defineProperty(E.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}});function ue(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function de(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(fe,t,e))}function fe(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=qw()),x(E,e,t)});function pe(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),Yw=s(((e,t)=>{t.exports=l;var n=Lw().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Hw();zw()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),Xw=s(((e,t)=>{t.exports=r;var n=Yw();zw()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Zw=s(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Lw().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=Gw()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a(`streams`);var i,o=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){i||=e,e&&o.forEach(u),!a&&(o.forEach(u),r(i))})});return t.reduce(d)}t.exports=p})),Qw=s(((e,t)=>{e=t.exports=Jw(),e.Stream=e,e.Readable=e,e.Writable=Vw(),e.Duplex=Hw(),e.Transform=Yw(),e.PassThrough=Xw(),e.finished=Gw(),e.pipeline=Zw()})),$w=s(((e,t)=>{var n=Object.prototype.toString,r=typeof Buffer<`u`&&typeof Buffer.alloc==`function`&&typeof Buffer.allocUnsafe==`function`&&typeof Buffer.from==`function`;function i(e){return n.call(e).slice(8,-1)===`ArrayBuffer`}function a(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw RangeError(`'offset' is out of bounds`);if(n===void 0)n=i;else if(n>>>=0,n>i)throw RangeError(`'length' is out of bounds`);return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function o(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!Buffer.isEncoding(t))throw TypeError(`"encoding" must be a valid string encoding`);return r?Buffer.from(e,t):new Buffer(e,t)}function s(e,t,n){if(typeof e==`number`)throw TypeError(`"value" argument must not be a number`);return i(e)?a(e,t,n):typeof e==`string`?o(e,t):r?Buffer.from(e):new Buffer(e)}t.exports=s})),eT=s((e=>{var t=void 0,n=1e5,r=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,``)},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return typeof e==`function`},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),i=Math.LN2,a=Math.abs,o=Math.floor,s=Math.log,c=Math.min,l=Math.pow,u=Math.round;function d(e){if(p&&f){var t=p(e),n;for(n=0;n<t.length;n+=1)f(e,t[n],{value:e[t[n]],writable:!1,enumerable:!1,configurable:!1})}}var f=Object.defineProperty&&(function(){try{return Object.defineProperty({},`x`,{}),!0}catch{return!1}})()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw TypeError(`Object.defineProperty called on non-object`);return r.HasProperty(n,`get`)&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),r.HasProperty(n,`set`)&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),r.HasProperty(n,`value`)&&(e[t]=n.value),e},p=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw TypeError(`Object.getOwnPropertyNames called on non-object`);var t=[],n;for(n in e)r.HasOwnProperty(e,n)&&t.push(n);return t};function m(e){if(!f)return;if(e.length>n)throw RangeError(`Array too large for polyfill`);function t(t){f(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}var r;for(r=0;r<e.length;r+=1)t(r)}function h(e,t){var n=32-t;return e<<n>>n}function g(e,t){var n=32-t;return e<<n>>>n}function _(e){return[e&255]}function v(e){return h(e[0],8)}function y(e){return[e&255]}function b(e){return g(e[0],8)}function x(e){return e=u(Number(e)),[e<0?0:e>255?255:e&255]}function S(e){return[e>>8&255,e&255]}function C(e){return h(e[0]<<8|e[1],16)}function w(e){return[e>>8&255,e&255]}function T(e){return g(e[0]<<8|e[1],16)}function E(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function D(e){return h(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function O(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function k(e){return g(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function A(e,t,n){var r=(1<<t-1)-1,u,d,f,p,m,h,g;function _(e){var t=o(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e===e?e===1/0||e===-1/0?(d=(1<<t)-1,f=0,u=+(e<0)):e===0?(d=0,f=0,u=+(1/e==-1/0)):(u=e<0,e=a(e),e>=l(2,1-r)?(d=c(o(s(e)/i),1023),f=_(e/l(2,d)*l(2,n)),f/l(2,n)>=2&&(d+=1,f=1),d>r?(d=(1<<t)-1,f=0):(d+=r,f-=l(2,n))):(d=0,f=_(e/l(2,1-r-n)))):(d=(1<<t)-1,f=l(2,n-1),u=0),m=[],p=n;p;--p)m.push(f%2?1:0),f=o(f/2);for(p=t;p;--p)m.push(d%2?1:0),d=o(d/2);for(m.push(+!!u),m.reverse(),h=m.join(``),g=[];h.length;)g.push(parseInt(h.substring(0,8),2)),h=h.substring(8);return g}function ee(e,t,n){var r=[],i,a,o,s,c,u,d,f;for(i=e.length;i;--i)for(o=e[i-1],a=8;a;--a)r.push(o%2?1:0),o>>=1;return r.reverse(),s=r.join(``),c=(1<<t-1)-1,u=parseInt(s.substring(0,1),2)?-1:1,d=parseInt(s.substring(1,1+t),2),f=parseInt(s.substring(1+t),2),d===(1<<t)-1?f===0?u*(1/0):NaN:d>0?u*l(2,d-c)*(1+f/l(2,n)):f===0?u<0?-0:0:u*l(2,-(c-1))*(f/l(2,n))}function te(e){return ee(e,11,52)}function ne(e){return A(e,11,52)}function j(e){return ee(e,8,23)}function re(e){return A(e,8,23)}(function(){var n=function(e){if(e=r.ToInt32(e),e<0)throw RangeError(`ArrayBuffer size is not a small enough positive integer`);this.byteLength=e,this._bytes=[],this._bytes.length=e;var t;for(t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};e.ArrayBuffer=e.ArrayBuffer||n;var i=function(){};function a(e,a,o){var s=function(e,t,i){var a,o,c,l;if(!arguments.length||typeof arguments[0]==`number`){if(this.length=r.ToInt32(arguments[0]),i<0)throw RangeError(`ArrayBufferView size is not a small enough positive integer`);this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]==`object`&&arguments[0].constructor===s)for(a=arguments[0],this.length=a.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,a._getter(c));else if(typeof arguments[0]==`object`&&!(arguments[0]instanceof n||r.Class(arguments[0])===`ArrayBuffer`))for(o=arguments[0],this.length=r.ToUint32(o.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)l=o[c],this._setter(c,Number(l));else if(typeof arguments[0]==`object`&&(arguments[0]instanceof n||r.Class(arguments[0])===`ArrayBuffer`)){if(this.buffer=e,this.byteOffset=r.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(this.byteOffset%this.BYTES_PER_ELEMENT)throw 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 RangeError(`length of buffer minus byteOffset not a multiple of the element size`);this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(i),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`)}else throw TypeError(`Unexpected argument type(s)`);this.constructor=s,d(this),m(this)};return s.prototype=new i,s.prototype.BYTES_PER_ELEMENT=e,s.prototype._pack=a,s.prototype._unpack=o,s.BYTES_PER_ELEMENT=e,s.prototype._getter=function(e){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);if(e=r.ToUint32(e),e>=this.length)return t;var n=[],i,a;for(i=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,a+=1)n.push(this.buffer._bytes[a]);return this._unpack(n)},s.prototype.get=s.prototype._getter,s.prototype._setter=function(e,n){if(arguments.length<2)throw SyntaxError(`Not enough arguments`);if(e=r.ToUint32(e),e>=this.length)return t;var i=this._pack(n),a,o;for(a=0,o=this.byteOffset+e*this.BYTES_PER_ELEMENT;a<this.BYTES_PER_ELEMENT;a+=1,o+=1)this.buffer._bytes[o]=i[a]},s.prototype.set=function(e,t){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);var n,i,a,o,s,c,l,u,d,f;if(typeof arguments[0]==`object`&&arguments[0].constructor===this.constructor){if(n=arguments[0],a=r.ToUint32(arguments[1]),a+n.length>this.length)throw RangeError(`Offset plus length of array is out of range`);if(u=this.byteOffset+a*this.BYTES_PER_ELEMENT,d=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(f=[],s=0,c=n.byteOffset;s<d;s+=1,c+=1)f[s]=n.buffer._bytes[c];for(s=0,l=u;s<d;s+=1,l+=1)this.buffer._bytes[l]=f[s]}else for(s=0,c=n.byteOffset,l=u;s<d;s+=1,c+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[c]}else if(typeof arguments[0]==`object`&&arguments[0].length!==void 0){if(i=arguments[0],o=r.ToUint32(i.length),a=r.ToUint32(arguments[1]),a+o>this.length)throw RangeError(`Offset plus length of array is out of range`);for(s=0;s<o;s+=1)c=i[s],this._setter(a+s,Number(c))}else throw TypeError(`Unexpected argument type(s)`)},s.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=r.ToInt32(e),t=r.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length),t=n(t,0,this.length);var i=t-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},s}var o=a(1,_,v),s=a(1,y,b),c=a(1,x,b),l=a(2,S,C),u=a(2,w,T),f=a(4,E,D),p=a(4,O,k),h=a(4,re,j),g=a(8,ne,te);e.Int8Array=e.Int8Array||o,e.Uint8Array=e.Uint8Array||s,e.Uint8ClampedArray=e.Uint8ClampedArray||c,e.Int16Array=e.Int16Array||l,e.Uint16Array=e.Uint16Array||u,e.Int32Array=e.Int32Array||f,e.Uint32Array=e.Uint32Array||p,e.Float32Array=e.Float32Array||h,e.Float64Array=e.Float64Array||g})(),(function(){function t(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}var n=function(){var n=new e.Uint16Array([4660]);return t(new e.Uint8Array(n.buffer),0)===18}(),i=function(t,n,i){if(arguments.length===0)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||r.Class(t)===`ArrayBuffer`))throw TypeError(`TypeError`);if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=r.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`);d(this)};function a(i){return function(a,o){if(a=r.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);a+=this.byteOffset;var s=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),c=[],l;for(l=0;l<i.BYTES_PER_ELEMENT;l+=1)c.push(t(s,l));return!!o==!!n&&c.reverse(),t(new i(new e.Uint8Array(c).buffer),0)}}i.prototype.getUint8=a(e.Uint8Array),i.prototype.getInt8=a(e.Int8Array),i.prototype.getUint16=a(e.Uint16Array),i.prototype.getInt16=a(e.Int16Array),i.prototype.getUint32=a(e.Uint32Array),i.prototype.getInt32=a(e.Int32Array),i.prototype.getFloat32=a(e.Float32Array),i.prototype.getFloat64=a(e.Float64Array);function o(i){return function(a,o,s){if(a=r.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);var c=new i([o]),l=new e.Uint8Array(c.buffer),u=[],d,f;for(d=0;d<i.BYTES_PER_ELEMENT;d+=1)u.push(t(l,d));!!s==!!n&&u.reverse(),f=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),f.set(u)}}i.prototype.setUint8=o(e.Uint8Array),i.prototype.setInt8=o(e.Int8Array),i.prototype.setUint16=o(e.Uint16Array),i.prototype.setInt16=o(e.Int16Array),i.prototype.setUint32=o(e.Uint32Array),i.prototype.setInt32=o(e.Int32Array),i.prototype.setFloat32=o(e.Float32Array),i.prototype.setFloat64=o(e.Float64Array),e.DataView=e.DataView||i})()})),tT=s(((e,t)=>{var n=Qw().Writable,r=zw(),i=$w();if(typeof Uint8Array>`u`)var a=eT().Uint8Array;else var a=Uint8Array;function o(e,t){if(!(this instanceof o))return new o(e,t);typeof e==`function`&&(t=e,e={}),e||={};var r=e.encoding,i=!1;r?(r=String(r).toLowerCase(),(r===`u8`||r===`uint8`)&&(r=`uint8array`)):i=!0,n.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=i,t&&this.on(`finish`,function(){t(this.getBody())}),this.body=[]}t.exports=o,r(o,n),o.prototype._write=function(e,t,n){this.body.push(e),n()},o.prototype.inferEncoding=function(e){var t=e===void 0?this.body[0]:e;return Buffer.isBuffer(t)?`buffer`:typeof Uint8Array<`u`&&t instanceof Uint8Array?`uint8array`:Array.isArray(t)?`array`:typeof t==`string`?`string`:Object.prototype.toString.call(t)===`[object Object]`?`object`:`buffer`},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding===`array`?d(this.body):this.encoding===`string`?l(this.body):this.encoding===`buffer`?u(this.body):this.encoding===`uint8array`?f(this.body):this.body)},Array.isArray;function s(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function c(e){return typeof e==`string`||s(e)||e&&typeof e.subarray==`function`}function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];typeof r==`string`||Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.isBuffer(e[0])?(t=Buffer.concat(t),t=t.toString(`utf8`)):t=t.join(``),t}function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.concat(t)}function d(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}function f(e){for(var t=0,n=0;n<e.length;n++)typeof e[n]==`string`&&(e[n]=i(e[n])),t+=e[n].length;for(var r=new a(t),n=0,o=0;n<e.length;n++)for(var s=e[n],c=0;c<s.length;c++)r[o++]=s[c];return r}})),nT=s(((e,t)=>{var n=tT();function r(e){}r.prototype._handleFile=function(e,t,r){t.stream.pipe(n({encoding:`buffer`},function(e){r(null,{buffer:e,size:e.length})}))},r.prototype._removeFile=function(e,t,n){delete t.buffer,n(null)},t.exports=function(e){return new r(e)}})),rT=s(((e,t)=>{var n=Mw(),r=Nw(),i=nT(),a=kw();function o(e,t,n){n(null,!0)}function s(e){e.storage?this.storage=e.storage:e.dest?this.storage=r({destination:e.dest}):this.storage=i(),this.limits=e.limits,this.preservePath=e.preservePath,this.defParamCharset=e.defParamCharset||`latin1`,this.fileFilter=e.fileFilter||o}s.prototype._makeMiddleware=function(e,t){function r(){var n=this.fileFilter,r=Object.create(null);e.forEach(function(e){typeof e.maxCount==`number`?r[e.name]=e.maxCount:r[e.name]=1/0});function i(e,t,i){if((r[t.fieldname]||0)<=0)return i(new a(`LIMIT_UNEXPECTED_FILE`,t.fieldname));--r[t.fieldname],n(e,t,i)}return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:i,fileStrategy:t}}return n(r.bind(this))},s.prototype.single=function(e){return this._makeMiddleware([{name:e,maxCount:1}],`VALUE`)},s.prototype.array=function(e,t){return this._makeMiddleware([{name:e,maxCount:t}],`ARRAY`)},s.prototype.fields=function(e){return this._makeMiddleware(e,`OBJECT`)},s.prototype.none=function(){return this._makeMiddleware([],`NONE`)},s.prototype.any=function(){function e(){return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:`ARRAY`}}return n(e.bind(this))};function c(e){if(e===void 0)return new s({});if(typeof e==`object`&&e)return new s(e);throw TypeError(`Expected object for argument options`)}t.exports=c,t.exports.diskStorage=r,t.exports.memoryStorage=i,t.exports.MulterError=a})),iT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MULTER_MODULE_OPTIONS=void 0,e.MULTER_MODULE_OPTIONS=`MULTER_MODULE_OPTIONS`})),aT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.busboyExceptions=e.multerExceptions=void 0,e.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`},e.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`}})),oT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.transformException=r;var t=H(),n=aT();function r(e){if(!e||e instanceof t.HttpException)return e;switch(e.message){case n.multerExceptions.LIMIT_FILE_SIZE:return new t.PayloadTooLargeException(e.message);case n.multerExceptions.LIMIT_FILE_COUNT:case n.multerExceptions.LIMIT_FIELD_KEY:case n.multerExceptions.LIMIT_FIELD_VALUE:case n.multerExceptions.LIMIT_FIELD_COUNT:case n.multerExceptions.LIMIT_UNEXPECTED_FILE:case n.multerExceptions.LIMIT_PART_COUNT:case n.multerExceptions.MISSING_FIELD_NAME:return e.field?new t.BadRequestException(`${e.message} - ${e.field}`):new t.BadRequestException(e.message);case n.busboyExceptions.MULTIPART_BOUNDARY_NOT_FOUND:return new t.BadRequestException(e.message);case n.busboyExceptions.MULTIPART_MALFORMED_PART_HEADER:case n.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FORM:case n.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FILE:return new t.BadRequestException(`Multipart: ${e.message}`)}return e}})),sT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnyFilesInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e){let o=class{constructor(t={}){this.multer=r({...t,...e})}async intercept(e,t){let n=e.switchToHttp();return await new Promise((e,t)=>this.multer.any()(n.getRequest(),n.getResponse(),n=>{if(n)return t((0,a.transformException)(n));e()})),t.handle()}};return o=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],o),(0,n.mixin)(o)}})),cT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileFieldsInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e,o){let s=class{constructor(e={}){this.multer=r({...e,...o})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.fields(e)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return s=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],s),(0,n.mixin)(s)}})),lT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e,o){let s=class{constructor(e={}){this.multer=r({...e,...o})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.single(e)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return s=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],s),(0,n.mixin)(s)}})),uT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FilesInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e,o,s){let c=class{constructor(e={}){this.multer=r({...e,...s})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.array(e,o)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return c=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],c),(0,n.mixin)(c)}})),dT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoFilesInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e){let o=class{constructor(t={}){this.multer=r({...t,...e})}async intercept(e,t){let n=e.switchToHttp();return await new Promise((e,t)=>this.multer.none()(n.getRequest(),n.getResponse(),n=>{if(n)return t((0,a.transformException)(n));e()})),t.handle()}};return o=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],o),(0,n.mixin)(o)}})),fT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(sT(),e),t.__exportStar(cT(),e),t.__exportStar(lT(),e),t.__exportStar(uT(),e),t.__exportStar(dT(),e)})),pT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),mT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(pT(),e)})),hT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MULTER_MODULE_ID=void 0,e.MULTER_MODULE_ID=`MULTER_MODULE_ID`})),gT=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.MulterModule=void 0;var n=E(),r=H(),i=fn(),a=iT(),o=hT(),s=t=class{static register(e={}){return{module:t,providers:[{provide:a.MULTER_MODULE_OPTIONS,useFactory:()=>e},{provide:o.MULTER_MODULE_ID,useValue:(0,i.randomStringGenerator)()}],exports:[a.MULTER_MODULE_OPTIONS]}}static registerAsync(e){return{module:t,imports:e.imports,providers:[...this.createAsyncProviders(e),{provide:o.MULTER_MODULE_ID,useValue:(0,i.randomStringGenerator)()}],exports:[a.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(e){return e.useExisting||e.useFactory?[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(e){return e.useFactory?{provide:a.MULTER_MODULE_OPTIONS,useFactory:e.useFactory,inject:e.inject||[]}:{provide:a.MULTER_MODULE_OPTIONS,useFactory:async e=>e.createMulterOptions(),inject:[e.useExisting||e.useClass]}}};e.MulterModule=s,e.MulterModule=s=t=n.__decorate([(0,r.Module)({})],s)})),_T=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(fT(),e),t.__exportStar(mT(),e),t.__exportStar(gT(),e)})),vT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(lw(),e),t.__exportStar(fw(),e),t.__exportStar(_T(),e)})),yT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestFactory=e.NestFactoryStatic=void 0;var t=it(),n=ct(),r=Vn(),i=A(),a=Dx(),o=Ox(),s=KC(),c=qC(),l=JC(),u=QS(),d=IS(),f=YC(),p=tC(),m=XC(),h=MS(),g=kx(),_=WC(),v=jC(),y=rw(),b=class{constructor(){this.logger=new n.Logger(`NestFactory`,{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}async create(e,t,n){let[r,i]=this.isHttpServer(t)?[t,n]:[this.createHttpAdapter(),t],o=new a.ApplicationConfig,s=new u.NestContainer(o,i),c=this.createGraphInspector(i,s);this.setAbortOnError(t,n),this.registerLoggerConfiguration(i),await this.initialize(e,s,c,o,i,r);let l=new _.NestApplication(s,r,o,c,i),d=this.createNestInstance(l);return this.createAdapterProxy(d,r)}async createMicroservice(e,t){let{NestMicroservice:n}=(0,r.loadPackage)(`@nestjs/microservices`,`NestFactory`,()=>UC()),i=new a.ApplicationConfig,o=new u.NestContainer(i,t),s=this.createGraphInspector(t,o);return this.setAbortOnError(t),this.registerLoggerConfiguration(t),await this.initialize(e,o,s,i,t),this.createNestInstance(new n(o,t,s,i))}async createApplicationContext(e,t){let n=new a.ApplicationConfig,r=new u.NestContainer(n,t),i=this.createGraphInspector(t,r);this.setAbortOnError(t),this.registerLoggerConfiguration(t),await this.initialize(e,r,i,n,t);let o=r.getModules().values().next().value,s=this.createNestInstance(new v.NestApplicationContext(r,t,o));return this.autoFlushLogs&&s.flushLogsOnOverride(),s.init()}createNestInstance(e){return this.createProxy(e)}async initialize(e,t,n,r=new a.ApplicationConfig,i={},c=null){h.UuidFactory.mode=i.snapshot?h.UuidFactoryMode.Deterministic:h.UuidFactoryMode.Random;let u=new d.Injector({preview:i.preview,instanceDecorator:i.instrument?.instanceDecorator}),p=new f.InstanceLoader(t,u,n),m=new g.MetadataScanner,_=new y.DependenciesScanner(t,m,n,r);t.setHttpAdapter(c);let v=this.abortOnError===!1?l.rethrow:void 0;await c?.init?.();try{this.logger.log(o.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await _.scan(e),await p.createInstancesOfDependencies(),_.applyApplicationProviders()},v,this.autoFlushLogs)}catch(e){this.handleInitializationError(e)}}handleInitializationError(e){this.abortOnError&&process.abort(),(0,l.rethrow)(e)}createProxy(e){let t=this.createExceptionProxy();return new Proxy(e,{get:t,set:t})}createExceptionProxy(){return(e,t)=>{if(t in e)return(0,i.isFunction)(e[t])?this.createExceptionZone(e,t):e[t]}}createExceptionZone(e,t){let n=this.abortOnError===!1?l.rethrow:void 0;return(...r)=>{let i;return s.ExceptionsZone.run(()=>{i=e[t](...r)},n,this.autoFlushLogs),i}}registerLoggerConfiguration(e){if(!e)return;let{logger:r,bufferLogs:a,autoFlushLogs:o,forceConsole:s}=e;if(r!==!0&&!(0,i.isNil)(r))n.Logger.overrideLogger(r);else if(s){let e=new t.ConsoleLogger({forceConsole:!0});n.Logger.overrideLogger(e)}a&&n.Logger.attachBuffer(),this.autoFlushLogs=o??!0}createHttpAdapter(e){let{ExpressAdapter:t}=(0,c.loadAdapter)(`@nestjs/platform-express`,`HTTP`,()=>vT());return new t(e)}isHttpServer(e){return!!(e&&e.patch)}setAbortOnError(e,t){this.abortOnError=this.isHttpServer(e)?!(t&&t.abortOnError===!1):!(e&&e.abortOnError===!1)}createAdapterProxy(e,t){let n=new Proxy(e,{get:(e,r)=>{let a=e=>e instanceof Promise?e.then(a):e instanceof _.NestApplication?n:e;return!(r in e)&&r in t?(...e)=>a(this.createExceptionZone(t,r)(...e)):(0,i.isFunction)(e[r])?(...t)=>a(e[r](...t)):e[r]}});return n}createGraphInspector(e,t){return e?.snapshot?new p.GraphInspector(t):m.NoopGraphInspector}};e.NestFactoryStatic=b,e.NestFactory=new b})),bT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignToObject=t;function t(e,t){return Object.defineProperties(e,Object.keys(t).reduce((e,n)=>(e[n]=Object.getOwnPropertyDescriptor(t,n),e),Object.create(null))),e}})),xT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REPL_INITIALIZED_MESSAGE=void 0,e.REPL_INITIALIZED_MESSAGE=`REPL initialized`})),ST=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplFunction=void 0;var t=nt();e.ReplFunction=class{constructor(e){this.ctx=e,this.logger=e.logger}makeHelpMessage(){let{description:e,name:n,signature:r}=this.fnDefinition,i=`${n}${r}`;return`${t.clc.yellow(e)}\n${t.clc.magentaBright(`Interface:`)} ${t.clc.bold(i)}\n`}}})),CT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HelpReplFn=void 0;var t=I(),n=nt(),r=ST(),i=class e extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`help`,signature:`() => void`,description:`Display all available REPL native functions.`}}action(){let r=(0,t.iterate)(this.ctx.nativeFunctions).map(([,e])=>e.fnDefinition).toArray().sort((e,t)=>e.name<t.name?-1:1);this.ctx.writeToStdout(`You can call ${n.clc.bold(`.help`)} on any function listed below (e.g.: ${n.clc.bold(`help.help`)}):\n\n`+r.map(e.buildHelpMessage).join(`
|
|
153
138
|
`)+`
|
|
154
|
-
`)}}
|
|
155
|
-
If the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module.`,signature
|
|
156
|
-
`),
|
|
157
|
-
`)}printCtrlsAndProviders(
|
|
158
|
-
`),this.
|
|
159
|
-
`),s.
|
|
160
|
-
`)))}}return ul.DebugReplFn=r,ul}var ll={},zI;function l9(){if(zI)return ll;zI=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.MethodsReplFn=void 0;const e=cr(),t=An(),r=wi();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(a){const s=typeof a!="function"?Object.getPrototypeOf(this.ctx.app.get(a)):a?.prototype,o=this.metadataScanner.getAllMethodNames(s);this.ctx.writeToStdout(`
|
|
161
|
-
`),this.ctx.writeToStdout(`${e.clc.green("Methods")}:
|
|
162
|
-
`),o.forEach(c=>this.ctx.writeToStdout(` ${e.clc.yellow("◻")} ${c}
|
|
163
|
-
`)),this.ctx.writeToStdout(`
|
|
164
|
-
`)}}return ll.MethodsReplFn=n,ll}var BI;function d9(){return BI||(BI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(a9(),e),t.__exportStar(o9(),e),t.__exportStar(s9(),e),t.__exportStar(c9(),e),t.__exportStar(u9(),e),t.__exportStar(l9(),e)})(tg)),tg}var HI;function p9(){if(HI)return nl;HI=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.ReplContext=void 0;const e=me(),t=yr(),r=aF(),n=Xp(),i=d9();class a{constructor(o,c){this.app=o,this.logger=new e.Logger(a.name),this.debugRegistry={},this.globalScope=Object.create(null),this.nativeFunctions=new Map,this.container=o.container,this.initializeContext(),this.initializeNativeFunctions(c||[])}writeToStdout(o){process.stdout.write(o)}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(o,c,u){const p={};o[u].forEach(({token:l})=>{const d=this.stringifyToken(l);d===t.ApplicationConfig.name||d===o.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(o){return typeof o!="string"?typeof o=="function"?o.name:o?.toString():`"${o}"`}addNativeFunction(o){const c=new o(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(o){this.globalScope[o.fnDefinition.name]=o.action.bind(o);const c=this.globalScope[o.fnDefinition.name];Object.defineProperty(c,"help",{enumerable:!1,configurable:!1,get:()=>this.writeToStdout(o.makeHelpMessage())})}initializeNativeFunctions(o){[i.HelpReplFn,i.GetReplFn,i.ResolveReplFn,i.SelectReplFn,i.DebugReplFn,i.MethodsReplFn].concat(o).forEach(u=>{this.addNativeFunction(u).forEach(l=>{this.registerFunctionIntoGlobalScope(l)})})}}return nl.ReplContext=a,nl}var dl={},VI;function f9(){if(VI)return dl;VI=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.ReplLogger=void 0;const e=me(),t=Ly(),r=mF(),n=_F();class i extends e.ConsoleLogger{log(s,o){if(!i.ignoredContexts.includes(o))return super.log.apply(this,Array.from(arguments))}}return dl.ReplLogger=i,i.ignoredContexts=[n.RoutesResolver.name,r.RouterExplorer.name,t.NestApplication.name],dl}var cp={},GI;function h9(){if(GI)return cp;GI=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.defineDefaultCommandsOnRepl=t;function e(r){Object.keys(r.commands).sort().forEach(n=>{const i=r.commands[n];i&&r.output.write(`${n} ${i.help||""}
|
|
165
|
-
`)})}function t(r){r.defineCommand("help",{help:"Show REPL options",action(n){if(this.clearBufferedCommand(),n){const a=(this.commands[n]||this.context[n])?.help;a&&this.output.write(`${a}
|
|
166
|
-
`)}else e(this),this.output.write(`
|
|
139
|
+
`)}};e.HelpReplFn=i,i.buildHelpMessage=({name:e,description:t})=>n.clc.cyanBright(e)+(t?` ${n.clc.bold(`-`)} ${t}`:``)})),wT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GetReplFn=void 0;var t=ST();e.GetReplFn=class extends t.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(e){return this.ctx.app.get(e)}}})),TT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ResolveReplFn=void 0;var t=ST();e.ResolveReplFn=class extends t.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(e,t){return this.ctx.app.resolve(e,t)}}})),ET=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SelectReplFn=void 0;var t=ST();e.SelectReplFn=class extends t.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(e){return this.ctx.app.select(e)}}})),DT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DebugReplFn=void 0;var t=nt(),n=ST();e.DebugReplFn=class extends n.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`debug`,description:`Print all registered modules as a list together with their controllers and providers.
|
|
140
|
+
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(e){if(this.ctx.writeToStdout(`
|
|
141
|
+
`),e){let t=typeof e==`function`?e.name:e,n=this.ctx.debugRegistry[t];if(!n)return this.logger.error(`"${t}" has not been found in the modules registry`);this.printCtrlsAndProviders(t,n)}else Object.keys(this.ctx.debugRegistry).forEach(e=>{this.printCtrlsAndProviders(e,this.ctx.debugRegistry[e])});this.ctx.writeToStdout(`
|
|
142
|
+
`)}printCtrlsAndProviders(e,n){this.ctx.writeToStdout(`${t.clc.green(e)}:\n`),this.printCollection(`controllers`,n.controllers),this.printCollection(`providers`,n.providers)}printCollection(e,n){let r=Object.keys(n);r.length<=0||(this.ctx.writeToStdout(` ${t.clc.yellow(`- ${e}`)}:\n`),r.forEach(e=>this.ctx.writeToStdout(` ${t.clc.green(`◻`)} ${e}\n`)))}}})),OT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MethodsReplFn=void 0;var t=nt(),n=kx(),r=ST();e.MethodsReplFn=class 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 n.MetadataScanner}action(e){let n=typeof e==`function`?e?.prototype:Object.getPrototypeOf(this.ctx.app.get(e)),r=this.metadataScanner.getAllMethodNames(n);this.ctx.writeToStdout(`
|
|
143
|
+
`),this.ctx.writeToStdout(`${t.clc.green(`Methods`)}:\n`),r.forEach(e=>this.ctx.writeToStdout(` ${t.clc.yellow(`◻`)} ${e}\n`)),this.ctx.writeToStdout(`
|
|
144
|
+
`)}}})),kT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(CT(),e),t.__exportStar(wT(),e),t.__exportStar(TT(),e),t.__exportStar(ET(),e),t.__exportStar(DT(),e),t.__exportStar(OT(),e)})),AT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplContext=void 0;var t=H(),n=Dx(),r=$S(),i=KS(),a=kT();e.ReplContext=class e{constructor(n,r){this.app=n,this.logger=new t.Logger(e.name),this.debugRegistry={},this.globalScope=Object.create(null),this.nativeFunctions=new Map,this.container=n.container,this.initializeContext(),this.initializeNativeFunctions(r||[])}writeToStdout(e){process.stdout.write(e)}initializeContext(){this.container.getModules().forEach(e=>{let t=e.metatype.name;t!==i.InternalCoreModule.name&&(this.globalScope[t]&&(t+=` (${e.token})`),this.introspectCollection(e,t,`providers`),this.introspectCollection(e,t,`controllers`),Object.defineProperty(this.globalScope,t,{value:e.metatype,configurable:!1,enumerable:!0}))})}introspectCollection(e,t,i){let a={};e[i].forEach(({token:t})=>{let i=this.stringifyToken(t);i===n.ApplicationConfig.name||i===e.metatype.name||(this.globalScope[i]||Object.defineProperty(this.globalScope,i,{value:t,configurable:!1,enumerable:!0}),i!==r.ModuleRef.name&&(a[i]=t))}),this.debugRegistry[t]={...this.debugRegistry?.[t],[i]:a}}stringifyToken(e){return typeof e==`string`?`"${e}"`:typeof e==`function`?e.name:e?.toString()}addNativeFunction(e){let t=new e(this),n=[t];return this.nativeFunctions.set(t.fnDefinition.name,t),t.fnDefinition.aliases?.forEach(e=>{let r=Object.create(t);r.fnDefinition={name:e,description:r.fnDefinition.description,signature:r.fnDefinition.signature},this.nativeFunctions.set(e,r),n.push(r)}),n}registerFunctionIntoGlobalScope(e){this.globalScope[e.fnDefinition.name]=e.action.bind(e);let t=this.globalScope[e.fnDefinition.name];Object.defineProperty(t,`help`,{enumerable:!1,configurable:!1,get:()=>this.writeToStdout(e.makeHelpMessage())})}initializeNativeFunctions(e){[a.HelpReplFn,a.GetReplFn,a.ResolveReplFn,a.SelectReplFn,a.DebugReplFn,a.MethodsReplFn].concat(e).forEach(e=>{this.addNativeFunction(e).forEach(e=>{this.registerFunctionIntoGlobalScope(e)})})}}})),jT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplLogger=void 0;var t=H(),n=WC(),r=zC(),i=BC(),a=class e extends t.ConsoleLogger{log(t,n){if(!e.ignoredContexts.includes(n))return super.log.apply(this,Array.from(arguments))}};e.ReplLogger=a,a.ignoredContexts=[i.RoutesResolver.name,r.RouterExplorer.name,n.NestApplication.name]})),MT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defineDefaultCommandsOnRepl=n;function t(e){Object.keys(e.commands).sort().forEach(t=>{let n=e.commands[t];n&&e.output.write(`${t}\t${n.help||``}\n`)})}function n(e){e.defineCommand(`help`,{help:`Show REPL options`,action(e){if(this.clearBufferedCommand(),e){let t=(this.commands[e]||this.context[e])?.help;t&&this.output.write(`${t}\n`)}else t(this),this.output.write(`
|
|
167
145
|
|
|
168
146
|
`),this.context.help(),this.output.write(`
|
|
169
147
|
Press Ctrl+C to abort current expression, Ctrl+D to exit the REPL
|
|
170
|
-
`);this.displayPrompt()}})}return cp}var WI;function v9(){if(WI)return op;WI=1,Object.defineProperty(op,"__esModule",{value:!0}),op.repl=c;const e=me(),t=cr(),r=RF(),n=n9(),i=i9(),a=p9(),s=f9(),o=h9();async function c(u,p={}){const l=await r.NestFactory.createApplicationContext(u,{abortOnError:!1,logger:new s.ReplLogger});await l.init();const d=new a.ReplContext(l);e.Logger.log(i.REPL_INITIALIZED_MESSAGE);const h=(await Promise.resolve().then(()=>Xk)).start({prompt:t.clc.green("> "),ignoreUndefined:!0,...p});return(0,n.assignToObject)(h.context,d.globalScope),(0,o.defineDefaultCommandsOnRepl)(h),h.on("exit",async()=>{await l.close()}),h}return op}var ZI;function m9(){return ZI||(ZI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(v9(),e)})(eg)),eg}var rg={},ng={},ig={},KI;function _9(){return KI||(KI=1,Object.defineProperty(ig,"__esModule",{value:!0})),ig}var YI;function g9(){return YI||(YI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),oe().__exportStar(_9(),e)})(ng)),ng}var ag={},XI;function y9(){return XI||(XI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.REQUEST=void 0;var t=Rn();Object.defineProperty(e,"REQUEST",{enumerable:!0,get:function(){return t.REQUEST}})})(ag)),ag}var JI;function b9(){return JI||(JI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=void 0;const t=oe();t.__exportStar(g9(),e),t.__exportStar(y9(),e);var r=hF();Object.defineProperty(e,"RouterModule",{enumerable:!0,get:function(){return r.RouterModule}})})(rg)),rg}var QI;function MF(){return QI||(QI=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=oe();bg(),t.__exportStar(zK(),e),t.__exportStar(yr(),e);var r=gi();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(HK(),e),t.__exportStar(VK(),e),t.__exportStar(tY(),e),t.__exportStar(aF(),e),t.__exportStar(bY(),e),t.__exportStar(An(),e),t.__exportStar(OY(),e),t.__exportStar(Ly(),e),t.__exportStar(ky(),e);var n=RF();Object.defineProperty(e,"NestFactory",{enumerable:!0,get:function(){return n.NestFactory}}),t.__exportStar(m9(),e),t.__exportStar(b9(),e),t.__exportStar(iF(),e)})(km)),km}var $I=MF(),E9=Object.getOwnPropertyDescriptor,x9=(e,t,r,n)=>{for(var i=n>1?void 0:n?E9(t,r):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(i=s(i)||i);return i};const og={400:"log",401:"log",403:"log",404:"log","4XX":"warn","5XX":"error"};let yp=class{constructor(e){this.httpAdapterHost=e}logger=new xt.Logger(yp.name);mapStatusCode(e){return"getStatus"in e&&typeof e.getStatus=="function"?e.getStatus():xt.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return"getResponse"in e&&typeof e.getResponse=="function"?e.getResponse():{error:"internal-error"}}statusCodeToSeverity(e){const t=e.toString();return og[t]?og[t]:og[`${e.toString().slice(0,1)}XX`]}catch(e,t){const{httpAdapter:r}=this.httpAdapterHost,n=t.switchToHttp(),i=this.mapStatusCode(e),a=this.mapError(e),s=this.statusCodeToSeverity(i);s||this.logger.error("Unhandled exception",e),(s==="error"||s==="warn")&&this.logger[s]("Unhandled exception",e),r.reply(n.getResponse(),a,i)}};yp=x9([xt.Catch()],yp);const Hy=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 xt.Logger:t;n.setLogLevels?.(["verbose","debug","log","warn","error","fatal"]);const i=e||await $I.NestFactory.create(r,{bufferLogs:!0,logger:n,rawBody:!0});i.useLogger(n);const s=i.get(lp.ConfigService).get(ci);if(!s)throw new Error(`Configuration with token ${ci} not found`);n.setLogLevels?.(s.LOG_LEVELS);const o=i.get($I.HttpAdapterHost);return i.useGlobalFilters(new yp(o)),i.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:i,logger:n}};async function O9({appModule:e,configPath:t=Qk.resolve(__dirname,"../configuration"),logger:r}){aD({env:"",configPath:t});const{app:n,logger:i}=await Hy({appModule:e,existentLogger:r}),s=n.get(lp.ConfigService).get(ci);if(!s)throw new Error(`Configuration with token ${ci} not found`);await n.listen(s.APP_PORT),i.log(`NestJS App is running at http://localhost:${s.APP_PORT}`),w9(n,i)}function w9(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(i){t.error("Error during shutdown",i),process.exit(1)}};process.on("SIGINT",()=>{r("SIGINT")}),process.on("SIGTERM",()=>{r("SIGTERM")})}class IF extends xt.Logger{}const CF="REQUEST_MIDDLEWARE_LOG_CUSTOMIZER";var S9=Object.getOwnPropertyDescriptor,T9=(e,t,r,n)=>{for(var i=n>1?void 0:n?S9(t,r):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(i=s(i)||i);return i},eC=(e,t)=>(r,n)=>t(r,n,e);const sg={"2XX":"verbose","3XX":"debug",400:"log",401:"log",403:"log",404:"log","4XX":"warn","5XX":"error"};exports.RequestMiddleware=class{constructor(t){this.customizer=t}logger=new IF(exports.RequestMiddleware.name);statusCodeToSeverity(t){const r=t.toString();return sg[r]?sg[r]:sg[`${t.toString().slice(0,1)}XX`]}use(t,r,n){if(t.headers.host!=="127.0.0.1"){const i=Date.now();r.on("finish",()=>{const a=Date.now()-i,s={method:t.method,url:t.originalUrl,statusCode:r.statusCode,timeSpentMs:a,domain:t.hostname,requestHeaders:t.headers,responseHeaders:r.getHeaders()},o=this.customizer?.buildLogPayload(t,r)??{},c={...s,...o},u=this.statusCodeToSeverity(r.statusCode);this.logger[u](`Request: ${t.method} ${t.originalUrl} ${r.statusCode}`,c)})}n()}};exports.RequestMiddleware=T9([xt.Injectable(),eC(0,xt.Optional()),eC(0,xt.Inject(CF))],exports.RequestMiddleware);var cg={},ug={},lg={},tC;function P9(){return tC||(tC=1,Object.defineProperty(lg,"__esModule",{value:!0})),lg}var dg={},rC;function A9(){return rC||(rC=1,Object.defineProperty(dg,"__esModule",{value:!0})),dg}var pg={},nC;function R9(){return nC||(nC=1,Object.defineProperty(pg,"__esModule",{value:!0})),pg}var iC;function M9(){return iC||(iC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(P9(),e),t.__exportStar(A9(),e),t.__exportStar(R9(),e)})(ug)),ug}var pl={},fl={},hl={},aC;function I9(){if(aC)return hl;aC=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.TestingLogger=void 0;const e=me();class t extends e.ConsoleLogger{constructor(){super("Testing")}log(n){}warn(n){}debug(n){}verbose(n){}error(n,...i){return super.error(n,...i)}}return hl.TestingLogger=t,hl}var vl={},oC;function C9(){if(oC)return vl;oC=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.TestingInjector=void 0;const e=ct(),t=bi(),r=Gl();class n extends t.Injector{setMocker(a){this.mocker=a}setContainer(a){this.container=a}async resolveComponentWrapper(a,s,o,c,u=e.STATIC_CONTEXT,p,l){try{return await super.resolveComponentWrapper(a,s,o,c,u,p,l)}catch(d){return this.mockWrapper(d,a,s,c)}}async resolveComponentHost(a,s,o=e.STATIC_CONTEXT,c){try{return await super.resolveComponentHost(a,s,o,c)}catch(u){return this.mockWrapper(u,a,s.name,s)}}async mockWrapper(a,s,o,c){if(!this.mocker)throw a;const u=this.mocker(o);if(!u)throw a;const p=new r.InstanceWrapper({name:o,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:o,useValue:u},l.providers),l.addExportedProviderOrModule(o),p}}return vl.TestingInjector=n,vl}var ml={},sC;function j9(){if(sC)return ml;sC=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.TestingInstanceLoader=void 0;const e=Uy();class t extends e.InstanceLoader{async createInstancesOfDependencies(n=this.container.getModules(),i){this.injector.setContainer(this.container),i&&this.injector.setMocker(i),await super.createInstancesOfDependencies()}}return ml.TestingInstanceLoader=t,ml}var _l={};const N9={},q9=Object.freeze(Object.defineProperty({__proto__:null,default:N9},Symbol.toStringTag,{value:"Module"})),F9=pi(q9);var cC;function jF(){if(cC)return _l;cC=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.TestingModule=void 0;const e=me(),t=Al(),r=ie(),n=MF();class i extends n.NestApplicationContext{constructor(s,o,c,u,p=[]){const l={};super(s,l,c,p),this.applicationConfig=u,this.graphInspector=o}isHttpServer(s){return!!(s&&s.patch)}createNestApplication(s,o){const[c,u]=this.isHttpServer(s)?[s,o]:[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:o}=(0,t.loadPackage)("@nestjs/microservices","TestingModule",()=>F9);return this.applyLogger(s),new o(this.container,s,this.graphInspector,this.applicationConfig)}createHttpAdapter(s){const{ExpressAdapter:o}=(0,t.loadPackage)("@nestjs/platform-express","NestFactory",()=>AF());return new o(s)}applyLogger(s){!s||(0,r.isUndefined)(s.logger)||e.Logger.overrideLogger(s.logger)}createAdapterProxy(s,o){return new Proxy(s,{get:(c,u)=>!(u in c)&&u in o?o[u]:c[u]})}}return _l.TestingModule=i,_l}var uC;function NF(){if(uC)return fl;uC=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.TestingModuleBuilder=void 0;const e=me(),t=yr(),r=qy(),n=Jp(),i=yF(),a=Vl(),s=bF(),o=I9(),c=C9(),u=j9(),p=jF();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),a.UuidFactory.mode=a.UuidFactoryMode.Deterministic):(h=i.NoopGraphInspector,a.UuidFactory.mode=a.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 o.TestingLogger)}}return fl.TestingModuleBuilder=l,fl}var lC;function k9(){if(lC)return pl;lC=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.Test=void 0;const e=An(),t=NF();class r{static createTestingModule(i,a){return new t.TestingModuleBuilder(this.metadataScanner,i,a)}}return pl.Test=r,r.metadataScanner=new e.MetadataScanner,pl}var dC;function D9(){return dC||(dC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=oe();t.__exportStar(M9(),e),t.__exportStar(k9(),e),t.__exportStar(jF(),e),t.__exportStar(NF(),e)})(cg)),cg}var L9=D9();function U9(e,t=[]){return t.forEach(r=>{e=e.overrideGuard(r.type).useValue(r.value)}),e}function z9(e,t=[]){return t.forEach(r=>{e=e.overrideProvider(r.type).useValue(r.value)}),e}async function qF(e={},t){let r=L9.Test.createTestingModule({imports:[t]});r=U9(r,e.guards),r=z9(r,e.providers);const n=await r.compile();return e.logger&&n.useLogger(e.logger),n}async function B9(e,t={}){const r=await qF(t,e),{app:n}=await Hy({existentApp:r.createNestApplication(),existentLogger:t.logger});return n.init()}class H9{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(),i=this.extractIp(r),a=Date.now(),s=a-this.options.windowMs,c=(this.requestTimestamps.get(i)??[]).filter(u=>u>s);if(c.length>=this.options.maxRequests){const u=c[0],p=Math.ceil((u+this.options.windowMs-a)/1e3);throw n.setHeader("Retry-After",p),new xt.HttpException("Too Many Requests",xt.HttpStatus.TOO_MANY_REQUESTS)}return c.push(a),this.requestTimestamps.set(i,c),this.cleanupExpiredEntries(a),!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,i]of this.requestTimestamps.entries()){const a=i.filter(s=>s>r);a.length===0?this.requestTimestamps.delete(n):this.requestTimestamps.set(n,a)}}}function Qp(e,t="body"){return xt.createParamDecorator((r,n)=>{const a=n.switchToHttp().getRequest()[t],s=e.safeParse(a);if(!s.success)throw new xt.BadRequestException({message:`Invalid ${t} data`,errors:s.error});return s.data})()}function V9(e){return Qp(e,"query")}function G9(e){return Qp(e,"body")}function W9(e){return Qp(e,"params")}exports.APP_CONFIG_TOKEN=ci;exports.AppConfigSchema=kq;exports.CustomLogger=IF;exports.InMemoryRateLimitGuard=H9;exports.REQUEST_MIDDLEWARE_LOG_CUSTOMIZER=CF;exports.SafeBody=G9;exports.SafeParams=W9;exports.SafeQuery=V9;exports.ZodValidator=Qp;exports.appConfigModuleSetup=UK;exports.bootstrap=O9;exports.createApp=Hy;exports.createTestingApp=B9;exports.createTestingModule=qF;
|
|
148
|
+
`);this.displayPrompt()}})}})),NT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repl=l;var t=H(),n=nt(),r=yT(),i=bT(),a=xT(),o=AT(),s=jT(),c=MT();async function l(e,l={}){let u=await r.NestFactory.createApplicationContext(e,{abortOnError:!1,logger:new s.ReplLogger});await u.init();let d=new o.ReplContext(u);t.Logger.log(a.REPL_INITIALIZED_MESSAGE);let f=(await Promise.resolve().then(()=>require(`repl`))).start({prompt:n.clc.green(`> `),ignoreUndefined:!0,...l});return(0,i.assignToObject)(f.context,d.globalScope),(0,c.defineDefaultCommandsOnRepl)(f),f.on(`exit`,async()=>{await u.close()}),f}})),PT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(NT(),e)})),FT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),IT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(FT(),e)})),LT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REQUEST=void 0;var t=Rx();Object.defineProperty(e,`REQUEST`,{enumerable:!0,get:function(){return t.REQUEST}})})),RT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterModule=void 0;var t=E();t.__exportStar(IT(),e),t.__exportStar(LT(),e);var n=xC();Object.defineProperty(e,`RouterModule`,{enumerable:!0,get:function(){return n.RouterModule}})})),zT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestFactory=e.APP_PIPE=e.APP_INTERCEPTOR=e.APP_GUARD=e.APP_FILTER=void 0;var t=E();p(),t.__exportStar(Ex(),e),t.__exportStar(Dx(),e);var n=Ox();Object.defineProperty(e,`APP_FILTER`,{enumerable:!0,get:function(){return n.APP_FILTER}}),Object.defineProperty(e,`APP_GUARD`,{enumerable:!0,get:function(){return n.APP_GUARD}}),Object.defineProperty(e,`APP_INTERCEPTOR`,{enumerable:!0,get:function(){return n.APP_INTERCEPTOR}}),Object.defineProperty(e,`APP_PIPE`,{enumerable:!0,get:function(){return n.APP_PIPE}}),t.__exportStar(Px(),e),t.__exportStar(Lx(),e),t.__exportStar(fS(),e),t.__exportStar($S(),e),t.__exportStar(nC(),e),t.__exportStar(kx(),e),t.__exportStar(uC(),e),t.__exportStar(WC(),e),t.__exportStar(jC(),e);var r=yT();Object.defineProperty(e,`NestFactory`,{enumerable:!0,get:function(){return r.NestFactory}}),t.__exportStar(PT(),e),t.__exportStar(RT(),e),t.__exportStar(WS(),e)})),BT=H(),VT=zT();function HT(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function UT(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var WT,GT,KT={400:`log`,401:`log`,403:`log`,404:`log`,"4XX":`warn`,"5XX":`error`},qT=GT=class{logger=new BT.Logger(GT.name);constructor(e){this.httpAdapterHost=e}mapStatusCode(e){return`getStatus`in e&&typeof e.getStatus==`function`?e.getStatus():BT.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return`getResponse`in e&&typeof e.getResponse==`function`?e.getResponse():{error:`internal-error`}}statusCodeToSeverity(e){let t=e.toString();return KT[t]?KT[t]:KT[`${e.toString().slice(0,1)}XX`]}catch(e,t){let{httpAdapter:n}=this.httpAdapterHost,r=t.switchToHttp(),i=this.mapStatusCode(e),a=this.mapError(e),o=this.statusCodeToSeverity(i);o||this.logger.error(`Unhandled exception`,e),(o===`error`||o===`warn`)&&this.logger[o](`Unhandled exception`,e),n.reply(r.getResponse(),a,i)}};qT=GT=UT([(0,BT.Catch)(),HT(`design:paramtypes`,[typeof(WT=VT.HttpAdapterHost!==void 0&&VT.HttpAdapterHost)==`function`?WT:Object])],qT);var JT=async({existentApp:e,existentLogger:t,appModule:n})=>{if(!e&&!n)throw Error(`Either existentApp or appModule must be provided`);let r=process.env.LOGGER_PROVIDER===`NESTJS`||!t?new BT.Logger:t;r.setLogLevels?.([`verbose`,`debug`,`log`,`warn`,`error`,`fatal`]);let i=e||await VT.NestFactory.create(n,{bufferLogs:!0,logger:r,rawBody:!0});i.useLogger(r);let a=i.get(dl.ConfigService).get(bx);if(!a)throw Error(`Configuration with token ${bx} not found`);r.setLogLevels?.(a.LOG_LEVELS);let o=i.get(VT.HttpAdapterHost);return i.useGlobalFilters(new qT(o)),i.enableCors({origin:a.CORS_ORIGIN.split(`,`).map(e=>e.trim()),methods:a.CORS_METHODS,allowedHeaders:a.CORS_ALLOWED_HEADERS,credentials:a.CORS_CREDENTIALS,maxAge:a.CORS_MAX_AGE}),{app:i,logger:r}};async function YT({appModule:e,configPath:t=f.resolve(__dirname,`../configuration`),logger:n}){T({env:``,configPath:t});let{app:r,logger:i}=await JT({appModule:e,existentLogger:n}),a=r.get(dl.ConfigService).get(bx);if(!a)throw Error(`Configuration with token ${bx} not found`);await r.listen(a.APP_PORT),i.log(`NestJS App is running at http://localhost:${a.APP_PORT}`),XT(r,i)}function XT(e,t){let n=async n=>{t.log(`Received ${n}, starting graceful shutdown...`);try{await e.close(),t.log(`Application closed successfully`),process.exit(0)}catch(e){t.error(`Error during shutdown`,e),process.exit(1)}};process.on(`SIGINT`,()=>{n(`SIGINT`)}),process.on(`SIGTERM`,()=>{n(`SIGTERM`)})}var ZT=class extends BT.Logger{},QT=`REQUEST_MIDDLEWARE_LOG_CUSTOMIZER`;function $T(e,t){return function(n,r){t(n,r,e)}}var eE,tE={"2XX":`verbose`,"3XX":`debug`,400:`log`,401:`log`,403:`log`,404:`log`,"4XX":`warn`,"5XX":`error`},nE=eE=class{logger=new ZT(eE.name);constructor(e){this.customizer=e}statusCodeToSeverity(e){let t=e.toString();return tE[t]?tE[t]:tE[`${e.toString().slice(0,1)}XX`]}use(e,t,n){if(e.headers.host!==`127.0.0.1`){let n=Date.now();t.on(`finish`,()=>{let r=Date.now()-n,i={method:e.method,url:e.originalUrl,statusCode:t.statusCode,timeSpentMs:r,domain:e.hostname,requestHeaders:e.headers,responseHeaders:t.getHeaders()},a=this.customizer?.buildLogPayload(e,t)??{},o={...i,...a},s=this.statusCodeToSeverity(t.statusCode);this.logger[s](`Request: ${e.method} ${e.originalUrl} ${t.statusCode}`,o)})}n()}};nE=eE=UT([(0,BT.Injectable)(),$T(0,(0,BT.Optional)()),$T(0,(0,BT.Inject)(QT)),HT(`design:paramtypes`,[Object])],nE);var rE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),iE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),aE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),oE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(rE(),e),t.__exportStar(iE(),e),t.__exportStar(aE(),e)})),sE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingLogger=void 0;var t=H();e.TestingLogger=class extends t.ConsoleLogger{constructor(){super(`Testing`)}log(e){}warn(e){}debug(e){}verbose(e){}error(e,...t){return super.error(e,...t)}}})),cE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingInjector=void 0;var t=Bx(),n=IS(),r=PS();e.TestingInjector=class extends n.Injector{setMocker(e){this.mocker=e}setContainer(e){this.container=e}async resolveComponentWrapper(e,n,r,i,a=t.STATIC_CONTEXT,o,s){try{return await super.resolveComponentWrapper(e,n,r,i,a,o,s)}catch(t){return this.mockWrapper(t,e,n,i)}}async resolveComponentHost(e,n,r=t.STATIC_CONTEXT,i){try{return await super.resolveComponentHost(e,n,r,i)}catch(t){return this.mockWrapper(t,e,n.name,n)}}async mockWrapper(e,t,n,i){if(!this.mocker)throw e;let a=this.mocker(n);if(!a)throw e;let o=new r.InstanceWrapper({name:n,isAlias:!1,scope:i.scope,instance:a,isResolved:!0,host:t,metatype:i.metatype}),s=this.container.getInternalCoreModuleRef();if(!s)throw Error(`Expected to have internal core module reference at this point.`);return s.addCustomProvider({provide:n,useValue:a},s.providers),s.addExportedProviderOrModule(n),o}}})),lE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingInstanceLoader=void 0;var t=YC();e.TestingInstanceLoader=class extends t.InstanceLoader{async createInstancesOfDependencies(e=this.container.getModules(),t){this.injector.setContainer(this.container),t&&this.injector.setMocker(t),await super.createInstancesOfDependencies()}}})),uE=o((()=>{throw Error(`Could not resolve "@nestjs/microservices" imported by "@nestjs/testing". Is it installed?`)})),dE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingModule=void 0;var t=H(),n=Vn(),r=A(),i=zT();e.TestingModule=class extends i.NestApplicationContext{constructor(e,t,n,r,i=[]){super(e,{},n,i),this.applicationConfig=r,this.graphInspector=t}isHttpServer(e){return!!(e&&e.patch)}createNestApplication(e,t){let[n,r]=this.isHttpServer(e)?[e,t]:[this.createHttpAdapter(),e];this.applyLogger(r),this.container.setHttpAdapter(n);let a=new i.NestApplication(this.container,n,this.applicationConfig,this.graphInspector,r);return this.createAdapterProxy(a,n)}createNestMicroservice(e){let{NestMicroservice:t}=(0,n.loadPackage)(`@nestjs/microservices`,`TestingModule`,()=>uE());return this.applyLogger(e),new t(this.container,e,this.graphInspector,this.applicationConfig)}createHttpAdapter(e){let{ExpressAdapter:t}=(0,n.loadPackage)(`@nestjs/platform-express`,`NestFactory`,()=>vT());return new t(e)}applyLogger(e){!e||(0,r.isUndefined)(e.logger)||t.Logger.overrideLogger(e.logger)}createAdapterProxy(e,t){return new Proxy(e,{get:(e,n)=>!(n in e)&&n in t?t[n]:e[n]})}}})),fE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingModuleBuilder=void 0;var t=H(),n=Dx(),r=QS(),i=tC(),a=XC(),o=MS(),s=rw(),c=sE(),l=cE(),u=lE(),d=dE();e.TestingModuleBuilder=class{constructor(e,t,i){this.metadataScanner=e,this.applicationConfig=new n.ApplicationConfig,this.overloadsMap=new Map,this.moduleOverloadsMap=new Map,this.container=new r.NestContainer(this.applicationConfig,i),this.module=this.createModule(t)}setLogger(e){return this.testingLogger=e,this}overridePipe(e){return this.override(e,!1)}useMocker(e){return this.mocker=e,this}overrideFilter(e){return this.override(e,!1)}overrideGuard(e){return this.override(e,!1)}overrideInterceptor(e){return this.override(e,!1)}overrideProvider(e){return this.override(e,!0)}overrideModule(e){return{useModule:t=>(this.moduleOverloadsMap.set(e,t),this)}}async compile(e={}){this.applyLogger();let t;e?.snapshot?(t=new i.GraphInspector(this.container),o.UuidFactory.mode=o.UuidFactoryMode.Deterministic):(t=a.NoopGraphInspector,o.UuidFactory.mode=o.UuidFactoryMode.Random);let n=new s.DependenciesScanner(this.container,this.metadataScanner,t,this.applicationConfig);await n.scan(this.module,{overrides:this.getModuleOverloads()}),this.applyOverloadsMap(),await this.createInstancesOfDependencies(t,e),n.applyApplicationProviders();let r=this.getRootModule();return new d.TestingModule(this.container,t,r,this.applicationConfig)}override(e,t){return this.createOverrideByBuilder(n=>(this.overloadsMap.set(e,{...n,isProvider:t}),this))}createOverrideByBuilder(e){return{useValue:t=>e({useValue:t}),useFactory:t=>e({...t,useFactory:t.factory}),useClass:t=>e({useClass:t})}}applyOverloadsMap(){[...this.overloadsMap.entries()].forEach(([e,t])=>{this.container.replace(e,t)})}getModuleOverloads(){return[...this.moduleOverloadsMap.entries()].map(([e,t])=>({moduleToReplace:e,newModule:t}))}getRootModule(){return this.container.getModules().values().next().value}async createInstancesOfDependencies(e,t){let n=new l.TestingInjector({preview:t?.preview??!1});await new u.TestingInstanceLoader(this.container,n,e).createInstancesOfDependencies(this.container.getModules(),this.mocker)}createModule(e){class n{}return(0,t.Module)(e)(n),n}applyLogger(){t.Logger.overrideLogger(this.testingLogger||new c.TestingLogger)}}})),pE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Test=void 0;var t=kx(),n=fE(),r=class{static createTestingModule(e,t){return new n.TestingModuleBuilder(this.metadataScanner,e,t)}};e.Test=r,r.metadataScanner=new t.MetadataScanner})),mE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(oE(),e),t.__exportStar(pE(),e),t.__exportStar(dE(),e),t.__exportStar(fE(),e)}))();function hE(e,t=[]){return t.forEach(t=>{e=e.overrideGuard(t.type).useValue(t.value)}),e}function gE(e,t=[]){return t.forEach(t=>{e=e.overrideProvider(t.type).useValue(t.value)}),e}async function _E(e={},t){let n=mE.Test.createTestingModule({imports:[t]});n=hE(n,e.guards),n=gE(n,e.providers);let r=await n.compile();return e.logger&&r.useLogger(e.logger),r}async function vE(e,t={}){let{app:n}=await JT({existentApp:(await _E(t,e)).createNestApplication(),existentLogger:t.logger});return n.init()}var yE=class{requestTimestamps=new Map;options;constructor(e){if(e.windowMs<=0||e.maxRequests<=0)throw Error(`windowMs and maxRequests must be positive`);this.options=e}async canActivate(e){let t=e.switchToHttp().getRequest(),n=e.switchToHttp().getResponse(),r=this.extractIp(t),i=Date.now(),a=i-this.options.windowMs,o=(this.requestTimestamps.get(r)??[]).filter(e=>e>a);if(o.length>=this.options.maxRequests){let e=o[0],t=Math.ceil((e+this.options.windowMs-i)/1e3);throw n.setHeader(`Retry-After`,t),new BT.HttpException(`Too Many Requests`,BT.HttpStatus.TOO_MANY_REQUESTS)}return o.push(i),this.requestTimestamps.set(r,o),this.cleanupExpiredEntries(i),!0}extractIp(e){let t=e.headers?.[`x-forwarded-for`];return t?(Array.isArray(t)?t[0]:t).split(`,`)[0].trim():e.ip?e.ip:`unknown`}cleanupExpiredEntries(e){let t=e-this.options.windowMs;for(let[e,n]of this.requestTimestamps.entries()){let r=n.filter(e=>e>t);r.length===0?this.requestTimestamps.delete(e):this.requestTimestamps.set(e,r)}}};function bE(e,t=`body`){return(0,BT.createParamDecorator)((n,r)=>{let i=r.switchToHttp().getRequest()[t],a=e.safeParse(i);if(!a.success)throw new BT.BadRequestException({message:`Invalid ${t} data`,errors:a.error});return a.data})()}function xE(e){return bE(e,`query`)}function SE(e){return bE(e,`body`)}function CE(e){return bE(e,`params`)}exports.APP_CONFIG_TOKEN=bx,exports.AppConfigSchema=Sx,exports.CustomLogger=ZT,exports.InMemoryRateLimitGuard=yE,exports.REQUEST_MIDDLEWARE_LOG_CUSTOMIZER=QT,Object.defineProperty(exports,`RequestMiddleware`,{enumerable:!0,get:function(){return nE}}),exports.SafeBody=SE,exports.SafeParams=CE,exports.SafeQuery=xE,exports.ZodValidator=bE,exports.appConfigModuleSetup=wx,exports.bootstrap=YT,exports.createApp=JT,exports.createTestingApp=vE,exports.createTestingModule=_E;
|