appos 0.3.6-0 → 0.3.7-0
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/bin/main.mjs +3 -3
- package/dist/bin/youch-handler-D7REmh8Z.mjs +2 -0
- package/dist/exports/tests/api.d.mts +1 -1
- package/dist/exports/tests/api.mjs +14 -14
- package/dist/exports/tests/{auth-schema-DUCJw-_2.mjs → auth-schema-B_qHPoa4.mjs} +1 -1
- package/dist/exports/tests/{conditions-B0ffVJ5E.mjs → conditions-BeWxRN_Z.mjs} +1 -1
- package/dist/exports/tests/{extract-blob-metadata-Dv343Vcn.mjs → extract-blob-metadata-6xQrarjB.mjs} +2 -2
- package/dist/exports/tests/{generate-image-variant-cQc8q0kh.mjs → generate-image-variant-KQITLmCx.mjs} +1 -1
- package/dist/exports/tests/{generate-preview-HaTMd2hS.mjs → generate-preview-YnujQo5I.mjs} +1 -1
- package/dist/exports/tests/mock-BvoS23fi.mjs +1 -0
- package/dist/exports/tests/mock.mjs +1 -1
- package/dist/exports/tests/{purge-attachment-D4uOzHRi.mjs → purge-attachment-DTSmCl-z.mjs} +1 -1
- package/dist/exports/tests/{purge-audit-logs-DiPcc09d.mjs → purge-audit-logs-D0_UUhN2.mjs} +1 -1
- package/dist/exports/tests/{purge-unattached-blobs-CqW6tlIC.mjs → purge-unattached-blobs-IENmSB8K.mjs} +1 -1
- package/dist/exports/tests/react.mjs +1 -1
- package/dist/exports/tests/setup.mjs +2 -2
- package/dist/exports/tests/{track-db-changes-Bd4W-P1q.mjs → track-db-changes-Td9Q3DLd.mjs} +1 -1
- package/dist/exports/tests/youch-handler-efUxKCCs.mjs +1 -0
- package/dist/exports/vite/index.mjs +4 -4
- package/dist/exports/vite/{lib-DuBRr9dH.mjs → lib-B0s0q6aX.mjs} +73 -73
- package/dist/exports/vite/lib-BkrbWMaV.mjs +1 -0
- package/dist/exports/vitest/config.mjs +1 -77
- package/dist/exports/vitest/index.mjs +1 -348
- package/package.json +1 -7
- package/dist/bin/youch-handler-DrYdbUhe.mjs +0 -2
- package/dist/exports/devtools/BaseTanStackRouterDevtoolsPanel-BBz1qLry-DUwdvyLv.js +0 -2090
- package/dist/exports/devtools/EIDV623S-B7f6114d.js +0 -2497
- package/dist/exports/devtools/FloatingTanStackRouterDevtools-DymJEvfG-BHuQHiRR.js +0 -237
- package/dist/exports/devtools/MIMHJGAX-Cb3wf11F.js +0 -10903
- package/dist/exports/devtools/Q7LWSL4U-BoEO3rNq.js +0 -37
- package/dist/exports/devtools/VLTTJS3N-CIyRc84e.js +0 -44
- package/dist/exports/devtools/index.d.ts +0 -3
- package/dist/exports/devtools/index.js +0 -1725
- package/dist/exports/devtools/utils-YRTCpRgb.js +0 -1670
- package/dist/exports/tests/magic-string.es-D6VRmdiF.mjs +0 -14
- package/dist/exports/tests/mock-BvkO5nlm.mjs +0 -1
- package/dist/exports/tests/vi.2VT5v0um-Cme1b0Dl.mjs +0 -348
- package/dist/exports/tests/youch-handler-Ch5yf6im.mjs +0 -1
- package/dist/exports/vite/api-DGRU_RdM.mjs +0 -27
- package/dist/exports/vite/build-CxJAu2Bn.mjs +0 -1
- package/dist/exports/vite/build2-BMK0OFVt.mjs +0 -16
- package/dist/exports/vite/chunk-CxnlK1Zi.mjs +0 -1
- package/dist/exports/vite/chunk-PtveFMYu.mjs +0 -1
- package/dist/exports/vite/dist-Bxp8DqWh.mjs +0 -114
- package/dist/exports/vite/dist-CX51FKbX.mjs +0 -1
- package/dist/exports/vite/dist-DcyNr-KR.mjs +0 -1
- package/dist/exports/vite/dist-j3-Khlzt.mjs +0 -1
- package/dist/exports/vite/experimental-index-3KsfmUbz.mjs +0 -1
- package/dist/exports/vite/false-BNJbUKYT.mjs +0 -1
- package/dist/exports/vite/false-BvrPEDU6.mjs +0 -1
- package/dist/exports/vite/internal-C5cVwRiK.mjs +0 -1
- package/dist/exports/vite/jiti-BjSPrFvg.mjs +0 -9
- package/dist/exports/vite/lexer-DQCqS3nf-C6xCDOEQ.mjs +0 -3
- package/dist/exports/vite/lib-CMv7Sfwa.mjs +0 -1
- package/dist/exports/vite/lib-D9TnS-7w.mjs +0 -1
- package/dist/exports/vite/node-DI8AnY_i.mjs +0 -437
- package/dist/exports/vite/postcss-BtmDpj-c.mjs +0 -32
- package/dist/exports/vite/postcss-import-Bk_ZCd6c.mjs +0 -5
- package/dist/exports/vite/rolldown-build-CNW2eye_-CJNfyXdF.mjs +0 -13
- package/dist/exports/vitest/api-CPv6lnxG.mjs +0 -27
- package/dist/exports/vitest/build2-28i3OiJ3.mjs +0 -16
- package/dist/exports/vitest/chunk-_e2jlDPK.mjs +0 -1
- package/dist/exports/vitest/chunk-jwDkFoXW.mjs +0 -1
- package/dist/exports/vitest/dist-L-OpshPJ.mjs +0 -114
- package/dist/exports/vitest/jiti-eNGOyHIo.mjs +0 -9
- package/dist/exports/vitest/lexer-DQCqS3nf-TWLyIqlY.mjs +0 -3
- package/dist/exports/vitest/lib-C3G64csm.mjs +0 -1
- package/dist/exports/vitest/magic-string.es-CxM5Ubyl.mjs +0 -14
- package/dist/exports/vitest/module-runner-DsF4L04D.mjs +0 -1
- package/dist/exports/vitest/postcss-BxLp_Too.mjs +0 -32
- package/dist/exports/vitest/postcss-import-5pKj3f5q.mjs +0 -5
- /package/dist/exports/tests/{constants-DHjjg05J.mjs → constants-D_m07gCJ.mjs} +0 -0
- /package/dist/exports/tests/{dist-EfrRkq5c.mjs → dist-Cx2HEBOB.mjs} +0 -0
- /package/dist/exports/tests/{dist-D6vgKv3t.mjs → dist-DnACOvNW.mjs} +0 -0
- /package/dist/exports/tests/{pdf-BDsS3vjF.mjs → pdf-lZ-as2o7.mjs} +0 -0
- /package/dist/exports/tests/{table-CbU04119.mjs → table-CmPSf_pE.mjs} +0 -0
- /package/dist/exports/tests/{workflow-DwZxTqdH.mjs → workflow-BWRWyC83.mjs} +0 -0
- /package/dist/exports/tests/{zod-DcpxsMPz.mjs → zod-CkJO9qpV.mjs} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{a as e,i as t,r as n,t as r}from"./chunk-Cii4FAhs.mjs";import{
|
|
1
|
+
import{a as e,i as t,r as n,t as r}from"./chunk-Cii4FAhs.mjs";import{A as i,B as a,C as o,D as s,E as c,F as l,G as u,H as d,I as f,L as p,M as m,N as h,O as g,P as _,R as v,U as y,V as b,W as x,_ as S,a as C,b as w,c as T,d as E,f as D,g as O,h as k,i as A,j,k as M,l as N,m as P,o as F,p as I,r as L,s as R,t as z,u as B,v as V,w as H,x as U,y as ee,z as te}from"./table-CmPSf_pE.mjs";import{C as ne,S as re,_ as ie,a as ae,b as oe,c as se,d as W,f as G,g as ce,h as le,i as ue,l as de,m as fe,n as pe,o as me,p as he,r as ge,s as _e,t as K,u as ve,v as ye,w as be,x as xe,y as Se}from"./conditions-BeWxRN_Z.mjs";import{a as Ce,i as we,n as Te,o as Ee,r as De,t as q}from"./constants-D_m07gCJ.mjs";import{t as Oe}from"./dist-DnACOvNW.mjs";import{d as ke,f as Ae,p as je,s as Me}from"./zod-CkJO9qpV.mjs";import{S as Ne,b as Pe}from"./mock-BvoS23fi.mjs";import{register as Fe}from"node:module";import Ie,{existsSync as Le,mkdirSync as Re,mkdtempSync as ze,readdirSync as Be}from"node:fs";import Ve,{access as He,glob as Ue,mkdir as We,rm as Ge,writeFile as Ke}from"node:fs/promises";import{tmpdir as qe}from"node:os";import{basename as Je,join as Ye,resolve as Xe}from"node:path";import Ze,{createHash as Qe}from"node:crypto";import{test as $e}from"vitest";import{isIP as et,isIPv6 as tt}from"node:net";import{Buffer as nt}from"node:buffer";import rt from"ultimate-express";import{getNodeAutoInstrumentations as it}from"@opentelemetry/auto-instrumentations-node";import{OTLPTraceExporter as at}from"@opentelemetry/exporter-trace-otlp-http";import{PinoInstrumentation as ot}from"@opentelemetry/instrumentation-pino";import{resourceFromAttributes as st}from"@opentelemetry/resources";import{NodeSDK as ct}from"@opentelemetry/sdk-node";import{BatchSpanProcessor as lt}from"@opentelemetry/sdk-trace-node";import{ATTR_SERVICE_NAME as ut,ATTR_SERVICE_VERSION as dt}from"@opentelemetry/semantic-conventions";
|
|
2
2
|
/*!
|
|
3
3
|
* methods
|
|
4
4
|
* Copyright(c) 2013-2014 TJ Holowaychuk
|
|
5
5
|
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
|
-
var ft=r(((e,n)=>{var r=t(`http`);n.exports=i()||a();function i(){return r.METHODS&&r.METHODS.map(function(e){return e.toLowerCase()})}function a(){return`get.post.put.head.delete.options.trace.copy.lock.mkcol.move.purge.propfind.proppatch.unlock.report.mkactivity.checkout.merge.m-search.notify.subscribe.unsubscribe.patch.search.connect`.split(`.`)}})),pt=r(((e,t)=>{t.exports=TypeError})),mt=r(((e,n)=>{n.exports=t(`util`).inspect})),ht=r(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var P=mt(),F=P.custom,I=ae(F)?F:null,L={__proto__:null,double:`"`,single:`'`},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(W(s,`quoteStyle`)&&!W(L,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(W(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=W(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return ge(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return H(t)?`[Array]`:`[Object]`;var g=
|
|
9
|
-
`)>=0)return!1;return!0}function
|
|
8
|
+
var ft=r(((e,n)=>{var r=t(`http`);n.exports=i()||a();function i(){return r.METHODS&&r.METHODS.map(function(e){return e.toLowerCase()})}function a(){return`get.post.put.head.delete.options.trace.copy.lock.mkcol.move.purge.propfind.proppatch.unlock.report.mkactivity.checkout.merge.m-search.notify.subscribe.unsubscribe.patch.search.connect`.split(`.`)}})),pt=r(((e,t)=>{t.exports=TypeError})),mt=r(((e,n)=>{n.exports=t(`util`).inspect})),ht=r(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var P=mt(),F=P.custom,I=ae(F)?F:null,L={__proto__:null,double:`"`,single:`'`},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(W(s,`quoteStyle`)&&!W(L,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(W(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=W(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return ge(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return H(t)?`[Array]`:`[Object]`;var g=xe(s,r);if(o===void 0)o=[];else if(le(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return W(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ee(t)){var x=ce(t),T=Ce(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ae(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?K(D):D}if(he(t)){for(var F=`<`+b.call(String(t.nodeName)),R=t.attributes||[],V=0;V<R.length;V++)F+=` `+R[V].name+`=`+z(B(R[V].value),`double`,s);return F+=`>`,t.childNodes&&t.childNodes.length&&(F+=`...`),F+=`</`+b.call(String(t.nodeName))+`>`,F}if(H(t)){if(t.length===0)return`[]`;var se=Ce(t,y);return g&&!be(se)?`[`+Se(se,g)+`]`:`[ `+C.call(se,`, `)+` ]`}if(te(t)){var _e=Ce(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),_e),`, `)+` }`:_e.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(_e,`, `)+` }`}if(typeof t==`object`&&u){if(I&&typeof t[I]==`function`&&P)return P(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(ue(t)){var we=[];return a&&a.call(t,function(e,n){we.push(y(n,t,!0)+` => `+y(e,t))}),ye(`Map`,i.call(t),we,g)}if(pe(t)){var Te=[];return l&&l.call(t,function(e){Te.push(y(e,t))}),ye(`Set`,c.call(t),Te,g)}if(de(t))return ve(`WeakMap`);if(me(t))return ve(`WeakSet`);if(fe(t))return ve(`WeakRef`);if(re(t))return K(y(Number(t)));if(oe(t))return K(y(E.call(t)));if(ie(t))return K(p.call(t));if(ne(t))return K(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!U(t)&&!ee(t)){var Ee=Ce(t,y),De=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,q=t instanceof Object?``:`null prototype`,Oe=!De&&A&&Object(t)===t&&A in t?_.call(G(t),8,-1):q?`Object`:``,ke=(De||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Oe||q?`[`+C.call(S.call([],Oe||[],q||[]),`: `)+`] `:``);return Ee.length===0?ke+`{}`:g?ke+`{`+Se(Ee,g)+`}`:ke+`{ `+C.call(Ee,`, `)+` }`}return String(t)};function z(e,t,n){var r=L[n.quoteStyle||t];return r+e+r}function B(e){return v.call(String(e),/"/g,`"`)}function V(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function H(e){return G(e)===`[object Array]`&&V(e)}function U(e){return G(e)===`[object Date]`&&V(e)}function ee(e){return G(e)===`[object RegExp]`&&V(e)}function te(e){return G(e)===`[object Error]`&&V(e)}function ne(e){return G(e)===`[object String]`&&V(e)}function re(e){return G(e)===`[object Number]`&&V(e)}function ie(e){return G(e)===`[object Boolean]`&&V(e)}function ae(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function oe(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var se=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return se.call(e,t)}function G(e){return m.call(e)}function ce(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function le(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ue(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function de(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function fe(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function pe(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function me(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function he(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function ge(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return ge(_.call(e,0,t.maxStringLength),t)+r}var i=R[t.quoteStyle||`single`];return i.lastIndex=0,z(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,_e),`single`,t)}function _e(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function K(e){return`Object(`+e+`)`}function ve(e){return e+` { ? }`}function ye(e,t,n,r){var i=r?Se(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function be(e){for(var t=0;t<e.length;t++)if(le(e[t],`
|
|
9
|
+
`)>=0)return!1;return!0}function xe(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function Se(e,t){if(e.length===0)return``;var n=`
|
|
10
10
|
`+t.prev+t.base;return n+C.call(e,`,`+n)+`
|
|
11
|
-
`+t.prev}function Se(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)W(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),gt=r(((e,t)=>{var n=ht(),r=pt(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),_t=r(((e,t)=>{t.exports=Object})),vt=r(((e,t)=>{t.exports=Error})),yt=r(((e,t)=>{t.exports=EvalError})),bt=r(((e,t)=>{t.exports=RangeError})),xt=r(((e,t)=>{t.exports=ReferenceError})),St=r(((e,t)=>{t.exports=SyntaxError})),Ct=r(((e,t)=>{t.exports=URIError})),wt=r(((e,t)=>{t.exports=Math.abs})),Tt=r(((e,t)=>{t.exports=Math.floor})),Et=r(((e,t)=>{t.exports=Math.max})),Dt=r(((e,t)=>{t.exports=Math.min})),Ot=r(((e,t)=>{t.exports=Math.pow})),kt=r(((e,t)=>{t.exports=Math.round})),At=r(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),jt=r(((e,t)=>{var n=At();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Mt=r(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Nt=r(((e,t)=>{var n=Mt();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Pt=r(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Ft=r(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),It=r(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Ft();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Lt=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Rt=r(((e,t)=>{t.exports=_t().getPrototypeOf||null})),zt=r(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),Bt=r(((e,t)=>{var n=zt();t.exports=Function.prototype.bind||n})),Vt=r(((e,t)=>{t.exports=Function.prototype.call})),Ht=r(((e,t)=>{t.exports=Function.prototype.apply})),Ut=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Wt=r(((e,t)=>{var n=Bt(),r=Ht(),i=Vt();t.exports=Ut()||n.call(i,r)})),Gt=r(((e,t)=>{var n=Bt(),r=pt(),i=Vt(),a=Wt();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Kt=r(((e,t)=>{var n=Gt(),r=Nt(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),qt=r(((e,t)=>{var n=Lt(),r=Rt(),i=Kt();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Jt=r(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Bt().call(n,r)})),Yt=r(((e,t)=>{var n,r=_t(),i=vt(),a=yt(),o=bt(),s=xt(),c=St(),l=pt(),u=Ct(),d=wt(),f=Tt(),p=Et(),m=Dt(),h=Ot(),g=kt(),_=jt(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Nt(),x=Pt(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=It()(),T=qt(),E=Rt(),D=Lt(),O=Ht(),k=Vt(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=Bt(),I=Jt(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,U=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,ee,`$1`):t||e}),r},te=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=U(e),r=n.length>0?n[0]:``,i=te(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Xt=r(((e,t)=>{var n=Yt(),r=Gt(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Zt=r(((e,t)=>{var n=Yt(),r=Xt(),i=ht(),a=pt(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Qt=r(((e,t)=>{var n=Yt(),r=Xt(),i=ht(),a=Zt(),o=pt(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),$t=r(((e,t)=>{var n=pt(),r=ht(),i=gt(),a=Zt(),o=Qt()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),en=r(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),tn=r(((e,t)=>{var n=en(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024;t.exports={arrayToObject:s,assign:l,combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},decode:u,encode:function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:c}})),nn=r(((e,t)=>{var n=$t(),r=tn(),i=en(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I<M.length;++I){var L=M[I],R=typeof L==`object`&&L&&L.value!==void 0?L.value:E[L];if(!(d&&R===null)){var z=y&&h?String(L).replace(/\./g,`%2E`):String(L),B=s(E)?typeof a==`function`?a(F,z):F:F+(y?`.`+z:`[`+z+`]`);T.set(t,O);var V=n();V.set(m,T),l(j,e(R,B,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,V))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),rn=r(((e,t)=>{var n=tn(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),an=r(((e,t)=>{var n=nn(),r=rn();t.exports={formats:en(),parse:r,stringify:n}})),on=r(((e,t)=>{function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}n.prototype.define=function(e,t){for(let n in e){let r=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(let e=0;e<r.length;e++){let i=r[e];if(i[0]!==`*`){if(!t&&i in this._types)throw Error(`Attempt to change mapping for "`+i+`" extension from "`+this._types[i]+`" to "`+n+'". Pass `force=true` to allow this, otherwise remove "'+i+`" from the list of extensions for "`+n+`".`);this._types[i]=n}}if(t||!this._extensions[n]){let e=r[0];this._extensions[n]=e[0]===`*`?e.substr(1):e}}},n.prototype.getType=function(e){e=String(e);let t=e.replace(/^.*[/\\]/,``).toLowerCase(),n=t.replace(/^.*\./,``).toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},n.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null},t.exports=n})),sn=r(((e,t)=>{t.exports={"application/andrew-inset":[`ez`],"application/applixware":[`aw`],"application/atom+xml":[`atom`],"application/atomcat+xml":[`atomcat`],"application/atomdeleted+xml":[`atomdeleted`],"application/atomsvc+xml":[`atomsvc`],"application/atsc-dwd+xml":[`dwd`],"application/atsc-held+xml":[`held`],"application/atsc-rsat+xml":[`rsat`],"application/bdoc":[`bdoc`],"application/calendar+xml":[`xcs`],"application/ccxml+xml":[`ccxml`],"application/cdfx+xml":[`cdfx`],"application/cdmi-capability":[`cdmia`],"application/cdmi-container":[`cdmic`],"application/cdmi-domain":[`cdmid`],"application/cdmi-object":[`cdmio`],"application/cdmi-queue":[`cdmiq`],"application/cu-seeme":[`cu`],"application/dash+xml":[`mpd`],"application/davmount+xml":[`davmount`],"application/docbook+xml":[`dbk`],"application/dssc+der":[`dssc`],"application/dssc+xml":[`xdssc`],"application/ecmascript":[`es`,`ecma`],"application/emma+xml":[`emma`],"application/emotionml+xml":[`emotionml`],"application/epub+zip":[`epub`],"application/exi":[`exi`],"application/express":[`exp`],"application/fdt+xml":[`fdt`],"application/font-tdpfr":[`pfr`],"application/geo+json":[`geojson`],"application/gml+xml":[`gml`],"application/gpx+xml":[`gpx`],"application/gxf":[`gxf`],"application/gzip":[`gz`],"application/hjson":[`hjson`],"application/hyperstudio":[`stk`],"application/inkml+xml":[`ink`,`inkml`],"application/ipfix":[`ipfix`],"application/its+xml":[`its`],"application/java-archive":[`jar`,`war`,`ear`],"application/java-serialized-object":[`ser`],"application/java-vm":[`class`],"application/javascript":[`js`,`mjs`],"application/json":[`json`,`map`],"application/json5":[`json5`],"application/jsonml+json":[`jsonml`],"application/ld+json":[`jsonld`],"application/lgr+xml":[`lgr`],"application/lost+xml":[`lostxml`],"application/mac-binhex40":[`hqx`],"application/mac-compactpro":[`cpt`],"application/mads+xml":[`mads`],"application/manifest+json":[`webmanifest`],"application/marc":[`mrc`],"application/marcxml+xml":[`mrcx`],"application/mathematica":[`ma`,`nb`,`mb`],"application/mathml+xml":[`mathml`],"application/mbox":[`mbox`],"application/mediaservercontrol+xml":[`mscml`],"application/metalink+xml":[`metalink`],"application/metalink4+xml":[`meta4`],"application/mets+xml":[`mets`],"application/mmt-aei+xml":[`maei`],"application/mmt-usd+xml":[`musd`],"application/mods+xml":[`mods`],"application/mp21":[`m21`,`mp21`],"application/mp4":[`mp4s`,`m4p`],"application/msword":[`doc`,`dot`],"application/mxf":[`mxf`],"application/n-quads":[`nq`],"application/n-triples":[`nt`],"application/node":[`cjs`],"application/octet-stream":[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`],"application/oda":[`oda`],"application/oebps-package+xml":[`opf`],"application/ogg":[`ogx`],"application/omdoc+xml":[`omdoc`],"application/onenote":[`onetoc`,`onetoc2`,`onetmp`,`onepkg`],"application/oxps":[`oxps`],"application/p2p-overlay+xml":[`relo`],"application/patch-ops-error+xml":[`xer`],"application/pdf":[`pdf`],"application/pgp-encrypted":[`pgp`],"application/pgp-signature":[`asc`,`sig`],"application/pics-rules":[`prf`],"application/pkcs10":[`p10`],"application/pkcs7-mime":[`p7m`,`p7c`],"application/pkcs7-signature":[`p7s`],"application/pkcs8":[`p8`],"application/pkix-attr-cert":[`ac`],"application/pkix-cert":[`cer`],"application/pkix-crl":[`crl`],"application/pkix-pkipath":[`pkipath`],"application/pkixcmp":[`pki`],"application/pls+xml":[`pls`],"application/postscript":[`ai`,`eps`,`ps`],"application/provenance+xml":[`provx`],"application/pskc+xml":[`pskcxml`],"application/raml+yaml":[`raml`],"application/rdf+xml":[`rdf`,`owl`],"application/reginfo+xml":[`rif`],"application/relax-ng-compact-syntax":[`rnc`],"application/resource-lists+xml":[`rl`],"application/resource-lists-diff+xml":[`rld`],"application/rls-services+xml":[`rs`],"application/route-apd+xml":[`rapd`],"application/route-s-tsid+xml":[`sls`],"application/route-usd+xml":[`rusd`],"application/rpki-ghostbusters":[`gbr`],"application/rpki-manifest":[`mft`],"application/rpki-roa":[`roa`],"application/rsd+xml":[`rsd`],"application/rss+xml":[`rss`],"application/rtf":[`rtf`],"application/sbml+xml":[`sbml`],"application/scvp-cv-request":[`scq`],"application/scvp-cv-response":[`scs`],"application/scvp-vp-request":[`spq`],"application/scvp-vp-response":[`spp`],"application/sdp":[`sdp`],"application/senml+xml":[`senmlx`],"application/sensml+xml":[`sensmlx`],"application/set-payment-initiation":[`setpay`],"application/set-registration-initiation":[`setreg`],"application/shf+xml":[`shf`],"application/sieve":[`siv`,`sieve`],"application/smil+xml":[`smi`,`smil`],"application/sparql-query":[`rq`],"application/sparql-results+xml":[`srx`],"application/srgs":[`gram`],"application/srgs+xml":[`grxml`],"application/sru+xml":[`sru`],"application/ssdl+xml":[`ssdl`],"application/ssml+xml":[`ssml`],"application/swid+xml":[`swidtag`],"application/tei+xml":[`tei`,`teicorpus`],"application/thraud+xml":[`tfi`],"application/timestamped-data":[`tsd`],"application/toml":[`toml`],"application/trig":[`trig`],"application/ttml+xml":[`ttml`],"application/ubjson":[`ubj`],"application/urc-ressheet+xml":[`rsheet`],"application/urc-targetdesc+xml":[`td`],"application/voicexml+xml":[`vxml`],"application/wasm":[`wasm`],"application/widget":[`wgt`],"application/winhlp":[`hlp`],"application/wsdl+xml":[`wsdl`],"application/wspolicy+xml":[`wspolicy`],"application/xaml+xml":[`xaml`],"application/xcap-att+xml":[`xav`],"application/xcap-caps+xml":[`xca`],"application/xcap-diff+xml":[`xdf`],"application/xcap-el+xml":[`xel`],"application/xcap-ns+xml":[`xns`],"application/xenc+xml":[`xenc`],"application/xhtml+xml":[`xhtml`,`xht`],"application/xliff+xml":[`xlf`],"application/xml":[`xml`,`xsl`,`xsd`,`rng`],"application/xml-dtd":[`dtd`],"application/xop+xml":[`xop`],"application/xproc+xml":[`xpl`],"application/xslt+xml":[`*xsl`,`xslt`],"application/xspf+xml":[`xspf`],"application/xv+xml":[`mxml`,`xhvml`,`xvml`,`xvm`],"application/yang":[`yang`],"application/yin+xml":[`yin`],"application/zip":[`zip`],"audio/3gpp":[`*3gpp`],"audio/adpcm":[`adp`],"audio/amr":[`amr`],"audio/basic":[`au`,`snd`],"audio/midi":[`mid`,`midi`,`kar`,`rmi`],"audio/mobile-xmf":[`mxmf`],"audio/mp3":[`*mp3`],"audio/mp4":[`m4a`,`mp4a`],"audio/mpeg":[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`],"audio/ogg":[`oga`,`ogg`,`spx`,`opus`],"audio/s3m":[`s3m`],"audio/silk":[`sil`],"audio/wav":[`wav`],"audio/wave":[`*wav`],"audio/webm":[`weba`],"audio/xm":[`xm`],"font/collection":[`ttc`],"font/otf":[`otf`],"font/ttf":[`ttf`],"font/woff":[`woff`],"font/woff2":[`woff2`],"image/aces":[`exr`],"image/apng":[`apng`],"image/avif":[`avif`],"image/bmp":[`bmp`],"image/cgm":[`cgm`],"image/dicom-rle":[`drle`],"image/emf":[`emf`],"image/fits":[`fits`],"image/g3fax":[`g3`],"image/gif":[`gif`],"image/heic":[`heic`],"image/heic-sequence":[`heics`],"image/heif":[`heif`],"image/heif-sequence":[`heifs`],"image/hej2k":[`hej2`],"image/hsj2":[`hsj2`],"image/ief":[`ief`],"image/jls":[`jls`],"image/jp2":[`jp2`,`jpg2`],"image/jpeg":[`jpeg`,`jpg`,`jpe`],"image/jph":[`jph`],"image/jphc":[`jhc`],"image/jpm":[`jpm`],"image/jpx":[`jpx`,`jpf`],"image/jxr":[`jxr`],"image/jxra":[`jxra`],"image/jxrs":[`jxrs`],"image/jxs":[`jxs`],"image/jxsc":[`jxsc`],"image/jxsi":[`jxsi`],"image/jxss":[`jxss`],"image/ktx":[`ktx`],"image/ktx2":[`ktx2`],"image/png":[`png`],"image/sgi":[`sgi`],"image/svg+xml":[`svg`,`svgz`],"image/t38":[`t38`],"image/tiff":[`tif`,`tiff`],"image/tiff-fx":[`tfx`],"image/webp":[`webp`],"image/wmf":[`wmf`],"message/disposition-notification":[`disposition-notification`],"message/global":[`u8msg`],"message/global-delivery-status":[`u8dsn`],"message/global-disposition-notification":[`u8mdn`],"message/global-headers":[`u8hdr`],"message/rfc822":[`eml`,`mime`],"model/3mf":[`3mf`],"model/gltf+json":[`gltf`],"model/gltf-binary":[`glb`],"model/iges":[`igs`,`iges`],"model/mesh":[`msh`,`mesh`,`silo`],"model/mtl":[`mtl`],"model/obj":[`obj`],"model/step+xml":[`stpx`],"model/step+zip":[`stpz`],"model/step-xml+zip":[`stpxz`],"model/stl":[`stl`],"model/vrml":[`wrl`,`vrml`],"model/x3d+binary":[`*x3db`,`x3dbz`],"model/x3d+fastinfoset":[`x3db`],"model/x3d+vrml":[`*x3dv`,`x3dvz`],"model/x3d+xml":[`x3d`,`x3dz`],"model/x3d-vrml":[`x3dv`],"text/cache-manifest":[`appcache`,`manifest`],"text/calendar":[`ics`,`ifb`],"text/coffeescript":[`coffee`,`litcoffee`],"text/css":[`css`],"text/csv":[`csv`],"text/html":[`html`,`htm`,`shtml`],"text/jade":[`jade`],"text/jsx":[`jsx`],"text/less":[`less`],"text/markdown":[`markdown`,`md`],"text/mathml":[`mml`],"text/mdx":[`mdx`],"text/n3":[`n3`],"text/plain":[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`],"text/richtext":[`rtx`],"text/rtf":[`*rtf`],"text/sgml":[`sgml`,`sgm`],"text/shex":[`shex`],"text/slim":[`slim`,`slm`],"text/spdx":[`spdx`],"text/stylus":[`stylus`,`styl`],"text/tab-separated-values":[`tsv`],"text/troff":[`t`,`tr`,`roff`,`man`,`me`,`ms`],"text/turtle":[`ttl`],"text/uri-list":[`uri`,`uris`,`urls`],"text/vcard":[`vcard`],"text/vtt":[`vtt`],"text/xml":[`*xml`],"text/yaml":[`yaml`,`yml`],"video/3gpp":[`3gp`,`3gpp`],"video/3gpp2":[`3g2`],"video/h261":[`h261`],"video/h263":[`h263`],"video/h264":[`h264`],"video/iso.segment":[`m4s`],"video/jpeg":[`jpgv`],"video/jpm":[`*jpm`,`jpgm`],"video/mj2":[`mj2`,`mjp2`],"video/mp2t":[`ts`],"video/mp4":[`mp4`,`mp4v`,`mpg4`],"video/mpeg":[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`],"video/ogg":[`ogv`],"video/quicktime":[`qt`,`mov`],"video/webm":[`webm`]}})),cn=r(((e,t)=>{t.exports={"application/prs.cww":[`cww`],"application/vnd.1000minds.decision-model+xml":[`1km`],"application/vnd.3gpp.pic-bw-large":[`plb`],"application/vnd.3gpp.pic-bw-small":[`psb`],"application/vnd.3gpp.pic-bw-var":[`pvb`],"application/vnd.3gpp2.tcap":[`tcap`],"application/vnd.3m.post-it-notes":[`pwn`],"application/vnd.accpac.simply.aso":[`aso`],"application/vnd.accpac.simply.imp":[`imp`],"application/vnd.acucobol":[`acu`],"application/vnd.acucorp":[`atc`,`acutc`],"application/vnd.adobe.air-application-installer-package+zip":[`air`],"application/vnd.adobe.formscentral.fcdt":[`fcdt`],"application/vnd.adobe.fxp":[`fxp`,`fxpl`],"application/vnd.adobe.xdp+xml":[`xdp`],"application/vnd.adobe.xfdf":[`xfdf`],"application/vnd.ahead.space":[`ahead`],"application/vnd.airzip.filesecure.azf":[`azf`],"application/vnd.airzip.filesecure.azs":[`azs`],"application/vnd.amazon.ebook":[`azw`],"application/vnd.americandynamics.acc":[`acc`],"application/vnd.amiga.ami":[`ami`],"application/vnd.android.package-archive":[`apk`],"application/vnd.anser-web-certificate-issue-initiation":[`cii`],"application/vnd.anser-web-funds-transfer-initiation":[`fti`],"application/vnd.antix.game-component":[`atx`],"application/vnd.apple.installer+xml":[`mpkg`],"application/vnd.apple.keynote":[`key`],"application/vnd.apple.mpegurl":[`m3u8`],"application/vnd.apple.numbers":[`numbers`],"application/vnd.apple.pages":[`pages`],"application/vnd.apple.pkpass":[`pkpass`],"application/vnd.aristanetworks.swi":[`swi`],"application/vnd.astraea-software.iota":[`iota`],"application/vnd.audiograph":[`aep`],"application/vnd.balsamiq.bmml+xml":[`bmml`],"application/vnd.blueice.multipass":[`mpm`],"application/vnd.bmi":[`bmi`],"application/vnd.businessobjects":[`rep`],"application/vnd.chemdraw+xml":[`cdxml`],"application/vnd.chipnuts.karaoke-mmd":[`mmd`],"application/vnd.cinderella":[`cdy`],"application/vnd.citationstyles.style+xml":[`csl`],"application/vnd.claymore":[`cla`],"application/vnd.cloanto.rp9":[`rp9`],"application/vnd.clonk.c4group":[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`],"application/vnd.cluetrust.cartomobile-config":[`c11amc`],"application/vnd.cluetrust.cartomobile-config-pkg":[`c11amz`],"application/vnd.commonspace":[`csp`],"application/vnd.contact.cmsg":[`cdbcmsg`],"application/vnd.cosmocaller":[`cmc`],"application/vnd.crick.clicker":[`clkx`],"application/vnd.crick.clicker.keyboard":[`clkk`],"application/vnd.crick.clicker.palette":[`clkp`],"application/vnd.crick.clicker.template":[`clkt`],"application/vnd.crick.clicker.wordbank":[`clkw`],"application/vnd.criticaltools.wbs+xml":[`wbs`],"application/vnd.ctc-posml":[`pml`],"application/vnd.cups-ppd":[`ppd`],"application/vnd.curl.car":[`car`],"application/vnd.curl.pcurl":[`pcurl`],"application/vnd.dart":[`dart`],"application/vnd.data-vision.rdz":[`rdz`],"application/vnd.dbf":[`dbf`],"application/vnd.dece.data":[`uvf`,`uvvf`,`uvd`,`uvvd`],"application/vnd.dece.ttml+xml":[`uvt`,`uvvt`],"application/vnd.dece.unspecified":[`uvx`,`uvvx`],"application/vnd.dece.zip":[`uvz`,`uvvz`],"application/vnd.denovo.fcselayout-link":[`fe_launch`],"application/vnd.dna":[`dna`],"application/vnd.dolby.mlp":[`mlp`],"application/vnd.dpgraph":[`dpg`],"application/vnd.dreamfactory":[`dfac`],"application/vnd.ds-keypoint":[`kpxx`],"application/vnd.dvb.ait":[`ait`],"application/vnd.dvb.service":[`svc`],"application/vnd.dynageo":[`geo`],"application/vnd.ecowin.chart":[`mag`],"application/vnd.enliven":[`nml`],"application/vnd.epson.esf":[`esf`],"application/vnd.epson.msf":[`msf`],"application/vnd.epson.quickanime":[`qam`],"application/vnd.epson.salt":[`slt`],"application/vnd.epson.ssf":[`ssf`],"application/vnd.eszigno3+xml":[`es3`,`et3`],"application/vnd.ezpix-album":[`ez2`],"application/vnd.ezpix-package":[`ez3`],"application/vnd.fdf":[`fdf`],"application/vnd.fdsn.mseed":[`mseed`],"application/vnd.fdsn.seed":[`seed`,`dataless`],"application/vnd.flographit":[`gph`],"application/vnd.fluxtime.clip":[`ftc`],"application/vnd.framemaker":[`fm`,`frame`,`maker`,`book`],"application/vnd.frogans.fnc":[`fnc`],"application/vnd.frogans.ltf":[`ltf`],"application/vnd.fsc.weblaunch":[`fsc`],"application/vnd.fujitsu.oasys":[`oas`],"application/vnd.fujitsu.oasys2":[`oa2`],"application/vnd.fujitsu.oasys3":[`oa3`],"application/vnd.fujitsu.oasysgp":[`fg5`],"application/vnd.fujitsu.oasysprs":[`bh2`],"application/vnd.fujixerox.ddd":[`ddd`],"application/vnd.fujixerox.docuworks":[`xdw`],"application/vnd.fujixerox.docuworks.binder":[`xbd`],"application/vnd.fuzzysheet":[`fzs`],"application/vnd.genomatix.tuxedo":[`txd`],"application/vnd.geogebra.file":[`ggb`],"application/vnd.geogebra.tool":[`ggt`],"application/vnd.geometry-explorer":[`gex`,`gre`],"application/vnd.geonext":[`gxt`],"application/vnd.geoplan":[`g2w`],"application/vnd.geospace":[`g3w`],"application/vnd.gmx":[`gmx`],"application/vnd.google-apps.document":[`gdoc`],"application/vnd.google-apps.presentation":[`gslides`],"application/vnd.google-apps.spreadsheet":[`gsheet`],"application/vnd.google-earth.kml+xml":[`kml`],"application/vnd.google-earth.kmz":[`kmz`],"application/vnd.grafeq":[`gqf`,`gqs`],"application/vnd.groove-account":[`gac`],"application/vnd.groove-help":[`ghf`],"application/vnd.groove-identity-message":[`gim`],"application/vnd.groove-injector":[`grv`],"application/vnd.groove-tool-message":[`gtm`],"application/vnd.groove-tool-template":[`tpl`],"application/vnd.groove-vcard":[`vcg`],"application/vnd.hal+xml":[`hal`],"application/vnd.handheld-entertainment+xml":[`zmm`],"application/vnd.hbci":[`hbci`],"application/vnd.hhe.lesson-player":[`les`],"application/vnd.hp-hpgl":[`hpgl`],"application/vnd.hp-hpid":[`hpid`],"application/vnd.hp-hps":[`hps`],"application/vnd.hp-jlyt":[`jlt`],"application/vnd.hp-pcl":[`pcl`],"application/vnd.hp-pclxl":[`pclxl`],"application/vnd.hydrostatix.sof-data":[`sfd-hdstx`],"application/vnd.ibm.minipay":[`mpy`],"application/vnd.ibm.modcap":[`afp`,`listafp`,`list3820`],"application/vnd.ibm.rights-management":[`irm`],"application/vnd.ibm.secure-container":[`sc`],"application/vnd.iccprofile":[`icc`,`icm`],"application/vnd.igloader":[`igl`],"application/vnd.immervision-ivp":[`ivp`],"application/vnd.immervision-ivu":[`ivu`],"application/vnd.insors.igm":[`igm`],"application/vnd.intercon.formnet":[`xpw`,`xpx`],"application/vnd.intergeo":[`i2g`],"application/vnd.intu.qbo":[`qbo`],"application/vnd.intu.qfx":[`qfx`],"application/vnd.ipunplugged.rcprofile":[`rcprofile`],"application/vnd.irepository.package+xml":[`irp`],"application/vnd.is-xpr":[`xpr`],"application/vnd.isac.fcs":[`fcs`],"application/vnd.jam":[`jam`],"application/vnd.jcp.javame.midlet-rms":[`rms`],"application/vnd.jisp":[`jisp`],"application/vnd.joost.joda-archive":[`joda`],"application/vnd.kahootz":[`ktz`,`ktr`],"application/vnd.kde.karbon":[`karbon`],"application/vnd.kde.kchart":[`chrt`],"application/vnd.kde.kformula":[`kfo`],"application/vnd.kde.kivio":[`flw`],"application/vnd.kde.kontour":[`kon`],"application/vnd.kde.kpresenter":[`kpr`,`kpt`],"application/vnd.kde.kspread":[`ksp`],"application/vnd.kde.kword":[`kwd`,`kwt`],"application/vnd.kenameaapp":[`htke`],"application/vnd.kidspiration":[`kia`],"application/vnd.kinar":[`kne`,`knp`],"application/vnd.koan":[`skp`,`skd`,`skt`,`skm`],"application/vnd.kodak-descriptor":[`sse`],"application/vnd.las.las+xml":[`lasxml`],"application/vnd.llamagraphics.life-balance.desktop":[`lbd`],"application/vnd.llamagraphics.life-balance.exchange+xml":[`lbe`],"application/vnd.lotus-1-2-3":[`123`],"application/vnd.lotus-approach":[`apr`],"application/vnd.lotus-freelance":[`pre`],"application/vnd.lotus-notes":[`nsf`],"application/vnd.lotus-organizer":[`org`],"application/vnd.lotus-screencam":[`scm`],"application/vnd.lotus-wordpro":[`lwp`],"application/vnd.macports.portpkg":[`portpkg`],"application/vnd.mapbox-vector-tile":[`mvt`],"application/vnd.mcd":[`mcd`],"application/vnd.medcalcdata":[`mc1`],"application/vnd.mediastation.cdkey":[`cdkey`],"application/vnd.mfer":[`mwf`],"application/vnd.mfmp":[`mfm`],"application/vnd.micrografx.flo":[`flo`],"application/vnd.micrografx.igx":[`igx`],"application/vnd.mif":[`mif`],"application/vnd.mobius.daf":[`daf`],"application/vnd.mobius.dis":[`dis`],"application/vnd.mobius.mbk":[`mbk`],"application/vnd.mobius.mqy":[`mqy`],"application/vnd.mobius.msl":[`msl`],"application/vnd.mobius.plc":[`plc`],"application/vnd.mobius.txf":[`txf`],"application/vnd.mophun.application":[`mpn`],"application/vnd.mophun.certificate":[`mpc`],"application/vnd.mozilla.xul+xml":[`xul`],"application/vnd.ms-artgalry":[`cil`],"application/vnd.ms-cab-compressed":[`cab`],"application/vnd.ms-excel":[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`],"application/vnd.ms-excel.addin.macroenabled.12":[`xlam`],"application/vnd.ms-excel.sheet.binary.macroenabled.12":[`xlsb`],"application/vnd.ms-excel.sheet.macroenabled.12":[`xlsm`],"application/vnd.ms-excel.template.macroenabled.12":[`xltm`],"application/vnd.ms-fontobject":[`eot`],"application/vnd.ms-htmlhelp":[`chm`],"application/vnd.ms-ims":[`ims`],"application/vnd.ms-lrm":[`lrm`],"application/vnd.ms-officetheme":[`thmx`],"application/vnd.ms-outlook":[`msg`],"application/vnd.ms-pki.seccat":[`cat`],"application/vnd.ms-pki.stl":[`*stl`],"application/vnd.ms-powerpoint":[`ppt`,`pps`,`pot`],"application/vnd.ms-powerpoint.addin.macroenabled.12":[`ppam`],"application/vnd.ms-powerpoint.presentation.macroenabled.12":[`pptm`],"application/vnd.ms-powerpoint.slide.macroenabled.12":[`sldm`],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":[`ppsm`],"application/vnd.ms-powerpoint.template.macroenabled.12":[`potm`],"application/vnd.ms-project":[`mpp`,`mpt`],"application/vnd.ms-word.document.macroenabled.12":[`docm`],"application/vnd.ms-word.template.macroenabled.12":[`dotm`],"application/vnd.ms-works":[`wps`,`wks`,`wcm`,`wdb`],"application/vnd.ms-wpl":[`wpl`],"application/vnd.ms-xpsdocument":[`xps`],"application/vnd.mseq":[`mseq`],"application/vnd.musician":[`mus`],"application/vnd.muvee.style":[`msty`],"application/vnd.mynfc":[`taglet`],"application/vnd.neurolanguage.nlu":[`nlu`],"application/vnd.nitf":[`ntf`,`nitf`],"application/vnd.noblenet-directory":[`nnd`],"application/vnd.noblenet-sealer":[`nns`],"application/vnd.noblenet-web":[`nnw`],"application/vnd.nokia.n-gage.ac+xml":[`*ac`],"application/vnd.nokia.n-gage.data":[`ngdat`],"application/vnd.nokia.n-gage.symbian.install":[`n-gage`],"application/vnd.nokia.radio-preset":[`rpst`],"application/vnd.nokia.radio-presets":[`rpss`],"application/vnd.novadigm.edm":[`edm`],"application/vnd.novadigm.edx":[`edx`],"application/vnd.novadigm.ext":[`ext`],"application/vnd.oasis.opendocument.chart":[`odc`],"application/vnd.oasis.opendocument.chart-template":[`otc`],"application/vnd.oasis.opendocument.database":[`odb`],"application/vnd.oasis.opendocument.formula":[`odf`],"application/vnd.oasis.opendocument.formula-template":[`odft`],"application/vnd.oasis.opendocument.graphics":[`odg`],"application/vnd.oasis.opendocument.graphics-template":[`otg`],"application/vnd.oasis.opendocument.image":[`odi`],"application/vnd.oasis.opendocument.image-template":[`oti`],"application/vnd.oasis.opendocument.presentation":[`odp`],"application/vnd.oasis.opendocument.presentation-template":[`otp`],"application/vnd.oasis.opendocument.spreadsheet":[`ods`],"application/vnd.oasis.opendocument.spreadsheet-template":[`ots`],"application/vnd.oasis.opendocument.text":[`odt`],"application/vnd.oasis.opendocument.text-master":[`odm`],"application/vnd.oasis.opendocument.text-template":[`ott`],"application/vnd.oasis.opendocument.text-web":[`oth`],"application/vnd.olpc-sugar":[`xo`],"application/vnd.oma.dd2+xml":[`dd2`],"application/vnd.openblox.game+xml":[`obgx`],"application/vnd.openofficeorg.extension":[`oxt`],"application/vnd.openstreetmap.data+xml":[`osm`],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[`pptx`],"application/vnd.openxmlformats-officedocument.presentationml.slide":[`sldx`],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":[`ppsx`],"application/vnd.openxmlformats-officedocument.presentationml.template":[`potx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[`xlsx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":[`xltx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[`docx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":[`dotx`],"application/vnd.osgeo.mapguide.package":[`mgp`],"application/vnd.osgi.dp":[`dp`],"application/vnd.osgi.subsystem":[`esa`],"application/vnd.palm":[`pdb`,`pqa`,`oprc`],"application/vnd.pawaafile":[`paw`],"application/vnd.pg.format":[`str`],"application/vnd.pg.osasli":[`ei6`],"application/vnd.picsel":[`efif`],"application/vnd.pmi.widget":[`wg`],"application/vnd.pocketlearn":[`plf`],"application/vnd.powerbuilder6":[`pbd`],"application/vnd.previewsystems.box":[`box`],"application/vnd.proteus.magazine":[`mgz`],"application/vnd.publishare-delta-tree":[`qps`],"application/vnd.pvi.ptid1":[`ptid`],"application/vnd.quark.quarkxpress":[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`],"application/vnd.rar":[`rar`],"application/vnd.realvnc.bed":[`bed`],"application/vnd.recordare.musicxml":[`mxl`],"application/vnd.recordare.musicxml+xml":[`musicxml`],"application/vnd.rig.cryptonote":[`cryptonote`],"application/vnd.rim.cod":[`cod`],"application/vnd.rn-realmedia":[`rm`],"application/vnd.rn-realmedia-vbr":[`rmvb`],"application/vnd.route66.link66+xml":[`link66`],"application/vnd.sailingtracker.track":[`st`],"application/vnd.seemail":[`see`],"application/vnd.sema":[`sema`],"application/vnd.semd":[`semd`],"application/vnd.semf":[`semf`],"application/vnd.shana.informed.formdata":[`ifm`],"application/vnd.shana.informed.formtemplate":[`itp`],"application/vnd.shana.informed.interchange":[`iif`],"application/vnd.shana.informed.package":[`ipk`],"application/vnd.simtech-mindmapper":[`twd`,`twds`],"application/vnd.smaf":[`mmf`],"application/vnd.smart.teacher":[`teacher`],"application/vnd.software602.filler.form+xml":[`fo`],"application/vnd.solent.sdkm+xml":[`sdkm`,`sdkd`],"application/vnd.spotfire.dxp":[`dxp`],"application/vnd.spotfire.sfs":[`sfs`],"application/vnd.stardivision.calc":[`sdc`],"application/vnd.stardivision.draw":[`sda`],"application/vnd.stardivision.impress":[`sdd`],"application/vnd.stardivision.math":[`smf`],"application/vnd.stardivision.writer":[`sdw`,`vor`],"application/vnd.stardivision.writer-global":[`sgl`],"application/vnd.stepmania.package":[`smzip`],"application/vnd.stepmania.stepchart":[`sm`],"application/vnd.sun.wadl+xml":[`wadl`],"application/vnd.sun.xml.calc":[`sxc`],"application/vnd.sun.xml.calc.template":[`stc`],"application/vnd.sun.xml.draw":[`sxd`],"application/vnd.sun.xml.draw.template":[`std`],"application/vnd.sun.xml.impress":[`sxi`],"application/vnd.sun.xml.impress.template":[`sti`],"application/vnd.sun.xml.math":[`sxm`],"application/vnd.sun.xml.writer":[`sxw`],"application/vnd.sun.xml.writer.global":[`sxg`],"application/vnd.sun.xml.writer.template":[`stw`],"application/vnd.sus-calendar":[`sus`,`susp`],"application/vnd.svd":[`svd`],"application/vnd.symbian.install":[`sis`,`sisx`],"application/vnd.syncml+xml":[`xsm`],"application/vnd.syncml.dm+wbxml":[`bdm`],"application/vnd.syncml.dm+xml":[`xdm`],"application/vnd.syncml.dmddf+xml":[`ddf`],"application/vnd.tao.intent-module-archive":[`tao`],"application/vnd.tcpdump.pcap":[`pcap`,`cap`,`dmp`],"application/vnd.tmobile-livetv":[`tmo`],"application/vnd.trid.tpt":[`tpt`],"application/vnd.triscape.mxs":[`mxs`],"application/vnd.trueapp":[`tra`],"application/vnd.ufdl":[`ufd`,`ufdl`],"application/vnd.uiq.theme":[`utz`],"application/vnd.umajin":[`umj`],"application/vnd.unity":[`unityweb`],"application/vnd.uoml+xml":[`uoml`],"application/vnd.vcx":[`vcx`],"application/vnd.visio":[`vsd`,`vst`,`vss`,`vsw`],"application/vnd.visionary":[`vis`],"application/vnd.vsf":[`vsf`],"application/vnd.wap.wbxml":[`wbxml`],"application/vnd.wap.wmlc":[`wmlc`],"application/vnd.wap.wmlscriptc":[`wmlsc`],"application/vnd.webturbo":[`wtb`],"application/vnd.wolfram.player":[`nbp`],"application/vnd.wordperfect":[`wpd`],"application/vnd.wqd":[`wqd`],"application/vnd.wt.stf":[`stf`],"application/vnd.xara":[`xar`],"application/vnd.xfdl":[`xfdl`],"application/vnd.yamaha.hv-dic":[`hvd`],"application/vnd.yamaha.hv-script":[`hvs`],"application/vnd.yamaha.hv-voice":[`hvp`],"application/vnd.yamaha.openscoreformat":[`osf`],"application/vnd.yamaha.openscoreformat.osfpvg+xml":[`osfpvg`],"application/vnd.yamaha.smaf-audio":[`saf`],"application/vnd.yamaha.smaf-phrase":[`spf`],"application/vnd.yellowriver-custom-menu":[`cmp`],"application/vnd.zul":[`zir`,`zirz`],"application/vnd.zzazz.deck+xml":[`zaz`],"application/x-7z-compressed":[`7z`],"application/x-abiword":[`abw`],"application/x-ace-compressed":[`ace`],"application/x-apple-diskimage":[`*dmg`],"application/x-arj":[`arj`],"application/x-authorware-bin":[`aab`,`x32`,`u32`,`vox`],"application/x-authorware-map":[`aam`],"application/x-authorware-seg":[`aas`],"application/x-bcpio":[`bcpio`],"application/x-bdoc":[`*bdoc`],"application/x-bittorrent":[`torrent`],"application/x-blorb":[`blb`,`blorb`],"application/x-bzip":[`bz`],"application/x-bzip2":[`bz2`,`boz`],"application/x-cbr":[`cbr`,`cba`,`cbt`,`cbz`,`cb7`],"application/x-cdlink":[`vcd`],"application/x-cfs-compressed":[`cfs`],"application/x-chat":[`chat`],"application/x-chess-pgn":[`pgn`],"application/x-chrome-extension":[`crx`],"application/x-cocoa":[`cco`],"application/x-conference":[`nsc`],"application/x-cpio":[`cpio`],"application/x-csh":[`csh`],"application/x-debian-package":[`*deb`,`udeb`],"application/x-dgc-compressed":[`dgc`],"application/x-director":[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`],"application/x-doom":[`wad`],"application/x-dtbncx+xml":[`ncx`],"application/x-dtbook+xml":[`dtb`],"application/x-dtbresource+xml":[`res`],"application/x-dvi":[`dvi`],"application/x-envoy":[`evy`],"application/x-eva":[`eva`],"application/x-font-bdf":[`bdf`],"application/x-font-ghostscript":[`gsf`],"application/x-font-linux-psf":[`psf`],"application/x-font-pcf":[`pcf`],"application/x-font-snf":[`snf`],"application/x-font-type1":[`pfa`,`pfb`,`pfm`,`afm`],"application/x-freearc":[`arc`],"application/x-futuresplash":[`spl`],"application/x-gca-compressed":[`gca`],"application/x-glulx":[`ulx`],"application/x-gnumeric":[`gnumeric`],"application/x-gramps-xml":[`gramps`],"application/x-gtar":[`gtar`],"application/x-hdf":[`hdf`],"application/x-httpd-php":[`php`],"application/x-install-instructions":[`install`],"application/x-iso9660-image":[`*iso`],"application/x-iwork-keynote-sffkey":[`*key`],"application/x-iwork-numbers-sffnumbers":[`*numbers`],"application/x-iwork-pages-sffpages":[`*pages`],"application/x-java-archive-diff":[`jardiff`],"application/x-java-jnlp-file":[`jnlp`],"application/x-keepass2":[`kdbx`],"application/x-latex":[`latex`],"application/x-lua-bytecode":[`luac`],"application/x-lzh-compressed":[`lzh`,`lha`],"application/x-makeself":[`run`],"application/x-mie":[`mie`],"application/x-mobipocket-ebook":[`prc`,`mobi`],"application/x-ms-application":[`application`],"application/x-ms-shortcut":[`lnk`],"application/x-ms-wmd":[`wmd`],"application/x-ms-wmz":[`wmz`],"application/x-ms-xbap":[`xbap`],"application/x-msaccess":[`mdb`],"application/x-msbinder":[`obd`],"application/x-mscardfile":[`crd`],"application/x-msclip":[`clp`],"application/x-msdos-program":[`*exe`],"application/x-msdownload":[`*exe`,`*dll`,`com`,`bat`,`*msi`],"application/x-msmediaview":[`mvb`,`m13`,`m14`],"application/x-msmetafile":[`*wmf`,`*wmz`,`*emf`,`emz`],"application/x-msmoney":[`mny`],"application/x-mspublisher":[`pub`],"application/x-msschedule":[`scd`],"application/x-msterminal":[`trm`],"application/x-mswrite":[`wri`],"application/x-netcdf":[`nc`,`cdf`],"application/x-ns-proxy-autoconfig":[`pac`],"application/x-nzb":[`nzb`],"application/x-perl":[`pl`,`pm`],"application/x-pilot":[`*prc`,`*pdb`],"application/x-pkcs12":[`p12`,`pfx`],"application/x-pkcs7-certificates":[`p7b`,`spc`],"application/x-pkcs7-certreqresp":[`p7r`],"application/x-rar-compressed":[`*rar`],"application/x-redhat-package-manager":[`rpm`],"application/x-research-info-systems":[`ris`],"application/x-sea":[`sea`],"application/x-sh":[`sh`],"application/x-shar":[`shar`],"application/x-shockwave-flash":[`swf`],"application/x-silverlight-app":[`xap`],"application/x-sql":[`sql`],"application/x-stuffit":[`sit`],"application/x-stuffitx":[`sitx`],"application/x-subrip":[`srt`],"application/x-sv4cpio":[`sv4cpio`],"application/x-sv4crc":[`sv4crc`],"application/x-t3vm-image":[`t3`],"application/x-tads":[`gam`],"application/x-tar":[`tar`],"application/x-tcl":[`tcl`,`tk`],"application/x-tex":[`tex`],"application/x-tex-tfm":[`tfm`],"application/x-texinfo":[`texinfo`,`texi`],"application/x-tgif":[`*obj`],"application/x-ustar":[`ustar`],"application/x-virtualbox-hdd":[`hdd`],"application/x-virtualbox-ova":[`ova`],"application/x-virtualbox-ovf":[`ovf`],"application/x-virtualbox-vbox":[`vbox`],"application/x-virtualbox-vbox-extpack":[`vbox-extpack`],"application/x-virtualbox-vdi":[`vdi`],"application/x-virtualbox-vhd":[`vhd`],"application/x-virtualbox-vmdk":[`vmdk`],"application/x-wais-source":[`src`],"application/x-web-app-manifest+json":[`webapp`],"application/x-x509-ca-cert":[`der`,`crt`,`pem`],"application/x-xfig":[`fig`],"application/x-xliff+xml":[`*xlf`],"application/x-xpinstall":[`xpi`],"application/x-xz":[`xz`],"application/x-zmachine":[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`],"audio/vnd.dece.audio":[`uva`,`uvva`],"audio/vnd.digital-winds":[`eol`],"audio/vnd.dra":[`dra`],"audio/vnd.dts":[`dts`],"audio/vnd.dts.hd":[`dtshd`],"audio/vnd.lucent.voice":[`lvp`],"audio/vnd.ms-playready.media.pya":[`pya`],"audio/vnd.nuera.ecelp4800":[`ecelp4800`],"audio/vnd.nuera.ecelp7470":[`ecelp7470`],"audio/vnd.nuera.ecelp9600":[`ecelp9600`],"audio/vnd.rip":[`rip`],"audio/x-aac":[`aac`],"audio/x-aiff":[`aif`,`aiff`,`aifc`],"audio/x-caf":[`caf`],"audio/x-flac":[`flac`],"audio/x-m4a":[`*m4a`],"audio/x-matroska":[`mka`],"audio/x-mpegurl":[`m3u`],"audio/x-ms-wax":[`wax`],"audio/x-ms-wma":[`wma`],"audio/x-pn-realaudio":[`ram`,`ra`],"audio/x-pn-realaudio-plugin":[`rmp`],"audio/x-realaudio":[`*ra`],"audio/x-wav":[`*wav`],"chemical/x-cdx":[`cdx`],"chemical/x-cif":[`cif`],"chemical/x-cmdf":[`cmdf`],"chemical/x-cml":[`cml`],"chemical/x-csml":[`csml`],"chemical/x-xyz":[`xyz`],"image/prs.btif":[`btif`],"image/prs.pti":[`pti`],"image/vnd.adobe.photoshop":[`psd`],"image/vnd.airzip.accelerator.azv":[`azv`],"image/vnd.dece.graphic":[`uvi`,`uvvi`,`uvg`,`uvvg`],"image/vnd.djvu":[`djvu`,`djv`],"image/vnd.dvb.subtitle":[`*sub`],"image/vnd.dwg":[`dwg`],"image/vnd.dxf":[`dxf`],"image/vnd.fastbidsheet":[`fbs`],"image/vnd.fpx":[`fpx`],"image/vnd.fst":[`fst`],"image/vnd.fujixerox.edmics-mmr":[`mmr`],"image/vnd.fujixerox.edmics-rlc":[`rlc`],"image/vnd.microsoft.icon":[`ico`],"image/vnd.ms-dds":[`dds`],"image/vnd.ms-modi":[`mdi`],"image/vnd.ms-photo":[`wdp`],"image/vnd.net-fpx":[`npx`],"image/vnd.pco.b16":[`b16`],"image/vnd.tencent.tap":[`tap`],"image/vnd.valve.source.texture":[`vtf`],"image/vnd.wap.wbmp":[`wbmp`],"image/vnd.xiff":[`xif`],"image/vnd.zbrush.pcx":[`pcx`],"image/x-3ds":[`3ds`],"image/x-cmu-raster":[`ras`],"image/x-cmx":[`cmx`],"image/x-freehand":[`fh`,`fhc`,`fh4`,`fh5`,`fh7`],"image/x-icon":[`*ico`],"image/x-jng":[`jng`],"image/x-mrsid-image":[`sid`],"image/x-ms-bmp":[`*bmp`],"image/x-pcx":[`*pcx`],"image/x-pict":[`pic`,`pct`],"image/x-portable-anymap":[`pnm`],"image/x-portable-bitmap":[`pbm`],"image/x-portable-graymap":[`pgm`],"image/x-portable-pixmap":[`ppm`],"image/x-rgb":[`rgb`],"image/x-tga":[`tga`],"image/x-xbitmap":[`xbm`],"image/x-xpixmap":[`xpm`],"image/x-xwindowdump":[`xwd`],"message/vnd.wfa.wsc":[`wsc`],"model/vnd.collada+xml":[`dae`],"model/vnd.dwf":[`dwf`],"model/vnd.gdl":[`gdl`],"model/vnd.gtw":[`gtw`],"model/vnd.mts":[`mts`],"model/vnd.opengex":[`ogex`],"model/vnd.parasolid.transmit.binary":[`x_b`],"model/vnd.parasolid.transmit.text":[`x_t`],"model/vnd.sap.vds":[`vds`],"model/vnd.usdz+zip":[`usdz`],"model/vnd.valve.source.compiled-map":[`bsp`],"model/vnd.vtu":[`vtu`],"text/prs.lines.tag":[`dsc`],"text/vnd.curl":[`curl`],"text/vnd.curl.dcurl":[`dcurl`],"text/vnd.curl.mcurl":[`mcurl`],"text/vnd.curl.scurl":[`scurl`],"text/vnd.dvb.subtitle":[`sub`],"text/vnd.fly":[`fly`],"text/vnd.fmi.flexstor":[`flx`],"text/vnd.graphviz":[`gv`],"text/vnd.in3d.3dml":[`3dml`],"text/vnd.in3d.spot":[`spot`],"text/vnd.sun.j2me.app-descriptor":[`jad`],"text/vnd.wap.wml":[`wml`],"text/vnd.wap.wmlscript":[`wmls`],"text/x-asm":[`s`,`asm`],"text/x-c":[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`],"text/x-component":[`htc`],"text/x-fortran":[`f`,`for`,`f77`,`f90`],"text/x-handlebars-template":[`hbs`],"text/x-java-source":[`java`],"text/x-lua":[`lua`],"text/x-markdown":[`mkd`],"text/x-nfo":[`nfo`],"text/x-opml":[`opml`],"text/x-org":[`*org`],"text/x-pascal":[`p`,`pas`],"text/x-processing":[`pde`],"text/x-sass":[`sass`],"text/x-scss":[`scss`],"text/x-setext":[`etx`],"text/x-sfv":[`sfv`],"text/x-suse-ymp":[`ymp`],"text/x-uuencode":[`uu`],"text/x-vcalendar":[`vcs`],"text/x-vcard":[`vcf`],"video/vnd.dece.hd":[`uvh`,`uvvh`],"video/vnd.dece.mobile":[`uvm`,`uvvm`],"video/vnd.dece.pd":[`uvp`,`uvvp`],"video/vnd.dece.sd":[`uvs`,`uvvs`],"video/vnd.dece.video":[`uvv`,`uvvv`],"video/vnd.dvb.file":[`dvb`],"video/vnd.fvt":[`fvt`],"video/vnd.mpegurl":[`mxu`,`m4u`],"video/vnd.ms-playready.media.pyv":[`pyv`],"video/vnd.uvvu.mp4":[`uvu`,`uvvu`],"video/vnd.vivo":[`viv`],"video/x-f4v":[`f4v`],"video/x-fli":[`fli`],"video/x-flv":[`flv`],"video/x-m4v":[`m4v`],"video/x-matroska":[`mkv`,`mk3d`,`mks`],"video/x-mng":[`mng`],"video/x-ms-asf":[`asf`,`asx`],"video/x-ms-vob":[`vob`],"video/x-ms-wm":[`wm`],"video/x-ms-wmv":[`wmv`],"video/x-ms-wmx":[`wmx`],"video/x-ms-wvx":[`wvx`],"video/x-msvideo":[`avi`],"video/x-sgi-movie":[`movie`],"video/x-smv":[`smv`],"x-conference/x-cooltalk":[`ice`]}})),ln=r(((e,t)=>{t.exports=new(on())(sn(),cn())})),un=r(((e,n)=>{var r=t(`stream`).Stream,i=t(`util`);n.exports=a;function a(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i.inherits(a,r),a.create=function(e,t){var n=new this;for(var r in t||={},t)n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on(`error`,function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(a.prototype,`readable`,{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),a.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},a.prototype.resume=function(){this._released||this.release(),this.source.resume()},a.prototype.pause=function(){this.source.pause()},a.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},a.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},a.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]===`data`&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},a.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this.emit(`error`,Error(e))}}})),dn=r(((e,n)=>{var r=t(`util`),i=t(`stream`).Stream,a=un();n.exports=o;function o(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}r.inherits(o,i),o.create=function(e){var t=new this;for(var n in e||={},e)t[n]=e[n];return t},o.isStreamLike=function(e){return typeof e!=`function`&&typeof e!=`string`&&typeof e!=`boolean`&&typeof e!=`number`&&!Buffer.isBuffer(e)},o.prototype.append=function(e){if(o.isStreamLike(e)){if(!(e instanceof a)){var t=a.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on(`data`,this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},o.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},o.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},o.prototype._realGetNext=function(){var e=this._streams.shift();if(e===void 0){this.end();return}if(typeof e!=`function`){this._pipeNext(e);return}e(function(e){o.isStreamLike(e)&&(e.on(`data`,this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this))},o.prototype._pipeNext=function(e){if(this._currentStream=e,o.isStreamLike(e)){e.on(`end`,this._getNext.bind(this)),e.pipe(this,{end:!1});return}var t=e;this.write(t),this._getNext()},o.prototype._handleErrors=function(e){var t=this;e.on(`error`,function(e){t._emitError(e)})},o.prototype.write=function(e){this.emit(`data`,e)},o.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause==`function`&&this._currentStream.pause(),this.emit(`pause`))},o.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume==`function`&&this._currentStream.resume(),this.emit(`resume`)},o.prototype.end=function(){this._reset(),this.emit(`end`)},o.prototype.destroy=function(){this._reset(),this.emit(`close`)},o.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},o.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this._emitError(Error(e))}},o.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},o.prototype._emitError=function(e){this._reset(),this.emit(`error`,e)}})),fn=r(((e,t)=>{t.exports={"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}}})),pn=r(((e,t)=>{
|
|
11
|
+
`+t.prev}function Ce(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)W(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),gt=r(((e,t)=>{var n=ht(),r=pt(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),_t=r(((e,t)=>{t.exports=Object})),vt=r(((e,t)=>{t.exports=Error})),yt=r(((e,t)=>{t.exports=EvalError})),bt=r(((e,t)=>{t.exports=RangeError})),xt=r(((e,t)=>{t.exports=ReferenceError})),St=r(((e,t)=>{t.exports=SyntaxError})),Ct=r(((e,t)=>{t.exports=URIError})),wt=r(((e,t)=>{t.exports=Math.abs})),Tt=r(((e,t)=>{t.exports=Math.floor})),Et=r(((e,t)=>{t.exports=Math.max})),Dt=r(((e,t)=>{t.exports=Math.min})),Ot=r(((e,t)=>{t.exports=Math.pow})),kt=r(((e,t)=>{t.exports=Math.round})),At=r(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),jt=r(((e,t)=>{var n=At();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Mt=r(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Nt=r(((e,t)=>{var n=Mt();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Pt=r(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Ft=r(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),It=r(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Ft();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Lt=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Rt=r(((e,t)=>{t.exports=_t().getPrototypeOf||null})),zt=r(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),Bt=r(((e,t)=>{var n=zt();t.exports=Function.prototype.bind||n})),Vt=r(((e,t)=>{t.exports=Function.prototype.call})),Ht=r(((e,t)=>{t.exports=Function.prototype.apply})),Ut=r(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Wt=r(((e,t)=>{var n=Bt(),r=Ht(),i=Vt();t.exports=Ut()||n.call(i,r)})),Gt=r(((e,t)=>{var n=Bt(),r=pt(),i=Vt(),a=Wt();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Kt=r(((e,t)=>{var n=Gt(),r=Nt(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),qt=r(((e,t)=>{var n=Lt(),r=Rt(),i=Kt();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Jt=r(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Bt().call(n,r)})),Yt=r(((e,t)=>{var n,r=_t(),i=vt(),a=yt(),o=bt(),s=xt(),c=St(),l=pt(),u=Ct(),d=wt(),f=Tt(),p=Et(),m=Dt(),h=Ot(),g=kt(),_=jt(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Nt(),x=Pt(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=It()(),T=qt(),E=Rt(),D=Lt(),O=Ht(),k=Vt(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=Bt(),I=Jt(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,ee=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,U,`$1`):t||e}),r},te=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ee(e),r=n.length>0?n[0]:``,i=te(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Xt=r(((e,t)=>{var n=Yt(),r=Gt(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Zt=r(((e,t)=>{var n=Yt(),r=Xt(),i=ht(),a=pt(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Qt=r(((e,t)=>{var n=Yt(),r=Xt(),i=ht(),a=Zt(),o=pt(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),$t=r(((e,t)=>{var n=pt(),r=ht(),i=gt(),a=Zt(),o=Qt()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),en=r(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),tn=r(((e,t)=>{var n=en(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024;t.exports={arrayToObject:s,assign:l,combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},decode:u,encode:function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:c}})),nn=r(((e,t)=>{var n=$t(),r=tn(),i=en(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I<M.length;++I){var L=M[I],R=typeof L==`object`&&L&&L.value!==void 0?L.value:E[L];if(!(d&&R===null)){var z=y&&h?String(L).replace(/\./g,`%2E`):String(L),B=s(E)?typeof a==`function`?a(F,z):F:F+(y?`.`+z:`[`+z+`]`);T.set(t,O);var V=n();V.set(m,T),l(j,e(R,B,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,V))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),rn=r(((e,t)=>{var n=tn(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),an=r(((e,t)=>{var n=nn(),r=rn();t.exports={formats:en(),parse:r,stringify:n}})),on=r(((e,t)=>{function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}n.prototype.define=function(e,t){for(let n in e){let r=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(let e=0;e<r.length;e++){let i=r[e];if(i[0]!==`*`){if(!t&&i in this._types)throw Error(`Attempt to change mapping for "`+i+`" extension from "`+this._types[i]+`" to "`+n+'". Pass `force=true` to allow this, otherwise remove "'+i+`" from the list of extensions for "`+n+`".`);this._types[i]=n}}if(t||!this._extensions[n]){let e=r[0];this._extensions[n]=e[0]===`*`?e.substr(1):e}}},n.prototype.getType=function(e){e=String(e);let t=e.replace(/^.*[/\\]/,``).toLowerCase(),n=t.replace(/^.*\./,``).toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},n.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null},t.exports=n})),sn=r(((e,t)=>{t.exports={"application/andrew-inset":[`ez`],"application/applixware":[`aw`],"application/atom+xml":[`atom`],"application/atomcat+xml":[`atomcat`],"application/atomdeleted+xml":[`atomdeleted`],"application/atomsvc+xml":[`atomsvc`],"application/atsc-dwd+xml":[`dwd`],"application/atsc-held+xml":[`held`],"application/atsc-rsat+xml":[`rsat`],"application/bdoc":[`bdoc`],"application/calendar+xml":[`xcs`],"application/ccxml+xml":[`ccxml`],"application/cdfx+xml":[`cdfx`],"application/cdmi-capability":[`cdmia`],"application/cdmi-container":[`cdmic`],"application/cdmi-domain":[`cdmid`],"application/cdmi-object":[`cdmio`],"application/cdmi-queue":[`cdmiq`],"application/cu-seeme":[`cu`],"application/dash+xml":[`mpd`],"application/davmount+xml":[`davmount`],"application/docbook+xml":[`dbk`],"application/dssc+der":[`dssc`],"application/dssc+xml":[`xdssc`],"application/ecmascript":[`es`,`ecma`],"application/emma+xml":[`emma`],"application/emotionml+xml":[`emotionml`],"application/epub+zip":[`epub`],"application/exi":[`exi`],"application/express":[`exp`],"application/fdt+xml":[`fdt`],"application/font-tdpfr":[`pfr`],"application/geo+json":[`geojson`],"application/gml+xml":[`gml`],"application/gpx+xml":[`gpx`],"application/gxf":[`gxf`],"application/gzip":[`gz`],"application/hjson":[`hjson`],"application/hyperstudio":[`stk`],"application/inkml+xml":[`ink`,`inkml`],"application/ipfix":[`ipfix`],"application/its+xml":[`its`],"application/java-archive":[`jar`,`war`,`ear`],"application/java-serialized-object":[`ser`],"application/java-vm":[`class`],"application/javascript":[`js`,`mjs`],"application/json":[`json`,`map`],"application/json5":[`json5`],"application/jsonml+json":[`jsonml`],"application/ld+json":[`jsonld`],"application/lgr+xml":[`lgr`],"application/lost+xml":[`lostxml`],"application/mac-binhex40":[`hqx`],"application/mac-compactpro":[`cpt`],"application/mads+xml":[`mads`],"application/manifest+json":[`webmanifest`],"application/marc":[`mrc`],"application/marcxml+xml":[`mrcx`],"application/mathematica":[`ma`,`nb`,`mb`],"application/mathml+xml":[`mathml`],"application/mbox":[`mbox`],"application/mediaservercontrol+xml":[`mscml`],"application/metalink+xml":[`metalink`],"application/metalink4+xml":[`meta4`],"application/mets+xml":[`mets`],"application/mmt-aei+xml":[`maei`],"application/mmt-usd+xml":[`musd`],"application/mods+xml":[`mods`],"application/mp21":[`m21`,`mp21`],"application/mp4":[`mp4s`,`m4p`],"application/msword":[`doc`,`dot`],"application/mxf":[`mxf`],"application/n-quads":[`nq`],"application/n-triples":[`nt`],"application/node":[`cjs`],"application/octet-stream":[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`],"application/oda":[`oda`],"application/oebps-package+xml":[`opf`],"application/ogg":[`ogx`],"application/omdoc+xml":[`omdoc`],"application/onenote":[`onetoc`,`onetoc2`,`onetmp`,`onepkg`],"application/oxps":[`oxps`],"application/p2p-overlay+xml":[`relo`],"application/patch-ops-error+xml":[`xer`],"application/pdf":[`pdf`],"application/pgp-encrypted":[`pgp`],"application/pgp-signature":[`asc`,`sig`],"application/pics-rules":[`prf`],"application/pkcs10":[`p10`],"application/pkcs7-mime":[`p7m`,`p7c`],"application/pkcs7-signature":[`p7s`],"application/pkcs8":[`p8`],"application/pkix-attr-cert":[`ac`],"application/pkix-cert":[`cer`],"application/pkix-crl":[`crl`],"application/pkix-pkipath":[`pkipath`],"application/pkixcmp":[`pki`],"application/pls+xml":[`pls`],"application/postscript":[`ai`,`eps`,`ps`],"application/provenance+xml":[`provx`],"application/pskc+xml":[`pskcxml`],"application/raml+yaml":[`raml`],"application/rdf+xml":[`rdf`,`owl`],"application/reginfo+xml":[`rif`],"application/relax-ng-compact-syntax":[`rnc`],"application/resource-lists+xml":[`rl`],"application/resource-lists-diff+xml":[`rld`],"application/rls-services+xml":[`rs`],"application/route-apd+xml":[`rapd`],"application/route-s-tsid+xml":[`sls`],"application/route-usd+xml":[`rusd`],"application/rpki-ghostbusters":[`gbr`],"application/rpki-manifest":[`mft`],"application/rpki-roa":[`roa`],"application/rsd+xml":[`rsd`],"application/rss+xml":[`rss`],"application/rtf":[`rtf`],"application/sbml+xml":[`sbml`],"application/scvp-cv-request":[`scq`],"application/scvp-cv-response":[`scs`],"application/scvp-vp-request":[`spq`],"application/scvp-vp-response":[`spp`],"application/sdp":[`sdp`],"application/senml+xml":[`senmlx`],"application/sensml+xml":[`sensmlx`],"application/set-payment-initiation":[`setpay`],"application/set-registration-initiation":[`setreg`],"application/shf+xml":[`shf`],"application/sieve":[`siv`,`sieve`],"application/smil+xml":[`smi`,`smil`],"application/sparql-query":[`rq`],"application/sparql-results+xml":[`srx`],"application/srgs":[`gram`],"application/srgs+xml":[`grxml`],"application/sru+xml":[`sru`],"application/ssdl+xml":[`ssdl`],"application/ssml+xml":[`ssml`],"application/swid+xml":[`swidtag`],"application/tei+xml":[`tei`,`teicorpus`],"application/thraud+xml":[`tfi`],"application/timestamped-data":[`tsd`],"application/toml":[`toml`],"application/trig":[`trig`],"application/ttml+xml":[`ttml`],"application/ubjson":[`ubj`],"application/urc-ressheet+xml":[`rsheet`],"application/urc-targetdesc+xml":[`td`],"application/voicexml+xml":[`vxml`],"application/wasm":[`wasm`],"application/widget":[`wgt`],"application/winhlp":[`hlp`],"application/wsdl+xml":[`wsdl`],"application/wspolicy+xml":[`wspolicy`],"application/xaml+xml":[`xaml`],"application/xcap-att+xml":[`xav`],"application/xcap-caps+xml":[`xca`],"application/xcap-diff+xml":[`xdf`],"application/xcap-el+xml":[`xel`],"application/xcap-ns+xml":[`xns`],"application/xenc+xml":[`xenc`],"application/xhtml+xml":[`xhtml`,`xht`],"application/xliff+xml":[`xlf`],"application/xml":[`xml`,`xsl`,`xsd`,`rng`],"application/xml-dtd":[`dtd`],"application/xop+xml":[`xop`],"application/xproc+xml":[`xpl`],"application/xslt+xml":[`*xsl`,`xslt`],"application/xspf+xml":[`xspf`],"application/xv+xml":[`mxml`,`xhvml`,`xvml`,`xvm`],"application/yang":[`yang`],"application/yin+xml":[`yin`],"application/zip":[`zip`],"audio/3gpp":[`*3gpp`],"audio/adpcm":[`adp`],"audio/amr":[`amr`],"audio/basic":[`au`,`snd`],"audio/midi":[`mid`,`midi`,`kar`,`rmi`],"audio/mobile-xmf":[`mxmf`],"audio/mp3":[`*mp3`],"audio/mp4":[`m4a`,`mp4a`],"audio/mpeg":[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`],"audio/ogg":[`oga`,`ogg`,`spx`,`opus`],"audio/s3m":[`s3m`],"audio/silk":[`sil`],"audio/wav":[`wav`],"audio/wave":[`*wav`],"audio/webm":[`weba`],"audio/xm":[`xm`],"font/collection":[`ttc`],"font/otf":[`otf`],"font/ttf":[`ttf`],"font/woff":[`woff`],"font/woff2":[`woff2`],"image/aces":[`exr`],"image/apng":[`apng`],"image/avif":[`avif`],"image/bmp":[`bmp`],"image/cgm":[`cgm`],"image/dicom-rle":[`drle`],"image/emf":[`emf`],"image/fits":[`fits`],"image/g3fax":[`g3`],"image/gif":[`gif`],"image/heic":[`heic`],"image/heic-sequence":[`heics`],"image/heif":[`heif`],"image/heif-sequence":[`heifs`],"image/hej2k":[`hej2`],"image/hsj2":[`hsj2`],"image/ief":[`ief`],"image/jls":[`jls`],"image/jp2":[`jp2`,`jpg2`],"image/jpeg":[`jpeg`,`jpg`,`jpe`],"image/jph":[`jph`],"image/jphc":[`jhc`],"image/jpm":[`jpm`],"image/jpx":[`jpx`,`jpf`],"image/jxr":[`jxr`],"image/jxra":[`jxra`],"image/jxrs":[`jxrs`],"image/jxs":[`jxs`],"image/jxsc":[`jxsc`],"image/jxsi":[`jxsi`],"image/jxss":[`jxss`],"image/ktx":[`ktx`],"image/ktx2":[`ktx2`],"image/png":[`png`],"image/sgi":[`sgi`],"image/svg+xml":[`svg`,`svgz`],"image/t38":[`t38`],"image/tiff":[`tif`,`tiff`],"image/tiff-fx":[`tfx`],"image/webp":[`webp`],"image/wmf":[`wmf`],"message/disposition-notification":[`disposition-notification`],"message/global":[`u8msg`],"message/global-delivery-status":[`u8dsn`],"message/global-disposition-notification":[`u8mdn`],"message/global-headers":[`u8hdr`],"message/rfc822":[`eml`,`mime`],"model/3mf":[`3mf`],"model/gltf+json":[`gltf`],"model/gltf-binary":[`glb`],"model/iges":[`igs`,`iges`],"model/mesh":[`msh`,`mesh`,`silo`],"model/mtl":[`mtl`],"model/obj":[`obj`],"model/step+xml":[`stpx`],"model/step+zip":[`stpz`],"model/step-xml+zip":[`stpxz`],"model/stl":[`stl`],"model/vrml":[`wrl`,`vrml`],"model/x3d+binary":[`*x3db`,`x3dbz`],"model/x3d+fastinfoset":[`x3db`],"model/x3d+vrml":[`*x3dv`,`x3dvz`],"model/x3d+xml":[`x3d`,`x3dz`],"model/x3d-vrml":[`x3dv`],"text/cache-manifest":[`appcache`,`manifest`],"text/calendar":[`ics`,`ifb`],"text/coffeescript":[`coffee`,`litcoffee`],"text/css":[`css`],"text/csv":[`csv`],"text/html":[`html`,`htm`,`shtml`],"text/jade":[`jade`],"text/jsx":[`jsx`],"text/less":[`less`],"text/markdown":[`markdown`,`md`],"text/mathml":[`mml`],"text/mdx":[`mdx`],"text/n3":[`n3`],"text/plain":[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`],"text/richtext":[`rtx`],"text/rtf":[`*rtf`],"text/sgml":[`sgml`,`sgm`],"text/shex":[`shex`],"text/slim":[`slim`,`slm`],"text/spdx":[`spdx`],"text/stylus":[`stylus`,`styl`],"text/tab-separated-values":[`tsv`],"text/troff":[`t`,`tr`,`roff`,`man`,`me`,`ms`],"text/turtle":[`ttl`],"text/uri-list":[`uri`,`uris`,`urls`],"text/vcard":[`vcard`],"text/vtt":[`vtt`],"text/xml":[`*xml`],"text/yaml":[`yaml`,`yml`],"video/3gpp":[`3gp`,`3gpp`],"video/3gpp2":[`3g2`],"video/h261":[`h261`],"video/h263":[`h263`],"video/h264":[`h264`],"video/iso.segment":[`m4s`],"video/jpeg":[`jpgv`],"video/jpm":[`*jpm`,`jpgm`],"video/mj2":[`mj2`,`mjp2`],"video/mp2t":[`ts`],"video/mp4":[`mp4`,`mp4v`,`mpg4`],"video/mpeg":[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`],"video/ogg":[`ogv`],"video/quicktime":[`qt`,`mov`],"video/webm":[`webm`]}})),cn=r(((e,t)=>{t.exports={"application/prs.cww":[`cww`],"application/vnd.1000minds.decision-model+xml":[`1km`],"application/vnd.3gpp.pic-bw-large":[`plb`],"application/vnd.3gpp.pic-bw-small":[`psb`],"application/vnd.3gpp.pic-bw-var":[`pvb`],"application/vnd.3gpp2.tcap":[`tcap`],"application/vnd.3m.post-it-notes":[`pwn`],"application/vnd.accpac.simply.aso":[`aso`],"application/vnd.accpac.simply.imp":[`imp`],"application/vnd.acucobol":[`acu`],"application/vnd.acucorp":[`atc`,`acutc`],"application/vnd.adobe.air-application-installer-package+zip":[`air`],"application/vnd.adobe.formscentral.fcdt":[`fcdt`],"application/vnd.adobe.fxp":[`fxp`,`fxpl`],"application/vnd.adobe.xdp+xml":[`xdp`],"application/vnd.adobe.xfdf":[`xfdf`],"application/vnd.ahead.space":[`ahead`],"application/vnd.airzip.filesecure.azf":[`azf`],"application/vnd.airzip.filesecure.azs":[`azs`],"application/vnd.amazon.ebook":[`azw`],"application/vnd.americandynamics.acc":[`acc`],"application/vnd.amiga.ami":[`ami`],"application/vnd.android.package-archive":[`apk`],"application/vnd.anser-web-certificate-issue-initiation":[`cii`],"application/vnd.anser-web-funds-transfer-initiation":[`fti`],"application/vnd.antix.game-component":[`atx`],"application/vnd.apple.installer+xml":[`mpkg`],"application/vnd.apple.keynote":[`key`],"application/vnd.apple.mpegurl":[`m3u8`],"application/vnd.apple.numbers":[`numbers`],"application/vnd.apple.pages":[`pages`],"application/vnd.apple.pkpass":[`pkpass`],"application/vnd.aristanetworks.swi":[`swi`],"application/vnd.astraea-software.iota":[`iota`],"application/vnd.audiograph":[`aep`],"application/vnd.balsamiq.bmml+xml":[`bmml`],"application/vnd.blueice.multipass":[`mpm`],"application/vnd.bmi":[`bmi`],"application/vnd.businessobjects":[`rep`],"application/vnd.chemdraw+xml":[`cdxml`],"application/vnd.chipnuts.karaoke-mmd":[`mmd`],"application/vnd.cinderella":[`cdy`],"application/vnd.citationstyles.style+xml":[`csl`],"application/vnd.claymore":[`cla`],"application/vnd.cloanto.rp9":[`rp9`],"application/vnd.clonk.c4group":[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`],"application/vnd.cluetrust.cartomobile-config":[`c11amc`],"application/vnd.cluetrust.cartomobile-config-pkg":[`c11amz`],"application/vnd.commonspace":[`csp`],"application/vnd.contact.cmsg":[`cdbcmsg`],"application/vnd.cosmocaller":[`cmc`],"application/vnd.crick.clicker":[`clkx`],"application/vnd.crick.clicker.keyboard":[`clkk`],"application/vnd.crick.clicker.palette":[`clkp`],"application/vnd.crick.clicker.template":[`clkt`],"application/vnd.crick.clicker.wordbank":[`clkw`],"application/vnd.criticaltools.wbs+xml":[`wbs`],"application/vnd.ctc-posml":[`pml`],"application/vnd.cups-ppd":[`ppd`],"application/vnd.curl.car":[`car`],"application/vnd.curl.pcurl":[`pcurl`],"application/vnd.dart":[`dart`],"application/vnd.data-vision.rdz":[`rdz`],"application/vnd.dbf":[`dbf`],"application/vnd.dece.data":[`uvf`,`uvvf`,`uvd`,`uvvd`],"application/vnd.dece.ttml+xml":[`uvt`,`uvvt`],"application/vnd.dece.unspecified":[`uvx`,`uvvx`],"application/vnd.dece.zip":[`uvz`,`uvvz`],"application/vnd.denovo.fcselayout-link":[`fe_launch`],"application/vnd.dna":[`dna`],"application/vnd.dolby.mlp":[`mlp`],"application/vnd.dpgraph":[`dpg`],"application/vnd.dreamfactory":[`dfac`],"application/vnd.ds-keypoint":[`kpxx`],"application/vnd.dvb.ait":[`ait`],"application/vnd.dvb.service":[`svc`],"application/vnd.dynageo":[`geo`],"application/vnd.ecowin.chart":[`mag`],"application/vnd.enliven":[`nml`],"application/vnd.epson.esf":[`esf`],"application/vnd.epson.msf":[`msf`],"application/vnd.epson.quickanime":[`qam`],"application/vnd.epson.salt":[`slt`],"application/vnd.epson.ssf":[`ssf`],"application/vnd.eszigno3+xml":[`es3`,`et3`],"application/vnd.ezpix-album":[`ez2`],"application/vnd.ezpix-package":[`ez3`],"application/vnd.fdf":[`fdf`],"application/vnd.fdsn.mseed":[`mseed`],"application/vnd.fdsn.seed":[`seed`,`dataless`],"application/vnd.flographit":[`gph`],"application/vnd.fluxtime.clip":[`ftc`],"application/vnd.framemaker":[`fm`,`frame`,`maker`,`book`],"application/vnd.frogans.fnc":[`fnc`],"application/vnd.frogans.ltf":[`ltf`],"application/vnd.fsc.weblaunch":[`fsc`],"application/vnd.fujitsu.oasys":[`oas`],"application/vnd.fujitsu.oasys2":[`oa2`],"application/vnd.fujitsu.oasys3":[`oa3`],"application/vnd.fujitsu.oasysgp":[`fg5`],"application/vnd.fujitsu.oasysprs":[`bh2`],"application/vnd.fujixerox.ddd":[`ddd`],"application/vnd.fujixerox.docuworks":[`xdw`],"application/vnd.fujixerox.docuworks.binder":[`xbd`],"application/vnd.fuzzysheet":[`fzs`],"application/vnd.genomatix.tuxedo":[`txd`],"application/vnd.geogebra.file":[`ggb`],"application/vnd.geogebra.tool":[`ggt`],"application/vnd.geometry-explorer":[`gex`,`gre`],"application/vnd.geonext":[`gxt`],"application/vnd.geoplan":[`g2w`],"application/vnd.geospace":[`g3w`],"application/vnd.gmx":[`gmx`],"application/vnd.google-apps.document":[`gdoc`],"application/vnd.google-apps.presentation":[`gslides`],"application/vnd.google-apps.spreadsheet":[`gsheet`],"application/vnd.google-earth.kml+xml":[`kml`],"application/vnd.google-earth.kmz":[`kmz`],"application/vnd.grafeq":[`gqf`,`gqs`],"application/vnd.groove-account":[`gac`],"application/vnd.groove-help":[`ghf`],"application/vnd.groove-identity-message":[`gim`],"application/vnd.groove-injector":[`grv`],"application/vnd.groove-tool-message":[`gtm`],"application/vnd.groove-tool-template":[`tpl`],"application/vnd.groove-vcard":[`vcg`],"application/vnd.hal+xml":[`hal`],"application/vnd.handheld-entertainment+xml":[`zmm`],"application/vnd.hbci":[`hbci`],"application/vnd.hhe.lesson-player":[`les`],"application/vnd.hp-hpgl":[`hpgl`],"application/vnd.hp-hpid":[`hpid`],"application/vnd.hp-hps":[`hps`],"application/vnd.hp-jlyt":[`jlt`],"application/vnd.hp-pcl":[`pcl`],"application/vnd.hp-pclxl":[`pclxl`],"application/vnd.hydrostatix.sof-data":[`sfd-hdstx`],"application/vnd.ibm.minipay":[`mpy`],"application/vnd.ibm.modcap":[`afp`,`listafp`,`list3820`],"application/vnd.ibm.rights-management":[`irm`],"application/vnd.ibm.secure-container":[`sc`],"application/vnd.iccprofile":[`icc`,`icm`],"application/vnd.igloader":[`igl`],"application/vnd.immervision-ivp":[`ivp`],"application/vnd.immervision-ivu":[`ivu`],"application/vnd.insors.igm":[`igm`],"application/vnd.intercon.formnet":[`xpw`,`xpx`],"application/vnd.intergeo":[`i2g`],"application/vnd.intu.qbo":[`qbo`],"application/vnd.intu.qfx":[`qfx`],"application/vnd.ipunplugged.rcprofile":[`rcprofile`],"application/vnd.irepository.package+xml":[`irp`],"application/vnd.is-xpr":[`xpr`],"application/vnd.isac.fcs":[`fcs`],"application/vnd.jam":[`jam`],"application/vnd.jcp.javame.midlet-rms":[`rms`],"application/vnd.jisp":[`jisp`],"application/vnd.joost.joda-archive":[`joda`],"application/vnd.kahootz":[`ktz`,`ktr`],"application/vnd.kde.karbon":[`karbon`],"application/vnd.kde.kchart":[`chrt`],"application/vnd.kde.kformula":[`kfo`],"application/vnd.kde.kivio":[`flw`],"application/vnd.kde.kontour":[`kon`],"application/vnd.kde.kpresenter":[`kpr`,`kpt`],"application/vnd.kde.kspread":[`ksp`],"application/vnd.kde.kword":[`kwd`,`kwt`],"application/vnd.kenameaapp":[`htke`],"application/vnd.kidspiration":[`kia`],"application/vnd.kinar":[`kne`,`knp`],"application/vnd.koan":[`skp`,`skd`,`skt`,`skm`],"application/vnd.kodak-descriptor":[`sse`],"application/vnd.las.las+xml":[`lasxml`],"application/vnd.llamagraphics.life-balance.desktop":[`lbd`],"application/vnd.llamagraphics.life-balance.exchange+xml":[`lbe`],"application/vnd.lotus-1-2-3":[`123`],"application/vnd.lotus-approach":[`apr`],"application/vnd.lotus-freelance":[`pre`],"application/vnd.lotus-notes":[`nsf`],"application/vnd.lotus-organizer":[`org`],"application/vnd.lotus-screencam":[`scm`],"application/vnd.lotus-wordpro":[`lwp`],"application/vnd.macports.portpkg":[`portpkg`],"application/vnd.mapbox-vector-tile":[`mvt`],"application/vnd.mcd":[`mcd`],"application/vnd.medcalcdata":[`mc1`],"application/vnd.mediastation.cdkey":[`cdkey`],"application/vnd.mfer":[`mwf`],"application/vnd.mfmp":[`mfm`],"application/vnd.micrografx.flo":[`flo`],"application/vnd.micrografx.igx":[`igx`],"application/vnd.mif":[`mif`],"application/vnd.mobius.daf":[`daf`],"application/vnd.mobius.dis":[`dis`],"application/vnd.mobius.mbk":[`mbk`],"application/vnd.mobius.mqy":[`mqy`],"application/vnd.mobius.msl":[`msl`],"application/vnd.mobius.plc":[`plc`],"application/vnd.mobius.txf":[`txf`],"application/vnd.mophun.application":[`mpn`],"application/vnd.mophun.certificate":[`mpc`],"application/vnd.mozilla.xul+xml":[`xul`],"application/vnd.ms-artgalry":[`cil`],"application/vnd.ms-cab-compressed":[`cab`],"application/vnd.ms-excel":[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`],"application/vnd.ms-excel.addin.macroenabled.12":[`xlam`],"application/vnd.ms-excel.sheet.binary.macroenabled.12":[`xlsb`],"application/vnd.ms-excel.sheet.macroenabled.12":[`xlsm`],"application/vnd.ms-excel.template.macroenabled.12":[`xltm`],"application/vnd.ms-fontobject":[`eot`],"application/vnd.ms-htmlhelp":[`chm`],"application/vnd.ms-ims":[`ims`],"application/vnd.ms-lrm":[`lrm`],"application/vnd.ms-officetheme":[`thmx`],"application/vnd.ms-outlook":[`msg`],"application/vnd.ms-pki.seccat":[`cat`],"application/vnd.ms-pki.stl":[`*stl`],"application/vnd.ms-powerpoint":[`ppt`,`pps`,`pot`],"application/vnd.ms-powerpoint.addin.macroenabled.12":[`ppam`],"application/vnd.ms-powerpoint.presentation.macroenabled.12":[`pptm`],"application/vnd.ms-powerpoint.slide.macroenabled.12":[`sldm`],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":[`ppsm`],"application/vnd.ms-powerpoint.template.macroenabled.12":[`potm`],"application/vnd.ms-project":[`mpp`,`mpt`],"application/vnd.ms-word.document.macroenabled.12":[`docm`],"application/vnd.ms-word.template.macroenabled.12":[`dotm`],"application/vnd.ms-works":[`wps`,`wks`,`wcm`,`wdb`],"application/vnd.ms-wpl":[`wpl`],"application/vnd.ms-xpsdocument":[`xps`],"application/vnd.mseq":[`mseq`],"application/vnd.musician":[`mus`],"application/vnd.muvee.style":[`msty`],"application/vnd.mynfc":[`taglet`],"application/vnd.neurolanguage.nlu":[`nlu`],"application/vnd.nitf":[`ntf`,`nitf`],"application/vnd.noblenet-directory":[`nnd`],"application/vnd.noblenet-sealer":[`nns`],"application/vnd.noblenet-web":[`nnw`],"application/vnd.nokia.n-gage.ac+xml":[`*ac`],"application/vnd.nokia.n-gage.data":[`ngdat`],"application/vnd.nokia.n-gage.symbian.install":[`n-gage`],"application/vnd.nokia.radio-preset":[`rpst`],"application/vnd.nokia.radio-presets":[`rpss`],"application/vnd.novadigm.edm":[`edm`],"application/vnd.novadigm.edx":[`edx`],"application/vnd.novadigm.ext":[`ext`],"application/vnd.oasis.opendocument.chart":[`odc`],"application/vnd.oasis.opendocument.chart-template":[`otc`],"application/vnd.oasis.opendocument.database":[`odb`],"application/vnd.oasis.opendocument.formula":[`odf`],"application/vnd.oasis.opendocument.formula-template":[`odft`],"application/vnd.oasis.opendocument.graphics":[`odg`],"application/vnd.oasis.opendocument.graphics-template":[`otg`],"application/vnd.oasis.opendocument.image":[`odi`],"application/vnd.oasis.opendocument.image-template":[`oti`],"application/vnd.oasis.opendocument.presentation":[`odp`],"application/vnd.oasis.opendocument.presentation-template":[`otp`],"application/vnd.oasis.opendocument.spreadsheet":[`ods`],"application/vnd.oasis.opendocument.spreadsheet-template":[`ots`],"application/vnd.oasis.opendocument.text":[`odt`],"application/vnd.oasis.opendocument.text-master":[`odm`],"application/vnd.oasis.opendocument.text-template":[`ott`],"application/vnd.oasis.opendocument.text-web":[`oth`],"application/vnd.olpc-sugar":[`xo`],"application/vnd.oma.dd2+xml":[`dd2`],"application/vnd.openblox.game+xml":[`obgx`],"application/vnd.openofficeorg.extension":[`oxt`],"application/vnd.openstreetmap.data+xml":[`osm`],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[`pptx`],"application/vnd.openxmlformats-officedocument.presentationml.slide":[`sldx`],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":[`ppsx`],"application/vnd.openxmlformats-officedocument.presentationml.template":[`potx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[`xlsx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":[`xltx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[`docx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":[`dotx`],"application/vnd.osgeo.mapguide.package":[`mgp`],"application/vnd.osgi.dp":[`dp`],"application/vnd.osgi.subsystem":[`esa`],"application/vnd.palm":[`pdb`,`pqa`,`oprc`],"application/vnd.pawaafile":[`paw`],"application/vnd.pg.format":[`str`],"application/vnd.pg.osasli":[`ei6`],"application/vnd.picsel":[`efif`],"application/vnd.pmi.widget":[`wg`],"application/vnd.pocketlearn":[`plf`],"application/vnd.powerbuilder6":[`pbd`],"application/vnd.previewsystems.box":[`box`],"application/vnd.proteus.magazine":[`mgz`],"application/vnd.publishare-delta-tree":[`qps`],"application/vnd.pvi.ptid1":[`ptid`],"application/vnd.quark.quarkxpress":[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`],"application/vnd.rar":[`rar`],"application/vnd.realvnc.bed":[`bed`],"application/vnd.recordare.musicxml":[`mxl`],"application/vnd.recordare.musicxml+xml":[`musicxml`],"application/vnd.rig.cryptonote":[`cryptonote`],"application/vnd.rim.cod":[`cod`],"application/vnd.rn-realmedia":[`rm`],"application/vnd.rn-realmedia-vbr":[`rmvb`],"application/vnd.route66.link66+xml":[`link66`],"application/vnd.sailingtracker.track":[`st`],"application/vnd.seemail":[`see`],"application/vnd.sema":[`sema`],"application/vnd.semd":[`semd`],"application/vnd.semf":[`semf`],"application/vnd.shana.informed.formdata":[`ifm`],"application/vnd.shana.informed.formtemplate":[`itp`],"application/vnd.shana.informed.interchange":[`iif`],"application/vnd.shana.informed.package":[`ipk`],"application/vnd.simtech-mindmapper":[`twd`,`twds`],"application/vnd.smaf":[`mmf`],"application/vnd.smart.teacher":[`teacher`],"application/vnd.software602.filler.form+xml":[`fo`],"application/vnd.solent.sdkm+xml":[`sdkm`,`sdkd`],"application/vnd.spotfire.dxp":[`dxp`],"application/vnd.spotfire.sfs":[`sfs`],"application/vnd.stardivision.calc":[`sdc`],"application/vnd.stardivision.draw":[`sda`],"application/vnd.stardivision.impress":[`sdd`],"application/vnd.stardivision.math":[`smf`],"application/vnd.stardivision.writer":[`sdw`,`vor`],"application/vnd.stardivision.writer-global":[`sgl`],"application/vnd.stepmania.package":[`smzip`],"application/vnd.stepmania.stepchart":[`sm`],"application/vnd.sun.wadl+xml":[`wadl`],"application/vnd.sun.xml.calc":[`sxc`],"application/vnd.sun.xml.calc.template":[`stc`],"application/vnd.sun.xml.draw":[`sxd`],"application/vnd.sun.xml.draw.template":[`std`],"application/vnd.sun.xml.impress":[`sxi`],"application/vnd.sun.xml.impress.template":[`sti`],"application/vnd.sun.xml.math":[`sxm`],"application/vnd.sun.xml.writer":[`sxw`],"application/vnd.sun.xml.writer.global":[`sxg`],"application/vnd.sun.xml.writer.template":[`stw`],"application/vnd.sus-calendar":[`sus`,`susp`],"application/vnd.svd":[`svd`],"application/vnd.symbian.install":[`sis`,`sisx`],"application/vnd.syncml+xml":[`xsm`],"application/vnd.syncml.dm+wbxml":[`bdm`],"application/vnd.syncml.dm+xml":[`xdm`],"application/vnd.syncml.dmddf+xml":[`ddf`],"application/vnd.tao.intent-module-archive":[`tao`],"application/vnd.tcpdump.pcap":[`pcap`,`cap`,`dmp`],"application/vnd.tmobile-livetv":[`tmo`],"application/vnd.trid.tpt":[`tpt`],"application/vnd.triscape.mxs":[`mxs`],"application/vnd.trueapp":[`tra`],"application/vnd.ufdl":[`ufd`,`ufdl`],"application/vnd.uiq.theme":[`utz`],"application/vnd.umajin":[`umj`],"application/vnd.unity":[`unityweb`],"application/vnd.uoml+xml":[`uoml`],"application/vnd.vcx":[`vcx`],"application/vnd.visio":[`vsd`,`vst`,`vss`,`vsw`],"application/vnd.visionary":[`vis`],"application/vnd.vsf":[`vsf`],"application/vnd.wap.wbxml":[`wbxml`],"application/vnd.wap.wmlc":[`wmlc`],"application/vnd.wap.wmlscriptc":[`wmlsc`],"application/vnd.webturbo":[`wtb`],"application/vnd.wolfram.player":[`nbp`],"application/vnd.wordperfect":[`wpd`],"application/vnd.wqd":[`wqd`],"application/vnd.wt.stf":[`stf`],"application/vnd.xara":[`xar`],"application/vnd.xfdl":[`xfdl`],"application/vnd.yamaha.hv-dic":[`hvd`],"application/vnd.yamaha.hv-script":[`hvs`],"application/vnd.yamaha.hv-voice":[`hvp`],"application/vnd.yamaha.openscoreformat":[`osf`],"application/vnd.yamaha.openscoreformat.osfpvg+xml":[`osfpvg`],"application/vnd.yamaha.smaf-audio":[`saf`],"application/vnd.yamaha.smaf-phrase":[`spf`],"application/vnd.yellowriver-custom-menu":[`cmp`],"application/vnd.zul":[`zir`,`zirz`],"application/vnd.zzazz.deck+xml":[`zaz`],"application/x-7z-compressed":[`7z`],"application/x-abiword":[`abw`],"application/x-ace-compressed":[`ace`],"application/x-apple-diskimage":[`*dmg`],"application/x-arj":[`arj`],"application/x-authorware-bin":[`aab`,`x32`,`u32`,`vox`],"application/x-authorware-map":[`aam`],"application/x-authorware-seg":[`aas`],"application/x-bcpio":[`bcpio`],"application/x-bdoc":[`*bdoc`],"application/x-bittorrent":[`torrent`],"application/x-blorb":[`blb`,`blorb`],"application/x-bzip":[`bz`],"application/x-bzip2":[`bz2`,`boz`],"application/x-cbr":[`cbr`,`cba`,`cbt`,`cbz`,`cb7`],"application/x-cdlink":[`vcd`],"application/x-cfs-compressed":[`cfs`],"application/x-chat":[`chat`],"application/x-chess-pgn":[`pgn`],"application/x-chrome-extension":[`crx`],"application/x-cocoa":[`cco`],"application/x-conference":[`nsc`],"application/x-cpio":[`cpio`],"application/x-csh":[`csh`],"application/x-debian-package":[`*deb`,`udeb`],"application/x-dgc-compressed":[`dgc`],"application/x-director":[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`],"application/x-doom":[`wad`],"application/x-dtbncx+xml":[`ncx`],"application/x-dtbook+xml":[`dtb`],"application/x-dtbresource+xml":[`res`],"application/x-dvi":[`dvi`],"application/x-envoy":[`evy`],"application/x-eva":[`eva`],"application/x-font-bdf":[`bdf`],"application/x-font-ghostscript":[`gsf`],"application/x-font-linux-psf":[`psf`],"application/x-font-pcf":[`pcf`],"application/x-font-snf":[`snf`],"application/x-font-type1":[`pfa`,`pfb`,`pfm`,`afm`],"application/x-freearc":[`arc`],"application/x-futuresplash":[`spl`],"application/x-gca-compressed":[`gca`],"application/x-glulx":[`ulx`],"application/x-gnumeric":[`gnumeric`],"application/x-gramps-xml":[`gramps`],"application/x-gtar":[`gtar`],"application/x-hdf":[`hdf`],"application/x-httpd-php":[`php`],"application/x-install-instructions":[`install`],"application/x-iso9660-image":[`*iso`],"application/x-iwork-keynote-sffkey":[`*key`],"application/x-iwork-numbers-sffnumbers":[`*numbers`],"application/x-iwork-pages-sffpages":[`*pages`],"application/x-java-archive-diff":[`jardiff`],"application/x-java-jnlp-file":[`jnlp`],"application/x-keepass2":[`kdbx`],"application/x-latex":[`latex`],"application/x-lua-bytecode":[`luac`],"application/x-lzh-compressed":[`lzh`,`lha`],"application/x-makeself":[`run`],"application/x-mie":[`mie`],"application/x-mobipocket-ebook":[`prc`,`mobi`],"application/x-ms-application":[`application`],"application/x-ms-shortcut":[`lnk`],"application/x-ms-wmd":[`wmd`],"application/x-ms-wmz":[`wmz`],"application/x-ms-xbap":[`xbap`],"application/x-msaccess":[`mdb`],"application/x-msbinder":[`obd`],"application/x-mscardfile":[`crd`],"application/x-msclip":[`clp`],"application/x-msdos-program":[`*exe`],"application/x-msdownload":[`*exe`,`*dll`,`com`,`bat`,`*msi`],"application/x-msmediaview":[`mvb`,`m13`,`m14`],"application/x-msmetafile":[`*wmf`,`*wmz`,`*emf`,`emz`],"application/x-msmoney":[`mny`],"application/x-mspublisher":[`pub`],"application/x-msschedule":[`scd`],"application/x-msterminal":[`trm`],"application/x-mswrite":[`wri`],"application/x-netcdf":[`nc`,`cdf`],"application/x-ns-proxy-autoconfig":[`pac`],"application/x-nzb":[`nzb`],"application/x-perl":[`pl`,`pm`],"application/x-pilot":[`*prc`,`*pdb`],"application/x-pkcs12":[`p12`,`pfx`],"application/x-pkcs7-certificates":[`p7b`,`spc`],"application/x-pkcs7-certreqresp":[`p7r`],"application/x-rar-compressed":[`*rar`],"application/x-redhat-package-manager":[`rpm`],"application/x-research-info-systems":[`ris`],"application/x-sea":[`sea`],"application/x-sh":[`sh`],"application/x-shar":[`shar`],"application/x-shockwave-flash":[`swf`],"application/x-silverlight-app":[`xap`],"application/x-sql":[`sql`],"application/x-stuffit":[`sit`],"application/x-stuffitx":[`sitx`],"application/x-subrip":[`srt`],"application/x-sv4cpio":[`sv4cpio`],"application/x-sv4crc":[`sv4crc`],"application/x-t3vm-image":[`t3`],"application/x-tads":[`gam`],"application/x-tar":[`tar`],"application/x-tcl":[`tcl`,`tk`],"application/x-tex":[`tex`],"application/x-tex-tfm":[`tfm`],"application/x-texinfo":[`texinfo`,`texi`],"application/x-tgif":[`*obj`],"application/x-ustar":[`ustar`],"application/x-virtualbox-hdd":[`hdd`],"application/x-virtualbox-ova":[`ova`],"application/x-virtualbox-ovf":[`ovf`],"application/x-virtualbox-vbox":[`vbox`],"application/x-virtualbox-vbox-extpack":[`vbox-extpack`],"application/x-virtualbox-vdi":[`vdi`],"application/x-virtualbox-vhd":[`vhd`],"application/x-virtualbox-vmdk":[`vmdk`],"application/x-wais-source":[`src`],"application/x-web-app-manifest+json":[`webapp`],"application/x-x509-ca-cert":[`der`,`crt`,`pem`],"application/x-xfig":[`fig`],"application/x-xliff+xml":[`*xlf`],"application/x-xpinstall":[`xpi`],"application/x-xz":[`xz`],"application/x-zmachine":[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`],"audio/vnd.dece.audio":[`uva`,`uvva`],"audio/vnd.digital-winds":[`eol`],"audio/vnd.dra":[`dra`],"audio/vnd.dts":[`dts`],"audio/vnd.dts.hd":[`dtshd`],"audio/vnd.lucent.voice":[`lvp`],"audio/vnd.ms-playready.media.pya":[`pya`],"audio/vnd.nuera.ecelp4800":[`ecelp4800`],"audio/vnd.nuera.ecelp7470":[`ecelp7470`],"audio/vnd.nuera.ecelp9600":[`ecelp9600`],"audio/vnd.rip":[`rip`],"audio/x-aac":[`aac`],"audio/x-aiff":[`aif`,`aiff`,`aifc`],"audio/x-caf":[`caf`],"audio/x-flac":[`flac`],"audio/x-m4a":[`*m4a`],"audio/x-matroska":[`mka`],"audio/x-mpegurl":[`m3u`],"audio/x-ms-wax":[`wax`],"audio/x-ms-wma":[`wma`],"audio/x-pn-realaudio":[`ram`,`ra`],"audio/x-pn-realaudio-plugin":[`rmp`],"audio/x-realaudio":[`*ra`],"audio/x-wav":[`*wav`],"chemical/x-cdx":[`cdx`],"chemical/x-cif":[`cif`],"chemical/x-cmdf":[`cmdf`],"chemical/x-cml":[`cml`],"chemical/x-csml":[`csml`],"chemical/x-xyz":[`xyz`],"image/prs.btif":[`btif`],"image/prs.pti":[`pti`],"image/vnd.adobe.photoshop":[`psd`],"image/vnd.airzip.accelerator.azv":[`azv`],"image/vnd.dece.graphic":[`uvi`,`uvvi`,`uvg`,`uvvg`],"image/vnd.djvu":[`djvu`,`djv`],"image/vnd.dvb.subtitle":[`*sub`],"image/vnd.dwg":[`dwg`],"image/vnd.dxf":[`dxf`],"image/vnd.fastbidsheet":[`fbs`],"image/vnd.fpx":[`fpx`],"image/vnd.fst":[`fst`],"image/vnd.fujixerox.edmics-mmr":[`mmr`],"image/vnd.fujixerox.edmics-rlc":[`rlc`],"image/vnd.microsoft.icon":[`ico`],"image/vnd.ms-dds":[`dds`],"image/vnd.ms-modi":[`mdi`],"image/vnd.ms-photo":[`wdp`],"image/vnd.net-fpx":[`npx`],"image/vnd.pco.b16":[`b16`],"image/vnd.tencent.tap":[`tap`],"image/vnd.valve.source.texture":[`vtf`],"image/vnd.wap.wbmp":[`wbmp`],"image/vnd.xiff":[`xif`],"image/vnd.zbrush.pcx":[`pcx`],"image/x-3ds":[`3ds`],"image/x-cmu-raster":[`ras`],"image/x-cmx":[`cmx`],"image/x-freehand":[`fh`,`fhc`,`fh4`,`fh5`,`fh7`],"image/x-icon":[`*ico`],"image/x-jng":[`jng`],"image/x-mrsid-image":[`sid`],"image/x-ms-bmp":[`*bmp`],"image/x-pcx":[`*pcx`],"image/x-pict":[`pic`,`pct`],"image/x-portable-anymap":[`pnm`],"image/x-portable-bitmap":[`pbm`],"image/x-portable-graymap":[`pgm`],"image/x-portable-pixmap":[`ppm`],"image/x-rgb":[`rgb`],"image/x-tga":[`tga`],"image/x-xbitmap":[`xbm`],"image/x-xpixmap":[`xpm`],"image/x-xwindowdump":[`xwd`],"message/vnd.wfa.wsc":[`wsc`],"model/vnd.collada+xml":[`dae`],"model/vnd.dwf":[`dwf`],"model/vnd.gdl":[`gdl`],"model/vnd.gtw":[`gtw`],"model/vnd.mts":[`mts`],"model/vnd.opengex":[`ogex`],"model/vnd.parasolid.transmit.binary":[`x_b`],"model/vnd.parasolid.transmit.text":[`x_t`],"model/vnd.sap.vds":[`vds`],"model/vnd.usdz+zip":[`usdz`],"model/vnd.valve.source.compiled-map":[`bsp`],"model/vnd.vtu":[`vtu`],"text/prs.lines.tag":[`dsc`],"text/vnd.curl":[`curl`],"text/vnd.curl.dcurl":[`dcurl`],"text/vnd.curl.mcurl":[`mcurl`],"text/vnd.curl.scurl":[`scurl`],"text/vnd.dvb.subtitle":[`sub`],"text/vnd.fly":[`fly`],"text/vnd.fmi.flexstor":[`flx`],"text/vnd.graphviz":[`gv`],"text/vnd.in3d.3dml":[`3dml`],"text/vnd.in3d.spot":[`spot`],"text/vnd.sun.j2me.app-descriptor":[`jad`],"text/vnd.wap.wml":[`wml`],"text/vnd.wap.wmlscript":[`wmls`],"text/x-asm":[`s`,`asm`],"text/x-c":[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`],"text/x-component":[`htc`],"text/x-fortran":[`f`,`for`,`f77`,`f90`],"text/x-handlebars-template":[`hbs`],"text/x-java-source":[`java`],"text/x-lua":[`lua`],"text/x-markdown":[`mkd`],"text/x-nfo":[`nfo`],"text/x-opml":[`opml`],"text/x-org":[`*org`],"text/x-pascal":[`p`,`pas`],"text/x-processing":[`pde`],"text/x-sass":[`sass`],"text/x-scss":[`scss`],"text/x-setext":[`etx`],"text/x-sfv":[`sfv`],"text/x-suse-ymp":[`ymp`],"text/x-uuencode":[`uu`],"text/x-vcalendar":[`vcs`],"text/x-vcard":[`vcf`],"video/vnd.dece.hd":[`uvh`,`uvvh`],"video/vnd.dece.mobile":[`uvm`,`uvvm`],"video/vnd.dece.pd":[`uvp`,`uvvp`],"video/vnd.dece.sd":[`uvs`,`uvvs`],"video/vnd.dece.video":[`uvv`,`uvvv`],"video/vnd.dvb.file":[`dvb`],"video/vnd.fvt":[`fvt`],"video/vnd.mpegurl":[`mxu`,`m4u`],"video/vnd.ms-playready.media.pyv":[`pyv`],"video/vnd.uvvu.mp4":[`uvu`,`uvvu`],"video/vnd.vivo":[`viv`],"video/x-f4v":[`f4v`],"video/x-fli":[`fli`],"video/x-flv":[`flv`],"video/x-m4v":[`m4v`],"video/x-matroska":[`mkv`,`mk3d`,`mks`],"video/x-mng":[`mng`],"video/x-ms-asf":[`asf`,`asx`],"video/x-ms-vob":[`vob`],"video/x-ms-wm":[`wm`],"video/x-ms-wmv":[`wmv`],"video/x-ms-wmx":[`wmx`],"video/x-ms-wvx":[`wvx`],"video/x-msvideo":[`avi`],"video/x-sgi-movie":[`movie`],"video/x-smv":[`smv`],"x-conference/x-cooltalk":[`ice`]}})),ln=r(((e,t)=>{t.exports=new(on())(sn(),cn())})),un=r(((e,n)=>{var r=t(`stream`).Stream,i=t(`util`);n.exports=a;function a(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i.inherits(a,r),a.create=function(e,t){var n=new this;for(var r in t||={},t)n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on(`error`,function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(a.prototype,`readable`,{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),a.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},a.prototype.resume=function(){this._released||this.release(),this.source.resume()},a.prototype.pause=function(){this.source.pause()},a.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},a.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},a.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]===`data`&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},a.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this.emit(`error`,Error(e))}}})),dn=r(((e,n)=>{var r=t(`util`),i=t(`stream`).Stream,a=un();n.exports=o;function o(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}r.inherits(o,i),o.create=function(e){var t=new this;for(var n in e||={},e)t[n]=e[n];return t},o.isStreamLike=function(e){return typeof e!=`function`&&typeof e!=`string`&&typeof e!=`boolean`&&typeof e!=`number`&&!Buffer.isBuffer(e)},o.prototype.append=function(e){if(o.isStreamLike(e)){if(!(e instanceof a)){var t=a.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on(`data`,this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},o.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},o.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},o.prototype._realGetNext=function(){var e=this._streams.shift();if(e===void 0){this.end();return}if(typeof e!=`function`){this._pipeNext(e);return}e(function(e){o.isStreamLike(e)&&(e.on(`data`,this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this))},o.prototype._pipeNext=function(e){if(this._currentStream=e,o.isStreamLike(e)){e.on(`end`,this._getNext.bind(this)),e.pipe(this,{end:!1});return}var t=e;this.write(t),this._getNext()},o.prototype._handleErrors=function(e){var t=this;e.on(`error`,function(e){t._emitError(e)})},o.prototype.write=function(e){this.emit(`data`,e)},o.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause==`function`&&this._currentStream.pause(),this.emit(`pause`))},o.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume==`function`&&this._currentStream.resume(),this.emit(`resume`)},o.prototype.end=function(){this._reset(),this.emit(`end`)},o.prototype.destroy=function(){this._reset(),this.emit(`close`)},o.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},o.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this._emitError(Error(e))}},o.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},o.prototype._emitError=function(e){this._reset(),this.emit(`error`,e)}})),fn=r(((e,t)=>{t.exports={"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}}})),pn=r(((e,t)=>{
|
|
12
12
|
/*!
|
|
13
13
|
* mime-db
|
|
14
14
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -16,30 +16,30 @@ var ft=r(((e,n)=>{var r=t(`http`);n.exports=i()||a();function i(){return r.METHO
|
|
|
16
16
|
* MIT Licensed
|
|
17
17
|
*/
|
|
18
18
|
t.exports=fn()})),mn=r((e=>{var n=pn(),r=t(`path`).extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;e.charset=o,e.charsets={lookup:o},e.contentType=s,e.extension=c,e.extensions=Object.create(null),e.lookup=l,e.types=Object.create(null),u(e.extensions,e.types);function o(e){if(!e||typeof e!=`string`)return!1;var t=i.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&a.test(t[1])?`UTF-8`:!1}function s(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 c(t){if(!t||typeof t!=`string`)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function l(t){if(!t||typeof t!=`string`)return!1;var n=r(`x.`+t).toLowerCase().substr(1);return n&&e.types[n]||!1}function u(e,t){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(n).forEach(function(i){var a=n[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(t[c]){var l=r.indexOf(n[t[c]].source),u=r.indexOf(a.source);if(t[c]!==`application/octet-stream`&&(l>u||l===u&&t[c].substr(0,12)===`application/`))continue}t[c]=i}}})}})),hn=r(((e,t)=>{t.exports=n;function n(e){var t=typeof setImmediate==`function`?setImmediate:typeof process==`object`&&typeof process.nextTick==`function`?process.nextTick:null;t?t(e):setTimeout(e,0)}})),gn=r(((e,t)=>{var n=hn();t.exports=r;function r(e){var t=!1;return n(function(){t=!0}),function(r,i){t?e(r,i):n(function(){e(r,i)})}}})),_n=r(((e,t)=>{t.exports=n;function n(e){Object.keys(e.jobs).forEach(r.bind(e)),e.jobs={}}function r(e){typeof this.jobs[e]==`function`&&this.jobs[e]()}})),vn=r(((e,t)=>{var n=gn(),r=_n();t.exports=i;function i(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=a(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?r(n):n.results[o]=t,i(e,n.results))})}function a(e,t,r,i){return e.length==2?e(r,n(i)):e(r,t,n(i))}})),yn=r(((e,t)=>{t.exports=n;function n(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}})),bn=r(((e,t)=>{var n=_n(),r=gn();t.exports=i;function i(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),r(e)(null,this.results))}})),xn=r(((e,t)=>{var n=vn(),r=yn(),i=bn();t.exports=a;function a(e,t,a){for(var o=r(e);o.index<(o.keyedList||e).length;)n(e,t,o,function(e,t){if(e){a(e,t);return}if(Object.keys(o.jobs).length===0){a(null,o.results);return}}),o.index++;return i.bind(o,a)}})),Sn=r(((e,t)=>{var n=vn(),r=yn(),i=bn();t.exports=a,t.exports.ascending=o,t.exports.descending=s;function a(e,t,a,o){var s=r(e,a);return n(e,t,s,function r(i,a){if(i){o(i,a);return}if(s.index++,s.index<(s.keyedList||e).length){n(e,t,s,r);return}o(null,s.results)}),i.bind(s,o)}function o(e,t){return e<t?-1:e>t?1:0}function s(e,t){return-1*o(e,t)}})),Cn=r(((e,t)=>{var n=Sn();t.exports=r;function r(e,t,r){return n(e,t,null,r)}})),wn=r(((e,t)=>{t.exports={parallel:xn(),serial:Cn(),serialOrdered:Sn()}})),Tn=r(((e,t)=>{var n=Ft();t.exports=function(){return n()&&!!Symbol.toStringTag}})),En=r(((e,t)=>{var n=Yt()(`%Object.defineProperty%`,!0),r=Tn()(),i=Jt(),a=pt(),o=r?Symbol.toStringTag:null;t.exports=function(e,t){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(r!==void 0&&typeof r!=`boolean`||s!==void 0&&typeof s!=`boolean`)throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");o&&(r||!i(e,o))&&(n?n(e,o,{configurable:!s,enumerable:!1,value:t,writable:!1}):e[o]=t)}})),Dn=r(((e,t)=>{t.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}})),On=r(((e,n)=>{var r=dn(),i=t(`util`),a=t(`path`),o=t(`http`),s=t(`https`),c=t(`url`).parse,l=t(`fs`),u=t(`stream`).Stream,d=t(`crypto`),f=mn(),p=wn(),m=En(),h=Jt(),g=Dn();function _(e){if(!(this instanceof _))return new _(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],r.call(this),e||={},e)this[t]=e[t]}i.inherits(_,r),_.LINE_BREAK=`\r
|
|
19
|
-
`,_.DEFAULT_CONTENT_TYPE=`application/octet-stream`,_.prototype.append=function(e,t,n){n||={},typeof n==`string`&&(n={filename:n});var i=r.prototype.append.bind(this);if((typeof t==`number`||t==null)&&(t=String(t)),Array.isArray(t)){this._error(Error(`Arrays are not supported.`));return}var a=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,n)},_.prototype._trackLength=function(e,t,n){var r=0;n.knownLength==null?Buffer.isBuffer(t)?r=t.length:typeof t==`string`&&(r=Buffer.byteLength(t)):r+=Number(n.knownLength),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+_.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&h(t,`httpVersion`))&&!(t instanceof u))&&(n.knownLength||this._valuesToMeasure.push(t))},_.prototype._lengthRetriever=function(e,t){h(e,`fd`)?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,r){if(n){t(n);return}t(null,r.size-(e.start?e.start:0))}):h(e,`httpVersion`)?t(null,Number(e.headers[`content-length`])):h(e,`httpModule`)?(e.on(`response`,function(n){e.pause(),t(null,Number(n.headers[`content-length`]))}),e.resume()):t(`Unknown stream`)},_.prototype._multiPartHeader=function(e,t,n){if(typeof n.header==`string`)return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a=``,o={"Content-Disposition":[`form-data`,`name="`+e+`"`].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header==`object`&&g(o,n.header);var s;for(var c in o)if(h(o,c)){if(s=o[c],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(a+=c+`: `+s.join(`; `)+_.LINE_BREAK)}return`--`+this.getBoundary()+_.LINE_BREAK+a+_.LINE_BREAK},_.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath==`string`?n=a.normalize(t.filepath).replace(/\\/g,`/`):t.filename||e&&(e.name||e.path)?n=a.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,`httpVersion`)&&(n=a.basename(e.client._httpMessage.path||``)),n)return`filename="`+n+`"`},_.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=f.lookup(e.name)),!n&&e&&e.path&&(n=f.lookup(e.path)),!n&&e&&e.readable&&h(e,`httpVersion`)&&(n=e.headers[`content-type`]),!n&&(t.filepath||t.filename)&&(n=f.lookup(t.filepath||t.filename)),!n&&e&&typeof e==`object`&&(n=_.DEFAULT_CONTENT_TYPE),n},_.prototype._multiPartFooter=function(){return function(e){var t=_.LINE_BREAK;this._streams.length===0&&(t+=this._lastBoundary()),e(t)}.bind(this)},_.prototype._lastBoundary=function(){return`--`+this.getBoundary()+`--`+_.LINE_BREAK},_.prototype.getHeaders=function(e){var t,n={"content-type":`multipart/form-data; boundary=`+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},_.prototype.setBoundary=function(e){if(typeof e!=`string`)throw TypeError(`FormData boundary must be a string`);this._boundary=e},_.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},_.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!=`function`&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!=`string`||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(_.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},_.prototype._generateBoundary=function(){this._boundary=`--------------------------`+d.randomBytes(12).toString(`hex`)},_.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error(`Cannot calculate proper length in synchronous way.`)),e},_.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},_.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}p.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){e(n);return}r.forEach(function(e){t+=e}),e(null,t)})},_.prototype.submit=function(e,t){var n,r,i={method:`post`};return typeof e==`string`?(e=c(e),r=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=g(e,i),r.port||=r.protocol===`https:`?443:80),r.headers=this.getHeaders(e.headers),n=r.protocol===`https:`?s.request(r):o.request(r),this.getLength(function(e,r){if(e&&e!==`Unknown stream`){this._error(e);return}if(r&&n.setHeader(`Content-Length`,r),this.pipe(n),t){var i,a=function(e,r){return n.removeListener(`error`,a),n.removeListener(`response`,i),t.call(this,e,r)};i=a.bind(this,null),n.on(`error`,a),n.on(`response`,i)}}.bind(this)),n},_.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit(`error`,e))},_.prototype.toString=function(){return`[object FormData]`},m(_.prototype,`FormData`),n.exports=_})),kn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=v,e.fromBig=r,e.split=i;let t=BigInt(2**32-1),n=BigInt(32);function r(e,r=!1){return r?{h:Number(e&t),l:Number(e>>n&t)}:{h:Number(e>>n&t)|0,l:Number(e&t)|0}}function i(e,t=!1){let n=e.length,i=new Uint32Array(n),a=new Uint32Array(n);for(let o=0;o<n;o++){let{h:n,l:s}=r(e[o],t);[i[o],a[o]]=[n,s]}return[i,a]}let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);e.toBig=a;let o=(e,t,n)=>e>>>n;e.shrSH=o;let s=(e,t,n)=>e<<32-n|t>>>n;e.shrSL=s;let c=(e,t,n)=>e>>>n|t<<32-n;e.rotrSH=c;let l=(e,t,n)=>e<<32-n|t>>>n;e.rotrSL=l;let u=(e,t,n)=>e<<64-n|t>>>n-32;e.rotrBH=u;let d=(e,t,n)=>e>>>n-32|t<<64-n;e.rotrBL=d;let f=(e,t)=>t;e.rotr32H=f;let p=(e,t)=>e;e.rotr32L=p;let m=(e,t,n)=>e<<n|t>>>32-n;e.rotlSH=m;let h=(e,t,n)=>t<<n|e>>>32-n;e.rotlSL=h;let g=(e,t,n)=>t<<n-32|e>>>64-n;e.rotlBH=g;let _=(e,t,n)=>e<<n-32|t>>>64-n;e.rotlBL=_;function v(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}let y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);e.add3L=y;let b=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;e.add3H=b;let x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);e.add4L=x;let S=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;e.add4H=S;let C=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5L=C;let w=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0;e.add5H=w,e.default={fromBig:r,split:i,toBig:a,shrSH:o,shrSL:s,rotrSH:c,rotrSL:l,rotrBH:u,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:h,rotlBH:g,rotlBL:_,add:v,add3L:y,add3H:b,add4L:x,add4H:S,add5H:w,add5L:C}})),An=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.crypto=void 0;let n=t(`node:crypto`);e.crypto=n&&typeof n==`object`&&`webcrypto`in n?n.webcrypto:n&&typeof n==`object`&&`randomBytes`in n?n:void 0})),jn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=r,e.abytes=i,e.ahash=a,e.aexists=o,e.aoutput=s,e.u8=c,e.u32=l,e.clean=u,e.createView=d,e.rotr=f,e.rotl=p,e.byteSwap=m,e.byteSwap32=h,e.bytesToHex=v,e.hexToBytes=x,e.asyncLoop=S,e.utf8ToBytes=C,e.bytesToUtf8=w,e.toBytes=T,e.kdfInputToBytes=E,e.concatBytes=D,e.checkOpts=O,e.createHasher=k,e.createOptHasher=A,e.createXOFer=j,e.randomBytes=M;let t=An();function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, got `+e)}function i(e,...t){if(!n(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function a(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.createHasher`);r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function s(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function c(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}function p(e,t){return e<<t|e>>>32-t>>>0}e.isLE=(()=>new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68)();function m(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}e.swap8IfBE=e.isLE?e=>e:e=>m(e),e.byteSwapIfBE=e.swap8IfBE;function h(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e}e.swap32IfBE=e.isLE?e=>e:h;let g=(()=>typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`)(),_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function v(e){if(i(e),g)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=_[e[n]];return t}let y={_0:48,_9:57,A:65,F:70,a:97,f:102};function b(e){if(e>=y._0&&e<=y._9)return e-y._0;if(e>=y.A&&e<=y.F)return e-(y.A-10);if(e>=y.a&&e<=y.f)return e-(y.a-10)}function x(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);if(g)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=b(e.charCodeAt(i)),a=b(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw Error(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}e.nextTick=async()=>{};async function S(t,n,r){let i=Date.now();for(let a=0;a<t;a++){r(a);let t=Date.now()-i;t>=0&&t<n||(await(0,e.nextTick)(),i+=t)}}function C(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function w(e){return new TextDecoder().decode(e)}function T(e){return typeof e==`string`&&(e=C(e)),i(e),e}function E(e){return typeof e==`string`&&(e=C(e)),i(e),e}function D(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];i(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function O(e,t){if(t!==void 0&&{}.toString.call(t)!==`[object Object]`)throw Error(`options should be object or undefined`);return Object.assign(e,t)}e.Hash=class{};function k(e){let t=t=>e().update(T(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function A(e){let t=(t,n)=>e(n).update(T(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function j(e){let t=(t,n)=>e(n).update(T(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}e.wrapConstructor=k,e.wrapConstructorWithOpts=A,e.wrapXOFConstructorWithOpts=j;function M(e=32){if(t.crypto&&typeof t.crypto.getRandomValues==`function`)return t.crypto.getRandomValues(new Uint8Array(e));if(t.crypto&&typeof t.crypto.randomBytes==`function`)return Uint8Array.from(t.crypto.randomBytes(e));throw Error(`crypto.getRandomValues must be defined`)}})),Mn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=void 0,e.keccakP=_;let t=kn(),n=jn(),r=BigInt(0),i=BigInt(1),a=BigInt(2),o=BigInt(7),s=BigInt(256),c=BigInt(113),l=[],u=[],d=[];for(let e=0,t=i,n=1,f=0;e<24;e++){[n,f]=[f,(2*n+3*f)%5],l.push(2*(5*f+n)),u.push((e+1)*(e+2)/2%64);let p=r;for(let e=0;e<7;e++)t=(t<<i^(t>>o)*c)%s,t&a&&(p^=i<<(i<<BigInt(e))-i);d.push(p)}let f=(0,t.split)(d,!0),p=f[0],m=f[1],h=(e,n,r)=>r>32?(0,t.rotlBH)(e,n,r):(0,t.rotlSH)(e,n,r),g=(e,n,r)=>r>32?(0,t.rotlBL)(e,n,r):(0,t.rotlSL)(e,n,r);function _(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,a=r[i],o=r[i+1],s=h(a,o,1)^r[n],c=g(a,o,1)^r[n+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=u[n],a=h(t,i,r),o=g(t,i,r),s=l[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=p[n],e[1]^=m[n]}(0,n.clean)(r)}var v=class e extends n.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,(0,n.anumber)(r),!(0<e&&e<200))throw Error(`only keccak-f1600 function is supported`);this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,n.swap32IfBE)(this.state32),_(this.state32,this.rounds),(0,n.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{blockLen:t,state:r}=this,i=e.length;for(let n=0;n<i;){let a=Math.min(t-this.pos,i-n);for(let t=0;t<a;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,t&128&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error(`XOF is not possible for this instance`);return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw Error(`digest() was already called`);return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,n.clean)(this.state)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return t||=new e(n,r,i,o,a),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=o,t.destroyed=this.destroyed,t}};e.Keccak=v;let y=(e,t,r)=>(0,n.createHasher)(()=>new v(t,e,r));e.sha3_224=(()=>y(6,144,224/8))(),e.sha3_256=(()=>y(6,136,256/8))(),e.sha3_384=(()=>y(6,104,384/8))(),e.sha3_512=(()=>y(6,72,512/8))(),e.keccak_224=(()=>y(1,144,224/8))(),e.keccak_256=(()=>y(1,136,256/8))(),e.keccak_384=(()=>y(1,104,384/8))(),e.keccak_512=(()=>y(1,72,512/8))();let b=(e,t,r)=>(0,n.createXOFer)((n={})=>new v(t,e,n.dkLen===void 0?r:n.dkLen,!0));e.shake128=(()=>b(31,168,128/8))(),e.shake256=(()=>b(31,136,256/8))()})),Nn=r(((e,t)=>{let{sha3_512:n}=Mn(),r=(e=4,t=Math.random)=>{let n=``;for(;n.length<e;)n+=Math.floor(t()*36).toString(36);return n};function i(e){let t=0n;for(let n of e.values()){let e=BigInt(n);t=(t<<8n)+e}return t}let a=(e=``)=>i(n(e)).toString(36).slice(1),o=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),s=e=>o[Math.floor(e()*o.length)],c=({globalObj:e=typeof global<`u`?global:typeof window<`u`?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString();return a(n.length?n+r(32,t):r(32,t)).substring(0,32)},l=e=>()=>e++,u=({random:e=Math.random,counter:t=l(Math.floor(e()*476782367)),length:n=24,fingerprint:i=c({random:e})}={})=>function(){let o=s(e),c=Date.now().toString(36),l=t().toString(36);return`${o+a(`${c+r(n,e)+l+i}`).substring(1,n)}`},d=u(),f=(e,{minLength:t=2,maxLength:n=32}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e==`string`&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};t.exports.getConstants=()=>({defaultLength:24,bigLength:32}),t.exports.init=u,t.exports.createId=d,t.exports.bufToBigInt=i,t.exports.createCounter=l,t.exports.createFingerprint=c,t.exports.isCuid=f})),Pn=r(((e,t)=>{let{createId:n,init:r,getConstants:i,isCuid:a}=Nn();t.exports.createId=n,t.exports.init=r,t.exports.getConstants=i,t.exports.isCuid=a})),Fn=r(((e,t)=>{t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}})),In=r(((e,n)=>{var r,i=typeof setImmediate==`function`;n.exports=a;function a(e){o.length||(d(),s=!0),o[o.length]=e}var o=[],s=!1,c=0,l=1024;function u(){for(;c<o.length;){var e=c;if(c+=1,o[e].call(),c>l){for(var t=0,n=o.length-c;t<n;t++)o[t]=o[t+c];o.length-=c,c=0}}o.length=0,c=0,s=!1}a.requestFlush=d;function d(){var e=process.domain;e&&(r||=t(`domain`),r.active=process.domain=null),s&&i?setImmediate(u):process.nextTick(u),e&&(r.active=process.domain=e)}})),Ln=r(((e,t)=>{var n=In(),r=[];t.exports=i;function i(e){var t=r.length?r.pop():new a;t.task=e,t.domain=process.domain,n(t)}function a(){this.task=null,this.domain=null}a.prototype.call=function(){this.domain&&this.domain.enter();var e=!0;try{this.task.call(),e=!1,this.domain&&this.domain.exit()}finally{e&&n.requestFlush(),this.task=null,this.domain=null,r.push(this)}}})),Rn=r(((e,t)=>{t.exports=Fn()(r);var n=Ln();function r(e){var t=!0;return n(function(){t=!1}),function(){var r=arguments,i=this;t?n(function(){e.apply(i,r)}):e.apply(i,r)}}})),zn=r(((e,t)=>{var n=Fn();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:function(){return i(this)},configurable:!0})});function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}})),Bn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=t(`node:fs`),r=t(`node:crypto`),i=t(`node:events`),a=Pn(),o=Rn(),s=t(`node:fs/promises`),c=t(`node:os`),l=t(`node:path`),u=t(`node:string_decoder`),d=zn(),f=t(`node:stream`),p=class extends i.EventEmitter{constructor({filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a}){super(),this.lastModifiedDate=null,Object.assign(this,{filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a}),this.size=0,this._writeStream=null,typeof this.hashAlgorithm==`string`?this.hash=r.createHash(this.hashAlgorithm):this.hash=null}open(){this._writeStream=n.createWriteStream(this.filepath),this._writeStream.on(`error`,e=>{this.emit(`error`,e)})}toJSON(){let e={size:this.size,filepath:this.filepath,newFilename:this.newFilename,mimetype:this.mimetype,mtime:this.lastModifiedDate,length:this.length,originalFilename:this.originalFilename};return this.hash&&this.hash!==``&&(e.hash=this.hash),e}toString(){return`PersistentFile: ${this.newFilename}, Original: ${this.originalFilename}, Path: ${this.filepath}`}write(e,t){if(this.hash&&this.hash.update(e),this._writeStream.closed){t();return}this._writeStream.write(e,()=>{this.lastModifiedDate=new Date,this.size+=e.length,this.emit(`progress`,this.size),t()})}end(e){this.hash&&=this.hash.digest(`hex`),this._writeStream.end(()=>{this.emit(`end`),e()})}destroy(){this._writeStream.destroy();let e=this.filepath;setTimeout(function(){n.unlink(e,()=>{})},1)}},m=class extends i.EventEmitter{constructor({filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a,createFileWriteStream:o}){super(),this.lastModifiedDate=null,Object.assign(this,{filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a,createFileWriteStream:o}),this.size=0,this._writeStream=null,typeof this.hashAlgorithm==`string`?this.hash=r.createHash(this.hashAlgorithm):this.hash=null}open(){this._writeStream=this.createFileWriteStream(this),this._writeStream.on(`error`,e=>{this.emit(`error`,e)})}destroy(){this._writeStream.destroy()}toJSON(){let e={size:this.size,newFilename:this.newFilename,length:this.length,originalFilename:this.originalFilename,mimetype:this.mimetype};return this.hash&&this.hash!==``&&(e.hash=this.hash),e}toString(){return`VolatileFile: ${this.originalFilename}`}write(e,t){if(this.hash&&this.hash.update(e),this._writeStream.closed||this._writeStream.destroyed){t();return}this._writeStream.write(e,()=>{this.size+=e.length,this.emit(`progress`,this.size),t()})}end(e){this.hash&&=this.hash.digest(`hex`),this._writeStream.end(()=>{this.emit(`end`),e()})}};let h=1e3,g=1001,_=1002,v=1003,y=1004,b=1005,x=1006,S=1007,C=1008,w=1009,T=1010,E=1011,D=1012,O=1013,k=1014,A=1015,j=1016,M=1017,N=1018,P=class extends Error{constructor(e,t,n=500){super(e),this.code=t,this.httpCode=n}};var F=Object.freeze({__proto__:null,aborted:_,biggerThanMaxFileSize:j,biggerThanTotalMaxFileSize:w,cannotCreateDir:N,default:P,filenameNotString:b,malformedMultipart:D,maxFieldsExceeded:S,maxFieldsSizeExceeded:x,maxFilesExceeded:A,missingContentType:E,missingMultipartBoundary:O,missingPlugin:h,noEmptyFiles:T,noParser:v,pluginFailed:M,pluginFunction:g,smallerThanMinFileSize:C,uninitializedParser:y,unknownTransferEncoding:k}),I=class extends f.Transform{constructor(e,t={}){super(),this.globalOptions={...t},this.incomingForm=e}_flush(e){this.incomingForm.ended=!0,this.incomingForm._maybeEnd(),e()}};let L=0,R={PARSER_UNINITIALIZED:L++,START:L++,START_BOUNDARY:L++,HEADER_FIELD_START:L++,HEADER_FIELD:L++,HEADER_VALUE_START:L++,HEADER_VALUE:L++,HEADER_VALUE_ALMOST_DONE:L++,HEADERS_ALMOST_DONE:L++,PART_DATA_START:L++,PART_DATA:L++,PART_END:L++,END:L++},z=1,B={PART_BOUNDARY:z,LAST_BOUNDARY:z*=2};function V(e){return e|32}let H={};Object.keys(R).forEach(e=>{H[e]=R[e]});var ee=class e extends f.Transform{constructor(e={}){super({readableObjectMode:!0}),this.boundary=null,this.boundaryChars=null,this.lookbehind=null,this.bufferLength=0,this.state=R.PARSER_UNINITIALIZED,this.globalOptions={...e},this.index=null,this.flags=0}_endUnexpected(){return new P(`MultipartParser.end(): stream ended unexpectedly: ${this.explain()}`,D,400)}_flush(e){this.state===R.HEADER_FIELD_START&&this.index===0||this.state===R.PART_DATA&&this.index===this.boundary.length?(this._handleCallback(`partEnd`),this._handleCallback(`end`),e()):this.state===R.END?e():e(this._endUnexpected())}initWithBoundary(e){this.boundary=Buffer.from(`\r\n--${e}`),this.lookbehind=Buffer.alloc(this.boundary.length+8),this.state=R.START,this.boundaryChars={};for(let e=0;e<this.boundary.length;e++)this.boundaryChars[this.boundary[e]]=!0}_handleCallback(e,t,n,r){n!==void 0&&n===r||this.push({name:e,buffer:t,start:n,end:r})}_transform(e,t,n){let r=0,i=this.index,{index:a,state:o,flags:s}=this,{lookbehind:c,boundary:l,boundaryChars:u}=this,d=l.length,f=d-1;this.bufferLength=e.length;let p=null,m=null,h=(e,t)=>{this[`${e}Mark`]=typeof t==`number`?t:r},g=e=>{delete this[`${e}Mark`]},_=(t,n)=>{let i=`${t}Mark`;i in this&&(n?(this._handleCallback(t,e,this[i],r),g(t)):(this._handleCallback(t,e,this[i],e.length),h(t,0)))};for(r=0;r<this.bufferLength;r++)switch(p=e[r],o){case R.PARSER_UNINITIALIZED:n(this._endUnexpected());return;case R.START:a=0,o=R.START_BOUNDARY;case R.START_BOUNDARY:if(a===l.length-2){if(p===45)s|=B.LAST_BOUNDARY;else if(p!==13){n(this._endUnexpected());return}a++;break}else if(a-1==l.length-2){if(s&B.LAST_BOUNDARY&&p===45)this._handleCallback(`end`),o=R.END,s=0;else if(!(s&B.LAST_BOUNDARY)&&p===10)a=0,this._handleCallback(`partBegin`),o=R.HEADER_FIELD_START;else{n(this._endUnexpected());return}break}p!==l[a+2]&&(a=-2),p===l[a+2]&&a++;break;case R.HEADER_FIELD_START:o=R.HEADER_FIELD,h(`headerField`),a=0;case R.HEADER_FIELD:if(p===13){g(`headerField`),o=R.HEADERS_ALMOST_DONE;break}if(a++,p===45)break;if(p===58){if(a===1){n(this._endUnexpected());return}_(`headerField`,!0),o=R.HEADER_VALUE_START;break}if(m=V(p),m<97||m>122){n(this._endUnexpected());return}break;case R.HEADER_VALUE_START:if(p===32)break;h(`headerValue`),o=R.HEADER_VALUE;case R.HEADER_VALUE:p===13&&(_(`headerValue`,!0),this._handleCallback(`headerEnd`),o=R.HEADER_VALUE_ALMOST_DONE);break;case R.HEADER_VALUE_ALMOST_DONE:if(p!==10){n(this._endUnexpected());return}o=R.HEADER_FIELD_START;break;case R.HEADERS_ALMOST_DONE:if(p!==10){n(this._endUnexpected());return}this._handleCallback(`headersEnd`),o=R.PART_DATA_START;break;case R.PART_DATA_START:o=R.PART_DATA,h(`partData`);case R.PART_DATA:if(i=a,a===0){for(r+=f;r<this.bufferLength&&!(e[r]in u);)r+=d;r-=f,p=e[r]}if(a<l.length)l[a]===p?(a===0&&_(`partData`,!0),a++):a=0;else if(a===l.length)a++,p===13?s|=B.PART_BOUNDARY:p===45?s|=B.LAST_BOUNDARY:a=0;else if(a-1===l.length)if(s&B.PART_BOUNDARY){if(a=0,p===10){s&=~B.PART_BOUNDARY,this._handleCallback(`partEnd`),this._handleCallback(`partBegin`),o=R.HEADER_FIELD_START;break}}else s&B.LAST_BOUNDARY&&p===45?(this._handleCallback(`partEnd`),this._handleCallback(`end`),o=R.END,s=0):a=0;a>0?c[a-1]=p:i>0&&(this._handleCallback(`partData`,c,0,i),i=0,h(`partData`),r--);break;case R.END:break;default:n(this._endUnexpected());return}return _(`headerField`),_(`headerValue`),_(`partData`),this.index=a,this.state=o,this.flags=s,n(),this.bufferLength}explain(){return`state = ${e.stateToString(this.state)}`}};ee.stateToString=e=>{for(let t in R)if(R[t]===e)return t};var U=Object.assign(ee,{STATES:H}),te=class extends f.PassThrough{constructor(e={}){super(),this.globalOptions={...e}}};async function ne(e,t){let n=this||e;return/octet-stream/i.test(n.headers[`content-type`])&&await re.call(n,n,t),n}async function re(e,t){this.type=`octet-stream`;let n=this.headers[`x-file-name`],r=this.headers[`content-type`],i={originalFilename:n,mimetype:r},a=this._getNewName(i),o=this._joinDirectoryName(a),s=await this._newFile({newFilename:a,filepath:o,originalFilename:n,mimetype:r});this.emit(`fileBegin`,n,s),s.open(),this.openedFiles.push(s),this._flushing+=1,this._parser=new te(this.options);let c=0;return this._parser.on(`data`,e=>{this.pause(),c+=1,s.write(e,()=>{--c,this.resume(),this.ended&&this._parser.emit(`doneWritingFile`)})}),this._parser.on(`end`,()=>{--this._flushing,this.ended=!0;let e=()=>{s.end(()=>{this.emit(`file`,`file`,s),this._maybeEnd()})};c===0?e():this._parser.once(`doneWritingFile`,e)}),this}var ie=class extends f.Transform{constructor(e={}){super({readableObjectMode:!0}),this.globalOptions={...e},this.buffer=``,this.bufferLength=0}_transform(e,t,n){this.buffer+=e.toString(`ascii`),this.bufferLength=this.buffer.length,n()}_flush(e){let t=new URLSearchParams(this.buffer);for(let[e,n]of t)this.push({key:e,value:n});this.buffer=``,e()}};function ae(e,t){let n=this||e;return/urlencoded/i.test(n.headers[`content-type`])&&oe.call(n,n,t),n}function oe(e,t){this.type=`urlencoded`;let n=new ie(this.options);return n.on(`data`,({key:e,value:t})=>{this.emit(`field`,e,t)}),n.once(`end`,()=>{this.ended=!0,this._maybeEnd()}),this._parser=n,this}function se(e,t){let n=this||e;if(/multipart/i.test(n.headers[`content-type`])){let e=n.headers[`content-type`].match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(e)W(e[1]||e[2]).call(n,n,t);else{let e=new P(`bad content-type header, no multipart boundary`,O,400);n._error(e)}}return n}function W(e){return function(){this.type=`multipart`;let t=new U(this.options),n,r,i;t.initWithBoundary(e),t.on(`data`,async({name:e,buffer:a,start:o,end:s})=>{if(e===`partBegin`)i=new f.Stream,i.readable=!0,i.headers={},i.name=null,i.originalFilename=null,i.mimetype=null,i.transferEncoding=this.options.encoding,i.transferBuffer=``,n=``,r=``;else if(e===`headerField`)n+=a.toString(this.options.encoding,o,s);else if(e===`headerValue`)r+=a.toString(this.options.encoding,o,s);else if(e===`headerEnd`){n=n.toLowerCase(),i.headers[n]=r;let e=r.match(/\bname=("([^"]*)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))/i);n===`content-disposition`?(e&&(i.name=e[2]||e[3]||``),i.originalFilename=this._getFileName(r)):n===`content-type`?i.mimetype=r:n===`content-transfer-encoding`&&(i.transferEncoding=r.toLowerCase()),n=``,r=``}else if(e===`headersEnd`){switch(i.transferEncoding){case`binary`:case`7bit`:case`8bit`:case`utf-8`:{let e=e=>{e.name===`partData`&&i.emit(`data`,e.buffer.slice(e.start,e.end))},n=r=>{r.name===`partEnd`&&(i.emit(`end`),t.off(`data`,e),t.off(`data`,n))};t.on(`data`,e),t.on(`data`,n);break}case`base64`:{let e=e=>{if(e.name===`partData`){i.transferBuffer+=e.buffer.slice(e.start,e.end).toString(`ascii`);let t=parseInt(i.transferBuffer.length/4,10)*4;i.emit(`data`,Buffer.from(i.transferBuffer.substring(0,t),`base64`)),i.transferBuffer=i.transferBuffer.substring(t)}},n=r=>{r.name===`partEnd`&&(i.emit(`data`,Buffer.from(i.transferBuffer,`base64`)),i.emit(`end`),t.off(`data`,e),t.off(`data`,n))};t.on(`data`,e),t.on(`data`,n);break}default:return this._error(new P(`unknown transfer-encoding`,k,501))}this._parser.pause(),await this.onPart(i),this._parser.resume()}else e===`end`&&(this.ended=!0,this._maybeEnd())}),this._parser=t}}var G=class extends f.Transform{constructor(e={}){super({readableObjectMode:!0}),this.chunks=[],this.globalOptions={...e}}_transform(e,t,n){this.chunks.push(String(e)),n()}_flush(e){try{let e=JSON.parse(this.chunks.join(``));this.push(e)}catch(t){e(t);return}this.chunks=null,e()}};function ce(e,t){let n=this||e;return/json/i.test(n.headers[`content-type`])&&le.call(n,n,t),n}function le(e,t){this.type=`json`;let n=new G(this.options);n.on(`data`,e=>{this.fields=e}),n.once(`end`,()=>{this.ended=!0,this._maybeEnd()}),this._parser=n}let ue=`${process.env.NODE_ENV}-${c.platform()}-${c.hostname()}`,de=a.init({length:25,fingerprint:ue.toLowerCase()}),fe={maxFields:1e3,maxFieldsSize:20*1024*1024,maxFiles:1/0,maxFileSize:200*1024*1024,maxTotalFileSize:void 0,minFileSize:1,allowEmptyFiles:!1,createDirsFromUploads:!1,keepExtensions:!1,encoding:`utf-8`,hashAlgorithm:!1,uploadDir:c.tmpdir(),enabledPlugins:[ne,ae,se,ce],fileWriteStreamHandler:null,defaultInvalidName:`invalid-name`,filter(e){return!0},filename:void 0};function pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}let me=function(e){let t=Promise.resolve();return async function(...n){let r=t,i,a;return t=new Promise(function(e){a=e}),await r,i=e(...n),i.then(a).catch(a),i}}(function(e){let t=l.dirname(e);return s.mkdir(t,{recursive:!0})}),he=e=>{let t=e.charCodeAt(0);return!(t===46||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)};var ge=class extends i.EventEmitter{constructor(e={}){super(),this.options={...fe,...e},this.options.maxTotalFileSize||(this.options.maxTotalFileSize=this.options.maxFileSize);let t=l.resolve(this.options.uploadDir||this.options.uploaddir||c.tmpdir());if(this.uploaddir=t,this.uploadDir=t,[`error`,`headers`,`type`,`bytesExpected`,`bytesReceived`,`_parser`,`req`].forEach(e=>{this[e]=null}),this._setUpRename(),this._flushing=0,this._fieldsSize=0,this._totalFileSize=0,this._plugins=[],this.openedFiles=[],this.options.enabledPlugins=[].concat(this.options.enabledPlugins).filter(Boolean),this.options.enabledPlugins.length===0)throw new P(`expect at least 1 enabled builtin plugin, see options.enabledPlugins`,h);this.options.enabledPlugins.forEach(e=>{this.use(e)}),this._setUpMaxFields(),this._setUpMaxFiles(),this.ended=void 0,this.type=void 0}use(e){if(typeof e!=`function`)throw new P(".use: expect `plugin` to be a function",g);return this._plugins.push(e.bind(this)),this}pause(){try{this.req.pause()}catch(e){return this.ended||this._error(e),!1}return!0}resume(){try{this.req.resume()}catch(e){return this.ended||this._error(e),!1}return!0}async parse(e,t){this.req=e;let n;if(!t){let e,r;n=new Promise((t,n)=>{e=t,r=n}),t=(t,n,i)=>{t?r(t):e([n,i])}}let r=d(o(t));this.fields={};let i={};return this.on(`field`,(e,t)=>{this.type===`multipart`||this.type===`urlencoded`?pe(this.fields,e)?this.fields[e].push(t):this.fields[e]=[t]:this.fields[e]=t}),this.on(`file`,(e,t)=>{pe(i,e)?i[e].push(t):i[e]=[t]}),this.on(`error`,e=>{r(e,this.fields,i)}),this.on(`end`,()=>{r(null,this.fields,i)}),await this.writeHeaders(e.headers),e.on(`error`,e=>{this._error(e)}).on(`aborted`,()=>{this.emit(`aborted`),this._error(new P(`Request aborted`,_))}).on(`data`,e=>{try{this.write(e)}catch(e){this._error(e)}}).on(`end`,()=>{this.error||this._parser&&this._parser.end()}),n||this}async writeHeaders(e){if(this.headers=e,this._parseContentLength(),await this._parseContentType(),!this._parser){this._error(new P(`no parser found`,v,415));return}this._parser.once(`error`,e=>{this._error(e)})}write(e){return this.error?null:this._parser?(this.bytesReceived+=e.length,this.emit(`progress`,this.bytesReceived,this.bytesExpected),this._parser.write(e),this.bytesReceived):(this._error(new P(`uninitialized parser`,y)),null)}onPart(e){return this._handlePart(e)}async _handlePart(e){if(e.originalFilename&&typeof e.originalFilename!=`string`){this._error(new P(`the part.originalFilename should be string when it exists`,b));return}if(!e.mimetype){let t=``,n=new u.StringDecoder(e.transferEncoding||this.options.encoding);e.on(`data`,e=>{if(this._fieldsSize+=e.length,this._fieldsSize>this.options.maxFieldsSize){this._error(new P(`options.maxFieldsSize (${this.options.maxFieldsSize} bytes) exceeded, received ${this._fieldsSize} bytes of field data`,x,413));return}t+=n.write(e)}),e.on(`end`,()=>{this.emit(`field`,e.name,t)});return}if(!this.options.filter(e))return;this._flushing+=1;let t=0,n=this._getNewName(e),r=this._joinDirectoryName(n),i=await this._newFile({newFilename:n,filepath:r,originalFilename:e.originalFilename,mimetype:e.mimetype});i.on(`error`,e=>{this._error(e)}),this.emit(`fileBegin`,e.name,i),i.open(),this.openedFiles.push(i),e.on(`data`,e=>{if(this._totalFileSize+=e.length,t+=e.length,this._totalFileSize>this.options.maxTotalFileSize){this._error(new P(`options.maxTotalFileSize (${this.options.maxTotalFileSize} bytes) exceeded, received ${this._totalFileSize} bytes of file data`,w,413));return}e.length!==0&&(this.pause(),i.write(e,()=>{this.resume()}))}),e.on(`end`,()=>{if(!this.options.allowEmptyFiles&&t===0){this._error(new P(`options.allowEmptyFiles is false, file size should be greater than 0`,T,400));return}if(t<this.options.minFileSize){this._error(new P(`options.minFileSize (${this.options.minFileSize} bytes) inferior, received ${t} bytes of file data`,C,400));return}if(t>this.options.maxFileSize){this._error(new P(`options.maxFileSize (${this.options.maxFileSize} bytes), received ${t} bytes of file data`,j,413));return}i.end(()=>{--this._flushing,this.emit(`file`,e.name,i),this._maybeEnd()})})}async _parseContentType(){if(this.bytesExpected===0){this._parser=new I(this,this.options);return}if(!this.headers[`content-type`]){this._error(new P(`bad content-type header, no content-type`,E,400));return}new I(this,this.options),await Promise.all(this._plugins.map(async(e,t)=>{let n=null;try{n=await e(this,this.options)||this}catch(e){let n=new P(`plugin on index ${t} failed with: ${e.message}`,M,500);throw n.idx=t,n}Object.assign(this,n),this.emit(`plugin`,t,n)})),this.emit(`pluginsResults`,[])}_error(e,t=`error`){this.error||this.ended||(this.req=null,this.error=e,this.emit(t,e),this.openedFiles.forEach(e=>{e.destroy()}))}_parseContentLength(){this.bytesReceived=0,this.headers[`content-length`]?this.bytesExpected=parseInt(this.headers[`content-length`],10):this.headers[`transfer-encoding`]===void 0&&(this.bytesExpected=0),this.bytesExpected!==null&&this.emit(`progress`,this.bytesReceived,this.bytesExpected)}_newParser(){return new U(this.options)}async _newFile({filepath:e,originalFilename:t,mimetype:n,newFilename:r}){if(this.options.fileWriteStreamHandler)return new m({newFilename:r,filepath:e,originalFilename:t,mimetype:n,createFileWriteStream:this.options.fileWriteStreamHandler,hashAlgorithm:this.options.hashAlgorithm});if(this.options.createDirsFromUploads)try{await me(e)}catch{this._error(new P(`cannot create directory`,N,409))}return new p({newFilename:r,filepath:e,originalFilename:t,mimetype:n,hashAlgorithm:this.options.hashAlgorithm})}_getFileName(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>{}[\]@,;:"?=\s/\t]+))($|;\s)/i);if(!t)return null;let n=t[2]||t[3]||``,r=n.substr(n.lastIndexOf(`\\`)+1);return r=r.replace(/%22/g,`"`),r=r.replace(/&#([\d]{4});/g,(e,t)=>String.fromCharCode(t)),r}_getExtension(e){if(!e)return``;let t=l.basename(e),n=t.indexOf(`.`),r=t.lastIndexOf(`.`),i=l.extname(t);n!==r&&(i=t.slice(n));let a,o=Array.from(i).findIndex(he);return a=o===-1?i:i.substring(0,o),a===`.`?``:a}_joinDirectoryName(e){let t=l.join(this.uploadDir,e);return t.startsWith(this.uploadDir)?t:l.join(this.uploadDir,this.options.defaultInvalidName)}_setUpRename(){typeof this.options.filename==`function`?this._getNewName=e=>{let t=``,n=this.options.defaultInvalidName;return e.originalFilename&&({ext:t,name:n}=l.parse(e.originalFilename),this.options.keepExtensions!==!0&&(t=``)),this.options.filename.call(this,n,t,e,this)}:this._getNewName=e=>{let t=de();if(e&&this.options.keepExtensions){let n=typeof e==`string`?e:e.originalFilename;return`${t}${this._getExtension(n)}`}return t}}_setUpMaxFields(){if(this.options.maxFields!==1/0){let e=0;this.on(`field`,()=>{e+=1,e>this.options.maxFields&&this._error(new P(`options.maxFields (${this.options.maxFields}) exceeded`,S,413))})}}_setUpMaxFiles(){if(this.options.maxFiles!==1/0){let e=0;this.on(`fileBegin`,()=>{e+=1,e>this.options.maxFiles&&this._error(new P(`options.maxFiles (${this.options.maxFiles}) exceeded`,A,413))})}}_maybeEnd(){!this.ended||this._flushing||this.error||(this.req=null,this.emit(`end`))}};let _e=(...e)=>new ge(...e),{enabledPlugins:K}=fe;e.DummyParser=I,e.File=p,e.Formidable=ge,e.IncomingForm=ge,e.JSONParser=G,e.MultipartParser=U,e.OctetStreamParser=te,e.OctetstreamParser=te,e.PersistentFile=p,e.QueryStringParser=ie,e.QuerystringParser=ie,e.VolatileFile=m,e.default=_e,e.defaultOptions=fe,e.enabledPlugins=K,e.errors=F,e.formidable=_e,e.json=ce,e.multipart=se,e.octetstream=ne,e.querystring=ae})),Vn=r(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),Hn=r(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=Vn(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),Un=r(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Hn()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),Wn=r(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),Gn=r(((e,n)=>{let r=t(`os`),i=t(`tty`),a=Wn(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1);function c(){if(`FORCE_COLOR`in o)return o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(o.FORCE_COLOR,10),3)}function l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=c();i!==void 0&&(s=i);let l=n?s:i;if(l===0)return 0;if(n){if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2}if(e&&!t&&l===void 0)return 0;let u=l||0;if(o.TERM===`dumb`)return u;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`,`DRONE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:u;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=Number.parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:u}function d(e,t={}){return l(u(e,{streamIsTTY:e&&e.isTTY,...t}))}n.exports={supportsColor:d,stdout:d({isTTY:i.isatty(1)}),stderr:d({isTTY:i.isatty(2)})}})),Kn=r(((e,n)=>{let r=t(`tty`),i=t(`util`);e.init=d,e.log=c,e.formatArgs=o,e.save=l,e.load=u,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=Gn();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
19
|
+
`,_.DEFAULT_CONTENT_TYPE=`application/octet-stream`,_.prototype.append=function(e,t,n){n||={},typeof n==`string`&&(n={filename:n});var i=r.prototype.append.bind(this);if((typeof t==`number`||t==null)&&(t=String(t)),Array.isArray(t)){this._error(Error(`Arrays are not supported.`));return}var a=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,n)},_.prototype._trackLength=function(e,t,n){var r=0;n.knownLength==null?Buffer.isBuffer(t)?r=t.length:typeof t==`string`&&(r=Buffer.byteLength(t)):r+=Number(n.knownLength),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+_.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&h(t,`httpVersion`))&&!(t instanceof u))&&(n.knownLength||this._valuesToMeasure.push(t))},_.prototype._lengthRetriever=function(e,t){h(e,`fd`)?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,r){if(n){t(n);return}t(null,r.size-(e.start?e.start:0))}):h(e,`httpVersion`)?t(null,Number(e.headers[`content-length`])):h(e,`httpModule`)?(e.on(`response`,function(n){e.pause(),t(null,Number(n.headers[`content-length`]))}),e.resume()):t(`Unknown stream`)},_.prototype._multiPartHeader=function(e,t,n){if(typeof n.header==`string`)return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a=``,o={"Content-Disposition":[`form-data`,`name="`+e+`"`].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header==`object`&&g(o,n.header);var s;for(var c in o)if(h(o,c)){if(s=o[c],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(a+=c+`: `+s.join(`; `)+_.LINE_BREAK)}return`--`+this.getBoundary()+_.LINE_BREAK+a+_.LINE_BREAK},_.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath==`string`?n=a.normalize(t.filepath).replace(/\\/g,`/`):t.filename||e&&(e.name||e.path)?n=a.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,`httpVersion`)&&(n=a.basename(e.client._httpMessage.path||``)),n)return`filename="`+n+`"`},_.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=f.lookup(e.name)),!n&&e&&e.path&&(n=f.lookup(e.path)),!n&&e&&e.readable&&h(e,`httpVersion`)&&(n=e.headers[`content-type`]),!n&&(t.filepath||t.filename)&&(n=f.lookup(t.filepath||t.filename)),!n&&e&&typeof e==`object`&&(n=_.DEFAULT_CONTENT_TYPE),n},_.prototype._multiPartFooter=function(){return function(e){var t=_.LINE_BREAK;this._streams.length===0&&(t+=this._lastBoundary()),e(t)}.bind(this)},_.prototype._lastBoundary=function(){return`--`+this.getBoundary()+`--`+_.LINE_BREAK},_.prototype.getHeaders=function(e){var t,n={"content-type":`multipart/form-data; boundary=`+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},_.prototype.setBoundary=function(e){if(typeof e!=`string`)throw TypeError(`FormData boundary must be a string`);this._boundary=e},_.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},_.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!=`function`&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!=`string`||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(_.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},_.prototype._generateBoundary=function(){this._boundary=`--------------------------`+d.randomBytes(12).toString(`hex`)},_.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error(`Cannot calculate proper length in synchronous way.`)),e},_.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},_.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}p.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){e(n);return}r.forEach(function(e){t+=e}),e(null,t)})},_.prototype.submit=function(e,t){var n,r,i={method:`post`};return typeof e==`string`?(e=c(e),r=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=g(e,i),r.port||=r.protocol===`https:`?443:80),r.headers=this.getHeaders(e.headers),n=r.protocol===`https:`?s.request(r):o.request(r),this.getLength(function(e,r){if(e&&e!==`Unknown stream`){this._error(e);return}if(r&&n.setHeader(`Content-Length`,r),this.pipe(n),t){var i,a=function(e,r){return n.removeListener(`error`,a),n.removeListener(`response`,i),t.call(this,e,r)};i=a.bind(this,null),n.on(`error`,a),n.on(`response`,i)}}.bind(this)),n},_.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit(`error`,e))},_.prototype.toString=function(){return`[object FormData]`},m(_.prototype,`FormData`),n.exports=_})),kn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=v,e.fromBig=r,e.split=i;let t=BigInt(2**32-1),n=BigInt(32);function r(e,r=!1){return r?{h:Number(e&t),l:Number(e>>n&t)}:{h:Number(e>>n&t)|0,l:Number(e&t)|0}}function i(e,t=!1){let n=e.length,i=new Uint32Array(n),a=new Uint32Array(n);for(let o=0;o<n;o++){let{h:n,l:s}=r(e[o],t);[i[o],a[o]]=[n,s]}return[i,a]}let a=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);e.toBig=a;let o=(e,t,n)=>e>>>n;e.shrSH=o;let s=(e,t,n)=>e<<32-n|t>>>n;e.shrSL=s;let c=(e,t,n)=>e>>>n|t<<32-n;e.rotrSH=c;let l=(e,t,n)=>e<<32-n|t>>>n;e.rotrSL=l;let u=(e,t,n)=>e<<64-n|t>>>n-32;e.rotrBH=u;let d=(e,t,n)=>e>>>n-32|t<<64-n;e.rotrBL=d;let f=(e,t)=>t;e.rotr32H=f;let p=(e,t)=>e;e.rotr32L=p;let m=(e,t,n)=>e<<n|t>>>32-n;e.rotlSH=m;let h=(e,t,n)=>t<<n|e>>>32-n;e.rotlSL=h;let g=(e,t,n)=>t<<n-32|e>>>64-n;e.rotlBH=g;let _=(e,t,n)=>e<<n-32|t>>>64-n;e.rotlBL=_;function v(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}let y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);e.add3L=y;let b=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;e.add3H=b;let x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);e.add4L=x;let S=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;e.add4H=S;let C=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5L=C;let w=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0;e.add5H=w,e.default={fromBig:r,split:i,toBig:a,shrSH:o,shrSL:s,rotrSH:c,rotrSL:l,rotrBH:u,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:h,rotlBH:g,rotlBL:_,add:v,add3L:y,add3H:b,add4L:x,add4H:S,add5H:w,add5L:C}})),An=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.crypto=void 0;let n=t(`node:crypto`);e.crypto=n&&typeof n==`object`&&`webcrypto`in n?n.webcrypto:n&&typeof n==`object`&&`randomBytes`in n?n:void 0})),jn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=n,e.anumber=r,e.abytes=i,e.ahash=a,e.aexists=o,e.aoutput=s,e.u8=c,e.u32=l,e.clean=u,e.createView=d,e.rotr=f,e.rotl=p,e.byteSwap=m,e.byteSwap32=h,e.bytesToHex=v,e.hexToBytes=x,e.asyncLoop=S,e.utf8ToBytes=C,e.bytesToUtf8=w,e.toBytes=T,e.kdfInputToBytes=E,e.concatBytes=D,e.checkOpts=O,e.createHasher=k,e.createOptHasher=A,e.createXOFer=j,e.randomBytes=M;let t=An();function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, got `+e)}function i(e,...t){if(!n(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function a(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.createHasher`);r(e.outputLen),r(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function s(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function c(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}function p(e,t){return e<<t|e>>>32-t>>>0}e.isLE=(()=>new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68)();function m(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}e.swap8IfBE=e.isLE?e=>e:e=>m(e),e.byteSwapIfBE=e.swap8IfBE;function h(e){for(let t=0;t<e.length;t++)e[t]=m(e[t]);return e}e.swap32IfBE=e.isLE?e=>e:h;let g=(()=>typeof Uint8Array.from([]).toHex==`function`&&typeof Uint8Array.fromHex==`function`)(),_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function v(e){if(i(e),g)return e.toHex();let t=``;for(let n=0;n<e.length;n++)t+=_[e[n]];return t}let y={_0:48,_9:57,A:65,F:70,a:97,f:102};function b(e){if(e>=y._0&&e<=y._9)return e-y._0;if(e>=y.A&&e<=y.F)return e-(y.A-10);if(e>=y.a&&e<=y.f)return e-(y.a-10)}function x(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);if(g)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error(`hex string expected, got unpadded hex of length `+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=b(e.charCodeAt(i)),a=b(e.charCodeAt(i+1));if(n===void 0||a===void 0){let t=e[i]+e[i+1];throw Error(`hex string expected, got non-hex character "`+t+`" at index `+i)}r[t]=n*16+a}return r}e.nextTick=async()=>{};async function S(t,n,r){let i=Date.now();for(let a=0;a<t;a++){r(a);let t=Date.now()-i;t>=0&&t<n||(await(0,e.nextTick)(),i+=t)}}function C(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function w(e){return new TextDecoder().decode(e)}function T(e){return typeof e==`string`&&(e=C(e)),i(e),e}function E(e){return typeof e==`string`&&(e=C(e)),i(e),e}function D(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];i(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}function O(e,t){if(t!==void 0&&{}.toString.call(t)!==`[object Object]`)throw Error(`options should be object or undefined`);return Object.assign(e,t)}e.Hash=class{};function k(e){let t=t=>e().update(T(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function A(e){let t=(t,n)=>e(n).update(T(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function j(e){let t=(t,n)=>e(n).update(T(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}e.wrapConstructor=k,e.wrapConstructorWithOpts=A,e.wrapXOFConstructorWithOpts=j;function M(e=32){if(t.crypto&&typeof t.crypto.getRandomValues==`function`)return t.crypto.getRandomValues(new Uint8Array(e));if(t.crypto&&typeof t.crypto.randomBytes==`function`)return Uint8Array.from(t.crypto.randomBytes(e));throw Error(`crypto.getRandomValues must be defined`)}})),Mn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=void 0,e.keccakP=_;let t=kn(),n=jn(),r=BigInt(0),i=BigInt(1),a=BigInt(2),o=BigInt(7),s=BigInt(256),c=BigInt(113),l=[],u=[],d=[];for(let e=0,t=i,n=1,f=0;e<24;e++){[n,f]=[f,(2*n+3*f)%5],l.push(2*(5*f+n)),u.push((e+1)*(e+2)/2%64);let p=r;for(let e=0;e<7;e++)t=(t<<i^(t>>o)*c)%s,t&a&&(p^=i<<(i<<BigInt(e))-i);d.push(p)}let f=(0,t.split)(d,!0),p=f[0],m=f[1],h=(e,n,r)=>r>32?(0,t.rotlBH)(e,n,r):(0,t.rotlSH)(e,n,r),g=(e,n,r)=>r>32?(0,t.rotlBL)(e,n,r):(0,t.rotlSL)(e,n,r);function _(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,a=r[i],o=r[i+1],s=h(a,o,1)^r[n],c=g(a,o,1)^r[n+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=u[n],a=h(t,i,r),o=g(t,i,r),s=l[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=p[n],e[1]^=m[n]}(0,n.clean)(r)}var v=class e extends n.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,(0,n.anumber)(r),!(0<e&&e<200))throw Error(`only keccak-f1600 function is supported`);this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,n.swap32IfBE)(this.state32),_(this.state32,this.rounds),(0,n.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this),e=(0,n.toBytes)(e),(0,n.abytes)(e);let{blockLen:t,state:r}=this,i=e.length;for(let n=0;n<i;){let a=Math.min(t-this.pos,i-n);for(let t=0;t<a;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,t&128&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+a),n),this.posOut+=a,n+=a}return e}xofInto(e){if(!this.enableXOF)throw Error(`XOF is not possible for this instance`);return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw Error(`digest() was already called`);return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,n.clean)(this.state)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return t||=new e(n,r,i,o,a),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=o,t.destroyed=this.destroyed,t}};e.Keccak=v;let y=(e,t,r)=>(0,n.createHasher)(()=>new v(t,e,r));e.sha3_224=(()=>y(6,144,224/8))(),e.sha3_256=(()=>y(6,136,256/8))(),e.sha3_384=(()=>y(6,104,384/8))(),e.sha3_512=(()=>y(6,72,512/8))(),e.keccak_224=(()=>y(1,144,224/8))(),e.keccak_256=(()=>y(1,136,256/8))(),e.keccak_384=(()=>y(1,104,384/8))(),e.keccak_512=(()=>y(1,72,512/8))();let b=(e,t,r)=>(0,n.createXOFer)((n={})=>new v(t,e,n.dkLen===void 0?r:n.dkLen,!0));e.shake128=(()=>b(31,168,128/8))(),e.shake256=(()=>b(31,136,256/8))()})),Nn=r(((e,t)=>{let{sha3_512:n}=Mn(),r=(e=4,t=Math.random)=>{let n=``;for(;n.length<e;)n+=Math.floor(t()*36).toString(36);return n};function i(e){let t=0n;for(let n of e.values()){let e=BigInt(n);t=(t<<8n)+e}return t}let a=(e=``)=>i(n(e)).toString(36).slice(1),o=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),s=e=>o[Math.floor(e()*o.length)],c=({globalObj:e=typeof global<`u`?global:typeof window<`u`?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString();return a(n.length?n+r(32,t):r(32,t)).substring(0,32)},l=e=>()=>e++,u=({random:e=Math.random,counter:t=l(Math.floor(e()*476782367)),length:n=24,fingerprint:i=c({random:e})}={})=>function(){let o=s(e),c=Date.now().toString(36),l=t().toString(36);return`${o+a(`${c+r(n,e)+l+i}`).substring(1,n)}`},d=u(),f=(e,{minLength:t=2,maxLength:n=32}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e==`string`&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};t.exports.getConstants=()=>({defaultLength:24,bigLength:32}),t.exports.init=u,t.exports.createId=d,t.exports.bufToBigInt=i,t.exports.createCounter=l,t.exports.createFingerprint=c,t.exports.isCuid=f})),Pn=r(((e,t)=>{let{createId:n,init:r,getConstants:i,isCuid:a}=Nn();t.exports.createId=n,t.exports.init=r,t.exports.getConstants=i,t.exports.isCuid=a})),Fn=r(((e,t)=>{t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}})),In=r(((e,n)=>{var r,i=typeof setImmediate==`function`;n.exports=a;function a(e){o.length||(d(),s=!0),o[o.length]=e}var o=[],s=!1,c=0,l=1024;function u(){for(;c<o.length;){var e=c;if(c+=1,o[e].call(),c>l){for(var t=0,n=o.length-c;t<n;t++)o[t]=o[t+c];o.length-=c,c=0}}o.length=0,c=0,s=!1}a.requestFlush=d;function d(){var e=process.domain;e&&(r||=t(`domain`),r.active=process.domain=null),s&&i?setImmediate(u):process.nextTick(u),e&&(r.active=process.domain=e)}})),Ln=r(((e,t)=>{var n=In(),r=[];t.exports=i;function i(e){var t=r.length?r.pop():new a;t.task=e,t.domain=process.domain,n(t)}function a(){this.task=null,this.domain=null}a.prototype.call=function(){this.domain&&this.domain.enter();var e=!0;try{this.task.call(),e=!1,this.domain&&this.domain.exit()}finally{e&&n.requestFlush(),this.task=null,this.domain=null,r.push(this)}}})),Rn=r(((e,t)=>{t.exports=Fn()(r);var n=Ln();function r(e){var t=!0;return n(function(){t=!1}),function(){var r=arguments,i=this;t?n(function(){e.apply(i,r)}):e.apply(i,r)}}})),zn=r(((e,t)=>{var n=Fn();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:function(){return i(this)},configurable:!0})});function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}})),Bn=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=t(`node:fs`),r=t(`node:crypto`),i=t(`node:events`),a=Pn(),o=Rn(),s=t(`node:fs/promises`),c=t(`node:os`),l=t(`node:path`),u=t(`node:string_decoder`),d=zn(),f=t(`node:stream`),p=class extends i.EventEmitter{constructor({filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a}){super(),this.lastModifiedDate=null,Object.assign(this,{filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a}),this.size=0,this._writeStream=null,typeof this.hashAlgorithm==`string`?this.hash=r.createHash(this.hashAlgorithm):this.hash=null}open(){this._writeStream=n.createWriteStream(this.filepath),this._writeStream.on(`error`,e=>{this.emit(`error`,e)})}toJSON(){let e={size:this.size,filepath:this.filepath,newFilename:this.newFilename,mimetype:this.mimetype,mtime:this.lastModifiedDate,length:this.length,originalFilename:this.originalFilename};return this.hash&&this.hash!==``&&(e.hash=this.hash),e}toString(){return`PersistentFile: ${this.newFilename}, Original: ${this.originalFilename}, Path: ${this.filepath}`}write(e,t){if(this.hash&&this.hash.update(e),this._writeStream.closed){t();return}this._writeStream.write(e,()=>{this.lastModifiedDate=new Date,this.size+=e.length,this.emit(`progress`,this.size),t()})}end(e){this.hash&&=this.hash.digest(`hex`),this._writeStream.end(()=>{this.emit(`end`),e()})}destroy(){this._writeStream.destroy();let e=this.filepath;setTimeout(function(){n.unlink(e,()=>{})},1)}},m=class extends i.EventEmitter{constructor({filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a,createFileWriteStream:o}){super(),this.lastModifiedDate=null,Object.assign(this,{filepath:e,newFilename:t,originalFilename:n,mimetype:i,hashAlgorithm:a,createFileWriteStream:o}),this.size=0,this._writeStream=null,typeof this.hashAlgorithm==`string`?this.hash=r.createHash(this.hashAlgorithm):this.hash=null}open(){this._writeStream=this.createFileWriteStream(this),this._writeStream.on(`error`,e=>{this.emit(`error`,e)})}destroy(){this._writeStream.destroy()}toJSON(){let e={size:this.size,newFilename:this.newFilename,length:this.length,originalFilename:this.originalFilename,mimetype:this.mimetype};return this.hash&&this.hash!==``&&(e.hash=this.hash),e}toString(){return`VolatileFile: ${this.originalFilename}`}write(e,t){if(this.hash&&this.hash.update(e),this._writeStream.closed||this._writeStream.destroyed){t();return}this._writeStream.write(e,()=>{this.size+=e.length,this.emit(`progress`,this.size),t()})}end(e){this.hash&&=this.hash.digest(`hex`),this._writeStream.end(()=>{this.emit(`end`),e()})}};let h=1e3,g=1001,_=1002,v=1003,y=1004,b=1005,x=1006,S=1007,C=1008,w=1009,T=1010,E=1011,D=1012,O=1013,k=1014,A=1015,j=1016,M=1017,N=1018,P=class extends Error{constructor(e,t,n=500){super(e),this.code=t,this.httpCode=n}};var F=Object.freeze({__proto__:null,aborted:_,biggerThanMaxFileSize:j,biggerThanTotalMaxFileSize:w,cannotCreateDir:N,default:P,filenameNotString:b,malformedMultipart:D,maxFieldsExceeded:S,maxFieldsSizeExceeded:x,maxFilesExceeded:A,missingContentType:E,missingMultipartBoundary:O,missingPlugin:h,noEmptyFiles:T,noParser:v,pluginFailed:M,pluginFunction:g,smallerThanMinFileSize:C,uninitializedParser:y,unknownTransferEncoding:k}),I=class extends f.Transform{constructor(e,t={}){super(),this.globalOptions={...t},this.incomingForm=e}_flush(e){this.incomingForm.ended=!0,this.incomingForm._maybeEnd(),e()}};let L=0,R={PARSER_UNINITIALIZED:L++,START:L++,START_BOUNDARY:L++,HEADER_FIELD_START:L++,HEADER_FIELD:L++,HEADER_VALUE_START:L++,HEADER_VALUE:L++,HEADER_VALUE_ALMOST_DONE:L++,HEADERS_ALMOST_DONE:L++,PART_DATA_START:L++,PART_DATA:L++,PART_END:L++,END:L++},z=1,B={PART_BOUNDARY:z,LAST_BOUNDARY:z*=2};function V(e){return e|32}let H={};Object.keys(R).forEach(e=>{H[e]=R[e]});var U=class e extends f.Transform{constructor(e={}){super({readableObjectMode:!0}),this.boundary=null,this.boundaryChars=null,this.lookbehind=null,this.bufferLength=0,this.state=R.PARSER_UNINITIALIZED,this.globalOptions={...e},this.index=null,this.flags=0}_endUnexpected(){return new P(`MultipartParser.end(): stream ended unexpectedly: ${this.explain()}`,D,400)}_flush(e){this.state===R.HEADER_FIELD_START&&this.index===0||this.state===R.PART_DATA&&this.index===this.boundary.length?(this._handleCallback(`partEnd`),this._handleCallback(`end`),e()):this.state===R.END?e():e(this._endUnexpected())}initWithBoundary(e){this.boundary=Buffer.from(`\r\n--${e}`),this.lookbehind=Buffer.alloc(this.boundary.length+8),this.state=R.START,this.boundaryChars={};for(let e=0;e<this.boundary.length;e++)this.boundaryChars[this.boundary[e]]=!0}_handleCallback(e,t,n,r){n!==void 0&&n===r||this.push({name:e,buffer:t,start:n,end:r})}_transform(e,t,n){let r=0,i=this.index,{index:a,state:o,flags:s}=this,{lookbehind:c,boundary:l,boundaryChars:u}=this,d=l.length,f=d-1;this.bufferLength=e.length;let p=null,m=null,h=(e,t)=>{this[`${e}Mark`]=typeof t==`number`?t:r},g=e=>{delete this[`${e}Mark`]},_=(t,n)=>{let i=`${t}Mark`;i in this&&(n?(this._handleCallback(t,e,this[i],r),g(t)):(this._handleCallback(t,e,this[i],e.length),h(t,0)))};for(r=0;r<this.bufferLength;r++)switch(p=e[r],o){case R.PARSER_UNINITIALIZED:n(this._endUnexpected());return;case R.START:a=0,o=R.START_BOUNDARY;case R.START_BOUNDARY:if(a===l.length-2){if(p===45)s|=B.LAST_BOUNDARY;else if(p!==13){n(this._endUnexpected());return}a++;break}else if(a-1==l.length-2){if(s&B.LAST_BOUNDARY&&p===45)this._handleCallback(`end`),o=R.END,s=0;else if(!(s&B.LAST_BOUNDARY)&&p===10)a=0,this._handleCallback(`partBegin`),o=R.HEADER_FIELD_START;else{n(this._endUnexpected());return}break}p!==l[a+2]&&(a=-2),p===l[a+2]&&a++;break;case R.HEADER_FIELD_START:o=R.HEADER_FIELD,h(`headerField`),a=0;case R.HEADER_FIELD:if(p===13){g(`headerField`),o=R.HEADERS_ALMOST_DONE;break}if(a++,p===45)break;if(p===58){if(a===1){n(this._endUnexpected());return}_(`headerField`,!0),o=R.HEADER_VALUE_START;break}if(m=V(p),m<97||m>122){n(this._endUnexpected());return}break;case R.HEADER_VALUE_START:if(p===32)break;h(`headerValue`),o=R.HEADER_VALUE;case R.HEADER_VALUE:p===13&&(_(`headerValue`,!0),this._handleCallback(`headerEnd`),o=R.HEADER_VALUE_ALMOST_DONE);break;case R.HEADER_VALUE_ALMOST_DONE:if(p!==10){n(this._endUnexpected());return}o=R.HEADER_FIELD_START;break;case R.HEADERS_ALMOST_DONE:if(p!==10){n(this._endUnexpected());return}this._handleCallback(`headersEnd`),o=R.PART_DATA_START;break;case R.PART_DATA_START:o=R.PART_DATA,h(`partData`);case R.PART_DATA:if(i=a,a===0){for(r+=f;r<this.bufferLength&&!(e[r]in u);)r+=d;r-=f,p=e[r]}if(a<l.length)l[a]===p?(a===0&&_(`partData`,!0),a++):a=0;else if(a===l.length)a++,p===13?s|=B.PART_BOUNDARY:p===45?s|=B.LAST_BOUNDARY:a=0;else if(a-1===l.length)if(s&B.PART_BOUNDARY){if(a=0,p===10){s&=~B.PART_BOUNDARY,this._handleCallback(`partEnd`),this._handleCallback(`partBegin`),o=R.HEADER_FIELD_START;break}}else s&B.LAST_BOUNDARY&&p===45?(this._handleCallback(`partEnd`),this._handleCallback(`end`),o=R.END,s=0):a=0;a>0?c[a-1]=p:i>0&&(this._handleCallback(`partData`,c,0,i),i=0,h(`partData`),r--);break;case R.END:break;default:n(this._endUnexpected());return}return _(`headerField`),_(`headerValue`),_(`partData`),this.index=a,this.state=o,this.flags=s,n(),this.bufferLength}explain(){return`state = ${e.stateToString(this.state)}`}};U.stateToString=e=>{for(let t in R)if(R[t]===e)return t};var ee=Object.assign(U,{STATES:H}),te=class extends f.PassThrough{constructor(e={}){super(),this.globalOptions={...e}}};async function ne(e,t){let n=this||e;return/octet-stream/i.test(n.headers[`content-type`])&&await re.call(n,n,t),n}async function re(e,t){this.type=`octet-stream`;let n=this.headers[`x-file-name`],r=this.headers[`content-type`],i={originalFilename:n,mimetype:r},a=this._getNewName(i),o=this._joinDirectoryName(a),s=await this._newFile({newFilename:a,filepath:o,originalFilename:n,mimetype:r});this.emit(`fileBegin`,n,s),s.open(),this.openedFiles.push(s),this._flushing+=1,this._parser=new te(this.options);let c=0;return this._parser.on(`data`,e=>{this.pause(),c+=1,s.write(e,()=>{--c,this.resume(),this.ended&&this._parser.emit(`doneWritingFile`)})}),this._parser.on(`end`,()=>{--this._flushing,this.ended=!0;let e=()=>{s.end(()=>{this.emit(`file`,`file`,s),this._maybeEnd()})};c===0?e():this._parser.once(`doneWritingFile`,e)}),this}var ie=class extends f.Transform{constructor(e={}){super({readableObjectMode:!0}),this.globalOptions={...e},this.buffer=``,this.bufferLength=0}_transform(e,t,n){this.buffer+=e.toString(`ascii`),this.bufferLength=this.buffer.length,n()}_flush(e){let t=new URLSearchParams(this.buffer);for(let[e,n]of t)this.push({key:e,value:n});this.buffer=``,e()}};function ae(e,t){let n=this||e;return/urlencoded/i.test(n.headers[`content-type`])&&oe.call(n,n,t),n}function oe(e,t){this.type=`urlencoded`;let n=new ie(this.options);return n.on(`data`,({key:e,value:t})=>{this.emit(`field`,e,t)}),n.once(`end`,()=>{this.ended=!0,this._maybeEnd()}),this._parser=n,this}function se(e,t){let n=this||e;if(/multipart/i.test(n.headers[`content-type`])){let e=n.headers[`content-type`].match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(e)W(e[1]||e[2]).call(n,n,t);else{let e=new P(`bad content-type header, no multipart boundary`,O,400);n._error(e)}}return n}function W(e){return function(){this.type=`multipart`;let t=new ee(this.options),n,r,i;t.initWithBoundary(e),t.on(`data`,async({name:e,buffer:a,start:o,end:s})=>{if(e===`partBegin`)i=new f.Stream,i.readable=!0,i.headers={},i.name=null,i.originalFilename=null,i.mimetype=null,i.transferEncoding=this.options.encoding,i.transferBuffer=``,n=``,r=``;else if(e===`headerField`)n+=a.toString(this.options.encoding,o,s);else if(e===`headerValue`)r+=a.toString(this.options.encoding,o,s);else if(e===`headerEnd`){n=n.toLowerCase(),i.headers[n]=r;let e=r.match(/\bname=("([^"]*)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))/i);n===`content-disposition`?(e&&(i.name=e[2]||e[3]||``),i.originalFilename=this._getFileName(r)):n===`content-type`?i.mimetype=r:n===`content-transfer-encoding`&&(i.transferEncoding=r.toLowerCase()),n=``,r=``}else if(e===`headersEnd`){switch(i.transferEncoding){case`binary`:case`7bit`:case`8bit`:case`utf-8`:{let e=e=>{e.name===`partData`&&i.emit(`data`,e.buffer.slice(e.start,e.end))},n=r=>{r.name===`partEnd`&&(i.emit(`end`),t.off(`data`,e),t.off(`data`,n))};t.on(`data`,e),t.on(`data`,n);break}case`base64`:{let e=e=>{if(e.name===`partData`){i.transferBuffer+=e.buffer.slice(e.start,e.end).toString(`ascii`);let t=parseInt(i.transferBuffer.length/4,10)*4;i.emit(`data`,Buffer.from(i.transferBuffer.substring(0,t),`base64`)),i.transferBuffer=i.transferBuffer.substring(t)}},n=r=>{r.name===`partEnd`&&(i.emit(`data`,Buffer.from(i.transferBuffer,`base64`)),i.emit(`end`),t.off(`data`,e),t.off(`data`,n))};t.on(`data`,e),t.on(`data`,n);break}default:return this._error(new P(`unknown transfer-encoding`,k,501))}this._parser.pause(),await this.onPart(i),this._parser.resume()}else e===`end`&&(this.ended=!0,this._maybeEnd())}),this._parser=t}}var G=class extends f.Transform{constructor(e={}){super({readableObjectMode:!0}),this.chunks=[],this.globalOptions={...e}}_transform(e,t,n){this.chunks.push(String(e)),n()}_flush(e){try{let e=JSON.parse(this.chunks.join(``));this.push(e)}catch(t){e(t);return}this.chunks=null,e()}};function ce(e,t){let n=this||e;return/json/i.test(n.headers[`content-type`])&&le.call(n,n,t),n}function le(e,t){this.type=`json`;let n=new G(this.options);n.on(`data`,e=>{this.fields=e}),n.once(`end`,()=>{this.ended=!0,this._maybeEnd()}),this._parser=n}let ue=`${process.env.NODE_ENV}-${c.platform()}-${c.hostname()}`,de=a.init({length:25,fingerprint:ue.toLowerCase()}),fe={maxFields:1e3,maxFieldsSize:20*1024*1024,maxFiles:1/0,maxFileSize:200*1024*1024,maxTotalFileSize:void 0,minFileSize:1,allowEmptyFiles:!1,createDirsFromUploads:!1,keepExtensions:!1,encoding:`utf-8`,hashAlgorithm:!1,uploadDir:c.tmpdir(),enabledPlugins:[ne,ae,se,ce],fileWriteStreamHandler:null,defaultInvalidName:`invalid-name`,filter(e){return!0},filename:void 0};function pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}let me=function(e){let t=Promise.resolve();return async function(...n){let r=t,i,a;return t=new Promise(function(e){a=e}),await r,i=e(...n),i.then(a).catch(a),i}}(function(e){let t=l.dirname(e);return s.mkdir(t,{recursive:!0})}),he=e=>{let t=e.charCodeAt(0);return!(t===46||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)};var ge=class extends i.EventEmitter{constructor(e={}){super(),this.options={...fe,...e},this.options.maxTotalFileSize||(this.options.maxTotalFileSize=this.options.maxFileSize);let t=l.resolve(this.options.uploadDir||this.options.uploaddir||c.tmpdir());if(this.uploaddir=t,this.uploadDir=t,[`error`,`headers`,`type`,`bytesExpected`,`bytesReceived`,`_parser`,`req`].forEach(e=>{this[e]=null}),this._setUpRename(),this._flushing=0,this._fieldsSize=0,this._totalFileSize=0,this._plugins=[],this.openedFiles=[],this.options.enabledPlugins=[].concat(this.options.enabledPlugins).filter(Boolean),this.options.enabledPlugins.length===0)throw new P(`expect at least 1 enabled builtin plugin, see options.enabledPlugins`,h);this.options.enabledPlugins.forEach(e=>{this.use(e)}),this._setUpMaxFields(),this._setUpMaxFiles(),this.ended=void 0,this.type=void 0}use(e){if(typeof e!=`function`)throw new P(".use: expect `plugin` to be a function",g);return this._plugins.push(e.bind(this)),this}pause(){try{this.req.pause()}catch(e){return this.ended||this._error(e),!1}return!0}resume(){try{this.req.resume()}catch(e){return this.ended||this._error(e),!1}return!0}async parse(e,t){this.req=e;let n;if(!t){let e,r;n=new Promise((t,n)=>{e=t,r=n}),t=(t,n,i)=>{t?r(t):e([n,i])}}let r=d(o(t));this.fields={};let i={};return this.on(`field`,(e,t)=>{this.type===`multipart`||this.type===`urlencoded`?pe(this.fields,e)?this.fields[e].push(t):this.fields[e]=[t]:this.fields[e]=t}),this.on(`file`,(e,t)=>{pe(i,e)?i[e].push(t):i[e]=[t]}),this.on(`error`,e=>{r(e,this.fields,i)}),this.on(`end`,()=>{r(null,this.fields,i)}),await this.writeHeaders(e.headers),e.on(`error`,e=>{this._error(e)}).on(`aborted`,()=>{this.emit(`aborted`),this._error(new P(`Request aborted`,_))}).on(`data`,e=>{try{this.write(e)}catch(e){this._error(e)}}).on(`end`,()=>{this.error||this._parser&&this._parser.end()}),n||this}async writeHeaders(e){if(this.headers=e,this._parseContentLength(),await this._parseContentType(),!this._parser){this._error(new P(`no parser found`,v,415));return}this._parser.once(`error`,e=>{this._error(e)})}write(e){return this.error?null:this._parser?(this.bytesReceived+=e.length,this.emit(`progress`,this.bytesReceived,this.bytesExpected),this._parser.write(e),this.bytesReceived):(this._error(new P(`uninitialized parser`,y)),null)}onPart(e){return this._handlePart(e)}async _handlePart(e){if(e.originalFilename&&typeof e.originalFilename!=`string`){this._error(new P(`the part.originalFilename should be string when it exists`,b));return}if(!e.mimetype){let t=``,n=new u.StringDecoder(e.transferEncoding||this.options.encoding);e.on(`data`,e=>{if(this._fieldsSize+=e.length,this._fieldsSize>this.options.maxFieldsSize){this._error(new P(`options.maxFieldsSize (${this.options.maxFieldsSize} bytes) exceeded, received ${this._fieldsSize} bytes of field data`,x,413));return}t+=n.write(e)}),e.on(`end`,()=>{this.emit(`field`,e.name,t)});return}if(!this.options.filter(e))return;this._flushing+=1;let t=0,n=this._getNewName(e),r=this._joinDirectoryName(n),i=await this._newFile({newFilename:n,filepath:r,originalFilename:e.originalFilename,mimetype:e.mimetype});i.on(`error`,e=>{this._error(e)}),this.emit(`fileBegin`,e.name,i),i.open(),this.openedFiles.push(i),e.on(`data`,e=>{if(this._totalFileSize+=e.length,t+=e.length,this._totalFileSize>this.options.maxTotalFileSize){this._error(new P(`options.maxTotalFileSize (${this.options.maxTotalFileSize} bytes) exceeded, received ${this._totalFileSize} bytes of file data`,w,413));return}e.length!==0&&(this.pause(),i.write(e,()=>{this.resume()}))}),e.on(`end`,()=>{if(!this.options.allowEmptyFiles&&t===0){this._error(new P(`options.allowEmptyFiles is false, file size should be greater than 0`,T,400));return}if(t<this.options.minFileSize){this._error(new P(`options.minFileSize (${this.options.minFileSize} bytes) inferior, received ${t} bytes of file data`,C,400));return}if(t>this.options.maxFileSize){this._error(new P(`options.maxFileSize (${this.options.maxFileSize} bytes), received ${t} bytes of file data`,j,413));return}i.end(()=>{--this._flushing,this.emit(`file`,e.name,i),this._maybeEnd()})})}async _parseContentType(){if(this.bytesExpected===0){this._parser=new I(this,this.options);return}if(!this.headers[`content-type`]){this._error(new P(`bad content-type header, no content-type`,E,400));return}new I(this,this.options),await Promise.all(this._plugins.map(async(e,t)=>{let n=null;try{n=await e(this,this.options)||this}catch(e){let n=new P(`plugin on index ${t} failed with: ${e.message}`,M,500);throw n.idx=t,n}Object.assign(this,n),this.emit(`plugin`,t,n)})),this.emit(`pluginsResults`,[])}_error(e,t=`error`){this.error||this.ended||(this.req=null,this.error=e,this.emit(t,e),this.openedFiles.forEach(e=>{e.destroy()}))}_parseContentLength(){this.bytesReceived=0,this.headers[`content-length`]?this.bytesExpected=parseInt(this.headers[`content-length`],10):this.headers[`transfer-encoding`]===void 0&&(this.bytesExpected=0),this.bytesExpected!==null&&this.emit(`progress`,this.bytesReceived,this.bytesExpected)}_newParser(){return new ee(this.options)}async _newFile({filepath:e,originalFilename:t,mimetype:n,newFilename:r}){if(this.options.fileWriteStreamHandler)return new m({newFilename:r,filepath:e,originalFilename:t,mimetype:n,createFileWriteStream:this.options.fileWriteStreamHandler,hashAlgorithm:this.options.hashAlgorithm});if(this.options.createDirsFromUploads)try{await me(e)}catch{this._error(new P(`cannot create directory`,N,409))}return new p({newFilename:r,filepath:e,originalFilename:t,mimetype:n,hashAlgorithm:this.options.hashAlgorithm})}_getFileName(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>{}[\]@,;:"?=\s/\t]+))($|;\s)/i);if(!t)return null;let n=t[2]||t[3]||``,r=n.substr(n.lastIndexOf(`\\`)+1);return r=r.replace(/%22/g,`"`),r=r.replace(/&#([\d]{4});/g,(e,t)=>String.fromCharCode(t)),r}_getExtension(e){if(!e)return``;let t=l.basename(e),n=t.indexOf(`.`),r=t.lastIndexOf(`.`),i=l.extname(t);n!==r&&(i=t.slice(n));let a,o=Array.from(i).findIndex(he);return a=o===-1?i:i.substring(0,o),a===`.`?``:a}_joinDirectoryName(e){let t=l.join(this.uploadDir,e);return t.startsWith(this.uploadDir)?t:l.join(this.uploadDir,this.options.defaultInvalidName)}_setUpRename(){typeof this.options.filename==`function`?this._getNewName=e=>{let t=``,n=this.options.defaultInvalidName;return e.originalFilename&&({ext:t,name:n}=l.parse(e.originalFilename),this.options.keepExtensions!==!0&&(t=``)),this.options.filename.call(this,n,t,e,this)}:this._getNewName=e=>{let t=de();if(e&&this.options.keepExtensions){let n=typeof e==`string`?e:e.originalFilename;return`${t}${this._getExtension(n)}`}return t}}_setUpMaxFields(){if(this.options.maxFields!==1/0){let e=0;this.on(`field`,()=>{e+=1,e>this.options.maxFields&&this._error(new P(`options.maxFields (${this.options.maxFields}) exceeded`,S,413))})}}_setUpMaxFiles(){if(this.options.maxFiles!==1/0){let e=0;this.on(`fileBegin`,()=>{e+=1,e>this.options.maxFiles&&this._error(new P(`options.maxFiles (${this.options.maxFiles}) exceeded`,A,413))})}}_maybeEnd(){!this.ended||this._flushing||this.error||(this.req=null,this.emit(`end`))}};let _e=(...e)=>new ge(...e),{enabledPlugins:K}=fe;e.DummyParser=I,e.File=p,e.Formidable=ge,e.IncomingForm=ge,e.JSONParser=G,e.MultipartParser=ee,e.OctetStreamParser=te,e.OctetstreamParser=te,e.PersistentFile=p,e.QueryStringParser=ie,e.QuerystringParser=ie,e.VolatileFile=m,e.default=_e,e.defaultOptions=fe,e.enabledPlugins=K,e.errors=F,e.formidable=_e,e.json=ce,e.multipart=se,e.octetstream=ne,e.querystring=ae})),Vn=r(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),Hn=r(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=Vn(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),Un=r(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Hn()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),Wn=r(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),Gn=r(((e,n)=>{let r=t(`os`),i=t(`tty`),a=Wn(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1);function c(){if(`FORCE_COLOR`in o)return o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(o.FORCE_COLOR,10),3)}function l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=c();i!==void 0&&(s=i);let l=n?s:i;if(l===0)return 0;if(n){if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2}if(e&&!t&&l===void 0)return 0;let u=l||0;if(o.TERM===`dumb`)return u;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`,`DRONE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:u;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=Number.parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:u}function d(e,t={}){return l(u(e,{streamIsTTY:e&&e.isTTY,...t}))}n.exports={supportsColor:d,stdout:d({isTTY:i.isatty(1)}),stderr:d({isTTY:i.isatty(2)})}})),Kn=r(((e,n)=>{let r=t(`tty`),i=t(`util`);e.init=d,e.log=c,e.formatArgs=o,e.save=l,e.load=u,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=Gn();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
20
20
|
`).join(`
|
|
21
21
|
`+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+t+` `+e[0]}function s(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...t){return process.stderr.write(i.formatWithOptions(e.inspectOpts,...t)+`
|
|
22
22
|
`)}function l(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function u(){return process.env.DEBUG}function d(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}n.exports=Hn()(e);let{formatters:f}=n.exports;f.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
|
|
23
23
|
`).map(e=>e.trim()).join(` `)},f.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),qn=r(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=Un():t.exports=Kn()})),Jn=r((e=>{(function(){function t(e,n,r,i){return this instanceof t?(this.domain=e||void 0,this.path=n||`/`,this.secure=!!r,this.script=!!i,this):new t(e,n,r,i)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t;function n(e,t,r){return e instanceof n?e:this instanceof n?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(r||`/`),this.explicit_path=!1,this.domain=t||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,t,r),this):new n(e,t,r)}e.Cookie=n,n.prototype.toString=function(){var e=[this.name+`=`+this.value];return this.expiration_date!==1/0&&e.push(`expires=`+new Date(this.expiration_date).toGMTString()),this.domain&&e.push(`domain=`+this.domain),this.path&&e.push(`path=`+this.path),this.secure&&e.push(`secure`),this.noscript&&e.push(`httponly`),e.join(`; `)},n.prototype.toValueString=function(){return this.name+`=`+this.value};var r=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;n.prototype.parse=function(e,t,r){if(this instanceof n){if(e.length>32768){console.warn(`Cookie too long for parsing (>32768 characters)`);return}var i=e.split(`;`).filter(function(e){return!!e}),a,o=i[0].match(/([^=]+)=([\s\S]*)/);if(!o){console.warn(`Invalid cookie header encountered. Header: '`+e+`'`);return}var s=o[1],c=o[2];if(typeof s!=`string`||s.length===0||typeof c!=`string`){console.warn(`Unable to extract values from cookie header. Cookie: '`+e+`'`);return}for(this.name=s,this.value=c,a=1;a<i.length;a+=1)switch(o=i[a].match(/([^=]+)(?:=([\s\S]*))?/),s=o[1].trim().toLowerCase(),c=o[2],s){case`httponly`:this.noscript=!0;break;case`expires`:this.expiration_date=c?Number(Date.parse(c)):1/0;break;case`path`:this.path=c?c.trim():``,this.explicit_path=!0;break;case`domain`:this.domain=c?c.trim():``,this.explicit_domain=!!this.domain;break;case`secure`:this.secure=!0;break}return this.explicit_path||(this.path=r||`/`),this.explicit_domain||(this.domain=t),this}return new n().parse(e,t,r)},n.prototype.matches=function(e){return e===t.All?!0:!(this.noscript&&e.script||this.secure&&!e.secure||!this.collidesWith(e))},n.prototype.collidesWith=function(e){if(this.path&&!e.path||this.domain&&!e.domain||this.path&&e.path.indexOf(this.path)!==0||this.explicit_path&&e.path.indexOf(this.path)!==0)return!1;var t=e.domain&&e.domain.replace(/^[\.]/,``),n=this.domain&&this.domain.replace(/^[\.]/,``);if(n===t)return!0;if(n){if(!this.explicit_domain)return!1;var r=t.indexOf(n);return!(r===-1||r!==t.length-n.length)}return!0};function i(){var e,t,r;return this instanceof i?(e=Object.create(null),this.setCookie=function(i,a,o){var s,c;if(i=new n(i,a,o),s=i.expiration_date<=Date.now(),e[i.name]!==void 0){for(t=e[i.name],c=0;c<t.length;c+=1)if(r=t[c],r.collidesWith(i))return s?(t.splice(c,1),t.length===0&&delete e[i.name],!1):(t[c]=i,i);return s?!1:(t.push(i),i)}return s?!1:(e[i.name]=[i],e[i.name])},this.getCookie=function(n,r){var i,a;if(t=e[n],t)for(a=0;a<t.length;a+=1){if(i=t[a],i.expiration_date<=Date.now()){t.length===0&&delete e[i.name];continue}if(i.matches(r))return i}},this.getCookies=function(t){var n=[],r,i;for(r in e)i=this.getCookie(r,t),i&&n.push(i);return n.toString=function(){return n.join(`:`)},n.toValueString=function(){return n.map(function(e){return e.toValueString()}).join(`; `)},n},this):new i}e.CookieJar=i,i.prototype.setCookies=function(e,t,i){e=Array.isArray(e)?e:e.split(r);var a=[],o,s;for(e=e.map(function(e){return new n(e,t,i)}),o=0;o<e.length;o+=1)s=e[o],this.setCookie(s,t,i)&&a.push(s);return a}})()})),Yn=r(((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?1:0}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)}}})),Xn=r((e=>{e.type=e=>e.split(/ *; */).shift(),e.params=e=>{let t={};for(let n of e.split(/ *; */)){let e=n.split(/ *= */),r=e.shift(),i=e.shift();r&&i&&(t[r]=i)}return t},e.parseLinks=e=>{let t={};for(let n of e.split(/ *, */)){let e=n.split(/ *; */),r=e[0].slice(1,-1),i=e[1].split(/ *= */)[1].slice(1,-1);t[i]=r}return t},e.cleanHeader=(e,t)=>(delete e[`content-type`],delete e[`content-length`],delete e[`transfer-encoding`],delete e.host,t&&(delete e.authorization,delete e.cookie),e),e.normalizeHostname=e=>{let[,t]=e.match(/^\[([^\]]+)\]$/)||[];return t||e},e.isObject=e=>typeof e==`object`&&!!e,e.hasOwn=Object.hasOwn||function(e,t){if(e==null)throw TypeError(`Cannot convert undefined or null to object`);return Object.prototype.hasOwnProperty.call(new Object(e),t)},e.mixin=(t,n)=>{for(let r in n)e.hasOwn(n,r)&&(t[r]=n[r])},e.isGzipOrDeflateEncoding=e=>new RegExp(/^\s*(?:deflate|gzip)\s*$/).test(e.headers[`content-encoding`]),e.isBrotliEncoding=e=>new RegExp(/^\s*(?:br)\s*$/).test(e.headers[`content-encoding`])})),Zn=r(((e,t)=>{let{isObject:n,hasOwn:r}=Xn();t.exports=i;function i(){}i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||typeof e!=`object`)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(let t in e)if(r(e,t))switch(t){case`deadline`:this._timeout=e.deadline;break;case`response`:this._responseTimeout=e.response;break;case`upload`:this._uploadTimeout=e.upload;break;default:console.warn(`Unknown timeout option`,t)}return this},i.prototype.retry=function(e,t){return(arguments.length===0||e===!0)&&(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};let a=new Set([`ETIMEDOUT`,`ECONNRESET`,`EADDRINUSE`,`ECONNREFUSED`,`EPIPE`,`ENOTFOUND`,`ENETUNREACH`,`EAI_AGAIN`]),o=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{let n=this._retryCallback(e,t);if(n===!0)return!0;if(n===!1)return!1}catch(e){console.error(e)}return!!(t&&t.status&&o.has(t.status)||e&&(e.code&&a.has(e.code)||e.timeout&&e.code===`ECONNABORTED`||e.crossDomain))},i.prototype._retry=function(){return this.clearTimeout(),this.req&&=(this.req=null,this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){if(!this._fullfilledPromise){let e=this;this._endCalled&&console.warn(`Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises`),this._fullfilledPromise=new Promise((t,n)=>{e.on(`abort`,()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError){n(this.timedoutError);return}let e=Error(`Aborted`);e.code=`ABORTED`,e.status=this.status,e.method=this.method,e.url=this.url,n(e)}),e.end((e,r)=>{e?n(e):t(r)})})}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if(typeof e!=`function`)throw Error(`Callback required`);return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return e?this._okCallback?this._okCallback(e):e.status>=200&&e.status<300:!1},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(n(e)){for(let t in e)r(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t,i){if(e==null)throw Error(`.field(name, val) name can not be empty`);if(this._data)throw Error(`.field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()`);if(n(e)){for(let t in e)r(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(let n in t)r(t,n)&&this.field(e,t[n]);return this}if(t==null)throw Error(`.field(name, val) val can not be empty`);return typeof t==`boolean`&&(t=String(t)),i?this._getFormData().append(e,t,i):this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit(`abort`),this)},i.prototype._auth=function(e,t,n,r){switch(n.type){case`basic`:this.set(`Authorization`,`Basic ${r(`${e}:${t}`)}`);break;case`auto`:this.username=e,this.password=t;break;case`bearer`:this.set(`Authorization`,`Bearer ${e}`);break;default:break}return this},i.prototype.withCredentials=function(e){return e===void 0&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if(typeof e!=`number`)throw TypeError(`Invalid argument`);return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){let t=n(e),i=this._header[`content-type`];if(this._formData)throw Error(`.send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()`);if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error(`Can't merge these send calls`);if(t&&n(this._data))for(let t in e){if(typeof e[t]==`bigint`&&!e[t].toJSON)throw Error(`Cannot serialize BigInt value to json`);r(e,t)&&(this._data[t]=e[t])}else if(typeof e==`bigint`)throw Error(`Cannot send value of type BigInt`);else typeof e==`string`?(i||this.type(`form`),i=this._header[`content-type`],i&&=i.toLowerCase().trim(),i===`application/x-www-form-urlencoded`?this._data=this._data?`${this._data}&${e}`:e:this._data=(this._data||``)+e):this._data=e;return!t||this._isHost(e)||i||this.type(`json`),this},i.prototype.sortQuery=function(e){return this._sort=e===void 0?!0:e,this},i.prototype._finalizeQueryString=function(){let e=this._query.join(`&`);if(e&&(this.url+=(this.url.includes(`?`)?`&`:`?`)+e),this._query.length=0,this._sort){let e=this.url.indexOf(`?`);if(e>=0){let t=this.url.slice(e+1).split(`&`);typeof this._sort==`function`?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+`?`+t.join(`&`)}}},i.prototype._appendQueryString=()=>{console.warn(`Unsupported`)},i.prototype._timeoutError=function(e,t,n){if(this._aborted)return;let r=Error(`${e+t}ms exceeded`);r.timeout=t,r.code=`ECONNABORTED`,r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},i.prototype._setTimeouts=function(){let e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{e._timeoutError(`Timeout of `,e._timeout,`ETIME`)},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{e._timeoutError(`Response timeout of `,e._responseTimeout,`ETIMEDOUT`)},this._responseTimeout))}})),Qn=r((e=>{let n=t(`http2`),r=t(`stream`),i=t(`net`),a=t(`tls`),{HTTP2_HEADER_PATH:o,HTTP2_HEADER_STATUS:s,HTTP2_HEADER_METHOD:c,HTTP2_HEADER_AUTHORITY:l,HTTP2_HEADER_HOST:u,HTTP2_HEADER_SET_COOKIE:d,NGHTTP2_CANCEL:f}=n.constants;function p(e){return{request(t){return new h(e,t)}}}function m(e){return i.isIP(e)===6?`[${e}]`:e}var h=class extends r{constructor(e,t){super();let r=e===`https:`?443:80,i=t.port||r,a=t.host||`localhost`;delete t.port,delete t.host,this.method=t.method,this.path=t.path,this.protocol=e,this.host=a,delete t.method,delete t.path;let o={...t};t.socketPath&&(o.socketPath=t.socketPath,o.createConnection=this.createUnixConnection.bind(this)),this._headers={};let s=m(a),c=n.connect(`${e}//${s}:${i}`,o);this.setHeader(`host`,`${s}:${i}`),c.on(`error`,e=>this.emit(`error`,e)),this.session=c}createUnixConnection(e,t){switch(this.protocol){case`http:`:return i.connect(t.socketPath);case`https:`:return t.ALPNProtocols=[`h2`],t.servername=this.host,t.allowHalfOpen=!0,a.connect(t.socketPath,t);default:throw Error(`Unsupported protocol`,this.protocol)}}setNoDelay(e){}getFrame(){if(this.frame)return this.frame;let e={[o]:this.path,[c]:this.method},t=this.mapToHttp2Header(this._headers);t=Object.assign(t,e);let n=this.session.request(t);return n.once(`response`,(e,t)=>{e=this.mapToHttpHeader(e),n.headers=e,n.statusCode=e[s],n.status=n.statusCode,this.emit(`response`,n)}),this._headerSent=!0,n.once(`drain`,()=>this.emit(`drain`)),n.on(`error`,e=>this.emit(`error`,e)),n.on(`close`,()=>this.session.close()),this.frame=n,n}mapToHttpHeader(e){let t=Object.keys(e),n={};for(let r of t){let t=e[r];switch(r=r.toLowerCase(),r){case d:t=Array.isArray(t)?t:[t];break;default:break}n[r]=t}return n}mapToHttp2Header(e){let t=Object.keys(e),n={};for(let r of t){let t=e[r];switch(r=r.toLowerCase(),r){case u:r=l,t=/^http:\/\/|^https:\/\//.test(t)?new URL(t).host:t;break;default:break}n[r]=t}return n}setHeader(e,t){this._headers[e.toLowerCase()]=t}getHeader(e){return this._headers[e.toLowerCase()]}write(e,t){return this.getFrame().write(e,t)}pipe(e,t){return this.getFrame().pipe(e,t)}end(e){this.getFrame().end(e)}abort(e){this.getFrame().close(f),this.session.destroy()}};e.setProtocol=p})),$n=r((e=>{let n=t(`zlib`),{isGzipOrDeflateEncoding:r,isBrotliEncoding:i}=Xn();e.chooseDecompresser=e=>{let t;if(r(e))t=n.createUnzip();else if(i(e))t=n.createBrotliDecompress();else throw Error(`unknown content-encoding`);return t}})),er=r((e=>{let{StringDecoder:n}=t(`string_decoder`),r=t(`stream`),{chooseDecompresser:i}=$n();e.decompress=(e,t)=>{let a=i(t),o=new r,s;o.req=e,a.on(`error`,e=>{if(e&&e.code===`Z_BUF_ERROR`){o.emit(`end`);return}o.emit(`error`,e)}),t.pipe(a),t.setEncoding=e=>{s=new n(e)},a.on(`data`,e=>{if(s){let t=s.write(e);t.length>0&&o.emit(`data`,t)}else o.emit(`data`,e)}),a.on(`end`,()=>{o.emit(`end`)});let c=t.on;t.on=function(e,n){return e===`data`||e===`end`?o.on(e,n.bind(t)):(e===`error`&&o.on(e,n.bind(t)),c.call(t,e,n)),this}}})),tr=r(((e,t)=>{let n=Xn();t.exports=r;function r(){}r.prototype.get=function(e){return this.header[e.toLowerCase()]},r.prototype._setHeaderProperties=function(e){let t=e[`content-type`]||``;this.type=n.type(t);let r=n.params(t);for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&(this[e]=r[e]);this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch{}},r.prototype._setStatusProperties=function(e){let t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=t===1,this.ok=t===2,this.redirect=t===3,this.clientError=t===4,this.serverError=t===5,this.error=t===4||t===5?this.toError():!1,this.created=e===201,this.accepted=e===202,this.noContent=e===204,this.badRequest=e===400,this.unauthorized=e===401,this.notAcceptable=e===406,this.forbidden=e===403,this.notFound=e===404,this.unprocessableEntity=e===422}})),nr=r(((e,n)=>{let r=t(`util`),i=t(`stream`),a=tr(),{mixin:o}=Xn();n.exports=s;function s(e){i.call(this),this.res=e.res;let{res:t}=this;this.request=e,this.req=e.req,this.text=t.text,this.files=t.files||{},this.buffered=e._resBuffered,this.headers=t.headers,this.header=this.headers,this._setStatusProperties(t.statusCode),this._setHeaderProperties(this.header),this.setEncoding=t.setEncoding.bind(t),t.on(`data`,this.emit.bind(this,`data`)),t.on(`end`,this.emit.bind(this,`end`)),t.on(`close`,this.emit.bind(this,`close`)),t.on(`error`,this.emit.bind(this,`error`))}Object.defineProperty(s.prototype,`body`,{get(){return this._body===void 0?this.res.body===void 0?{}:this.res.body:this._body},set(e){this._body=e}}),r.inherits(s,i),o(s.prototype,a.prototype),s.prototype.destroy=function(e){this.res.destroy(e)},s.prototype.pause=function(){this.res.pause()},s.prototype.resume=function(){this.res.resume()},s.prototype.toError=function(){let{req:e}=this,{method:t}=e,{path:n}=e,r=`cannot ${t} ${n} (${this.status})`,i=Error(r);return i.status=this.status,i.text=this.text,i.method=t,i.path=n,i},s.prototype.setStatusProperties=function(e){return console.warn(`In superagent 2.x setStatusProperties is a private method`),this._setStatusProperties(e)},s.prototype.toJSON=function(){return{req:this.request.toJSON(),header:this.header,status:this.status,text:this.text}}})),rr=r(((e,t)=>{let n=[`use`,`on`,`once`,`set`,`query`,`type`,`accept`,`auth`,`withCredentials`,`sortQuery`,`retry`,`ok`,`redirects`,`timeout`,`buffer`,`serialize`,`parse`,`ca`,`key`,`pfx`,`cert`,`disableTLSCerts`];var r=class{constructor(){this._defaults=[]}_setDefaults(e){for(let t of this._defaults)e[t.fn](...t.args)}};for(let e of n)r.prototype[e]=function(...t){return this._defaults.push({fn:e,args:t}),this};t.exports=r})),ir=r(((e,t)=>{let{CookieJar:n}=Jn(),{CookieAccessInfo:r}=Jn(),i=ft(),a=ur(),o=rr();var s=class extends o{constructor(e){super(),this.jar=new n,e&&(e.ca&&this.ca(e.ca),e.key&&this.key(e.key),e.pfx&&this.pfx(e.pfx),e.cert&&this.cert(e.cert),e.rejectUnauthorized===!1&&this.disableTLSCerts())}_saveCookies(e){let t=e.headers[`set-cookie`];if(t){let n=new URL(e.request?.url||``);this.jar.setCookies(t,n.hostname,n.pathname)}}_attachCookies(e){let t=new URL(e.url),n=new r(t.hostname,t.pathname,t.protocol===`https:`);e.cookies=this.jar.getCookies(n).toValueString()}};for(let e of i){let t=e.toUpperCase();t!==`QUERY`&&(s.prototype[e]=function(e,n){let r=new a.Request(t,e);return r.on(`response`,this._saveCookies.bind(this)),r.on(`redirect`,this._saveCookies.bind(this)),r.on(`redirect`,this._attachCookies.bind(this,r)),this._setDefaults(r),this._attachCookies(r),n&&r.end(n),r})}s.prototype.del=s.prototype.delete,t.exports=new Proxy(s,{apply(e,t,n){return new e(...n)}})})),ar=r(((e,t)=>{let n=an();t.exports=(e,t)=>{e.text=``,e.setEncoding(`ascii`),e.on(`data`,t=>{e.text+=t}),e.on(`end`,()=>{try{t(null,n.parse(e.text))}catch(e){t(e)}})}})),or=r(((e,t)=>{t.exports=function(e,t){e.text=``,e.setEncoding(`utf8`),e.on(`data`,t=>{e.text+=t}),e.on(`end`,()=>{let n,r;try{n=e.text&&JSON.parse(e.text)}catch(t){r=t,r.rawResponse=e.text||null,r.statusCode=e.statusCode}finally{t(r,n)}})}})),sr=r(((e,t)=>{t.exports=(e,t)=>{e.text=``,e.setEncoding(`utf8`),e.on(`data`,t=>{e.text+=t}),e.on(`end`,t)}})),cr=r(((e,t)=>{t.exports=(e,t)=>{let n=[];e.on(`data`,e=>{n.push(e)}),e.on(`end`,()=>{t(null,Buffer.concat(n))})}})),lr=r((e=>{e[`application/x-www-form-urlencoded`]=ar(),e[`application/json`]=or(),e.text=sr(),e[`application/json-seq`]=e.text;let t=cr();e[`application/octet-stream`]=t,e[`application/pdf`]=t,e.image=t})),ur=r(((e,n)=>{let{format:r}=t(`url`),i=t(`stream`),a=t(`https`),o=t(`http`),s=t(`fs`);t(`zlib`);let c=t(`util`),l=an(),u=ln(),d=ft(),f=On(),p=Bn(),m=qn()(`superagent`),h=Jn(),g=Yn(),_=Xn(),v=Zn(),y=Qn(),{decompress:b}=er(),x=nr(),{mixin:S,hasOwn:C,isBrotliEncoding:w,isGzipOrDeflateEncoding:T}=_,{chooseDecompresser:E}=$n();function D(t,n){return typeof n==`function`?new e.Request(`GET`,t).end(n):arguments.length===1?new e.Request(`GET`,t):new e.Request(t,n)}n.exports=D,e=n.exports,e.Request=A,e.agent=ir();function O(){}e.Response=x,u.define({"application/x-www-form-urlencoded":[`form`,`urlencoded`,`form-data`]},!0),e.protocols={"http:":o,"https:":a,"http2:":y},e.serialize={"application/x-www-form-urlencoded":e=>l.stringify(e,{indices:!1,strictNullHandling:!0}),"application/json":g},e.parse=lr(),e.buffer={};function k(e){e._header={},e.header={}}function A(e,t){i.call(this),typeof t!=`string`&&(t=r(t)),this._enableHttp2=!!process.env.HTTP2_TEST,this._agent=!1,this._formData=null,this.method=e,this.url=t,k(this),this.writable=!0,this._redirects=0,this.redirects(e===`HEAD`?0:5),this.cookies=``,this.qs={},this._query=[],this.qsRaw=this._query,this._redirectList=[],this._streamRequest=!1,this._lookup=void 0,this.once(`end`,this.clearTimeout.bind(this))}c.inherits(A,i),S(A.prototype,v.prototype),A.prototype.http2=function(t){if(e.protocols[`http2:`]===void 0)throw Error(`superagent: this version of Node.js does not support http2`);return this._enableHttp2=t===void 0?!0:t,this},A.prototype.attach=function(e,t,n){if(t){if(this._data)throw Error(`superagent can't mix .send() and .attach()`);let r=n||{};typeof n==`string`&&(r={filename:n}),typeof t==`string`?(r.filename||=t,m("creating `fs.ReadStream` instance for file: %s",t),t=s.createReadStream(t),t.on(`error`,e=>{this._getFormData().emit(`error`,e)})):!r.filename&&t.path&&(r.filename=t.path),this._getFormData().append(e,t,r)}return this},A.prototype._getFormData=function(){return this._formData||(this._formData=new f,this._formData.on(`error`,e=>{m(`FormData error`,e),!this.called&&(this.callback(e),this.abort())})),this._formData},A.prototype.agent=function(e){return arguments.length===0?this._agent:(this._agent=e,this)},A.prototype.lookup=function(e){return arguments.length===0?this._lookup:(this._lookup=e,this)},A.prototype.type=function(e){return this.set(`Content-Type`,e.includes(`/`)?e:u.getType(e))},A.prototype.accept=function(e){return this.set(`Accept`,e.includes(`/`)?e:u.getType(e))},A.prototype.query=function(e){return typeof e==`string`?this._query.push(e):Object.assign(this.qs,e),this},A.prototype.write=function(e,t){let n=this.request();return this._streamRequest||=!0,n.write(e,t)},A.prototype.pipe=function(e,t){return this.piped=!0,this.buffer(!1),this.end(),this._pipeContinue(e,t)},A.prototype._pipeContinue=function(e,t){return this.req.once(`response`,n=>{if(P(n.statusCode)&&this._redirects++!==this._maxRedirects)return this._redirect(n)===this?this._pipeContinue(e,t):void 0;if(this.res=n,this._emitResponse(),!this._aborted)if(this._shouldDecompress(n)){let r=E(n);r.on(`error`,t=>{if(t&&t.code===`Z_BUF_ERROR`){e.emit(`end`);return}e.emit(`error`,t)}),n.pipe(r).pipe(e,t),r.once(`end`,()=>this.emit(`end`))}else n.pipe(e,t),n.once(`end`,()=>this.emit(`end`))}),e},A.prototype.buffer=function(e){return this._buffer=e!==!1,this},A.prototype._redirect=function(e){let t=e.headers.location;if(!t)return this.callback(Error(`No location header for redirect`),e);m(`redirect %s -> %s`,this.url,t),t=new URL(t,this.url).href,e.resume();let n=this.req.getHeaders?this.req.getHeaders():this.req._headers,r=new URL(t).host!==new URL(this.url).host;return(e.statusCode===301||e.statusCode===302)&&(n=_.cleanHeader(n,r),this.method=this.method===`HEAD`?`HEAD`:`GET`,this._data=null),e.statusCode===303&&(n=_.cleanHeader(n,r),this.method=`GET`,this._data=null),delete n.host,delete this.req,delete this._formData,k(this),this.res=e,this._endCalled=!1,this.url=t,this.qs={},this._query.length=0,this.set(n),this._emitRedirect(),this._redirectList.push(this.url),this.end(this._callback),this},A.prototype.auth=function(e,t,n){return arguments.length===1&&(t=``),typeof t==`object`&&t&&(n=t,t=``),n||={type:`basic`},this._auth(e,t,n,e=>Buffer.from(e).toString(`base64`))},A.prototype.ca=function(e){return this._ca=e,this},A.prototype.key=function(e){return this._key=e,this},A.prototype.pfx=function(e){return typeof e==`object`&&!Buffer.isBuffer(e)?(this._pfx=e.pfx,this._passphrase=e.passphrase):this._pfx=e,this},A.prototype.cert=function(e){return this._cert=e,this},A.prototype.disableTLSCerts=function(){return this._disableTLSCerts=!0,this},A.prototype.request=function(){if(this.req)return this.req;let t={};try{let e=l.stringify(this.qs,{indices:!1,strictNullHandling:!0});e&&(this.qs={},this._query.push(e)),this._finalizeQueryString()}catch(e){return this.emit(`error`,e)}let{url:n}=this,r=this._retries;n.indexOf(`http`)!==0&&(n=`http://${n}`);let i=new URL(n),{protocol:a}=i,o=`${i.pathname}${i.search}`;if(/^https?\+unix:/.test(a)===!0&&(a=`${a.split(`+`)[0]}:`,t.socketPath=i.hostname.replace(/%2F/g,`/`),i.host=``,i.hostname=``),this._connectOverride){let{hostname:e}=i,t=e in this._connectOverride?this._connectOverride[e]:this._connectOverride[`*`];if(t){this._header.host||this.set(`host`,i.host);let e,n;typeof t==`object`?(e=t.host,n=t.port):(e=t,n=i.port),i.host=/:/.test(e)?`[${e}]`:e,n&&(i.host+=`:${n}`,i.port=n),i.hostname=e}}t.method=this.method,t.port=i.port,t.path=o,t.host=_.normalizeHostname(i.hostname),t.ca=this._ca,t.key=this._key,t.pfx=this._pfx,t.cert=this._cert,t.passphrase=this._passphrase,t.agent=this._agent,t.lookup=this._lookup,t.rejectUnauthorized=typeof this._disableTLSCerts==`boolean`?!this._disableTLSCerts:process.env.NODE_TLS_REJECT_UNAUTHORIZED!==`0`,this._header.host&&(t.servername=this._header.host.replace(/:\d+$/,``)),this._trustLocalhost&&/^(?:localhost|127\.0\.0\.\d+|(0*:)+:0*1)$/.test(i.hostname)&&(t.rejectUnauthorized=!1),this.req=(this._enableHttp2?e.protocols[`http2:`].setProtocol(a):e.protocols[a]).request(t);let{req:s}=this;for(let e in s.setNoDelay(!0),t.method!==`HEAD`&&s.setHeader(`Accept-Encoding`,`gzip, deflate`),this.protocol=a,this.host=i.host,s.once(`drain`,()=>{this.emit(`drain`)}),s.on(`error`,e=>{this._aborted||this._retries===r&&(this.response||this.callback(e))}),(i.username||i.password)&&this.auth(i.username,i.password),this.username&&this.password&&this.auth(this.username,this.password),this.header)C(this.header,e)&&s.setHeader(e,this.header[e]);if(this.cookies)if(C(this._header,`cookie`)){let e=new h.CookieJar;e.setCookies(this._header.cookie.split(`; `)),e.setCookies(this.cookies.split(`; `)),s.setHeader(`Cookie`,e.getCookies(h.CookieAccessInfo.All).toValueString())}else s.setHeader(`Cookie`,this.cookies);return s},A.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();let n=this._callback||O;if(this.clearTimeout(),this.called)return console.warn(`superagent: double callback bug`);if(this.called=!0,!e)try{if(!this._isResponseOK(t)){let n=`Unsuccessful HTTP response`;t&&(n=o.STATUS_CODES[t.status]||n),e=Error(n),e.status=t?t.status:void 0}}catch(n){e=n,e.status=e.status||(t?t.status:void 0)}if(!e)return n(null,t);e.response=t,this._maxRetries&&(e.retries=this._retries-1),e&&this.listeners(`error`).length>0&&this.emit(`error`,e),n(e,t)},A.prototype._isHost=function(e){return Buffer.isBuffer(e)||e instanceof i||e instanceof f},A.prototype._emitResponse=function(e,t){let n=new x(this);return this.response=n,n.redirects=this._redirectList,e!==void 0&&(n.body=e),n.files=t,this._endCalled&&(n.pipe=function(){throw Error(`end() has already been called, so it's too late to start piping`)}),this.emit(`response`,n),n},A.prototype._emitRedirect=function(){let e=new x(this);e.redirects=this._redirectList,this.emit(`redirect`,e)},A.prototype.end=function(e){if(this.request(),m(`%s %s`,this.method,this.url),this._endCalled)throw Error(`.end() was called twice. This is not supported in superagent`);this._endCalled=!0,this._callback=e||O,this._end()},A.prototype._end=function(){if(this._aborted)return this.callback(Error(`The request has been aborted even before .end() was called`));let t=this._data,{req:n}=this,{method:r}=this;if(this._setTimeouts(),r!==`HEAD`&&!n._headerSent){if(typeof t!=`string`){let r=n.getHeader(`Content-Type`);r&&=r.split(`;`)[0];let i=this._serializer||e.serialize[r];!i&&N(r)&&(i=e.serialize[`application/json`]),i&&(t=i(t))}t&&!n.getHeader(`Content-Length`)&&n.setHeader(`Content-Length`,Buffer.isBuffer(t)?t.length:Buffer.byteLength(t))}n.once(`response`,t=>{if(m(`%s %s -> %s`,this.method,this.url,t.statusCode),this._responseTimeoutTimer&&clearTimeout(this._responseTimeoutTimer),this.piped)return;let r=this._maxRedirects,a=_.type(t.headers[`content-type`]||``)||`text/plain`,o=a.split(`/`)[0];o&&=o.toLowerCase().trim();let s=o===`multipart`,c=P(t.statusCode),l=this._responseType;if(this.res=t,c&&this._redirects++!==r)return this._redirect(t);if(this.method===`HEAD`){this.emit(`end`),this.callback(null,this._emitResponse());return}this._shouldDecompress(t)&&b(n,t);let u=this._buffer;u===void 0&&a in e.buffer&&(u=!!e.buffer[a]);let d=this._parser;if(u===void 0&&d&&(console.warn("A custom superagent parser has been set, but buffering strategy for the parser hasn't been configured. Call `req.buffer(true or false)` or set `superagent.buffer[mime] = true or false`"),u=!0),!d)if(l)d=e.parse.image,u=!0;else if(s){let e=p.formidable();d=(t,n)=>{let r=new i.PassThrough;r.method=this.method||`POST`,r.url=this.url||`/`,r.httpVersion=t.httpVersion||`1.1`,r.headers=t.headers||{},r.socket=t.socket||{readable:!0},t.pipe(r),e.parse(r,(e,t,r)=>{if(e)return n(e);let i={};if(t)for(let e in t){let n=t[e];i[e]=Array.isArray(n)&&n.length===1?n[0]:n}let a={};if(r)for(let e in r){let t=r[e];a[e]=Array.isArray(t)&&t.length===1?t[0]:t}n(null,i,a)})},u=!0}else M(a)?(d=e.parse.image,u=!0):e.parse[a]?d=e.parse[a]:o===`text`?(d=e.parse.text,u=u!==!1):N(a)?(d=e.parse[`application/json`],u=u!==!1):u?d=e.parse.text:u===void 0&&(d=e.parse.image,u=!0);(u===void 0&&j(a)||N(a))&&(u=!0),this._resBuffered=u;let f=!1;if(u){let e=this._maxResponseSize||2e8;t.on(`data`,n=>{if(e-=n.byteLength||n.length>0?n.length:0,e<0){let e=Error(`Maximum response size reached`);e.code=`ETOOLARGE`,f=!1,t.destroy(e),this.callback(e,null)}})}if(d)try{f=u,d(t,(e,t,n)=>{if(!this.timedout){if(e&&!this._aborted)return this.callback(e);f&&(this.emit(`end`),this.callback(null,this._emitResponse(t,n)))}})}catch(e){this.callback(e);return}if(this.res=t,!u){if(m(`unbuffered %s %s`,this.method,this.url),this.callback(null,this._emitResponse()),s)return;t.once(`end`,()=>{m(`end %s %s`,this.method,this.url),this.emit(`end`)});return}t.once(`error`,e=>{f=!1,this.callback(e,null)}),f||t.once(`end`,()=>{m(`end %s %s`,this.method,this.url),this.emit(`end`),this.callback(null,this._emitResponse())})}),this.emit(`request`,this);let a=()=>{let e=n.getHeader(`Content-Length`),t=0,r=new i.Transform;return r._transform=(n,r,i)=>{t+=n.length,this.emit(`progress`,{direction:`upload`,lengthComputable:!0,loaded:t,total:e}),i(null,n)},r},o=e=>{let t=16*1024,n=new i.Readable,r=e.length,a=r%t,o=r-a;for(let r=0;r<o;r+=t){let i=e.slice(r,r+t);n.push(i)}if(a>0){let t=e.slice(-a);n.push(t)}return n.push(null),n},s=this._formData;if(s){let e=s.getHeaders();for(let t in e)C(e,t)&&(m(`setting FormData header: "%s: %s"`,t,e[t]),n.setHeader(t,e[t]));s.getLength((e,t)=>{e&&m(`formData.getLength had error`,e,t),m(`got FormData Content-Length: %s`,t),typeof t==`number`&&n.setHeader(`Content-Length`,t),s.pipe(a()).pipe(n)})}else Buffer.isBuffer(t)?o(t).pipe(a()).pipe(n):n.end(t)},A.prototype._shouldDecompress=e=>F(e)&&(T(e)||w(e)),A.prototype.connect=function(e){return typeof e==`string`?this._connectOverride={"*":e}:typeof e==`object`?this._connectOverride=e:this._connectOverride=void 0,this},A.prototype.trustLocalhost=function(e){return this._trustLocalhost=e===void 0?!0:e,this},d.includes(`del`)||(d=[...d],d.push(`del`));for(let e of d){let t=e;e=e===`del`?`delete`:e,e=e.toUpperCase(),D[t]=(t,n,r)=>{let i=D(e,t);return typeof n==`function`&&(r=n,n=null),n&&(e===`GET`||e===`HEAD`?i.query(n):i.send(n)),r&&i.end(r),i}}function j(e){let t=e.split(`/`),n=t[0];n&&=n.toLowerCase().trim();let r=t[1];return r&&=r.toLowerCase().trim(),n===`text`||r===`x-www-form-urlencoded`}function M(e){let[t,n]=e.split(`/`);return t&&=t.toLowerCase().trim(),n&&=n.toLowerCase().trim(),[`audio`,`font`,`image`,`video`].includes(t)||[`gz`,`gzip`].includes(n)}function N(e){return/[/+]json($|[^-\w])/i.test(e)}function P(e){return[301,302,303,305,307,308].includes(e)}function F(e){return!(e.statusCode===204||e.statusCode===304||e.headers[`content-length`]===`0`)}})),dr=r(((e,n)=>{let{inspect:r}=t(`util`),i=t(`http`),{STATUS_CODES:a}=t(`http`),{Server:o}=t(`tls`),{deepStrictEqual:s}=t(`assert`),{Request:c}=ur(),l;try{l=t(`http2`)}catch{}var u=class extends c{constructor(e,t,n,r){super(t.toUpperCase(),n),typeof e==`function`&&(e=r?l.createServer(e):i.createServer(e)),this.redirects(0),this.buffer(),this.app=e,this._asserts=[],this.url=typeof e==`string`?e+n:this.serverAddress(e,n)}serverAddress(e,t){e.address()||(this._server=e.listen(0));let n=e.address().port;return(e instanceof o?`https`:`http`)+`://127.0.0.1:`+n+t}expect(e,t,n){return typeof e==`function`?(this._asserts.push(d(e)),this):(typeof t==`function`&&this.end(t),typeof n==`function`&&this.end(n),typeof e==`number`?(this._asserts.push(d(this._assertStatus.bind(this,e))),typeof t!=`function`&&arguments.length>1&&this._asserts.push(d(this._assertBody.bind(this,t))),this):Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`number`)?(this._asserts.push(d(this._assertStatusArray.bind(this,e))),this):typeof t==`string`||typeof t==`number`||t instanceof RegExp?(this._asserts.push(d(this._assertHeader.bind(this,{name:``+e,value:t}))),this):(this._asserts.push(d(this._assertBody.bind(this,e))),this))}end(e){let t=this._server;return super.end((n,r)=>{let i=()=>{this.assert(n,r,e)};if(t&&t._handle)return t.close(e=>{if(e&&e.code===`ERR_SERVER_NOT_RUNNING`||e)return i();i()});i()}),this}assert(e,t,n){let r,i={ECONNREFUSED:`Connection refused`,ECONNRESET:`Connection reset by peer`,EPIPE:`Broken pipe`,ETIMEDOUT:`Operation timed out`};!t&&e&&(r=e instanceof Error&&e.syscall===`connect`&&Object.getOwnPropertyNames(i).indexOf(e.code)>=0?Error(e.code+`: `+i[e.code]):e);for(let e=0;e<this._asserts.length&&!r;e+=1)r=this._assertFunction(this._asserts[e],t);!r&&e instanceof Error&&(!t||e.status!==t.status)&&(r=e),n&&n.call(this,r||null,t)}bearer(e){return this.set(`Authorization`,`Bearer ${e}`),this}bearer(e){return this.set(`Authorization`,`Bearer ${e}`),this}_assertBody(e,t){let n=e instanceof RegExp;if(typeof e==`object`&&!n)try{s(e,t.body)}catch{let n=r(e),i=r(t.body);return f(`expected `+n+` response body, got `+i,e,t.body)}else if(e!==t.text){let i=r(e),a=r(t.text);if(n){if(!e.test(t.text))return f(`expected body `+a+` to match `+e,e,t.body)}else return f(`expected `+i+` response body, got `+a,e,t.body)}}_assertHeader(e,t){let n=e.name,r=t.header[n.toLowerCase()],i=e.value;if(r===void 0)return Error(`expected "`+n+`" header field`);if(!(Array.isArray(r)&&r.toString()===i||i===r))if(i instanceof RegExp){if(!i.test(r))return Error(`expected "`+n+`" matching `+i+`, got "`+r+`"`)}else return Error(`expected "`+n+`" of "`+i+`", got "`+r+`"`)}_assertStatus(e,t){if(t.status!==e){let n=a[e],r=a[t.status];return Error(`expected `+e+` "`+n+`", got `+t.status+` "`+r+`"`)}}_assertStatusArray(e,t){if(!e.includes(t.status)){let n=a[t.status],r=e.join(`, `);return Error(`expected one of "`+r+`", got `+t.status+` "`+n+`"`)}}_assertFunction(e,t){let n;try{n=e(t)}catch(e){n=e}if(n instanceof Error)return n}};function d(e){let t=Error().stack.split(`
|
|
24
24
|
`).slice(3);return function(n){let r,i;try{i=e(n)}catch(e){i=e}return i instanceof Error&&i.stack&&(r=i.stack.replace(i.message,``).split(`
|
|
25
25
|
`).slice(1),i.stack=[i.toString()].concat(t,`----`,r).join(`
|
|
26
|
-
`)),i}}function f(e,t,n){let r=Error(e);return r.expected=t,r.actual=n,r.showDiff=!0,r}n.exports=u})),fr=r(((e,n)=>{let{agent:r}=ur(),i=ft(),a=t(`http`),o;try{o=t(`http2`)}catch{}let s=dr();function c(e,t={}){if(!(this instanceof c))return new c(e,t);let n=new r(t);if(Object.assign(this,n),this._options=t,typeof e==`function`)if(t.http2){if(!o)throw Error(`supertest: this version of Node.js does not support http2`);e=o.createServer(e)}else e=a.createServer(e);this.app=e}Object.setPrototypeOf(c.prototype,r.prototype);let l=r.prototype.query;c.prototype.host=function(e){return this._host=e,this},i.forEach(function(e){e!==`query`&&(c.prototype[e]=function(t,n){let r=new s(this.app,e.toUpperCase(),t);return this._options.http2&&r.http2(),this._host&&r.set(`host`,this._host),r.on(`response`,this._saveCookies.bind(this)),r.on(`redirect`,this._saveCookies.bind(this)),r.on(`redirect`,this._attachCookies.bind(this,r)),this._setDefaults(r),this._attachCookies(r),r})}),c.prototype.query=l,c.prototype.del=c.prototype.delete,n.exports=c})),pr=r(((e,n)=>{let r=ft(),i;try{i=t(`http2`)}catch{}let a=dr(),o=fr();n.exports=function(e,t={}){let n={};if(typeof e==`function`&&t.http2&&!i)throw Error(`supertest: this version of Node.js does not support http2`);return r.forEach(function(r){n[r]=function(n){var i=new a(e,r,n,t.http2);return t.http2&&i.http2(),i}}),n.del=n.delete,n},n.exports.Test=a,n.exports.agent=o})),mr=class{constructor(e,t){this.table=e,this.ignoreColumnAlias=t}static[
|
|
27
|
-
params: ${n}`),this.query=t,this.params=n,this.cause=r,Error.captureStackTrace(this,e),r&&(this.cause=r)}static[b]=`DrizzleQueryError`},Tr=class extends Cr{static[b]=`TransactionRollbackError`;constructor(){super({message:`Rollback`})}},Er=class{static[b]=`ConsoleLogWriter`;write(e){console.log(e)}},Dr=class{static[b]=`DefaultLogger`;writer;constructor(e){this.writer=e?.writer??new Er}logQuery(e,t){let n=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),r=n.length?` -- params: [${n.join(`, `)}]`:``;this.writer.write(`Query: ${e}${r}`)}},Or=class{static[b]=`NoopLogger`;logQuery(){}},kr=class{static[b]=`QueryPromise`;[Symbol.toStringTag]=`QueryPromise`;catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}then(e,t){return this.execute().then(e,t)}};function Ar(e){return _`${e} asc`}function jr(e){return _`${e} desc`}var Mr=class{constructor(e,t){this.targetTableName=t,this.targetTable=e}static[b]=`RelationV2`;fieldName;sourceColumns;targetColumns;alias;where;sourceTable;targetTable;through;throughTable;isReversed;sourceColumnTableNames=[];targetColumnTableNames=[]},Nr=class extends Mr{static[b]=`OneV2`;relationType=`one`;optional;constructor(e,t,n,r){super(t,n),this.alias=r?.alias,this.where=r?.where,r?.from&&(this.sourceColumns=(Array.isArray(r.from)?r.from:[r.from]).map(t=>(this.throughTable??=t._.through?e[t._.through._.tableName]:void 0,this.sourceColumnTableNames.push(t._.tableName),t._.column))),r?.to&&(this.targetColumns=(Array.isArray(r.to)?r.to:[r.to]).map(t=>(this.throughTable??=t._.through?e[t._.through._.tableName]:void 0,this.targetColumnTableNames.push(t._.tableName),t._.column))),this.throughTable&&(this.through={source:(Array.isArray(r?.from)?r.from:r?.from?[r.from]:[]).map(e=>e._.through),target:(Array.isArray(r?.to)?r.to:r?.to?[r.to]:[]).map(e=>e._.through)}),this.optional=r?.optional??!0}};const Pr={and:q,between:oe,eq:he,exists:K,gt:W,gte:fe,ilike:ve,inArray:G,arrayContains:_e,arrayContained:me,arrayOverlaps:de,isNull:ge,isNotNull:ce,like:pe,lt:ue,lte:le,ne:ae,not:ye,notBetween:Se,notExists:se,notLike:re,notIlike:xe,notInArray:ie,or:be,sql:_},Fr={sql:_,asc:Ar,desc:jr};function Ir(e,t,n=e=>e,r=!1,i=!1,a){for(let o of t){if(o.selection){let t=`${a?`${a}.`:``}${o.key}`;if(e[o.key]===null||r&&(e[o.key]=JSON.parse(e[o.key]),e[o.key]===null))continue;if(i&&typeof e[o.key]==`string`&&(e[o.key]=JSON.parse(e[o.key])),o.isArray){for(let r of e[o.key])Ir(r,o.selection,n,!1,i,t);continue}Ir(e[o.key],o.selection,n,!1,i,t);continue}let t=o.field,l=n(e[o.key]);if(l===null)continue;let u;u=S(t,f)?t:S(t,U)?t.decoder:S(t,U.Aliased)?t.sql.decoder:S(t,M)||S(t,s)?c:t.getSQL().decoder,e[o.key]=`mapFromJsonValue`in u?u.mapFromJsonValue(l):u.mapFromDriverValue(l)}return e}function Lr(e,t){let n=e[h][t];return n?S(n,f)?n:S(n,U.Aliased)?_`${e}.${_.identifier(n.fieldAlias)}`:_`${e}.${_.identifier(t)}`:_`${e}.${_.identifier(t)}`}function Rr(e,t){if(typeof t!=`object`||S(t,T))return he(e,t);let n=Object.entries(t);if(!n.length)return;let r=[];for(let[t,i]of n)if(i!==void 0)switch(t){case`NOT`:{let t=Rr(e,i);if(!t)continue;r.push(ye(t));continue}case`OR`:if(!i.length)continue;r.push(be(...i.map(t=>Rr(e,t))));continue;case`AND`:if(!i.length)continue;r.push(q(...i.map(t=>Rr(e,t))));continue;case`isNotNull`:case`isNull`:if(!i)continue;r.push(Pr[t](e));continue;case`in`:r.push(Pr.inArray(e,i));continue;case`notIn`:r.push(Pr.notInArray(e,i));continue;default:r.push(Pr[t](e,i));continue}if(r.length)return q(...r)}function zr(e,t,n={},r={},i,a=0){let o=Object.entries(t);if(!o.length)return;let s=[];for(let[t,c]of o)if(c!==void 0)switch(t){case`RAW`:{let t=typeof c==`function`?c(e,Pr):c.getSQL();s.push(t);continue}case`OR`:if(!c?.length)continue;s.push(be(...c.map(t=>zr(e,t,n,r,i,a))));continue;case`AND`:if(!c?.length)continue;s.push(q(...c.map(t=>zr(e,t,n,r,i,a))));continue;case`NOT`:{if(c===void 0)continue;let t=zr(e,c,n,r,i,a);if(!t)continue;s.push(ye(t));continue}default:{if(e[h][t]){let n=Rr(Lr(e,t),c);n&&s.push(n);continue}let o=n[t];if(!o)throw new Cr({message:`Unknown relational filter field: "${t}"`});let l=_r(o.targetTable,`f${a}`),u=o.throughTable?_r(o.throughTable,`ft${a}`):void 0,d=r[o.targetTableName],{filter:f,joinCondition:p}=Hr(i,o,e,l,u),m=q(f,typeof c==`boolean`?void 0:zr(l,c,d.relations,r,i,a+1)),g=u?_`(select * from ${Ur(l)} inner join ${Ur(u)} on ${p}${_` where ${m}`.if(m)} limit 1)`:_`(select * from ${Ur(l)}${_` where ${m}`.if(m)} limit 1)`;m&&s.push((c?K:se)(g))}}return q(...s)}function Br(e,t){if(typeof t==`function`){let n=t(e,Fr);return S(n,U)?n:Array.isArray(n)?n.length?_.join(n.map(e=>S(e,U)?e:Ar(e)),_`, `):void 0:S(n,f)?Ar(n):void 0}let n=Object.entries(t).filter(([e,t])=>t);if(n.length)return _.join(n.map(([t,n])=>(n===`asc`?Ar:jr)(Lr(e,t))),_`, `)}function Vr(e,t){let n=[],r=[];for(let[i,a]of Object.entries(t)){if(!a)continue;let t=typeof a==`function`?a(e,{sql:Pr.sql}):a,o=_`(${t.getSQL()}) as ${_.identifier(i)}`;o.decoder=t.getSQL().decoder,n.push(o),r.push({key:i,field:o})}return{sql:n.length?_.join(n,_`, `):void 0,selection:r}}function Hr(e,t,n,r,i){if(t.through){let a=t.sourceColumns.map((r,a)=>{let o=t.through.source[a];return he(_`${n}.${_.identifier(e.getColumnCasing(r))}`,_`${i}.${_.identifier(S(o._.column,f)?e.getColumnCasing(o._.column):o._.key)}`)}),o=t.targetColumns.map((n,a)=>{let o=t.through.target[a];return he(_`${i}.${_.identifier(S(o._.column,f)?e.getColumnCasing(o._.column):o._.key)}`,_`${r}.${_.identifier(e.getColumnCasing(n))}`)});return{filter:q(t.where?zr(t.isReversed?n:r,t.where):void 0,...a),joinCondition:q(...o)}}return{filter:q(...t.sourceColumns.map((i,a)=>{let o=t.targetColumns[a];return he(_`${n}.${_.identifier(e.getColumnCasing(i))}`,_`${r}.${_.identifier(e.getColumnCasing(o))}`)}),t.where?zr(t.isReversed?n:r,t.where):void 0)}}function Ur(e){return _`${e[N]?_`${_`${_.identifier(e[g]??``)}.`.if(e[g])}${_.identifier(e[a])} as ${e}`:e}`}var Wr=r((e=>{e.parse=function(e,n){return new t(e,n).parse()};var t=class e{constructor(e,t){this.source=e,this.transform=t||n,this.position=0,this.entries=[],this.recorded=[],this.dimension=0}isEof(){return this.position>=this.source.length}nextCharacter(){var e=this.source[this.position++];return e===`\\`?{value:this.source[this.position++],escaped:!0}:{value:e,escaped:!1}}record(e){this.recorded.push(e)}newEntry(e){var t;(this.recorded.length>0||e)&&(t=this.recorded.join(``),t===`NULL`&&!e&&(t=null),t!==null&&(t=this.transform(t)),this.entries.push(t),this.recorded=[])}consumeDimensions(){if(this.source[0]===`[`)for(;!this.isEof()&&this.nextCharacter().value!==`=`;);}parse(t){var n,r,i;for(this.consumeDimensions();!this.isEof();)if(n=this.nextCharacter(),n.value===`{`&&!i)this.dimension++,this.dimension>1&&(r=new e(this.source.substr(this.position-1),this.transform),this.entries.push(r.parse(!0)),this.position+=r.position-2);else if(n.value===`}`&&!i){if(this.dimension--,!this.dimension&&(this.newEntry(),t))return this.entries}else n.value===`"`&&!n.escaped?(i&&this.newEntry(!0),i=!i):n.value===`,`&&!i?this.newEntry():this.record(n.value);if(this.dimension!==0)throw Error(`array dimension not balanced`);return this.entries}};function n(e){return e}})),Gr=r(((e,t)=>{var n=Wr();t.exports={create:function(e,t){return{parse:function(){return n.parse(e,t)}}}}})),Kr=r(((e,t)=>{var n=/(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/,r=/^(\d{1,})-(\d{2})-(\d{2})( BC)?$/,i=/([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/,a=/^-?infinity$/;t.exports=function(e){if(a.test(e))return Number(e.replace(`i`,`I`));var t=n.exec(e);if(!t)return o(e)||null;var r=!!t[8],i=parseInt(t[1],10);r&&(i=c(i));var u=parseInt(t[2],10)-1,d=t[3],f=parseInt(t[4],10),p=parseInt(t[5],10),m=parseInt(t[6],10),h=t[7];h=h?1e3*parseFloat(h):0;var g,_=s(e);return _==null?(g=new Date(i,u,d,f,p,m,h),l(i)&&g.setFullYear(i)):(g=new Date(Date.UTC(i,u,d,f,p,m,h)),l(i)&&g.setUTCFullYear(i),_!==0&&g.setTime(g.getTime()-_)),g};function o(e){var t=r.exec(e);if(t){var n=parseInt(t[1],10);t[4]&&(n=c(n));var i=parseInt(t[2],10)-1,a=t[3],o=new Date(n,i,a);return l(n)&&o.setFullYear(n),o}}function s(e){if(e.endsWith(`+00`))return 0;var t=i.exec(e.split(` `)[1]);if(t){var n=t[1];if(n===`Z`)return 0;var r=n===`-`?-1:1;return(parseInt(t[2],10)*3600+parseInt(t[3]||0,10)*60+parseInt(t[4]||0,10))*r*1e3}}function c(e){return-(e-1)}function l(e){return e>=0&&e<100}})),qr=r(((e,t)=>{t.exports=r;var n=Object.prototype.hasOwnProperty;function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e}})),Jr=r(((e,t)=>{var n=qr();t.exports=r;function r(e){if(!(this instanceof r))return new r(e);n(this,g(e))}var i=[`seconds`,`minutes`,`hours`,`days`,`months`,`years`];r.prototype.toPostgres=function(){var e=i.filter(this.hasOwnProperty,this);return this.milliseconds&&e.indexOf(`seconds`)<0&&e.push(`seconds`),e.length===0?`0`:e.map(function(e){var t=this[e]||0;return e===`seconds`&&this.milliseconds&&(t=(t+this.milliseconds/1e3).toFixed(6).replace(/\.?0+$/,``)),t+` `+e},this).join(` `)};var a={years:`Y`,months:`M`,days:`D`,hours:`H`,minutes:`M`,seconds:`S`},o=[`years`,`months`,`days`],s=[`hours`,`minutes`,`seconds`];r.prototype.toISOString=r.prototype.toISO=function(){var e=o.map(n,this).join(``),t=s.map(n,this).join(``);return`P`+e+`T`+t;function n(e){var t=this[e]||0;return e===`seconds`&&this.milliseconds&&(t=(t+this.milliseconds/1e3).toFixed(6).replace(/0+$/,``)),t+a[e]}};var c=`([+-]?\\d+)`,l=c+`\\s+years?`,u=c+`\\s+mons?`,d=c+`\\s+days?`,f=new RegExp([l,u,d,`([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?`].map(function(e){return`(`+e+`)?`}).join(`\\s*`)),p={years:2,months:4,days:6,hours:9,minutes:10,seconds:11,milliseconds:12},m=[`hours`,`minutes`,`seconds`,`milliseconds`];function h(e){var t=e+`000000`.slice(e.length);return parseInt(t,10)/1e3}function g(e){if(!e)return{};var t=f.exec(e),n=t[8]===`-`;return Object.keys(p).reduce(function(e,r){var i=t[p[r]];return!i||(i=r===`milliseconds`?h(i):parseInt(i,10),!i)?e:(n&&~m.indexOf(r)&&(i*=-1),e[r]=i,e)},{})}})),Yr=r(((e,t)=>{t.exports=function(e){if(/^\\x/.test(e))return new Buffer(e.substr(2),`hex`);for(var t=``,n=0;n<e.length;)if(e[n]!==`\\`)t+=e[n],++n;else if(/[0-7]{3}/.test(e.substr(n+1,3)))t+=String.fromCharCode(parseInt(e.substr(n+1,3),8)),n+=4;else{for(var r=1;n+r<e.length&&e[n+r]===`\\`;)r++;for(var i=0;i<Math.floor(r/2);++i)t+=`\\`;n+=Math.floor(r/2)*2}return new Buffer(t,`binary`)}})),Xr=r(((e,t)=>{var n=Wr(),r=Gr(),i=Kr(),a=Jr(),o=Yr();function s(e){return function(t){return t===null?t:e(t)}}function c(e){return e===null?e:e===`TRUE`||e===`t`||e===`true`||e===`y`||e===`yes`||e===`on`||e===`1`}function l(e){return e?n.parse(e,c):null}function u(e){return parseInt(e,10)}function d(e){return e?n.parse(e,s(u)):null}function f(e){return e?n.parse(e,s(function(e){return b(e).trim()})):null}var p=function(e){return e?r.create(e,function(e){return e!==null&&(e=S(e)),e}).parse():null},m=function(e){return e?r.create(e,function(e){return e!==null&&(e=parseFloat(e)),e}).parse():null},h=function(e){return e?r.create(e).parse():null},g=function(e){return e?r.create(e,function(e){return e!==null&&(e=i(e)),e}).parse():null},_=function(e){return e?r.create(e,function(e){return e!==null&&(e=a(e)),e}).parse():null},v=function(e){return e?n.parse(e,s(o)):null},y=function(e){return parseInt(e,10)},b=function(e){var t=String(e);return/^\d+$/.test(t)?t:e},x=function(e){return e?n.parse(e,s(JSON.parse)):null},S=function(e){return e[0]===`(`?(e=e.substring(1,e.length-1).split(`,`),{x:parseFloat(e[0]),y:parseFloat(e[1])}):null},C=function(e){if(e[0]!==`<`&&e[1]!==`(`)return null;for(var t=`(`,n=``,r=!1,i=2;i<e.length-1;i++){if(r||(t+=e[i]),e[i]===`)`){r=!0;continue}else if(!r)continue;e[i]!==`,`&&(n+=e[i])}var a=S(t);return a.radius=parseFloat(n),a};t.exports={init:function(e){e(20,b),e(21,y),e(23,y),e(26,y),e(700,parseFloat),e(701,parseFloat),e(16,c),e(1082,i),e(1114,i),e(1184,i),e(600,S),e(651,h),e(718,C),e(1e3,l),e(1001,v),e(1005,d),e(1007,d),e(1028,d),e(1016,f),e(1017,p),e(1021,m),e(1022,m),e(1231,m),e(1014,h),e(1015,h),e(1008,h),e(1009,h),e(1040,h),e(1041,h),e(1115,g),e(1182,g),e(1185,g),e(1186,a),e(1187,_),e(17,o),e(114,JSON.parse.bind(JSON)),e(3802,JSON.parse.bind(JSON)),e(199,x),e(3807,x),e(3907,h),e(2951,h),e(791,h),e(1183,h),e(1270,h)}}})),Zr=r(((e,t)=>{var n=1e6;function r(e){var t=e.readInt32BE(0),r=e.readUInt32BE(4),i=``;t<0&&(t=~t+(r===0),r=~r+1>>>0,i=`-`);var a=``,o=t%n,s,c,l,u,d;if(t=t/n>>>0,s=4294967296*o+r,r=s/n>>>0,c=``+(s-n*r),r===0&&t===0)return i+c+a;for(l=``,u=6-c.length,d=0;d<u;d++)l+=`0`;if(a=l+c+a,o=t%n,t=t/n>>>0,s=4294967296*o+r,r=s/n>>>0,c=``+(s-n*r),r===0&&t===0)return i+c+a;for(l=``,u=6-c.length,d=0;d<u;d++)l+=`0`;if(a=l+c+a,o=t%n,t=t/n>>>0,s=4294967296*o+r,r=s/n>>>0,c=``+(s-n*r),r===0&&t===0)return i+c+a;for(l=``,u=6-c.length,d=0;d<u;d++)l+=`0`;return a=l+c+a,o=t%n,s=4294967296*o+r,c=``+s%n,i+c+a}t.exports=r})),Qr=r(((e,t)=>{var n=Zr(),r=function(e,t,n,r,i){n||=0,r||=!1,i||=function(e,t,n){return e*2**n+t};var a=n>>3,o=function(e){return r?~e&255:e},s=255,c=8-n%8;t<c&&(s=255<<8-t&255,c=t),n&&(s>>=n%8);var l=0;n%8+t>=8&&(l=i(0,o(e[a])&s,c));for(var u=t+n>>3,d=a+1;d<u;d++)l=i(l,o(e[d]),8);var f=(t+n)%8;return f>0&&(l=i(l,o(e[u])>>8-f,f)),l},i=function(e,t,n){var i=2**(n-1)-1,a=r(e,1),o=r(e,n,1);if(o===0)return 0;var s=1,c=r(e,t,n+1,!1,function(e,t,n){e===0&&(e=1);for(var r=1;r<=n;r++)s/=2,(t&1<<n-r)>0&&(e+=s);return e});return o==2**(n+1)-1?c===0?a===0?1/0:-1/0:NaN:(a===0?1:-1)*2**(o-i)*c},a=function(e){return r(e,1)==1?-1*(r(e,15,1,!0)+1):r(e,15,1)},o=function(e){return r(e,1)==1?-1*(r(e,31,1,!0)+1):r(e,31,1)},s=function(e){return i(e,23,8)},c=function(e){return i(e,52,11)},l=function(e){var t=r(e,16,32);if(t==49152)return NaN;for(var n=1e4**r(e,16,16),i=0,a=r(e,16),o=0;o<a;o++)i+=r(e,16,64+16*o)*n,n/=1e4;var s=10**r(e,16,48);return(t===0?1:-1)*Math.round(i*s)/s},u=function(e,t){var n=r(t,1),i=r(t,63,1),a=new Date((n===0?1:-1)*i/1e3+9466848e5);return e||a.setTime(a.getTime()+a.getTimezoneOffset()*6e4),a.usec=i%1e3,a.getMicroSeconds=function(){return this.usec},a.setMicroSeconds=function(e){this.usec=e},a.getUTCMicroSeconds=function(){return this.usec},a},d=function(e){var t=r(e,32);r(e,32,32);for(var n=r(e,32,64),i=96,a=[],o=0;o<t;o++)a[o]=r(e,32,i),i+=32,i+=32;var s=function(t){var n=r(e,32,i);if(i+=32,n==4294967295)return null;var a;if(t==23||t==20)return a=r(e,n*8,i),i+=n*8,a;if(t==25)return a=e.toString(this.encoding,i>>3,(i+=n<<3)>>3),a;console.log(`ERROR: ElementType not implemented: `+t)},c=function(e,t){var n=[],r;if(e.length>1){var i=e.shift();for(r=0;r<i;r++)n[r]=c(e,t);e.unshift(i)}else for(r=0;r<e[0];r++)n[r]=s(t);return n};return c(a,n)},f=function(e){return e.toString(`utf8`)},p=function(e){return e===null?null:r(e,8)>0};t.exports={init:function(e){e(20,n),e(21,a),e(23,o),e(26,o),e(1700,l),e(700,s),e(701,c),e(16,p),e(1114,u.bind(null,!1)),e(1184,u.bind(null,!0)),e(1e3,d),e(1007,d),e(1016,d),e(1008,d),e(1009,d),e(25,f)}}})),$r=r(((e,t)=>{t.exports={BOOL:16,BYTEA:17,CHAR:18,INT8:20,INT2:21,INT4:23,REGPROC:24,TEXT:25,OID:26,TID:27,XID:28,CID:29,JSON:114,XML:142,PG_NODE_TREE:194,SMGR:210,PATH:602,POLYGON:604,CIDR:650,FLOAT4:700,FLOAT8:701,ABSTIME:702,RELTIME:703,TINTERVAL:704,CIRCLE:718,MACADDR8:774,MONEY:790,MACADDR:829,INET:869,ACLITEM:1033,BPCHAR:1042,VARCHAR:1043,DATE:1082,TIME:1083,TIMESTAMP:1114,TIMESTAMPTZ:1184,INTERVAL:1186,TIMETZ:1266,BIT:1560,VARBIT:1562,NUMERIC:1700,REFCURSOR:1790,REGPROCEDURE:2202,REGOPER:2203,REGOPERATOR:2204,REGCLASS:2205,REGTYPE:2206,UUID:2950,TXID_SNAPSHOT:2970,PG_LSN:3220,PG_NDISTINCT:3361,PG_DEPENDENCIES:3402,TSVECTOR:3614,TSQUERY:3615,GTSVECTOR:3642,REGCONFIG:3734,REGDICTIONARY:3769,JSONB:3802,REGNAMESPACE:4089,REGROLE:4096}})),ei=r((e=>{var t=Xr(),n=Qr(),r=Gr(),i=$r();e.getTypeParser=s,e.setTypeParser=c,e.arrayParser=r,e.builtins=i;var a={text:{},binary:{}};function o(e){return String(e)}function s(e,t){return t||=`text`,a[t]&&a[t][e]||o}function c(e,t,n){typeof t==`function`&&(n=t,t=`text`),a[t][e]=n}t.init(function(e,t){a.text[e]=t}),n.init(function(e,t){a.binary[e]=t})})),ti=r(((e,t)=>{t.exports={host:`localhost`,user:process.platform===`win32`?process.env.USERNAME:process.env.USER,database:void 0,password:null,connectionString:void 0,port:5432,rows:0,binary:!1,max:10,idleTimeoutMillis:3e4,client_encoding:``,ssl:!1,application_name:void 0,fallback_application_name:void 0,options:void 0,parseInputDatesAsUTC:!1,statement_timeout:!1,lock_timeout:!1,idle_in_transaction_session_timeout:!1,query_timeout:!1,connect_timeout:0,keepalives:1,keepalives_idle:0};let n=ei(),r=n.getTypeParser(20,`text`),i=n.getTypeParser(1016,`text`);t.exports.__defineSetter__(`parseInt8`,function(e){n.setTypeParser(20,`text`,e?n.getTypeParser(23,`text`):r),n.setTypeParser(1016,`text`,e?n.getTypeParser(1007,`text`):i)})})),ni=r(((e,n)=>{let r=ti(),i=t(`util`),{isDate:a}=i.types||i;function o(e){return`"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)+`"`}function s(e){let t=`{`;for(let n=0;n<e.length;n++)if(n>0&&(t+=`,`),e[n]===null||e[n]===void 0)t+=`NULL`;else if(Array.isArray(e[n]))t+=s(e[n]);else if(ArrayBuffer.isView(e[n])){let r=e[n];if(!(r instanceof Buffer)){let e=Buffer.from(r.buffer,r.byteOffset,r.byteLength);r=e.length===r.byteLength?e:e.slice(r.byteOffset,r.byteOffset+r.byteLength)}t+=`\\\\x`+r.toString(`hex`)}else t+=o(c(e[n]));return t+=`}`,t}let c=function(e,t){if(e==null)return null;if(typeof e==`object`){if(e instanceof Buffer)return e;if(ArrayBuffer.isView(e)){let t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.length===e.byteLength?t:t.slice(e.byteOffset,e.byteOffset+e.byteLength)}return a(e)?r.parseInputDatesAsUTC?d(e):u(e):Array.isArray(e)?s(e):l(e,t)}return e.toString()};function l(e,t){if(e&&typeof e.toPostgres==`function`){if(t||=[],t.indexOf(e)!==-1)throw Error(`circular reference detected while preparing "`+e+`" for query`);return t.push(e),c(e.toPostgres(c),t)}return JSON.stringify(e)}function u(e){let t=-e.getTimezoneOffset(),n=e.getFullYear(),r=n<1;r&&(n=Math.abs(n)+1);let i=String(n).padStart(4,`0`)+`-`+String(e.getMonth()+1).padStart(2,`0`)+`-`+String(e.getDate()).padStart(2,`0`)+`T`+String(e.getHours()).padStart(2,`0`)+`:`+String(e.getMinutes()).padStart(2,`0`)+`:`+String(e.getSeconds()).padStart(2,`0`)+`.`+String(e.getMilliseconds()).padStart(3,`0`);return t<0?(i+=`-`,t*=-1):i+=`+`,i+=String(Math.floor(t/60)).padStart(2,`0`)+`:`+String(t%60).padStart(2,`0`),r&&(i+=` BC`),i}function d(e){let t=e.getUTCFullYear(),n=t<1;n&&(t=Math.abs(t)+1);let r=String(t).padStart(4,`0`)+`-`+String(e.getUTCMonth()+1).padStart(2,`0`)+`-`+String(e.getUTCDate()).padStart(2,`0`)+`T`+String(e.getUTCHours()).padStart(2,`0`)+`:`+String(e.getUTCMinutes()).padStart(2,`0`)+`:`+String(e.getUTCSeconds()).padStart(2,`0`)+`.`+String(e.getUTCMilliseconds()).padStart(3,`0`);return r+=`+00:00`,n&&(r+=` BC`),r}function f(e,t,n){return e=typeof e==`string`?{text:e}:e,t&&(typeof t==`function`?e.callback=t:e.values=t),n&&(e.callback=n),e}n.exports={prepareValue:function(e){return c(e)},normalizeQueryConfig:f,escapeIdentifier:function(e){return`"`+e.replace(/"/g,`""`)+`"`},escapeLiteral:function(e){let t=!1,n=`'`;if(e==null||typeof e!=`string`)return`''`;for(let r=0;r<e.length;r++){let i=e[r];i===`'`?n+=i+i:i===`\\`?(n+=i+i,t=!0):n+=i}return n+=`'`,t===!0&&(n=` E`+n),n}}})),ri=r(((e,n)=>{let r=t(`crypto`);function i(e){return r.createHash(`md5`).update(e,`utf-8`).digest(`hex`)}function a(e,t,n){let r=i(t+e);return`md5`+i(Buffer.concat([Buffer.from(r),n]))}function o(e){return r.createHash(`sha256`).update(e).digest()}function s(e,t){return e=e.replace(/(\D)-/,`$1`),r.createHash(e).update(t).digest()}function c(e,t){return r.createHmac(`sha256`,e).update(t).digest()}async function l(e,t,n){return r.pbkdf2Sync(e,t,n,32,`sha256`)}n.exports={postgresMd5PasswordHash:a,randomBytes:r.randomBytes,deriveKey:l,sha256:o,hashByName:s,hmacSha256:c,md5:i}})),ii=r(((e,n)=>{let r=t(`crypto`);n.exports={postgresMd5PasswordHash:l,randomBytes:s,deriveKey:p,sha256:u,hashByName:d,hmacSha256:f,md5:c};let i=r.webcrypto||globalThis.crypto,a=i.subtle,o=new TextEncoder;function s(e){return i.getRandomValues(Buffer.alloc(e))}async function c(e){try{return r.createHash(`md5`).update(e,`utf-8`).digest(`hex`)}catch{let t=typeof e==`string`?o.encode(e):e,n=await a.digest(`MD5`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}}async function l(e,t,n){let r=await c(t+e);return`md5`+await c(Buffer.concat([Buffer.from(r),n]))}async function u(e){return await a.digest(`SHA-256`,e)}async function d(e,t){return await a.digest(e,t)}async function f(e,t){let n=await a.importKey(`raw`,e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]);return await a.sign(`HMAC`,n,o.encode(t))}async function p(e,t,n){let r=await a.importKey(`raw`,o.encode(e),`PBKDF2`,!1,[`deriveBits`]),i={name:`PBKDF2`,hash:`SHA-256`,salt:t,iterations:n};return await a.deriveBits(i,r,256,[`deriveBits`])}})),ai=r(((e,t)=>{parseInt(process.versions&&process.versions.node&&process.versions.node.split(`.`)[0])<15?t.exports=ri():t.exports=ii()})),oi=r(((e,t)=>{function n(e,t){return Error(`SASL channel binding: `+e+` when parsing public certificate `+t.toString(`base64`))}function r(e,t){let r=e[t++];if(r<128)return{length:r,index:t};let i=r&127;if(i>4)throw n(`bad length`,e);r=0;for(let n=0;n<i;n++)r=r<<8|e[t++];return{length:r,index:t}}function i(e,t){if(e[t++]!==6)throw n(`non-OID data`,e);let{length:i,index:a}=r(e,t);t=a;let o=t+i,s=e[t++],c=(s/40>>0)+`.`+s%40;for(;t<o;){let n=0;for(;t<o;){let r=e[t++];if(n=n<<7|r&127,r<128)break}c+=`.`+n}return{oid:c,index:t}}function a(e,t){if(e[t++]!==48)throw n(`non-sequence data`,e);return r(e,t)}function o(e,t){t===void 0&&(t=0),t=a(e,t).index;let{length:o,index:s}=a(e,t);t=s+o,t=a(e,t).index;let{oid:c,index:l}=i(e,t);switch(c){case`1.2.840.113549.1.1.4`:return`MD5`;case`1.2.840.113549.1.1.5`:return`SHA-1`;case`1.2.840.113549.1.1.11`:return`SHA-256`;case`1.2.840.113549.1.1.12`:return`SHA-384`;case`1.2.840.113549.1.1.13`:return`SHA-512`;case`1.2.840.113549.1.1.14`:return`SHA-224`;case`1.2.840.113549.1.1.15`:return`SHA512-224`;case`1.2.840.113549.1.1.16`:return`SHA512-256`;case`1.2.840.10045.4.1`:return`SHA-1`;case`1.2.840.10045.4.3.1`:return`SHA-224`;case`1.2.840.10045.4.3.2`:return`SHA-256`;case`1.2.840.10045.4.3.3`:return`SHA-384`;case`1.2.840.10045.4.3.4`:return`SHA-512`;case`1.2.840.113549.1.1.10`:{if(t=l,t=a(e,t).index,e[t++]!==160)throw n(`non-tag data`,e);t=r(e,t).index,t=a(e,t).index;let{oid:o}=i(e,t);switch(o){case`1.2.840.113549.2.5`:return`MD5`;case`1.3.14.3.2.26`:return`SHA-1`;case`2.16.840.1.101.3.4.2.1`:return`SHA-256`;case`2.16.840.1.101.3.4.2.2`:return`SHA-384`;case`2.16.840.1.101.3.4.2.3`:return`SHA-512`}throw n(`unknown hash OID `+o,e)}case`1.3.101.110`:case`1.3.101.112`:return`SHA-512`;case`1.3.101.111`:case`1.3.101.113`:throw n(`Ed448 certificate channel binding is not currently supported by Postgres`)}throw n(`unknown OID `+c,e)}t.exports={signatureAlgorithmHashFromCertificate:o}})),si=r(((e,t)=>{let n=ai(),{signatureAlgorithmHashFromCertificate:r}=oi();function i(e,t){let r=[`SCRAM-SHA-256`];t&&r.unshift(`SCRAM-SHA-256-PLUS`);let i=r.find(t=>e.includes(t));if(!i)throw Error(`SASL: Only mechanism(s) `+r.join(` and `)+` are supported`);if(i===`SCRAM-SHA-256-PLUS`&&typeof t.getPeerCertificate!=`function`)throw Error(`SASL: Mechanism SCRAM-SHA-256-PLUS requires a certificate`);let a=n.randomBytes(18).toString(`base64`);return{mechanism:i,clientNonce:a,response:(i===`SCRAM-SHA-256-PLUS`?`p=tls-server-end-point`:t?`y`:`n`)+`,,n=*,r=`+a,message:`SASLInitialResponse`}}async function a(e,t,i,a){if(e.message!==`SASLInitialResponse`)throw Error(`SASL: Last message was not SASLInitialResponse`);if(typeof t!=`string`)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string`);if(t===``)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a non-empty string`);if(typeof i!=`string`)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: serverData must be a string`);let o=u(i);if(o.nonce.startsWith(e.clientNonce)){if(o.nonce.length===e.clientNonce.length)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce is too short`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce does not start with client nonce`);let s=`n=*,r=`+e.clientNonce,c=`r=`+o.nonce+`,s=`+o.salt+`,i=`+o.iteration,l=a?`eSws`:`biws`;if(e.mechanism===`SCRAM-SHA-256-PLUS`){let e=a.getPeerCertificate().raw,t=r(e);(t===`MD5`||t===`SHA-1`)&&(t=`SHA-256`);let i=await n.hashByName(t,e);l=Buffer.concat([Buffer.from(`p=tls-server-end-point,,`),Buffer.from(i)]).toString(`base64`)}let d=`c=`+l+`,r=`+o.nonce,p=s+`,`+c+`,`+d,m=Buffer.from(o.salt,`base64`),h=await n.deriveKey(t,m,o.iteration),g=await n.hmacSha256(h,`Client Key`),_=await n.sha256(g),v=await n.hmacSha256(_,p),y=f(Buffer.from(g),Buffer.from(v)).toString(`base64`),b=await n.hmacSha256(h,`Server Key`),x=await n.hmacSha256(b,p);e.message=`SASLResponse`,e.serverSignature=Buffer.from(x).toString(`base64`),e.response=d+`,p=`+y}function o(e,t){if(e.message!==`SASLResponse`)throw Error(`SASL: Last message was not SASLResponse`);if(typeof t!=`string`)throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: serverData must be a string`);let{serverSignature:n}=d(t);if(n!==e.serverSignature)throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature does not match`)}function s(e){if(typeof e!=`string`)throw TypeError(`SASL: text must be a string`);return e.split(``).map((t,n)=>e.charCodeAt(n)).every(e=>e>=33&&e<=43||e>=45&&e<=126)}function c(e){return/^(?:[a-zA-Z0-9+/]{4})*(?:[a-zA-Z0-9+/]{2}==|[a-zA-Z0-9+/]{3}=)?$/.test(e)}function l(e){if(typeof e!=`string`)throw TypeError(`SASL: attribute pairs text must be a string`);return new Map(e.split(`,`).map(e=>{if(!/^.=/.test(e))throw Error(`SASL: Invalid attribute pair entry`);return[e[0],e.substring(2)]}))}function u(e){let t=l(e),n=t.get(`r`);if(n){if(!s(n))throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: nonce must only contain printable characters`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: nonce missing`);let r=t.get(`s`);if(r){if(!c(r))throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: salt must be base64`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: salt missing`);let i=t.get(`i`);if(i){if(!/^[1-9][0-9]*$/.test(i))throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: invalid iteration count`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: iteration missing`);return{nonce:n,salt:r,iteration:parseInt(i,10)}}function d(e){let t=l(e).get(`v`);if(t){if(!c(t))throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature must be base64`)}else throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature is missing`);return{serverSignature:t}}function f(e,t){if(!Buffer.isBuffer(e))throw TypeError(`first argument must be a Buffer`);if(!Buffer.isBuffer(t))throw TypeError(`second argument must be a Buffer`);if(e.length!==t.length)throw Error(`Buffer lengths must match`);if(e.length===0)throw Error(`Buffers cannot be empty`);return Buffer.from(e.map((n,r)=>e[r]^t[r]))}t.exports={startSession:i,continueSession:a,finalizeSession:o}})),ci=r(((e,t)=>{let n=ei();function r(e){this._types=e||n,this.text={},this.binary={}}r.prototype.getOverrides=function(e){switch(e){case`text`:return this.text;case`binary`:return this.binary;default:return{}}},r.prototype.setTypeParser=function(e,t,n){typeof t==`function`&&(n=t,t=`text`),this.getOverrides(t)[e]=n},r.prototype.getTypeParser=function(e,t){return t||=`text`,this.getOverrides(t)[e]||this._types.getTypeParser(e,t)},t.exports=r})),li=r(((e,n)=>{function r(e,n={}){if(e.charAt(0)===`/`){let t=e.split(` `);return{host:t[0],database:t[1]}}let r={},i,a=!1;/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(e)&&(e=encodeURI(e).replace(/%25(\d\d)/g,`%$1`));try{try{i=new URL(e,`postgres://base`)}catch{i=new URL(e.replace(`@/`,`@___DUMMY___/`),`postgres://base`),a=!0}}catch(e){e.input&&=`*****REDACTED*****`}for(let e of i.searchParams.entries())r[e[0]]=e[1];if(r.user=r.user||decodeURIComponent(i.username),r.password=r.password||decodeURIComponent(i.password),i.protocol==`socket:`)return r.host=decodeURI(i.pathname),r.database=i.searchParams.get(`db`),r.client_encoding=i.searchParams.get(`encoding`),r;let o=a?``:i.hostname;r.host?o&&/^%2f/i.test(o)&&(i.pathname=o+i.pathname):r.host=decodeURIComponent(o),r.port||=i.port;let s=i.pathname.slice(1)||null;r.database=s?decodeURI(s):null,(r.ssl===`true`||r.ssl===`1`)&&(r.ssl=!0),r.ssl===`0`&&(r.ssl=!1),(r.sslcert||r.sslkey||r.sslrootcert||r.sslmode)&&(r.ssl={});let c=r.sslcert||r.sslkey||r.sslrootcert?t(`fs`):null;if(r.sslcert&&(r.ssl.cert=c.readFileSync(r.sslcert).toString()),r.sslkey&&(r.ssl.key=c.readFileSync(r.sslkey).toString()),r.sslrootcert&&(r.ssl.ca=c.readFileSync(r.sslrootcert).toString()),n.useLibpqCompat&&r.uselibpqcompat)throw Error(`Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.`);if(r.uselibpqcompat===`true`||n.useLibpqCompat)switch(r.sslmode){case`disable`:r.ssl=!1;break;case`prefer`:r.ssl.rejectUnauthorized=!1;break;case`require`:r.sslrootcert?r.ssl.checkServerIdentity=function(){}:r.ssl.rejectUnauthorized=!1;break;case`verify-ca`:if(!r.ssl.ca)throw Error(`SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security.`);r.ssl.checkServerIdentity=function(){};break;case`verify-full`:break}else switch(r.sslmode){case`disable`:r.ssl=!1;break;case`prefer`:case`require`:case`verify-ca`:case`verify-full`:break;case`no-verify`:r.ssl.rejectUnauthorized=!1;break}return r}function i(e){return Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[t]=n),e),{})}function a(e){return Object.entries(e).reduce((e,[t,n])=>{if(t===`ssl`){let r=n;typeof r==`boolean`&&(e[t]=r),typeof r==`object`&&(e[t]=i(r))}else if(n!=null)if(t===`port`){if(n!==``){let r=parseInt(n,10);if(isNaN(r))throw Error(`Invalid ${t}: ${n}`);e[t]=r}}else e[t]=n;return e},{})}function o(e){return a(r(e))}n.exports=r,r.parse=r,r.toClientConfig=a,r.parseIntoClientConfig=o})),ui=r(((e,n)=>{let r=t(`dns`),i=ti(),a=li().parse,o=function(e,t,n){return n===void 0?n=process.env[`PG`+e.toUpperCase()]:n===!1||(n=process.env[n]),t[e]||n||i[e]},s=function(){switch(process.env.PGSSLMODE){case`disable`:return!1;case`prefer`:case`require`:case`verify-ca`:case`verify-full`:return!0;case`no-verify`:return{rejectUnauthorized:!1}}return i.ssl},c=function(e){return`'`+(``+e).replace(/\\/g,`\\\\`).replace(/'/g,`\\'`)+`'`},l=function(e,t,n){let r=t[n];r!=null&&e.push(n+`=`+c(r))};n.exports=class{constructor(e){e=typeof e==`string`?a(e):e||{},e.connectionString&&(e=Object.assign({},e,a(e.connectionString))),this.user=o(`user`,e),this.database=o(`database`,e),this.database===void 0&&(this.database=this.user),this.port=parseInt(o(`port`,e),10),this.host=o(`host`,e),Object.defineProperty(this,`password`,{configurable:!0,enumerable:!1,writable:!0,value:o(`password`,e)}),this.binary=o(`binary`,e),this.options=o(`options`,e),this.ssl=e.ssl===void 0?s():e.ssl,typeof this.ssl==`string`&&this.ssl===`true`&&(this.ssl=!0),this.ssl===`no-verify`&&(this.ssl={rejectUnauthorized:!1}),this.ssl&&this.ssl.key&&Object.defineProperty(this.ssl,`key`,{enumerable:!1}),this.client_encoding=o(`client_encoding`,e),this.replication=o(`replication`,e),this.isDomainSocket=!(this.host||``).indexOf(`/`),this.application_name=o(`application_name`,e,`PGAPPNAME`),this.fallback_application_name=o(`fallback_application_name`,e,!1),this.statement_timeout=o(`statement_timeout`,e,!1),this.lock_timeout=o(`lock_timeout`,e,!1),this.idle_in_transaction_session_timeout=o(`idle_in_transaction_session_timeout`,e,!1),this.query_timeout=o(`query_timeout`,e,!1),e.connectionTimeoutMillis===void 0?this.connect_timeout=process.env.PGCONNECT_TIMEOUT||0:this.connect_timeout=Math.floor(e.connectionTimeoutMillis/1e3),e.keepAlive===!1?this.keepalives=0:e.keepAlive===!0&&(this.keepalives=1),typeof e.keepAliveInitialDelayMillis==`number`&&(this.keepalives_idle=Math.floor(e.keepAliveInitialDelayMillis/1e3))}getLibpqConnectionString(e){let t=[];l(t,this,`user`),l(t,this,`password`),l(t,this,`port`),l(t,this,`application_name`),l(t,this,`fallback_application_name`),l(t,this,`connect_timeout`),l(t,this,`options`);let n=typeof this.ssl==`object`?this.ssl:this.ssl?{sslmode:this.ssl}:{};if(l(t,n,`sslmode`),l(t,n,`sslca`),l(t,n,`sslkey`),l(t,n,`sslcert`),l(t,n,`sslrootcert`),this.database&&t.push(`dbname=`+c(this.database)),this.replication&&t.push(`replication=`+c(this.replication)),this.host&&t.push(`host=`+c(this.host)),this.isDomainSocket)return e(null,t.join(` `));this.client_encoding&&t.push(`client_encoding=`+c(this.client_encoding)),r.lookup(this.host,function(n,r){return n?e(n,null):(t.push(`hostaddr=`+c(r)),e(null,t.join(` `)))})}}})),di=r(((e,t)=>{let n=ei(),r=/^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/;t.exports=class{constructor(e,t){this.command=null,this.rowCount=null,this.oid=null,this.rows=[],this.fields=[],this._parsers=void 0,this._types=t,this.RowCtor=null,this.rowAsArray=e===`array`,this.rowAsArray&&(this.parseRow=this._parseRowAsArray),this._prebuiltEmptyResultObject=null}addCommandComplete(e){let t;t=e.text?r.exec(e.text):r.exec(e.command),t&&(this.command=t[1],t[3]?(this.oid=parseInt(t[2],10),this.rowCount=parseInt(t[3],10)):t[2]&&(this.rowCount=parseInt(t[2],10)))}_parseRowAsArray(e){let t=Array(e.length);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===null?t[n]=null:t[n]=this._parsers[n](r)}return t}parseRow(e){let t={...this._prebuiltEmptyResultObject};for(let n=0,r=e.length;n<r;n++){let r=e[n],i=this.fields[n].name;if(r!==null){let e=this.fields[n].format===`binary`?Buffer.from(r):r;t[i]=this._parsers[n](e)}else t[i]=null}return t}addRow(e){this.rows.push(e)}addFields(e){this.fields=e,this.fields.length&&(this._parsers=Array(e.length));let t={};for(let r=0;r<e.length;r++){let i=e[r];t[i.name]=null,this._types?this._parsers[r]=this._types.getTypeParser(i.dataTypeID,i.format||`text`):this._parsers[r]=n.getTypeParser(i.dataTypeID,i.format||`text`)}this._prebuiltEmptyResultObject={...t}}}})),fi=r(((e,n)=>{let{EventEmitter:r}=t(`events`),i=di(),a=ni();n.exports=class extends r{constructor(e,t,n){super(),e=a.normalizeQueryConfig(e,t,n),this.text=e.text,this.values=e.values,this.rows=e.rows,this.types=e.types,this.name=e.name,this.queryMode=e.queryMode,this.binary=e.binary,this.portal=e.portal||``,this.callback=e.callback,this._rowMode=e.rowMode,process.domain&&e.callback&&(this.callback=process.domain.bind(e.callback)),this._result=new i(this._rowMode,this.types),this._results=this._result,this._canceledDueToError=!1}requiresPreparation(){return this.queryMode===`extended`||this.name||this.rows?!0:!this.text||!this.values?!1:this.values.length>0}_checkForMultirow(){this._result.command&&(Array.isArray(this._results)||(this._results=[this._result]),this._result=new i(this._rowMode,this._result._types),this._results.push(this._result))}handleRowDescription(e){this._checkForMultirow(),this._result.addFields(e.fields),this._accumulateRows=this.callback||!this.listeners(`row`).length}handleDataRow(e){let t;if(!this._canceledDueToError){try{t=this._result.parseRow(e.fields)}catch(e){this._canceledDueToError=e;return}this.emit(`row`,t,this._result),this._accumulateRows&&this._result.addRow(t)}}handleCommandComplete(e,t){this._checkForMultirow(),this._result.addCommandComplete(e),this.rows&&t.sync()}handleEmptyQuery(e){this.rows&&e.sync()}handleError(e,t){if(this._canceledDueToError&&=(e=this._canceledDueToError,!1),this.callback)return this.callback(e);this.emit(`error`,e)}handleReadyForQuery(e){if(this._canceledDueToError)return this.handleError(this._canceledDueToError,e);if(this.callback)try{this.callback(null,this._results)}catch(e){process.nextTick(()=>{throw e})}this.emit(`end`,this._results)}submit(e){if(typeof this.text!=`string`&&typeof this.name!=`string`)return Error(`A query must have either text or a name. Supplying neither is unsupported.`);let t=e.parsedStatements[this.name];if(this.text&&t&&this.text!==t)return Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);if(this.values&&!Array.isArray(this.values))return Error(`Query values must be an array`);if(this.requiresPreparation()){e.stream.cork&&e.stream.cork();try{this.prepare(e)}finally{e.stream.uncork&&e.stream.uncork()}}else e.query(this.text);return null}hasBeenParsed(e){return this.name&&e.parsedStatements[this.name]}handlePortalSuspended(e){this._getRows(e,this.rows)}_getRows(e,t){e.execute({portal:this.portal,rows:t}),t?e.flush():e.sync()}prepare(e){this.hasBeenParsed(e)||e.parse({text:this.text,name:this.name,types:this.types});try{e.bind({portal:this.portal,statement:this.name,values:this.values,binary:this.binary,valueMapper:a.prepareValue})}catch(t){this.handleError(t,e);return}e.describe({type:`P`,name:this.portal||``}),this._getRows(e,this.rows)}handleCopyInResponse(e){e.sendCopyFail(`No source stream defined`)}handleCopyData(e,t){}}})),pi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoticeMessage=e.DataRowMessage=e.CommandCompleteMessage=e.ReadyForQueryMessage=e.NotificationResponseMessage=e.BackendKeyDataMessage=e.AuthenticationMD5Password=e.ParameterStatusMessage=e.ParameterDescriptionMessage=e.RowDescriptionMessage=e.Field=e.CopyResponse=e.CopyDataMessage=e.DatabaseError=e.copyDone=e.emptyQuery=e.replicationStart=e.portalSuspended=e.noData=e.closeComplete=e.bindComplete=e.parseComplete=void 0,e.parseComplete={name:`parseComplete`,length:5},e.bindComplete={name:`bindComplete`,length:5},e.closeComplete={name:`closeComplete`,length:5},e.noData={name:`noData`,length:5},e.portalSuspended={name:`portalSuspended`,length:5},e.replicationStart={name:`replicationStart`,length:4},e.emptyQuery={name:`emptyQuery`,length:4},e.copyDone={name:`copyDone`,length:4},e.DatabaseError=class extends Error{constructor(e,t,n){super(e),this.length=t,this.name=n}},e.CopyDataMessage=class{constructor(e,t){this.length=e,this.chunk=t,this.name=`copyData`}},e.CopyResponse=class{constructor(e,t,n,r){this.length=e,this.name=t,this.binary=n,this.columnTypes=Array(r)}},e.Field=class{constructor(e,t,n,r,i,a,o){this.name=e,this.tableID=t,this.columnID=n,this.dataTypeID=r,this.dataTypeSize=i,this.dataTypeModifier=a,this.format=o}},e.RowDescriptionMessage=class{constructor(e,t){this.length=e,this.fieldCount=t,this.name=`rowDescription`,this.fields=Array(this.fieldCount)}},e.ParameterDescriptionMessage=class{constructor(e,t){this.length=e,this.parameterCount=t,this.name=`parameterDescription`,this.dataTypeIDs=Array(this.parameterCount)}},e.ParameterStatusMessage=class{constructor(e,t,n){this.length=e,this.parameterName=t,this.parameterValue=n,this.name=`parameterStatus`}},e.AuthenticationMD5Password=class{constructor(e,t){this.length=e,this.salt=t,this.name=`authenticationMD5Password`}},e.BackendKeyDataMessage=class{constructor(e,t,n){this.length=e,this.processID=t,this.secretKey=n,this.name=`backendKeyData`}},e.NotificationResponseMessage=class{constructor(e,t,n,r){this.length=e,this.processId=t,this.channel=n,this.payload=r,this.name=`notification`}},e.ReadyForQueryMessage=class{constructor(e,t){this.length=e,this.status=t,this.name=`readyForQuery`}},e.CommandCompleteMessage=class{constructor(e,t){this.length=e,this.text=t,this.name=`commandComplete`}},e.DataRowMessage=class{constructor(e,t){this.length=e,this.fields=t,this.name=`dataRow`,this.fieldCount=t.length}},e.NoticeMessage=class{constructor(e,t){this.length=e,this.message=t,this.name=`notice`}}})),mi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Writer=void 0,e.Writer=class{constructor(e=256){this.size=e,this.offset=5,this.headerPosition=0,this.buffer=Buffer.allocUnsafe(e)}ensure(e){if(this.buffer.length-this.offset<e){let t=this.buffer,n=t.length+(t.length>>1)+e;this.buffer=Buffer.allocUnsafe(n),t.copy(this.buffer)}}addInt32(e){return this.ensure(4),this.buffer[this.offset++]=e>>>24&255,this.buffer[this.offset++]=e>>>16&255,this.buffer[this.offset++]=e>>>8&255,this.buffer[this.offset++]=e>>>0&255,this}addInt16(e){return this.ensure(2),this.buffer[this.offset++]=e>>>8&255,this.buffer[this.offset++]=e>>>0&255,this}addCString(e){if(!e)this.ensure(1);else{let t=Buffer.byteLength(e);this.ensure(t+1),this.buffer.write(e,this.offset,`utf-8`),this.offset+=t}return this.buffer[this.offset++]=0,this}addString(e=``){let t=Buffer.byteLength(e);return this.ensure(t),this.buffer.write(e,this.offset),this.offset+=t,this}add(e){return this.ensure(e.length),e.copy(this.buffer,this.offset),this.offset+=e.length,this}join(e){if(e){this.buffer[this.headerPosition]=e;let t=this.offset-(this.headerPosition+1);this.buffer.writeInt32BE(t,this.headerPosition+1)}return this.buffer.slice(e?0:5,this.offset)}flush(e){let t=this.join(e);return this.offset=5,this.headerPosition=0,this.buffer=Buffer.allocUnsafe(this.size),t}}})),hi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serialize=void 0;let t=mi(),n=new t.Writer,r=e=>{n.addInt16(3).addInt16(0);for(let t of Object.keys(e))n.addCString(t).addCString(e[t]);n.addCString(`client_encoding`).addCString(`UTF8`);let r=n.addCString(``).flush(),i=r.length+4;return new t.Writer().addInt32(i).add(r).flush()},i=()=>{let e=Buffer.allocUnsafe(8);return e.writeInt32BE(8,0),e.writeInt32BE(80877103,4),e},a=e=>n.addCString(e).flush(112),o=function(e,t){return n.addCString(e).addInt32(Buffer.byteLength(t)).addString(t),n.flush(112)},s=function(e){return n.addString(e).flush(112)},c=e=>n.addCString(e).flush(81),l=[],u=e=>{let t=e.name||``;t.length>63&&(console.error(`Warning! Postgres only supports 63 characters for query names.`),console.error(`You supplied %s (%s)`,t,t.length),console.error(`This can cause conflicts and silent errors executing queries`));let r=e.types||l,i=r.length,a=n.addCString(t).addCString(e.text).addInt16(i);for(let e=0;e<i;e++)a.addInt32(r[e]);return n.flush(80)},d=new t.Writer,f=function(e,t){for(let r=0;r<e.length;r++){let i=t?t(e[r],r):e[r];i==null?(n.addInt16(0),d.addInt32(-1)):i instanceof Buffer?(n.addInt16(1),d.addInt32(i.length),d.add(i)):(n.addInt16(0),d.addInt32(Buffer.byteLength(i)),d.addString(i))}},p=(e={})=>{let t=e.portal||``,r=e.statement||``,i=e.binary||!1,a=e.values||l,o=a.length;return n.addCString(t).addCString(r),n.addInt16(o),f(a,e.valueMapper),n.addInt16(o),n.add(d.flush()),n.addInt16(1),n.addInt16(i?1:0),n.flush(66)},m=Buffer.from([69,0,0,0,9,0,0,0,0,0]),h=e=>{if(!e||!e.portal&&!e.rows)return m;let t=e.portal||``,n=e.rows||0,r=Buffer.byteLength(t),i=4+r+1+4,a=Buffer.allocUnsafe(1+i);return a[0]=69,a.writeInt32BE(i,1),a.write(t,5,`utf-8`),a[r+5]=0,a.writeUInt32BE(n,a.length-4),a},g=(e,t)=>{let n=Buffer.allocUnsafe(16);return n.writeInt32BE(16,0),n.writeInt16BE(1234,4),n.writeInt16BE(5678,6),n.writeInt32BE(e,8),n.writeInt32BE(t,12),n},_=(e,t)=>{let n=4+Buffer.byteLength(t)+1,r=Buffer.allocUnsafe(1+n);return r[0]=e,r.writeInt32BE(n,1),r.write(t,5,`utf-8`),r[n]=0,r},v=n.addCString(`P`).flush(68),y=n.addCString(`S`).flush(68),b=e=>e.name?_(68,`${e.type}${e.name||``}`):e.type===`P`?v:y,x=e=>_(67,`${e.type}${e.name||``}`),S=e=>n.add(e).flush(100),C=e=>_(102,e),w=e=>Buffer.from([e,0,0,0,4]),T=w(72),E=w(83),D=w(88),O=w(99);e.serialize={startup:r,password:a,requestSsl:i,sendSASLInitialResponseMessage:o,sendSCRAMClientFinalMessage:s,query:c,parse:u,bind:p,execute:h,describe:b,close:x,flush:()=>T,sync:()=>E,end:()=>D,copyData:S,copyDone:()=>O,copyFail:C,cancel:g}})),gi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BufferReader=void 0;let t=Buffer.allocUnsafe(0);e.BufferReader=class{constructor(e=0){this.offset=e,this.buffer=t,this.encoding=`utf-8`}setBuffer(e,t){this.offset=e,this.buffer=t}int16(){let e=this.buffer.readInt16BE(this.offset);return this.offset+=2,e}byte(){let e=this.buffer[this.offset];return this.offset++,e}int32(){let e=this.buffer.readInt32BE(this.offset);return this.offset+=4,e}uint32(){let e=this.buffer.readUInt32BE(this.offset);return this.offset+=4,e}string(e){let t=this.buffer.toString(this.encoding,this.offset,this.offset+e);return this.offset+=e,t}cstring(){let e=this.offset,t=e;for(;this.buffer[t++]!==0;);return this.offset=t,this.buffer.toString(this.encoding,e,t-1)}bytes(e){let t=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}}})),_i=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Parser=void 0;let t=pi(),n=gi(),r=Buffer.allocUnsafe(0);e.Parser=class{constructor(e){if(this.buffer=r,this.bufferLength=0,this.bufferOffset=0,this.reader=new n.BufferReader,e?.mode===`binary`)throw Error(`Binary mode not supported yet`);this.mode=e?.mode||`text`}parse(e,t){this.mergeBuffer(e);let n=this.bufferOffset+this.bufferLength,i=this.bufferOffset;for(;i+5<=n;){let e=this.buffer[i],r=this.buffer.readUInt32BE(i+1),a=1+r;if(a+i<=n)t(this.handlePacket(i+5,e,r,this.buffer)),i+=a;else break}i===n?(this.buffer=r,this.bufferLength=0,this.bufferOffset=0):(this.bufferLength=n-i,this.bufferOffset=i)}mergeBuffer(e){if(this.bufferLength>0){let t=this.bufferLength+e.byteLength;if(t+this.bufferOffset>this.buffer.byteLength){let e;if(t<=this.buffer.byteLength&&this.bufferOffset>=this.bufferLength)e=this.buffer;else{let n=this.buffer.byteLength*2;for(;t>=n;)n*=2;e=Buffer.allocUnsafe(n)}this.buffer.copy(e,0,this.bufferOffset,this.bufferOffset+this.bufferLength),this.buffer=e,this.bufferOffset=0}e.copy(this.buffer,this.bufferOffset+this.bufferLength),this.bufferLength=t}else this.buffer=e,this.bufferOffset=0,this.bufferLength=e.byteLength}handlePacket(e,n,r,i){switch(n){case 50:return t.bindComplete;case 49:return t.parseComplete;case 51:return t.closeComplete;case 110:return t.noData;case 115:return t.portalSuspended;case 99:return t.copyDone;case 87:return t.replicationStart;case 73:return t.emptyQuery;case 68:return this.parseDataRowMessage(e,r,i);case 67:return this.parseCommandCompleteMessage(e,r,i);case 90:return this.parseReadyForQueryMessage(e,r,i);case 65:return this.parseNotificationMessage(e,r,i);case 82:return this.parseAuthenticationResponse(e,r,i);case 83:return this.parseParameterStatusMessage(e,r,i);case 75:return this.parseBackendKeyData(e,r,i);case 69:return this.parseErrorMessage(e,r,i,`error`);case 78:return this.parseErrorMessage(e,r,i,`notice`);case 84:return this.parseRowDescriptionMessage(e,r,i);case 116:return this.parseParameterDescriptionMessage(e,r,i);case 71:return this.parseCopyInMessage(e,r,i);case 72:return this.parseCopyOutMessage(e,r,i);case 100:return this.parseCopyData(e,r,i);default:return new t.DatabaseError(`received invalid response: `+n.toString(16),r,`error`)}}parseReadyForQueryMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.string(1);return new t.ReadyForQueryMessage(n,i)}parseCommandCompleteMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.cstring();return new t.CommandCompleteMessage(n,i)}parseCopyData(e,n,r){let i=r.slice(e,e+(n-4));return new t.CopyDataMessage(n,i)}parseCopyInMessage(e,t,n){return this.parseCopyMessage(e,t,n,`copyInResponse`)}parseCopyOutMessage(e,t,n){return this.parseCopyMessage(e,t,n,`copyOutResponse`)}parseCopyMessage(e,n,r,i){this.reader.setBuffer(e,r);let a=this.reader.byte()!==0,o=this.reader.int16(),s=new t.CopyResponse(n,i,a,o);for(let e=0;e<o;e++)s.columnTypes[e]=this.reader.int16();return s}parseNotificationMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int32(),a=this.reader.cstring(),o=this.reader.cstring();return new t.NotificationResponseMessage(n,i,a,o)}parseRowDescriptionMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int16(),a=new t.RowDescriptionMessage(n,i);for(let e=0;e<i;e++)a.fields[e]=this.parseField();return a}parseField(){let e=this.reader.cstring(),n=this.reader.uint32(),r=this.reader.int16(),i=this.reader.uint32(),a=this.reader.int16(),o=this.reader.int32(),s=this.reader.int16()===0?`text`:`binary`;return new t.Field(e,n,r,i,a,o,s)}parseParameterDescriptionMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int16(),a=new t.ParameterDescriptionMessage(n,i);for(let e=0;e<i;e++)a.dataTypeIDs[e]=this.reader.int32();return a}parseDataRowMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int16(),a=Array(i);for(let e=0;e<i;e++){let t=this.reader.int32();a[e]=t===-1?null:this.reader.string(t)}return new t.DataRowMessage(n,a)}parseParameterStatusMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.cstring(),a=this.reader.cstring();return new t.ParameterStatusMessage(n,i,a)}parseBackendKeyData(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int32(),a=this.reader.int32();return new t.BackendKeyDataMessage(n,i,a)}parseAuthenticationResponse(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int32(),a={name:`authenticationOk`,length:n};switch(i){case 0:break;case 3:a.length===8&&(a.name=`authenticationCleartextPassword`);break;case 5:if(a.length===12){a.name=`authenticationMD5Password`;let e=this.reader.bytes(4);return new t.AuthenticationMD5Password(n,e)}break;case 10:{a.name=`authenticationSASL`,a.mechanisms=[];let e;do e=this.reader.cstring(),e&&a.mechanisms.push(e);while(e)}break;case 11:a.name=`authenticationSASLContinue`,a.data=this.reader.string(n-8);break;case 12:a.name=`authenticationSASLFinal`,a.data=this.reader.string(n-8);break;default:throw Error(`Unknown authenticationOk message type `+i)}return a}parseErrorMessage(e,n,r,i){this.reader.setBuffer(e,r);let a={},o=this.reader.string(1);for(;o!==`\0`;)a[o]=this.reader.cstring(),o=this.reader.string(1);let s=a.M,c=i===`notice`?new t.NoticeMessage(n,s):new t.DatabaseError(s,n,i);return c.severity=a.S,c.code=a.C,c.detail=a.D,c.hint=a.H,c.position=a.P,c.internalPosition=a.p,c.internalQuery=a.q,c.where=a.W,c.schema=a.s,c.table=a.t,c.column=a.c,c.dataType=a.d,c.constraint=a.n,c.file=a.F,c.line=a.L,c.routine=a.R,c}}})),vi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DatabaseError=e.serialize=e.parse=void 0;let t=pi();Object.defineProperty(e,`DatabaseError`,{enumerable:!0,get:function(){return t.DatabaseError}});let n=hi();Object.defineProperty(e,`serialize`,{enumerable:!0,get:function(){return n.serialize}});let r=_i();function i(e,t){let n=new r.Parser;return e.on(`data`,e=>n.parse(e,t)),new Promise(t=>e.on(`end`,()=>t()))}e.parse=i})),yi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={}})),bi=r(((e,n)=>{let{getStream:r,getSecureStream:i}=c();n.exports={getStream:r,getSecureStream:i};function a(){function e(e){return new(t(`net`)).Socket}function n(e){return t(`tls`).connect(e)}return{getStream:e,getSecureStream:n}}function o(){function e(e){let{CloudflareSocket:t}=yi();return new t(e)}function t(e){return e.socket.startTls(e),e.socket}return{getStream:e,getSecureStream:t}}function s(){if(typeof navigator==`object`&&navigator!==null&&typeof navigator.userAgent==`string`)return navigator.userAgent===`Cloudflare-Workers`;if(typeof Response==`function`){let e=new Response(null,{cf:{thing:!0}});if(typeof e.cf==`object`&&e.cf!==null&&e.cf.thing)return!0}return!1}function c(){return s()?o():a()}})),xi=r(((e,n)=>{let r=t(`events`).EventEmitter,{parse:i,serialize:a}=vi(),{getStream:o,getSecureStream:s}=bi(),c=a.flush(),l=a.sync(),u=a.end();n.exports=class extends r{constructor(e){super(),e||={},this.stream=e.stream||o(e.ssl),typeof this.stream==`function`&&(this.stream=this.stream(e)),this._keepAlive=e.keepAlive,this._keepAliveInitialDelayMillis=e.keepAliveInitialDelayMillis,this.lastBuffer=!1,this.parsedStatements={},this.ssl=e.ssl||!1,this._ending=!1,this._emitMessage=!1;let t=this;this.on(`newListener`,function(e){e===`message`&&(t._emitMessage=!0)})}connect(e,n){let r=this;this._connecting=!0,this.stream.setNoDelay(!0),this.stream.connect(e,n),this.stream.once(`connect`,function(){r._keepAlive&&r.stream.setKeepAlive(!0,r._keepAliveInitialDelayMillis),r.emit(`connect`)});let i=function(e){r._ending&&(e.code===`ECONNRESET`||e.code===`EPIPE`)||r.emit(`error`,e)};if(this.stream.on(`error`,i),this.stream.on(`close`,function(){r.emit(`end`)}),!this.ssl)return this.attachListeners(this.stream);this.stream.once(`data`,function(e){switch(e.toString(`utf8`)){case`S`:break;case`N`:return r.stream.end(),r.emit(`error`,Error(`The server does not support SSL connections`));default:return r.stream.end(),r.emit(`error`,Error(`There was an error establishing an SSL connection`))}let a={socket:r.stream};r.ssl!==!0&&(Object.assign(a,r.ssl),`key`in r.ssl&&(a.key=r.ssl.key));let o=t(`net`);o.isIP&&o.isIP(n)===0&&(a.servername=n);try{r.stream=s(a)}catch(e){return r.emit(`error`,e)}r.attachListeners(r.stream),r.stream.on(`error`,i),r.emit(`sslconnect`)})}attachListeners(e){i(e,e=>{let t=e.name===`error`?`errorMessage`:e.name;this._emitMessage&&this.emit(`message`,e),this.emit(t,e)})}requestSsl(){this.stream.write(a.requestSsl())}startup(e){this.stream.write(a.startup(e))}cancel(e,t){this._send(a.cancel(e,t))}password(e){this._send(a.password(e))}sendSASLInitialResponseMessage(e,t){this._send(a.sendSASLInitialResponseMessage(e,t))}sendSCRAMClientFinalMessage(e){this._send(a.sendSCRAMClientFinalMessage(e))}_send(e){return this.stream.writable?this.stream.write(e):!1}query(e){this._send(a.query(e))}parse(e){this._send(a.parse(e))}bind(e){this._send(a.bind(e))}execute(e){this._send(a.execute(e))}flush(){this.stream.writable&&this.stream.write(c)}sync(){this._ending=!0,this._send(l)}ref(){this.stream.ref()}unref(){this.stream.unref()}end(){if(this._ending=!0,!this._connecting||!this.stream.writable){this.stream.end();return}return this.stream.write(u,()=>{this.stream.end()})}close(e){this._send(a.close(e))}describe(e){this._send(a.describe(e))}sendCopyFromChunk(e){this._send(a.copyData(e))}endCopyFrom(){this._send(a.copyDone())}sendCopyFail(e){this._send(a.copyFail(e))}}})),Si=r(((e,n)=>{let{Transform:r}=t(`stream`),{StringDecoder:i}=t(`string_decoder`),a=Symbol(`last`),o=Symbol(`decoder`);function s(e,t,n){let r;if(this.overflow){if(r=this[o].write(e).split(this.matcher),r.length===1)return n();r.shift(),this.overflow=!1}else this[a]+=this[o].write(e),r=this[a].split(this.matcher);this[a]=r.pop();for(let e=0;e<r.length;e++)try{l(this,this.mapper(r[e]))}catch(e){return n(e)}if(this.overflow=this[a].length>this.maxLength,this.overflow&&!this.skipOverflow){n(Error(`maximum buffer reached`));return}n()}function c(e){if(this[a]+=this[o].end(),this[a])try{l(this,this.mapper(this[a]))}catch(t){return e(t)}e()}function l(e,t){t!==void 0&&e.push(t)}function u(e){return e}function d(e,t,n){switch(e||=/\r?\n/,t||=u,n||={},arguments.length){case 1:typeof e==`function`?(t=e,e=/\r?\n/):typeof e==`object`&&!(e instanceof RegExp)&&!e[Symbol.split]&&(n=e,e=/\r?\n/);break;case 2:typeof e==`function`?(n=t,t=e,e=/\r?\n/):typeof t==`object`&&(n=t,t=u)}n=Object.assign({},n),n.autoDestroy=!0,n.transform=s,n.flush=c,n.readableObjectMode=!0;let l=new r(n);return l[a]=``,l[o]=new i(`utf8`),l.matcher=e,l.mapper=t,l.maxLength=n.maxLength,l.skipOverflow=n.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}n.exports=d})),Ci=r(((e,n)=>{var r=t(`path`),i=t(`stream`).Stream,a=Si(),o=t(`util`),s=5432,c=process.platform===`win32`,l=process.stderr,u=56,d=7,f=61440,p=32768;function m(e){return(e&f)==p}var h=[`host`,`port`,`database`,`user`,`password`],g=h.length,_=h[g-1];function v(){if(l instanceof i&&!0===l.writable){var e=Array.prototype.slice.call(arguments).concat(`
|
|
28
|
-
`);l.write(o.format.apply(o,e))}}Object.defineProperty(n.exports,`isWin`,{get:function(){return c},set:function(e){c=e}}),n.exports.warnTo=function(e){var t=l;return l=e,t},n.exports.getFileName=function(e){var t=e||process.env;return t.PGPASSFILE||(c?r.join(t.APPDATA||`./`,`postgresql`,`pgpass.conf`):r.join(t.HOME||`./`,`.pgpass`))},n.exports.usePgPass=function(e,t){return Object.prototype.hasOwnProperty.call(process.env,`PGPASSWORD`)?!1:c?!0:(t||=`<unkn>`,m(e.mode)?e.mode&(u|d)?(v(`WARNING: password file "%s" has group or world access; permissions should be u=rw (0600) or less`,t),!1):!0:(v(`WARNING: password file "%s" is not a plain file`,t),!1))};var y=n.exports.match=function(e,t){return h.slice(0,-1).reduce(function(n,r,i){return i==1&&Number(e[r]||s)===Number(t[r])?n&&!0:n&&(t[r]===`*`||t[r]===e[r])},!0)};n.exports.getPassword=function(e,t,n){var r,i=t.pipe(a());function o(t){var n=b(t);n&&x(n)&&y(e,n)&&(r=n[_],i.end())}var s=function(){t.destroy(),n(r)},c=function(e){t.destroy(),v(`WARNING: error on reading file: %s`,e),n(void 0)};t.on(`error`,c),i.on(`data`,o).on(`end`,s).on(`error`,c)};var b=n.exports.parseLine=function(e){if(e.length<11||e.match(/^\s+#/))return null;for(var t=``,n=``,r=0,i=0,a={},o=!1,s=function(t,n,r){var i=e.substring(n,r);Object.hasOwnProperty.call(process.env,`PGPASS_NO_DEESCAPE`)||(i=i.replace(/\\([:\\])/g,`$1`)),a[h[t]]=i},c=0;c<e.length-1;c+=1){if(t=e.charAt(c+1),n=e.charAt(c),o=r==g-1,o){s(r,i);break}c>=0&&t==`:`&&n!==`\\`&&(s(r,i,c+1),i=c+2,r+=1)}return a=Object.keys(a).length===g?a:null,a},x=n.exports.isValidEntry=function(e){for(var t={0:function(e){return e.length>0},1:function(e){return e===`*`?!0:(e=Number(e),isFinite(e)&&e>0&&e<9007199254740992&&Math.floor(e)===e)},2:function(e){return e.length>0},3:function(e){return e.length>0},4:function(e){return e.length>0}},n=0;n<h.length;n+=1){var r=t[n];if(!r(e[h[n]]||``))return!1}return!0}})),wi=r(((e,n)=>{t(`path`);var r=t(`fs`),i=Ci();n.exports=function(e,t){var n=i.getFileName();r.stat(n,function(a,o){if(a||!i.usePgPass(o,n))return t(void 0);var s=r.createReadStream(n);i.getPassword(e,s,t)})},n.exports.warnTo=i.warnTo})),Ti=r(((e,n)=>{let r=t(`events`).EventEmitter,i=ni(),a=si(),o=ci(),s=ui(),c=fi(),l=ti(),u=xi(),d=ai();var f=class extends r{constructor(e){super(),this.connectionParameters=new s(e),this.user=this.connectionParameters.user,this.database=this.connectionParameters.database,this.port=this.connectionParameters.port,this.host=this.connectionParameters.host,Object.defineProperty(this,`password`,{configurable:!0,enumerable:!1,writable:!0,value:this.connectionParameters.password}),this.replication=this.connectionParameters.replication;let t=e||{};this._Promise=t.Promise||global.Promise,this._types=new o(t.types),this._ending=!1,this._ended=!1,this._connecting=!1,this._connected=!1,this._connectionError=!1,this._queryable=!0,this.enableChannelBinding=!!t.enableChannelBinding,this.connection=t.connection||new u({stream:t.stream,ssl:this.connectionParameters.ssl,keepAlive:t.keepAlive||!1,keepAliveInitialDelayMillis:t.keepAliveInitialDelayMillis||0,encoding:this.connectionParameters.client_encoding||`utf8`}),this.queryQueue=[],this.binary=t.binary||l.binary,this.processID=null,this.secretKey=null,this.ssl=this.connectionParameters.ssl||!1,this.ssl&&this.ssl.key&&Object.defineProperty(this.ssl,`key`,{enumerable:!1}),this._connectionTimeoutMillis=t.connectionTimeoutMillis||0}_errorAllQueries(e){let t=t=>{process.nextTick(()=>{t.handleError(e,this.connection)})};this.activeQuery&&=(t(this.activeQuery),null),this.queryQueue.forEach(t),this.queryQueue.length=0}_connect(e){let t=this,n=this.connection;if(this._connectionCallback=e,this._connecting||this._connected){let t=Error(`Client has already been connected. You cannot reuse a client.`);process.nextTick(()=>{e(t)});return}this._connecting=!0,this._connectionTimeoutMillis>0&&(this.connectionTimeoutHandle=setTimeout(()=>{n._ending=!0,n.stream.destroy(Error(`timeout expired`))},this._connectionTimeoutMillis),this.connectionTimeoutHandle.unref&&this.connectionTimeoutHandle.unref()),this.host&&this.host.indexOf(`/`)===0?n.connect(this.host+`/.s.PGSQL.`+this.port):n.connect(this.port,this.host),n.on(`connect`,function(){t.ssl?n.requestSsl():n.startup(t.getStartupConf())}),n.on(`sslconnect`,function(){n.startup(t.getStartupConf())}),this._attachListeners(n),n.once(`end`,()=>{let e=this._ending?Error(`Connection terminated`):Error(`Connection terminated unexpectedly`);clearTimeout(this.connectionTimeoutHandle),this._errorAllQueries(e),this._ended=!0,this._ending||(this._connecting&&!this._connectionError?this._connectionCallback?this._connectionCallback(e):this._handleErrorEvent(e):this._connectionError||this._handleErrorEvent(e)),process.nextTick(()=>{this.emit(`end`)})})}connect(e){if(e){this._connect(e);return}return new this._Promise((e,t)=>{this._connect(n=>{n?t(n):e()})})}_attachListeners(e){e.on(`authenticationCleartextPassword`,this._handleAuthCleartextPassword.bind(this)),e.on(`authenticationMD5Password`,this._handleAuthMD5Password.bind(this)),e.on(`authenticationSASL`,this._handleAuthSASL.bind(this)),e.on(`authenticationSASLContinue`,this._handleAuthSASLContinue.bind(this)),e.on(`authenticationSASLFinal`,this._handleAuthSASLFinal.bind(this)),e.on(`backendKeyData`,this._handleBackendKeyData.bind(this)),e.on(`error`,this._handleErrorEvent.bind(this)),e.on(`errorMessage`,this._handleErrorMessage.bind(this)),e.on(`readyForQuery`,this._handleReadyForQuery.bind(this)),e.on(`notice`,this._handleNotice.bind(this)),e.on(`rowDescription`,this._handleRowDescription.bind(this)),e.on(`dataRow`,this._handleDataRow.bind(this)),e.on(`portalSuspended`,this._handlePortalSuspended.bind(this)),e.on(`emptyQuery`,this._handleEmptyQuery.bind(this)),e.on(`commandComplete`,this._handleCommandComplete.bind(this)),e.on(`parseComplete`,this._handleParseComplete.bind(this)),e.on(`copyInResponse`,this._handleCopyInResponse.bind(this)),e.on(`copyData`,this._handleCopyData.bind(this)),e.on(`notification`,this._handleNotification.bind(this))}_checkPgPass(e){let t=this.connection;if(typeof this.password==`function`)this._Promise.resolve().then(()=>this.password()).then(n=>{if(n!==void 0){if(typeof n!=`string`){t.emit(`error`,TypeError(`Password must be a string`));return}this.connectionParameters.password=this.password=n}else this.connectionParameters.password=this.password=null;e()}).catch(e=>{t.emit(`error`,e)});else if(this.password!==null)e();else try{wi()(this.connectionParameters,t=>{t!==void 0&&(this.connectionParameters.password=this.password=t),e()})}catch(e){this.emit(`error`,e)}}_handleAuthCleartextPassword(e){this._checkPgPass(()=>{this.connection.password(this.password)})}_handleAuthMD5Password(e){this._checkPgPass(async()=>{try{let t=await d.postgresMd5PasswordHash(this.user,this.password,e.salt);this.connection.password(t)}catch(e){this.emit(`error`,e)}})}_handleAuthSASL(e){this._checkPgPass(()=>{try{this.saslSession=a.startSession(e.mechanisms,this.enableChannelBinding&&this.connection.stream),this.connection.sendSASLInitialResponseMessage(this.saslSession.mechanism,this.saslSession.response)}catch(e){this.connection.emit(`error`,e)}})}async _handleAuthSASLContinue(e){try{await a.continueSession(this.saslSession,this.password,e.data,this.enableChannelBinding&&this.connection.stream),this.connection.sendSCRAMClientFinalMessage(this.saslSession.response)}catch(e){this.connection.emit(`error`,e)}}_handleAuthSASLFinal(e){try{a.finalizeSession(this.saslSession,e.data),this.saslSession=null}catch(e){this.connection.emit(`error`,e)}}_handleBackendKeyData(e){this.processID=e.processID,this.secretKey=e.secretKey}_handleReadyForQuery(e){this._connecting&&(this._connecting=!1,this._connected=!0,clearTimeout(this.connectionTimeoutHandle),this._connectionCallback&&=(this._connectionCallback(null,this),null),this.emit(`connect`));let{activeQuery:t}=this;this.activeQuery=null,this.readyForQuery=!0,t&&t.handleReadyForQuery(this.connection),this._pulseQueryQueue()}_handleErrorWhileConnecting(e){if(!this._connectionError){if(this._connectionError=!0,clearTimeout(this.connectionTimeoutHandle),this._connectionCallback)return this._connectionCallback(e);this.emit(`error`,e)}}_handleErrorEvent(e){if(this._connecting)return this._handleErrorWhileConnecting(e);this._queryable=!1,this._errorAllQueries(e),this.emit(`error`,e)}_handleErrorMessage(e){if(this._connecting)return this._handleErrorWhileConnecting(e);let t=this.activeQuery;if(!t){this._handleErrorEvent(e);return}this.activeQuery=null,t.handleError(e,this.connection)}_handleRowDescription(e){this.activeQuery.handleRowDescription(e)}_handleDataRow(e){this.activeQuery.handleDataRow(e)}_handlePortalSuspended(e){this.activeQuery.handlePortalSuspended(this.connection)}_handleEmptyQuery(e){this.activeQuery.handleEmptyQuery(this.connection)}_handleCommandComplete(e){if(this.activeQuery==null){let e=Error(`Received unexpected commandComplete message from backend.`);this._handleErrorEvent(e);return}this.activeQuery.handleCommandComplete(e,this.connection)}_handleParseComplete(){if(this.activeQuery==null){let e=Error(`Received unexpected parseComplete message from backend.`);this._handleErrorEvent(e);return}this.activeQuery.name&&(this.connection.parsedStatements[this.activeQuery.name]=this.activeQuery.text)}_handleCopyInResponse(e){this.activeQuery.handleCopyInResponse(this.connection)}_handleCopyData(e){this.activeQuery.handleCopyData(e,this.connection)}_handleNotification(e){this.emit(`notification`,e)}_handleNotice(e){this.emit(`notice`,e)}getStartupConf(){let e=this.connectionParameters,t={user:e.user,database:e.database},n=e.application_name||e.fallback_application_name;return n&&(t.application_name=n),e.replication&&(t.replication=``+e.replication),e.statement_timeout&&(t.statement_timeout=String(parseInt(e.statement_timeout,10))),e.lock_timeout&&(t.lock_timeout=String(parseInt(e.lock_timeout,10))),e.idle_in_transaction_session_timeout&&(t.idle_in_transaction_session_timeout=String(parseInt(e.idle_in_transaction_session_timeout,10))),e.options&&(t.options=e.options),t}cancel(e,t){if(e.activeQuery===t){let t=this.connection;this.host&&this.host.indexOf(`/`)===0?t.connect(this.host+`/.s.PGSQL.`+this.port):t.connect(this.port,this.host),t.on(`connect`,function(){t.cancel(e.processID,e.secretKey)})}else e.queryQueue.indexOf(t)!==-1&&e.queryQueue.splice(e.queryQueue.indexOf(t),1)}setTypeParser(e,t,n){return this._types.setTypeParser(e,t,n)}getTypeParser(e,t){return this._types.getTypeParser(e,t)}escapeIdentifier(e){return i.escapeIdentifier(e)}escapeLiteral(e){return i.escapeLiteral(e)}_pulseQueryQueue(){if(this.readyForQuery===!0)if(this.activeQuery=this.queryQueue.shift(),this.activeQuery){this.readyForQuery=!1,this.hasExecuted=!0;let e=this.activeQuery.submit(this.connection);e&&process.nextTick(()=>{this.activeQuery.handleError(e,this.connection),this.readyForQuery=!0,this._pulseQueryQueue()})}else this.hasExecuted&&(this.activeQuery=null,this.emit(`drain`))}query(e,t,n){let r,i,a,o,s;if(e==null)throw TypeError(`Client was passed a null or undefined query`);return typeof e.submit==`function`?(a=e.query_timeout||this.connectionParameters.query_timeout,i=r=e,typeof t==`function`&&(r.callback=r.callback||t)):(a=e.query_timeout||this.connectionParameters.query_timeout,r=new c(e,t,n),r.callback||(i=new this._Promise((e,t)=>{r.callback=(n,r)=>n?t(n):e(r)}).catch(e=>{throw Error.captureStackTrace(e),e}))),a&&(s=r.callback,o=setTimeout(()=>{let e=Error(`Query read timeout`);process.nextTick(()=>{r.handleError(e,this.connection)}),s(e),r.callback=()=>{};let t=this.queryQueue.indexOf(r);t>-1&&this.queryQueue.splice(t,1),this._pulseQueryQueue()},a),r.callback=(e,t)=>{clearTimeout(o),s(e,t)}),this.binary&&!r.binary&&(r.binary=!0),r._result&&!r._result._types&&(r._result._types=this._types),this._queryable?this._ending?(process.nextTick(()=>{r.handleError(Error(`Client was closed and is not queryable`),this.connection)}),i):(this.queryQueue.push(r),this._pulseQueryQueue(),i):(process.nextTick(()=>{r.handleError(Error(`Client has encountered a connection error and is not queryable`),this.connection)}),i)}ref(){this.connection.ref()}unref(){this.connection.unref()}end(e){if(this._ending=!0,!this.connection._connecting||this._ended)if(e)e();else return this._Promise.resolve();if(this.activeQuery||!this._queryable?this.connection.stream.destroy():this.connection.end(),e)this.connection.once(`end`,e);else return new this._Promise(e=>{this.connection.once(`end`,e)})}};f.Query=c,n.exports=f})),Ei=r(((e,n)=>{let r=t(`events`).EventEmitter,i=function(){},a=(e,t)=>{let n=e.findIndex(t);return n===-1?void 0:e.splice(n,1)[0]};var o=class{constructor(e,t,n){this.client=e,this.idleListener=t,this.timeoutId=n}},s=class{constructor(e){this.callback=e}};function c(){throw Error(`Release called on client which has already been released to the pool.`)}function l(e,t){if(t)return{callback:t,result:void 0};let n,r;return{callback:function(e,t){e?n(e):r(t)},result:new e(function(e,t){r=e,n=t}).catch(e=>{throw Error.captureStackTrace(e),e})}}function u(e,t){return function n(r){r.client=t,t.removeListener(`error`,n),t.on(`error`,()=>{e.log(`additional client error after disconnection due to error`,r)}),e._remove(t),e.emit(`error`,r,t)}}n.exports=class extends r{constructor(e,t){super(),this.options=Object.assign({},e),e!=null&&`password`in e&&Object.defineProperty(this.options,`password`,{configurable:!0,enumerable:!1,writable:!0,value:e.password}),e!=null&&e.ssl&&e.ssl.key&&Object.defineProperty(this.options.ssl,`key`,{enumerable:!1}),this.options.max=this.options.max||this.options.poolSize||10,this.options.min=this.options.min||0,this.options.maxUses=this.options.maxUses||1/0,this.options.allowExitOnIdle=this.options.allowExitOnIdle||!1,this.options.maxLifetimeSeconds=this.options.maxLifetimeSeconds||0,this.log=this.options.log||function(){},this.Client=this.options.Client||t||Ai().Client,this.Promise=this.options.Promise||global.Promise,this.options.idleTimeoutMillis===void 0&&(this.options.idleTimeoutMillis=1e4),this._clients=[],this._idle=[],this._expired=new WeakSet,this._pendingQueue=[],this._endCallback=void 0,this.ending=!1,this.ended=!1}_isFull(){return this._clients.length>=this.options.max}_isAboveMin(){return this._clients.length>this.options.min}_pulseQueue(){if(this.log(`pulse queue`),this.ended){this.log(`pulse queue ended`);return}if(this.ending){this.log(`pulse queue on ending`),this._idle.length&&this._idle.slice().map(e=>{this._remove(e.client)}),this._clients.length||(this.ended=!0,this._endCallback());return}if(!this._pendingQueue.length){this.log(`no queued requests`);return}if(!this._idle.length&&this._isFull())return;let e=this._pendingQueue.shift();if(this._idle.length){let t=this._idle.pop();clearTimeout(t.timeoutId);let n=t.client;n.ref&&n.ref();let r=t.idleListener;return this._acquireClient(n,e,r,!1)}if(!this._isFull())return this.newClient(e);throw Error(`unexpected condition`)}_remove(e,t){let n=a(this._idle,t=>t.client===e);n!==void 0&&clearTimeout(n.timeoutId),this._clients=this._clients.filter(t=>t!==e);let r=this;e.end(()=>{r.emit(`remove`,e),typeof t==`function`&&t()})}connect(e){if(this.ending){let t=Error(`Cannot use a pool after calling end on the pool`);return e?e(t):this.Promise.reject(t)}let t=l(this.Promise,e),n=t.result;if(this._isFull()||this._idle.length){if(this._idle.length&&process.nextTick(()=>this._pulseQueue()),!this.options.connectionTimeoutMillis)return this._pendingQueue.push(new s(t.callback)),n;let e=(e,n,r)=>{clearTimeout(i),t.callback(e,n,r)},r=new s(e),i=setTimeout(()=>{a(this._pendingQueue,t=>t.callback===e),r.timedOut=!0,t.callback(Error(`timeout exceeded when trying to connect`))},this.options.connectionTimeoutMillis);return i.unref&&i.unref(),this._pendingQueue.push(r),n}return this.newClient(new s(t.callback)),n}newClient(e){let t=new this.Client(this.options);this._clients.push(t);let n=u(this,t);this.log(`checking client timeout`);let r,a=!1;this.options.connectionTimeoutMillis&&(r=setTimeout(()=>{this.log(`ending client due to timeout`),a=!0,t.connection?t.connection.stream.destroy():t.end()},this.options.connectionTimeoutMillis)),this.log(`connecting new client`),t.connect(o=>{if(r&&clearTimeout(r),t.on(`error`,n),o)this.log(`client failed to connect`,o),this._clients=this._clients.filter(e=>e!==t),a&&(o=Error(`Connection terminated due to connection timeout`,{cause:o})),this._pulseQueue(),e.timedOut||e.callback(o,void 0,i);else{if(this.log(`new client connected`),this.options.maxLifetimeSeconds!==0){let e=setTimeout(()=>{this.log(`ending client due to expired lifetime`),this._expired.add(t),this._idle.findIndex(e=>e.client===t)!==-1&&this._acquireClient(t,new s((e,t,n)=>n()),n,!1)},this.options.maxLifetimeSeconds*1e3);e.unref(),t.once(`end`,()=>clearTimeout(e))}return this._acquireClient(t,e,n,!0)}})}_acquireClient(e,t,n,r){r&&this.emit(`connect`,e),this.emit(`acquire`,e),e.release=this._releaseOnce(e,n),e.removeListener(`error`,n),t.timedOut?r&&this.options.verify?this.options.verify(e,e.release):e.release():r&&this.options.verify?this.options.verify(e,n=>{if(n)return e.release(n),t.callback(n,void 0,i);t.callback(void 0,e,e.release)}):t.callback(void 0,e,e.release)}_releaseOnce(e,t){let n=!1;return r=>{n&&c(),n=!0,this._release(e,t,r)}}_release(e,t,n){if(e.on(`error`,t),e._poolUseCount=(e._poolUseCount||0)+1,this.emit(`release`,n,e),n||this.ending||!e._queryable||e._ending||e._poolUseCount>=this.options.maxUses)return e._poolUseCount>=this.options.maxUses&&this.log(`remove expended client`),this._remove(e,this._pulseQueue.bind(this));if(this._expired.has(e))return this.log(`remove expired client`),this._expired.delete(e),this._remove(e,this._pulseQueue.bind(this));let r;this.options.idleTimeoutMillis&&this._isAboveMin()&&(r=setTimeout(()=>{this.log(`remove idle client`),this._remove(e,this._pulseQueue.bind(this))},this.options.idleTimeoutMillis),this.options.allowExitOnIdle&&r.unref()),this.options.allowExitOnIdle&&e.unref(),this._idle.push(new o(e,t,r)),this._pulseQueue()}query(e,t,n){if(typeof e==`function`){let t=l(this.Promise,e);return setImmediate(function(){return t.callback(Error(`Passing a function as the first parameter to pool.query is not supported`))}),t.result}typeof t==`function`&&(n=t,t=void 0);let r=l(this.Promise,n);return n=r.callback,this.connect((r,i)=>{if(r)return n(r);let a=!1,o=e=>{a||(a=!0,i.release(e),n(e))};i.once(`error`,o),this.log(`dispatching query`);try{i.query(e,t,(e,t)=>{if(this.log(`query dispatched`),i.removeListener(`error`,o),!a)return a=!0,i.release(e),e?n(e):n(void 0,t)})}catch(e){return i.release(e),n(e)}}),r.result}end(e){if(this.log(`ending`),this.ending){let t=Error(`Called end on pool more than once`);return e?e(t):this.Promise.reject(t)}this.ending=!0;let t=l(this.Promise,e);return this._endCallback=t.callback,this._pulseQueue(),t.result}get waitingCount(){return this._pendingQueue.length}get idleCount(){return this._idle.length}get expiredCount(){return this._clients.reduce((e,t)=>e+(this._expired.has(t)?1:0),0)}get totalCount(){return this._clients.length}}})),Di=r(((e,n)=>{let r=t(`events`).EventEmitter,i=t(`util`),a=ni(),o=n.exports=function(e,t,n){r.call(this),e=a.normalizeQueryConfig(e,t,n),this.text=e.text,this.values=e.values,this.name=e.name,this.queryMode=e.queryMode,this.callback=e.callback,this.state=`new`,this._arrayMode=e.rowMode===`array`,this._emitRowEvents=!1,this.on(`newListener`,function(e){e===`row`&&(this._emitRowEvents=!0)}.bind(this))};i.inherits(o,r);let s={sqlState:`code`,statementPosition:`position`,messagePrimary:`message`,context:`where`,schemaName:`schema`,tableName:`table`,columnName:`column`,dataTypeName:`dataType`,constraintName:`constraint`,sourceFile:`file`,sourceLine:`line`,sourceFunction:`routine`};o.prototype.handleError=function(e){let t=this.native.pq.resultErrorFields();if(t)for(let n in t){let r=s[n]||n;e[r]=t[n]}this.callback?this.callback(e):this.emit(`error`,e),this.state=`error`},o.prototype.then=function(e,t){return this._getPromise().then(e,t)},o.prototype.catch=function(e){return this._getPromise().catch(e)},o.prototype._getPromise=function(){return this._promise||=new Promise(function(e,t){this._once(`end`,e),this._once(`error`,t)}.bind(this)),this._promise},o.prototype.submit=function(e){this.state=`running`;let t=this;this.native=e.native,e.native.arrayMode=this._arrayMode;let n=function(n,r,i){if(e.native.arrayMode=!1,setImmediate(function(){t.emit(`_done`)}),n)return t.handleError(n);t._emitRowEvents&&(i.length>1?r.forEach((e,n)=>{e.forEach(e=>{t.emit(`row`,e,i[n])})}):r.forEach(function(e){t.emit(`row`,e,i)})),t.state=`end`,t.emit(`end`,i),t.callback&&t.callback(null,i)};if(process.domain&&(n=process.domain.bind(n)),this.name){this.name.length>63&&(console.error(`Warning! Postgres only supports 63 characters for query names.`),console.error(`You supplied %s (%s)`,this.name,this.name.length),console.error(`This can cause conflicts and silent errors executing queries`));let r=(this.values||[]).map(a.prepareValue);if(e.namedQueries[this.name]){if(this.text&&e.namedQueries[this.name]!==this.text){let e=Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);return n(e)}return e.native.execute(this.name,r,n)}return e.native.prepare(this.name,this.text,r.length,function(i){return i?n(i):(e.namedQueries[t.name]=t.text,t.native.execute(t.name,r,n))})}else if(this.values){if(!Array.isArray(this.values))return n(Error(`Query values must be an array`));let t=this.values.map(a.prepareValue);e.native.query(this.text,t,n)}else this.queryMode===`extended`?e.native.query(this.text,[],n):e.native.query(this.text,n)}})),Oi=r(((e,n)=>{var r;try{r=t(`pg-native`)}catch(e){throw e}let i=ci(),a=t(`events`).EventEmitter,o=t(`util`),s=ui(),c=Di(),l=n.exports=function(e){a.call(this),e||={},this._Promise=e.Promise||global.Promise,this._types=new i(e.types),this.native=new r({types:this._types}),this._queryQueue=[],this._ending=!1,this._connecting=!1,this._connected=!1,this._queryable=!0;let t=this.connectionParameters=new s(e);e.nativeConnectionString&&(t.nativeConnectionString=e.nativeConnectionString),this.user=t.user,Object.defineProperty(this,`password`,{configurable:!0,enumerable:!1,writable:!0,value:t.password}),this.database=t.database,this.host=t.host,this.port=t.port,this.namedQueries={}};l.Query=c,o.inherits(l,a),l.prototype._errorAllQueries=function(e){let t=t=>{process.nextTick(()=>{t.native=this.native,t.handleError(e)})};this._hasActiveQuery()&&(t(this._activeQuery),this._activeQuery=null),this._queryQueue.forEach(t),this._queryQueue.length=0},l.prototype._connect=function(e){let t=this;if(this._connecting){process.nextTick(()=>e(Error(`Client has already been connected. You cannot reuse a client.`)));return}this._connecting=!0,this.connectionParameters.getLibpqConnectionString(function(n,r){if(t.connectionParameters.nativeConnectionString&&(r=t.connectionParameters.nativeConnectionString),n)return e(n);t.native.connect(r,function(n){if(n)return t.native.end(),e(n);t._connected=!0,t.native.on(`error`,function(e){t._queryable=!1,t._errorAllQueries(e),t.emit(`error`,e)}),t.native.on(`notification`,function(e){t.emit(`notification`,{channel:e.relname,payload:e.extra})}),t.emit(`connect`),t._pulseQueryQueue(!0),e()})})},l.prototype.connect=function(e){if(e){this._connect(e);return}return new this._Promise((e,t)=>{this._connect(n=>{n?t(n):e()})})},l.prototype.query=function(e,t,n){let r,i,a,o,s;if(e==null)throw TypeError(`Client was passed a null or undefined query`);if(typeof e.submit==`function`)a=e.query_timeout||this.connectionParameters.query_timeout,i=r=e,typeof t==`function`&&(e.callback=t);else if(a=e.query_timeout||this.connectionParameters.query_timeout,r=new c(e,t,n),!r.callback){let e,t;i=new this._Promise((n,r)=>{e=n,t=r}).catch(e=>{throw Error.captureStackTrace(e),e}),r.callback=(n,r)=>n?t(n):e(r)}return a&&(s=r.callback,o=setTimeout(()=>{let e=Error(`Query read timeout`);process.nextTick(()=>{r.handleError(e,this.connection)}),s(e),r.callback=()=>{};let t=this._queryQueue.indexOf(r);t>-1&&this._queryQueue.splice(t,1),this._pulseQueryQueue()},a),r.callback=(e,t)=>{clearTimeout(o),s(e,t)}),this._queryable?this._ending?(r.native=this.native,process.nextTick(()=>{r.handleError(Error(`Client was closed and is not queryable`))}),i):(this._queryQueue.push(r),this._pulseQueryQueue(),i):(r.native=this.native,process.nextTick(()=>{r.handleError(Error(`Client has encountered a connection error and is not queryable`))}),i)},l.prototype.end=function(e){let t=this;this._ending=!0,this._connected||this.once(`connect`,this.end.bind(this,e));let n;return e||(n=new this._Promise(function(t,n){e=e=>e?n(e):t()})),this.native.end(function(){t._errorAllQueries(Error(`Connection terminated`)),process.nextTick(()=>{t.emit(`end`),e&&e()})}),n},l.prototype._hasActiveQuery=function(){return this._activeQuery&&this._activeQuery.state!==`error`&&this._activeQuery.state!==`end`},l.prototype._pulseQueryQueue=function(e){if(!this._connected||this._hasActiveQuery())return;let t=this._queryQueue.shift();if(!t){e||this.emit(`drain`);return}this._activeQuery=t,t.submit(this);let n=this;t.once(`_done`,function(){n._pulseQueryQueue()})},l.prototype.cancel=function(e){this._activeQuery===e?this.native.cancel(function(){}):this._queryQueue.indexOf(e)!==-1&&this._queryQueue.splice(this._queryQueue.indexOf(e),1)},l.prototype.ref=function(){},l.prototype.unref=function(){},l.prototype.setTypeParser=function(e,t,n){return this._types.setTypeParser(e,t,n)},l.prototype.getTypeParser=function(e,t){return this._types.getTypeParser(e,t)}})),ki=r(((e,t)=>{t.exports=Oi()})),Ai=r(((e,t)=>{let n=Ti(),r=ti(),i=xi(),a=di(),o=ni(),s=Ei(),c=ci(),{DatabaseError:l}=vi(),{escapeIdentifier:u,escapeLiteral:d}=ni(),f=e=>class extends s{constructor(t){super(t,e)}},p=function(e){this.defaults=r,this.Client=e,this.Query=this.Client.Query,this.Pool=f(this.Client),this._pools=[],this.Connection=i,this.types=ei(),this.DatabaseError=l,this.TypeOverrides=c,this.escapeIdentifier=u,this.escapeLiteral=d,this.Result=a,this.utils=o};process.env.NODE_PG_FORCE_NATIVE===void 0?(t.exports=new p(n),Object.defineProperty(t.exports,`native`,{configurable:!0,enumerable:!1,get(){let e=null;try{e=new p(ki())}catch(e){if(e.code!==`MODULE_NOT_FOUND`)throw e}return Object.defineProperty(t.exports,`native`,{value:e}),e}})):t.exports=new p(ki())})),ji=e(pr(),1),J=e(Ai(),1);J.default.Client,J.default.Pool,J.default.Connection,J.default.types,J.default.Query,J.default.DatabaseError,J.default.escapeIdentifier,J.default.escapeLiteral,J.default.Result,J.default.TypeOverrides,J.default.defaults;var Mi=J.default,Ni=class{static[b]=`PgPrimaryKeyBuilder`;columns;name;constructor(e,t){this.columns=e,this.name=t}build(e){return new Pi(e,this.columns,this.name)}},Pi=class{constructor(e,t,n){this.table=e,this.columns=t,this.name=n,this.isNameExplicit=!!n}static[b]=`PgPrimaryKey`;columns;name;isNameExplicit;getName(){return this.name??`${this.table[B.Symbol.Name]}_${this.columns.map(e=>e.name).join(`_`)}_pk`}},Fi=class{constructor(e,t,n){this.sourceTable=e,this.referencedTable=t,this.relationName=n,this.referencedTableName=t[M.Symbol.Name]}static[b]=`Relation`;referencedTableName;fieldName},Ii=class{constructor(e,t){this.table=e,this.config=t}static[b]=`Relations`},Li=class e extends Fi{constructor(e,t,n,r){super(e,t,n?.relationName),this.config=n,this.isNullable=r}static[b]=`One`;withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config,this.isNullable);return n.fieldName=t,n}},Ri=class e extends Fi{constructor(e,t,n){super(e,t,n?.relationName),this.config=n}static[b]=`Many`;withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config);return n.fieldName=t,n}};function zi(){return{and:q,between:oe,eq:he,exists:K,gt:W,gte:fe,ilike:ve,inArray:G,isNull:ge,isNotNull:ce,like:pe,lt:ue,lte:le,ne:ae,not:ye,notBetween:Se,notExists:se,notLike:re,notIlike:xe,notInArray:ie,or:be,sql:_}}function Bi(){return{sql:_,asc:Ar,desc:jr}}function Vi(e,t){Object.keys(e).length===1&&`default`in e&&!S(e.default,M)&&(e=e.default);let n={},r={},i={};for(let[a,o]of Object.entries(e))if(S(o,M)){let e=u(o),t=r[e];n[e]=a,i[a]={tsName:a,dbName:o[M.Symbol.Name],schema:o[M.Symbol.Schema],columns:o[M.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]};for(let e of Object.values(o[M.Symbol.Columns]))e.primary&&i[a].primaryKey.push(e);let s=o[M.Symbol.ExtraConfigBuilder]?.(o[M.Symbol.ExtraConfigColumns]);if(s)for(let e of Object.values(s))S(e,Ni)&&i[a].primaryKey.push(...e.columns)}else if(S(o,Ii)){let e=u(o.table),a=n[e],s=o.config(t(o.table));for(let[t,n]of Object.entries(s))if(a){let e=i[a];e.relations[t]=n}else e in r||(r[e]={relations:{}}),r[e].relations[t]=n}return{tables:i,tableNamesMap:n}}function Hi(e){return function(t,n){return new Li(e,t,n,n?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)}}function Ui(e){return function(t,n){return new Ri(e,t,n)}}function Wi(e,t,n){if(S(n,Li)&&n.config)return{fields:n.config.fields,references:n.config.references};let r=t[u(n.referencedTable)];if(!r)throw Error(`Table "${n.referencedTable[M.Symbol.Name]}" not found in schema`);let i=e[r];if(!i)throw Error(`Table "${r}" not found in schema`);let a=n.sourceTable,o=t[u(a)];if(!o)throw Error(`Table "${a[M.Symbol.Name]}" not found in schema`);let s=[];for(let e of Object.values(i.relations))(n.relationName&&n!==e&&e.relationName===n.relationName||!n.relationName&&e.referencedTable===n.sourceTable)&&s.push(e);if(s.length>1)throw n.relationName?Error(`There are multiple relations with name "${n.relationName}" in table "${r}"`):Error(`There are multiple relations between "${r}" and "${n.sourceTable[M.Symbol.Name]}". Please specify relation name`);if(s[0]&&S(s[0],Li)&&s[0].config)return{fields:s[0].config.references,references:s[0].config.fields};throw Error(`There is not enough information to infer relation "${o}.${n.fieldName}"`)}function Gi(e){return{one:Hi(e),many:Ui(e)}}function Ki(e,t,n,r,i=e=>e){let a={};for(let[o,s]of r.entries())if(s.isJson){let r=t.relations[s.tsKey],c=n[o],l=typeof c==`string`?JSON.parse(c):c;a[s.tsKey]=S(r,Li)?l&&Ki(e,e[s.relationTableTsKey],l,s.selection,i):l.map(t=>Ki(e,e[s.relationTableTsKey],t,s.selection,i))}else{let e=i(n[o]),t=s.field,r;r=S(t,f)?t:S(t,U)?t.decoder:t.sql.decoder,a[s.tsKey]=e===null?null:r.mapFromDriverValue(e)}return a}var Y=class e{static[b]=`SelectionProxyHandler`;config;constructor(e){this.config={...e}}get(t,n){if(n===`_`)return{...t._,selectedFields:new Proxy(t._.selectedFields,this)};if(n===p)return{...t[p],selectedFields:new Proxy(t[p].selectedFields,this)};if(typeof n==`symbol`)return t[n];let r=(S(t,y)?t._.selectedFields:S(t,s)?t[p].selectedFields:t)[n];if(S(r,U.Aliased)){if(this.config.sqlAliasedBehavior===`sql`&&!r.isSelectionField)return r.sql;let e=r.clone();return e.isSelectionField=!0,e}if(S(r,U)){if(this.config.sqlBehavior===`sql`)return r;throw Error(`You tried to reference "${n}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}return S(r,f)?this.config.alias?new Proxy(r,new mr(new Proxy(r.table,new hr(this.config.alias,this.config.replaceOriginalName??!1,!0)),!0)):r:typeof r!=`object`||!r?r:new Proxy(r,new e(this.config))}};function qi(e){return S(e,B)?[e[g]?`${e[g]}.${e[M.Symbol.BaseName]}`:e[M.Symbol.BaseName]]:S(e,y)?e._.usedTables??[]:S(e,U)?e.usedTables??[]:[]}var Ji=class extends kr{constructor(e,t,n,r){super(),this.session=t,this.dialect=n,this.config={table:e,withList:r}}static[b]=`PgDelete`;config;cacheConfig;where(e){return this.config.where=e,this}returning(e=this.config.table[M.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=H(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return m.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`delete`,tables:qi(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>m.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new Y({alias:v(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}};function Yi(e){return(e.replace(/['\u2019]/g,``).match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g)??[]).map(e=>e.toLowerCase()).join(`_`)}function Xi(e){return(e.replace(/['\u2019]/g,``).match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g)??[]).reduce((e,t,n)=>e+(n===0?t.toLowerCase():`${t[0].toUpperCase()}${t.slice(1)}`),``)}function Zi(e){return e}var Qi=class{static[b]=`CasingCache`;cache={};cachedTables={};convert;constructor(e){this.convert=e===`snake_case`?Yi:e===`camelCase`?Xi:Zi}getColumnCasing(e){if(!e.keyAsName)return e.name;let t=`${e.table[M.Symbol.Schema]??`public`}.${e.table[M.Symbol.OriginalName]}.${e.name}`;return this.cache[t]||this.cacheTable(e.table),this.cache[t]}cacheTable(e){let t=`${e[M.Symbol.Schema]??`public`}.${e[M.Symbol.OriginalName]}`;if(!this.cachedTables[t]){for(let n of Object.values(e[M.Symbol.Columns])){if(!S(n,f))continue;let e=`${t}.${n.name}`;this.cache[e]=this.convert(n.name)}this.cachedTables[t]=!0}}clearCache(){this.cache={},this.cachedTables={}}},$i=class extends s{static[b]=`PgViewBase`},ea=class{static[b]=`PgDialect`;casing;constructor(e){this.casing=new Qi(e?.casing)}async migrate(e,t,n){let r=typeof n==`string`?`__drizzle_migrations`:n.migrationsTable??`__drizzle_migrations`,i=typeof n==`string`?`drizzle`:n.migrationsSchema??`drizzle`,a=_`
|
|
29
|
-
CREATE TABLE IF NOT EXISTS ${
|
|
26
|
+
`)),i}}function f(e,t,n){let r=Error(e);return r.expected=t,r.actual=n,r.showDiff=!0,r}n.exports=u})),fr=r(((e,n)=>{let{agent:r}=ur(),i=ft(),a=t(`http`),o;try{o=t(`http2`)}catch{}let s=dr();function c(e,t={}){if(!(this instanceof c))return new c(e,t);let n=new r(t);if(Object.assign(this,n),this._options=t,typeof e==`function`)if(t.http2){if(!o)throw Error(`supertest: this version of Node.js does not support http2`);e=o.createServer(e)}else e=a.createServer(e);this.app=e}Object.setPrototypeOf(c.prototype,r.prototype);let l=r.prototype.query;c.prototype.host=function(e){return this._host=e,this},i.forEach(function(e){e!==`query`&&(c.prototype[e]=function(t,n){let r=new s(this.app,e.toUpperCase(),t);return this._options.http2&&r.http2(),this._host&&r.set(`host`,this._host),r.on(`response`,this._saveCookies.bind(this)),r.on(`redirect`,this._saveCookies.bind(this)),r.on(`redirect`,this._attachCookies.bind(this,r)),this._setDefaults(r),this._attachCookies(r),r})}),c.prototype.query=l,c.prototype.del=c.prototype.delete,n.exports=c})),pr=r(((e,n)=>{let r=ft(),i;try{i=t(`http2`)}catch{}let a=dr(),o=fr();n.exports=function(e,t={}){let n={};if(typeof e==`function`&&t.http2&&!i)throw Error(`supertest: this version of Node.js does not support http2`);return r.forEach(function(r){n[r]=function(n){var i=new a(e,r,n,t.http2);return t.http2&&i.http2(),i}}),n.del=n.delete,n},n.exports.Test=a,n.exports.agent=o})),mr=class{constructor(e,t){this.table=e,this.ignoreColumnAlias=t}static[y]=`ColumnTableAliasProxyHandler`;get(e,t){return t===`table`?this.table:t===`isAlias`&&this.ignoreColumnAlias?!1:e[t]}},hr=class{constructor(e,t,n){this.alias=e,this.replaceOriginalName=t,this.ignoreColumnAlias=n}static[y]=`TableAliasProxyHandler`;get(e,t){if(t===j.Symbol.IsAlias)return!0;if(t===j.Symbol.Name||this.replaceOriginalName&&t===j.Symbol.OriginalName)return this.alias;if(t===f)return{...e[f],name:this.alias,isAlias:!0};if(t===j.Symbol.Columns){let t=e[j.Symbol.Columns];if(!t)return t;let n={};return Object.keys(t).map(r=>{n[r]=new Proxy(t[r],new mr(new Proxy(e,this),this.ignoreColumnAlias))}),n}let n=e[t];return x(n,d)?new Proxy(n,new mr(new Proxy(e,this),this.ignoreColumnAlias)):n}},gr=class{constructor(e){this.alias=e}static[y]=`ColumnAliasProxyHandler`;get(e,t){return t===`isAlias`?!0:t===`name`?this.alias:t===`keyAsName`?!1:t===u?()=>e:e[t]}};function _r(e,t){return new Proxy(e,new hr(t,!1,!1))}function vr(e,t){return new Proxy(e,new gr(t))}function yr(e,t){return new Proxy(e,new mr(new Proxy(e.table,new hr(t,!1,!1)),!1))}function br(e,t){return new U.Aliased(xr(e.sql,t),e.fieldAlias)}function xr(e,t){return g.join(e.queryChunks.map(e=>x(e,d)?yr(e,t):x(e,U)?xr(e,t):x(e,U.Aliased)?br(e,t):e))}d.prototype.as=function(e){return vr(this,e)};function Sr(e){return e[u]()}var Cr=class extends Error{static[y]=`DrizzleError`;constructor({message:e,cause:t}){super(e),this.name=`DrizzleError`,this.cause=t}},wr=class e extends Error{constructor(t,n,r){super(`Failed query: ${t}
|
|
27
|
+
params: ${n}`),this.query=t,this.params=n,this.cause=r,Error.captureStackTrace(this,e),r&&(this.cause=r)}static[y]=`DrizzleQueryError`},Tr=class extends Cr{static[y]=`TransactionRollbackError`;constructor(){super({message:`Rollback`})}},Er=class{static[y]=`ConsoleLogWriter`;write(e){console.log(e)}},Dr=class{static[y]=`DefaultLogger`;writer;constructor(e){this.writer=e?.writer??new Er}logQuery(e,t){let n=t.map(e=>{try{return JSON.stringify(e)}catch{return String(e)}}),r=n.length?` -- params: [${n.join(`, `)}]`:``;this.writer.write(`Query: ${e}${r}`)}},Or=class{static[y]=`NoopLogger`;logQuery(){}},kr=class{static[y]=`QueryPromise`;[Symbol.toStringTag]=`QueryPromise`;catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}then(e,t){return this.execute().then(e,t)}};function Ar(e){return g`${e} asc`}function jr(e){return g`${e} desc`}var Mr=class{constructor(e,t){this.targetTableName=t,this.targetTable=e}static[y]=`RelationV2`;fieldName;sourceColumns;targetColumns;alias;where;sourceTable;targetTable;through;throughTable;isReversed;sourceColumnTableNames=[];targetColumnTableNames=[]},Nr=class extends Mr{static[y]=`OneV2`;relationType=`one`;optional;constructor(e,t,n,r){super(t,n),this.alias=r?.alias,this.where=r?.where,r?.from&&(this.sourceColumns=(Array.isArray(r.from)?r.from:[r.from]).map(t=>(this.throughTable??=t._.through?e[t._.through._.tableName]:void 0,this.sourceColumnTableNames.push(t._.tableName),t._.column))),r?.to&&(this.targetColumns=(Array.isArray(r.to)?r.to:[r.to]).map(t=>(this.throughTable??=t._.through?e[t._.through._.tableName]:void 0,this.targetColumnTableNames.push(t._.tableName),t._.column))),this.throughTable&&(this.through={source:(Array.isArray(r?.from)?r.from:r?.from?[r.from]:[]).map(e=>e._.through),target:(Array.isArray(r?.to)?r.to:r?.to?[r.to]:[]).map(e=>e._.through)}),this.optional=r?.optional??!0}};const Pr={and:K,between:ae,eq:me,exists:_e,gt:se,gte:de,ilike:ve,inArray:W,arrayContains:ge,arrayContained:pe,arrayOverlaps:ue,isNull:he,isNotNull:G,like:fe,lt:le,lte:ce,ne:ie,not:ye,notBetween:Se,notExists:oe,notLike:ne,notIlike:xe,notInArray:re,or:be,sql:g},Fr={sql:g,asc:Ar,desc:jr};function Ir(e,t,n=e=>e,r=!1,i=!1,a){for(let c of t){if(c.selection){let t=`${a?`${a}.`:``}${c.key}`;if(e[c.key]===null||r&&(e[c.key]=JSON.parse(e[c.key]),e[c.key]===null))continue;if(i&&typeof e[c.key]==`string`&&(e[c.key]=JSON.parse(e[c.key])),c.isArray){for(let r of e[c.key])Ir(r,c.selection,n,!1,i,t);continue}Ir(e[c.key],c.selection,n,!1,i,t);continue}let t=c.field,l=n(e[c.key]);if(l===null)continue;let u;u=x(t,d)?t:x(t,U)?t.decoder:x(t,U.Aliased)?t.sql.decoder:x(t,j)||x(t,o)?s:t.getSQL().decoder,e[c.key]=`mapFromJsonValue`in u?u.mapFromJsonValue(l):u.mapFromDriverValue(l)}return e}function Lr(e,t){let n=e[m][t];return n?x(n,d)?n:x(n,U.Aliased)?g`${e}.${g.identifier(n.fieldAlias)}`:g`${e}.${g.identifier(t)}`:g`${e}.${g.identifier(t)}`}function Rr(e,t){if(typeof t!=`object`||x(t,w))return me(e,t);let n=Object.entries(t);if(!n.length)return;let r=[];for(let[t,i]of n)if(i!==void 0)switch(t){case`NOT`:{let t=Rr(e,i);if(!t)continue;r.push(ye(t));continue}case`OR`:if(!i.length)continue;r.push(be(...i.map(t=>Rr(e,t))));continue;case`AND`:if(!i.length)continue;r.push(K(...i.map(t=>Rr(e,t))));continue;case`isNotNull`:case`isNull`:if(!i)continue;r.push(Pr[t](e));continue;case`in`:r.push(Pr.inArray(e,i));continue;case`notIn`:r.push(Pr.notInArray(e,i));continue;default:r.push(Pr[t](e,i));continue}if(r.length)return K(...r)}function zr(e,t,n={},r={},i,a=0){let o=Object.entries(t);if(!o.length)return;let s=[];for(let[t,c]of o)if(c!==void 0)switch(t){case`RAW`:{let t=typeof c==`function`?c(e,Pr):c.getSQL();s.push(t);continue}case`OR`:if(!c?.length)continue;s.push(be(...c.map(t=>zr(e,t,n,r,i,a))));continue;case`AND`:if(!c?.length)continue;s.push(K(...c.map(t=>zr(e,t,n,r,i,a))));continue;case`NOT`:{if(c===void 0)continue;let t=zr(e,c,n,r,i,a);if(!t)continue;s.push(ye(t));continue}default:{if(e[m][t]){let n=Rr(Lr(e,t),c);n&&s.push(n);continue}let o=n[t];if(!o)throw new Cr({message:`Unknown relational filter field: "${t}"`});let l=_r(o.targetTable,`f${a}`),u=o.throughTable?_r(o.throughTable,`ft${a}`):void 0,d=r[o.targetTableName],{filter:f,joinCondition:p}=Hr(i,o,e,l,u),h=K(f,typeof c==`boolean`?void 0:zr(l,c,d.relations,r,i,a+1)),_=u?g`(select * from ${Ur(l)} inner join ${Ur(u)} on ${p}${g` where ${h}`.if(h)} limit 1)`:g`(select * from ${Ur(l)}${g` where ${h}`.if(h)} limit 1)`;h&&s.push((c?_e:oe)(_))}}return K(...s)}function Br(e,t){if(typeof t==`function`){let n=t(e,Fr);return x(n,U)?n:Array.isArray(n)?n.length?g.join(n.map(e=>x(e,U)?e:Ar(e)),g`, `):void 0:x(n,d)?Ar(n):void 0}let n=Object.entries(t).filter(([e,t])=>t);if(n.length)return g.join(n.map(([t,n])=>(n===`asc`?Ar:jr)(Lr(e,t))),g`, `)}function Vr(e,t){let n=[],r=[];for(let[i,a]of Object.entries(t)){if(!a)continue;let t=typeof a==`function`?a(e,{sql:Pr.sql}):a,o=g`(${t.getSQL()}) as ${g.identifier(i)}`;o.decoder=t.getSQL().decoder,n.push(o),r.push({key:i,field:o})}return{sql:n.length?g.join(n,g`, `):void 0,selection:r}}function Hr(e,t,n,r,i){if(t.through){let a=t.sourceColumns.map((r,a)=>{let o=t.through.source[a];return me(g`${n}.${g.identifier(e.getColumnCasing(r))}`,g`${i}.${g.identifier(x(o._.column,d)?e.getColumnCasing(o._.column):o._.key)}`)}),o=t.targetColumns.map((n,a)=>{let o=t.through.target[a];return me(g`${i}.${g.identifier(x(o._.column,d)?e.getColumnCasing(o._.column):o._.key)}`,g`${r}.${g.identifier(e.getColumnCasing(n))}`)});return{filter:K(t.where?zr(t.isReversed?n:r,t.where):void 0,...a),joinCondition:K(...o)}}return{filter:K(...t.sourceColumns.map((i,a)=>{let o=t.targetColumns[a];return me(g`${n}.${g.identifier(e.getColumnCasing(i))}`,g`${r}.${g.identifier(e.getColumnCasing(o))}`)}),t.where?zr(t.isReversed?n:r,t.where):void 0)}}function Ur(e){return g`${e[M]?g`${g`${g.identifier(e[h]??``)}.`.if(e[h])}${g.identifier(e[i])} as ${e}`:e}`}var Wr=r((e=>{e.parse=function(e,n){return new t(e,n).parse()};var t=class e{constructor(e,t){this.source=e,this.transform=t||n,this.position=0,this.entries=[],this.recorded=[],this.dimension=0}isEof(){return this.position>=this.source.length}nextCharacter(){var e=this.source[this.position++];return e===`\\`?{value:this.source[this.position++],escaped:!0}:{value:e,escaped:!1}}record(e){this.recorded.push(e)}newEntry(e){var t;(this.recorded.length>0||e)&&(t=this.recorded.join(``),t===`NULL`&&!e&&(t=null),t!==null&&(t=this.transform(t)),this.entries.push(t),this.recorded=[])}consumeDimensions(){if(this.source[0]===`[`)for(;!this.isEof()&&this.nextCharacter().value!==`=`;);}parse(t){var n,r,i;for(this.consumeDimensions();!this.isEof();)if(n=this.nextCharacter(),n.value===`{`&&!i)this.dimension++,this.dimension>1&&(r=new e(this.source.substr(this.position-1),this.transform),this.entries.push(r.parse(!0)),this.position+=r.position-2);else if(n.value===`}`&&!i){if(this.dimension--,!this.dimension&&(this.newEntry(),t))return this.entries}else n.value===`"`&&!n.escaped?(i&&this.newEntry(!0),i=!i):n.value===`,`&&!i?this.newEntry():this.record(n.value);if(this.dimension!==0)throw Error(`array dimension not balanced`);return this.entries}};function n(e){return e}})),Gr=r(((e,t)=>{var n=Wr();t.exports={create:function(e,t){return{parse:function(){return n.parse(e,t)}}}}})),Kr=r(((e,t)=>{var n=/(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/,r=/^(\d{1,})-(\d{2})-(\d{2})( BC)?$/,i=/([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/,a=/^-?infinity$/;t.exports=function(e){if(a.test(e))return Number(e.replace(`i`,`I`));var t=n.exec(e);if(!t)return o(e)||null;var r=!!t[8],i=parseInt(t[1],10);r&&(i=c(i));var u=parseInt(t[2],10)-1,d=t[3],f=parseInt(t[4],10),p=parseInt(t[5],10),m=parseInt(t[6],10),h=t[7];h=h?1e3*parseFloat(h):0;var g,_=s(e);return _==null?(g=new Date(i,u,d,f,p,m,h),l(i)&&g.setFullYear(i)):(g=new Date(Date.UTC(i,u,d,f,p,m,h)),l(i)&&g.setUTCFullYear(i),_!==0&&g.setTime(g.getTime()-_)),g};function o(e){var t=r.exec(e);if(t){var n=parseInt(t[1],10);t[4]&&(n=c(n));var i=parseInt(t[2],10)-1,a=t[3],o=new Date(n,i,a);return l(n)&&o.setFullYear(n),o}}function s(e){if(e.endsWith(`+00`))return 0;var t=i.exec(e.split(` `)[1]);if(t){var n=t[1];if(n===`Z`)return 0;var r=n===`-`?-1:1;return(parseInt(t[2],10)*3600+parseInt(t[3]||0,10)*60+parseInt(t[4]||0,10))*r*1e3}}function c(e){return-(e-1)}function l(e){return e>=0&&e<100}})),qr=r(((e,t)=>{t.exports=r;var n=Object.prototype.hasOwnProperty;function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e}})),Jr=r(((e,t)=>{var n=qr();t.exports=r;function r(e){if(!(this instanceof r))return new r(e);n(this,g(e))}var i=[`seconds`,`minutes`,`hours`,`days`,`months`,`years`];r.prototype.toPostgres=function(){var e=i.filter(this.hasOwnProperty,this);return this.milliseconds&&e.indexOf(`seconds`)<0&&e.push(`seconds`),e.length===0?`0`:e.map(function(e){var t=this[e]||0;return e===`seconds`&&this.milliseconds&&(t=(t+this.milliseconds/1e3).toFixed(6).replace(/\.?0+$/,``)),t+` `+e},this).join(` `)};var a={years:`Y`,months:`M`,days:`D`,hours:`H`,minutes:`M`,seconds:`S`},o=[`years`,`months`,`days`],s=[`hours`,`minutes`,`seconds`];r.prototype.toISOString=r.prototype.toISO=function(){var e=o.map(n,this).join(``),t=s.map(n,this).join(``);return`P`+e+`T`+t;function n(e){var t=this[e]||0;return e===`seconds`&&this.milliseconds&&(t=(t+this.milliseconds/1e3).toFixed(6).replace(/0+$/,``)),t+a[e]}};var c=`([+-]?\\d+)`,l=c+`\\s+years?`,u=c+`\\s+mons?`,d=c+`\\s+days?`,f=new RegExp([l,u,d,`([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?`].map(function(e){return`(`+e+`)?`}).join(`\\s*`)),p={years:2,months:4,days:6,hours:9,minutes:10,seconds:11,milliseconds:12},m=[`hours`,`minutes`,`seconds`,`milliseconds`];function h(e){var t=e+`000000`.slice(e.length);return parseInt(t,10)/1e3}function g(e){if(!e)return{};var t=f.exec(e),n=t[8]===`-`;return Object.keys(p).reduce(function(e,r){var i=t[p[r]];return!i||(i=r===`milliseconds`?h(i):parseInt(i,10),!i)?e:(n&&~m.indexOf(r)&&(i*=-1),e[r]=i,e)},{})}})),Yr=r(((e,t)=>{t.exports=function(e){if(/^\\x/.test(e))return new Buffer(e.substr(2),`hex`);for(var t=``,n=0;n<e.length;)if(e[n]!==`\\`)t+=e[n],++n;else if(/[0-7]{3}/.test(e.substr(n+1,3)))t+=String.fromCharCode(parseInt(e.substr(n+1,3),8)),n+=4;else{for(var r=1;n+r<e.length&&e[n+r]===`\\`;)r++;for(var i=0;i<Math.floor(r/2);++i)t+=`\\`;n+=Math.floor(r/2)*2}return new Buffer(t,`binary`)}})),Xr=r(((e,t)=>{var n=Wr(),r=Gr(),i=Kr(),a=Jr(),o=Yr();function s(e){return function(t){return t===null?t:e(t)}}function c(e){return e===null?e:e===`TRUE`||e===`t`||e===`true`||e===`y`||e===`yes`||e===`on`||e===`1`}function l(e){return e?n.parse(e,c):null}function u(e){return parseInt(e,10)}function d(e){return e?n.parse(e,s(u)):null}function f(e){return e?n.parse(e,s(function(e){return b(e).trim()})):null}var p=function(e){return e?r.create(e,function(e){return e!==null&&(e=S(e)),e}).parse():null},m=function(e){return e?r.create(e,function(e){return e!==null&&(e=parseFloat(e)),e}).parse():null},h=function(e){return e?r.create(e).parse():null},g=function(e){return e?r.create(e,function(e){return e!==null&&(e=i(e)),e}).parse():null},_=function(e){return e?r.create(e,function(e){return e!==null&&(e=a(e)),e}).parse():null},v=function(e){return e?n.parse(e,s(o)):null},y=function(e){return parseInt(e,10)},b=function(e){var t=String(e);return/^\d+$/.test(t)?t:e},x=function(e){return e?n.parse(e,s(JSON.parse)):null},S=function(e){return e[0]===`(`?(e=e.substring(1,e.length-1).split(`,`),{x:parseFloat(e[0]),y:parseFloat(e[1])}):null},C=function(e){if(e[0]!==`<`&&e[1]!==`(`)return null;for(var t=`(`,n=``,r=!1,i=2;i<e.length-1;i++){if(r||(t+=e[i]),e[i]===`)`){r=!0;continue}else if(!r)continue;e[i]!==`,`&&(n+=e[i])}var a=S(t);return a.radius=parseFloat(n),a};t.exports={init:function(e){e(20,b),e(21,y),e(23,y),e(26,y),e(700,parseFloat),e(701,parseFloat),e(16,c),e(1082,i),e(1114,i),e(1184,i),e(600,S),e(651,h),e(718,C),e(1e3,l),e(1001,v),e(1005,d),e(1007,d),e(1028,d),e(1016,f),e(1017,p),e(1021,m),e(1022,m),e(1231,m),e(1014,h),e(1015,h),e(1008,h),e(1009,h),e(1040,h),e(1041,h),e(1115,g),e(1182,g),e(1185,g),e(1186,a),e(1187,_),e(17,o),e(114,JSON.parse.bind(JSON)),e(3802,JSON.parse.bind(JSON)),e(199,x),e(3807,x),e(3907,h),e(2951,h),e(791,h),e(1183,h),e(1270,h)}}})),Zr=r(((e,t)=>{var n=1e6;function r(e){var t=e.readInt32BE(0),r=e.readUInt32BE(4),i=``;t<0&&(t=~t+(r===0),r=~r+1>>>0,i=`-`);var a=``,o=t%n,s,c,l,u,d;if(t=t/n>>>0,s=4294967296*o+r,r=s/n>>>0,c=``+(s-n*r),r===0&&t===0)return i+c+a;for(l=``,u=6-c.length,d=0;d<u;d++)l+=`0`;if(a=l+c+a,o=t%n,t=t/n>>>0,s=4294967296*o+r,r=s/n>>>0,c=``+(s-n*r),r===0&&t===0)return i+c+a;for(l=``,u=6-c.length,d=0;d<u;d++)l+=`0`;if(a=l+c+a,o=t%n,t=t/n>>>0,s=4294967296*o+r,r=s/n>>>0,c=``+(s-n*r),r===0&&t===0)return i+c+a;for(l=``,u=6-c.length,d=0;d<u;d++)l+=`0`;return a=l+c+a,o=t%n,s=4294967296*o+r,c=``+s%n,i+c+a}t.exports=r})),Qr=r(((e,t)=>{var n=Zr(),r=function(e,t,n,r,i){n||=0,r||=!1,i||=function(e,t,n){return e*2**n+t};var a=n>>3,o=function(e){return r?~e&255:e},s=255,c=8-n%8;t<c&&(s=255<<8-t&255,c=t),n&&(s>>=n%8);var l=0;n%8+t>=8&&(l=i(0,o(e[a])&s,c));for(var u=t+n>>3,d=a+1;d<u;d++)l=i(l,o(e[d]),8);var f=(t+n)%8;return f>0&&(l=i(l,o(e[u])>>8-f,f)),l},i=function(e,t,n){var i=2**(n-1)-1,a=r(e,1),o=r(e,n,1);if(o===0)return 0;var s=1,c=r(e,t,n+1,!1,function(e,t,n){e===0&&(e=1);for(var r=1;r<=n;r++)s/=2,(t&1<<n-r)>0&&(e+=s);return e});return o==2**(n+1)-1?c===0?a===0?1/0:-1/0:NaN:(a===0?1:-1)*2**(o-i)*c},a=function(e){return r(e,1)==1?-1*(r(e,15,1,!0)+1):r(e,15,1)},o=function(e){return r(e,1)==1?-1*(r(e,31,1,!0)+1):r(e,31,1)},s=function(e){return i(e,23,8)},c=function(e){return i(e,52,11)},l=function(e){var t=r(e,16,32);if(t==49152)return NaN;for(var n=1e4**r(e,16,16),i=0,a=r(e,16),o=0;o<a;o++)i+=r(e,16,64+16*o)*n,n/=1e4;var s=10**r(e,16,48);return(t===0?1:-1)*Math.round(i*s)/s},u=function(e,t){var n=r(t,1),i=r(t,63,1),a=new Date((n===0?1:-1)*i/1e3+9466848e5);return e||a.setTime(a.getTime()+a.getTimezoneOffset()*6e4),a.usec=i%1e3,a.getMicroSeconds=function(){return this.usec},a.setMicroSeconds=function(e){this.usec=e},a.getUTCMicroSeconds=function(){return this.usec},a},d=function(e){var t=r(e,32);r(e,32,32);for(var n=r(e,32,64),i=96,a=[],o=0;o<t;o++)a[o]=r(e,32,i),i+=32,i+=32;var s=function(t){var n=r(e,32,i);if(i+=32,n==4294967295)return null;var a;if(t==23||t==20)return a=r(e,n*8,i),i+=n*8,a;if(t==25)return a=e.toString(this.encoding,i>>3,(i+=n<<3)>>3),a;console.log(`ERROR: ElementType not implemented: `+t)},c=function(e,t){var n=[],r;if(e.length>1){var i=e.shift();for(r=0;r<i;r++)n[r]=c(e,t);e.unshift(i)}else for(r=0;r<e[0];r++)n[r]=s(t);return n};return c(a,n)},f=function(e){return e.toString(`utf8`)},p=function(e){return e===null?null:r(e,8)>0};t.exports={init:function(e){e(20,n),e(21,a),e(23,o),e(26,o),e(1700,l),e(700,s),e(701,c),e(16,p),e(1114,u.bind(null,!1)),e(1184,u.bind(null,!0)),e(1e3,d),e(1007,d),e(1016,d),e(1008,d),e(1009,d),e(25,f)}}})),$r=r(((e,t)=>{t.exports={BOOL:16,BYTEA:17,CHAR:18,INT8:20,INT2:21,INT4:23,REGPROC:24,TEXT:25,OID:26,TID:27,XID:28,CID:29,JSON:114,XML:142,PG_NODE_TREE:194,SMGR:210,PATH:602,POLYGON:604,CIDR:650,FLOAT4:700,FLOAT8:701,ABSTIME:702,RELTIME:703,TINTERVAL:704,CIRCLE:718,MACADDR8:774,MONEY:790,MACADDR:829,INET:869,ACLITEM:1033,BPCHAR:1042,VARCHAR:1043,DATE:1082,TIME:1083,TIMESTAMP:1114,TIMESTAMPTZ:1184,INTERVAL:1186,TIMETZ:1266,BIT:1560,VARBIT:1562,NUMERIC:1700,REFCURSOR:1790,REGPROCEDURE:2202,REGOPER:2203,REGOPERATOR:2204,REGCLASS:2205,REGTYPE:2206,UUID:2950,TXID_SNAPSHOT:2970,PG_LSN:3220,PG_NDISTINCT:3361,PG_DEPENDENCIES:3402,TSVECTOR:3614,TSQUERY:3615,GTSVECTOR:3642,REGCONFIG:3734,REGDICTIONARY:3769,JSONB:3802,REGNAMESPACE:4089,REGROLE:4096}})),ei=r((e=>{var t=Xr(),n=Qr(),r=Gr(),i=$r();e.getTypeParser=s,e.setTypeParser=c,e.arrayParser=r,e.builtins=i;var a={text:{},binary:{}};function o(e){return String(e)}function s(e,t){return t||=`text`,a[t]&&a[t][e]||o}function c(e,t,n){typeof t==`function`&&(n=t,t=`text`),a[t][e]=n}t.init(function(e,t){a.text[e]=t}),n.init(function(e,t){a.binary[e]=t})})),ti=r(((e,t)=>{t.exports={host:`localhost`,user:process.platform===`win32`?process.env.USERNAME:process.env.USER,database:void 0,password:null,connectionString:void 0,port:5432,rows:0,binary:!1,max:10,idleTimeoutMillis:3e4,client_encoding:``,ssl:!1,application_name:void 0,fallback_application_name:void 0,options:void 0,parseInputDatesAsUTC:!1,statement_timeout:!1,lock_timeout:!1,idle_in_transaction_session_timeout:!1,query_timeout:!1,connect_timeout:0,keepalives:1,keepalives_idle:0};let n=ei(),r=n.getTypeParser(20,`text`),i=n.getTypeParser(1016,`text`);t.exports.__defineSetter__(`parseInt8`,function(e){n.setTypeParser(20,`text`,e?n.getTypeParser(23,`text`):r),n.setTypeParser(1016,`text`,e?n.getTypeParser(1007,`text`):i)})})),ni=r(((e,n)=>{let r=ti(),i=t(`util`),{isDate:a}=i.types||i;function o(e){return`"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)+`"`}function s(e){let t=`{`;for(let n=0;n<e.length;n++)if(n>0&&(t+=`,`),e[n]===null||e[n]===void 0)t+=`NULL`;else if(Array.isArray(e[n]))t+=s(e[n]);else if(ArrayBuffer.isView(e[n])){let r=e[n];if(!(r instanceof Buffer)){let e=Buffer.from(r.buffer,r.byteOffset,r.byteLength);r=e.length===r.byteLength?e:e.slice(r.byteOffset,r.byteOffset+r.byteLength)}t+=`\\\\x`+r.toString(`hex`)}else t+=o(c(e[n]));return t+=`}`,t}let c=function(e,t){if(e==null)return null;if(typeof e==`object`){if(e instanceof Buffer)return e;if(ArrayBuffer.isView(e)){let t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.length===e.byteLength?t:t.slice(e.byteOffset,e.byteOffset+e.byteLength)}return a(e)?r.parseInputDatesAsUTC?d(e):u(e):Array.isArray(e)?s(e):l(e,t)}return e.toString()};function l(e,t){if(e&&typeof e.toPostgres==`function`){if(t||=[],t.indexOf(e)!==-1)throw Error(`circular reference detected while preparing "`+e+`" for query`);return t.push(e),c(e.toPostgres(c),t)}return JSON.stringify(e)}function u(e){let t=-e.getTimezoneOffset(),n=e.getFullYear(),r=n<1;r&&(n=Math.abs(n)+1);let i=String(n).padStart(4,`0`)+`-`+String(e.getMonth()+1).padStart(2,`0`)+`-`+String(e.getDate()).padStart(2,`0`)+`T`+String(e.getHours()).padStart(2,`0`)+`:`+String(e.getMinutes()).padStart(2,`0`)+`:`+String(e.getSeconds()).padStart(2,`0`)+`.`+String(e.getMilliseconds()).padStart(3,`0`);return t<0?(i+=`-`,t*=-1):i+=`+`,i+=String(Math.floor(t/60)).padStart(2,`0`)+`:`+String(t%60).padStart(2,`0`),r&&(i+=` BC`),i}function d(e){let t=e.getUTCFullYear(),n=t<1;n&&(t=Math.abs(t)+1);let r=String(t).padStart(4,`0`)+`-`+String(e.getUTCMonth()+1).padStart(2,`0`)+`-`+String(e.getUTCDate()).padStart(2,`0`)+`T`+String(e.getUTCHours()).padStart(2,`0`)+`:`+String(e.getUTCMinutes()).padStart(2,`0`)+`:`+String(e.getUTCSeconds()).padStart(2,`0`)+`.`+String(e.getUTCMilliseconds()).padStart(3,`0`);return r+=`+00:00`,n&&(r+=` BC`),r}function f(e,t,n){return e=typeof e==`string`?{text:e}:e,t&&(typeof t==`function`?e.callback=t:e.values=t),n&&(e.callback=n),e}n.exports={prepareValue:function(e){return c(e)},normalizeQueryConfig:f,escapeIdentifier:function(e){return`"`+e.replace(/"/g,`""`)+`"`},escapeLiteral:function(e){let t=!1,n=`'`;if(e==null||typeof e!=`string`)return`''`;for(let r=0;r<e.length;r++){let i=e[r];i===`'`?n+=i+i:i===`\\`?(n+=i+i,t=!0):n+=i}return n+=`'`,t===!0&&(n=` E`+n),n}}})),ri=r(((e,n)=>{let r=t(`crypto`);function i(e){return r.createHash(`md5`).update(e,`utf-8`).digest(`hex`)}function a(e,t,n){let r=i(t+e);return`md5`+i(Buffer.concat([Buffer.from(r),n]))}function o(e){return r.createHash(`sha256`).update(e).digest()}function s(e,t){return e=e.replace(/(\D)-/,`$1`),r.createHash(e).update(t).digest()}function c(e,t){return r.createHmac(`sha256`,e).update(t).digest()}async function l(e,t,n){return r.pbkdf2Sync(e,t,n,32,`sha256`)}n.exports={postgresMd5PasswordHash:a,randomBytes:r.randomBytes,deriveKey:l,sha256:o,hashByName:s,hmacSha256:c,md5:i}})),ii=r(((e,n)=>{let r=t(`crypto`);n.exports={postgresMd5PasswordHash:l,randomBytes:s,deriveKey:p,sha256:u,hashByName:d,hmacSha256:f,md5:c};let i=r.webcrypto||globalThis.crypto,a=i.subtle,o=new TextEncoder;function s(e){return i.getRandomValues(Buffer.alloc(e))}async function c(e){try{return r.createHash(`md5`).update(e,`utf-8`).digest(`hex`)}catch{let t=typeof e==`string`?o.encode(e):e,n=await a.digest(`MD5`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}}async function l(e,t,n){let r=await c(t+e);return`md5`+await c(Buffer.concat([Buffer.from(r),n]))}async function u(e){return await a.digest(`SHA-256`,e)}async function d(e,t){return await a.digest(e,t)}async function f(e,t){let n=await a.importKey(`raw`,e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]);return await a.sign(`HMAC`,n,o.encode(t))}async function p(e,t,n){let r=await a.importKey(`raw`,o.encode(e),`PBKDF2`,!1,[`deriveBits`]),i={name:`PBKDF2`,hash:`SHA-256`,salt:t,iterations:n};return await a.deriveBits(i,r,256,[`deriveBits`])}})),ai=r(((e,t)=>{parseInt(process.versions&&process.versions.node&&process.versions.node.split(`.`)[0])<15?t.exports=ri():t.exports=ii()})),oi=r(((e,t)=>{function n(e,t){return Error(`SASL channel binding: `+e+` when parsing public certificate `+t.toString(`base64`))}function r(e,t){let r=e[t++];if(r<128)return{length:r,index:t};let i=r&127;if(i>4)throw n(`bad length`,e);r=0;for(let n=0;n<i;n++)r=r<<8|e[t++];return{length:r,index:t}}function i(e,t){if(e[t++]!==6)throw n(`non-OID data`,e);let{length:i,index:a}=r(e,t);t=a;let o=t+i,s=e[t++],c=(s/40>>0)+`.`+s%40;for(;t<o;){let n=0;for(;t<o;){let r=e[t++];if(n=n<<7|r&127,r<128)break}c+=`.`+n}return{oid:c,index:t}}function a(e,t){if(e[t++]!==48)throw n(`non-sequence data`,e);return r(e,t)}function o(e,t){t===void 0&&(t=0),t=a(e,t).index;let{length:o,index:s}=a(e,t);t=s+o,t=a(e,t).index;let{oid:c,index:l}=i(e,t);switch(c){case`1.2.840.113549.1.1.4`:return`MD5`;case`1.2.840.113549.1.1.5`:return`SHA-1`;case`1.2.840.113549.1.1.11`:return`SHA-256`;case`1.2.840.113549.1.1.12`:return`SHA-384`;case`1.2.840.113549.1.1.13`:return`SHA-512`;case`1.2.840.113549.1.1.14`:return`SHA-224`;case`1.2.840.113549.1.1.15`:return`SHA512-224`;case`1.2.840.113549.1.1.16`:return`SHA512-256`;case`1.2.840.10045.4.1`:return`SHA-1`;case`1.2.840.10045.4.3.1`:return`SHA-224`;case`1.2.840.10045.4.3.2`:return`SHA-256`;case`1.2.840.10045.4.3.3`:return`SHA-384`;case`1.2.840.10045.4.3.4`:return`SHA-512`;case`1.2.840.113549.1.1.10`:{if(t=l,t=a(e,t).index,e[t++]!==160)throw n(`non-tag data`,e);t=r(e,t).index,t=a(e,t).index;let{oid:o}=i(e,t);switch(o){case`1.2.840.113549.2.5`:return`MD5`;case`1.3.14.3.2.26`:return`SHA-1`;case`2.16.840.1.101.3.4.2.1`:return`SHA-256`;case`2.16.840.1.101.3.4.2.2`:return`SHA-384`;case`2.16.840.1.101.3.4.2.3`:return`SHA-512`}throw n(`unknown hash OID `+o,e)}case`1.3.101.110`:case`1.3.101.112`:return`SHA-512`;case`1.3.101.111`:case`1.3.101.113`:throw n(`Ed448 certificate channel binding is not currently supported by Postgres`)}throw n(`unknown OID `+c,e)}t.exports={signatureAlgorithmHashFromCertificate:o}})),si=r(((e,t)=>{let n=ai(),{signatureAlgorithmHashFromCertificate:r}=oi();function i(e,t){let r=[`SCRAM-SHA-256`];t&&r.unshift(`SCRAM-SHA-256-PLUS`);let i=r.find(t=>e.includes(t));if(!i)throw Error(`SASL: Only mechanism(s) `+r.join(` and `)+` are supported`);if(i===`SCRAM-SHA-256-PLUS`&&typeof t.getPeerCertificate!=`function`)throw Error(`SASL: Mechanism SCRAM-SHA-256-PLUS requires a certificate`);let a=n.randomBytes(18).toString(`base64`);return{mechanism:i,clientNonce:a,response:(i===`SCRAM-SHA-256-PLUS`?`p=tls-server-end-point`:t?`y`:`n`)+`,,n=*,r=`+a,message:`SASLInitialResponse`}}async function a(e,t,i,a){if(e.message!==`SASLInitialResponse`)throw Error(`SASL: Last message was not SASLInitialResponse`);if(typeof t!=`string`)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string`);if(t===``)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a non-empty string`);if(typeof i!=`string`)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: serverData must be a string`);let o=u(i);if(o.nonce.startsWith(e.clientNonce)){if(o.nonce.length===e.clientNonce.length)throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce is too short`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce does not start with client nonce`);let s=`n=*,r=`+e.clientNonce,c=`r=`+o.nonce+`,s=`+o.salt+`,i=`+o.iteration,l=a?`eSws`:`biws`;if(e.mechanism===`SCRAM-SHA-256-PLUS`){let e=a.getPeerCertificate().raw,t=r(e);(t===`MD5`||t===`SHA-1`)&&(t=`SHA-256`);let i=await n.hashByName(t,e);l=Buffer.concat([Buffer.from(`p=tls-server-end-point,,`),Buffer.from(i)]).toString(`base64`)}let d=`c=`+l+`,r=`+o.nonce,p=s+`,`+c+`,`+d,m=Buffer.from(o.salt,`base64`),h=await n.deriveKey(t,m,o.iteration),g=await n.hmacSha256(h,`Client Key`),_=await n.sha256(g),v=await n.hmacSha256(_,p),y=f(Buffer.from(g),Buffer.from(v)).toString(`base64`),b=await n.hmacSha256(h,`Server Key`),x=await n.hmacSha256(b,p);e.message=`SASLResponse`,e.serverSignature=Buffer.from(x).toString(`base64`),e.response=d+`,p=`+y}function o(e,t){if(e.message!==`SASLResponse`)throw Error(`SASL: Last message was not SASLResponse`);if(typeof t!=`string`)throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: serverData must be a string`);let{serverSignature:n}=d(t);if(n!==e.serverSignature)throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature does not match`)}function s(e){if(typeof e!=`string`)throw TypeError(`SASL: text must be a string`);return e.split(``).map((t,n)=>e.charCodeAt(n)).every(e=>e>=33&&e<=43||e>=45&&e<=126)}function c(e){return/^(?:[a-zA-Z0-9+/]{4})*(?:[a-zA-Z0-9+/]{2}==|[a-zA-Z0-9+/]{3}=)?$/.test(e)}function l(e){if(typeof e!=`string`)throw TypeError(`SASL: attribute pairs text must be a string`);return new Map(e.split(`,`).map(e=>{if(!/^.=/.test(e))throw Error(`SASL: Invalid attribute pair entry`);return[e[0],e.substring(2)]}))}function u(e){let t=l(e),n=t.get(`r`);if(n){if(!s(n))throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: nonce must only contain printable characters`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: nonce missing`);let r=t.get(`s`);if(r){if(!c(r))throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: salt must be base64`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: salt missing`);let i=t.get(`i`);if(i){if(!/^[1-9][0-9]*$/.test(i))throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: invalid iteration count`)}else throw Error(`SASL: SCRAM-SERVER-FIRST-MESSAGE: iteration missing`);return{nonce:n,salt:r,iteration:parseInt(i,10)}}function d(e){let t=l(e).get(`v`);if(t){if(!c(t))throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature must be base64`)}else throw Error(`SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature is missing`);return{serverSignature:t}}function f(e,t){if(!Buffer.isBuffer(e))throw TypeError(`first argument must be a Buffer`);if(!Buffer.isBuffer(t))throw TypeError(`second argument must be a Buffer`);if(e.length!==t.length)throw Error(`Buffer lengths must match`);if(e.length===0)throw Error(`Buffers cannot be empty`);return Buffer.from(e.map((n,r)=>e[r]^t[r]))}t.exports={startSession:i,continueSession:a,finalizeSession:o}})),ci=r(((e,t)=>{let n=ei();function r(e){this._types=e||n,this.text={},this.binary={}}r.prototype.getOverrides=function(e){switch(e){case`text`:return this.text;case`binary`:return this.binary;default:return{}}},r.prototype.setTypeParser=function(e,t,n){typeof t==`function`&&(n=t,t=`text`),this.getOverrides(t)[e]=n},r.prototype.getTypeParser=function(e,t){return t||=`text`,this.getOverrides(t)[e]||this._types.getTypeParser(e,t)},t.exports=r})),li=r(((e,n)=>{function r(e,n={}){if(e.charAt(0)===`/`){let t=e.split(` `);return{host:t[0],database:t[1]}}let r={},i,a=!1;/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(e)&&(e=encodeURI(e).replace(/%25(\d\d)/g,`%$1`));try{try{i=new URL(e,`postgres://base`)}catch{i=new URL(e.replace(`@/`,`@___DUMMY___/`),`postgres://base`),a=!0}}catch(e){e.input&&=`*****REDACTED*****`}for(let e of i.searchParams.entries())r[e[0]]=e[1];if(r.user=r.user||decodeURIComponent(i.username),r.password=r.password||decodeURIComponent(i.password),i.protocol==`socket:`)return r.host=decodeURI(i.pathname),r.database=i.searchParams.get(`db`),r.client_encoding=i.searchParams.get(`encoding`),r;let o=a?``:i.hostname;r.host?o&&/^%2f/i.test(o)&&(i.pathname=o+i.pathname):r.host=decodeURIComponent(o),r.port||=i.port;let s=i.pathname.slice(1)||null;r.database=s?decodeURI(s):null,(r.ssl===`true`||r.ssl===`1`)&&(r.ssl=!0),r.ssl===`0`&&(r.ssl=!1),(r.sslcert||r.sslkey||r.sslrootcert||r.sslmode)&&(r.ssl={});let c=r.sslcert||r.sslkey||r.sslrootcert?t(`fs`):null;if(r.sslcert&&(r.ssl.cert=c.readFileSync(r.sslcert).toString()),r.sslkey&&(r.ssl.key=c.readFileSync(r.sslkey).toString()),r.sslrootcert&&(r.ssl.ca=c.readFileSync(r.sslrootcert).toString()),n.useLibpqCompat&&r.uselibpqcompat)throw Error(`Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.`);if(r.uselibpqcompat===`true`||n.useLibpqCompat)switch(r.sslmode){case`disable`:r.ssl=!1;break;case`prefer`:r.ssl.rejectUnauthorized=!1;break;case`require`:r.sslrootcert?r.ssl.checkServerIdentity=function(){}:r.ssl.rejectUnauthorized=!1;break;case`verify-ca`:if(!r.ssl.ca)throw Error(`SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security.`);r.ssl.checkServerIdentity=function(){};break;case`verify-full`:break}else switch(r.sslmode){case`disable`:r.ssl=!1;break;case`prefer`:case`require`:case`verify-ca`:case`verify-full`:break;case`no-verify`:r.ssl.rejectUnauthorized=!1;break}return r}function i(e){return Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[t]=n),e),{})}function a(e){return Object.entries(e).reduce((e,[t,n])=>{if(t===`ssl`){let r=n;typeof r==`boolean`&&(e[t]=r),typeof r==`object`&&(e[t]=i(r))}else if(n!=null)if(t===`port`){if(n!==``){let r=parseInt(n,10);if(isNaN(r))throw Error(`Invalid ${t}: ${n}`);e[t]=r}}else e[t]=n;return e},{})}function o(e){return a(r(e))}n.exports=r,r.parse=r,r.toClientConfig=a,r.parseIntoClientConfig=o})),ui=r(((e,n)=>{let r=t(`dns`),i=ti(),a=li().parse,o=function(e,t,n){return n===void 0?n=process.env[`PG`+e.toUpperCase()]:n===!1||(n=process.env[n]),t[e]||n||i[e]},s=function(){switch(process.env.PGSSLMODE){case`disable`:return!1;case`prefer`:case`require`:case`verify-ca`:case`verify-full`:return!0;case`no-verify`:return{rejectUnauthorized:!1}}return i.ssl},c=function(e){return`'`+(``+e).replace(/\\/g,`\\\\`).replace(/'/g,`\\'`)+`'`},l=function(e,t,n){let r=t[n];r!=null&&e.push(n+`=`+c(r))};n.exports=class{constructor(e){e=typeof e==`string`?a(e):e||{},e.connectionString&&(e=Object.assign({},e,a(e.connectionString))),this.user=o(`user`,e),this.database=o(`database`,e),this.database===void 0&&(this.database=this.user),this.port=parseInt(o(`port`,e),10),this.host=o(`host`,e),Object.defineProperty(this,`password`,{configurable:!0,enumerable:!1,writable:!0,value:o(`password`,e)}),this.binary=o(`binary`,e),this.options=o(`options`,e),this.ssl=e.ssl===void 0?s():e.ssl,typeof this.ssl==`string`&&this.ssl===`true`&&(this.ssl=!0),this.ssl===`no-verify`&&(this.ssl={rejectUnauthorized:!1}),this.ssl&&this.ssl.key&&Object.defineProperty(this.ssl,`key`,{enumerable:!1}),this.client_encoding=o(`client_encoding`,e),this.replication=o(`replication`,e),this.isDomainSocket=!(this.host||``).indexOf(`/`),this.application_name=o(`application_name`,e,`PGAPPNAME`),this.fallback_application_name=o(`fallback_application_name`,e,!1),this.statement_timeout=o(`statement_timeout`,e,!1),this.lock_timeout=o(`lock_timeout`,e,!1),this.idle_in_transaction_session_timeout=o(`idle_in_transaction_session_timeout`,e,!1),this.query_timeout=o(`query_timeout`,e,!1),e.connectionTimeoutMillis===void 0?this.connect_timeout=process.env.PGCONNECT_TIMEOUT||0:this.connect_timeout=Math.floor(e.connectionTimeoutMillis/1e3),e.keepAlive===!1?this.keepalives=0:e.keepAlive===!0&&(this.keepalives=1),typeof e.keepAliveInitialDelayMillis==`number`&&(this.keepalives_idle=Math.floor(e.keepAliveInitialDelayMillis/1e3))}getLibpqConnectionString(e){let t=[];l(t,this,`user`),l(t,this,`password`),l(t,this,`port`),l(t,this,`application_name`),l(t,this,`fallback_application_name`),l(t,this,`connect_timeout`),l(t,this,`options`);let n=typeof this.ssl==`object`?this.ssl:this.ssl?{sslmode:this.ssl}:{};if(l(t,n,`sslmode`),l(t,n,`sslca`),l(t,n,`sslkey`),l(t,n,`sslcert`),l(t,n,`sslrootcert`),this.database&&t.push(`dbname=`+c(this.database)),this.replication&&t.push(`replication=`+c(this.replication)),this.host&&t.push(`host=`+c(this.host)),this.isDomainSocket)return e(null,t.join(` `));this.client_encoding&&t.push(`client_encoding=`+c(this.client_encoding)),r.lookup(this.host,function(n,r){return n?e(n,null):(t.push(`hostaddr=`+c(r)),e(null,t.join(` `)))})}}})),di=r(((e,t)=>{let n=ei(),r=/^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/;t.exports=class{constructor(e,t){this.command=null,this.rowCount=null,this.oid=null,this.rows=[],this.fields=[],this._parsers=void 0,this._types=t,this.RowCtor=null,this.rowAsArray=e===`array`,this.rowAsArray&&(this.parseRow=this._parseRowAsArray),this._prebuiltEmptyResultObject=null}addCommandComplete(e){let t;t=e.text?r.exec(e.text):r.exec(e.command),t&&(this.command=t[1],t[3]?(this.oid=parseInt(t[2],10),this.rowCount=parseInt(t[3],10)):t[2]&&(this.rowCount=parseInt(t[2],10)))}_parseRowAsArray(e){let t=Array(e.length);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===null?t[n]=null:t[n]=this._parsers[n](r)}return t}parseRow(e){let t={...this._prebuiltEmptyResultObject};for(let n=0,r=e.length;n<r;n++){let r=e[n],i=this.fields[n].name;if(r!==null){let e=this.fields[n].format===`binary`?Buffer.from(r):r;t[i]=this._parsers[n](e)}else t[i]=null}return t}addRow(e){this.rows.push(e)}addFields(e){this.fields=e,this.fields.length&&(this._parsers=Array(e.length));let t={};for(let r=0;r<e.length;r++){let i=e[r];t[i.name]=null,this._types?this._parsers[r]=this._types.getTypeParser(i.dataTypeID,i.format||`text`):this._parsers[r]=n.getTypeParser(i.dataTypeID,i.format||`text`)}this._prebuiltEmptyResultObject={...t}}}})),fi=r(((e,n)=>{let{EventEmitter:r}=t(`events`),i=di(),a=ni();n.exports=class extends r{constructor(e,t,n){super(),e=a.normalizeQueryConfig(e,t,n),this.text=e.text,this.values=e.values,this.rows=e.rows,this.types=e.types,this.name=e.name,this.queryMode=e.queryMode,this.binary=e.binary,this.portal=e.portal||``,this.callback=e.callback,this._rowMode=e.rowMode,process.domain&&e.callback&&(this.callback=process.domain.bind(e.callback)),this._result=new i(this._rowMode,this.types),this._results=this._result,this._canceledDueToError=!1}requiresPreparation(){return this.queryMode===`extended`||this.name||this.rows?!0:!this.text||!this.values?!1:this.values.length>0}_checkForMultirow(){this._result.command&&(Array.isArray(this._results)||(this._results=[this._result]),this._result=new i(this._rowMode,this._result._types),this._results.push(this._result))}handleRowDescription(e){this._checkForMultirow(),this._result.addFields(e.fields),this._accumulateRows=this.callback||!this.listeners(`row`).length}handleDataRow(e){let t;if(!this._canceledDueToError){try{t=this._result.parseRow(e.fields)}catch(e){this._canceledDueToError=e;return}this.emit(`row`,t,this._result),this._accumulateRows&&this._result.addRow(t)}}handleCommandComplete(e,t){this._checkForMultirow(),this._result.addCommandComplete(e),this.rows&&t.sync()}handleEmptyQuery(e){this.rows&&e.sync()}handleError(e,t){if(this._canceledDueToError&&=(e=this._canceledDueToError,!1),this.callback)return this.callback(e);this.emit(`error`,e)}handleReadyForQuery(e){if(this._canceledDueToError)return this.handleError(this._canceledDueToError,e);if(this.callback)try{this.callback(null,this._results)}catch(e){process.nextTick(()=>{throw e})}this.emit(`end`,this._results)}submit(e){if(typeof this.text!=`string`&&typeof this.name!=`string`)return Error(`A query must have either text or a name. Supplying neither is unsupported.`);let t=e.parsedStatements[this.name];if(this.text&&t&&this.text!==t)return Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);if(this.values&&!Array.isArray(this.values))return Error(`Query values must be an array`);if(this.requiresPreparation()){e.stream.cork&&e.stream.cork();try{this.prepare(e)}finally{e.stream.uncork&&e.stream.uncork()}}else e.query(this.text);return null}hasBeenParsed(e){return this.name&&e.parsedStatements[this.name]}handlePortalSuspended(e){this._getRows(e,this.rows)}_getRows(e,t){e.execute({portal:this.portal,rows:t}),t?e.flush():e.sync()}prepare(e){this.hasBeenParsed(e)||e.parse({text:this.text,name:this.name,types:this.types});try{e.bind({portal:this.portal,statement:this.name,values:this.values,binary:this.binary,valueMapper:a.prepareValue})}catch(t){this.handleError(t,e);return}e.describe({type:`P`,name:this.portal||``}),this._getRows(e,this.rows)}handleCopyInResponse(e){e.sendCopyFail(`No source stream defined`)}handleCopyData(e,t){}}})),pi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoticeMessage=e.DataRowMessage=e.CommandCompleteMessage=e.ReadyForQueryMessage=e.NotificationResponseMessage=e.BackendKeyDataMessage=e.AuthenticationMD5Password=e.ParameterStatusMessage=e.ParameterDescriptionMessage=e.RowDescriptionMessage=e.Field=e.CopyResponse=e.CopyDataMessage=e.DatabaseError=e.copyDone=e.emptyQuery=e.replicationStart=e.portalSuspended=e.noData=e.closeComplete=e.bindComplete=e.parseComplete=void 0,e.parseComplete={name:`parseComplete`,length:5},e.bindComplete={name:`bindComplete`,length:5},e.closeComplete={name:`closeComplete`,length:5},e.noData={name:`noData`,length:5},e.portalSuspended={name:`portalSuspended`,length:5},e.replicationStart={name:`replicationStart`,length:4},e.emptyQuery={name:`emptyQuery`,length:4},e.copyDone={name:`copyDone`,length:4},e.DatabaseError=class extends Error{constructor(e,t,n){super(e),this.length=t,this.name=n}},e.CopyDataMessage=class{constructor(e,t){this.length=e,this.chunk=t,this.name=`copyData`}},e.CopyResponse=class{constructor(e,t,n,r){this.length=e,this.name=t,this.binary=n,this.columnTypes=Array(r)}},e.Field=class{constructor(e,t,n,r,i,a,o){this.name=e,this.tableID=t,this.columnID=n,this.dataTypeID=r,this.dataTypeSize=i,this.dataTypeModifier=a,this.format=o}},e.RowDescriptionMessage=class{constructor(e,t){this.length=e,this.fieldCount=t,this.name=`rowDescription`,this.fields=Array(this.fieldCount)}},e.ParameterDescriptionMessage=class{constructor(e,t){this.length=e,this.parameterCount=t,this.name=`parameterDescription`,this.dataTypeIDs=Array(this.parameterCount)}},e.ParameterStatusMessage=class{constructor(e,t,n){this.length=e,this.parameterName=t,this.parameterValue=n,this.name=`parameterStatus`}},e.AuthenticationMD5Password=class{constructor(e,t){this.length=e,this.salt=t,this.name=`authenticationMD5Password`}},e.BackendKeyDataMessage=class{constructor(e,t,n){this.length=e,this.processID=t,this.secretKey=n,this.name=`backendKeyData`}},e.NotificationResponseMessage=class{constructor(e,t,n,r){this.length=e,this.processId=t,this.channel=n,this.payload=r,this.name=`notification`}},e.ReadyForQueryMessage=class{constructor(e,t){this.length=e,this.status=t,this.name=`readyForQuery`}},e.CommandCompleteMessage=class{constructor(e,t){this.length=e,this.text=t,this.name=`commandComplete`}},e.DataRowMessage=class{constructor(e,t){this.length=e,this.fields=t,this.name=`dataRow`,this.fieldCount=t.length}},e.NoticeMessage=class{constructor(e,t){this.length=e,this.message=t,this.name=`notice`}}})),mi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Writer=void 0,e.Writer=class{constructor(e=256){this.size=e,this.offset=5,this.headerPosition=0,this.buffer=Buffer.allocUnsafe(e)}ensure(e){if(this.buffer.length-this.offset<e){let t=this.buffer,n=t.length+(t.length>>1)+e;this.buffer=Buffer.allocUnsafe(n),t.copy(this.buffer)}}addInt32(e){return this.ensure(4),this.buffer[this.offset++]=e>>>24&255,this.buffer[this.offset++]=e>>>16&255,this.buffer[this.offset++]=e>>>8&255,this.buffer[this.offset++]=e>>>0&255,this}addInt16(e){return this.ensure(2),this.buffer[this.offset++]=e>>>8&255,this.buffer[this.offset++]=e>>>0&255,this}addCString(e){if(!e)this.ensure(1);else{let t=Buffer.byteLength(e);this.ensure(t+1),this.buffer.write(e,this.offset,`utf-8`),this.offset+=t}return this.buffer[this.offset++]=0,this}addString(e=``){let t=Buffer.byteLength(e);return this.ensure(t),this.buffer.write(e,this.offset),this.offset+=t,this}add(e){return this.ensure(e.length),e.copy(this.buffer,this.offset),this.offset+=e.length,this}join(e){if(e){this.buffer[this.headerPosition]=e;let t=this.offset-(this.headerPosition+1);this.buffer.writeInt32BE(t,this.headerPosition+1)}return this.buffer.slice(e?0:5,this.offset)}flush(e){let t=this.join(e);return this.offset=5,this.headerPosition=0,this.buffer=Buffer.allocUnsafe(this.size),t}}})),hi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serialize=void 0;let t=mi(),n=new t.Writer,r=e=>{n.addInt16(3).addInt16(0);for(let t of Object.keys(e))n.addCString(t).addCString(e[t]);n.addCString(`client_encoding`).addCString(`UTF8`);let r=n.addCString(``).flush(),i=r.length+4;return new t.Writer().addInt32(i).add(r).flush()},i=()=>{let e=Buffer.allocUnsafe(8);return e.writeInt32BE(8,0),e.writeInt32BE(80877103,4),e},a=e=>n.addCString(e).flush(112),o=function(e,t){return n.addCString(e).addInt32(Buffer.byteLength(t)).addString(t),n.flush(112)},s=function(e){return n.addString(e).flush(112)},c=e=>n.addCString(e).flush(81),l=[],u=e=>{let t=e.name||``;t.length>63&&(console.error(`Warning! Postgres only supports 63 characters for query names.`),console.error(`You supplied %s (%s)`,t,t.length),console.error(`This can cause conflicts and silent errors executing queries`));let r=e.types||l,i=r.length,a=n.addCString(t).addCString(e.text).addInt16(i);for(let e=0;e<i;e++)a.addInt32(r[e]);return n.flush(80)},d=new t.Writer,f=function(e,t){for(let r=0;r<e.length;r++){let i=t?t(e[r],r):e[r];i==null?(n.addInt16(0),d.addInt32(-1)):i instanceof Buffer?(n.addInt16(1),d.addInt32(i.length),d.add(i)):(n.addInt16(0),d.addInt32(Buffer.byteLength(i)),d.addString(i))}},p=(e={})=>{let t=e.portal||``,r=e.statement||``,i=e.binary||!1,a=e.values||l,o=a.length;return n.addCString(t).addCString(r),n.addInt16(o),f(a,e.valueMapper),n.addInt16(o),n.add(d.flush()),n.addInt16(1),n.addInt16(i?1:0),n.flush(66)},m=Buffer.from([69,0,0,0,9,0,0,0,0,0]),h=e=>{if(!e||!e.portal&&!e.rows)return m;let t=e.portal||``,n=e.rows||0,r=Buffer.byteLength(t),i=4+r+1+4,a=Buffer.allocUnsafe(1+i);return a[0]=69,a.writeInt32BE(i,1),a.write(t,5,`utf-8`),a[r+5]=0,a.writeUInt32BE(n,a.length-4),a},g=(e,t)=>{let n=Buffer.allocUnsafe(16);return n.writeInt32BE(16,0),n.writeInt16BE(1234,4),n.writeInt16BE(5678,6),n.writeInt32BE(e,8),n.writeInt32BE(t,12),n},_=(e,t)=>{let n=4+Buffer.byteLength(t)+1,r=Buffer.allocUnsafe(1+n);return r[0]=e,r.writeInt32BE(n,1),r.write(t,5,`utf-8`),r[n]=0,r},v=n.addCString(`P`).flush(68),y=n.addCString(`S`).flush(68),b=e=>e.name?_(68,`${e.type}${e.name||``}`):e.type===`P`?v:y,x=e=>_(67,`${e.type}${e.name||``}`),S=e=>n.add(e).flush(100),C=e=>_(102,e),w=e=>Buffer.from([e,0,0,0,4]),T=w(72),E=w(83),D=w(88),O=w(99);e.serialize={startup:r,password:a,requestSsl:i,sendSASLInitialResponseMessage:o,sendSCRAMClientFinalMessage:s,query:c,parse:u,bind:p,execute:h,describe:b,close:x,flush:()=>T,sync:()=>E,end:()=>D,copyData:S,copyDone:()=>O,copyFail:C,cancel:g}})),gi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BufferReader=void 0;let t=Buffer.allocUnsafe(0);e.BufferReader=class{constructor(e=0){this.offset=e,this.buffer=t,this.encoding=`utf-8`}setBuffer(e,t){this.offset=e,this.buffer=t}int16(){let e=this.buffer.readInt16BE(this.offset);return this.offset+=2,e}byte(){let e=this.buffer[this.offset];return this.offset++,e}int32(){let e=this.buffer.readInt32BE(this.offset);return this.offset+=4,e}uint32(){let e=this.buffer.readUInt32BE(this.offset);return this.offset+=4,e}string(e){let t=this.buffer.toString(this.encoding,this.offset,this.offset+e);return this.offset+=e,t}cstring(){let e=this.offset,t=e;for(;this.buffer[t++]!==0;);return this.offset=t,this.buffer.toString(this.encoding,e,t-1)}bytes(e){let t=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}}})),_i=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Parser=void 0;let t=pi(),n=gi(),r=Buffer.allocUnsafe(0);e.Parser=class{constructor(e){if(this.buffer=r,this.bufferLength=0,this.bufferOffset=0,this.reader=new n.BufferReader,e?.mode===`binary`)throw Error(`Binary mode not supported yet`);this.mode=e?.mode||`text`}parse(e,t){this.mergeBuffer(e);let n=this.bufferOffset+this.bufferLength,i=this.bufferOffset;for(;i+5<=n;){let e=this.buffer[i],r=this.buffer.readUInt32BE(i+1),a=1+r;if(a+i<=n)t(this.handlePacket(i+5,e,r,this.buffer)),i+=a;else break}i===n?(this.buffer=r,this.bufferLength=0,this.bufferOffset=0):(this.bufferLength=n-i,this.bufferOffset=i)}mergeBuffer(e){if(this.bufferLength>0){let t=this.bufferLength+e.byteLength;if(t+this.bufferOffset>this.buffer.byteLength){let e;if(t<=this.buffer.byteLength&&this.bufferOffset>=this.bufferLength)e=this.buffer;else{let n=this.buffer.byteLength*2;for(;t>=n;)n*=2;e=Buffer.allocUnsafe(n)}this.buffer.copy(e,0,this.bufferOffset,this.bufferOffset+this.bufferLength),this.buffer=e,this.bufferOffset=0}e.copy(this.buffer,this.bufferOffset+this.bufferLength),this.bufferLength=t}else this.buffer=e,this.bufferOffset=0,this.bufferLength=e.byteLength}handlePacket(e,n,r,i){switch(n){case 50:return t.bindComplete;case 49:return t.parseComplete;case 51:return t.closeComplete;case 110:return t.noData;case 115:return t.portalSuspended;case 99:return t.copyDone;case 87:return t.replicationStart;case 73:return t.emptyQuery;case 68:return this.parseDataRowMessage(e,r,i);case 67:return this.parseCommandCompleteMessage(e,r,i);case 90:return this.parseReadyForQueryMessage(e,r,i);case 65:return this.parseNotificationMessage(e,r,i);case 82:return this.parseAuthenticationResponse(e,r,i);case 83:return this.parseParameterStatusMessage(e,r,i);case 75:return this.parseBackendKeyData(e,r,i);case 69:return this.parseErrorMessage(e,r,i,`error`);case 78:return this.parseErrorMessage(e,r,i,`notice`);case 84:return this.parseRowDescriptionMessage(e,r,i);case 116:return this.parseParameterDescriptionMessage(e,r,i);case 71:return this.parseCopyInMessage(e,r,i);case 72:return this.parseCopyOutMessage(e,r,i);case 100:return this.parseCopyData(e,r,i);default:return new t.DatabaseError(`received invalid response: `+n.toString(16),r,`error`)}}parseReadyForQueryMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.string(1);return new t.ReadyForQueryMessage(n,i)}parseCommandCompleteMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.cstring();return new t.CommandCompleteMessage(n,i)}parseCopyData(e,n,r){let i=r.slice(e,e+(n-4));return new t.CopyDataMessage(n,i)}parseCopyInMessage(e,t,n){return this.parseCopyMessage(e,t,n,`copyInResponse`)}parseCopyOutMessage(e,t,n){return this.parseCopyMessage(e,t,n,`copyOutResponse`)}parseCopyMessage(e,n,r,i){this.reader.setBuffer(e,r);let a=this.reader.byte()!==0,o=this.reader.int16(),s=new t.CopyResponse(n,i,a,o);for(let e=0;e<o;e++)s.columnTypes[e]=this.reader.int16();return s}parseNotificationMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int32(),a=this.reader.cstring(),o=this.reader.cstring();return new t.NotificationResponseMessage(n,i,a,o)}parseRowDescriptionMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int16(),a=new t.RowDescriptionMessage(n,i);for(let e=0;e<i;e++)a.fields[e]=this.parseField();return a}parseField(){let e=this.reader.cstring(),n=this.reader.uint32(),r=this.reader.int16(),i=this.reader.uint32(),a=this.reader.int16(),o=this.reader.int32(),s=this.reader.int16()===0?`text`:`binary`;return new t.Field(e,n,r,i,a,o,s)}parseParameterDescriptionMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int16(),a=new t.ParameterDescriptionMessage(n,i);for(let e=0;e<i;e++)a.dataTypeIDs[e]=this.reader.int32();return a}parseDataRowMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int16(),a=Array(i);for(let e=0;e<i;e++){let t=this.reader.int32();a[e]=t===-1?null:this.reader.string(t)}return new t.DataRowMessage(n,a)}parseParameterStatusMessage(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.cstring(),a=this.reader.cstring();return new t.ParameterStatusMessage(n,i,a)}parseBackendKeyData(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int32(),a=this.reader.int32();return new t.BackendKeyDataMessage(n,i,a)}parseAuthenticationResponse(e,n,r){this.reader.setBuffer(e,r);let i=this.reader.int32(),a={name:`authenticationOk`,length:n};switch(i){case 0:break;case 3:a.length===8&&(a.name=`authenticationCleartextPassword`);break;case 5:if(a.length===12){a.name=`authenticationMD5Password`;let e=this.reader.bytes(4);return new t.AuthenticationMD5Password(n,e)}break;case 10:{a.name=`authenticationSASL`,a.mechanisms=[];let e;do e=this.reader.cstring(),e&&a.mechanisms.push(e);while(e)}break;case 11:a.name=`authenticationSASLContinue`,a.data=this.reader.string(n-8);break;case 12:a.name=`authenticationSASLFinal`,a.data=this.reader.string(n-8);break;default:throw Error(`Unknown authenticationOk message type `+i)}return a}parseErrorMessage(e,n,r,i){this.reader.setBuffer(e,r);let a={},o=this.reader.string(1);for(;o!==`\0`;)a[o]=this.reader.cstring(),o=this.reader.string(1);let s=a.M,c=i===`notice`?new t.NoticeMessage(n,s):new t.DatabaseError(s,n,i);return c.severity=a.S,c.code=a.C,c.detail=a.D,c.hint=a.H,c.position=a.P,c.internalPosition=a.p,c.internalQuery=a.q,c.where=a.W,c.schema=a.s,c.table=a.t,c.column=a.c,c.dataType=a.d,c.constraint=a.n,c.file=a.F,c.line=a.L,c.routine=a.R,c}}})),vi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DatabaseError=e.serialize=e.parse=void 0;let t=pi();Object.defineProperty(e,`DatabaseError`,{enumerable:!0,get:function(){return t.DatabaseError}});let n=hi();Object.defineProperty(e,`serialize`,{enumerable:!0,get:function(){return n.serialize}});let r=_i();function i(e,t){let n=new r.Parser;return e.on(`data`,e=>n.parse(e,t)),new Promise(t=>e.on(`end`,()=>t()))}e.parse=i})),yi=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={}})),bi=r(((e,n)=>{let{getStream:r,getSecureStream:i}=c();n.exports={getStream:r,getSecureStream:i};function a(){function e(e){return new(t(`net`)).Socket}function n(e){return t(`tls`).connect(e)}return{getStream:e,getSecureStream:n}}function o(){function e(e){let{CloudflareSocket:t}=yi();return new t(e)}function t(e){return e.socket.startTls(e),e.socket}return{getStream:e,getSecureStream:t}}function s(){if(typeof navigator==`object`&&navigator!==null&&typeof navigator.userAgent==`string`)return navigator.userAgent===`Cloudflare-Workers`;if(typeof Response==`function`){let e=new Response(null,{cf:{thing:!0}});if(typeof e.cf==`object`&&e.cf!==null&&e.cf.thing)return!0}return!1}function c(){return s()?o():a()}})),xi=r(((e,n)=>{let r=t(`events`).EventEmitter,{parse:i,serialize:a}=vi(),{getStream:o,getSecureStream:s}=bi(),c=a.flush(),l=a.sync(),u=a.end();n.exports=class extends r{constructor(e){super(),e||={},this.stream=e.stream||o(e.ssl),typeof this.stream==`function`&&(this.stream=this.stream(e)),this._keepAlive=e.keepAlive,this._keepAliveInitialDelayMillis=e.keepAliveInitialDelayMillis,this.lastBuffer=!1,this.parsedStatements={},this.ssl=e.ssl||!1,this._ending=!1,this._emitMessage=!1;let t=this;this.on(`newListener`,function(e){e===`message`&&(t._emitMessage=!0)})}connect(e,n){let r=this;this._connecting=!0,this.stream.setNoDelay(!0),this.stream.connect(e,n),this.stream.once(`connect`,function(){r._keepAlive&&r.stream.setKeepAlive(!0,r._keepAliveInitialDelayMillis),r.emit(`connect`)});let i=function(e){r._ending&&(e.code===`ECONNRESET`||e.code===`EPIPE`)||r.emit(`error`,e)};if(this.stream.on(`error`,i),this.stream.on(`close`,function(){r.emit(`end`)}),!this.ssl)return this.attachListeners(this.stream);this.stream.once(`data`,function(e){switch(e.toString(`utf8`)){case`S`:break;case`N`:return r.stream.end(),r.emit(`error`,Error(`The server does not support SSL connections`));default:return r.stream.end(),r.emit(`error`,Error(`There was an error establishing an SSL connection`))}let a={socket:r.stream};r.ssl!==!0&&(Object.assign(a,r.ssl),`key`in r.ssl&&(a.key=r.ssl.key));let o=t(`net`);o.isIP&&o.isIP(n)===0&&(a.servername=n);try{r.stream=s(a)}catch(e){return r.emit(`error`,e)}r.attachListeners(r.stream),r.stream.on(`error`,i),r.emit(`sslconnect`)})}attachListeners(e){i(e,e=>{let t=e.name===`error`?`errorMessage`:e.name;this._emitMessage&&this.emit(`message`,e),this.emit(t,e)})}requestSsl(){this.stream.write(a.requestSsl())}startup(e){this.stream.write(a.startup(e))}cancel(e,t){this._send(a.cancel(e,t))}password(e){this._send(a.password(e))}sendSASLInitialResponseMessage(e,t){this._send(a.sendSASLInitialResponseMessage(e,t))}sendSCRAMClientFinalMessage(e){this._send(a.sendSCRAMClientFinalMessage(e))}_send(e){return this.stream.writable?this.stream.write(e):!1}query(e){this._send(a.query(e))}parse(e){this._send(a.parse(e))}bind(e){this._send(a.bind(e))}execute(e){this._send(a.execute(e))}flush(){this.stream.writable&&this.stream.write(c)}sync(){this._ending=!0,this._send(l)}ref(){this.stream.ref()}unref(){this.stream.unref()}end(){if(this._ending=!0,!this._connecting||!this.stream.writable){this.stream.end();return}return this.stream.write(u,()=>{this.stream.end()})}close(e){this._send(a.close(e))}describe(e){this._send(a.describe(e))}sendCopyFromChunk(e){this._send(a.copyData(e))}endCopyFrom(){this._send(a.copyDone())}sendCopyFail(e){this._send(a.copyFail(e))}}})),Si=r(((e,n)=>{let{Transform:r}=t(`stream`),{StringDecoder:i}=t(`string_decoder`),a=Symbol(`last`),o=Symbol(`decoder`);function s(e,t,n){let r;if(this.overflow){if(r=this[o].write(e).split(this.matcher),r.length===1)return n();r.shift(),this.overflow=!1}else this[a]+=this[o].write(e),r=this[a].split(this.matcher);this[a]=r.pop();for(let e=0;e<r.length;e++)try{l(this,this.mapper(r[e]))}catch(e){return n(e)}if(this.overflow=this[a].length>this.maxLength,this.overflow&&!this.skipOverflow){n(Error(`maximum buffer reached`));return}n()}function c(e){if(this[a]+=this[o].end(),this[a])try{l(this,this.mapper(this[a]))}catch(t){return e(t)}e()}function l(e,t){t!==void 0&&e.push(t)}function u(e){return e}function d(e,t,n){switch(e||=/\r?\n/,t||=u,n||={},arguments.length){case 1:typeof e==`function`?(t=e,e=/\r?\n/):typeof e==`object`&&!(e instanceof RegExp)&&!e[Symbol.split]&&(n=e,e=/\r?\n/);break;case 2:typeof e==`function`?(n=t,t=e,e=/\r?\n/):typeof t==`object`&&(n=t,t=u)}n=Object.assign({},n),n.autoDestroy=!0,n.transform=s,n.flush=c,n.readableObjectMode=!0;let l=new r(n);return l[a]=``,l[o]=new i(`utf8`),l.matcher=e,l.mapper=t,l.maxLength=n.maxLength,l.skipOverflow=n.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}n.exports=d})),Ci=r(((e,n)=>{var r=t(`path`),i=t(`stream`).Stream,a=Si(),o=t(`util`),s=5432,c=process.platform===`win32`,l=process.stderr,u=56,d=7,f=61440,p=32768;function m(e){return(e&f)==p}var h=[`host`,`port`,`database`,`user`,`password`],g=h.length,_=h[g-1];function v(){if(l instanceof i&&!0===l.writable){var e=Array.prototype.slice.call(arguments).concat(`
|
|
28
|
+
`);l.write(o.format.apply(o,e))}}Object.defineProperty(n.exports,`isWin`,{get:function(){return c},set:function(e){c=e}}),n.exports.warnTo=function(e){var t=l;return l=e,t},n.exports.getFileName=function(e){var t=e||process.env;return t.PGPASSFILE||(c?r.join(t.APPDATA||`./`,`postgresql`,`pgpass.conf`):r.join(t.HOME||`./`,`.pgpass`))},n.exports.usePgPass=function(e,t){return Object.prototype.hasOwnProperty.call(process.env,`PGPASSWORD`)?!1:c?!0:(t||=`<unkn>`,m(e.mode)?e.mode&(u|d)?(v(`WARNING: password file "%s" has group or world access; permissions should be u=rw (0600) or less`,t),!1):!0:(v(`WARNING: password file "%s" is not a plain file`,t),!1))};var y=n.exports.match=function(e,t){return h.slice(0,-1).reduce(function(n,r,i){return i==1&&Number(e[r]||s)===Number(t[r])?n&&!0:n&&(t[r]===`*`||t[r]===e[r])},!0)};n.exports.getPassword=function(e,t,n){var r,i=t.pipe(a());function o(t){var n=b(t);n&&x(n)&&y(e,n)&&(r=n[_],i.end())}var s=function(){t.destroy(),n(r)},c=function(e){t.destroy(),v(`WARNING: error on reading file: %s`,e),n(void 0)};t.on(`error`,c),i.on(`data`,o).on(`end`,s).on(`error`,c)};var b=n.exports.parseLine=function(e){if(e.length<11||e.match(/^\s+#/))return null;for(var t=``,n=``,r=0,i=0,a={},o=!1,s=function(t,n,r){var i=e.substring(n,r);Object.hasOwnProperty.call(process.env,`PGPASS_NO_DEESCAPE`)||(i=i.replace(/\\([:\\])/g,`$1`)),a[h[t]]=i},c=0;c<e.length-1;c+=1){if(t=e.charAt(c+1),n=e.charAt(c),o=r==g-1,o){s(r,i);break}c>=0&&t==`:`&&n!==`\\`&&(s(r,i,c+1),i=c+2,r+=1)}return a=Object.keys(a).length===g?a:null,a},x=n.exports.isValidEntry=function(e){for(var t={0:function(e){return e.length>0},1:function(e){return e===`*`?!0:(e=Number(e),isFinite(e)&&e>0&&e<9007199254740992&&Math.floor(e)===e)},2:function(e){return e.length>0},3:function(e){return e.length>0},4:function(e){return e.length>0}},n=0;n<h.length;n+=1){var r=t[n];if(!r(e[h[n]]||``))return!1}return!0}})),wi=r(((e,n)=>{t(`path`);var r=t(`fs`),i=Ci();n.exports=function(e,t){var n=i.getFileName();r.stat(n,function(a,o){if(a||!i.usePgPass(o,n))return t(void 0);var s=r.createReadStream(n);i.getPassword(e,s,t)})},n.exports.warnTo=i.warnTo})),Ti=r(((e,n)=>{let r=t(`events`).EventEmitter,i=ni(),a=si(),o=ci(),s=ui(),c=fi(),l=ti(),u=xi(),d=ai();var f=class extends r{constructor(e){super(),this.connectionParameters=new s(e),this.user=this.connectionParameters.user,this.database=this.connectionParameters.database,this.port=this.connectionParameters.port,this.host=this.connectionParameters.host,Object.defineProperty(this,`password`,{configurable:!0,enumerable:!1,writable:!0,value:this.connectionParameters.password}),this.replication=this.connectionParameters.replication;let t=e||{};this._Promise=t.Promise||global.Promise,this._types=new o(t.types),this._ending=!1,this._ended=!1,this._connecting=!1,this._connected=!1,this._connectionError=!1,this._queryable=!0,this.enableChannelBinding=!!t.enableChannelBinding,this.connection=t.connection||new u({stream:t.stream,ssl:this.connectionParameters.ssl,keepAlive:t.keepAlive||!1,keepAliveInitialDelayMillis:t.keepAliveInitialDelayMillis||0,encoding:this.connectionParameters.client_encoding||`utf8`}),this.queryQueue=[],this.binary=t.binary||l.binary,this.processID=null,this.secretKey=null,this.ssl=this.connectionParameters.ssl||!1,this.ssl&&this.ssl.key&&Object.defineProperty(this.ssl,`key`,{enumerable:!1}),this._connectionTimeoutMillis=t.connectionTimeoutMillis||0}_errorAllQueries(e){let t=t=>{process.nextTick(()=>{t.handleError(e,this.connection)})};this.activeQuery&&=(t(this.activeQuery),null),this.queryQueue.forEach(t),this.queryQueue.length=0}_connect(e){let t=this,n=this.connection;if(this._connectionCallback=e,this._connecting||this._connected){let t=Error(`Client has already been connected. You cannot reuse a client.`);process.nextTick(()=>{e(t)});return}this._connecting=!0,this._connectionTimeoutMillis>0&&(this.connectionTimeoutHandle=setTimeout(()=>{n._ending=!0,n.stream.destroy(Error(`timeout expired`))},this._connectionTimeoutMillis),this.connectionTimeoutHandle.unref&&this.connectionTimeoutHandle.unref()),this.host&&this.host.indexOf(`/`)===0?n.connect(this.host+`/.s.PGSQL.`+this.port):n.connect(this.port,this.host),n.on(`connect`,function(){t.ssl?n.requestSsl():n.startup(t.getStartupConf())}),n.on(`sslconnect`,function(){n.startup(t.getStartupConf())}),this._attachListeners(n),n.once(`end`,()=>{let e=this._ending?Error(`Connection terminated`):Error(`Connection terminated unexpectedly`);clearTimeout(this.connectionTimeoutHandle),this._errorAllQueries(e),this._ended=!0,this._ending||(this._connecting&&!this._connectionError?this._connectionCallback?this._connectionCallback(e):this._handleErrorEvent(e):this._connectionError||this._handleErrorEvent(e)),process.nextTick(()=>{this.emit(`end`)})})}connect(e){if(e){this._connect(e);return}return new this._Promise((e,t)=>{this._connect(n=>{n?t(n):e()})})}_attachListeners(e){e.on(`authenticationCleartextPassword`,this._handleAuthCleartextPassword.bind(this)),e.on(`authenticationMD5Password`,this._handleAuthMD5Password.bind(this)),e.on(`authenticationSASL`,this._handleAuthSASL.bind(this)),e.on(`authenticationSASLContinue`,this._handleAuthSASLContinue.bind(this)),e.on(`authenticationSASLFinal`,this._handleAuthSASLFinal.bind(this)),e.on(`backendKeyData`,this._handleBackendKeyData.bind(this)),e.on(`error`,this._handleErrorEvent.bind(this)),e.on(`errorMessage`,this._handleErrorMessage.bind(this)),e.on(`readyForQuery`,this._handleReadyForQuery.bind(this)),e.on(`notice`,this._handleNotice.bind(this)),e.on(`rowDescription`,this._handleRowDescription.bind(this)),e.on(`dataRow`,this._handleDataRow.bind(this)),e.on(`portalSuspended`,this._handlePortalSuspended.bind(this)),e.on(`emptyQuery`,this._handleEmptyQuery.bind(this)),e.on(`commandComplete`,this._handleCommandComplete.bind(this)),e.on(`parseComplete`,this._handleParseComplete.bind(this)),e.on(`copyInResponse`,this._handleCopyInResponse.bind(this)),e.on(`copyData`,this._handleCopyData.bind(this)),e.on(`notification`,this._handleNotification.bind(this))}_checkPgPass(e){let t=this.connection;if(typeof this.password==`function`)this._Promise.resolve().then(()=>this.password()).then(n=>{if(n!==void 0){if(typeof n!=`string`){t.emit(`error`,TypeError(`Password must be a string`));return}this.connectionParameters.password=this.password=n}else this.connectionParameters.password=this.password=null;e()}).catch(e=>{t.emit(`error`,e)});else if(this.password!==null)e();else try{wi()(this.connectionParameters,t=>{t!==void 0&&(this.connectionParameters.password=this.password=t),e()})}catch(e){this.emit(`error`,e)}}_handleAuthCleartextPassword(e){this._checkPgPass(()=>{this.connection.password(this.password)})}_handleAuthMD5Password(e){this._checkPgPass(async()=>{try{let t=await d.postgresMd5PasswordHash(this.user,this.password,e.salt);this.connection.password(t)}catch(e){this.emit(`error`,e)}})}_handleAuthSASL(e){this._checkPgPass(()=>{try{this.saslSession=a.startSession(e.mechanisms,this.enableChannelBinding&&this.connection.stream),this.connection.sendSASLInitialResponseMessage(this.saslSession.mechanism,this.saslSession.response)}catch(e){this.connection.emit(`error`,e)}})}async _handleAuthSASLContinue(e){try{await a.continueSession(this.saslSession,this.password,e.data,this.enableChannelBinding&&this.connection.stream),this.connection.sendSCRAMClientFinalMessage(this.saslSession.response)}catch(e){this.connection.emit(`error`,e)}}_handleAuthSASLFinal(e){try{a.finalizeSession(this.saslSession,e.data),this.saslSession=null}catch(e){this.connection.emit(`error`,e)}}_handleBackendKeyData(e){this.processID=e.processID,this.secretKey=e.secretKey}_handleReadyForQuery(e){this._connecting&&(this._connecting=!1,this._connected=!0,clearTimeout(this.connectionTimeoutHandle),this._connectionCallback&&=(this._connectionCallback(null,this),null),this.emit(`connect`));let{activeQuery:t}=this;this.activeQuery=null,this.readyForQuery=!0,t&&t.handleReadyForQuery(this.connection),this._pulseQueryQueue()}_handleErrorWhileConnecting(e){if(!this._connectionError){if(this._connectionError=!0,clearTimeout(this.connectionTimeoutHandle),this._connectionCallback)return this._connectionCallback(e);this.emit(`error`,e)}}_handleErrorEvent(e){if(this._connecting)return this._handleErrorWhileConnecting(e);this._queryable=!1,this._errorAllQueries(e),this.emit(`error`,e)}_handleErrorMessage(e){if(this._connecting)return this._handleErrorWhileConnecting(e);let t=this.activeQuery;if(!t){this._handleErrorEvent(e);return}this.activeQuery=null,t.handleError(e,this.connection)}_handleRowDescription(e){this.activeQuery.handleRowDescription(e)}_handleDataRow(e){this.activeQuery.handleDataRow(e)}_handlePortalSuspended(e){this.activeQuery.handlePortalSuspended(this.connection)}_handleEmptyQuery(e){this.activeQuery.handleEmptyQuery(this.connection)}_handleCommandComplete(e){if(this.activeQuery==null){let e=Error(`Received unexpected commandComplete message from backend.`);this._handleErrorEvent(e);return}this.activeQuery.handleCommandComplete(e,this.connection)}_handleParseComplete(){if(this.activeQuery==null){let e=Error(`Received unexpected parseComplete message from backend.`);this._handleErrorEvent(e);return}this.activeQuery.name&&(this.connection.parsedStatements[this.activeQuery.name]=this.activeQuery.text)}_handleCopyInResponse(e){this.activeQuery.handleCopyInResponse(this.connection)}_handleCopyData(e){this.activeQuery.handleCopyData(e,this.connection)}_handleNotification(e){this.emit(`notification`,e)}_handleNotice(e){this.emit(`notice`,e)}getStartupConf(){let e=this.connectionParameters,t={user:e.user,database:e.database},n=e.application_name||e.fallback_application_name;return n&&(t.application_name=n),e.replication&&(t.replication=``+e.replication),e.statement_timeout&&(t.statement_timeout=String(parseInt(e.statement_timeout,10))),e.lock_timeout&&(t.lock_timeout=String(parseInt(e.lock_timeout,10))),e.idle_in_transaction_session_timeout&&(t.idle_in_transaction_session_timeout=String(parseInt(e.idle_in_transaction_session_timeout,10))),e.options&&(t.options=e.options),t}cancel(e,t){if(e.activeQuery===t){let t=this.connection;this.host&&this.host.indexOf(`/`)===0?t.connect(this.host+`/.s.PGSQL.`+this.port):t.connect(this.port,this.host),t.on(`connect`,function(){t.cancel(e.processID,e.secretKey)})}else e.queryQueue.indexOf(t)!==-1&&e.queryQueue.splice(e.queryQueue.indexOf(t),1)}setTypeParser(e,t,n){return this._types.setTypeParser(e,t,n)}getTypeParser(e,t){return this._types.getTypeParser(e,t)}escapeIdentifier(e){return i.escapeIdentifier(e)}escapeLiteral(e){return i.escapeLiteral(e)}_pulseQueryQueue(){if(this.readyForQuery===!0)if(this.activeQuery=this.queryQueue.shift(),this.activeQuery){this.readyForQuery=!1,this.hasExecuted=!0;let e=this.activeQuery.submit(this.connection);e&&process.nextTick(()=>{this.activeQuery.handleError(e,this.connection),this.readyForQuery=!0,this._pulseQueryQueue()})}else this.hasExecuted&&(this.activeQuery=null,this.emit(`drain`))}query(e,t,n){let r,i,a,o,s;if(e==null)throw TypeError(`Client was passed a null or undefined query`);return typeof e.submit==`function`?(a=e.query_timeout||this.connectionParameters.query_timeout,i=r=e,typeof t==`function`&&(r.callback=r.callback||t)):(a=e.query_timeout||this.connectionParameters.query_timeout,r=new c(e,t,n),r.callback||(i=new this._Promise((e,t)=>{r.callback=(n,r)=>n?t(n):e(r)}).catch(e=>{throw Error.captureStackTrace(e),e}))),a&&(s=r.callback,o=setTimeout(()=>{let e=Error(`Query read timeout`);process.nextTick(()=>{r.handleError(e,this.connection)}),s(e),r.callback=()=>{};let t=this.queryQueue.indexOf(r);t>-1&&this.queryQueue.splice(t,1),this._pulseQueryQueue()},a),r.callback=(e,t)=>{clearTimeout(o),s(e,t)}),this.binary&&!r.binary&&(r.binary=!0),r._result&&!r._result._types&&(r._result._types=this._types),this._queryable?this._ending?(process.nextTick(()=>{r.handleError(Error(`Client was closed and is not queryable`),this.connection)}),i):(this.queryQueue.push(r),this._pulseQueryQueue(),i):(process.nextTick(()=>{r.handleError(Error(`Client has encountered a connection error and is not queryable`),this.connection)}),i)}ref(){this.connection.ref()}unref(){this.connection.unref()}end(e){if(this._ending=!0,!this.connection._connecting||this._ended)if(e)e();else return this._Promise.resolve();if(this.activeQuery||!this._queryable?this.connection.stream.destroy():this.connection.end(),e)this.connection.once(`end`,e);else return new this._Promise(e=>{this.connection.once(`end`,e)})}};f.Query=c,n.exports=f})),Ei=r(((e,n)=>{let r=t(`events`).EventEmitter,i=function(){},a=(e,t)=>{let n=e.findIndex(t);return n===-1?void 0:e.splice(n,1)[0]};var o=class{constructor(e,t,n){this.client=e,this.idleListener=t,this.timeoutId=n}},s=class{constructor(e){this.callback=e}};function c(){throw Error(`Release called on client which has already been released to the pool.`)}function l(e,t){if(t)return{callback:t,result:void 0};let n,r;return{callback:function(e,t){e?n(e):r(t)},result:new e(function(e,t){r=e,n=t}).catch(e=>{throw Error.captureStackTrace(e),e})}}function u(e,t){return function n(r){r.client=t,t.removeListener(`error`,n),t.on(`error`,()=>{e.log(`additional client error after disconnection due to error`,r)}),e._remove(t),e.emit(`error`,r,t)}}n.exports=class extends r{constructor(e,t){super(),this.options=Object.assign({},e),e!=null&&`password`in e&&Object.defineProperty(this.options,`password`,{configurable:!0,enumerable:!1,writable:!0,value:e.password}),e!=null&&e.ssl&&e.ssl.key&&Object.defineProperty(this.options.ssl,`key`,{enumerable:!1}),this.options.max=this.options.max||this.options.poolSize||10,this.options.min=this.options.min||0,this.options.maxUses=this.options.maxUses||1/0,this.options.allowExitOnIdle=this.options.allowExitOnIdle||!1,this.options.maxLifetimeSeconds=this.options.maxLifetimeSeconds||0,this.log=this.options.log||function(){},this.Client=this.options.Client||t||Ai().Client,this.Promise=this.options.Promise||global.Promise,this.options.idleTimeoutMillis===void 0&&(this.options.idleTimeoutMillis=1e4),this._clients=[],this._idle=[],this._expired=new WeakSet,this._pendingQueue=[],this._endCallback=void 0,this.ending=!1,this.ended=!1}_isFull(){return this._clients.length>=this.options.max}_isAboveMin(){return this._clients.length>this.options.min}_pulseQueue(){if(this.log(`pulse queue`),this.ended){this.log(`pulse queue ended`);return}if(this.ending){this.log(`pulse queue on ending`),this._idle.length&&this._idle.slice().map(e=>{this._remove(e.client)}),this._clients.length||(this.ended=!0,this._endCallback());return}if(!this._pendingQueue.length){this.log(`no queued requests`);return}if(!this._idle.length&&this._isFull())return;let e=this._pendingQueue.shift();if(this._idle.length){let t=this._idle.pop();clearTimeout(t.timeoutId);let n=t.client;n.ref&&n.ref();let r=t.idleListener;return this._acquireClient(n,e,r,!1)}if(!this._isFull())return this.newClient(e);throw Error(`unexpected condition`)}_remove(e,t){let n=a(this._idle,t=>t.client===e);n!==void 0&&clearTimeout(n.timeoutId),this._clients=this._clients.filter(t=>t!==e);let r=this;e.end(()=>{r.emit(`remove`,e),typeof t==`function`&&t()})}connect(e){if(this.ending){let t=Error(`Cannot use a pool after calling end on the pool`);return e?e(t):this.Promise.reject(t)}let t=l(this.Promise,e),n=t.result;if(this._isFull()||this._idle.length){if(this._idle.length&&process.nextTick(()=>this._pulseQueue()),!this.options.connectionTimeoutMillis)return this._pendingQueue.push(new s(t.callback)),n;let e=(e,n,r)=>{clearTimeout(i),t.callback(e,n,r)},r=new s(e),i=setTimeout(()=>{a(this._pendingQueue,t=>t.callback===e),r.timedOut=!0,t.callback(Error(`timeout exceeded when trying to connect`))},this.options.connectionTimeoutMillis);return i.unref&&i.unref(),this._pendingQueue.push(r),n}return this.newClient(new s(t.callback)),n}newClient(e){let t=new this.Client(this.options);this._clients.push(t);let n=u(this,t);this.log(`checking client timeout`);let r,a=!1;this.options.connectionTimeoutMillis&&(r=setTimeout(()=>{this.log(`ending client due to timeout`),a=!0,t.connection?t.connection.stream.destroy():t.end()},this.options.connectionTimeoutMillis)),this.log(`connecting new client`),t.connect(o=>{if(r&&clearTimeout(r),t.on(`error`,n),o)this.log(`client failed to connect`,o),this._clients=this._clients.filter(e=>e!==t),a&&(o=Error(`Connection terminated due to connection timeout`,{cause:o})),this._pulseQueue(),e.timedOut||e.callback(o,void 0,i);else{if(this.log(`new client connected`),this.options.maxLifetimeSeconds!==0){let e=setTimeout(()=>{this.log(`ending client due to expired lifetime`),this._expired.add(t),this._idle.findIndex(e=>e.client===t)!==-1&&this._acquireClient(t,new s((e,t,n)=>n()),n,!1)},this.options.maxLifetimeSeconds*1e3);e.unref(),t.once(`end`,()=>clearTimeout(e))}return this._acquireClient(t,e,n,!0)}})}_acquireClient(e,t,n,r){r&&this.emit(`connect`,e),this.emit(`acquire`,e),e.release=this._releaseOnce(e,n),e.removeListener(`error`,n),t.timedOut?r&&this.options.verify?this.options.verify(e,e.release):e.release():r&&this.options.verify?this.options.verify(e,n=>{if(n)return e.release(n),t.callback(n,void 0,i);t.callback(void 0,e,e.release)}):t.callback(void 0,e,e.release)}_releaseOnce(e,t){let n=!1;return r=>{n&&c(),n=!0,this._release(e,t,r)}}_release(e,t,n){if(e.on(`error`,t),e._poolUseCount=(e._poolUseCount||0)+1,this.emit(`release`,n,e),n||this.ending||!e._queryable||e._ending||e._poolUseCount>=this.options.maxUses)return e._poolUseCount>=this.options.maxUses&&this.log(`remove expended client`),this._remove(e,this._pulseQueue.bind(this));if(this._expired.has(e))return this.log(`remove expired client`),this._expired.delete(e),this._remove(e,this._pulseQueue.bind(this));let r;this.options.idleTimeoutMillis&&this._isAboveMin()&&(r=setTimeout(()=>{this.log(`remove idle client`),this._remove(e,this._pulseQueue.bind(this))},this.options.idleTimeoutMillis),this.options.allowExitOnIdle&&r.unref()),this.options.allowExitOnIdle&&e.unref(),this._idle.push(new o(e,t,r)),this._pulseQueue()}query(e,t,n){if(typeof e==`function`){let t=l(this.Promise,e);return setImmediate(function(){return t.callback(Error(`Passing a function as the first parameter to pool.query is not supported`))}),t.result}typeof t==`function`&&(n=t,t=void 0);let r=l(this.Promise,n);return n=r.callback,this.connect((r,i)=>{if(r)return n(r);let a=!1,o=e=>{a||(a=!0,i.release(e),n(e))};i.once(`error`,o),this.log(`dispatching query`);try{i.query(e,t,(e,t)=>{if(this.log(`query dispatched`),i.removeListener(`error`,o),!a)return a=!0,i.release(e),e?n(e):n(void 0,t)})}catch(e){return i.release(e),n(e)}}),r.result}end(e){if(this.log(`ending`),this.ending){let t=Error(`Called end on pool more than once`);return e?e(t):this.Promise.reject(t)}this.ending=!0;let t=l(this.Promise,e);return this._endCallback=t.callback,this._pulseQueue(),t.result}get waitingCount(){return this._pendingQueue.length}get idleCount(){return this._idle.length}get expiredCount(){return this._clients.reduce((e,t)=>e+(this._expired.has(t)?1:0),0)}get totalCount(){return this._clients.length}}})),Di=r(((e,n)=>{let r=t(`events`).EventEmitter,i=t(`util`),a=ni(),o=n.exports=function(e,t,n){r.call(this),e=a.normalizeQueryConfig(e,t,n),this.text=e.text,this.values=e.values,this.name=e.name,this.queryMode=e.queryMode,this.callback=e.callback,this.state=`new`,this._arrayMode=e.rowMode===`array`,this._emitRowEvents=!1,this.on(`newListener`,function(e){e===`row`&&(this._emitRowEvents=!0)}.bind(this))};i.inherits(o,r);let s={sqlState:`code`,statementPosition:`position`,messagePrimary:`message`,context:`where`,schemaName:`schema`,tableName:`table`,columnName:`column`,dataTypeName:`dataType`,constraintName:`constraint`,sourceFile:`file`,sourceLine:`line`,sourceFunction:`routine`};o.prototype.handleError=function(e){let t=this.native.pq.resultErrorFields();if(t)for(let n in t){let r=s[n]||n;e[r]=t[n]}this.callback?this.callback(e):this.emit(`error`,e),this.state=`error`},o.prototype.then=function(e,t){return this._getPromise().then(e,t)},o.prototype.catch=function(e){return this._getPromise().catch(e)},o.prototype._getPromise=function(){return this._promise||=new Promise(function(e,t){this._once(`end`,e),this._once(`error`,t)}.bind(this)),this._promise},o.prototype.submit=function(e){this.state=`running`;let t=this;this.native=e.native,e.native.arrayMode=this._arrayMode;let n=function(n,r,i){if(e.native.arrayMode=!1,setImmediate(function(){t.emit(`_done`)}),n)return t.handleError(n);t._emitRowEvents&&(i.length>1?r.forEach((e,n)=>{e.forEach(e=>{t.emit(`row`,e,i[n])})}):r.forEach(function(e){t.emit(`row`,e,i)})),t.state=`end`,t.emit(`end`,i),t.callback&&t.callback(null,i)};if(process.domain&&(n=process.domain.bind(n)),this.name){this.name.length>63&&(console.error(`Warning! Postgres only supports 63 characters for query names.`),console.error(`You supplied %s (%s)`,this.name,this.name.length),console.error(`This can cause conflicts and silent errors executing queries`));let r=(this.values||[]).map(a.prepareValue);if(e.namedQueries[this.name]){if(this.text&&e.namedQueries[this.name]!==this.text){let e=Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);return n(e)}return e.native.execute(this.name,r,n)}return e.native.prepare(this.name,this.text,r.length,function(i){return i?n(i):(e.namedQueries[t.name]=t.text,t.native.execute(t.name,r,n))})}else if(this.values){if(!Array.isArray(this.values))return n(Error(`Query values must be an array`));let t=this.values.map(a.prepareValue);e.native.query(this.text,t,n)}else this.queryMode===`extended`?e.native.query(this.text,[],n):e.native.query(this.text,n)}})),Oi=r(((e,n)=>{var r;try{r=t(`pg-native`)}catch(e){throw e}let i=ci(),a=t(`events`).EventEmitter,o=t(`util`),s=ui(),c=Di(),l=n.exports=function(e){a.call(this),e||={},this._Promise=e.Promise||global.Promise,this._types=new i(e.types),this.native=new r({types:this._types}),this._queryQueue=[],this._ending=!1,this._connecting=!1,this._connected=!1,this._queryable=!0;let t=this.connectionParameters=new s(e);e.nativeConnectionString&&(t.nativeConnectionString=e.nativeConnectionString),this.user=t.user,Object.defineProperty(this,`password`,{configurable:!0,enumerable:!1,writable:!0,value:t.password}),this.database=t.database,this.host=t.host,this.port=t.port,this.namedQueries={}};l.Query=c,o.inherits(l,a),l.prototype._errorAllQueries=function(e){let t=t=>{process.nextTick(()=>{t.native=this.native,t.handleError(e)})};this._hasActiveQuery()&&(t(this._activeQuery),this._activeQuery=null),this._queryQueue.forEach(t),this._queryQueue.length=0},l.prototype._connect=function(e){let t=this;if(this._connecting){process.nextTick(()=>e(Error(`Client has already been connected. You cannot reuse a client.`)));return}this._connecting=!0,this.connectionParameters.getLibpqConnectionString(function(n,r){if(t.connectionParameters.nativeConnectionString&&(r=t.connectionParameters.nativeConnectionString),n)return e(n);t.native.connect(r,function(n){if(n)return t.native.end(),e(n);t._connected=!0,t.native.on(`error`,function(e){t._queryable=!1,t._errorAllQueries(e),t.emit(`error`,e)}),t.native.on(`notification`,function(e){t.emit(`notification`,{channel:e.relname,payload:e.extra})}),t.emit(`connect`),t._pulseQueryQueue(!0),e()})})},l.prototype.connect=function(e){if(e){this._connect(e);return}return new this._Promise((e,t)=>{this._connect(n=>{n?t(n):e()})})},l.prototype.query=function(e,t,n){let r,i,a,o,s;if(e==null)throw TypeError(`Client was passed a null or undefined query`);if(typeof e.submit==`function`)a=e.query_timeout||this.connectionParameters.query_timeout,i=r=e,typeof t==`function`&&(e.callback=t);else if(a=e.query_timeout||this.connectionParameters.query_timeout,r=new c(e,t,n),!r.callback){let e,t;i=new this._Promise((n,r)=>{e=n,t=r}).catch(e=>{throw Error.captureStackTrace(e),e}),r.callback=(n,r)=>n?t(n):e(r)}return a&&(s=r.callback,o=setTimeout(()=>{let e=Error(`Query read timeout`);process.nextTick(()=>{r.handleError(e,this.connection)}),s(e),r.callback=()=>{};let t=this._queryQueue.indexOf(r);t>-1&&this._queryQueue.splice(t,1),this._pulseQueryQueue()},a),r.callback=(e,t)=>{clearTimeout(o),s(e,t)}),this._queryable?this._ending?(r.native=this.native,process.nextTick(()=>{r.handleError(Error(`Client was closed and is not queryable`))}),i):(this._queryQueue.push(r),this._pulseQueryQueue(),i):(r.native=this.native,process.nextTick(()=>{r.handleError(Error(`Client has encountered a connection error and is not queryable`))}),i)},l.prototype.end=function(e){let t=this;this._ending=!0,this._connected||this.once(`connect`,this.end.bind(this,e));let n;return e||(n=new this._Promise(function(t,n){e=e=>e?n(e):t()})),this.native.end(function(){t._errorAllQueries(Error(`Connection terminated`)),process.nextTick(()=>{t.emit(`end`),e&&e()})}),n},l.prototype._hasActiveQuery=function(){return this._activeQuery&&this._activeQuery.state!==`error`&&this._activeQuery.state!==`end`},l.prototype._pulseQueryQueue=function(e){if(!this._connected||this._hasActiveQuery())return;let t=this._queryQueue.shift();if(!t){e||this.emit(`drain`);return}this._activeQuery=t,t.submit(this);let n=this;t.once(`_done`,function(){n._pulseQueryQueue()})},l.prototype.cancel=function(e){this._activeQuery===e?this.native.cancel(function(){}):this._queryQueue.indexOf(e)!==-1&&this._queryQueue.splice(this._queryQueue.indexOf(e),1)},l.prototype.ref=function(){},l.prototype.unref=function(){},l.prototype.setTypeParser=function(e,t,n){return this._types.setTypeParser(e,t,n)},l.prototype.getTypeParser=function(e,t){return this._types.getTypeParser(e,t)}})),ki=r(((e,t)=>{t.exports=Oi()})),Ai=r(((e,t)=>{let n=Ti(),r=ti(),i=xi(),a=di(),o=ni(),s=Ei(),c=ci(),{DatabaseError:l}=vi(),{escapeIdentifier:u,escapeLiteral:d}=ni(),f=e=>class extends s{constructor(t){super(t,e)}},p=function(e){this.defaults=r,this.Client=e,this.Query=this.Client.Query,this.Pool=f(this.Client),this._pools=[],this.Connection=i,this.types=ei(),this.DatabaseError=l,this.TypeOverrides=c,this.escapeIdentifier=u,this.escapeLiteral=d,this.Result=a,this.utils=o};process.env.NODE_PG_FORCE_NATIVE===void 0?(t.exports=new p(n),Object.defineProperty(t.exports,`native`,{configurable:!0,enumerable:!1,get(){let e=null;try{e=new p(ki())}catch(e){if(e.code!==`MODULE_NOT_FOUND`)throw e}return Object.defineProperty(t.exports,`native`,{value:e}),e}})):t.exports=new p(ki())})),ji=e(pr(),1),J=e(Ai(),1);J.default.Client,J.default.Pool,J.default.Connection,J.default.types,J.default.Query,J.default.DatabaseError,J.default.escapeIdentifier,J.default.escapeLiteral,J.default.Result,J.default.TypeOverrides,J.default.defaults;var Mi=J.default,Ni=class{static[y]=`PgPrimaryKeyBuilder`;columns;name;constructor(e,t){this.columns=e,this.name=t}build(e){return new Pi(e,this.columns,this.name)}},Pi=class{constructor(e,t,n){this.table=e,this.columns=t,this.name=n,this.isNameExplicit=!!n}static[y]=`PgPrimaryKey`;columns;name;isNameExplicit;getName(){return this.name??`${this.table[z.Symbol.Name]}_${this.columns.map(e=>e.name).join(`_`)}_pk`}},Fi=class{constructor(e,t,n){this.sourceTable=e,this.referencedTable=t,this.relationName=n,this.referencedTableName=t[j.Symbol.Name]}static[y]=`Relation`;referencedTableName;fieldName},Ii=class{constructor(e,t){this.table=e,this.config=t}static[y]=`Relations`},Li=class e extends Fi{constructor(e,t,n,r){super(e,t,n?.relationName),this.config=n,this.isNullable=r}static[y]=`One`;withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config,this.isNullable);return n.fieldName=t,n}},Ri=class e extends Fi{constructor(e,t,n){super(e,t,n?.relationName),this.config=n}static[y]=`Many`;withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config);return n.fieldName=t,n}};function zi(){return{and:K,between:ae,eq:me,exists:_e,gt:se,gte:de,ilike:ve,inArray:W,isNull:he,isNotNull:G,like:fe,lt:le,lte:ce,ne:ie,not:ye,notBetween:Se,notExists:oe,notLike:ne,notIlike:xe,notInArray:re,or:be,sql:g}}function Bi(){return{sql:g,asc:Ar,desc:jr}}function Vi(e,t){Object.keys(e).length===1&&`default`in e&&!x(e.default,j)&&(e=e.default);let n={},r={},i={};for(let[a,o]of Object.entries(e))if(x(o,j)){let e=l(o),t=r[e];n[e]=a,i[a]={tsName:a,dbName:o[j.Symbol.Name],schema:o[j.Symbol.Schema],columns:o[j.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]};for(let e of Object.values(o[j.Symbol.Columns]))e.primary&&i[a].primaryKey.push(e);let s=o[j.Symbol.ExtraConfigBuilder]?.(o[j.Symbol.ExtraConfigColumns]);if(s)for(let e of Object.values(s))x(e,Ni)&&i[a].primaryKey.push(...e.columns)}else if(x(o,Ii)){let e=l(o.table),a=n[e],s=o.config(t(o.table));for(let[t,n]of Object.entries(s))if(a){let e=i[a];e.relations[t]=n}else e in r||(r[e]={relations:{}}),r[e].relations[t]=n}return{tables:i,tableNamesMap:n}}function Hi(e){return function(t,n){return new Li(e,t,n,n?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)}}function Ui(e){return function(t,n){return new Ri(e,t,n)}}function Wi(e,t,n){if(x(n,Li)&&n.config)return{fields:n.config.fields,references:n.config.references};let r=t[l(n.referencedTable)];if(!r)throw Error(`Table "${n.referencedTable[j.Symbol.Name]}" not found in schema`);let i=e[r];if(!i)throw Error(`Table "${r}" not found in schema`);let a=n.sourceTable,o=t[l(a)];if(!o)throw Error(`Table "${a[j.Symbol.Name]}" not found in schema`);let s=[];for(let e of Object.values(i.relations))(n.relationName&&n!==e&&e.relationName===n.relationName||!n.relationName&&e.referencedTable===n.sourceTable)&&s.push(e);if(s.length>1)throw n.relationName?Error(`There are multiple relations with name "${n.relationName}" in table "${r}"`):Error(`There are multiple relations between "${r}" and "${n.sourceTable[j.Symbol.Name]}". Please specify relation name`);if(s[0]&&x(s[0],Li)&&s[0].config)return{fields:s[0].config.references,references:s[0].config.fields};throw Error(`There is not enough information to infer relation "${o}.${n.fieldName}"`)}function Gi(e){return{one:Hi(e),many:Ui(e)}}function Ki(e,t,n,r,i=e=>e){let a={};for(let[o,s]of r.entries())if(s.isJson){let r=t.relations[s.tsKey],c=n[o],l=typeof c==`string`?JSON.parse(c):c;a[s.tsKey]=x(r,Li)?l&&Ki(e,e[s.relationTableTsKey],l,s.selection,i):l.map(t=>Ki(e,e[s.relationTableTsKey],t,s.selection,i))}else{let e=i(n[o]),t=s.field,r;r=x(t,d)?t:x(t,U)?t.decoder:t.sql.decoder,a[s.tsKey]=e===null?null:r.mapFromDriverValue(e)}return a}var Y=class e{static[y]=`SelectionProxyHandler`;config;constructor(e){this.config={...e}}get(t,n){if(n===`_`)return{...t._,selectedFields:new Proxy(t._.selectedFields,this)};if(n===f)return{...t[f],selectedFields:new Proxy(t[f].selectedFields,this)};if(typeof n==`symbol`)return t[n];let r=(x(t,v)?t._.selectedFields:x(t,o)?t[f].selectedFields:t)[n];if(x(r,U.Aliased)){if(this.config.sqlAliasedBehavior===`sql`&&!r.isSelectionField)return r.sql;let e=r.clone();return e.isSelectionField=!0,e}if(x(r,U)){if(this.config.sqlBehavior===`sql`)return r;throw Error(`You tried to reference "${n}" field from a subquery, which is a raw SQL field, but it doesn't have an alias declared. Please add an alias to the field using ".as('alias')" method.`)}return x(r,d)?this.config.alias?new Proxy(r,new mr(new Proxy(r.table,new hr(this.config.alias,this.config.replaceOriginalName??!1,!0)),!0)):r:typeof r!=`object`||!r?r:new Proxy(r,new e(this.config))}};function qi(e){return x(e,z)?[e[h]?`${e[h]}.${e[j.Symbol.BaseName]}`:e[j.Symbol.BaseName]]:x(e,v)?e._.usedTables??[]:x(e,U)?e.usedTables??[]:[]}var Ji=class extends kr{constructor(e,t,n,r){super(),this.session=t,this.dialect=n,this.config={table:e,withList:r}}static[y]=`PgDelete`;config;cacheConfig;where(e){return this.config.where=e,this}returning(e=this.config.table[j.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=V(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return p.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`delete`,tables:qi(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>p.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new Y({alias:_(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}};function Yi(e){return(e.replace(/['\u2019]/g,``).match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g)??[]).map(e=>e.toLowerCase()).join(`_`)}function Xi(e){return(e.replace(/['\u2019]/g,``).match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g)??[]).reduce((e,t,n)=>e+(n===0?t.toLowerCase():`${t[0].toUpperCase()}${t.slice(1)}`),``)}function Zi(e){return e}var Qi=class{static[y]=`CasingCache`;cache={};cachedTables={};convert;constructor(e){this.convert=e===`snake_case`?Yi:e===`camelCase`?Xi:Zi}getColumnCasing(e){if(!e.keyAsName)return e.name;let t=`${e.table[j.Symbol.Schema]??`public`}.${e.table[j.Symbol.OriginalName]}.${e.name}`;return this.cache[t]||this.cacheTable(e.table),this.cache[t]}cacheTable(e){let t=`${e[j.Symbol.Schema]??`public`}.${e[j.Symbol.OriginalName]}`;if(!this.cachedTables[t]){for(let n of Object.values(e[j.Symbol.Columns])){if(!x(n,d))continue;let e=`${t}.${n.name}`;this.cache[e]=this.convert(n.name)}this.cachedTables[t]=!0}}clearCache(){this.cache={},this.cachedTables={}}},$i=class extends o{static[y]=`PgViewBase`},ea=class{static[y]=`PgDialect`;casing;constructor(e){this.casing=new Qi(e?.casing)}async migrate(e,t,n){let r=typeof n==`string`?`__drizzle_migrations`:n.migrationsTable??`__drizzle_migrations`,i=typeof n==`string`?`drizzle`:n.migrationsSchema??`drizzle`,a=g`
|
|
29
|
+
CREATE TABLE IF NOT EXISTS ${g.identifier(i)}.${g.identifier(r)} (
|
|
30
30
|
id SERIAL PRIMARY KEY,
|
|
31
31
|
hash text NOT NULL,
|
|
32
32
|
created_at bigint
|
|
33
33
|
)
|
|
34
|
-
`;await t.execute(_`CREATE SCHEMA IF NOT EXISTS ${_.identifier(i)}`),await t.execute(a);let o=await t.all(_`select id, hash, created_at from ${_.identifier(i)}.${_.identifier(r)} order by created_at desc limit 1`);if(typeof n==`object`&&n.init){if(o.length)return{exitCode:`databaseMigrations`};if(e.length>1)return{exitCode:`localMigrations`};let[n]=e;if(!n)return;await t.execute(_`insert into ${_.identifier(i)}.${_.identifier(r)} ("hash", "created_at") values(${n.hash}, ${n.folderMillis})`);return}let s=o[0];await t.transaction(async t=>{for await(let n of e)if(!s||Number(s.created_at)<n.folderMillis){for(let e of n.sql)await t.execute(_.raw(e));await t.execute(_`insert into ${_.identifier(i)}.${_.identifier(r)} ("hash", "created_at") values(${n.hash}, ${n.folderMillis})`)}})}escapeName(e){return`"${e}"`}escapeParam(e){return`$${e+1}`}escapeString(e){return`'${e.replace(/'/g,`''`)}'`}buildWithCTE(e){if(!e?.length)return;let t=[_`with `];for(let[n,r]of e.entries())t.push(_`${_.identifier(r._.alias)} as (${r._.sql})`),n<e.length-1&&t.push(_`, `);return t.push(_` `),_.join(t)}buildDeleteQuery({table:e,where:t,returning:n,withList:r}){let i=this.buildWithCTE(r),a=n?_` returning ${this.buildSelection(n,{isSingleTable:!0})}`:void 0;return _`${i}delete from ${e}${t?_` where ${t}`:void 0}${a}`}buildUpdateSet(e,t){let n=e[M.Symbol.Columns],r=Object.keys(n).filter(e=>t[e]!==void 0||n[e]?.onUpdateFn!==void 0),i=r.length;return _.join(r.flatMap((e,r)=>{let a=n[e],o=a.onUpdateFn?.(),s=t[e]??(S(o,U)?o:_.param(o,a)),c=_`${_.identifier(this.casing.getColumnCasing(a))} = ${s}`;return r<i-1?[c,_.raw(`, `)]:[c]}))}buildUpdateQuery({table:e,set:t,where:n,returning:r,withList:i,from:a,joins:o}){let s=this.buildWithCTE(i),c=e[B.Symbol.Name],l=e[B.Symbol.Schema],u=e[B.Symbol.OriginalName],d=c===u?void 0:c,f=_`${l?_`${_.identifier(l)}.`:void 0}${_.identifier(u)}${d&&_` ${_.identifier(d)}`}`,p=this.buildUpdateSet(e,t),m=a&&_.join([_.raw(` from `),this.buildFromTable(a)]),h=this.buildJoins(o),g=r?_` returning ${this.buildSelection(r,{isSingleTable:!a})}`:void 0;return _`${s}update ${f} set ${p}${m}${h}${n?_` where ${n}`:void 0}${g}`}buildSelection(e,{isSingleTable:t=!1}={}){let n=e.length,r=e.flatMap(({field:e},r)=>{let i=[];if(S(e,U.Aliased)&&e.isSelectionField)i.push(_.identifier(e.fieldAlias));else if(S(e,U.Aliased)||S(e,U)){let n=S(e,U.Aliased)?e.sql:e;t?i.push(new U(n.queryChunks.map(e=>S(e,x)?_.identifier(this.casing.getColumnCasing(e)):e))):i.push(n),S(e,U.Aliased)&&i.push(_` as ${_.identifier(e.fieldAlias)}`)}else if(S(e,f))t?i.push(e.isAlias?_`${_.identifier(this.casing.getColumnCasing(Sr(e)))} as ${e}`:_.identifier(this.casing.getColumnCasing(e))):i.push(e.isAlias?_`${Sr(e)} as ${e}`:e);else if(S(e,y)){let t=Object.entries(e._.selectedFields);if(t.length===1){let n=t[0][1],r=S(n,U)?n.decoder:S(n,f)?{mapFromDriverValue:e=>n.mapFromDriverValue(e)}:n.sql.decoder;r&&(e._.sql.decoder=r)}i.push(e)}return r<n-1&&i.push(_`, `),i});return _.join(r)}buildJoins(e){if(!e||e.length===0)return;let t=[];for(let[n,r]of e.entries()){n===0&&t.push(_` `);let i=r.table,a=r.lateral?_` lateral`:void 0,o=r.on?_` on ${r.on}`:void 0;if(S(i,B)){let e=i[B.Symbol.Name],n=i[B.Symbol.Schema],s=i[B.Symbol.OriginalName],c=e===s?void 0:r.alias;t.push(_`${_.raw(r.joinType)} join${a} ${n?_`${_.identifier(n)}.`:void 0}${_.identifier(s)}${c&&_` ${_.identifier(c)}`}${o}`)}else if(S(i,s)){let e=i[p].name,n=i[p].schema,s=i[p].originalName,c=e===s?void 0:r.alias;t.push(_`${_.raw(r.joinType)} join${a} ${n?_`${_.identifier(n)}.`:void 0}${_.identifier(s)}${c&&_` ${_.identifier(c)}`}${o}`)}else t.push(_`${_.raw(r.joinType)} join${a} ${i}${o}`);n<e.length-1&&t.push(_` `)}return _.join(t)}buildFromTable(e){if(S(e,M)&&e[M.Symbol.IsAlias]){let t=_`${_.identifier(e[M.Symbol.OriginalName])}`;return e[M.Symbol.Schema]&&(t=_`${_.identifier(e[M.Symbol.Schema])}.${t}`),_`${t} ${_.identifier(e[M.Symbol.Name])}`}return e}buildSelectQuery({withList:e,fields:t,fieldsFlat:n,where:r,having:i,table:a,joins:o,orderBy:s,groupBy:c,limit:l,offset:u,lockingClause:d,distinct:m,setOperators:h}){let g=n??H(t);for(let e of g)if(S(e.field,f)&&v(e.field.table)!==(S(a,y)?a._.alias:S(a,$i)?a[p].name:S(a,U)?void 0:v(a))&&!(e=>o?.some(({alias:t})=>t===(e[M.Symbol.IsAlias]?v(e):e[M.Symbol.BaseName])))(e.field.table)){let t=v(e.field.table);throw Error(`Your "${e.path.join(`->`)}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}let b=!o||o.length===0,x=this.buildWithCTE(e),C;m&&(C=m===!0?_` distinct`:_` distinct on (${_.join(m.on,_`, `)})`);let w=this.buildSelection(g,{isSingleTable:b}),T=this.buildFromTable(a),E=this.buildJoins(o),D=r?_` where ${r}`:void 0,O=i?_` having ${i}`:void 0,k;s&&s.length>0&&(k=_` order by ${_.join(s,_`, `)}`);let A;c&&c.length>0&&(A=_` group by ${_.join(c,_`, `)}`);let j=typeof l==`object`||typeof l==`number`&&l>=0?_` limit ${l}`:void 0,N=u?_` offset ${u}`:void 0,P=_.empty();if(d){let e=_` for ${_.raw(d.strength)}`;d.config.of&&e.append(_` of ${_.join(Array.isArray(d.config.of)?d.config.of:[d.config.of],_`, `)}`),d.config.noWait?e.append(_` nowait`):d.config.skipLocked&&e.append(_` skip locked`),P.append(e)}let F=_`${x}select${C} ${w} from ${T}${E}${D}${A}${O}${k}${j}${N}${P}`;return h.length>0?this.buildSetOperations(F,h):F}buildSetOperations(e,t){let[n,...r]=t;if(!n)throw Error(`Cannot pass undefined values to any set operator`);return r.length===0?this.buildSetOperationQuery({leftSelect:e,setOperator:n}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:n}),r)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:n,rightSelect:r,limit:i,orderBy:a,offset:o}}){let s=_`(${e.getSQL()}) `,c=_`(${r.getSQL()})`,l;if(a&&a.length>0){let e=[];for(let t of a)if(S(t,x))e.push(_.identifier(t.name));else if(S(t,U)){for(let e=0;e<t.queryChunks.length;e++){let n=t.queryChunks[e];S(n,x)&&(t.queryChunks[e]=_.identifier(n.name))}e.push(_`${t}`)}else e.push(_`${t}`);l=_` order by ${_.join(e,_`, `)} `}let u=typeof i==`object`||typeof i==`number`&&i>=0?_` limit ${i}`:void 0,d=_.raw(`${t} ${n?`all `:``}`),f=o?_` offset ${o}`:void 0;return _`${s}${d}${c}${l}${u}${f}`}buildInsertQuery({table:e,values:t,onConflict:n,returning:r,withList:i,select:a,overridingSystemValue_:o}){let s=[],c=e[M.Symbol.Columns],l=Object.entries(c).filter(([e,t])=>!t.shouldDisableInsert()),u=l.map(([,e])=>_.identifier(this.casing.getColumnCasing(e)));if(a){let e=t;S(e,U)?s.push(e):s.push(e.getSQL())}else{let e=t;s.push(_.raw(`values `));for(let[t,n]of e.entries()){let r=[];for(let[e,t]of l){let i=n[e];if(i===void 0||S(i,te)&&i.value===void 0)if(t.defaultFn!==void 0){let e=t.defaultFn(),n=S(e,U)?e:_.param(e,t);r.push(n)}else if(!t.default&&t.onUpdateFn!==void 0){let e=t.onUpdateFn(),n=S(e,U)?e:_.param(e,t);r.push(n)}else r.push(_`default`);else r.push(i)}s.push(r),t<e.length-1&&s.push(_`, `)}}let d=this.buildWithCTE(i),f=_.join(s),p=r?_` returning ${this.buildSelection(r,{isSingleTable:!0})}`:void 0,m=n?_` on conflict ${n}`:void 0;return _`${d}insert into ${e} ${u} ${o===!0?_`overriding system value `:void 0}${f}${m}${p}`}buildRefreshMaterializedViewQuery({view:e,concurrently:t,withNoData:n}){return _`refresh materialized view${t?_` concurrently`:void 0} ${e}${n?_` with no data`:void 0}`}prepareTyping(e){return S(e,E)||S(e,P)?`json`:S(e,z)?`decimal`:S(e,I)?`time`:S(e,j)||S(e,w)?`timestamp`:S(e,V)||S(e,D)?`date`:S(e,R)?`uuid`:`none`}sqlToQuery(e,t){return e.toQuery({casing:this.casing,escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString,prepareTyping:this.prepareTyping,invokeSource:t})}_buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:n,table:r,tableConfig:i,queryConfig:a,tableAlias:o,nestedQueryRelation:s,joinOn:c}){let l=[],d,p,m=[],h,g=[];if(a===!0)l=Object.entries(i.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:yr(t,o),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let r=Object.fromEntries(Object.entries(i.columns).map(([e,t])=>[e,yr(t,o)]));if(a.where){let e=typeof a.where==`function`?a.where(r,zi()):a.where;h=e&&xr(e,o)}let s=[],c=[];if(a.columns){let e=!1;for(let[t,n]of Object.entries(a.columns))n!==void 0&&t in i.columns&&(!e&&n===!0&&(e=!0),c.push(t));c.length>0&&(c=e?c.filter(e=>a.columns?.[e]===!0):Object.keys(i.columns).filter(e=>!c.includes(e)))}else c=Object.keys(i.columns);for(let e of c){let t=i.columns[e];s.push({tsKey:e,value:t})}let v=[];a.with&&(v=Object.entries(a.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:i.relations[e]})));let b;if(a.extras){b=typeof a.extras==`function`?a.extras(r,{sql:_}):a.extras;for(let[e,t]of Object.entries(b))s.push({tsKey:e,value:br(t,o)})}for(let{tsKey:e,value:t}of s)l.push({dbKey:S(t,U.Aliased)?t.fieldAlias:i.columns[e].name,tsKey:e,field:S(t,f)?yr(t,o):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let x=typeof a.orderBy==`function`?a.orderBy(r,Bi()):a.orderBy??[];Array.isArray(x)||(x=[x]),m=x.map(e=>S(e,f)?yr(e,o):xr(e,o)),d=a.limit,p=a.offset;for(let{tsKey:r,queryConfig:i,relation:a}of v){let s=Wi(t,n,a),c=n[u(a.referencedTable)],d=`${o}_${r}`,f=q(...s.fields.map((e,t)=>he(yr(s.references[t],d),yr(e,o)))),p=this._buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:n,table:e[c],tableConfig:t[c],queryConfig:S(a,Li)?i===!0?{limit:1}:{...i,limit:1}:i,tableAlias:d,joinOn:f,nestedQueryRelation:a}),m=_`${_.identifier(d)}.${_.identifier(`data`)}`.as(r);g.push({on:_`true`,table:new y(p.sql,{},d),alias:d,joinType:`left`,lateral:!0}),l.push({dbKey:r,tsKey:r,field:m,relationTableTsKey:c,isJson:!0,selection:p.selection})}}if(l.length===0)throw new Cr({message:`No fields selected for table "${i.tsName}" ("${o}")`});let v;if(h=q(c,h),s){let e=_`json_build_array(${_.join(l.map(({field:e,tsKey:t,isJson:n})=>n?_`${_.identifier(`${o}_${t}`)}.${_.identifier(`data`)}`:S(e,U.Aliased)?e.sql:e),_`, `)})`;S(s,Ri)&&(e=_`coalesce(json_agg(${e}${m.length>0?_` order by ${_.join(m,_`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:`data`,tsKey:`data`,field:e.as(`data`),isJson:!0,relationTableTsKey:i.tsName,selection:l}];d!==void 0||p!==void 0||m.length>0?(v=this.buildSelectQuery({table:_r(r,o),fields:{},fieldsFlat:[{path:[],field:_.raw(`*`)}],where:h,limit:d,offset:p,orderBy:m,setOperators:[]}),h=void 0,d=void 0,p=void 0,m=[]):v=_r(r,o),v=this.buildSelectQuery({table:S(v,B)?v:new y(v,{},o),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:S(e,f)?yr(e,o):e})),joins:g,where:h,limit:d,offset:p,orderBy:m,setOperators:[]})}else v=this.buildSelectQuery({table:_r(r,o),fields:{},fieldsFlat:l.map(({field:e})=>({path:[],field:S(e,f)?yr(e,o):e})),joins:g,where:h,limit:d,offset:p,orderBy:m,setOperators:[]});return{tableTsKey:i.tsName,sql:v,selection:l}}nestedSelectionerror(){throw new Cr({message:`Views with nested selections are not supported by the relational query builder`})}buildRqbColumn(e,t,n){if(S(t,f)){let r=_`${e}.${_.identifier(this.casing.getColumnCasing(t))}`,i=t.columnType,a=t,s=0;for(;S(a,o);)a=a.baseColumn,i=a.columnType,++s;switch(i){case`PgNumeric`:case`PgNumericNumber`:case`PgNumericBigInt`:case`PgBigInt64`:case`PgBigIntString`:case`PgBigSerial64`:case`PgTimestampString`:case`PgGeometry`:case`PgGeometryObject`:case`PgBytea`:{let e=`[]`.repeat(s);return _`${r}::text${_.raw(e).if(e)} as ${_.identifier(n)}`}case`PgCustomColumn`:return _`${a.jsonSelectIdentifier(r,_,s>0?s:void 0)} as ${_.identifier(n)}`;default:return _`${r} as ${_.identifier(n)}`}}return _`${e}.${S(t,U.Aliased)?_.identifier(t.fieldAlias):l(t)?_.identifier(n):this.nestedSelectionerror()} as ${_.identifier(n)}`}unwrapAllColumns=(e,t)=>_.join(Object.entries(e[h]).map(([n,r])=>(t.push({key:n,field:r}),this.buildRqbColumn(e,r,n))),_`, `);buildColumns=(e,t,n)=>n?.columns?(()=>{let r=Object.entries(n.columns),i=e[h],a=[],o;for(let[n,s]of r)if(s!==void 0&&(o||=s,s)){let r=i[n];a.push(this.buildRqbColumn(e,r,n)),t.push({key:n,field:r})}if(o===!1)for(let[r,o]of Object.entries(i))n.columns[r]!==!1&&(a.push(this.buildRqbColumn(e,o,r)),t.push({key:r,field:o}));return a.length?_.join(a,_`, `):void 0})():this.unwrapAllColumns(e,t);buildRelationalQuery({schema:e,table:t,tableConfig:n,queryConfig:r,relationWhere:i,mode:a,errorPath:o,depth:s,throughJoin:c}){let l=[],u=a===`first`,d=r===!0?void 0:r,f=o??``,p=s??0;p||(t=_r(t,`d${p}`));let m=u?1:d?.limit,h=d?.offset,g=d?.where&&i?q(zr(t,d.where,n.relations,e,this.casing),i):d?.where?zr(t,d.where,n.relations,e,this.casing):i,v=d?.orderBy?Br(t,d.orderBy):void 0,y=this.buildColumns(t,l,d),b=d?.extras?Vr(t,d.extras):void 0;b&&l.push(...b.selection);let x=y?[y]:[],C=d?(()=>{let{with:r}=d;if(!r)return;let i=Object.entries(r).filter(([e,t])=>t);if(i.length)return _.join(i.map(([r,i])=>{let a=n.relations[r],o=S(a,Nr),s=_r(a.targetTable,`d${p+1}`),c=a.throughTable?_r(a.throughTable,`tr${p}`):void 0,{filter:u,joinCondition:d}=Hr(this.casing,a,t,s,c);x.push(_`${_.identifier(r)}.${_.identifier(`r`)} as ${_.identifier(r)}`);let m=c?_` inner join ${Ur(c)} on ${d}`:void 0,h=this.buildRelationalQuery({table:s,mode:o?`first`:`many`,schema:e,queryConfig:i,tableConfig:e[a.targetTableName],relationWhere:u,errorPath:`${f.length?`${f}.`:``}${r}`,depth:p+1,throughJoin:m});return l.push({field:s,key:r,selection:h.selection,isArray:!o,isOptional:(a.optional??!1)||i!==!0&&!!i.where}),_`left join lateral(select ${o?_`row_to_json(${_.identifier(`t`)}.*) ${_.identifier(`r`)}`:_`coalesce(json_agg(row_to_json(${_.identifier(`t`)}.*)), '[]') as ${_.identifier(`r`)}`} from (${h.sql}) as ${_.identifier(`t`)}) as ${_.identifier(r)} on true`}),_` `)})():void 0;if(b?.sql&&x.push(b.sql),!x.length)throw new Cr({message:`No fields selected for table "${n.name}"${f?` ("${f}")`:``}`});return{sql:_`select ${_.join(x.filter(e=>e!==void 0),_`, `)} from ${Ur(t)}${c}${_` ${C}`.if(C)}${_` where ${g}`.if(g)}${_` order by ${v}`.if(v)}${_` limit ${m}`.if(m!==void 0)}${_` offset ${h}`.if(h!==void 0)}`,selection:l}}},ta=class{static[b]=`TypedQueryBuilder`;getSelectedFields(){return this._.selectedFields}},X=class{static[b]=`PgSelectBuilder`;fields;session;dialect;withList=[];distinct;constructor(e){this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}authToken;setToken(e){return this.authToken=e,this}from(e){let t=!!this.fields,n=e,r;return r=this.fields?this.fields:S(n,y)?Object.fromEntries(Object.keys(n._.selectedFields).map(e=>[e,n[e]])):S(n,$i)?n[p].selectedFields:S(n,U)?{}:L(n),new ra({table:n,fields:r,isPartialSelect:t,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}},na=class extends ta{static[b]=`PgSelectQueryBuilder`;_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:e,fields:t,isPartialSelect:n,session:r,dialect:i,withList:a,distinct:o}){super(),this.config={withList:a,table:e,fields:{...t},distinct:o,setOperators:[]},this.isPartialSelect=n,this.session=r,this.dialect=i,this._={selectedFields:t,config:this.config},this.tableName=F(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{};for(let t of qi(e))this.usedTables.add(t)}getUsedTables(){return[...this.usedTables]}createJoin(e,t){return((n,r)=>{let i=this.tableName,a=F(n);for(let e of qi(n))this.usedTables.add(e);if(typeof a==`string`&&this.config.joins?.some(e=>e.alias===a))throw Error(`Alias "${a}" is already used in this query`);if(!this.isPartialSelect&&(Object.keys(this.joinsNotNullableMap).length===1&&typeof i==`string`&&(this.config.fields={[i]:this.config.fields}),typeof a==`string`&&!S(n,U))){let e=S(n,y)?n._.selectedFields:S(n,s)?n[p].selectedFields:n[M.Symbol.Columns];this.config.fields[a]=e}if(typeof r==`function`&&(r=r(new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:n,joinType:e,alias:a,lateral:t}),typeof a==`string`)switch(e){case`left`:this.joinsNotNullableMap[a]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!0;break;case`cross`:case`inner`:this.joinsNotNullableMap[a]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!1;break}return this})}leftJoin=this.createJoin(`left`,!1);leftJoinLateral=this.createJoin(`left`,!0);rightJoin=this.createJoin(`right`,!1);innerJoin=this.createJoin(`inner`,!1);innerJoinLateral=this.createJoin(`inner`,!0);fullJoin=this.createJoin(`full`,!1);crossJoin=this.createJoin(`cross`,!1);crossJoinLateral=this.createJoin(`cross`,!0);createSetOperator(e,t){return n=>{let r=typeof n==`function`?n(aa()):n;if(!A(this.getSelectedFields(),r.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return this.config.setOperators.push({type:e,isAll:t,rightSelect:r}),this}}union=this.createSetOperator(`union`,!1);unionAll=this.createSetOperator(`union`,!0);intersect=this.createSetOperator(`intersect`,!1);intersectAll=this.createSetOperator(`intersect`,!0);except=this.createSetOperator(`except`,!1);exceptAll=this.createSetOperator(`except`,!0);addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.where=e,this}having(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.having=e,this}groupBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`}))),n=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=n:this.config.orderBy=n}else{let t=e;this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=t:this.config.orderBy=t}return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){let t=[];if(t.push(...qi(this.config.table)),this.config.joins)for(let e of this.config.joins)t.push(...qi(e.table));return new Proxy(new y(this.getSQL(),this.config.fields,e,!1,[...new Set(t)]),new Y({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}getSelectedFields(){return new Proxy(this.config.fields,new Y({alias:this.tableName,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}$dynamic(){return this}$withCache(e){return this.cacheConfig=e===void 0?{config:{},enable:!0,autoInvalidate:!0}:e===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...e},this}},ra=class extends na{static[b]=`PgSelect`;_prepare(e){let{session:t,config:n,dialect:r,joinsNotNullableMap:i,authToken:a,cacheConfig:o,usedTables:s}=this;if(!t)throw Error(`Cannot execute a query on a query builder. Please use a database instance instead.`);let{fields:c}=n;return m.startActiveSpan(`drizzle.prepareQuery`,()=>{let n=H(c),l=t.prepareQuery(r.sqlToQuery(this.getSQL()),n,e,!0,void 0,{type:`select`,tables:[...s]},o);return l.joinsNotNullableMap=i,l.setToken(a)})}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>m.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))};O(ra,[kr]);function ia(e,t){return(n,r,...i)=>{let a=[r,...i].map(n=>({type:e,isAll:t,rightSelect:n}));for(let e of a)if(!A(n.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return n.addSetOperators(a)}}const aa=()=>({union:oa,unionAll:sa,intersect:ca,intersectAll:la,except:ua,exceptAll:da}),oa=ia(`union`,!1),sa=ia(`union`,!0),ca=ia(`intersect`,!1),la=ia(`intersect`,!0),ua=ia(`except`,!1),da=ia(`except`,!0);var fa=class{static[b]=`PgQueryBuilder`;dialect;dialectConfig;constructor(e){this.dialect=S(e,ea)?e:void 0,this.dialectConfig=S(e,ea)?void 0:e}$with=(e,t)=>{let n=this;return{as:r=>(typeof r==`function`&&(r=r(n)),new Proxy(new ne(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new Y({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})))}};with(...e){let t=this;function n(n){return new X({fields:n??void 0,session:void 0,dialect:t.getDialect(),withList:e})}function r(e){return new X({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})}function i(e,n){return new X({fields:n??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}return{select:n,selectDistinct:r,selectDistinctOn:i}}select(e){return new X({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new X({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new X({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||=new ea(this.dialectConfig),this.dialect}},pa=class{constructor(e,t,n,r,i){this.table=e,this.session=t,this.dialect=n,this.withList=r,this.overridingSystemValue_=i}static[b]=`PgInsertBuilder`;authToken;setToken(e){return this.authToken=e,this}overridingSystemValue(){return this.overridingSystemValue_=!0,this}values(e){if(e=Array.isArray(e)?e:[e],e.length===0)throw Error(`values() must be called with at least one value`);let t=e.map(e=>{let t={},n=this.table[M.Symbol.Columns];for(let r of Object.keys(e)){let i=e[r];t[r]=S(i,U)?i:new te(i,n[r])}return t});return new ma(this.table,t,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(e){let t=typeof e==`function`?e(new fa):e;if(!S(t,U)&&!A(this.table[h],t._.selectedFields))throw Error(`Insert select error: selected fields are not the same or are in a different order compared to the table definition`);return new ma(this.table,t,this.session,this.dialect,this.withList,!0)}},ma=class extends kr{constructor(e,t,n,r,i,a,o){super(),this.session=n,this.dialect=r,this.config={table:e,values:t,withList:i,select:a,overridingSystemValue_:o}}static[b]=`PgInsert`;config;cacheConfig;returning(e=this.config.table[M.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=H(e),this}onConflictDoNothing(e={}){if(e.target===void 0)this.config.onConflict=_`do nothing`;else{let t=``;t=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target));let n=e.where?_` where ${e.where}`:void 0;this.config.onConflict=_`(${_.raw(t)})${n} do nothing`}return this}onConflictDoUpdate(e){if(e.where&&(e.targetWhere||e.setWhere))throw Error(`You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.`);let t=e.where?_` where ${e.where}`:void 0,n=e.targetWhere?_` where ${e.targetWhere}`:void 0,r=e.setWhere?_` where ${e.setWhere}`:void 0,i=this.dialect.buildUpdateSet(this.config.table,C(this.config.table,e.set)),a=``;return a=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target)),this.config.onConflict=_`(${_.raw(a)})${n} do update set ${i}${t}${r}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return m.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:qi(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>m.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new Y({alias:v(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},ha=class extends kr{constructor(e,t,n){super(),this.session=t,this.dialect=n,this.config={view:e}}static[b]=`PgRefreshMaterializedView`;config;concurrently(){if(this.config.withNoData!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.concurrently=!0,this}withNoData(){if(this.config.concurrently!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return m.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e,!0))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>m.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))},ga=class{constructor(e,t,n,r){this.table=e,this.session=t,this.dialect=n,this.withList=r}static[b]=`PgUpdateBuilder`;authToken;setToken(e){return this.authToken=e,this}set(e){return new _a(this.table,C(this.table,e),this.session,this.dialect,this.withList).setToken(this.authToken)}},_a=class extends kr{constructor(e,t,n,r,i){super(),this.session=n,this.dialect=r,this.config={set:t,table:e,withList:i,joins:[]},this.tableName=F(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{}}static[b]=`PgUpdate`;config;tableName;joinsNotNullableMap;cacheConfig;from(e){let t=e,n=F(t);return typeof n==`string`&&(this.joinsNotNullableMap[n]=!0),this.config.from=t,this}getTableLikeFields(e){return S(e,B)?e[M.Symbol.Columns]:S(e,y)?e._.selectedFields:e[p].selectedFields}createJoin(e){return((t,n)=>{let r=F(t);if(typeof r==`string`&&this.config.joins.some(e=>e.alias===r))throw Error(`Alias "${r}" is already used in this query`);if(typeof n==`function`){let e=this.config.from&&!S(this.config.from,U)?this.getTableLikeFields(this.config.from):void 0;n=n(new Proxy(this.config.table[M.Symbol.Columns],new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})),e&&new Proxy(e,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))}if(this.config.joins.push({on:n,table:t,joinType:e,alias:r}),typeof r==`string`)switch(e){case`left`:this.joinsNotNullableMap[r]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!0;break;case`inner`:this.joinsNotNullableMap[r]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!1;break}return this})}leftJoin=this.createJoin(`left`);rightJoin=this.createJoin(`right`);innerJoin=this.createJoin(`inner`);fullJoin=this.createJoin(`full`);where(e){return this.config.where=e,this}returning(e){if(!e&&(e=Object.assign({},this.config.table[M.Symbol.Columns]),this.config.from)){let t=F(this.config.from);if(typeof t==`string`&&this.config.from&&!S(this.config.from,U)){let n=this.getTableLikeFields(this.config.from);e[t]=n}for(let t of this.config.joins){let n=F(t.table);if(typeof n==`string`&&!S(t.table,U)){let r=this.getTableLikeFields(t.table);e[n]=r}}}return this.config.returningFields=e,this.config.returning=H(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){let t=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:qi(this.config.table)},this.cacheConfig);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>this._prepare().execute(e,this.authToken);getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new Y({alias:v(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},va=class{constructor(e,t,n,r,i,a,o){this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o}static[b]=`PgRelationalQueryBuilder`;findMany(e){return new ya(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},`many`)}findFirst(e){return new ya(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},`first`)}},ya=class extends kr{constructor(e,t,n,r,i,a,o,s,c){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o,this.config=s,this.mode=c}static[b]=`PgRelationalQuery`;_prepare(e){return m.startActiveSpan(`drizzle.prepareQuery`,()=>{let{query:t,builtQuery:n}=this._toSQL();return this.session.prepareQuery(n,void 0,e,!0,(e,n)=>{let r=e.map(e=>Ki(this.schema,this.tableConfig,e,t.selection,n));return this.mode===`first`?r[0]:r})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect._buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery();return{query:e,builtQuery:this.dialect.sqlToQuery(e.sql)}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(e){return this.authToken=e,this}execute(){return m.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},ba=class e extends U{constructor(t){super(e.buildEmbeddedCount(t.source,t.filters).queryChunks),this.params=t,this.mapWith(Number),this.session=t.session,this.sql=e.buildCount(t.source,t.filters)}sql;token;static[b]=`PgCountBuilder`;[Symbol.toStringTag]=`PgCountBuilder`;session;static buildEmbeddedCount(e,t){return _`(select count(*) from ${e}${_.raw(` where `).if(t)}${t})`}static buildCount(e,t){return _`select count(*) as count from ${e}${_.raw(` where `).if(t)}${t};`}setToken(e){return this.token=e,this}then(e,t){return Promise.resolve(this.session.count(this.sql,this.token)).then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}},xa=class{constructor(e,t,n,r,i,a){this.schema=e,this.table=t,this.tableConfig=n,this.dialect=r,this.session=i,this.parseJson=a}static[b]=`PgRelationalQueryBuilderV2`;findMany(e){return new Sa(this.schema,this.table,this.tableConfig,this.dialect,this.session,e??!0,`many`,this.parseJson)}findFirst(e){return new Sa(this.schema,this.table,this.tableConfig,this.dialect,this.session,e??!0,`first`,this.parseJson)}},Sa=class extends kr{constructor(e,t,n,r,i,a,o,s){super(),this.schema=e,this.table=t,this.tableConfig=n,this.dialect=r,this.session=i,this.config=a,this.mode=o,this.parseJson=s}static[b]=`PgRelationalQueryV2`;_prepare(e){return m.startActiveSpan(`drizzle.prepareQuery`,()=>{let{query:t,builtQuery:n}=this._toSQL();return this.session.prepareRelationalQuery(n,void 0,e,(e,n)=>{for(let r of e)Ir(r,t.selection,n,this.parseJson);return this.mode===`first`?e[0]:e})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect.buildRelationalQuery({schema:this.schema,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,mode:this.mode})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery();return{query:e,builtQuery:this.dialect.sqlToQuery(e.sql)}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(e){return this.authToken=e,this}execute(){return m.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},Ca=class extends kr{constructor(e,t,n,r){super(),this.execute=e,this.sql=t,this.query=n,this.mapBatchResult=r}static[b]=`PgRaw`;getSQL(){return this.sql}getQuery(){return this.query}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}isResponseInArrayMode(){return!1}},wa=class{constructor(e,t,n,r,i=!1){if(this.dialect=e,this.session=t,this._=r?{schema:r.schema,fullSchema:r.fullSchema,tableNamesMap:r.tableNamesMap,relations:n,session:t}:{schema:void 0,fullSchema:{},tableNamesMap:{},relations:n,session:t},this._query={},this._.schema)for(let[n,i]of Object.entries(this._.schema))this._query[n]=new va(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[n],i,e,t);this.query={};for(let[r,a]of Object.entries(n))this.query[r]=new xa(n,n[a.name].table,a,e,t,i);this.$cache={invalidate:async e=>{}}}static[b]=`PgDatabase`;_query;query;$with=(e,t)=>{let n=this;return{as:r=>(typeof r==`function`&&(r=r(new fa(n.dialect))),new Proxy(new ne(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new Y({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})))}};$count(e,t){return new ba({source:e,filters:t,session:this.session})}$cache;with(...e){let t=this;function n(n){return new X({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e})}function r(n){return new X({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}function i(n,r){return new X({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:{on:n}})}function a(n){return new ga(n,t.session,t.dialect,e)}function o(n){return new pa(n,t.session,t.dialect,e)}function s(n){return new Ji(n,t.session,t.dialect,e)}return{select:n,selectDistinct:r,selectDistinctOn:i,update:a,insert:o,delete:s}}select(e){return new X({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new X({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new X({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new ga(e,this.session,this.dialect)}insert(e){return new pa(e,this.session,this.dialect)}delete(e){return new Ji(e,this.session,this.dialect)}refreshMaterializedView(e){return new ha(e,this.session,this.dialect)}authToken;execute(e){let t=typeof e==`string`?_.raw(e):e.getSQL(),n=this.dialect.sqlToQuery(t),r=this.session.prepareQuery(n,void 0,void 0,!1);return new Ca(()=>r.execute(void 0,this.authToken),t,n,e=>r.mapResult(e,!0))}transaction(e,t){return this.session.transaction(e,t)}},Ta=class{static[b]=`Cache`},Ea=class extends Ta{strategy(){return`all`}static[b]=`NoopCache`;async get(e){}async put(e,t,n,r){}async onMutate(e){}};async function Da(e,t){let n=`${e}-${JSON.stringify(t)}`,r=new TextEncoder().encode(n),i=await crypto.subtle.digest(`SHA-256`,r);return[...new Uint8Array(i)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Oa=class{constructor(e,t,n,r){this.query=e,this.cache=t,this.queryMetadata=n,this.cacheConfig=r,t&&t.strategy()===`all`&&r===void 0&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),this.cacheConfig?.enable||(this.cacheConfig=void 0)}authToken;getQuery(){return this.query}mapResult(e,t){return e}setToken(e){return this.authToken=e,this}static[b]=`PgPreparedQuery`;joinsNotNullableMap;async queryWithCache(e,t,n){if(this.cache===void 0||S(this.cache,Ea)||this.queryMetadata===void 0)try{return await n()}catch(n){throw new wr(e,t,n)}if(this.cacheConfig&&!this.cacheConfig.enable)try{return await n()}catch(n){throw new wr(e,t,n)}if((this.queryMetadata.type===`insert`||this.queryMetadata.type===`update`||this.queryMetadata.type===`delete`)&&this.queryMetadata.tables.length>0)try{let[e]=await Promise.all([n(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return e}catch(n){throw new wr(e,t,n)}if(!this.cacheConfig)try{return await n()}catch(n){throw new wr(e,t,n)}if(this.queryMetadata.type===`select`){let r=await this.cache.get(this.cacheConfig.tag??await Da(e,t),this.queryMetadata.tables,this.cacheConfig.tag!==void 0,this.cacheConfig.autoInvalidate);if(r===void 0){let r;try{r=await n()}catch(n){throw new wr(e,t,n)}return await this.cache.put(this.cacheConfig.tag??await Da(e,t),r,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],this.cacheConfig.tag!==void 0,this.cacheConfig.config),r}return r}try{return await n()}catch(n){throw new wr(e,t,n)}}},ka=class{constructor(e){this.dialect=e}static[b]=`PgSession`;execute(e,t){return m.startActiveSpan(`drizzle.operation`,()=>m.startActiveSpan(`drizzle.prepareQuery`,()=>this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1)).setToken(t).execute(void 0,t))}all(e){return this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1).all()}async count(e,t){let n=await this.execute(e,t);return Number(n[0].count)}},Aa=class extends wa{constructor(e,t,n,r,i=0,a){super(e,t,n,r,a),this.relations=n,this.schema=r,this.nestedIndex=i}static[b]=`PgTransaction`;rollback(){throw new Tr}getTransactionConfigSQL(e){let t=[];return e.isolationLevel&&t.push(`isolation level ${e.isolationLevel}`),e.accessMode&&t.push(e.accessMode),typeof e.deferrable==`boolean`&&t.push(e.deferrable?`deferrable`:`not deferrable`),_.raw(t.join(` `))}setTransaction(e){return this.session.execute(_`set transaction ${this.getTransactionConfigSQL(e)}`)}};const{Pool:ja,types:Z}=Mi;var Ma=class extends Oa{constructor(e,t,n,r,i,a,o,s,c,l,u,d){super({sql:t,params:n},i,a,o),this.client=e,this.queryString=t,this.params=n,this.logger=r,this.fields=s,this._isResponseInArrayMode=l,this.customResultMapper=u,this.isRqbV2Query=d,this.rawQueryConfig={name:c,text:t,types:{getTypeParser:(e,t)=>e===Z.builtins.TIMESTAMPTZ||e===Z.builtins.TIMESTAMP||e===Z.builtins.DATE||e===Z.builtins.INTERVAL||e===1231||e===1115||e===1185||e===1187||e===1182?e=>e:Z.getTypeParser(e,t)}},this.queryConfig={name:c,text:t,rowMode:`array`,types:{getTypeParser:(e,t)=>e===Z.builtins.TIMESTAMPTZ||e===Z.builtins.TIMESTAMP||e===Z.builtins.DATE||e===Z.builtins.INTERVAL||e===1231||e===1115||e===1185||e===1187||e===1182?e=>e:Z.getTypeParser(e,t)}}}static[b]=`NodePgPreparedQuery`;rawQueryConfig;queryConfig;async execute(e={}){return this.isRqbV2Query?this.executeRqbV2(e):m.startActiveSpan(`drizzle.execute`,async()=>{let t=ee(this.params,e);this.logger.logQuery(this.rawQueryConfig.text,t);let{fields:n,rawQueryConfig:r,client:i,queryConfig:a,joinsNotNullableMap:o,customResultMapper:s}=this;if(!n&&!s)return m.startActiveSpan(`drizzle.driver.execute`,async e=>(e?.setAttributes({"drizzle.query.name":r.name,"drizzle.query.text":r.text,"drizzle.query.params":JSON.stringify(t)}),this.queryWithCache(r.text,t,async()=>await i.query(r,t))));let c=await m.startActiveSpan(`drizzle.driver.execute`,e=>(e?.setAttributes({"drizzle.query.name":a.name,"drizzle.query.text":a.text,"drizzle.query.params":JSON.stringify(t)}),this.queryWithCache(a.text,t,async()=>await i.query(a,t))));return m.startActiveSpan(`drizzle.mapResponse`,()=>s?s(c.rows):c.rows.map(e=>k(n,e,o)))})}async executeRqbV2(e={}){return m.startActiveSpan(`drizzle.execute`,async()=>{let t=ee(this.params,e);this.logger.logQuery(this.rawQueryConfig.text,t);let{rawQueryConfig:n,client:r,customResultMapper:i}=this,a=await m.startActiveSpan(`drizzle.driver.execute`,e=>(e?.setAttributes({"drizzle.query.name":n.name,"drizzle.query.text":n.text,"drizzle.query.params":JSON.stringify(t)}),r.query(n,t)));return m.startActiveSpan(`drizzle.mapResponse`,()=>i(a.rows))})}all(e={}){return m.startActiveSpan(`drizzle.execute`,()=>{let t=ee(this.params,e);return this.logger.logQuery(this.rawQueryConfig.text,t),m.startActiveSpan(`drizzle.driver.execute`,e=>(e?.setAttributes({"drizzle.query.name":this.rawQueryConfig.name,"drizzle.query.text":this.rawQueryConfig.text,"drizzle.query.params":JSON.stringify(t)}),this.queryWithCache(this.rawQueryConfig.text,t,async()=>this.client.query(this.rawQueryConfig,t)).then(e=>e.rows)))})}isResponseInArrayMode(){return this._isResponseInArrayMode}},Na=class e extends ka{constructor(e,t,n,r,i={}){super(t),this.client=e,this.relations=n,this.schema=r,this.options=i,this.logger=i.logger??new Or,this.cache=i.cache??new Ea}static[b]=`NodePgSession`;logger;cache;prepareQuery(e,t,n,r,i,a,o){return new Ma(this.client,e.sql,e.params,this.logger,this.cache,a,o,t,n,r,i)}prepareRelationalQuery(e,t,n,r){return new Ma(this.client,e.sql,e.params,this.logger,this.cache,void 0,void 0,t,n,!1,r,!0)}async transaction(t,n){let r=this.client instanceof ja||Object.getPrototypeOf(this.client).constructor.name.includes(`Pool`),i=r?new e(await this.client.connect(),this.dialect,this.relations,this.schema,this.options):this,a=new Pa(this.dialect,i,this.relations,this.schema);await a.execute(_`begin${n?_` ${a.getTransactionConfigSQL(n)}`:void 0}`);try{let e=await t(a);return await a.execute(_`commit`),e}catch(e){throw await a.execute(_`rollback`),e}finally{r&&i.client.release()}}async count(e){let t=await this.execute(e);return Number(t.rows[0].count)}},Pa=class e extends Aa{static[b]=`NodePgTransaction`;async transaction(t){let n=`sp${this.nestedIndex+1}`,r=new e(this.dialect,this.session,this.relations,this.schema,this.nestedIndex+1);await r.execute(_.raw(`savepoint ${n}`));try{let e=await t(r);return await r.execute(_.raw(`release savepoint ${n}`)),e}catch(e){throw await r.execute(_.raw(`rollback to savepoint ${n}`)),e}}},Fa=class{constructor(e,t,n={}){this.client=e,this.dialect=t,this.options=n}static[b]=`NodePgDriver`;createSession(e,t){return new Na(this.client,this.dialect,e,t,{logger:this.options.logger,cache:this.options.cache})}},Ia=class extends wa{static[b]=`NodePgDatabase`};function La(e,t={}){let n=new ea({casing:t.casing}),r;t.logger===!0?r=new Dr:t.logger!==!1&&(r=t.logger);let i;if(t.schema){let e=Vi(t.schema,Gi);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=t.relations??{},o=new Ia(n,new Fa(e,n,{logger:r,cache:t.cache}).createSession(a,i),a,i);return o.$client=e,o.$cache=t.cache,o.$cache&&(o.$cache.invalidate=t.cache?.onMutate),o}function Ra(...e){if(typeof e[0]==`string`)return La(new Mi.Pool({connectionString:e[0]}),e[1]);let{connection:t,client:n,...r}=e[0];return La(n||(typeof t==`string`?new Mi.Pool({connectionString:t}):new Mi.Pool(t)),r)}(e=>{function t(e){return La({},e)}e.mock=t})(Ra||={});function za(e){let t=parseInt(e.slice(0,4),10),n=parseInt(e.slice(4,6),10)-1,r=parseInt(e.slice(6,8),10),i=parseInt(e.slice(8,10),10),a=parseInt(e.slice(10,12),10),o=parseInt(e.slice(12,14),10);return Date.UTC(t,n,r,i,a,o)}function Ba(e){let t=e.migrationsFolder,n=[],r=`${t}/meta/_journal.json`,i=Le.readFileSync(r).toString(),a=JSON.parse(i);for(let e of a.entries){let r=`${t}/${e.tag}.sql`;try{let r=Le.readFileSync(`${t}/${e.tag}.sql`).toString(),i=r.split(`--> statement-breakpoint`).map(e=>e);n.push({sql:i,bps:e.breakpoints,folderMillis:e.when,hash:Qe.createHash(`sha256`).update(r).digest(`hex`)})}catch{throw Error(`No file ${r} found in ${t} folder`)}}return n}function Va(e){if(Le.existsSync(`${e.migrationsFolder}/meta/_journal.json`))return console.log(`
|
|
34
|
+
`;await t.execute(g`CREATE SCHEMA IF NOT EXISTS ${g.identifier(i)}`),await t.execute(a);let o=await t.all(g`select id, hash, created_at from ${g.identifier(i)}.${g.identifier(r)} order by created_at desc limit 1`);if(typeof n==`object`&&n.init){if(o.length)return{exitCode:`databaseMigrations`};if(e.length>1)return{exitCode:`localMigrations`};let[n]=e;if(!n)return;await t.execute(g`insert into ${g.identifier(i)}.${g.identifier(r)} ("hash", "created_at") values(${n.hash}, ${n.folderMillis})`);return}let s=o[0];await t.transaction(async t=>{for await(let n of e)if(!s||Number(s.created_at)<n.folderMillis){for(let e of n.sql)await t.execute(g.raw(e));await t.execute(g`insert into ${g.identifier(i)}.${g.identifier(r)} ("hash", "created_at") values(${n.hash}, ${n.folderMillis})`)}})}escapeName(e){return`"${e}"`}escapeParam(e){return`$${e+1}`}escapeString(e){return`'${e.replace(/'/g,`''`)}'`}buildWithCTE(e){if(!e?.length)return;let t=[g`with `];for(let[n,r]of e.entries())t.push(g`${g.identifier(r._.alias)} as (${r._.sql})`),n<e.length-1&&t.push(g`, `);return t.push(g` `),g.join(t)}buildDeleteQuery({table:e,where:t,returning:n,withList:r}){let i=this.buildWithCTE(r),a=n?g` returning ${this.buildSelection(n,{isSingleTable:!0})}`:void 0;return g`${i}delete from ${e}${t?g` where ${t}`:void 0}${a}`}buildUpdateSet(e,t){let n=e[j.Symbol.Columns],r=Object.keys(n).filter(e=>t[e]!==void 0||n[e]?.onUpdateFn!==void 0),i=r.length;return g.join(r.flatMap((e,r)=>{let a=n[e],o=a.onUpdateFn?.(),s=t[e]??(x(o,U)?o:g.param(o,a)),c=g`${g.identifier(this.casing.getColumnCasing(a))} = ${s}`;return r<i-1?[c,g.raw(`, `)]:[c]}))}buildUpdateQuery({table:e,set:t,where:n,returning:r,withList:i,from:a,joins:o}){let s=this.buildWithCTE(i),c=e[z.Symbol.Name],l=e[z.Symbol.Schema],u=e[z.Symbol.OriginalName],d=c===u?void 0:c,f=g`${l?g`${g.identifier(l)}.`:void 0}${g.identifier(u)}${d&&g` ${g.identifier(d)}`}`,p=this.buildUpdateSet(e,t),m=a&&g.join([g.raw(` from `),this.buildFromTable(a)]),h=this.buildJoins(o),_=r?g` returning ${this.buildSelection(r,{isSingleTable:!a})}`:void 0;return g`${s}update ${f} set ${p}${m}${h}${n?g` where ${n}`:void 0}${_}`}buildSelection(e,{isSingleTable:t=!1}={}){let n=e.length,r=e.flatMap(({field:e},r)=>{let i=[];if(x(e,U.Aliased)&&e.isSelectionField)i.push(g.identifier(e.fieldAlias));else if(x(e,U.Aliased)||x(e,U)){let n=x(e,U.Aliased)?e.sql:e;t?i.push(new U(n.queryChunks.map(e=>x(e,b)?g.identifier(this.casing.getColumnCasing(e)):e))):i.push(n),x(e,U.Aliased)&&i.push(g` as ${g.identifier(e.fieldAlias)}`)}else if(x(e,d))t?i.push(e.isAlias?g`${g.identifier(this.casing.getColumnCasing(Sr(e)))} as ${e}`:g.identifier(this.casing.getColumnCasing(e))):i.push(e.isAlias?g`${Sr(e)} as ${e}`:e);else if(x(e,v)){let t=Object.entries(e._.selectedFields);if(t.length===1){let n=t[0][1],r=x(n,U)?n.decoder:x(n,d)?{mapFromDriverValue:e=>n.mapFromDriverValue(e)}:n.sql.decoder;r&&(e._.sql.decoder=r)}i.push(e)}return r<n-1&&i.push(g`, `),i});return g.join(r)}buildJoins(e){if(!e||e.length===0)return;let t=[];for(let[n,r]of e.entries()){n===0&&t.push(g` `);let i=r.table,a=r.lateral?g` lateral`:void 0,s=r.on?g` on ${r.on}`:void 0;if(x(i,z)){let e=i[z.Symbol.Name],n=i[z.Symbol.Schema],o=i[z.Symbol.OriginalName],c=e===o?void 0:r.alias;t.push(g`${g.raw(r.joinType)} join${a} ${n?g`${g.identifier(n)}.`:void 0}${g.identifier(o)}${c&&g` ${g.identifier(c)}`}${s}`)}else if(x(i,o)){let e=i[f].name,n=i[f].schema,o=i[f].originalName,c=e===o?void 0:r.alias;t.push(g`${g.raw(r.joinType)} join${a} ${n?g`${g.identifier(n)}.`:void 0}${g.identifier(o)}${c&&g` ${g.identifier(c)}`}${s}`)}else t.push(g`${g.raw(r.joinType)} join${a} ${i}${s}`);n<e.length-1&&t.push(g` `)}return g.join(t)}buildFromTable(e){if(x(e,j)&&e[j.Symbol.IsAlias]){let t=g`${g.identifier(e[j.Symbol.OriginalName])}`;return e[j.Symbol.Schema]&&(t=g`${g.identifier(e[j.Symbol.Schema])}.${t}`),g`${t} ${g.identifier(e[j.Symbol.Name])}`}return e}buildSelectQuery({withList:e,fields:t,fieldsFlat:n,where:r,having:i,table:a,joins:o,orderBy:s,groupBy:c,limit:l,offset:u,lockingClause:p,distinct:m,setOperators:h}){let y=n??V(t);for(let e of y)if(x(e.field,d)&&_(e.field.table)!==(x(a,v)?a._.alias:x(a,$i)?a[f].name:x(a,U)?void 0:_(a))&&!(e=>o?.some(({alias:t})=>t===(e[j.Symbol.IsAlias]?_(e):e[j.Symbol.BaseName])))(e.field.table)){let t=_(e.field.table);throw Error(`Your "${e.path.join(`->`)}" field references a column "${t}"."${e.field.name}", but the table "${t}" is not part of the query! Did you forget to join it?`)}let b=!o||o.length===0,S=this.buildWithCTE(e),C;m&&(C=m===!0?g` distinct`:g` distinct on (${g.join(m.on,g`, `)})`);let w=this.buildSelection(y,{isSingleTable:b}),T=this.buildFromTable(a),E=this.buildJoins(o),D=r?g` where ${r}`:void 0,O=i?g` having ${i}`:void 0,k;s&&s.length>0&&(k=g` order by ${g.join(s,g`, `)}`);let A;c&&c.length>0&&(A=g` group by ${g.join(c,g`, `)}`);let M=typeof l==`object`||typeof l==`number`&&l>=0?g` limit ${l}`:void 0,N=u?g` offset ${u}`:void 0,P=g.empty();if(p){let e=g` for ${g.raw(p.strength)}`;p.config.of&&e.append(g` of ${g.join(Array.isArray(p.config.of)?p.config.of:[p.config.of],g`, `)}`),p.config.noWait?e.append(g` nowait`):p.config.skipLocked&&e.append(g` skip locked`),P.append(e)}let F=g`${S}select${C} ${w} from ${T}${E}${D}${A}${O}${k}${M}${N}${P}`;return h.length>0?this.buildSetOperations(F,h):F}buildSetOperations(e,t){let[n,...r]=t;if(!n)throw Error(`Cannot pass undefined values to any set operator`);return r.length===0?this.buildSetOperationQuery({leftSelect:e,setOperator:n}):this.buildSetOperations(this.buildSetOperationQuery({leftSelect:e,setOperator:n}),r)}buildSetOperationQuery({leftSelect:e,setOperator:{type:t,isAll:n,rightSelect:r,limit:i,orderBy:a,offset:o}}){let s=g`(${e.getSQL()}) `,c=g`(${r.getSQL()})`,l;if(a&&a.length>0){let e=[];for(let t of a)if(x(t,b))e.push(g.identifier(t.name));else if(x(t,U)){for(let e=0;e<t.queryChunks.length;e++){let n=t.queryChunks[e];x(n,b)&&(t.queryChunks[e]=g.identifier(n.name))}e.push(g`${t}`)}else e.push(g`${t}`);l=g` order by ${g.join(e,g`, `)} `}let u=typeof i==`object`||typeof i==`number`&&i>=0?g` limit ${i}`:void 0,d=g.raw(`${t} ${n?`all `:``}`),f=o?g` offset ${o}`:void 0;return g`${s}${d}${c}${l}${u}${f}`}buildInsertQuery({table:e,values:t,onConflict:n,returning:r,withList:i,select:a,overridingSystemValue_:o}){let s=[],c=e[j.Symbol.Columns],l=Object.entries(c).filter(([e,t])=>!t.shouldDisableInsert()),u=l.map(([,e])=>g.identifier(this.casing.getColumnCasing(e)));if(a){let e=t;x(e,U)?s.push(e):s.push(e.getSQL())}else{let e=t;s.push(g.raw(`values `));for(let[t,n]of e.entries()){let r=[];for(let[e,t]of l){let i=n[e];if(i===void 0||x(i,ee)&&i.value===void 0)if(t.defaultFn!==void 0){let e=t.defaultFn(),n=x(e,U)?e:g.param(e,t);r.push(n)}else if(!t.default&&t.onUpdateFn!==void 0){let e=t.onUpdateFn(),n=x(e,U)?e:g.param(e,t);r.push(n)}else r.push(g`default`);else r.push(i)}s.push(r),t<e.length-1&&s.push(g`, `)}}let d=this.buildWithCTE(i),f=g.join(s),p=r?g` returning ${this.buildSelection(r,{isSingleTable:!0})}`:void 0,m=n?g` on conflict ${n}`:void 0;return g`${d}insert into ${e} ${u} ${o===!0?g`overriding system value `:void 0}${f}${m}${p}`}buildRefreshMaterializedViewQuery({view:e,concurrently:t,withNoData:n}){return g`refresh materialized view${t?g` concurrently`:void 0} ${e}${n?g` with no data`:void 0}`}prepareTyping(e){return x(e,T)||x(e,N)?`json`:x(e,R)?`decimal`:x(e,F)?`time`:x(e,A)||x(e,C)?`timestamp`:x(e,B)||x(e,E)?`date`:x(e,L)?`uuid`:`none`}sqlToQuery(e,t){return e.toQuery({casing:this.casing,escapeName:this.escapeName,escapeParam:this.escapeParam,escapeString:this.escapeString,prepareTyping:this.prepareTyping,invokeSource:t})}_buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:n,table:r,tableConfig:i,queryConfig:a,tableAlias:o,nestedQueryRelation:s,joinOn:c}){let u=[],f,p,m=[],h,_=[];if(a===!0)u=Object.entries(i.columns).map(([e,t])=>({dbKey:t.name,tsKey:e,field:yr(t,o),relationTableTsKey:void 0,isJson:!1,selection:[]}));else{let r=Object.fromEntries(Object.entries(i.columns).map(([e,t])=>[e,yr(t,o)]));if(a.where){let e=typeof a.where==`function`?a.where(r,zi()):a.where;h=e&&xr(e,o)}let s=[],c=[];if(a.columns){let e=!1;for(let[t,n]of Object.entries(a.columns))n!==void 0&&t in i.columns&&(!e&&n===!0&&(e=!0),c.push(t));c.length>0&&(c=e?c.filter(e=>a.columns?.[e]===!0):Object.keys(i.columns).filter(e=>!c.includes(e)))}else c=Object.keys(i.columns);for(let e of c){let t=i.columns[e];s.push({tsKey:e,value:t})}let y=[];a.with&&(y=Object.entries(a.with).filter(e=>!!e[1]).map(([e,t])=>({tsKey:e,queryConfig:t,relation:i.relations[e]})));let b;if(a.extras){b=typeof a.extras==`function`?a.extras(r,{sql:g}):a.extras;for(let[e,t]of Object.entries(b))s.push({tsKey:e,value:br(t,o)})}for(let{tsKey:e,value:t}of s)u.push({dbKey:x(t,U.Aliased)?t.fieldAlias:i.columns[e].name,tsKey:e,field:x(t,d)?yr(t,o):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let S=typeof a.orderBy==`function`?a.orderBy(r,Bi()):a.orderBy??[];Array.isArray(S)||(S=[S]),m=S.map(e=>x(e,d)?yr(e,o):xr(e,o)),f=a.limit,p=a.offset;for(let{tsKey:r,queryConfig:i,relation:a}of y){let s=Wi(t,n,a),c=n[l(a.referencedTable)],d=`${o}_${r}`,f=K(...s.fields.map((e,t)=>me(yr(s.references[t],d),yr(e,o)))),p=this._buildRelationalQuery({fullSchema:e,schema:t,tableNamesMap:n,table:e[c],tableConfig:t[c],queryConfig:x(a,Li)?i===!0?{limit:1}:{...i,limit:1}:i,tableAlias:d,joinOn:f,nestedQueryRelation:a}),m=g`${g.identifier(d)}.${g.identifier(`data`)}`.as(r);_.push({on:g`true`,table:new v(p.sql,{},d),alias:d,joinType:`left`,lateral:!0}),u.push({dbKey:r,tsKey:r,field:m,relationTableTsKey:c,isJson:!0,selection:p.selection})}}if(u.length===0)throw new Cr({message:`No fields selected for table "${i.tsName}" ("${o}")`});let y;if(h=K(c,h),s){let e=g`json_build_array(${g.join(u.map(({field:e,tsKey:t,isJson:n})=>n?g`${g.identifier(`${o}_${t}`)}.${g.identifier(`data`)}`:x(e,U.Aliased)?e.sql:e),g`, `)})`;x(s,Ri)&&(e=g`coalesce(json_agg(${e}${m.length>0?g` order by ${g.join(m,g`, `)}`:void 0}), '[]'::json)`);let t=[{dbKey:`data`,tsKey:`data`,field:e.as(`data`),isJson:!0,relationTableTsKey:i.tsName,selection:u}];f!==void 0||p!==void 0||m.length>0?(y=this.buildSelectQuery({table:_r(r,o),fields:{},fieldsFlat:[{path:[],field:g.raw(`*`)}],where:h,limit:f,offset:p,orderBy:m,setOperators:[]}),h=void 0,f=void 0,p=void 0,m=[]):y=_r(r,o),y=this.buildSelectQuery({table:x(y,z)?y:new v(y,{},o),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:x(e,d)?yr(e,o):e})),joins:_,where:h,limit:f,offset:p,orderBy:m,setOperators:[]})}else y=this.buildSelectQuery({table:_r(r,o),fields:{},fieldsFlat:u.map(({field:e})=>({path:[],field:x(e,d)?yr(e,o):e})),joins:_,where:h,limit:f,offset:p,orderBy:m,setOperators:[]});return{tableTsKey:i.tsName,sql:y,selection:u}}nestedSelectionerror(){throw new Cr({message:`Views with nested selections are not supported by the relational query builder`})}buildRqbColumn(e,t,n){if(x(t,d)){let r=g`${e}.${g.identifier(this.casing.getColumnCasing(t))}`,i=t.columnType,o=t,s=0;for(;x(o,a);)o=o.baseColumn,i=o.columnType,++s;switch(i){case`PgNumeric`:case`PgNumericNumber`:case`PgNumericBigInt`:case`PgBigInt64`:case`PgBigIntString`:case`PgBigSerial64`:case`PgTimestampString`:case`PgGeometry`:case`PgGeometryObject`:case`PgBytea`:{let e=`[]`.repeat(s);return g`${r}::text${g.raw(e).if(e)} as ${g.identifier(n)}`}case`PgCustomColumn`:return g`${o.jsonSelectIdentifier(r,g,s>0?s:void 0)} as ${g.identifier(n)}`;default:return g`${r} as ${g.identifier(n)}`}}return g`${e}.${x(t,U.Aliased)?g.identifier(t.fieldAlias):c(t)?g.identifier(n):this.nestedSelectionerror()} as ${g.identifier(n)}`}unwrapAllColumns=(e,t)=>g.join(Object.entries(e[m]).map(([n,r])=>(t.push({key:n,field:r}),this.buildRqbColumn(e,r,n))),g`, `);buildColumns=(e,t,n)=>n?.columns?(()=>{let r=Object.entries(n.columns),i=e[m],a=[],o;for(let[n,s]of r)if(s!==void 0&&(o||=s,s)){let r=i[n];a.push(this.buildRqbColumn(e,r,n)),t.push({key:n,field:r})}if(o===!1)for(let[r,o]of Object.entries(i))n.columns[r]!==!1&&(a.push(this.buildRqbColumn(e,o,r)),t.push({key:r,field:o}));return a.length?g.join(a,g`, `):void 0})():this.unwrapAllColumns(e,t);buildRelationalQuery({schema:e,table:t,tableConfig:n,queryConfig:r,relationWhere:i,mode:a,errorPath:o,depth:s,throughJoin:c}){let l=[],u=a===`first`,d=r===!0?void 0:r,f=o??``,p=s??0;p||(t=_r(t,`d${p}`));let m=u?1:d?.limit,h=d?.offset,_=d?.where&&i?K(zr(t,d.where,n.relations,e,this.casing),i):d?.where?zr(t,d.where,n.relations,e,this.casing):i,v=d?.orderBy?Br(t,d.orderBy):void 0,y=this.buildColumns(t,l,d),b=d?.extras?Vr(t,d.extras):void 0;b&&l.push(...b.selection);let S=y?[y]:[],C=d?(()=>{let{with:r}=d;if(!r)return;let i=Object.entries(r).filter(([e,t])=>t);if(i.length)return g.join(i.map(([r,i])=>{let a=n.relations[r],o=x(a,Nr),s=_r(a.targetTable,`d${p+1}`),c=a.throughTable?_r(a.throughTable,`tr${p}`):void 0,{filter:u,joinCondition:d}=Hr(this.casing,a,t,s,c);S.push(g`${g.identifier(r)}.${g.identifier(`r`)} as ${g.identifier(r)}`);let m=c?g` inner join ${Ur(c)} on ${d}`:void 0,h=this.buildRelationalQuery({table:s,mode:o?`first`:`many`,schema:e,queryConfig:i,tableConfig:e[a.targetTableName],relationWhere:u,errorPath:`${f.length?`${f}.`:``}${r}`,depth:p+1,throughJoin:m});return l.push({field:s,key:r,selection:h.selection,isArray:!o,isOptional:(a.optional??!1)||i!==!0&&!!i.where}),g`left join lateral(select ${o?g`row_to_json(${g.identifier(`t`)}.*) ${g.identifier(`r`)}`:g`coalesce(json_agg(row_to_json(${g.identifier(`t`)}.*)), '[]') as ${g.identifier(`r`)}`} from (${h.sql}) as ${g.identifier(`t`)}) as ${g.identifier(r)} on true`}),g` `)})():void 0;if(b?.sql&&S.push(b.sql),!S.length)throw new Cr({message:`No fields selected for table "${n.name}"${f?` ("${f}")`:``}`});return{sql:g`select ${g.join(S.filter(e=>e!==void 0),g`, `)} from ${Ur(t)}${c}${g` ${C}`.if(C)}${g` where ${_}`.if(_)}${g` order by ${v}`.if(v)}${g` limit ${m}`.if(m!==void 0)}${g` offset ${h}`.if(h!==void 0)}`,selection:l}}},ta=class{static[y]=`TypedQueryBuilder`;getSelectedFields(){return this._.selectedFields}},X=class{static[y]=`PgSelectBuilder`;fields;session;dialect;withList=[];distinct;constructor(e){this.fields=e.fields,this.session=e.session,this.dialect=e.dialect,e.withList&&(this.withList=e.withList),this.distinct=e.distinct}authToken;setToken(e){return this.authToken=e,this}from(e){let t=!!this.fields,n=e,r;return r=this.fields?this.fields:x(n,v)?Object.fromEntries(Object.keys(n._.selectedFields).map(e=>[e,n[e]])):x(n,$i)?n[f].selectedFields:x(n,U)?{}:I(n),new ra({table:n,fields:r,isPartialSelect:t,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}},na=class extends ta{static[y]=`PgSelectQueryBuilder`;_;config;joinsNotNullableMap;tableName;isPartialSelect;session;dialect;cacheConfig=void 0;usedTables=new Set;constructor({table:e,fields:t,isPartialSelect:n,session:r,dialect:i,withList:a,distinct:o}){super(),this.config={withList:a,table:e,fields:{...t},distinct:o,setOperators:[]},this.isPartialSelect=n,this.session=r,this.dialect=i,this._={selectedFields:t,config:this.config},this.tableName=P(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{};for(let t of qi(e))this.usedTables.add(t)}getUsedTables(){return[...this.usedTables]}createJoin(e,t){return((n,r)=>{let i=this.tableName,a=P(n);for(let e of qi(n))this.usedTables.add(e);if(typeof a==`string`&&this.config.joins?.some(e=>e.alias===a))throw Error(`Alias "${a}" is already used in this query`);if(!this.isPartialSelect&&(Object.keys(this.joinsNotNullableMap).length===1&&typeof i==`string`&&(this.config.fields={[i]:this.config.fields}),typeof a==`string`&&!x(n,U))){let e=x(n,v)?n._.selectedFields:x(n,o)?n[f].selectedFields:n[j.Symbol.Columns];this.config.fields[a]=e}if(typeof r==`function`&&(r=r(new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:n,joinType:e,alias:a,lateral:t}),typeof a==`string`)switch(e){case`left`:this.joinsNotNullableMap[a]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!0;break;case`cross`:case`inner`:this.joinsNotNullableMap[a]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[a]=!1;break}return this})}leftJoin=this.createJoin(`left`,!1);leftJoinLateral=this.createJoin(`left`,!0);rightJoin=this.createJoin(`right`,!1);innerJoin=this.createJoin(`inner`,!1);innerJoinLateral=this.createJoin(`inner`,!0);fullJoin=this.createJoin(`full`,!1);crossJoin=this.createJoin(`cross`,!1);crossJoinLateral=this.createJoin(`cross`,!0);createSetOperator(e,t){return n=>{let r=typeof n==`function`?n(aa()):n;if(!k(this.getSelectedFields(),r.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return this.config.setOperators.push({type:e,isAll:t,rightSelect:r}),this}}union=this.createSetOperator(`union`,!1);unionAll=this.createSetOperator(`union`,!0);intersect=this.createSetOperator(`intersect`,!1);intersectAll=this.createSetOperator(`intersect`,!0);except=this.createSetOperator(`except`,!1);exceptAll=this.createSetOperator(`except`,!0);addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.where=e,this}having(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.having=e,this}groupBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`})));this.config.groupBy=Array.isArray(t)?t:[t]}else this.config.groupBy=e;return this}orderBy(...e){if(typeof e[0]==`function`){let t=e[0](new Proxy(this.config.fields,new Y({sqlAliasedBehavior:`alias`,sqlBehavior:`sql`}))),n=Array.isArray(t)?t:[t];this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=n:this.config.orderBy=n}else{let t=e;this.config.setOperators.length>0?this.config.setOperators.at(-1).orderBy=t:this.config.orderBy=t}return this}limit(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).limit=e:this.config.limit=e,this}offset(e){return this.config.setOperators.length>0?this.config.setOperators.at(-1).offset=e:this.config.offset=e,this}for(e,t={}){return this.config.lockingClause={strength:e,config:t},this}getSQL(){return this.dialect.buildSelectQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}as(e){let t=[];if(t.push(...qi(this.config.table)),this.config.joins)for(let e of this.config.joins)t.push(...qi(e.table));return new Proxy(new v(this.getSQL(),this.config.fields,e,!1,[...new Set(t)]),new Y({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}getSelectedFields(){return new Proxy(this.config.fields,new Y({alias:this.tableName,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}$dynamic(){return this}$withCache(e){return this.cacheConfig=e===void 0?{config:{},enable:!0,autoInvalidate:!0}:e===!1?{enable:!1}:{enable:!0,autoInvalidate:!0,...e},this}},ra=class extends na{static[y]=`PgSelect`;_prepare(e){let{session:t,config:n,dialect:r,joinsNotNullableMap:i,authToken:a,cacheConfig:o,usedTables:s}=this;if(!t)throw Error(`Cannot execute a query on a query builder. Please use a database instance instead.`);let{fields:c}=n;return p.startActiveSpan(`drizzle.prepareQuery`,()=>{let n=V(c),l=t.prepareQuery(r.sqlToQuery(this.getSQL()),n,e,!0,void 0,{type:`select`,tables:[...s]},o);return l.joinsNotNullableMap=i,l.setToken(a)})}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>p.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))};D(ra,[kr]);function ia(e,t){return(n,r,...i)=>{let a=[r,...i].map(n=>({type:e,isAll:t,rightSelect:n}));for(let e of a)if(!k(n.getSelectedFields(),e.rightSelect.getSelectedFields()))throw Error(`Set operator error (union / intersect / except): selected fields are not the same or are in a different order`);return n.addSetOperators(a)}}const aa=()=>({union:oa,unionAll:sa,intersect:ca,intersectAll:la,except:ua,exceptAll:da}),oa=ia(`union`,!1),sa=ia(`union`,!0),ca=ia(`intersect`,!1),la=ia(`intersect`,!0),ua=ia(`except`,!1),da=ia(`except`,!0);var fa=class{static[y]=`PgQueryBuilder`;dialect;dialectConfig;constructor(e){this.dialect=x(e,ea)?e:void 0,this.dialectConfig=x(e,ea)?void 0:e}$with=(e,t)=>{let n=this;return{as:r=>(typeof r==`function`&&(r=r(n)),new Proxy(new te(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new Y({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})))}};with(...e){let t=this;function n(n){return new X({fields:n??void 0,session:void 0,dialect:t.getDialect(),withList:e})}function r(e){return new X({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})}function i(e,n){return new X({fields:n??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}return{select:n,selectDistinct:r,selectDistinctOn:i}}select(e){return new X({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new X({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new X({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||=new ea(this.dialectConfig),this.dialect}},pa=class{constructor(e,t,n,r,i){this.table=e,this.session=t,this.dialect=n,this.withList=r,this.overridingSystemValue_=i}static[y]=`PgInsertBuilder`;authToken;setToken(e){return this.authToken=e,this}overridingSystemValue(){return this.overridingSystemValue_=!0,this}values(e){if(e=Array.isArray(e)?e:[e],e.length===0)throw Error(`values() must be called with at least one value`);let t=e.map(e=>{let t={},n=this.table[j.Symbol.Columns];for(let r of Object.keys(e)){let i=e[r];t[r]=x(i,U)?i:new ee(i,n[r])}return t});return new ma(this.table,t,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(e){let t=typeof e==`function`?e(new fa):e;if(!x(t,U)&&!k(this.table[m],t._.selectedFields))throw Error(`Insert select error: selected fields are not the same or are in a different order compared to the table definition`);return new ma(this.table,t,this.session,this.dialect,this.withList,!0)}},ma=class extends kr{constructor(e,t,n,r,i,a,o){super(),this.session=n,this.dialect=r,this.config={table:e,values:t,withList:i,select:a,overridingSystemValue_:o}}static[y]=`PgInsert`;config;cacheConfig;returning(e=this.config.table[j.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=V(e),this}onConflictDoNothing(e={}){if(e.target===void 0)this.config.onConflict=g`do nothing`;else{let t=``;t=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target));let n=e.where?g` where ${e.where}`:void 0;this.config.onConflict=g`(${g.raw(t)})${n} do nothing`}return this}onConflictDoUpdate(e){if(e.where&&(e.targetWhere||e.setWhere))throw Error(`You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.`);let t=e.where?g` where ${e.where}`:void 0,n=e.targetWhere?g` where ${e.targetWhere}`:void 0,r=e.setWhere?g` where ${e.setWhere}`:void 0,i=this.dialect.buildUpdateSet(this.config.table,S(this.config.table,e.set)),a=``;return a=Array.isArray(e.target)?e.target.map(e=>this.dialect.escapeName(this.dialect.casing.getColumnCasing(e))).join(`,`):this.dialect.escapeName(this.dialect.casing.getColumnCasing(e.target)),this.config.onConflict=g`(${g.raw(a)})${n} do update set ${i}${t}${r}`,this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return p.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:qi(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>p.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken));getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new Y({alias:_(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},ha=class extends kr{constructor(e,t,n){super(),this.session=t,this.dialect=n,this.config={view:e}}static[y]=`PgRefreshMaterializedView`;config;concurrently(){if(this.config.withNoData!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.concurrently=!0,this}withNoData(){if(this.config.concurrently!==void 0)throw Error(`Cannot use concurrently and withNoData together`);return this.config.withNoData=!0,this}getSQL(){return this.dialect.buildRefreshMaterializedViewQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return p.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e,!0))}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>p.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))},ga=class{constructor(e,t,n,r){this.table=e,this.session=t,this.dialect=n,this.withList=r}static[y]=`PgUpdateBuilder`;authToken;setToken(e){return this.authToken=e,this}set(e){return new _a(this.table,S(this.table,e),this.session,this.dialect,this.withList).setToken(this.authToken)}},_a=class extends kr{constructor(e,t,n,r,i){super(),this.session=n,this.dialect=r,this.config={set:t,table:e,withList:i,joins:[]},this.tableName=P(e),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{}}static[y]=`PgUpdate`;config;tableName;joinsNotNullableMap;cacheConfig;from(e){let t=e,n=P(t);return typeof n==`string`&&(this.joinsNotNullableMap[n]=!0),this.config.from=t,this}getTableLikeFields(e){return x(e,z)?e[j.Symbol.Columns]:x(e,v)?e._.selectedFields:e[f].selectedFields}createJoin(e){return((t,n)=>{let r=P(t);if(typeof r==`string`&&this.config.joins.some(e=>e.alias===r))throw Error(`Alias "${r}" is already used in this query`);if(typeof n==`function`){let e=this.config.from&&!x(this.config.from,U)?this.getTableLikeFields(this.config.from):void 0;n=n(new Proxy(this.config.table[j.Symbol.Columns],new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})),e&&new Proxy(e,new Y({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))}if(this.config.joins.push({on:n,table:t,joinType:e,alias:r}),typeof r==`string`)switch(e){case`left`:this.joinsNotNullableMap[r]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!0;break;case`inner`:this.joinsNotNullableMap[r]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[r]=!1;break}return this})}leftJoin=this.createJoin(`left`);rightJoin=this.createJoin(`right`);innerJoin=this.createJoin(`inner`);fullJoin=this.createJoin(`full`);where(e){return this.config.where=e,this}returning(e){if(!e&&(e=Object.assign({},this.config.table[j.Symbol.Columns]),this.config.from)){let t=P(this.config.from);if(typeof t==`string`&&this.config.from&&!x(this.config.from,U)){let n=this.getTableLikeFields(this.config.from);e[t]=n}for(let t of this.config.joins){let n=P(t.table);if(typeof n==`string`&&!x(t.table,U)){let r=this.getTableLikeFields(t.table);e[n]=r}}}return this.config.returningFields=e,this.config.returning=V(e),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){let t=this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:qi(this.config.table)},this.cacheConfig);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}prepare(e){return this._prepare(e)}authToken;setToken(e){return this.authToken=e,this}execute=e=>this._prepare().execute(e,this.authToken);getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new Y({alias:_(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},va=class{constructor(e,t,n,r,i,a,o){this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o}static[y]=`PgRelationalQueryBuilder`;findMany(e){return new ya(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},`many`)}findFirst(e){return new ya(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},`first`)}},ya=class extends kr{constructor(e,t,n,r,i,a,o,s,c){super(),this.fullSchema=e,this.schema=t,this.tableNamesMap=n,this.table=r,this.tableConfig=i,this.dialect=a,this.session=o,this.config=s,this.mode=c}static[y]=`PgRelationalQuery`;_prepare(e){return p.startActiveSpan(`drizzle.prepareQuery`,()=>{let{query:t,builtQuery:n}=this._toSQL();return this.session.prepareQuery(n,void 0,e,!0,(e,n)=>{let r=e.map(e=>Ki(this.schema,this.tableConfig,e,t.selection,n));return this.mode===`first`?r[0]:r})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect._buildRelationalQuery({fullSchema:this.fullSchema,schema:this.schema,tableNamesMap:this.tableNamesMap,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,tableAlias:this.tableConfig.tsName})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery();return{query:e,builtQuery:this.dialect.sqlToQuery(e.sql)}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(e){return this.authToken=e,this}execute(){return p.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},ba=class e extends U{constructor(t){super(e.buildEmbeddedCount(t.source,t.filters).queryChunks),this.params=t,this.mapWith(Number),this.session=t.session,this.sql=e.buildCount(t.source,t.filters)}sql;token;static[y]=`PgCountBuilder`;[Symbol.toStringTag]=`PgCountBuilder`;session;static buildEmbeddedCount(e,t){return g`(select count(*) from ${e}${g.raw(` where `).if(t)}${t})`}static buildCount(e,t){return g`select count(*) as count from ${e}${g.raw(` where `).if(t)}${t};`}setToken(e){return this.token=e,this}then(e,t){return Promise.resolve(this.session.count(this.sql,this.token)).then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return this.then(t=>(e?.(),t),t=>{throw e?.(),t})}},xa=class{constructor(e,t,n,r,i,a){this.schema=e,this.table=t,this.tableConfig=n,this.dialect=r,this.session=i,this.parseJson=a}static[y]=`PgRelationalQueryBuilderV2`;findMany(e){return new Sa(this.schema,this.table,this.tableConfig,this.dialect,this.session,e??!0,`many`,this.parseJson)}findFirst(e){return new Sa(this.schema,this.table,this.tableConfig,this.dialect,this.session,e??!0,`first`,this.parseJson)}},Sa=class extends kr{constructor(e,t,n,r,i,a,o,s){super(),this.schema=e,this.table=t,this.tableConfig=n,this.dialect=r,this.session=i,this.config=a,this.mode=o,this.parseJson=s}static[y]=`PgRelationalQueryV2`;_prepare(e){return p.startActiveSpan(`drizzle.prepareQuery`,()=>{let{query:t,builtQuery:n}=this._toSQL();return this.session.prepareRelationalQuery(n,void 0,e,(e,n)=>{for(let r of e)Ir(r,t.selection,n,this.parseJson);return this.mode===`first`?e[0]:e})})}prepare(e){return this._prepare(e)}_getQuery(){return this.dialect.buildRelationalQuery({schema:this.schema,table:this.table,tableConfig:this.tableConfig,queryConfig:this.config,mode:this.mode})}getSQL(){return this._getQuery().sql}_toSQL(){let e=this._getQuery();return{query:e,builtQuery:this.dialect.sqlToQuery(e.sql)}}toSQL(){return this._toSQL().builtQuery}authToken;setToken(e){return this.authToken=e,this}execute(){return p.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},Ca=class extends kr{constructor(e,t,n,r){super(),this.execute=e,this.sql=t,this.query=n,this.mapBatchResult=r}static[y]=`PgRaw`;getSQL(){return this.sql}getQuery(){return this.query}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}isResponseInArrayMode(){return!1}},wa=class{constructor(e,t,n,r,i=!1){if(this.dialect=e,this.session=t,this._=r?{schema:r.schema,fullSchema:r.fullSchema,tableNamesMap:r.tableNamesMap,relations:n,session:t}:{schema:void 0,fullSchema:{},tableNamesMap:{},relations:n,session:t},this._query={},this._.schema)for(let[n,i]of Object.entries(this._.schema))this._query[n]=new va(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[n],i,e,t);this.query={};for(let[r,a]of Object.entries(n))this.query[r]=new xa(n,n[a.name].table,a,e,t,i);this.$cache={invalidate:async e=>{}}}static[y]=`PgDatabase`;_query;query;$with=(e,t)=>{let n=this;return{as:r=>(typeof r==`function`&&(r=r(new fa(n.dialect))),new Proxy(new te(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new Y({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})))}};$count(e,t){return new ba({source:e,filters:t,session:this.session})}$cache;with(...e){let t=this;function n(n){return new X({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e})}function r(n){return new X({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}function i(n,r){return new X({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:{on:n}})}function a(n){return new ga(n,t.session,t.dialect,e)}function o(n){return new pa(n,t.session,t.dialect,e)}function s(n){return new Ji(n,t.session,t.dialect,e)}return{select:n,selectDistinct:r,selectDistinctOn:i,update:a,insert:o,delete:s}}select(e){return new X({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new X({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new X({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new ga(e,this.session,this.dialect)}insert(e){return new pa(e,this.session,this.dialect)}delete(e){return new Ji(e,this.session,this.dialect)}refreshMaterializedView(e){return new ha(e,this.session,this.dialect)}authToken;execute(e){let t=typeof e==`string`?g.raw(e):e.getSQL(),n=this.dialect.sqlToQuery(t),r=this.session.prepareQuery(n,void 0,void 0,!1);return new Ca(()=>r.execute(void 0,this.authToken),t,n,e=>r.mapResult(e,!0))}transaction(e,t){return this.session.transaction(e,t)}},Ta=class{static[y]=`Cache`},Ea=class extends Ta{strategy(){return`all`}static[y]=`NoopCache`;async get(e){}async put(e,t,n,r){}async onMutate(e){}};async function Da(e,t){let n=`${e}-${JSON.stringify(t)}`,r=new TextEncoder().encode(n),i=await crypto.subtle.digest(`SHA-256`,r);return[...new Uint8Array(i)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Oa=class{constructor(e,t,n,r){this.query=e,this.cache=t,this.queryMetadata=n,this.cacheConfig=r,t&&t.strategy()===`all`&&r===void 0&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),this.cacheConfig?.enable||(this.cacheConfig=void 0)}authToken;getQuery(){return this.query}mapResult(e,t){return e}setToken(e){return this.authToken=e,this}static[y]=`PgPreparedQuery`;joinsNotNullableMap;async queryWithCache(e,t,n){if(this.cache===void 0||x(this.cache,Ea)||this.queryMetadata===void 0)try{return await n()}catch(n){throw new wr(e,t,n)}if(this.cacheConfig&&!this.cacheConfig.enable)try{return await n()}catch(n){throw new wr(e,t,n)}if((this.queryMetadata.type===`insert`||this.queryMetadata.type===`update`||this.queryMetadata.type===`delete`)&&this.queryMetadata.tables.length>0)try{let[e]=await Promise.all([n(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return e}catch(n){throw new wr(e,t,n)}if(!this.cacheConfig)try{return await n()}catch(n){throw new wr(e,t,n)}if(this.queryMetadata.type===`select`){let r=await this.cache.get(this.cacheConfig.tag??await Da(e,t),this.queryMetadata.tables,this.cacheConfig.tag!==void 0,this.cacheConfig.autoInvalidate);if(r===void 0){let r;try{r=await n()}catch(n){throw new wr(e,t,n)}return await this.cache.put(this.cacheConfig.tag??await Da(e,t),r,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],this.cacheConfig.tag!==void 0,this.cacheConfig.config),r}return r}try{return await n()}catch(n){throw new wr(e,t,n)}}},ka=class{constructor(e){this.dialect=e}static[y]=`PgSession`;execute(e,t){return p.startActiveSpan(`drizzle.operation`,()=>p.startActiveSpan(`drizzle.prepareQuery`,()=>this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1)).setToken(t).execute(void 0,t))}all(e){return this.prepareQuery(this.dialect.sqlToQuery(e),void 0,void 0,!1).all()}async count(e,t){let n=await this.execute(e,t);return Number(n[0].count)}},Aa=class extends wa{constructor(e,t,n,r,i=0,a){super(e,t,n,r,a),this.relations=n,this.schema=r,this.nestedIndex=i}static[y]=`PgTransaction`;rollback(){throw new Tr}getTransactionConfigSQL(e){let t=[];return e.isolationLevel&&t.push(`isolation level ${e.isolationLevel}`),e.accessMode&&t.push(e.accessMode),typeof e.deferrable==`boolean`&&t.push(e.deferrable?`deferrable`:`not deferrable`),g.raw(t.join(` `))}setTransaction(e){return this.session.execute(g`set transaction ${this.getTransactionConfigSQL(e)}`)}};const{Pool:ja,types:Z}=Mi;var Ma=class extends Oa{constructor(e,t,n,r,i,a,o,s,c,l,u,d){super({sql:t,params:n},i,a,o),this.client=e,this.queryString=t,this.params=n,this.logger=r,this.fields=s,this._isResponseInArrayMode=l,this.customResultMapper=u,this.isRqbV2Query=d,this.rawQueryConfig={name:c,text:t,types:{getTypeParser:(e,t)=>e===Z.builtins.TIMESTAMPTZ||e===Z.builtins.TIMESTAMP||e===Z.builtins.DATE||e===Z.builtins.INTERVAL||e===1231||e===1115||e===1185||e===1187||e===1182?e=>e:Z.getTypeParser(e,t)}},this.queryConfig={name:c,text:t,rowMode:`array`,types:{getTypeParser:(e,t)=>e===Z.builtins.TIMESTAMPTZ||e===Z.builtins.TIMESTAMP||e===Z.builtins.DATE||e===Z.builtins.INTERVAL||e===1231||e===1115||e===1185||e===1187||e===1182?e=>e:Z.getTypeParser(e,t)}}}static[y]=`NodePgPreparedQuery`;rawQueryConfig;queryConfig;async execute(e={}){return this.isRqbV2Query?this.executeRqbV2(e):p.startActiveSpan(`drizzle.execute`,async()=>{let t=H(this.params,e);this.logger.logQuery(this.rawQueryConfig.text,t);let{fields:n,rawQueryConfig:r,client:i,queryConfig:a,joinsNotNullableMap:o,customResultMapper:s}=this;if(!n&&!s)return p.startActiveSpan(`drizzle.driver.execute`,async e=>(e?.setAttributes({"drizzle.query.name":r.name,"drizzle.query.text":r.text,"drizzle.query.params":JSON.stringify(t)}),this.queryWithCache(r.text,t,async()=>await i.query(r,t))));let c=await p.startActiveSpan(`drizzle.driver.execute`,e=>(e?.setAttributes({"drizzle.query.name":a.name,"drizzle.query.text":a.text,"drizzle.query.params":JSON.stringify(t)}),this.queryWithCache(a.text,t,async()=>await i.query(a,t))));return p.startActiveSpan(`drizzle.mapResponse`,()=>s?s(c.rows):c.rows.map(e=>O(n,e,o)))})}async executeRqbV2(e={}){return p.startActiveSpan(`drizzle.execute`,async()=>{let t=H(this.params,e);this.logger.logQuery(this.rawQueryConfig.text,t);let{rawQueryConfig:n,client:r,customResultMapper:i}=this,a=await p.startActiveSpan(`drizzle.driver.execute`,e=>(e?.setAttributes({"drizzle.query.name":n.name,"drizzle.query.text":n.text,"drizzle.query.params":JSON.stringify(t)}),r.query(n,t)));return p.startActiveSpan(`drizzle.mapResponse`,()=>i(a.rows))})}all(e={}){return p.startActiveSpan(`drizzle.execute`,()=>{let t=H(this.params,e);return this.logger.logQuery(this.rawQueryConfig.text,t),p.startActiveSpan(`drizzle.driver.execute`,e=>(e?.setAttributes({"drizzle.query.name":this.rawQueryConfig.name,"drizzle.query.text":this.rawQueryConfig.text,"drizzle.query.params":JSON.stringify(t)}),this.queryWithCache(this.rawQueryConfig.text,t,async()=>this.client.query(this.rawQueryConfig,t)).then(e=>e.rows)))})}isResponseInArrayMode(){return this._isResponseInArrayMode}},Na=class e extends ka{constructor(e,t,n,r,i={}){super(t),this.client=e,this.relations=n,this.schema=r,this.options=i,this.logger=i.logger??new Or,this.cache=i.cache??new Ea}static[y]=`NodePgSession`;logger;cache;prepareQuery(e,t,n,r,i,a,o){return new Ma(this.client,e.sql,e.params,this.logger,this.cache,a,o,t,n,r,i)}prepareRelationalQuery(e,t,n,r){return new Ma(this.client,e.sql,e.params,this.logger,this.cache,void 0,void 0,t,n,!1,r,!0)}async transaction(t,n){let r=this.client instanceof ja||Object.getPrototypeOf(this.client).constructor.name.includes(`Pool`),i=r?new e(await this.client.connect(),this.dialect,this.relations,this.schema,this.options):this,a=new Pa(this.dialect,i,this.relations,this.schema);await a.execute(g`begin${n?g` ${a.getTransactionConfigSQL(n)}`:void 0}`);try{let e=await t(a);return await a.execute(g`commit`),e}catch(e){throw await a.execute(g`rollback`),e}finally{r&&i.client.release()}}async count(e){let t=await this.execute(e);return Number(t.rows[0].count)}},Pa=class e extends Aa{static[y]=`NodePgTransaction`;async transaction(t){let n=`sp${this.nestedIndex+1}`,r=new e(this.dialect,this.session,this.relations,this.schema,this.nestedIndex+1);await r.execute(g.raw(`savepoint ${n}`));try{let e=await t(r);return await r.execute(g.raw(`release savepoint ${n}`)),e}catch(e){throw await r.execute(g.raw(`rollback to savepoint ${n}`)),e}}},Fa=class{constructor(e,t,n={}){this.client=e,this.dialect=t,this.options=n}static[y]=`NodePgDriver`;createSession(e,t){return new Na(this.client,this.dialect,e,t,{logger:this.options.logger,cache:this.options.cache})}},Ia=class extends wa{static[y]=`NodePgDatabase`};function La(e,t={}){let n=new ea({casing:t.casing}),r;t.logger===!0?r=new Dr:t.logger!==!1&&(r=t.logger);let i;if(t.schema){let e=Vi(t.schema,Gi);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=t.relations??{},o=new Ia(n,new Fa(e,n,{logger:r,cache:t.cache}).createSession(a,i),a,i);return o.$client=e,o.$cache=t.cache,o.$cache&&(o.$cache.invalidate=t.cache?.onMutate),o}function Ra(...e){if(typeof e[0]==`string`)return La(new Mi.Pool({connectionString:e[0]}),e[1]);let{connection:t,client:n,...r}=e[0];return La(n||(typeof t==`string`?new Mi.Pool({connectionString:t}):new Mi.Pool(t)),r)}(e=>{function t(e){return La({},e)}e.mock=t})(Ra||={});function za(e){let t=parseInt(e.slice(0,4),10),n=parseInt(e.slice(4,6),10)-1,r=parseInt(e.slice(6,8),10),i=parseInt(e.slice(8,10),10),a=parseInt(e.slice(10,12),10),o=parseInt(e.slice(12,14),10);return Date.UTC(t,n,r,i,a,o)}function Ba(e){let t=e.migrationsFolder,n=[],r=`${t}/meta/_journal.json`,i=Ie.readFileSync(r).toString(),a=JSON.parse(i);for(let e of a.entries){let r=`${t}/${e.tag}.sql`;try{let r=Ie.readFileSync(`${t}/${e.tag}.sql`).toString(),i=r.split(`--> statement-breakpoint`).map(e=>e);n.push({sql:i,bps:e.breakpoints,folderMillis:e.when,hash:Ze.createHash(`sha256`).update(r).digest(`hex`)})}catch{throw Error(`No file ${r} found in ${t} folder`)}}return n}function Va(e){if(Ie.existsSync(`${e.migrationsFolder}/meta/_journal.json`))return console.log(`
|
|
35
35
|
Warning: We detected that you have old drizzle-kit migration folders. We suggest to upgrade drizzle-kit and run "drizzle-kit up"
|
|
36
|
-
`),Ba(e);let t=e.migrationsFolder,n=[],r=
|
|
36
|
+
`),Ba(e);let t=e.migrationsFolder,n=[],r=Be(t).map(e=>({path:Ye(t,e,`migration.sql`),name:e})).filter(e=>Le(e.path));r.sort();for(let e of r){let t=e.path,r=e.name.slice(0,14),i=Ie.readFileSync(t).toString(),a=i.split(`--> statement-breakpoint`).map(e=>e),o=za(r);n.push({sql:a,bps:!0,folderMillis:o,hash:Ze.createHash(`sha256`).update(i).digest(`hex`)})}return n}async function Ha(e,t){let n=Va(t);return await e.dialect.migrate(n,e.session,t)}const{Client:Ua,Pool:Wa}=Mi;function Ga(e,t=`schema`){let n=t===`schema`?`schema-migrations`:`data-migrations`,r=t===`schema`?`schema-migrations`:`data-migrations`;return{migrationsFolder:`${Ye(q,Te)}/${e}/${n}`,migrationsSchema:`public`,migrationsTable:r}}var Ka=class{#e;constructor(e){this.#e=e}logQuery(e,t){this.#e.info(t,e)}};async function qa(e){let t=`test_w${process.env.VITEST_POOL_ID||`0`}_${Date.now()}_${Math.random().toString(36).substring(2,8)}`;await Qa(e.connectionString,e.name,e.logger);let n=`${e.name}_test_template`,r=Xa(e.connectionString),i=new Ua({connectionString:r});await i.connect();try{await i.query(`CREATE DATABASE ${t} WITH TEMPLATE ${n}`)}finally{await i.end()}let a=Ja(e.connectionString);a.database=t;let o=new Wa({connectionString:Ya(a)});return{cleanUp:async()=>{await o.end();let e=new Ua({connectionString:r});await e.connect();try{await e.query(`SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = $1`,[t]),await e.query(`DROP DATABASE IF EXISTS ${t}`)}catch(e){console.error(`Could not drop test database:`,e)}finally{await e.end()}},db:Ra({client:o,logger:e.logger?new Ka(e.logger):void 0,relations:e.relations,schema:e.schema}),dbName:t}}function Ja(e){let t=new URL(e);return{database:t.pathname.slice(1)||`postgres`,host:t.hostname,password:decodeURIComponent(t.password),port:Number.parseInt(t.port||`5432`,10),user:decodeURIComponent(t.username)}}function Ya(e){let{user:t,password:n,host:r,port:i,database:a}=e;return`postgresql://${encodeURIComponent(t)}:${encodeURIComponent(n)}@${r}:${i}/${a}`}function Xa(e){let t=Ja(e);return t.database=`postgres`,Ya(t)}function Za(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return Math.abs(t)}async function Qa(e,t,n){let r=`${t}_test_template`,i=new Ua({connectionString:Xa(e)});await i.connect();let a=Za(r);try{if(await i.query(`SELECT pg_advisory_lock($1)`,[a]),(await i.query(`SELECT 1 FROM pg_database WHERE datname = $1`,[r])).rowCount===0){await i.query(`CREATE DATABASE ${r} WITH IS_TEMPLATE = true`);let a=Ja(e);a.database=r;let o=new Wa({connectionString:Ya(a)});try{await Ha(Ra({client:o,logger:n?new Ka(n):void 0}),Ga(t))}finally{await o.end()}}}finally{await i.query(`SELECT pg_advisory_unlock($1)`,[a]),await i.end()}}var $a=e(r(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e!=`string`||e in{}}function i(){return Object.create(null)}function a(e){return typeof e==`string`&&!!e.trim()}function o(e,t){var o=e.split(`;`).filter(a),c=s(o.shift()),l=c.name,u=c.value;if(t=t?Object.assign({},n,t):n,r(l))return null;try{u=t.decodeValues?decodeURIComponent(u):u}catch(e){console.error(`set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.`,e)}var d=i();return d.name=l,d.value=u,o.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join(`=`);if(n===`expires`)d.expires=new Date(i);else if(n===`max-age`){var a=parseInt(i,10);Number.isNaN(a)||(d.maxAge=a)}else n===`secure`?d.secure=!0:n===`httponly`?d.httpOnly=!0:n===`samesite`?d.sameSite=i:n===`partitioned`?d.partitioned=!0:n&&(d[n]=i)}}),d}function s(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function c(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?i():[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var s=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!s&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=s}if(Array.isArray(e)||(e=[e]),t.map){var c=i();return e.filter(a).reduce(function(e,n){var i=o(n,t);return i&&!r(i.name)&&(e[i.name]=i),e},c)}else return e.filter(a).map(function(e){return o(e,t)}).filter(Boolean)}function l(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=c,t.exports.parse=c,t.exports.parseString=o,t.exports.splitCookiesString=l}))(),1);function eo(e,t){let n=e.headers;if(!n[`content-type`])return null;let r=Number(n[`content-length`]);if(e.httpVersionMajor===1&&isNaN(r)&&n[`transfer-encoding`]==null||r===0)return null;let i=r;if(t){if(!i)i=t;else if(i>t)throw Error(`Received content-length of ${i}, but only accept up to ${t} bytes.`)}if(e.destroyed){let e=new ReadableStream;return e.cancel(),e}let a=0,o=!1;return new ReadableStream({start(t){e.on(`error`,e=>{o=!0,t.error(e)}),e.on(`end`,()=>{o||t.close()}),e.on(`data`,n=>{if(!o){if(a+=n.length,a>i){o=!0,t.error(Error(`request body size exceeded ${r?`'content-length'`:`BODY_SIZE_LIMIT`} of ${i}`));return}t.enqueue(n),(t.desiredSize===null||t.desiredSize<=0)&&e.pause()}})},pull(){e.resume()},cancel(t){o=!0,e.destroy(t)}})}function to({request:e,base:t,bodySizeLimit:n}){let r=e?.baseUrl,i=r?r+e.url:e.url,a=e,o,s=e.method;if(s!==`GET`&&s!==`HEAD`)if(a.body!==void 0){let e=typeof a.body==`string`?a.body:JSON.stringify(a.body);o=new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(e)),t.close()}})}else o=eo(e,n);return new Request(t+i,{duplex:`half`,method:e.method,body:o,headers:e.headers})}async function no(e,t){for(let[n,r]of t.headers)try{e.setHeader(n,n===`set-cookie`?$a.splitCookiesString(t.headers.get(n)):r)}catch(t){e.getHeaderNames().forEach(t=>e.removeHeader(t)),e.writeHead(500).end(String(t));return}if(e.writeHead(t.status),!t.body){e.end();return}if(t.body.locked){e.end(`Fatal error: Response body is locked. This can happen when the response was already read (for example through 'response.json()' or 'response.text()').`);return}let n=t.body.getReader();if(e.destroyed){n.cancel();return}let r=t=>{e.off(`close`,r),e.off(`error`,r),n.cancel(t).catch(()=>{}),t&&e.destroy(t)};e.on(`close`,r),e.on(`error`,r),i();async function i(){try{for(;;){let{done:t,value:r}=await n.read();if(t)break;if(!e.write(r)){e.once(`drain`,i);return}}e.end()}catch(e){r(e instanceof Error?e:Error(String(e)))}}}function ro(e){return async(t,n)=>no(n,await e(to({base:`${t.headers[`x-forwarded-proto`]||(t.socket.encrypted?`https`:`http`)}://${t.headers[`:authority`]||t.headers.host}`,request:t})))}const io=e=>`handler`in e?ro(e.handler):ro(e);
|
|
37
37
|
/*
|
|
38
38
|
object-assign
|
|
39
39
|
(c) Sindre Sorhus
|
|
40
40
|
@license MIT
|
|
41
41
|
*/
|
|
42
|
-
var ao=r(((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}})),oo=r(((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)}})),so=r(((e,t)=>{(function(){var e=ao(),n=oo(),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,t)),i.push(s(e,t)),i.push(l(e,t)),i.push(d(e,t)),i.push(u(e,t)),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,t)),i.push(u(e,t)),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})()})),co=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isInSubnet=t,e.isCorrect=n,e.numberToPaddedHex=r,e.stringToPaddedHex=i,e.testBit=a;function t(e){return this.subnetMask<e.subnetMask?!1:this.mask(e.subnetMask)===e.mask()}function n(e){return function(){return this.addressMinusSuffix===this.correctForm()?this.subnetMask===e&&!this.parsedSubnet?!0:this.parsedSubnet===String(this.subnetMask):!1}}function r(e){return e.toString(16).padStart(2,`0`)}function i(e){return r(parseInt(e,10))}function a(e,t){let{length:n}=e;if(t>n)return!1;let r=n-t;return e.substring(r,r+1)===`1`}})),lo=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RE_SUBNET_STRING=e.RE_ADDRESS=e.GROUPS=e.BITS=void 0,e.BITS=32,e.GROUPS=4,e.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g,e.RE_SUBNET_STRING=/\/\d{1,2}$/})),uo=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AddressError=void 0,e.AddressError=class extends Error{constructor(e,t){super(e),this.name=`AddressError`,this.parseMessage=t}}})),fo=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.Address4=void 0;let i=r(co()),a=r(lo()),o=uo();e.Address4=class e{constructor(e){this.groups=a.GROUPS,this.parsedAddress=[],this.parsedSubnet=``,this.subnet=`/32`,this.subnetMask=32,this.v4=!0,this.isCorrect=i.isCorrect(a.BITS),this.isInSubnet=i.isInSubnet,this.address=e;let t=a.RE_SUBNET_STRING.exec(e);if(t){if(this.parsedSubnet=t[0].replace(`/`,``),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>a.BITS)throw new o.AddressError(`Invalid subnet mask.`);e=e.replace(a.RE_SUBNET_STRING,``)}this.addressMinusSuffix=e,this.parsedAddress=this.parse(e)}static isValid(t){try{return new e(t),!0}catch{return!1}}parse(e){let t=e.split(`.`);if(!e.match(a.RE_ADDRESS))throw new o.AddressError(`Invalid IPv4 address.`);return t}correctForm(){return this.parsedAddress.map(e=>parseInt(e,10)).join(`.`)}static fromHex(t){let n=t.replace(/:/g,``).padStart(8,`0`),r=[],i;for(i=0;i<8;i+=2){let e=n.slice(i,i+2);r.push(parseInt(e,16))}return new e(r.join(`.`))}static fromInteger(t){return e.fromHex(t.toString(16))}static fromArpa(t){return new e(t.replace(/(\.in-addr\.arpa)?\.$/,``).split(`.`).reverse().join(`.`))}toHex(){return this.parsedAddress.map(e=>i.stringToPaddedHex(e)).join(`:`)}toArray(){return this.parsedAddress.map(e=>parseInt(e,10))}toGroup6(){let e=[],t;for(t=0;t<a.GROUPS;t+=2)e.push(`${i.stringToPaddedHex(this.parsedAddress[t])}${i.stringToPaddedHex(this.parsedAddress[t+1])}`);return e.join(`:`)}bigInt(){return BigInt(`0x${this.parsedAddress.map(e=>i.stringToPaddedHex(e)).join(``)}`)}_startAddress(){return BigInt(`0b${this.mask()+`0`.repeat(a.BITS-this.subnetMask)}`)}startAddress(){return e.fromBigInt(this._startAddress())}startAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._startAddress()+t)}_endAddress(){return BigInt(`0b${this.mask()+`1`.repeat(a.BITS-this.subnetMask)}`)}endAddress(){return e.fromBigInt(this._endAddress())}endAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._endAddress()-t)}static fromBigInt(t){return e.fromHex(t.toString(16))}mask(e){return e===void 0&&(e=this.subnetMask),this.getBitsBase2(0,e)}getBitsBase2(e,t){return this.binaryZeroPad().slice(e,t)}reverseForm(e){e||={};let t=this.correctForm().split(`.`).reverse().join(`.`);return e.omitSuffix?t:`${t}.in-addr.arpa.`}isMulticast(){return this.isInSubnet(new e(`224.0.0.0/4`))}binaryZeroPad(){return this.bigInt().toString(2).padStart(a.BITS,`0`)}groupForV6(){let e=this.parsedAddress;return this.address.replace(a.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${e.slice(0,2).join(`.`)}</span>.<span class="hover-group group-v4 group-7">${e.slice(2,4).join(`.`)}</span>`)}}})),po=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RE_URL_WITH_PORT=e.RE_URL=e.RE_ZONE_STRING=e.RE_SUBNET_STRING=e.RE_BAD_ADDRESS=e.RE_BAD_CHARACTERS=e.TYPES=e.SCOPES=e.GROUPS=e.BITS=void 0,e.BITS=128,e.GROUPS=8,e.SCOPES={0:`Reserved`,1:`Interface local`,2:`Link local`,4:`Admin local`,5:`Site local`,8:`Organization local`,14:`Global`,15:`Reserved`},e.TYPES={"ff01::1/128":`Multicast (All nodes on this interface)`,"ff01::2/128":`Multicast (All routers on this interface)`,"ff02::1/128":`Multicast (All nodes on this link)`,"ff02::2/128":`Multicast (All routers on this link)`,"ff05::2/128":`Multicast (All routers in this site)`,"ff02::5/128":`Multicast (OSPFv3 AllSPF routers)`,"ff02::6/128":`Multicast (OSPFv3 AllDR routers)`,"ff02::9/128":`Multicast (RIP routers)`,"ff02::a/128":`Multicast (EIGRP routers)`,"ff02::d/128":`Multicast (PIM routers)`,"ff02::16/128":`Multicast (MLDv2 reports)`,"ff01::fb/128":`Multicast (mDNSv6)`,"ff02::fb/128":`Multicast (mDNSv6)`,"ff05::fb/128":`Multicast (mDNSv6)`,"ff02::1:2/128":`Multicast (All DHCP servers and relay agents on this link)`,"ff05::1:2/128":`Multicast (All DHCP servers and relay agents in this site)`,"ff02::1:3/128":`Multicast (All DHCP servers on this link)`,"ff05::1:3/128":`Multicast (All DHCP servers in this site)`,"::/128":`Unspecified`,"::1/128":`Loopback`,"ff00::/8":`Multicast`,"fe80::/10":`Link-local unicast`},e.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,e.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,e.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,e.RE_ZONE_STRING=/%.*$/,e.RE_URL=/^\[{0,1}([0-9a-f:]+)\]{0,1}/,e.RE_URL_WITH_PORT=/\[([0-9a-f:]+)\]:([0-9]{1,5})/})),mo=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.spanAllZeroes=t,e.spanAll=n,e.spanLeadingZeroes=i,e.simpleGroup=a;function t(e){return e.replace(/(0+)/g,`<span class="zero">$1</span>`)}function n(e,n=0){return e.split(``).map((e,r)=>`<span class="digit value-${e} position-${r+n}">${t(e)}</span>`).join(``)}function r(e){return e.replace(/^(0+)/,`<span class="zero">$1</span>`)}function i(e){return e.split(`:`).map(e=>r(e)).join(`:`)}function a(e,t=0){return e.split(`:`).map((e,n)=>/group-v4/.test(e)?e:`<span class="hover-group group-${n+t}">${r(e)}</span>`)}})),ho=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.ADDRESS_BOUNDARY=void 0,e.groupPossibilities=a,e.padGroup=o,e.simpleRegularExpression=s,e.possibleElisions=c;let i=r(po());function a(e){return`(${e.join(`|`)})`}function o(e){return e.length<4?`0{0,${4-e.length}}${e}`:e}e.ADDRESS_BOUNDARY=`[^A-Fa-f0-9:]`;function s(e){let t=[];e.forEach((e,n)=>{parseInt(e,16)===0&&t.push(n)});let n=t.map(t=>e.map((e,n)=>{if(n===t){let t=n===0||n===i.GROUPS-1?`:`:``;return a([o(e),t])}return o(e)}).join(`:`));return n.push(e.map(o).join(`:`)),a(n)}function c(e,t,n){let r=t?``:`:`,i=n?``:`:`,o=[];!t&&!n&&o.push(`::`),t&&n&&o.push(``),(n&&!t||!n&&t)&&o.push(`:`),o.push(`${r}(:0{1,4}){1,${e-1}}`),o.push(`(0{1,4}:){1,${e-1}}${i}`),o.push(`(0{1,4}:){${e-1}}0{1,4}`);for(let t=1;t<e-1;t++)for(let n=1;n<e-t;n++)o.push(`(0{1,4}:){${n}}:(0{1,4}:){${e-n-t-1}}0{1,4}`);return a(o)}})),go=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.Address6=void 0;let i=r(co()),a=r(lo()),o=r(po()),s=r(mo()),c=fo(),l=ho(),u=uo(),d=co();function f(e){if(!e)throw Error(`Assertion failed.`)}function p(e){let t=/(\d+)(\d{3})/;for(;t.test(e);)e=e.replace(t,`$1,$2`);return e}function m(e){return e=e.replace(/^(0{1,})([1-9]+)$/,`<span class="parse-error">$1</span>$2`),e=e.replace(/^(0{1,})(0)$/,`<span class="parse-error">$1</span>$2`),e}function h(e,t){let n=[],r=[],i;for(i=0;i<e.length;i++)i<t[0]?n.push(e[i]):i>t[1]&&r.push(e[i]);return n.concat([`compact`]).concat(r)}function g(e){return parseInt(e,16).toString(16).padStart(4,`0`)}function _(e){return e&255}e.Address6=class e{constructor(e,t){this.addressMinusSuffix=``,this.parsedSubnet=``,this.subnet=`/128`,this.subnetMask=128,this.v4=!1,this.zone=``,this.isInSubnet=i.isInSubnet,this.isCorrect=i.isCorrect(o.BITS),t===void 0?this.groups=o.GROUPS:this.groups=t,this.address=e;let n=o.RE_SUBNET_STRING.exec(e);if(n){if(this.parsedSubnet=n[0].replace(`/`,``),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>o.BITS)throw new u.AddressError(`Invalid subnet mask.`);e=e.replace(o.RE_SUBNET_STRING,``)}else if(/\//.test(e))throw new u.AddressError(`Invalid subnet mask.`);let r=o.RE_ZONE_STRING.exec(e);r&&(this.zone=r[0],e=e.replace(o.RE_ZONE_STRING,``)),this.addressMinusSuffix=e,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(t){try{return new e(t),!0}catch{return!1}}static fromBigInt(t){let n=t.toString(16).padStart(32,`0`),r=[],i;for(i=0;i<o.GROUPS;i++)r.push(n.slice(i*4,(i+1)*4));return new e(r.join(`:`))}static fromURL(t){let n,r=null,i;if(t.indexOf(`[`)!==-1&&t.indexOf(`]:`)!==-1){if(i=o.RE_URL_WITH_PORT.exec(t),i===null)return{error:`failed to parse address with port`,address:null,port:null};n=i[1],r=i[2]}else if(t.indexOf(`/`)!==-1){if(t=t.replace(/^[a-z0-9]+:\/\//,``),i=o.RE_URL.exec(t),i===null)return{error:`failed to parse address from URL`,address:null,port:null};n=i[1]}else n=t;return r?(r=parseInt(r,10),(r<0||r>65536)&&(r=null)):r=null,{address:new e(n),port:r}}static fromAddress4(t){let n=new c.Address4(t),r=o.BITS-(a.BITS-n.subnetMask);return new e(`::ffff:${n.correctForm()}/${r}`)}static fromArpa(t){let n=t.replace(/(\.ip6\.arpa)?\.$/,``);if(n.length!==63)throw new u.AddressError(`Invalid 'ip6.arpa' form.`);let r=n.split(`.`).reverse();for(let e=7;e>0;e--){let t=e*4;r.splice(t,0,`:`)}return n=r.join(``),new e(n)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,`-`)}.ipv6-literal.net`}mask(e=this.subnetMask){return this.getBitsBase2(0,e)}possibleSubnets(e=128){let t=o.BITS-this.subnetMask-Math.abs(e-o.BITS);return t<0?`0`:p((BigInt(`2`)**BigInt(t)).toString(10))}_startAddress(){return BigInt(`0b${this.mask()+`0`.repeat(o.BITS-this.subnetMask)}`)}startAddress(){return e.fromBigInt(this._startAddress())}startAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._startAddress()+t)}_endAddress(){return BigInt(`0b${this.mask()+`1`.repeat(o.BITS-this.subnetMask)}`)}endAddress(){return e.fromBigInt(this._endAddress())}endAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._endAddress()-t)}getScope(){let e=o.SCOPES[parseInt(this.getBits(12,16).toString(10),10)];return this.getType()===`Global unicast`&&e!==`Link local`&&(e=`Global`),e||`Unknown`}getType(){for(let t of Object.keys(o.TYPES))if(this.isInSubnet(new e(t)))return o.TYPES[t];return`Global unicast`}getBits(e,t){return BigInt(`0b${this.getBitsBase2(e,t)}`)}getBitsBase2(e,t){return this.binaryZeroPad().slice(e,t)}getBitsBase16(e,t){let n=t-e;if(n%4!=0)throw Error(`Length of bits to retrieve must be divisible by four`);return this.getBits(e,t).toString(16).padStart(n/4,`0`)}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,o.BITS)}reverseForm(e){e||={};let t=Math.floor(this.subnetMask/4),n=this.canonicalForm().replace(/:/g,``).split(``).slice(0,t).reverse().join(`.`);return t>0?e.omitSuffix?n:`${n}.ip6.arpa.`:e.omitSuffix?``:`ip6.arpa.`}correctForm(){let e,t=[],n=0,r=[];for(e=0;e<this.parsedAddress.length;e++){let t=parseInt(this.parsedAddress[e],16);t===0&&n++,t!==0&&n>0&&(n>1&&r.push([e-n,e-1]),n=0)}n>1&&r.push([this.parsedAddress.length-n,this.parsedAddress.length-1]);let i=r.map(e=>e[1]-e[0]+1);if(r.length>0){let e=i.indexOf(Math.max(...i));t=h(this.parsedAddress,r[e])}else t=this.parsedAddress;for(e=0;e<t.length;e++)t[e]!==`compact`&&(t[e]=parseInt(t[e],16).toString(16));let a=t.join(`:`);return a=a.replace(/^compact$/,`::`),a=a.replace(/(^compact)|(compact$)/,`:`),a=a.replace(/compact/,``),a}binaryZeroPad(){return this.bigInt().toString(2).padStart(o.BITS,`0`)}parse4in6(e){let t=e.split(`:`),n=t.slice(-1)[0].match(a.RE_ADDRESS);if(n){this.parsedAddress4=n[0],this.address4=new c.Address4(this.parsedAddress4);for(let t=0;t<this.address4.groups;t++)if(/^0[0-9]+/.test(this.address4.parsedAddress[t]))throw new u.AddressError(`IPv4 addresses can't have leading zeroes.`,e.replace(a.RE_ADDRESS,this.address4.parsedAddress.map(m).join(`.`)));this.v4=!0,t[t.length-1]=this.address4.toGroup6(),e=t.join(`:`)}return e}parse(e){e=this.parse4in6(e);let t=e.match(o.RE_BAD_CHARACTERS);if(t)throw new u.AddressError(`Bad character${t.length>1?`s`:``} detected in address: ${t.join(``)}`,e.replace(o.RE_BAD_CHARACTERS,`<span class="parse-error">$1</span>`));let n=e.match(o.RE_BAD_ADDRESS);if(n)throw new u.AddressError(`Address failed regex: ${n.join(``)}`,e.replace(o.RE_BAD_ADDRESS,`<span class="parse-error">$1</span>`));let r=[],i=e.split(`::`);if(i.length===2){let e=i[0].split(`:`),t=i[1].split(`:`);e.length===1&&e[0]===``&&(e=[]),t.length===1&&t[0]===``&&(t=[]);let n=this.groups-(e.length+t.length);if(!n)throw new u.AddressError(`Error parsing groups`);this.elidedGroups=n,this.elisionBegin=e.length,this.elisionEnd=e.length+this.elidedGroups,r=r.concat(e);for(let e=0;e<n;e++)r.push(`0`);r=r.concat(t)}else if(i.length===1)r=e.split(`:`),this.elidedGroups=0;else throw new u.AddressError(`Too many :: groups found`);if(r=r.map(e=>parseInt(e,16).toString(16)),r.length!==this.groups)throw new u.AddressError(`Incorrect number of groups found`);return r}canonicalForm(){return this.parsedAddress.map(g).join(`:`)}decimal(){return this.parsedAddress.map(e=>parseInt(e,16).toString(10).padStart(5,`0`)).join(`:`)}bigInt(){return BigInt(`0x${this.parsedAddress.map(g).join(``)}`)}to4(){let e=this.binaryZeroPad().split(``);return c.Address4.fromHex(BigInt(`0b${e.slice(96,128).join(``)}`).toString(16))}to4in6(){let t=this.to4(),n=new e(this.parsedAddress.slice(0,6).join(`:`),6).correctForm(),r=``;return/:$/.test(n)||(r=`:`),n+r+t.address}inspectTeredo(){let e=this.getBitsBase16(0,32),t=(this.getBits(80,96)^BigInt(`0xffff`)).toString(),n=c.Address4.fromHex(this.getBitsBase16(32,64)),r=this.getBits(96,128),i=c.Address4.fromHex((r^BigInt(`0xffffffff`)).toString(16)),a=this.getBitsBase2(64,80),o=(0,d.testBit)(a,15),s=(0,d.testBit)(a,14),l=(0,d.testBit)(a,8),u=(0,d.testBit)(a,9),f=BigInt(`0b${a.slice(2,6)+a.slice(8,16)}`).toString(10);return{prefix:`${e.slice(0,4)}:${e.slice(4,8)}`,server4:n.address,client4:i.address,flags:a,coneNat:o,microsoft:{reserved:s,universalLocal:u,groupIndividual:l,nonce:f},udpPort:t}}inspect6to4(){let e=this.getBitsBase16(0,16),t=c.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:e.slice(0,4),gateway:t.address}}to6to4(){return this.is4()?new e([`2002`,this.getBitsBase16(96,112),this.getBitsBase16(112,128),``,`/16`].join(`:`)):null}toByteArray(){let e=this.bigInt().toString(16),t=`${`0`.repeat(e.length%2)}${e}`,n=[];for(let e=0,r=t.length;e<r;e+=2)n.push(parseInt(t.substring(e,e+2),16));return n}toUnsignedByteArray(){return this.toByteArray().map(_)}static fromByteArray(e){return this.fromUnsignedByteArray(e.map(_))}static fromUnsignedByteArray(t){let n=BigInt(`256`),r=BigInt(`0`),i=BigInt(`1`);for(let e=t.length-1;e>=0;e--)r+=i*BigInt(t[e].toString(10)),i*=n;return e.fromBigInt(r)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){return this.getBitsBase2(0,64)===`1111111010000000000000000000000000000000000000000000000000000000`}isMulticast(){return this.getType()===`Multicast`}is4(){return this.v4}isTeredo(){return this.isInSubnet(new e(`2001::/32`))}is6to4(){return this.isInSubnet(new e(`2002::/16`))}isLoopback(){return this.getType()===`Loopback`}href(e){return e=e===void 0?``:`:${e}`,`http://[${this.correctForm()}]${e}/`}link(e){e||={},e.className===void 0&&(e.className=``),e.prefix===void 0&&(e.prefix=`/#address=`),e.v4===void 0&&(e.v4=!1);let t=this.correctForm;e.v4&&(t=this.to4in6);let n=t.call(this);return e.className?`<a href="${e.prefix}${n}" class="${e.className}">${n}</a>`:`<a href="${e.prefix}${n}">${n}</a>`}group(){if(this.elidedGroups===0)return s.simpleGroup(this.address).join(`:`);f(typeof this.elidedGroups==`number`),f(typeof this.elisionBegin==`number`);let e=[],[t,n]=this.address.split(`::`);t.length?e.push(...s.simpleGroup(t)):e.push(``);let r=[`hover-group`];for(let e=this.elisionBegin;e<this.elisionBegin+this.elidedGroups;e++)r.push(`group-${e}`);return e.push(`<span class="${r.join(` `)}"></span>`),n.length?e.push(...s.simpleGroup(n,this.elisionEnd)):e.push(``),this.is4()&&(f(this.address4 instanceof c.Address4),e.pop(),e.push(this.address4.groupForV6())),e.join(`:`)}regularExpressionString(t=!1){let n=[],r=new e(this.correctForm());if(r.elidedGroups===0)n.push((0,l.simpleRegularExpression)(r.parsedAddress));else if(r.elidedGroups===o.GROUPS)n.push((0,l.possibleElisions)(o.GROUPS));else{let e=r.address.split(`::`);e[0].length&&n.push((0,l.simpleRegularExpression)(e[0].split(`:`))),f(typeof r.elidedGroups==`number`),n.push((0,l.possibleElisions)(r.elidedGroups,e[0].length!==0,e[1].length!==0)),e[1].length&&n.push((0,l.simpleRegularExpression)(e[1].split(`:`))),n=[n.join(`:`)]}return t||(n=[`(?=^|`,l.ADDRESS_BOUNDARY,`|[^\\w\\:])(`,...n,`)(?=[^\\w\\:]|`,l.ADDRESS_BOUNDARY,`|$)`]),n.join(``)}regularExpression(e=!1){return new RegExp(this.regularExpressionString(e),`i`)}}})),_o=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.v6=e.AddressError=e.Address6=e.Address4=void 0;var i=fo();Object.defineProperty(e,`Address4`,{enumerable:!0,get:function(){return i.Address4}});var a=go();Object.defineProperty(e,`Address6`,{enumerable:!0,get:function(){return a.Address6}});var o=uo();Object.defineProperty(e,`AddressError`,{enumerable:!0,get:function(){return o.AddressError}}),e.v6={helpers:r(mo())}})),vo=e(so(),1),yo=_o();function bo(e,t=56){return t&&tt(e)?`${new yo.Address6(`${e}/${t}`).startAddress().correctForm()}/${t}`:e}var xo=class{constructor(e){this.validations=e,this.previous=new Map,this.current=new Map,this.localKeys=!0}init(e){this.windowMs=e.windowMs,this.validations?.windowMs(this.windowMs),this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.clearExpired()},this.windowMs),this.interval.unref?.()}async get(e){return this.current.get(e)??this.previous.get(e)}async increment(e){let t=this.getClient(e),n=Date.now();return t.resetTime.getTime()<=n&&this.resetClient(t,n),t.totalHits++,t}async decrement(e){let t=this.getClient(e);t.totalHits>0&&t.totalHits--}async resetKey(e){this.current.delete(e),this.previous.delete(e)}async resetAll(){this.current.clear(),this.previous.clear()}shutdown(){clearInterval(this.interval),this.resetAll()}resetClient(e,t=Date.now()){return e.totalHits=0,e.resetTime.setTime(t+this.windowMs),e}getClient(e){if(this.current.has(e))return this.current.get(e);let t;return this.previous.has(e)?(t=this.previous.get(e),this.previous.delete(e)):(t={totalHits:0,resetTime:new Date},this.resetClient(t)),this.current.set(e,t),t}clearExpired(){this.previous=this.current,this.current=new Map}},So=[`draft-6`,`draft-7`,`draft-8`],Co=(e,t)=>{let n;if(t){let e=Math.ceil((t.getTime()-Date.now())/1e3);n=Math.max(0,e)}else n=Math.ceil(e/1e3);return n},wo=e=>{let t=$e(`sha256`);t.update(e);let n=t.digest(`hex`).slice(0,12);return nt.from(n).toString(`base64`)},To=(e,t)=>{e.headersSent||(e.setHeader(`X-RateLimit-Limit`,t.limit.toString()),e.setHeader(`X-RateLimit-Remaining`,t.remaining.toString()),t.resetTime instanceof Date&&(e.setHeader(`Date`,new Date().toUTCString()),e.setHeader(`X-RateLimit-Reset`,Math.ceil(t.resetTime.getTime()/1e3).toString())))},Eo=(e,t,n)=>{if(e.headersSent)return;let r=Math.ceil(n/1e3),i=Co(n,t.resetTime);e.setHeader(`RateLimit-Policy`,`${t.limit};w=${r}`),e.setHeader(`RateLimit-Limit`,t.limit.toString()),e.setHeader(`RateLimit-Remaining`,t.remaining.toString()),typeof i==`number`&&e.setHeader(`RateLimit-Reset`,i.toString())},Do=(e,t,n)=>{if(e.headersSent)return;let r=Math.ceil(n/1e3),i=Co(n,t.resetTime);e.setHeader(`RateLimit-Policy`,`${t.limit};w=${r}`),e.setHeader(`RateLimit`,`limit=${t.limit}, remaining=${t.remaining}, reset=${i}`)},Oo=(e,t,n,r,i)=>{if(e.headersSent)return;let a=Math.ceil(n/1e3),o=Co(n,t.resetTime),s=wo(i),c=`r=${t.remaining}; t=${o}`,l=`q=${t.limit}; w=${a}; pk=:${s}:`;e.append(`RateLimit`,`"${r}"; ${c}`),e.append(`RateLimit-Policy`,`"${r}"; ${l}`)},ko=(e,t,n)=>{if(e.headersSent)return;let r=Co(n,t.resetTime);e.setHeader(`Retry-After`,r.toString())},Ao=e=>{let t={};for(let n of Object.keys(e)){let r=n;e[r]!==void 0&&(t[r]=e[r])}return t},Q=class extends Error{constructor(e,t){let n=`https://express-rate-limit.github.io/${e}/`;super(`${t} See ${n} for more information.`),this.name=this.constructor.name,this.code=e,this.help=n}},jo=class extends Q{},Mo=new Set,No=new WeakMap,Po={enabled:{default:!0},disable(){for(let e of Object.keys(this.enabled))this.enabled[e]=!1},ip(e){if(e===void 0)throw new Q(`ERR_ERL_UNDEFINED_IP_ADDRESS`,`An undefined 'request.ip' was detected. This might indicate a misconfiguration or the connection being destroyed prematurely.`);if(!et(e))throw new Q(`ERR_ERL_INVALID_IP_ADDRESS`,`An invalid 'request.ip' (${e}) was detected. Consider passing a custom 'keyGenerator' function to the rate limiter.`)},trustProxy(e){if(e.app.get(`trust proxy`)===!0)throw new Q(`ERR_ERL_PERMISSIVE_TRUST_PROXY`,`The Express 'trust proxy' setting is true, which allows anyone to trivially bypass IP-based rate limiting.`)},xForwardedForHeader(e){if(e.headers[`x-forwarded-for`]&&e.app.get(`trust proxy`)===!1)throw new Q(`ERR_ERL_UNEXPECTED_X_FORWARDED_FOR`,`The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users.`)},forwardedHeader(e){if(e.headers.forwarded&&e.ip===e.socket?.remoteAddress)throw new Q(`ERR_ERL_FORWARDED_HEADER`,`The 'Forwarded' header (standardized X-Forwarded-For) is set but currently being ignored. Add a custom keyGenerator to use a value from this header.`)},positiveHits(e){if(typeof e!=`number`||e<1||e!==Math.round(e))throw new Q(`ERR_ERL_INVALID_HITS`,`The totalHits value returned from the store must be a positive integer, got ${e}`)},unsharedStore(e){if(Mo.has(e)){let t=e?.localKeys?``:` (with a unique prefix)`;throw new Q(`ERR_ERL_STORE_REUSE`,`A Store instance must not be shared across multiple rate limiters. Create a new instance of ${e.constructor.name}${t} for each limiter instead.`)}Mo.add(e)},singleCount(e,t,n){let r=No.get(e);r||(r=new Map,No.set(e,r));let i=t.localKeys?t:t.constructor.name,a=r.get(i);a||(a=[],r.set(i,a));let o=`${t.prefix??``}${n}`;if(a.includes(o))throw new Q(`ERR_ERL_DOUBLE_COUNT`,`The hit count for ${n} was incremented more than once for a single request.`);a.push(o)},limit(e){if(e===0)throw new jo(`WRN_ERL_MAX_ZERO`,`Setting limit or max to 0 disables rate limiting in express-rate-limit v6 and older, but will cause all requests to be blocked in v7`)},draftPolliHeaders(e){if(e)throw new jo(`WRN_ERL_DEPRECATED_DRAFT_POLLI_HEADERS`,`The draft_polli_ratelimit_headers configuration option is deprecated and has been removed in express-rate-limit v7, please set standardHeaders: 'draft-6' instead.`)},onLimitReached(e){if(e)throw new jo(`WRN_ERL_DEPRECATED_ON_LIMIT_REACHED`,`The onLimitReached configuration option is deprecated and has been removed in express-rate-limit v7.`)},headersDraftVersion(e){if(typeof e!=`string`||!So.includes(e))throw new Q(`ERR_ERL_HEADERS_UNSUPPORTED_DRAFT_VERSION`,`standardHeaders: only the following versions of the IETF draft specification are supported: ${So.join(`, `)}.`)},headersResetTime(e){if(!e)throw new Q(`ERR_ERL_HEADERS_NO_RESET`,`standardHeaders: 'draft-7' requires a 'resetTime', but the store did not provide one. The 'windowMs' value will be used instead, which may cause clients to wait longer than necessary.`)},knownOptions(e){if(!e)return;let t=Object.keys({windowMs:!0,limit:!0,message:!0,statusCode:!0,legacyHeaders:!0,standardHeaders:!0,identifier:!0,requestPropertyName:!0,skipFailedRequests:!0,skipSuccessfulRequests:!0,keyGenerator:!0,ipv6Subnet:!0,handler:!0,skip:!0,requestWasSuccessful:!0,store:!0,validate:!0,headers:!0,max:!0,passOnStoreError:!0}).concat(`draft_polli_ratelimit_headers`,`delayAfter`,`delayMs`,`maxDelayMs`);for(let n of Object.keys(e))if(!t.includes(n))throw new Q(`ERR_ERL_UNKNOWN_OPTION`,`Unexpected configuration option: ${n}`)},validationsConfig(){let e=Object.keys(this).filter(e=>![`enabled`,`disable`].includes(e));e.push(`default`);for(let t of Object.keys(this.enabled))if(!e.includes(t))throw new Q(`ERR_ERL_UNKNOWN_VALIDATION`,`options.validate.${t} is not recognized. Supported validate options are: ${e.join(`, `)}.`)},creationStack(e){let{stack:t}=Error(`express-rate-limit validation check (set options.validate.creationStack=false to disable)`);if(t?.includes(`Layer.handle [as handle_request]`)||t?.includes(`Layer.handleRequest`))throw e.localKeys?new Q(`ERR_ERL_CREATED_IN_REQUEST_HANDLER`,`express-rate-limit instance should be created at app initialization, not when responding to a request.`):new Q(`ERR_ERL_CREATED_IN_REQUEST_HANDLER`,`express-rate-limit instance should *usually* be created at app initialization, not when responding to a request.`)},ipv6Subnet(e){if(e!==!1&&(!Number.isInteger(e)||e<32||e>64))throw new Q(`ERR_ERL_IPV6_SUBNET`,`Unexpected ipv6Subnet value: ${e}. Expected an integer between 32 and 64 (usually 48-64).`)},ipv6SubnetOrKeyGenerator(e){if(e.ipv6Subnet!==void 0&&e.keyGenerator)throw new Q(`ERR_ERL_IPV6SUBNET_OR_KEYGENERATOR`,`Incompatible options: the 'ipv6Subnet' option is ignored when a custom 'keyGenerator' function is also set.`)},keyGeneratorIpFallback(e){if(!e)return;let t=e.toString();if((t.includes(`req.ip`)||t.includes(`request.ip`))&&!t.includes(`ipKeyGenerator`))throw new Q(`ERR_ERL_KEY_GEN_IPV6`,`Custom keyGenerator appears to use request IP without calling the ipKeyGenerator helper function for IPv6 addresses. This could allow IPv6 users to bypass limits.`)},windowMs(e){let t=2**31-1;if(typeof e!=`number`||Number.isNaN(e)||e<1||e>t)throw new Q(`ERR_ERL_WINDOW_MS`,`Invalid windowMs value: ${e}${typeof e==`number`?``:` (${typeof e})`}, must be a number between 1 and ${t} when using the default MemoryStore`)}},Fo=e=>{let t;t=typeof e==`boolean`?{default:e}:{default:!0,...e};let n={enabled:t};for(let[e,r]of Object.entries(Po))typeof r==`function`&&(n[e]=(...i)=>{if(t[e]??t.default)try{r.apply(n,i)}catch(e){e instanceof jo?console.warn(e):console.error(e)}});return n},Io=e=>typeof e.incr==`function`&&typeof e.increment!=`function`,Lo=e=>{if(!Io(e))return e;let t=e;class n{async increment(e){return new Promise((n,r)=>{t.incr(e,(e,t,i)=>{e&&r(e),n({totalHits:t,resetTime:i})})})}async decrement(e){return t.decrement(e)}async resetKey(e){return t.resetKey(e)}async resetAll(){if(typeof t.resetAll==`function`)return t.resetAll()}}return new n},Ro=e=>{let{validations:t,...n}=e;return{...n,validate:t.enabled}},zo=e=>{let t=Ao(e),n=Fo(t?.validate??!0);n.validationsConfig(),n.knownOptions(e),n.draftPolliHeaders(t.draft_polli_ratelimit_headers),n.onLimitReached(t.onLimitReached),t.ipv6Subnet!==void 0&&typeof t.ipv6Subnet!=`function`&&n.ipv6Subnet(t.ipv6Subnet),n.keyGeneratorIpFallback(t.keyGenerator),n.ipv6SubnetOrKeyGenerator(t);let r=t.standardHeaders??!1;r===!0&&(r=`draft-6`);let i={windowMs:60*1e3,limit:e.max??5,message:`Too many requests, please try again later.`,statusCode:429,legacyHeaders:e.headers??!0,identifier(e,t){let n=``,{limit:r}=e[i.requestPropertyName],a=i.windowMs/1e3,o=i.windowMs/(1e3*60),s=i.windowMs/(1e3*60*60),c=i.windowMs/(1e3*60*60*24);return n=a<60?`${a}sec`:o<60?`${o}min`:s<24?`${s}hr${s>1?`s`:``}`:`${c}day${c>1?`s`:``}`,`${r}-in-${n}`},requestPropertyName:`rateLimit`,skipFailedRequests:!1,skipSuccessfulRequests:!1,requestWasSuccessful:(e,t)=>t.statusCode<400,skip:(e,t)=>!1,async keyGenerator(e,t){n.ip(e.ip),n.trustProxy(e),n.xForwardedForHeader(e),n.forwardedHeader(e);let r=e.ip,a=56;return tt(r)&&(a=typeof i.ipv6Subnet==`function`?await i.ipv6Subnet(e,t):i.ipv6Subnet,typeof i.ipv6Subnet==`function`&&n.ipv6Subnet(a)),bo(r,a)},ipv6Subnet:56,async handler(e,t,n,r){t.status(i.statusCode);let a=typeof i.message==`function`?await i.message(e,t):i.message;t.writableEnded||t.send(a)},passOnStoreError:!1,...t,standardHeaders:r,store:Lo(t.store??new xo(n)),validations:n};if(typeof i.store.increment!=`function`||typeof i.store.decrement!=`function`||typeof i.store.resetKey!=`function`||i.store.resetAll!==void 0&&typeof i.store.resetAll!=`function`||i.store.init!==void 0&&typeof i.store.init!=`function`)throw TypeError("An invalid store was passed. Please ensure that the store is a class that implements the `Store` interface.");return i},Bo=e=>async(t,n,r)=>{try{await Promise.resolve(e(t,n,r)).catch(r)}catch(e){r(e)}},Vo=e=>{let t=zo(e??{}),n=Ro(t);t.validations.creationStack(t.store),t.validations.unsharedStore(t.store),typeof t.store.init==`function`&&t.store.init(n);let r=Bo(async(e,r,i)=>{if(await t.skip(e,r)){i();return}let a=e,o=await t.keyGenerator(e,r),s=0,c;try{let e=await t.store.increment(o);s=e.totalHits,c=e.resetTime}catch(e){if(t.passOnStoreError){console.error(`express-rate-limit: error from store, allowing request without rate-limiting.`,e),i();return}throw e}t.validations.positiveHits(s),t.validations.singleCount(e,t.store,o);let l=await(typeof t.limit==`function`?t.limit(e,r):t.limit);t.validations.limit(l);let u={limit:l,used:s,remaining:Math.max(l-s,0),resetTime:c,key:o};if(Object.defineProperty(u,`current`,{configurable:!1,enumerable:!1,value:s}),a[t.requestPropertyName]=u,t.legacyHeaders&&!r.headersSent&&To(r,u),t.standardHeaders&&!r.headersSent)switch(t.standardHeaders){case`draft-6`:Eo(r,u,t.windowMs);break;case`draft-7`:t.validations.headersResetTime(u.resetTime),Do(r,u,t.windowMs);break;case`draft-8`:{let n=await(typeof t.identifier==`function`?t.identifier(e,r):t.identifier);t.validations.headersResetTime(u.resetTime),Oo(r,u,t.windowMs,n,o);break}default:t.validations.headersDraftVersion(t.standardHeaders);break}if(t.skipFailedRequests||t.skipSuccessfulRequests){let n=!1,i=async()=>{n||=(await t.store.decrement(o),!0)};t.skipFailedRequests&&(r.on(`finish`,async()=>{await t.requestWasSuccessful(e,r)||await i()}),r.on(`close`,async()=>{r.writableEnded||await i()}),r.on(`error`,async()=>{await i()})),t.skipSuccessfulRequests&&r.on(`finish`,async()=>{await t.requestWasSuccessful(e,r)&&await i()})}if(t.validations.disable(),s>l){(t.legacyHeaders||t.standardHeaders)&&ko(r,u,t.windowMs),t.handler(e,r,i,n);return}i()});return r.resetKey=t.store.resetKey.bind(t.store),r.getKey=typeof t.store.get==`function`?t.store.get.bind(t.store):()=>{throw Error(`The current store does not support the get/getKey method`)},r};const Ho=Symbol(`dangerouslyDisableDefaultSrc`),Uo=new Set([`none`,`self`,`strict-dynamic`,`report-sample`,`inline-speculation-rules`,`unsafe-inline`,`unsafe-eval`,`unsafe-hashes`,`wasm-unsafe-eval`]),Wo=()=>({"default-src":[`'self'`],"base-uri":[`'self'`],"font-src":[`'self'`,`https:`,`data:`],"form-action":[`'self'`],"frame-ancestors":[`'self'`],"img-src":[`'self'`,`data:`],"object-src":[`'none'`],"script-src":[`'self'`],"script-src-attr":[`'none'`],"style-src":[`'self'`,`https:`,`'unsafe-inline'`],"upgrade-insecure-requests":[]}),Go=e=>e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase()),Ko=(e,t)=>{if(/;|,/.test(t))throw Error(`Content-Security-Policy received an invalid directive value for ${JSON.stringify(e)}`)},qo=(e,t)=>{if(Uo.has(t)||t.startsWith(`nonce-`)||t.startsWith(`sha256-`)||t.startsWith(`sha384-`)||t.startsWith(`sha512-`))throw Error(`Content-Security-Policy received an invalid directive value for ${JSON.stringify(e)}. ${JSON.stringify(t)} should be quoted`)};function Jo(e){let t=Wo(),{useDefaults:n=!0,directives:r=t}=e,i=new Map,a=new Set,o=new Set;for(let e in r){if(!Object.hasOwn(r,e))continue;if(e.length===0||/[^a-zA-Z0-9-]/.test(e))throw Error(`Content-Security-Policy received an invalid directive name ${JSON.stringify(e)}`);let t=Go(e);if(a.has(t))throw Error(`Content-Security-Policy received a duplicate directive ${JSON.stringify(t)}`);a.add(t);let n=r[e],s;if(n===null){if(t===`default-src`)throw Error("Content-Security-Policy needs a default-src but it was set to `null`. If you really want to disable it, set it to `contentSecurityPolicy.dangerouslyDisableDefaultSrc`.");o.add(t);continue}else if(typeof n==`string`)s=[n];else if(n)if(n===Ho)if(t===`default-src`){o.add(`default-src`);continue}else throw Error(`Content-Security-Policy: tried to disable ${JSON.stringify(t)} as if it were default-src; simply omit the key`);else s=n;else throw Error(`Content-Security-Policy received an invalid directive value for ${JSON.stringify(t)}`);for(let e of s)typeof e==`string`&&(Ko(t,e),qo(t,e));i.set(t,s)}if(n&&Object.entries(t).forEach(([e,t])=>{!i.has(e)&&!o.has(e)&&i.set(e,t)}),!i.size)throw Error(`Content-Security-Policy has no directives. Either set some or disable the header`);if(!i.has(`default-src`)&&!o.has(`default-src`))throw Error("Content-Security-Policy needs a default-src but none was provided. If you really want to disable it, set it to `contentSecurityPolicy.dangerouslyDisableDefaultSrc`.");return i}function Yo(e,t,n){let r=[];for(let[i,a]of n){let n=``;for(let r of a)if(typeof r==`function`){let a=r(e,t);qo(i,a),n+=` `+a}else n+=` `+r;n?(Ko(i,n),r.push(`${i}${n}`)):r.push(i)}return r.join(`;`)}const Xo=function(e={}){let t=e.reportOnly?`Content-Security-Policy-Report-Only`:`Content-Security-Policy`,n=Jo(e);return function(e,r,i){let a=Yo(e,r,n);a instanceof Error?i(a):(r.setHeader(t,a),i())}};Xo.getDefaultDirectives=Wo,Xo.dangerouslyDisableDefaultSrc=Ho;const Zo=new Set([`require-corp`,`credentialless`,`unsafe-none`]);function Qo({policy:e=`require-corp`}){if(Zo.has(e))return e;throw Error(`Cross-Origin-Embedder-Policy does not support the ${JSON.stringify(e)} policy`)}function $o(e={}){let t=Qo(e);return function(e,n,r){n.setHeader(`Cross-Origin-Embedder-Policy`,t),r()}}const es=new Set([`same-origin`,`same-origin-allow-popups`,`unsafe-none`]);function ts({policy:e=`same-origin`}){if(es.has(e))return e;throw Error(`Cross-Origin-Opener-Policy does not support the ${JSON.stringify(e)} policy`)}function ns(e={}){let t=ts(e);return function(e,n,r){n.setHeader(`Cross-Origin-Opener-Policy`,t),r()}}const rs=new Set([`same-origin`,`same-site`,`cross-origin`]);function is({policy:e=`same-origin`}){if(rs.has(e))return e;throw Error(`Cross-Origin-Resource-Policy does not support the ${JSON.stringify(e)} policy`)}function as(e={}){let t=is(e);return function(e,n,r){n.setHeader(`Cross-Origin-Resource-Policy`,t),r()}}function os(){return function(e,t,n){t.setHeader(`Origin-Agent-Cluster`,`?1`),n()}}const ss=new Set([`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`,``]);function cs({policy:e=[`no-referrer`]}){let t=typeof e==`string`?[e]:e;if(t.length===0)throw Error(`Referrer-Policy received no policy tokens`);let n=new Set;return t.forEach(e=>{if(ss.has(e)){if(n.has(e))throw Error(`Referrer-Policy received a duplicate policy token ${JSON.stringify(e)}`)}else throw Error(`Referrer-Policy received an unexpected policy token ${JSON.stringify(e)}`);n.add(e)}),t.join(`,`)}function ls(e={}){let t=cs(e);return function(e,n,r){n.setHeader(`Referrer-Policy`,t),r()}}function us(e=31536e3){if(e>=0&&Number.isFinite(e))return Math.floor(e);throw Error(`Strict-Transport-Security: ${JSON.stringify(e)} is not a valid value for maxAge. Please choose a positive integer.`)}function ds(e){if(`maxage`in e)throw Error("Strict-Transport-Security received an unsupported property, `maxage`. Did you mean to pass `maxAge`?");if(`includeSubdomains`in e)throw Error('Strict-Transport-Security middleware should use `includeSubDomains` instead of `includeSubdomains`. (The correct one has an uppercase "D".)');let t=[`max-age=${us(e.maxAge)}`];return(e.includeSubDomains===void 0||e.includeSubDomains)&&t.push(`includeSubDomains`),e.preload&&t.push(`preload`),t.join(`; `)}function fs(e={}){let t=ds(e);return function(e,n,r){n.setHeader(`Strict-Transport-Security`,t),r()}}function ps(){return function(e,t,n){t.setHeader(`X-Content-Type-Options`,`nosniff`),n()}}function ms(e={}){let t=e.allow?`on`:`off`;return function(e,n,r){n.setHeader(`X-DNS-Prefetch-Control`,t),r()}}function hs(){return function(e,t,n){t.setHeader(`X-Download-Options`,`noopen`),n()}}function gs({action:e=`sameorigin`}){let t=typeof e==`string`?e.toUpperCase():e;switch(t){case`SAME-ORIGIN`:return`SAMEORIGIN`;case`DENY`:case`SAMEORIGIN`:return t;default:throw Error(`X-Frame-Options received an invalid action ${JSON.stringify(e)}`)}}function _s(e={}){let t=gs(e);return function(e,n,r){n.setHeader(`X-Frame-Options`,t),r()}}const vs=new Set([`none`,`master-only`,`by-content-type`,`all`]);function ys({permittedPolicies:e=`none`}){if(vs.has(e))return e;throw Error(`X-Permitted-Cross-Domain-Policies does not support ${JSON.stringify(e)}`)}function bs(e={}){let t=ys(e);return function(e,n,r){n.setHeader(`X-Permitted-Cross-Domain-Policies`,t),r()}}function xs(){return function(e,t,n){t.removeHeader(`X-Powered-By`),n()}}function Ss(){return function(e,t,n){t.setHeader(`X-XSS-Protection`,`0`),n()}}function Cs(e){let t=[];switch(e.contentSecurityPolicy){case void 0:case!0:t.push(Xo());break;case!1:break;default:t.push(Xo(e.contentSecurityPolicy));break}switch(e.crossOriginEmbedderPolicy){case void 0:case!1:break;case!0:t.push($o());break;default:t.push($o(e.crossOriginEmbedderPolicy));break}switch(e.crossOriginOpenerPolicy){case void 0:case!0:t.push(ns());break;case!1:break;default:t.push(ns(e.crossOriginOpenerPolicy));break}switch(e.crossOriginResourcePolicy){case void 0:case!0:t.push(as());break;case!1:break;default:t.push(as(e.crossOriginResourcePolicy));break}switch(e.originAgentCluster){case void 0:case!0:t.push(os());break;case!1:break;default:console.warn(`Origin-Agent-Cluster does not take options. Remove the property to silence this warning.`),t.push(os());break}switch(e.referrerPolicy){case void 0:case!0:t.push(ls());break;case!1:break;default:t.push(ls(e.referrerPolicy));break}if(`strictTransportSecurity`in e&&`hsts`in e)throw Error("Strict-Transport-Security option was specified twice. Remove `hsts` to silence this warning.");let n=e.strictTransportSecurity??e.hsts;switch(n){case void 0:case!0:t.push(fs());break;case!1:break;default:t.push(fs(n));break}if(`xContentTypeOptions`in e&&`noSniff`in e)throw Error("X-Content-Type-Options option was specified twice. Remove `noSniff` to silence this warning.");switch(e.xContentTypeOptions??e.noSniff){case void 0:case!0:t.push(ps());break;case!1:break;default:console.warn(`X-Content-Type-Options does not take options. Remove the property to silence this warning.`),t.push(ps());break}if(`xDnsPrefetchControl`in e&&`dnsPrefetchControl`in e)throw Error("X-DNS-Prefetch-Control option was specified twice. Remove `dnsPrefetchControl` to silence this warning.");let r=e.xDnsPrefetchControl??e.dnsPrefetchControl;switch(r){case void 0:case!0:t.push(ms());break;case!1:break;default:t.push(ms(r));break}if(`xDownloadOptions`in e&&`ieNoOpen`in e)throw Error("X-Download-Options option was specified twice. Remove `ieNoOpen` to silence this warning.");switch(e.xDownloadOptions??e.ieNoOpen){case void 0:case!0:t.push(hs());break;case!1:break;default:console.warn(`X-Download-Options does not take options. Remove the property to silence this warning.`),t.push(hs());break}if(`xFrameOptions`in e&&`frameguard`in e)throw Error("X-Frame-Options option was specified twice. Remove `frameguard` to silence this warning.");let i=e.xFrameOptions??e.frameguard;switch(i){case void 0:case!0:t.push(_s());break;case!1:break;default:t.push(_s(i));break}if(`xPermittedCrossDomainPolicies`in e&&`permittedCrossDomainPolicies`in e)throw Error("X-Permitted-Cross-Domain-Policies option was specified twice. Remove `permittedCrossDomainPolicies` to silence this warning.");let a=e.xPermittedCrossDomainPolicies??e.permittedCrossDomainPolicies;switch(a){case void 0:case!0:t.push(bs());break;case!1:break;default:t.push(bs(a));break}if(`xPoweredBy`in e&&`hidePoweredBy`in e)throw Error("X-Powered-By option was specified twice. Remove `hidePoweredBy` to silence this warning.");switch(e.xPoweredBy??e.hidePoweredBy){case void 0:case!0:t.push(xs());break;case!1:break;default:console.warn(`X-Powered-By does not take options. Remove the property to silence this warning.`),t.push(xs());break}if(`xXssProtection`in e&&`xssFilter`in e)throw Error("X-XSS-Protection option was specified twice. Remove `xssFilter` to silence this warning.");switch(e.xXssProtection??e.xssFilter){case void 0:case!0:t.push(Ss());break;case!1:break;default:console.warn(`X-XSS-Protection does not take options. Remove the property to silence this warning.`),t.push(Ss());break}return t}const ws=Object.assign(function(e={}){if(e.constructor?.name===`IncomingMessage`)throw Error("It appears you have done something like `app.use(helmet)`, but it should be `app.use(helmet())`.");let t=Cs(e);return function(e,n,r){let i=0;(function a(o){if(o){r(o);return}let s=t[i];s?(i++,s(e,n,a)):r()})()}},{contentSecurityPolicy:Xo,crossOriginEmbedderPolicy:$o,crossOriginOpenerPolicy:ns,crossOriginResourcePolicy:as,originAgentCluster:os,referrerPolicy:ls,strictTransportSecurity:fs,xContentTypeOptions:ps,xDnsPrefetchControl:ms,xDownloadOptions:hs,xFrameOptions:_s,xPermittedCrossDomainPolicies:bs,xPoweredBy:xs,xXssProtection:Ss,dnsPrefetchControl:ms,xssFilter:Ss,permittedCrossDomainPolicies:bs,ieNoOpen:hs,noSniff:ps,frameguard:_s,hidePoweredBy:xs,hsts:fs}),Ts={increment:`
|
|
42
|
+
var ao=r(((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}})),oo=r(((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)}})),so=r(((e,t)=>{(function(){var e=ao(),n=oo(),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,t)),i.push(s(e,t)),i.push(l(e,t)),i.push(d(e,t)),i.push(u(e,t)),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,t)),i.push(u(e,t)),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})()})),co=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isInSubnet=t,e.isCorrect=n,e.numberToPaddedHex=r,e.stringToPaddedHex=i,e.testBit=a;function t(e){return this.subnetMask<e.subnetMask?!1:this.mask(e.subnetMask)===e.mask()}function n(e){return function(){return this.addressMinusSuffix===this.correctForm()?this.subnetMask===e&&!this.parsedSubnet?!0:this.parsedSubnet===String(this.subnetMask):!1}}function r(e){return e.toString(16).padStart(2,`0`)}function i(e){return r(parseInt(e,10))}function a(e,t){let{length:n}=e;if(t>n)return!1;let r=n-t;return e.substring(r,r+1)===`1`}})),lo=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RE_SUBNET_STRING=e.RE_ADDRESS=e.GROUPS=e.BITS=void 0,e.BITS=32,e.GROUPS=4,e.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g,e.RE_SUBNET_STRING=/\/\d{1,2}$/})),uo=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AddressError=void 0,e.AddressError=class extends Error{constructor(e,t){super(e),this.name=`AddressError`,this.parseMessage=t}}})),fo=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.Address4=void 0;let i=r(co()),a=r(lo()),o=uo();e.Address4=class e{constructor(e){this.groups=a.GROUPS,this.parsedAddress=[],this.parsedSubnet=``,this.subnet=`/32`,this.subnetMask=32,this.v4=!0,this.isCorrect=i.isCorrect(a.BITS),this.isInSubnet=i.isInSubnet,this.address=e;let t=a.RE_SUBNET_STRING.exec(e);if(t){if(this.parsedSubnet=t[0].replace(`/`,``),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>a.BITS)throw new o.AddressError(`Invalid subnet mask.`);e=e.replace(a.RE_SUBNET_STRING,``)}this.addressMinusSuffix=e,this.parsedAddress=this.parse(e)}static isValid(t){try{return new e(t),!0}catch{return!1}}parse(e){let t=e.split(`.`);if(!e.match(a.RE_ADDRESS))throw new o.AddressError(`Invalid IPv4 address.`);return t}correctForm(){return this.parsedAddress.map(e=>parseInt(e,10)).join(`.`)}static fromHex(t){let n=t.replace(/:/g,``).padStart(8,`0`),r=[],i;for(i=0;i<8;i+=2){let e=n.slice(i,i+2);r.push(parseInt(e,16))}return new e(r.join(`.`))}static fromInteger(t){return e.fromHex(t.toString(16))}static fromArpa(t){return new e(t.replace(/(\.in-addr\.arpa)?\.$/,``).split(`.`).reverse().join(`.`))}toHex(){return this.parsedAddress.map(e=>i.stringToPaddedHex(e)).join(`:`)}toArray(){return this.parsedAddress.map(e=>parseInt(e,10))}toGroup6(){let e=[],t;for(t=0;t<a.GROUPS;t+=2)e.push(`${i.stringToPaddedHex(this.parsedAddress[t])}${i.stringToPaddedHex(this.parsedAddress[t+1])}`);return e.join(`:`)}bigInt(){return BigInt(`0x${this.parsedAddress.map(e=>i.stringToPaddedHex(e)).join(``)}`)}_startAddress(){return BigInt(`0b${this.mask()+`0`.repeat(a.BITS-this.subnetMask)}`)}startAddress(){return e.fromBigInt(this._startAddress())}startAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._startAddress()+t)}_endAddress(){return BigInt(`0b${this.mask()+`1`.repeat(a.BITS-this.subnetMask)}`)}endAddress(){return e.fromBigInt(this._endAddress())}endAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._endAddress()-t)}static fromBigInt(t){return e.fromHex(t.toString(16))}mask(e){return e===void 0&&(e=this.subnetMask),this.getBitsBase2(0,e)}getBitsBase2(e,t){return this.binaryZeroPad().slice(e,t)}reverseForm(e){e||={};let t=this.correctForm().split(`.`).reverse().join(`.`);return e.omitSuffix?t:`${t}.in-addr.arpa.`}isMulticast(){return this.isInSubnet(new e(`224.0.0.0/4`))}binaryZeroPad(){return this.bigInt().toString(2).padStart(a.BITS,`0`)}groupForV6(){let e=this.parsedAddress;return this.address.replace(a.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${e.slice(0,2).join(`.`)}</span>.<span class="hover-group group-v4 group-7">${e.slice(2,4).join(`.`)}</span>`)}}})),po=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RE_URL_WITH_PORT=e.RE_URL=e.RE_ZONE_STRING=e.RE_SUBNET_STRING=e.RE_BAD_ADDRESS=e.RE_BAD_CHARACTERS=e.TYPES=e.SCOPES=e.GROUPS=e.BITS=void 0,e.BITS=128,e.GROUPS=8,e.SCOPES={0:`Reserved`,1:`Interface local`,2:`Link local`,4:`Admin local`,5:`Site local`,8:`Organization local`,14:`Global`,15:`Reserved`},e.TYPES={"ff01::1/128":`Multicast (All nodes on this interface)`,"ff01::2/128":`Multicast (All routers on this interface)`,"ff02::1/128":`Multicast (All nodes on this link)`,"ff02::2/128":`Multicast (All routers on this link)`,"ff05::2/128":`Multicast (All routers in this site)`,"ff02::5/128":`Multicast (OSPFv3 AllSPF routers)`,"ff02::6/128":`Multicast (OSPFv3 AllDR routers)`,"ff02::9/128":`Multicast (RIP routers)`,"ff02::a/128":`Multicast (EIGRP routers)`,"ff02::d/128":`Multicast (PIM routers)`,"ff02::16/128":`Multicast (MLDv2 reports)`,"ff01::fb/128":`Multicast (mDNSv6)`,"ff02::fb/128":`Multicast (mDNSv6)`,"ff05::fb/128":`Multicast (mDNSv6)`,"ff02::1:2/128":`Multicast (All DHCP servers and relay agents on this link)`,"ff05::1:2/128":`Multicast (All DHCP servers and relay agents in this site)`,"ff02::1:3/128":`Multicast (All DHCP servers on this link)`,"ff05::1:3/128":`Multicast (All DHCP servers in this site)`,"::/128":`Unspecified`,"::1/128":`Loopback`,"ff00::/8":`Multicast`,"fe80::/10":`Link-local unicast`},e.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,e.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,e.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,e.RE_ZONE_STRING=/%.*$/,e.RE_URL=/^\[{0,1}([0-9a-f:]+)\]{0,1}/,e.RE_URL_WITH_PORT=/\[([0-9a-f:]+)\]:([0-9]{1,5})/})),mo=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.spanAllZeroes=t,e.spanAll=n,e.spanLeadingZeroes=i,e.simpleGroup=a;function t(e){return e.replace(/(0+)/g,`<span class="zero">$1</span>`)}function n(e,n=0){return e.split(``).map((e,r)=>`<span class="digit value-${e} position-${r+n}">${t(e)}</span>`).join(``)}function r(e){return e.replace(/^(0+)/,`<span class="zero">$1</span>`)}function i(e){return e.split(`:`).map(e=>r(e)).join(`:`)}function a(e,t=0){return e.split(`:`).map((e,n)=>/group-v4/.test(e)?e:`<span class="hover-group group-${n+t}">${r(e)}</span>`)}})),ho=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.ADDRESS_BOUNDARY=void 0,e.groupPossibilities=a,e.padGroup=o,e.simpleRegularExpression=s,e.possibleElisions=c;let i=r(po());function a(e){return`(${e.join(`|`)})`}function o(e){return e.length<4?`0{0,${4-e.length}}${e}`:e}e.ADDRESS_BOUNDARY=`[^A-Fa-f0-9:]`;function s(e){let t=[];e.forEach((e,n)=>{parseInt(e,16)===0&&t.push(n)});let n=t.map(t=>e.map((e,n)=>{if(n===t){let t=n===0||n===i.GROUPS-1?`:`:``;return a([o(e),t])}return o(e)}).join(`:`));return n.push(e.map(o).join(`:`)),a(n)}function c(e,t,n){let r=t?``:`:`,i=n?``:`:`,o=[];!t&&!n&&o.push(`::`),t&&n&&o.push(``),(n&&!t||!n&&t)&&o.push(`:`),o.push(`${r}(:0{1,4}){1,${e-1}}`),o.push(`(0{1,4}:){1,${e-1}}${i}`),o.push(`(0{1,4}:){${e-1}}0{1,4}`);for(let t=1;t<e-1;t++)for(let n=1;n<e-t;n++)o.push(`(0{1,4}:){${n}}:(0{1,4}:){${e-n-t-1}}0{1,4}`);return a(o)}})),go=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.Address6=void 0;let i=r(co()),a=r(lo()),o=r(po()),s=r(mo()),c=fo(),l=ho(),u=uo(),d=co();function f(e){if(!e)throw Error(`Assertion failed.`)}function p(e){let t=/(\d+)(\d{3})/;for(;t.test(e);)e=e.replace(t,`$1,$2`);return e}function m(e){return e=e.replace(/^(0{1,})([1-9]+)$/,`<span class="parse-error">$1</span>$2`),e=e.replace(/^(0{1,})(0)$/,`<span class="parse-error">$1</span>$2`),e}function h(e,t){let n=[],r=[],i;for(i=0;i<e.length;i++)i<t[0]?n.push(e[i]):i>t[1]&&r.push(e[i]);return n.concat([`compact`]).concat(r)}function g(e){return parseInt(e,16).toString(16).padStart(4,`0`)}function _(e){return e&255}e.Address6=class e{constructor(e,t){this.addressMinusSuffix=``,this.parsedSubnet=``,this.subnet=`/128`,this.subnetMask=128,this.v4=!1,this.zone=``,this.isInSubnet=i.isInSubnet,this.isCorrect=i.isCorrect(o.BITS),t===void 0?this.groups=o.GROUPS:this.groups=t,this.address=e;let n=o.RE_SUBNET_STRING.exec(e);if(n){if(this.parsedSubnet=n[0].replace(`/`,``),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>o.BITS)throw new u.AddressError(`Invalid subnet mask.`);e=e.replace(o.RE_SUBNET_STRING,``)}else if(/\//.test(e))throw new u.AddressError(`Invalid subnet mask.`);let r=o.RE_ZONE_STRING.exec(e);r&&(this.zone=r[0],e=e.replace(o.RE_ZONE_STRING,``)),this.addressMinusSuffix=e,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(t){try{return new e(t),!0}catch{return!1}}static fromBigInt(t){let n=t.toString(16).padStart(32,`0`),r=[],i;for(i=0;i<o.GROUPS;i++)r.push(n.slice(i*4,(i+1)*4));return new e(r.join(`:`))}static fromURL(t){let n,r=null,i;if(t.indexOf(`[`)!==-1&&t.indexOf(`]:`)!==-1){if(i=o.RE_URL_WITH_PORT.exec(t),i===null)return{error:`failed to parse address with port`,address:null,port:null};n=i[1],r=i[2]}else if(t.indexOf(`/`)!==-1){if(t=t.replace(/^[a-z0-9]+:\/\//,``),i=o.RE_URL.exec(t),i===null)return{error:`failed to parse address from URL`,address:null,port:null};n=i[1]}else n=t;return r?(r=parseInt(r,10),(r<0||r>65536)&&(r=null)):r=null,{address:new e(n),port:r}}static fromAddress4(t){let n=new c.Address4(t),r=o.BITS-(a.BITS-n.subnetMask);return new e(`::ffff:${n.correctForm()}/${r}`)}static fromArpa(t){let n=t.replace(/(\.ip6\.arpa)?\.$/,``);if(n.length!==63)throw new u.AddressError(`Invalid 'ip6.arpa' form.`);let r=n.split(`.`).reverse();for(let e=7;e>0;e--){let t=e*4;r.splice(t,0,`:`)}return n=r.join(``),new e(n)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,`-`)}.ipv6-literal.net`}mask(e=this.subnetMask){return this.getBitsBase2(0,e)}possibleSubnets(e=128){let t=o.BITS-this.subnetMask-Math.abs(e-o.BITS);return t<0?`0`:p((BigInt(`2`)**BigInt(t)).toString(10))}_startAddress(){return BigInt(`0b${this.mask()+`0`.repeat(o.BITS-this.subnetMask)}`)}startAddress(){return e.fromBigInt(this._startAddress())}startAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._startAddress()+t)}_endAddress(){return BigInt(`0b${this.mask()+`1`.repeat(o.BITS-this.subnetMask)}`)}endAddress(){return e.fromBigInt(this._endAddress())}endAddressExclusive(){let t=BigInt(`1`);return e.fromBigInt(this._endAddress()-t)}getScope(){let e=o.SCOPES[parseInt(this.getBits(12,16).toString(10),10)];return this.getType()===`Global unicast`&&e!==`Link local`&&(e=`Global`),e||`Unknown`}getType(){for(let t of Object.keys(o.TYPES))if(this.isInSubnet(new e(t)))return o.TYPES[t];return`Global unicast`}getBits(e,t){return BigInt(`0b${this.getBitsBase2(e,t)}`)}getBitsBase2(e,t){return this.binaryZeroPad().slice(e,t)}getBitsBase16(e,t){let n=t-e;if(n%4!=0)throw Error(`Length of bits to retrieve must be divisible by four`);return this.getBits(e,t).toString(16).padStart(n/4,`0`)}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,o.BITS)}reverseForm(e){e||={};let t=Math.floor(this.subnetMask/4),n=this.canonicalForm().replace(/:/g,``).split(``).slice(0,t).reverse().join(`.`);return t>0?e.omitSuffix?n:`${n}.ip6.arpa.`:e.omitSuffix?``:`ip6.arpa.`}correctForm(){let e,t=[],n=0,r=[];for(e=0;e<this.parsedAddress.length;e++){let t=parseInt(this.parsedAddress[e],16);t===0&&n++,t!==0&&n>0&&(n>1&&r.push([e-n,e-1]),n=0)}n>1&&r.push([this.parsedAddress.length-n,this.parsedAddress.length-1]);let i=r.map(e=>e[1]-e[0]+1);if(r.length>0){let e=i.indexOf(Math.max(...i));t=h(this.parsedAddress,r[e])}else t=this.parsedAddress;for(e=0;e<t.length;e++)t[e]!==`compact`&&(t[e]=parseInt(t[e],16).toString(16));let a=t.join(`:`);return a=a.replace(/^compact$/,`::`),a=a.replace(/(^compact)|(compact$)/,`:`),a=a.replace(/compact/,``),a}binaryZeroPad(){return this.bigInt().toString(2).padStart(o.BITS,`0`)}parse4in6(e){let t=e.split(`:`),n=t.slice(-1)[0].match(a.RE_ADDRESS);if(n){this.parsedAddress4=n[0],this.address4=new c.Address4(this.parsedAddress4);for(let t=0;t<this.address4.groups;t++)if(/^0[0-9]+/.test(this.address4.parsedAddress[t]))throw new u.AddressError(`IPv4 addresses can't have leading zeroes.`,e.replace(a.RE_ADDRESS,this.address4.parsedAddress.map(m).join(`.`)));this.v4=!0,t[t.length-1]=this.address4.toGroup6(),e=t.join(`:`)}return e}parse(e){e=this.parse4in6(e);let t=e.match(o.RE_BAD_CHARACTERS);if(t)throw new u.AddressError(`Bad character${t.length>1?`s`:``} detected in address: ${t.join(``)}`,e.replace(o.RE_BAD_CHARACTERS,`<span class="parse-error">$1</span>`));let n=e.match(o.RE_BAD_ADDRESS);if(n)throw new u.AddressError(`Address failed regex: ${n.join(``)}`,e.replace(o.RE_BAD_ADDRESS,`<span class="parse-error">$1</span>`));let r=[],i=e.split(`::`);if(i.length===2){let e=i[0].split(`:`),t=i[1].split(`:`);e.length===1&&e[0]===``&&(e=[]),t.length===1&&t[0]===``&&(t=[]);let n=this.groups-(e.length+t.length);if(!n)throw new u.AddressError(`Error parsing groups`);this.elidedGroups=n,this.elisionBegin=e.length,this.elisionEnd=e.length+this.elidedGroups,r=r.concat(e);for(let e=0;e<n;e++)r.push(`0`);r=r.concat(t)}else if(i.length===1)r=e.split(`:`),this.elidedGroups=0;else throw new u.AddressError(`Too many :: groups found`);if(r=r.map(e=>parseInt(e,16).toString(16)),r.length!==this.groups)throw new u.AddressError(`Incorrect number of groups found`);return r}canonicalForm(){return this.parsedAddress.map(g).join(`:`)}decimal(){return this.parsedAddress.map(e=>parseInt(e,16).toString(10).padStart(5,`0`)).join(`:`)}bigInt(){return BigInt(`0x${this.parsedAddress.map(g).join(``)}`)}to4(){let e=this.binaryZeroPad().split(``);return c.Address4.fromHex(BigInt(`0b${e.slice(96,128).join(``)}`).toString(16))}to4in6(){let t=this.to4(),n=new e(this.parsedAddress.slice(0,6).join(`:`),6).correctForm(),r=``;return/:$/.test(n)||(r=`:`),n+r+t.address}inspectTeredo(){let e=this.getBitsBase16(0,32),t=(this.getBits(80,96)^BigInt(`0xffff`)).toString(),n=c.Address4.fromHex(this.getBitsBase16(32,64)),r=this.getBits(96,128),i=c.Address4.fromHex((r^BigInt(`0xffffffff`)).toString(16)),a=this.getBitsBase2(64,80),o=(0,d.testBit)(a,15),s=(0,d.testBit)(a,14),l=(0,d.testBit)(a,8),u=(0,d.testBit)(a,9),f=BigInt(`0b${a.slice(2,6)+a.slice(8,16)}`).toString(10);return{prefix:`${e.slice(0,4)}:${e.slice(4,8)}`,server4:n.address,client4:i.address,flags:a,coneNat:o,microsoft:{reserved:s,universalLocal:u,groupIndividual:l,nonce:f},udpPort:t}}inspect6to4(){let e=this.getBitsBase16(0,16),t=c.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:e.slice(0,4),gateway:t.address}}to6to4(){return this.is4()?new e([`2002`,this.getBitsBase16(96,112),this.getBitsBase16(112,128),``,`/16`].join(`:`)):null}toByteArray(){let e=this.bigInt().toString(16),t=`${`0`.repeat(e.length%2)}${e}`,n=[];for(let e=0,r=t.length;e<r;e+=2)n.push(parseInt(t.substring(e,e+2),16));return n}toUnsignedByteArray(){return this.toByteArray().map(_)}static fromByteArray(e){return this.fromUnsignedByteArray(e.map(_))}static fromUnsignedByteArray(t){let n=BigInt(`256`),r=BigInt(`0`),i=BigInt(`1`);for(let e=t.length-1;e>=0;e--)r+=i*BigInt(t[e].toString(10)),i*=n;return e.fromBigInt(r)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){return this.getBitsBase2(0,64)===`1111111010000000000000000000000000000000000000000000000000000000`}isMulticast(){return this.getType()===`Multicast`}is4(){return this.v4}isTeredo(){return this.isInSubnet(new e(`2001::/32`))}is6to4(){return this.isInSubnet(new e(`2002::/16`))}isLoopback(){return this.getType()===`Loopback`}href(e){return e=e===void 0?``:`:${e}`,`http://[${this.correctForm()}]${e}/`}link(e){e||={},e.className===void 0&&(e.className=``),e.prefix===void 0&&(e.prefix=`/#address=`),e.v4===void 0&&(e.v4=!1);let t=this.correctForm;e.v4&&(t=this.to4in6);let n=t.call(this);return e.className?`<a href="${e.prefix}${n}" class="${e.className}">${n}</a>`:`<a href="${e.prefix}${n}">${n}</a>`}group(){if(this.elidedGroups===0)return s.simpleGroup(this.address).join(`:`);f(typeof this.elidedGroups==`number`),f(typeof this.elisionBegin==`number`);let e=[],[t,n]=this.address.split(`::`);t.length?e.push(...s.simpleGroup(t)):e.push(``);let r=[`hover-group`];for(let e=this.elisionBegin;e<this.elisionBegin+this.elidedGroups;e++)r.push(`group-${e}`);return e.push(`<span class="${r.join(` `)}"></span>`),n.length?e.push(...s.simpleGroup(n,this.elisionEnd)):e.push(``),this.is4()&&(f(this.address4 instanceof c.Address4),e.pop(),e.push(this.address4.groupForV6())),e.join(`:`)}regularExpressionString(t=!1){let n=[],r=new e(this.correctForm());if(r.elidedGroups===0)n.push((0,l.simpleRegularExpression)(r.parsedAddress));else if(r.elidedGroups===o.GROUPS)n.push((0,l.possibleElisions)(o.GROUPS));else{let e=r.address.split(`::`);e[0].length&&n.push((0,l.simpleRegularExpression)(e[0].split(`:`))),f(typeof r.elidedGroups==`number`),n.push((0,l.possibleElisions)(r.elidedGroups,e[0].length!==0,e[1].length!==0)),e[1].length&&n.push((0,l.simpleRegularExpression)(e[1].split(`:`))),n=[n.join(`:`)]}return t||(n=[`(?=^|`,l.ADDRESS_BOUNDARY,`|[^\\w\\:])(`,...n,`)(?=[^\\w\\:]|`,l.ADDRESS_BOUNDARY,`|$)`]),n.join(``)}regularExpression(e=!1){return new RegExp(this.regularExpressionString(e),`i`)}}})),_o=r((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.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.v6=e.AddressError=e.Address6=e.Address4=void 0;var i=fo();Object.defineProperty(e,`Address4`,{enumerable:!0,get:function(){return i.Address4}});var a=go();Object.defineProperty(e,`Address6`,{enumerable:!0,get:function(){return a.Address6}});var o=uo();Object.defineProperty(e,`AddressError`,{enumerable:!0,get:function(){return o.AddressError}}),e.v6={helpers:r(mo())}})),vo=e(so(),1),yo=_o();function bo(e,t=56){return t&&tt(e)?`${new yo.Address6(`${e}/${t}`).startAddress().correctForm()}/${t}`:e}var xo=class{constructor(e){this.validations=e,this.previous=new Map,this.current=new Map,this.localKeys=!0}init(e){this.windowMs=e.windowMs,this.validations?.windowMs(this.windowMs),this.interval&&clearInterval(this.interval),this.interval=setInterval(()=>{this.clearExpired()},this.windowMs),this.interval.unref?.()}async get(e){return this.current.get(e)??this.previous.get(e)}async increment(e){let t=this.getClient(e),n=Date.now();return t.resetTime.getTime()<=n&&this.resetClient(t,n),t.totalHits++,t}async decrement(e){let t=this.getClient(e);t.totalHits>0&&t.totalHits--}async resetKey(e){this.current.delete(e),this.previous.delete(e)}async resetAll(){this.current.clear(),this.previous.clear()}shutdown(){clearInterval(this.interval),this.resetAll()}resetClient(e,t=Date.now()){return e.totalHits=0,e.resetTime.setTime(t+this.windowMs),e}getClient(e){if(this.current.has(e))return this.current.get(e);let t;return this.previous.has(e)?(t=this.previous.get(e),this.previous.delete(e)):(t={totalHits:0,resetTime:new Date},this.resetClient(t)),this.current.set(e,t),t}clearExpired(){this.previous=this.current,this.current=new Map}},So=[`draft-6`,`draft-7`,`draft-8`],Co=(e,t)=>{let n;if(t){let e=Math.ceil((t.getTime()-Date.now())/1e3);n=Math.max(0,e)}else n=Math.ceil(e/1e3);return n},wo=e=>{let t=Qe(`sha256`);t.update(e);let n=t.digest(`hex`).slice(0,12);return nt.from(n).toString(`base64`)},To=(e,t)=>{e.headersSent||(e.setHeader(`X-RateLimit-Limit`,t.limit.toString()),e.setHeader(`X-RateLimit-Remaining`,t.remaining.toString()),t.resetTime instanceof Date&&(e.setHeader(`Date`,new Date().toUTCString()),e.setHeader(`X-RateLimit-Reset`,Math.ceil(t.resetTime.getTime()/1e3).toString())))},Eo=(e,t,n)=>{if(e.headersSent)return;let r=Math.ceil(n/1e3),i=Co(n,t.resetTime);e.setHeader(`RateLimit-Policy`,`${t.limit};w=${r}`),e.setHeader(`RateLimit-Limit`,t.limit.toString()),e.setHeader(`RateLimit-Remaining`,t.remaining.toString()),typeof i==`number`&&e.setHeader(`RateLimit-Reset`,i.toString())},Do=(e,t,n)=>{if(e.headersSent)return;let r=Math.ceil(n/1e3),i=Co(n,t.resetTime);e.setHeader(`RateLimit-Policy`,`${t.limit};w=${r}`),e.setHeader(`RateLimit`,`limit=${t.limit}, remaining=${t.remaining}, reset=${i}`)},Oo=(e,t,n,r,i)=>{if(e.headersSent)return;let a=Math.ceil(n/1e3),o=Co(n,t.resetTime),s=wo(i),c=`r=${t.remaining}; t=${o}`,l=`q=${t.limit}; w=${a}; pk=:${s}:`;e.append(`RateLimit`,`"${r}"; ${c}`),e.append(`RateLimit-Policy`,`"${r}"; ${l}`)},ko=(e,t,n)=>{if(e.headersSent)return;let r=Co(n,t.resetTime);e.setHeader(`Retry-After`,r.toString())},Ao=e=>{let t={};for(let n of Object.keys(e)){let r=n;e[r]!==void 0&&(t[r]=e[r])}return t},Q=class extends Error{constructor(e,t){let n=`https://express-rate-limit.github.io/${e}/`;super(`${t} See ${n} for more information.`),this.name=this.constructor.name,this.code=e,this.help=n}},jo=class extends Q{},Mo=new Set,No=new WeakMap,Po={enabled:{default:!0},disable(){for(let e of Object.keys(this.enabled))this.enabled[e]=!1},ip(e){if(e===void 0)throw new Q(`ERR_ERL_UNDEFINED_IP_ADDRESS`,`An undefined 'request.ip' was detected. This might indicate a misconfiguration or the connection being destroyed prematurely.`);if(!et(e))throw new Q(`ERR_ERL_INVALID_IP_ADDRESS`,`An invalid 'request.ip' (${e}) was detected. Consider passing a custom 'keyGenerator' function to the rate limiter.`)},trustProxy(e){if(e.app.get(`trust proxy`)===!0)throw new Q(`ERR_ERL_PERMISSIVE_TRUST_PROXY`,`The Express 'trust proxy' setting is true, which allows anyone to trivially bypass IP-based rate limiting.`)},xForwardedForHeader(e){if(e.headers[`x-forwarded-for`]&&e.app.get(`trust proxy`)===!1)throw new Q(`ERR_ERL_UNEXPECTED_X_FORWARDED_FOR`,`The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users.`)},forwardedHeader(e){if(e.headers.forwarded&&e.ip===e.socket?.remoteAddress)throw new Q(`ERR_ERL_FORWARDED_HEADER`,`The 'Forwarded' header (standardized X-Forwarded-For) is set but currently being ignored. Add a custom keyGenerator to use a value from this header.`)},positiveHits(e){if(typeof e!=`number`||e<1||e!==Math.round(e))throw new Q(`ERR_ERL_INVALID_HITS`,`The totalHits value returned from the store must be a positive integer, got ${e}`)},unsharedStore(e){if(Mo.has(e)){let t=e?.localKeys?``:` (with a unique prefix)`;throw new Q(`ERR_ERL_STORE_REUSE`,`A Store instance must not be shared across multiple rate limiters. Create a new instance of ${e.constructor.name}${t} for each limiter instead.`)}Mo.add(e)},singleCount(e,t,n){let r=No.get(e);r||(r=new Map,No.set(e,r));let i=t.localKeys?t:t.constructor.name,a=r.get(i);a||(a=[],r.set(i,a));let o=`${t.prefix??``}${n}`;if(a.includes(o))throw new Q(`ERR_ERL_DOUBLE_COUNT`,`The hit count for ${n} was incremented more than once for a single request.`);a.push(o)},limit(e){if(e===0)throw new jo(`WRN_ERL_MAX_ZERO`,`Setting limit or max to 0 disables rate limiting in express-rate-limit v6 and older, but will cause all requests to be blocked in v7`)},draftPolliHeaders(e){if(e)throw new jo(`WRN_ERL_DEPRECATED_DRAFT_POLLI_HEADERS`,`The draft_polli_ratelimit_headers configuration option is deprecated and has been removed in express-rate-limit v7, please set standardHeaders: 'draft-6' instead.`)},onLimitReached(e){if(e)throw new jo(`WRN_ERL_DEPRECATED_ON_LIMIT_REACHED`,`The onLimitReached configuration option is deprecated and has been removed in express-rate-limit v7.`)},headersDraftVersion(e){if(typeof e!=`string`||!So.includes(e))throw new Q(`ERR_ERL_HEADERS_UNSUPPORTED_DRAFT_VERSION`,`standardHeaders: only the following versions of the IETF draft specification are supported: ${So.join(`, `)}.`)},headersResetTime(e){if(!e)throw new Q(`ERR_ERL_HEADERS_NO_RESET`,`standardHeaders: 'draft-7' requires a 'resetTime', but the store did not provide one. The 'windowMs' value will be used instead, which may cause clients to wait longer than necessary.`)},knownOptions(e){if(!e)return;let t=Object.keys({windowMs:!0,limit:!0,message:!0,statusCode:!0,legacyHeaders:!0,standardHeaders:!0,identifier:!0,requestPropertyName:!0,skipFailedRequests:!0,skipSuccessfulRequests:!0,keyGenerator:!0,ipv6Subnet:!0,handler:!0,skip:!0,requestWasSuccessful:!0,store:!0,validate:!0,headers:!0,max:!0,passOnStoreError:!0}).concat(`draft_polli_ratelimit_headers`,`delayAfter`,`delayMs`,`maxDelayMs`);for(let n of Object.keys(e))if(!t.includes(n))throw new Q(`ERR_ERL_UNKNOWN_OPTION`,`Unexpected configuration option: ${n}`)},validationsConfig(){let e=Object.keys(this).filter(e=>![`enabled`,`disable`].includes(e));e.push(`default`);for(let t of Object.keys(this.enabled))if(!e.includes(t))throw new Q(`ERR_ERL_UNKNOWN_VALIDATION`,`options.validate.${t} is not recognized. Supported validate options are: ${e.join(`, `)}.`)},creationStack(e){let{stack:t}=Error(`express-rate-limit validation check (set options.validate.creationStack=false to disable)`);if(t?.includes(`Layer.handle [as handle_request]`)||t?.includes(`Layer.handleRequest`))throw e.localKeys?new Q(`ERR_ERL_CREATED_IN_REQUEST_HANDLER`,`express-rate-limit instance should be created at app initialization, not when responding to a request.`):new Q(`ERR_ERL_CREATED_IN_REQUEST_HANDLER`,`express-rate-limit instance should *usually* be created at app initialization, not when responding to a request.`)},ipv6Subnet(e){if(e!==!1&&(!Number.isInteger(e)||e<32||e>64))throw new Q(`ERR_ERL_IPV6_SUBNET`,`Unexpected ipv6Subnet value: ${e}. Expected an integer between 32 and 64 (usually 48-64).`)},ipv6SubnetOrKeyGenerator(e){if(e.ipv6Subnet!==void 0&&e.keyGenerator)throw new Q(`ERR_ERL_IPV6SUBNET_OR_KEYGENERATOR`,`Incompatible options: the 'ipv6Subnet' option is ignored when a custom 'keyGenerator' function is also set.`)},keyGeneratorIpFallback(e){if(!e)return;let t=e.toString();if((t.includes(`req.ip`)||t.includes(`request.ip`))&&!t.includes(`ipKeyGenerator`))throw new Q(`ERR_ERL_KEY_GEN_IPV6`,`Custom keyGenerator appears to use request IP without calling the ipKeyGenerator helper function for IPv6 addresses. This could allow IPv6 users to bypass limits.`)},windowMs(e){let t=2**31-1;if(typeof e!=`number`||Number.isNaN(e)||e<1||e>t)throw new Q(`ERR_ERL_WINDOW_MS`,`Invalid windowMs value: ${e}${typeof e==`number`?``:` (${typeof e})`}, must be a number between 1 and ${t} when using the default MemoryStore`)}},Fo=e=>{let t;t=typeof e==`boolean`?{default:e}:{default:!0,...e};let n={enabled:t};for(let[e,r]of Object.entries(Po))typeof r==`function`&&(n[e]=(...i)=>{if(t[e]??t.default)try{r.apply(n,i)}catch(e){e instanceof jo?console.warn(e):console.error(e)}});return n},Io=e=>typeof e.incr==`function`&&typeof e.increment!=`function`,Lo=e=>{if(!Io(e))return e;let t=e;class n{async increment(e){return new Promise((n,r)=>{t.incr(e,(e,t,i)=>{e&&r(e),n({totalHits:t,resetTime:i})})})}async decrement(e){return t.decrement(e)}async resetKey(e){return t.resetKey(e)}async resetAll(){if(typeof t.resetAll==`function`)return t.resetAll()}}return new n},Ro=e=>{let{validations:t,...n}=e;return{...n,validate:t.enabled}},zo=e=>{let t=Ao(e),n=Fo(t?.validate??!0);n.validationsConfig(),n.knownOptions(e),n.draftPolliHeaders(t.draft_polli_ratelimit_headers),n.onLimitReached(t.onLimitReached),t.ipv6Subnet!==void 0&&typeof t.ipv6Subnet!=`function`&&n.ipv6Subnet(t.ipv6Subnet),n.keyGeneratorIpFallback(t.keyGenerator),n.ipv6SubnetOrKeyGenerator(t);let r=t.standardHeaders??!1;r===!0&&(r=`draft-6`);let i={windowMs:60*1e3,limit:e.max??5,message:`Too many requests, please try again later.`,statusCode:429,legacyHeaders:e.headers??!0,identifier(e,t){let n=``,{limit:r}=e[i.requestPropertyName],a=i.windowMs/1e3,o=i.windowMs/(1e3*60),s=i.windowMs/(1e3*60*60),c=i.windowMs/(1e3*60*60*24);return n=a<60?`${a}sec`:o<60?`${o}min`:s<24?`${s}hr${s>1?`s`:``}`:`${c}day${c>1?`s`:``}`,`${r}-in-${n}`},requestPropertyName:`rateLimit`,skipFailedRequests:!1,skipSuccessfulRequests:!1,requestWasSuccessful:(e,t)=>t.statusCode<400,skip:(e,t)=>!1,async keyGenerator(e,t){n.ip(e.ip),n.trustProxy(e),n.xForwardedForHeader(e),n.forwardedHeader(e);let r=e.ip,a=56;return tt(r)&&(a=typeof i.ipv6Subnet==`function`?await i.ipv6Subnet(e,t):i.ipv6Subnet,typeof i.ipv6Subnet==`function`&&n.ipv6Subnet(a)),bo(r,a)},ipv6Subnet:56,async handler(e,t,n,r){t.status(i.statusCode);let a=typeof i.message==`function`?await i.message(e,t):i.message;t.writableEnded||t.send(a)},passOnStoreError:!1,...t,standardHeaders:r,store:Lo(t.store??new xo(n)),validations:n};if(typeof i.store.increment!=`function`||typeof i.store.decrement!=`function`||typeof i.store.resetKey!=`function`||i.store.resetAll!==void 0&&typeof i.store.resetAll!=`function`||i.store.init!==void 0&&typeof i.store.init!=`function`)throw TypeError("An invalid store was passed. Please ensure that the store is a class that implements the `Store` interface.");return i},Bo=e=>async(t,n,r)=>{try{await Promise.resolve(e(t,n,r)).catch(r)}catch(e){r(e)}},Vo=e=>{let t=zo(e??{}),n=Ro(t);t.validations.creationStack(t.store),t.validations.unsharedStore(t.store),typeof t.store.init==`function`&&t.store.init(n);let r=Bo(async(e,r,i)=>{if(await t.skip(e,r)){i();return}let a=e,o=await t.keyGenerator(e,r),s=0,c;try{let e=await t.store.increment(o);s=e.totalHits,c=e.resetTime}catch(e){if(t.passOnStoreError){console.error(`express-rate-limit: error from store, allowing request without rate-limiting.`,e),i();return}throw e}t.validations.positiveHits(s),t.validations.singleCount(e,t.store,o);let l=await(typeof t.limit==`function`?t.limit(e,r):t.limit);t.validations.limit(l);let u={limit:l,used:s,remaining:Math.max(l-s,0),resetTime:c,key:o};if(Object.defineProperty(u,`current`,{configurable:!1,enumerable:!1,value:s}),a[t.requestPropertyName]=u,t.legacyHeaders&&!r.headersSent&&To(r,u),t.standardHeaders&&!r.headersSent)switch(t.standardHeaders){case`draft-6`:Eo(r,u,t.windowMs);break;case`draft-7`:t.validations.headersResetTime(u.resetTime),Do(r,u,t.windowMs);break;case`draft-8`:{let n=await(typeof t.identifier==`function`?t.identifier(e,r):t.identifier);t.validations.headersResetTime(u.resetTime),Oo(r,u,t.windowMs,n,o);break}default:t.validations.headersDraftVersion(t.standardHeaders);break}if(t.skipFailedRequests||t.skipSuccessfulRequests){let n=!1,i=async()=>{n||=(await t.store.decrement(o),!0)};t.skipFailedRequests&&(r.on(`finish`,async()=>{await t.requestWasSuccessful(e,r)||await i()}),r.on(`close`,async()=>{r.writableEnded||await i()}),r.on(`error`,async()=>{await i()})),t.skipSuccessfulRequests&&r.on(`finish`,async()=>{await t.requestWasSuccessful(e,r)&&await i()})}if(t.validations.disable(),s>l){(t.legacyHeaders||t.standardHeaders)&&ko(r,u,t.windowMs),t.handler(e,r,i,n);return}i()});return r.resetKey=t.store.resetKey.bind(t.store),r.getKey=typeof t.store.get==`function`?t.store.get.bind(t.store):()=>{throw Error(`The current store does not support the get/getKey method`)},r};const Ho=Symbol(`dangerouslyDisableDefaultSrc`),Uo=new Set([`none`,`self`,`strict-dynamic`,`report-sample`,`inline-speculation-rules`,`unsafe-inline`,`unsafe-eval`,`unsafe-hashes`,`wasm-unsafe-eval`]),Wo=()=>({"default-src":[`'self'`],"base-uri":[`'self'`],"font-src":[`'self'`,`https:`,`data:`],"form-action":[`'self'`],"frame-ancestors":[`'self'`],"img-src":[`'self'`,`data:`],"object-src":[`'none'`],"script-src":[`'self'`],"script-src-attr":[`'none'`],"style-src":[`'self'`,`https:`,`'unsafe-inline'`],"upgrade-insecure-requests":[]}),Go=e=>e.replace(/[A-Z]/g,e=>`-`+e.toLowerCase()),Ko=(e,t)=>{if(/;|,/.test(t))throw Error(`Content-Security-Policy received an invalid directive value for ${JSON.stringify(e)}`)},qo=(e,t)=>{if(Uo.has(t)||t.startsWith(`nonce-`)||t.startsWith(`sha256-`)||t.startsWith(`sha384-`)||t.startsWith(`sha512-`))throw Error(`Content-Security-Policy received an invalid directive value for ${JSON.stringify(e)}. ${JSON.stringify(t)} should be quoted`)};function Jo(e){let t=Wo(),{useDefaults:n=!0,directives:r=t}=e,i=new Map,a=new Set,o=new Set;for(let e in r){if(!Object.hasOwn(r,e))continue;if(e.length===0||/[^a-zA-Z0-9-]/.test(e))throw Error(`Content-Security-Policy received an invalid directive name ${JSON.stringify(e)}`);let t=Go(e);if(a.has(t))throw Error(`Content-Security-Policy received a duplicate directive ${JSON.stringify(t)}`);a.add(t);let n=r[e],s;if(n===null){if(t===`default-src`)throw Error("Content-Security-Policy needs a default-src but it was set to `null`. If you really want to disable it, set it to `contentSecurityPolicy.dangerouslyDisableDefaultSrc`.");o.add(t);continue}else if(typeof n==`string`)s=[n];else if(n)if(n===Ho)if(t===`default-src`){o.add(`default-src`);continue}else throw Error(`Content-Security-Policy: tried to disable ${JSON.stringify(t)} as if it were default-src; simply omit the key`);else s=n;else throw Error(`Content-Security-Policy received an invalid directive value for ${JSON.stringify(t)}`);for(let e of s)typeof e==`string`&&(Ko(t,e),qo(t,e));i.set(t,s)}if(n&&Object.entries(t).forEach(([e,t])=>{!i.has(e)&&!o.has(e)&&i.set(e,t)}),!i.size)throw Error(`Content-Security-Policy has no directives. Either set some or disable the header`);if(!i.has(`default-src`)&&!o.has(`default-src`))throw Error("Content-Security-Policy needs a default-src but none was provided. If you really want to disable it, set it to `contentSecurityPolicy.dangerouslyDisableDefaultSrc`.");return i}function Yo(e,t,n){let r=[];for(let[i,a]of n){let n=``;for(let r of a)if(typeof r==`function`){let a=r(e,t);qo(i,a),n+=` `+a}else n+=` `+r;n?(Ko(i,n),r.push(`${i}${n}`)):r.push(i)}return r.join(`;`)}const Xo=function(e={}){let t=e.reportOnly?`Content-Security-Policy-Report-Only`:`Content-Security-Policy`,n=Jo(e);return function(e,r,i){let a=Yo(e,r,n);a instanceof Error?i(a):(r.setHeader(t,a),i())}};Xo.getDefaultDirectives=Wo,Xo.dangerouslyDisableDefaultSrc=Ho;const Zo=new Set([`require-corp`,`credentialless`,`unsafe-none`]);function Qo({policy:e=`require-corp`}){if(Zo.has(e))return e;throw Error(`Cross-Origin-Embedder-Policy does not support the ${JSON.stringify(e)} policy`)}function $o(e={}){let t=Qo(e);return function(e,n,r){n.setHeader(`Cross-Origin-Embedder-Policy`,t),r()}}const es=new Set([`same-origin`,`same-origin-allow-popups`,`unsafe-none`]);function ts({policy:e=`same-origin`}){if(es.has(e))return e;throw Error(`Cross-Origin-Opener-Policy does not support the ${JSON.stringify(e)} policy`)}function ns(e={}){let t=ts(e);return function(e,n,r){n.setHeader(`Cross-Origin-Opener-Policy`,t),r()}}const rs=new Set([`same-origin`,`same-site`,`cross-origin`]);function is({policy:e=`same-origin`}){if(rs.has(e))return e;throw Error(`Cross-Origin-Resource-Policy does not support the ${JSON.stringify(e)} policy`)}function as(e={}){let t=is(e);return function(e,n,r){n.setHeader(`Cross-Origin-Resource-Policy`,t),r()}}function os(){return function(e,t,n){t.setHeader(`Origin-Agent-Cluster`,`?1`),n()}}const ss=new Set([`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`,``]);function cs({policy:e=[`no-referrer`]}){let t=typeof e==`string`?[e]:e;if(t.length===0)throw Error(`Referrer-Policy received no policy tokens`);let n=new Set;return t.forEach(e=>{if(ss.has(e)){if(n.has(e))throw Error(`Referrer-Policy received a duplicate policy token ${JSON.stringify(e)}`)}else throw Error(`Referrer-Policy received an unexpected policy token ${JSON.stringify(e)}`);n.add(e)}),t.join(`,`)}function ls(e={}){let t=cs(e);return function(e,n,r){n.setHeader(`Referrer-Policy`,t),r()}}function us(e=31536e3){if(e>=0&&Number.isFinite(e))return Math.floor(e);throw Error(`Strict-Transport-Security: ${JSON.stringify(e)} is not a valid value for maxAge. Please choose a positive integer.`)}function ds(e){if(`maxage`in e)throw Error("Strict-Transport-Security received an unsupported property, `maxage`. Did you mean to pass `maxAge`?");if(`includeSubdomains`in e)throw Error('Strict-Transport-Security middleware should use `includeSubDomains` instead of `includeSubdomains`. (The correct one has an uppercase "D".)');let t=[`max-age=${us(e.maxAge)}`];return(e.includeSubDomains===void 0||e.includeSubDomains)&&t.push(`includeSubDomains`),e.preload&&t.push(`preload`),t.join(`; `)}function fs(e={}){let t=ds(e);return function(e,n,r){n.setHeader(`Strict-Transport-Security`,t),r()}}function ps(){return function(e,t,n){t.setHeader(`X-Content-Type-Options`,`nosniff`),n()}}function ms(e={}){let t=e.allow?`on`:`off`;return function(e,n,r){n.setHeader(`X-DNS-Prefetch-Control`,t),r()}}function hs(){return function(e,t,n){t.setHeader(`X-Download-Options`,`noopen`),n()}}function gs({action:e=`sameorigin`}){let t=typeof e==`string`?e.toUpperCase():e;switch(t){case`SAME-ORIGIN`:return`SAMEORIGIN`;case`DENY`:case`SAMEORIGIN`:return t;default:throw Error(`X-Frame-Options received an invalid action ${JSON.stringify(e)}`)}}function _s(e={}){let t=gs(e);return function(e,n,r){n.setHeader(`X-Frame-Options`,t),r()}}const vs=new Set([`none`,`master-only`,`by-content-type`,`all`]);function ys({permittedPolicies:e=`none`}){if(vs.has(e))return e;throw Error(`X-Permitted-Cross-Domain-Policies does not support ${JSON.stringify(e)}`)}function bs(e={}){let t=ys(e);return function(e,n,r){n.setHeader(`X-Permitted-Cross-Domain-Policies`,t),r()}}function xs(){return function(e,t,n){t.removeHeader(`X-Powered-By`),n()}}function Ss(){return function(e,t,n){t.setHeader(`X-XSS-Protection`,`0`),n()}}function Cs(e){let t=[];switch(e.contentSecurityPolicy){case void 0:case!0:t.push(Xo());break;case!1:break;default:t.push(Xo(e.contentSecurityPolicy));break}switch(e.crossOriginEmbedderPolicy){case void 0:case!1:break;case!0:t.push($o());break;default:t.push($o(e.crossOriginEmbedderPolicy));break}switch(e.crossOriginOpenerPolicy){case void 0:case!0:t.push(ns());break;case!1:break;default:t.push(ns(e.crossOriginOpenerPolicy));break}switch(e.crossOriginResourcePolicy){case void 0:case!0:t.push(as());break;case!1:break;default:t.push(as(e.crossOriginResourcePolicy));break}switch(e.originAgentCluster){case void 0:case!0:t.push(os());break;case!1:break;default:console.warn(`Origin-Agent-Cluster does not take options. Remove the property to silence this warning.`),t.push(os());break}switch(e.referrerPolicy){case void 0:case!0:t.push(ls());break;case!1:break;default:t.push(ls(e.referrerPolicy));break}if(`strictTransportSecurity`in e&&`hsts`in e)throw Error("Strict-Transport-Security option was specified twice. Remove `hsts` to silence this warning.");let n=e.strictTransportSecurity??e.hsts;switch(n){case void 0:case!0:t.push(fs());break;case!1:break;default:t.push(fs(n));break}if(`xContentTypeOptions`in e&&`noSniff`in e)throw Error("X-Content-Type-Options option was specified twice. Remove `noSniff` to silence this warning.");switch(e.xContentTypeOptions??e.noSniff){case void 0:case!0:t.push(ps());break;case!1:break;default:console.warn(`X-Content-Type-Options does not take options. Remove the property to silence this warning.`),t.push(ps());break}if(`xDnsPrefetchControl`in e&&`dnsPrefetchControl`in e)throw Error("X-DNS-Prefetch-Control option was specified twice. Remove `dnsPrefetchControl` to silence this warning.");let r=e.xDnsPrefetchControl??e.dnsPrefetchControl;switch(r){case void 0:case!0:t.push(ms());break;case!1:break;default:t.push(ms(r));break}if(`xDownloadOptions`in e&&`ieNoOpen`in e)throw Error("X-Download-Options option was specified twice. Remove `ieNoOpen` to silence this warning.");switch(e.xDownloadOptions??e.ieNoOpen){case void 0:case!0:t.push(hs());break;case!1:break;default:console.warn(`X-Download-Options does not take options. Remove the property to silence this warning.`),t.push(hs());break}if(`xFrameOptions`in e&&`frameguard`in e)throw Error("X-Frame-Options option was specified twice. Remove `frameguard` to silence this warning.");let i=e.xFrameOptions??e.frameguard;switch(i){case void 0:case!0:t.push(_s());break;case!1:break;default:t.push(_s(i));break}if(`xPermittedCrossDomainPolicies`in e&&`permittedCrossDomainPolicies`in e)throw Error("X-Permitted-Cross-Domain-Policies option was specified twice. Remove `permittedCrossDomainPolicies` to silence this warning.");let a=e.xPermittedCrossDomainPolicies??e.permittedCrossDomainPolicies;switch(a){case void 0:case!0:t.push(bs());break;case!1:break;default:t.push(bs(a));break}if(`xPoweredBy`in e&&`hidePoweredBy`in e)throw Error("X-Powered-By option was specified twice. Remove `hidePoweredBy` to silence this warning.");switch(e.xPoweredBy??e.hidePoweredBy){case void 0:case!0:t.push(xs());break;case!1:break;default:console.warn(`X-Powered-By does not take options. Remove the property to silence this warning.`),t.push(xs());break}if(`xXssProtection`in e&&`xssFilter`in e)throw Error("X-XSS-Protection option was specified twice. Remove `xssFilter` to silence this warning.");switch(e.xXssProtection??e.xssFilter){case void 0:case!0:t.push(Ss());break;case!1:break;default:console.warn(`X-XSS-Protection does not take options. Remove the property to silence this warning.`),t.push(Ss());break}return t}const ws=Object.assign(function(e={}){if(e.constructor?.name===`IncomingMessage`)throw Error("It appears you have done something like `app.use(helmet)`, but it should be `app.use(helmet())`.");let t=Cs(e);return function(e,n,r){let i=0;(function a(o){if(o){r(o);return}let s=t[i];s?(i++,s(e,n,a)):r()})()}},{contentSecurityPolicy:Xo,crossOriginEmbedderPolicy:$o,crossOriginOpenerPolicy:ns,crossOriginResourcePolicy:as,originAgentCluster:os,referrerPolicy:ls,strictTransportSecurity:fs,xContentTypeOptions:ps,xDnsPrefetchControl:ms,xDownloadOptions:hs,xFrameOptions:_s,xPermittedCrossDomainPolicies:bs,xPoweredBy:xs,xXssProtection:Ss,dnsPrefetchControl:ms,xssFilter:Ss,permittedCrossDomainPolicies:bs,ieNoOpen:hs,noSniff:ps,frameguard:_s,hidePoweredBy:xs,hsts:fs}),Ts={increment:`
|
|
43
43
|
local windowMs = tonumber(ARGV[2])
|
|
44
44
|
local resetOnChange = ARGV[1] == "1"
|
|
45
45
|
|
|
@@ -63,7 +63,7 @@ var ao=r(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnPr
|
|
|
63
63
|
local timeToExpire = redis.call("PTTL", KEYS[1])
|
|
64
64
|
|
|
65
65
|
return { totalHits, timeToExpire }
|
|
66
|
-
`.replaceAll(/^\s+/gm,``).trim()},Es=e=>typeof e==`number`?e:Number.parseInt((e??``).toString(),10),Ds=e=>{if(!Array.isArray(e))throw TypeError(`Expected result to be array of values`);if(e.length!==2)throw Error(`Expected 2 replies, got ${e.length}`);let t=e[0]===!1?0:Es(e[0]),n=Es(e[1]);return{totalHits:t,resetTime:new Date(Date.now()+n)}};var Os=class{sendCommand;prefix;resetExpiryOnChange;incrementScriptSha;getScriptSha;windowMs;constructor(e){if(typeof e!=`object`)throw TypeError(`rate-limit-redis: Error: options object is required`);if(`sendCommand`in e&&!(`sendCommandCluster`in e)){let t=e.sendCommand.bind(this);this.sendCommand=async({command:e})=>t(...e)}else if(!(`sendCommand`in e)&&`sendCommandCluster`in e)this.sendCommand=e.sendCommandCluster.bind(this);else throw Error(`rate-limit-redis: Error: options must include either sendCommand or sendCommandCluster (but not both)`);this.prefix=e.prefix??`rl:`,this.resetExpiryOnChange=e.resetExpiryOnChange??!1,this.incrementScriptSha=this.loadIncrementScript(),this.getScriptSha=this.loadGetScript()}async loadIncrementScript(e){let t=await this.sendCommand({key:e,isReadOnly:!1,command:[`SCRIPT`,`LOAD`,Ts.increment]});if(typeof t!=`string`)throw TypeError(`unexpected reply from redis client`);return t}async loadGetScript(e){let t=await this.sendCommand({key:e,isReadOnly:!1,command:[`SCRIPT`,`LOAD`,Ts.get]});if(typeof t!=`string`)throw TypeError(`unexpected reply from redis client`);return t}async retryableIncrement(e){let t=this.prefixKey(e),n=async()=>this.sendCommand({key:t,isReadOnly:!1,command:[`EVALSHA`,await this.incrementScriptSha,`1`,t,this.resetExpiryOnChange?`1`:`0`,this.windowMs.toString()]});try{return await n()}catch{return this.incrementScriptSha=this.loadIncrementScript(t),n()}}prefixKey(e){return`${this.prefix}${e}`}init(e){this.windowMs=e.windowMs}async get(e){let t=this.prefixKey(e),n,r=async()=>this.sendCommand({key:t,isReadOnly:!0,command:[`EVALSHA`,await this.getScriptSha,`1`,t]});try{n=await r()}catch{this.getScriptSha=this.loadGetScript(t),n=await r()}return Ds(n)}async increment(e){return Ds(await this.retryableIncrement(e))}async decrement(e){let t=this.prefixKey(e);await this.sendCommand({key:t,isReadOnly:!1,command:[`DECR`,t]})}async resetKey(e){let t=this.prefixKey(e);await this.sendCommand({key:t,isReadOnly:!1,command:[`DEL`,t]})}},ks=
|
|
66
|
+
`.replaceAll(/^\s+/gm,``).trim()},Es=e=>typeof e==`number`?e:Number.parseInt((e??``).toString(),10),Ds=e=>{if(!Array.isArray(e))throw TypeError(`Expected result to be array of values`);if(e.length!==2)throw Error(`Expected 2 replies, got ${e.length}`);let t=e[0]===!1?0:Es(e[0]),n=Es(e[1]);return{totalHits:t,resetTime:new Date(Date.now()+n)}};var Os=class{sendCommand;prefix;resetExpiryOnChange;incrementScriptSha;getScriptSha;windowMs;constructor(e){if(typeof e!=`object`)throw TypeError(`rate-limit-redis: Error: options object is required`);if(`sendCommand`in e&&!(`sendCommandCluster`in e)){let t=e.sendCommand.bind(this);this.sendCommand=async({command:e})=>t(...e)}else if(!(`sendCommand`in e)&&`sendCommandCluster`in e)this.sendCommand=e.sendCommandCluster.bind(this);else throw Error(`rate-limit-redis: Error: options must include either sendCommand or sendCommandCluster (but not both)`);this.prefix=e.prefix??`rl:`,this.resetExpiryOnChange=e.resetExpiryOnChange??!1,this.incrementScriptSha=this.loadIncrementScript(),this.getScriptSha=this.loadGetScript()}async loadIncrementScript(e){let t=await this.sendCommand({key:e,isReadOnly:!1,command:[`SCRIPT`,`LOAD`,Ts.increment]});if(typeof t!=`string`)throw TypeError(`unexpected reply from redis client`);return t}async loadGetScript(e){let t=await this.sendCommand({key:e,isReadOnly:!1,command:[`SCRIPT`,`LOAD`,Ts.get]});if(typeof t!=`string`)throw TypeError(`unexpected reply from redis client`);return t}async retryableIncrement(e){let t=this.prefixKey(e),n=async()=>this.sendCommand({key:t,isReadOnly:!1,command:[`EVALSHA`,await this.incrementScriptSha,`1`,t,this.resetExpiryOnChange?`1`:`0`,this.windowMs.toString()]});try{return await n()}catch{return this.incrementScriptSha=this.loadIncrementScript(t),n()}}prefixKey(e){return`${this.prefix}${e}`}init(e){this.windowMs=e.windowMs}async get(e){let t=this.prefixKey(e),n,r=async()=>this.sendCommand({key:t,isReadOnly:!0,command:[`EVALSHA`,await this.getScriptSha,`1`,t]});try{n=await r()}catch{this.getScriptSha=this.loadGetScript(t),n=await r()}return Ds(n)}async increment(e){return Ds(await this.retryableIncrement(e))}async decrement(e){let t=this.prefixKey(e);await this.sendCommand({key:t,isReadOnly:!1,command:[`DECR`,t]})}async resetKey(e){let t=this.prefixKey(e);await this.sendCommand({key:t,isReadOnly:!1,command:[`DEL`,t]})}},ks=Oe();function As(e){if(e&&typeof e==`object`&&`status`in e){let t=e.status;if(typeof t==`number`)return t}return e instanceof SyntaxError?400:500}function js(e){return(t,n,r,i)=>{let a=n.headers[`user-agent`];if(e.error({error:t.message,stack:t.stack,url:n.url,method:n.method,userAgent:typeof a==`string`?a:a?.[0],ip:n.ip},`Unhandled request error`),r.headersSent)return i(t);let o=process.env.NODE_ENV!==`production`;r.status(As(t)).json({error:`Internal server error`,...o&&{message:t.message,stack:t.stack}})}}function Ms(e=`/health`){return(t,n,r)=>{if(t.path!==e)return r();n.status(200).json({status:`healthy`,timestamp:new Date().toISOString(),uptime:process.uptime()})}}function Ns(e){let t=process.env.NODE_ENV===`production`?new Map:null;return(n,r,i)=>{let a=n.headers[`accept-language`],o=`en`;if(a){let e=a.split(`,`)[0].split(`;`)[0].trim();e&&e.length>0&&(o=e)}if(n.dir=e.dir(o),n.language=o,n.languages=e.languages,t){let r=t.get(o);r||(r=e.getFixedT(o),t.set(o,r)),n.t=r}else n.t=e.getFixedT(o);i()}}var $={};import*as Ps from"@opentelemetry/api";n($,Ps),Fe(`@opentelemetry/instrumentation/hook.mjs`,import.meta.url);const Fs={name:process.env.APP_NAME||`appos`,version:process.env.APP_VERSION||`development`};new ct({resource:st({[ut]:Fs.name,[dt]:Fs.version}),spanProcessors:[new lt(new at({url:process.env.OTEL_EXPORTER_OTLP_ENDPOINT||`http://localhost:4318/v1/traces`,headers:process.env.OTEL_EXPORTER_OTLP_HEADERS?JSON.parse(process.env.OTEL_EXPORTER_OTLP_HEADERS):void 0}))],instrumentations:[it({"@opentelemetry/instrumentation-fs":{enabled:!1},"@opentelemetry/instrumentation-dns":{enabled:!1}}),new ot({logHook:(e,t)=>{t[`service.name`]=Fs.name}})]}).start();const Is=`cf-ipcountry`;function Ls(e,t){t?.injectCountry&&!e.headers[Is]&&(e.headers[Is]=t.injectCountry);let n=e.headers[`x-forwarded-for`],r;r=typeof n==`string`?n.split(`,`)[0].trim():Array.isArray(n)&&n.length>0?n[0].split(`,`)[0].trim():e.socket.remoteAddress||``;let i=e.headers[`user-agent`]||``,a=e.headers[Is]||``;return{ipAddress:r,userAgent:i,country:a}}function Rs(e,t){let n;try{n=$.trace.getTracer(`request-logger`)}catch(t){e.warn({error:t},`Failed to initialize OpenTelemetry tracer`),n=null}return(r,i,a)=>{let o=Ls(r,t);r.metadata=o;let s=Date.now(),c=null,l;if(n)try{c=n.startSpan(`${r.method} ${r.path}`,{kind:$.SpanKind.SERVER,attributes:{"http.method":r.method,"http.url":r.url,"http.target":r.path,"http.host":(typeof r.headers.host==`string`?r.headers.host:r.headers[`:authority`])||`unknown`,"http.scheme":r.protocol,"http.user_agent":o.userAgent||`unknown`,"http.client_ip":o.ipAddress,"http.client_country":o.country}}),l=c.spanContext().traceId}catch(t){e.warn({error:t},`Failed to create OpenTelemetry span`),c=null,l=crypto.randomUUID()}else e.info(`OpenTelemetry tracer not available, skipping span creation`),c=null,l=crypto.randomUUID();let u=c?$.trace.setSpan($.context.active(),c):$.context.active(),d=(e=>e.startsWith(`/@`)||e.startsWith(`/node_modules/`)||e.startsWith(`/assets/`)||e.startsWith(`/public/`)||e.match(/\.(js|css|ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot|map)$/)||e.includes(`/locales/`)||e.endsWith(`.ts`)||e.endsWith(`.tsx`)||e.endsWith(`.json`))(r.path);i.setHeader(`X-Request-Id`,l),r.requestId=l,i.on(`finish`,()=>{let t=Date.now()-s;if(c)try{c.setAttributes({"http.status_code":i.statusCode,"http.response_content_length":i.get(`content-length`)||0}),i.statusCode>=400?c.setStatus({code:$.SpanStatusCode.ERROR,message:`HTTP ${i.statusCode}`}):c.setStatus({code:$.SpanStatusCode.OK}),c.end()}catch(t){e.warn({error:t},`Failed to update OpenTelemetry span`)}d||$.context.with(u,()=>{e.info({requestId:l,method:r.method,url:r.path,status:i.statusCode,duration:`${t}ms`},`Request completed`)})}),i.on(`close`,()=>{if(!(i.writableEnded||i.finished)){let t=Date.now()-s;if(c)try{c.setStatus({code:$.SpanStatusCode.ERROR,message:`Request closed unexpectedly`}),c.end()}catch(t){e.warn({error:t},`Failed to update OpenTelemetry span`)}d||$.context.with(u,()=>{e.warn({requestId:l,method:r.method,url:r.path,duration:`${t}ms`},`Request closed unexpectedly`)})}});let f=a;a=t=>{if(t){let n=Date.now()-s;if(c)try{c.recordException(t),c.setStatus({code:$.SpanStatusCode.ERROR,message:t instanceof Error?t.message:String(t)}),c.end()}catch(t){e.warn({error:t},`Failed to record exception in span`)}d||$.context.with(u,()=>{e.error({requestId:l,method:r.method,url:r.path,status:i.statusCode||500,duration:`${n}ms`,error:t instanceof Error?t.message:String(t)},`Request failed`)})}f(t)},$.context.with(u,()=>a())}}function zs(e,t){return(n,r,i)=>{if(t()){e.info({url:n.url,method:n.method},`Rejecting request during shutdown`),r.status(503).set(`Connection`,`close`).json({error:`Server is shutting down`});return}i()}}function Bs(e,t=3e4){return(n,r,i)=>{let a=!1,o=setTimeout(()=>{a=!0,e.warn({url:n.url,method:n.method,timeout:t},`Request timeout`),r.headersSent||r.status(408).json({error:`Request timeout`}),r.removeListener(`finish`,s),r.removeListener(`close`,s)},t),s=()=>{a||clearTimeout(o)};r.on(`finish`,s),r.on(`close`,s),i()}}function Vs(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Hs(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function Us(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const Ws=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function Gs(e){return Array.from(e.match(Ws)??[])}function Ks(e){let t=Gs(e);if(t.length===0)return``;let[n,...r]=t;return`${n.toLowerCase()}${r.map(e=>Us(e)).join(``)}`}function qs(e){return Number.isSafeInteger(e)&&e>=0}function Js(e){return Ks(Je(e,`.ts`).replace(/^\d+_/,``))}async function Ys(e,t,n){try{await Ve.access(e)}catch{return}let r=[];for await(let t of Ue(`${e}/**/*.${De}`))!t.endsWith(`.test.ts`)&&!t.endsWith(`.spec.ts`)&&!t.endsWith(`.test.js`)&&!t.endsWith(`.spec.js`)&&r.push(t);r.sort((e,t)=>Je(e).localeCompare(Je(t)));for(let e of r)try{let r=(await import(e)).default;if(r&&typeof r.handler==`function`){let i=r.name??Js(e);t.logger.debug({name:i,file:e},`Loading user middleware`),n.use(r.handler(t))}else t.logger.warn({file:e},`Middleware file missing default export with handler function`)}catch(n){throw t.logger.error({file:e,error:n instanceof Error?n.message:n},`Failed to load middleware`),n}}
|
|
67
67
|
/**
|
|
68
68
|
* @react-router/remix-routes-option-adapter v7.11.0
|
|
69
69
|
*
|
|
@@ -76,4 +76,4 @@ var ao=r(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnPr
|
|
|
76
76
|
*/
|
|
77
77
|
var Xs=r(((e,n)=>{var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!c.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),f=e=>u(i({},`__esModule`,{value:!0}),e),p={};l(p,{remixRoutesOptionAdapter:()=>b}),n.exports=f(p);function m(e,t=`root`){let n={};for(let t in e){let r=e[t];n[t]={id:r.id,file:r.file,path:r.path,index:r.index,caseSensitive:r.caseSensitive}}let r=[];for(let i in n){let a=n[i],o=e[a.id].parentId;if(o===t)r.push(a);else{let e=o&&n[o];e&&(e.children=e.children||[],e.children.push(a))}}return r}var h=d(t(`path`));function g(e){return e.replaceAll(h.default.win32.sep,`/`)}var _=e=>{let t=Object.create(null),n=[],r=!1;return e((e,i,a,o)=>{if(r)throw Error("You tried to define routes asynchronously but started defining routes before the async work was done. Please await all async data before calling `defineRoutes()`");let s;typeof a==`function`?(s={},o=a):s=a||{};let c={path:e||void 0,index:s.index?!0:void 0,caseSensitive:s.caseSensitive?!0:void 0,id:s.id||v(i),parentId:n.length>0?n[n.length-1].id:`root`,file:i};if(c.id in t)throw Error(`Unable to define routes with duplicate route id: "${c.id}"`);t[c.id]=c,o&&(n.push(c),o(),n.pop())}),r=!0,t};function v(e){return g(y(e))}function y(e){return e.replace(/\.[a-z0-9]+$/i,``)}async function b(e){return m(await e(_))}}));function Zs(e){return e!=null&&typeof e!=`function`&&qs(e.length)}function Qs(e){return typeof e==`object`&&!!e&&Hs(e)===`[object Arguments]`}function $s(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function ec(e){return Vs(e)}function tc(e){if(e==null)return!0;if(Zs(e))return typeof e.splice!=`function`&&typeof e!=`string`&&(typeof Buffer>`u`||!Buffer.isBuffer(e))&&!ec(e)&&!Qs(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return $s(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var nc=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.range=e.balanced=void 0,e.balanced=(n,r,i)=>{let a=n instanceof RegExp?t(n,i):n,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&(0,e.range)(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}};let t=(e,t)=>{let n=t.match(e);return n?n[0]:null};e.range=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s}})),rc=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.expand=x;let t=nc(),n=`\0SLASH`+Math.random()+`\0`,r=`\0OPEN`+Math.random()+`\0`,i=`\0CLOSE`+Math.random()+`\0`,a=`\0COMMA`+Math.random()+`\0`,o=`\0PERIOD`+Math.random()+`\0`,s=new RegExp(n,`g`),c=new RegExp(r,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=/\\\\/g,p=/\\{/g,m=/\\}/g,h=/\\,/g,g=/\\./g;function _(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function v(e){return e.replace(f,n).replace(p,r).replace(m,i).replace(h,a).replace(g,o)}function y(e){return e.replace(s,`\\`).replace(c,`{`).replace(l,`}`).replace(u,`,`).replace(d,`.`)}function b(e){if(!e)return[``];let n=[],r=(0,t.balanced)(`{`,`}`,e);if(!r)return e.split(`,`);let{pre:i,body:a,post:o}=r,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=b(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function x(e){return e?(e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),E(v(e),!0).map(y)):[]}function S(e){return`{`+e+`}`}function C(e){return/^-?0\d/.test(e)}function w(e,t){return e<=t}function T(e,t){return e>=t}function E(e,n){let r=[],a=(0,t.balanced)(`{`,`}`,e);if(!a)return[e];let o=a.pre,s=a.post.length?E(a.post,!1):[``];if(/\$$/.test(a.pre))for(let e=0;e<s.length;e++){let t=o+`{`+a.body+`}`+s[e];r.push(t)}else{let t=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),l=t||c,u=a.body.indexOf(`,`)>=0;if(!l&&!u)return a.post.match(/,(?!,).*\}/)?(e=a.pre+`{`+a.body+i+a.post,E(e)):[e];let d;if(l)d=a.body.split(/\.\./);else if(d=b(a.body),d.length===1&&d[0]!==void 0&&(d=E(d[0],!1).map(S),d.length===1))return s.map(e=>a.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=_(d[0]),t=_(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.abs(_(d[2])):1,i=w;t<e&&(r*=-1,i=T);let a=d.some(C);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,E(d[e],!1))}for(let e=0;e<f.length;e++)for(let t=0;t<s.length;t++){let i=o+f[e]+s[t];(!n||l||i)&&r.push(i)}}return r}})),ic=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertValidPattern=void 0,e.assertValidPattern=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)}})),ac=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseClass=void 0;let t={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},n=e=>e.replace(/[[\]\\-]/g,`\\$&`),r=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),i=e=>e.join(``);e.parseClass=(e,a)=>{let o=a;if(e.charAt(o)!==`[`)throw Error(`not in a brace expression`);let s=[],c=[],l=o+1,u=!1,d=!1,f=!1,p=!1,m=o,h=``;WHILE:for(;l<e.length;){let r=e.charAt(l);if((r===`!`||r===`^`)&&l===o+1){p=!0,l++;continue}if(r===`]`&&u&&!f){m=l+1;break}if(u=!0,r===`\\`&&!f){f=!0,l++;continue}if(r===`[`&&!f){for(let[n,[r,i,a]]of Object.entries(t))if(e.startsWith(n,l)){if(h)return[`$.`,!1,e.length-o,!0];l+=n.length,a?c.push(r):s.push(r),d||=i;continue WHILE}}if(f=!1,h){r>h?s.push(n(h)+`-`+n(r)):r===h&&s.push(n(r)),h=``,l++;continue}if(e.startsWith(`-]`,l+1)){s.push(n(r+`-`)),l+=2;continue}if(e.startsWith(`-`,l+1)){h=r,l+=2;continue}s.push(n(r)),l++}if(m<l)return[``,!1,0,!1];if(!s.length&&!c.length)return[`$.`,!1,e.length-o,!0];if(c.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!p)return[r(s[0].length===2?s[0].slice(-1):s[0]),!1,m-o,!1];let g=`[`+(p?`^`:``)+i(s)+`]`,_=`[`+(p?``:`^`)+i(c)+`]`;return[s.length&&c.length?`(`+g+`|`+_+`)`:s.length?g:_,d,m-o,!0]}})),oc=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unescape=void 0,e.unescape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`):t?e.replace(/\[([^\/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,`$1$2`).replace(/\\([^\/{}])/g,`$1`)})),sc=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AST=void 0;let t=ac(),n=oc(),r=new Set([`!`,`?`,`+`,`*`,`@`]),i=e=>r.has(e),a=`(?!\\.)`,o=new Set([`[`,`.`]),s=new Set([`..`,`.`]),c=new Set(`().*{}+?[]^$\\!`),l=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),u=`[^/]`,d=u+`*?`,f=u+`+?`;e.AST=class e{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...t){for(let n of t)if(n!==``){if(typeof n!=`string`&&!(n instanceof e&&n.#i===this))throw Error(`invalid part: `+n);this.#r.push(n)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let t=this.#i;for(let n=0;n<this.#a;n++){let r=t.#r[n];if(!(r instanceof e&&r.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(t){let n=new e(this.type,t);for(let e of this.#r)n.copyIn(e);return n}static#f(t,n,r,a){let o=!1,s=!1,c=-1,l=!1;if(n.type===null){let u=r,d=``;for(;u<t.length;){let r=t.charAt(u++);if(o||r===`\\`){o=!o,d+=r;continue}if(s){u===c+1?(r===`^`||r===`!`)&&(l=!0):r===`]`&&!(u===c+2&&l)&&(s=!1),d+=r;continue}else if(r===`[`){s=!0,c=u,l=!1,d+=r;continue}if(!a.noext&&i(r)&&t.charAt(u)===`(`){n.push(d),d=``;let i=new e(r,n);u=e.#f(t,i,u,a),n.push(i);continue}d+=r}return n.push(d),u}let u=r+1,d=new e(null,n),f=[],p=``;for(;u<t.length;){let r=t.charAt(u++);if(o||r===`\\`){o=!o,p+=r;continue}if(s){u===c+1?(r===`^`||r===`!`)&&(l=!0):r===`]`&&!(u===c+2&&l)&&(s=!1),p+=r;continue}else if(r===`[`){s=!0,c=u,l=!1,p+=r;continue}if(i(r)&&t.charAt(u)===`(`){d.push(p),p=``;let n=new e(r,d);d.push(n),u=e.#f(t,n,u,a);continue}if(r===`|`){d.push(p),p=``,f.push(d),d=new e(null,n);continue}if(r===`)`)return p===``&&n.#r.length===0&&(n.#u=!0),d.push(p),p=``,n.push(...f,d),u;p+=r}return n.type=null,n.#t=void 0,n.#r=[t.substring(r-1)],u}static fromGlob(t,n={}){let r=new e(null,void 0,n);return e.#f(t,r,0,n),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(t){let r=t??!!this.#c.dot;if(this.#e===this&&this.#d(),!this.type){let i=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),c=this.#r.map(n=>{let[r,a,o,s]=typeof n==`string`?e.#m(n,this.#t,i):n.toRegExpSource(t);return this.#t=this.#t||o,this.#n=this.#n||s,r}).join(``),l=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&s.has(this.#r[0]))){let e=o,n=r&&e.has(c.charAt(0))||c.startsWith(`\\.`)&&e.has(c.charAt(2))||c.startsWith(`\\.\\.`)&&e.has(c.charAt(4)),i=!r&&!t&&e.has(c.charAt(0));l=n?`(?!(?:^|/)\\.\\.?(?:$|/))`:i?a:``}let u=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(u=`(?:$|\\/)`),[l+c+u,(0,n.unescape)(c),this.#t=!!this.#t,this.#n]}let i=this.type===`*`||this.type===`+`,c=this.type===`!`?`(?:(?!(?:`:`(?:`,l=this.#p(r);if(this.isStart()&&this.isEnd()&&!l&&this.type!==`!`){let e=this.toString();return this.#r=[e],this.type=null,this.#t=void 0,[e,(0,n.unescape)(this.toString()),!1,!1]}let u=!i||t||r?``:this.#p(!0);u===l&&(u=``),u&&(l=`(?:${l})(?:${u})*?`);let p=``;if(this.type===`!`&&this.#u)p=(this.isStart()&&!r?a:``)+f;else{let e=this.type===`!`?`))`+(this.isStart()&&!r&&!t?a:``)+d+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&u?`)`:this.type===`*`&&u?`)?`:`)${this.type}`;p=c+l+e}return[p,(0,n.unescape)(l),this.#t=!!this.#t,this.#n]}#p(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#m(e,r,i=!1){let a=!1,o=``,s=!1;for(let n=0;n<e.length;n++){let p=e.charAt(n);if(a){a=!1,o+=(c.has(p)?`\\`:``)+p;continue}if(p===`\\`){n===e.length-1?o+=`\\\\`:a=!0;continue}if(p===`[`){let[i,a,c,l]=(0,t.parseClass)(e,n);if(c){o+=i,s||=a,n+=c-1,r||=l;continue}}if(p===`*`){o+=i&&e===`*`?f:d,r=!0;continue}if(p===`?`){o+=u,r=!0;continue}o+=l(p)}return[o,(0,n.unescape)(e),!!r,s]}}})),cc=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.escape=void 0,e.escape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`)})),lc=r((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;let t=rc(),n=ic(),r=sc(),i=cc(),a=oc();e.minimatch=(e,t,r={})=>((0,n.assertValidPattern)(t),!r.nocomment&&t.charAt(0)===`#`?!1:new j(t,r).match(e));let o=/^\*+([^+@!?\*\[\(]*)$/,s=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),c=e=>t=>t.endsWith(e),l=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),u=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),d=/^\*+\.\*+$/,f=e=>!e.startsWith(`.`)&&e.includes(`.`),p=e=>e!==`.`&&e!==`..`&&e.includes(`.`),m=/^\.\*+$/,h=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),g=/^\*+$/,_=e=>e.length!==0&&!e.startsWith(`.`),v=e=>e.length!==0&&e!==`.`&&e!==`..`,y=/^\?+([^+@!?\*\[\(]*)?$/,b=([e,t=``])=>{let n=w([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},x=([e,t=``])=>{let n=T([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},S=([e,t=``])=>{let n=T([e]);return t?e=>n(e)&&e.endsWith(t):n},C=([e,t=``])=>{let n=w([e]);return t?e=>n(e)&&e.endsWith(t):n},w=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},T=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},E=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,D={win32:{sep:`\\`},posix:{sep:`/`}};e.sep=E===`win32`?D.win32.sep:D.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol(`globstar **`),e.minimatch.GLOBSTAR=e.GLOBSTAR,e.filter=(t,n={})=>r=>(0,e.minimatch)(r,t,n),e.minimatch.filter=e.filter;let O=(e,t={})=>Object.assign({},e,t);e.defaults=t=>{if(!t||typeof t!=`object`||!Object.keys(t).length)return e.minimatch;let n=e.minimatch;return Object.assign((e,r,i={})=>n(e,r,O(t,i)),{Minimatch:class extends n.Minimatch{constructor(e,n={}){super(e,O(t,n))}static defaults(e){return n.defaults(O(t,e)).Minimatch}},AST:class extends n.AST{constructor(e,n,r={}){super(e,n,O(t,r))}static fromGlob(e,r={}){return n.AST.fromGlob(e,O(t,r))}},unescape:(e,r={})=>n.unescape(e,O(t,r)),escape:(e,r={})=>n.escape(e,O(t,r)),filter:(e,r={})=>n.filter(e,O(t,r)),defaults:e=>n.defaults(O(t,e)),makeRe:(e,r={})=>n.makeRe(e,O(t,r)),braceExpand:(e,r={})=>n.braceExpand(e,O(t,r)),match:(e,r,i={})=>n.match(e,r,O(t,i)),sep:n.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults,e.braceExpand=(e,r={})=>((0,n.assertValidPattern)(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,t.expand)(e)),e.minimatch.braceExpand=e.braceExpand,e.makeRe=(e,t={})=>new j(e,t).makeRe(),e.minimatch.makeRe=e.makeRe,e.match=(e,t,n={})=>{let r=new j(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},e.minimatch.match=e.match;let k=/[?*]|[+@!]\(.*?\)|\[|\]/,A=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var j=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,n.assertValidPattern)(e),t||={},this.options=t,this.pattern=e,this.platform=t.platform||E,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!k.test(e[2]))&&!k.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(t,n,r=!1){let i=this.options;if(this.isWindows){let e=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),r=!e&&t[0]===``&&t[1]===``&&t[2]===`?`&&/^[a-z]:$/i.test(t[3]),i=typeof n[0]==`string`&&/^[a-z]:$/i.test(n[0]),a=!i&&n[0]===``&&n[1]===``&&n[2]===`?`&&typeof n[3]==`string`&&/^[a-z]:$/i.test(n[3]),o=r?3:e?0:void 0,s=a?3:i?0:void 0;if(typeof o==`number`&&typeof s==`number`){let[e,r]=[t[o],n[s]];e.toLowerCase()===r.toLowerCase()&&(n[s]=e,s>o?n=n.slice(s):o>s&&(t=t.slice(o)))}}let{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug(`matchOne`,this,{file:t,pattern:n}),this.debug(`matchOne`,t.length,n.length);for(var o=0,s=0,c=t.length,l=n.length;o<c&&s<l;o++,s++){this.debug(`matchOne loop`);var u=n[s],d=t[o];if(this.debug(n,u,d),u===!1)return!1;if(u===e.GLOBSTAR){this.debug(`GLOBSTAR`,[n,u,d]);var f=o,p=s+1;if(p===l){for(this.debug(`** at the end`);o<c;o++)if(t[o]===`.`||t[o]===`..`||!i.dot&&t[o].charAt(0)===`.`)return!1;return!0}for(;f<c;){var m=t[f];if(this.debug(`
|
|
78
78
|
globstar while`,t,f,n,p,m),this.matchOne(t.slice(f),n.slice(p),r))return this.debug(`globstar found match!`,f,c,m),!0;if(m===`.`||m===`..`||!i.dot&&m.charAt(0)===`.`){this.debug(`dot detected!`,t,f,n,p);break}this.debug(`globstar swallow a segment, and continue`),f++}return!!(r&&(this.debug(`
|
|
79
|
-
>>> no match, partial?`,t,f,n,p),f===c))}let a;if(typeof u==`string`?(a=d===u,this.debug(`string match`,u,d,a)):(a=u.test(d),this.debug(`pattern match`,u,d,a)),!a)return!1}if(o===c&&s===l)return!0;if(o===c)return r;if(s===l)return o===c-1&&t[o]===``;throw Error(`wtf?`)}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,n.assertValidPattern)(t);let i=this.options;if(t===`**`)return e.GLOBSTAR;if(t===``)return``;let a,w=null;(a=t.match(g))?w=i.dot?v:_:(a=t.match(o))?w=(i.nocase?i.dot?u:l:i.dot?c:s)(a[1]):(a=t.match(y))?w=(i.nocase?i.dot?x:b:i.dot?S:C)(a):(a=t.match(d))?w=i.dot?p:f:(a=t.match(m))&&(w=h);let T=r.AST.fromGlob(t,this.options).toMMPattern();return w&&typeof T==`object`&&Reflect.defineProperty(T,`test`,{value:w}),T}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?`[^/]*?`:n.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,i=new Set(n.nocase?[`i`]:[]),a=t.map(t=>{let n=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(``))i.add(e);return typeof t==`string`?A(t):t===e.GLOBSTAR?e.GLOBSTAR:t._src});n.forEach((t,i)=>{let a=n[i+1],o=n[i-1];t!==e.GLOBSTAR||o===e.GLOBSTAR||(o===void 0?a!==void 0&&a!==e.GLOBSTAR?n[i+1]=`(?:\\/|`+r+`\\/)?`+a:n[i]=r:a===void 0?n[i-1]=o+`(?:\\/|\\/`+r+`)?`:a!==e.GLOBSTAR&&(n[i-1]=o+`(?:\\/|\\/`+r+`\\/)`+a,n[i+1]=e.GLOBSTAR))});let a=n.filter(t=>t!==e.GLOBSTAR);if(this.partial&&a.length>=1){let e=[];for(let t=1;t<=a.length;t++)e.push(a.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return a.join(`/`)}).join(`|`),[o,s]=t.length>1?[`(?:`,`)`]:[``,``];a=`^`+o+a+s+`$`,this.partial&&(a=`^(?:\\/|`+o+a.slice(1,-1)+s+`)$`),this.negate&&(a=`^(?!`+a+`).+$`);try{this.regexp=new RegExp(a,[...i].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}};e.Minimatch=j;var M=sc();Object.defineProperty(e,`AST`,{enumerable:!0,get:function(){return M.AST}});var N=cc();Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return N.escape}});var P=oc();Object.defineProperty(e,`unescape`,{enumerable:!0,get:function(){return P.unescape}}),e.minimatch.AST=r.AST,e.minimatch.Minimatch=j,e.minimatch.escape=i.escape,e.minimatch.unescape=a.unescape})),uc=r(((e,n)=>{var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!c.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),f=e=>u(i({},`__esModule`,{value:!0}),e),p={};l(p,{createRouteId:()=>N,createRoutePath:()=>D,default:()=>y,defaultVisitFiles:()=>M,flatRoutes:()=>y,getRouteInfo:()=>E,getRouteSegments:()=>k,isIndexRoute:()=>T,isRouteModuleFile:()=>C,normalizeSlashes:()=>P}),n.exports=f(p);var m=d(t(`fs`),1),h=lc(),g=d(t(`path`),1),_={appDir:`app`,routeDir:`routes`,basePath:`/`,paramPrefixChar:`$`,nestedDirectoryChar:`+`,routeRegex:/((\${nestedDirectoryChar}[\/\\][^\/\\:?*]+)|[\/\\]((index|route|layout|page)|(_[^\/\\:?*]+)|([^\/\\:?*]+\.route)))\.(ts|tsx|js|jsx|md|mdx)$$/},v=void 0;function y(e,t,n={}){let r=b(n.appDir??_.appDir,n.ignoredRouteFiles??[],{..._,...n,routeDir:e,defineRoutes:t});return Object.values(r).forEach(e=>{e.parentId===void 0&&(e.parentId=`root`)}),r}function b(e,t,n){let r=[];t&&!Array.isArray(t)?n=t:r=t??[],n||=_;let i=new Map,a=new Map,o=Array.isArray(n.routeDir)?n.routeDir:[n.routeDir??`routes`],s=n.defineRoutes??v;if(!s)throw Error(`You must provide a defineRoutes function`);let c=n.visitFiles??M,l=I(n.routeRegex??_.routeRegex,n.nestedDirectoryChar??_.nestedDirectoryChar);for(let t of o)c(g.join(e,t),e=>{if(!(r&&r.some(t=>(0,h.minimatch)(e,t,{dot:!0})))&&C(e,l)){let r=E(t,e,n);i.set(r.id,r),a.set(r.name,r);return}});Array.from(i.values()).forEach(e=>{e.parentId=O(e,a)});function u(e,t){let n=Array.from(i.values()).filter(e=>e.parentId===t),r=(t?i.get(t):void 0)?.path??`/`;for(let t of n){let n=t?.path?.slice(r.length)??``;if(n.startsWith(`/`)&&(n=n.slice(1)),t.index){if(Object.values(i).filter(e=>e.parentId===t.id).length>0)throw Error(`Child routes are not allowed in index routes. Please remove child routes of ${t.id}`);e(n,i.get(t.id).file,{index:!0})}else e(n,i.get(t.id).file,()=>{u(e,t.id)})}}return s(u)}var x=[`.js`,`.jsx`,`.ts`,`.tsx`,`.md`,`.mdx`],S=/\.server\.(ts|tsx|js|jsx|md|mdx)$/;function C(e,t){return e.includes(g.sep)?t.test(e)?!S.test(e):!1:x.includes(g.extname(e))}var w=(()=>{let e={};return t=>{if(t in e)return e[t];let n=new RegExp(t);return e[t]=n,n}})();function T(e,t){return w(`((^|[.]|[${t.nestedDirectoryChar.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`)}]\\/)(index|_index))(\\/[^\\/]+)?$|(\\/_?index\\/)`).test(e)}function E(e,t,n){let r=P(g.join(e,t)),i=N(r),a=i.slice(e.length+1),o=T(a,n),s=k(a,o,n.paramPrefixChar,n.nestedDirectoryChar);return{id:i,path:D(s,o,n),file:r,name:s.join(`/`),segments:s,index:o}}function D(e,t,n){let r=``,i=n.basePath??`/`,a=n.paramPrefixChar??`$`;t&&(e[e.length-1]=``);for(let t=0;t<e.length;t++){let n=e[t];if(!n.startsWith(`_`)){if(n.endsWith(`_`)&&(n=n.slice(0,-1)),n.includes(`[`)&&n.includes(`]`)){let e=``,t=0;for(let r of n)r===`[`&&t===0?t++:r===`]`&&t>0?t--:e+=r;n=e}n.startsWith(a)?n===a?r+=`/*`:r+=`/:${n.slice(1)}`:n.startsWith(`(${a}`)?r+=`/:${n.slice(2,n.length-1)}?`:n.startsWith(`(`)?r+=`/${n.slice(1,n.length-1)}?`:r+=`/${n}`}}return i!==`/`&&(r=i+r),r.endsWith(`/`)&&(r=r.slice(0,-1)),r||void 0}function O(e,t){let n=e.segments.slice(0,-1).join(`/`);for(;n;){if(t.has(n))return t.get(n).id;n=n.substring(0,n.lastIndexOf(`/`))}}function k(e,t,n=`$`,r=`+`){let i=[],a=0,o=``,s=`START`,c=`NORMAL`,l=!1,u=r.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`),d=RegExp(`${u}[/\\\\]`,`g`),f=RegExp(`${u}[/\\\\]`),p=`${u}/_\\.`;if(new RegExp(p).test(e)){let t=new RegExp(p,`g`);e=e.replace(t,`_${r}/`)}f.test(e)&&(e=e.replace(d,`.`),l=!0);let m=/\//.test(e);if((l&&m||!l)&&!e.endsWith(`.route`)){let t=e.lastIndexOf(`/`);t>=0&&(e=e.substring(0,t))}let h=e=>{e&&i.push(e)};for(;a<e.length;){let t=e[a];switch(s){case`START`:if(o.includes(n)&&!(o.startsWith(n)||o.startsWith(`(${n}`)))throw Error(`Route params must start with prefix char ${n}: ${o}`);if(o.includes(`(`)&&!o.startsWith(`(`)&&!o.endsWith(`)`))throw Error(`Optional routes must start and end with parentheses: ${o}`);h(o),o=``,s=`PATH`;continue;case`PATH`:if(j(t)&&c===`NORMAL`){s=`START`;break}else t===`[`?c=`ESCAPE`:t===`]`&&(c=`NORMAL`);o+=t;break}a++}return h(o),i.at(-1)===`route`&&(i=i.slice(0,-1)),!t&&l&&i.at(-1)?.startsWith(`_`)&&(i=i.slice(0,-1)),i}var A=/[\/\\.]/;function j(e){return A.test(e)}function M(e,t,n=e){for(let r of m.readdirSync(e)){let i=g.resolve(e,r),a=m.statSync(i);a.isDirectory()?M(i,t,n):a.isFile()&&t(g.relative(n,i))}}function N(e){return P(F(e))}function P(e){return e.split(g.win32.sep).join(`/`)}function F(e){return e.replace(/\.[a-z0-9]+$/i,``)}var I=(e,t)=>(t=t.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`),new RegExp(e.source.replace("\\${nestedDirectoryChar}",`[${t}]`)))}))(),dc=Xs();const fc=e=>typeof e==`object`&&!!e&&`_zod`in e,pc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e))r[i]=t.addExample(a,[...n,i]);return r},mc=(e,t,n)=>{let{schema:r,examples:i,...a}=e,o=a;return fc(r)?o.schema=t.registry.addSchema(r,[...n,`schema`],{io:t.io,source:{type:`mediaType`}}):o.schema=r,i&&(o.examples=pc(i,t.registry,[...n,`examples`])),o},hc=(e,t,n)=>{let r={};for(let[i,a]of Object.entries(e))a&&(r[i]=mc(a,t,[...n,i]));return r},gc=(e,t,n)=>{let r=e._zod.def;switch(r.type){case`object`:return e;case`lazy`:return gc(r.getter(),t,n);case`pipe`:return gc(t===`input`?r.in:r.out,t,n)}throw Error(`Failed to unwrap ZodObject from type: ${e._zod.def.type} at ${n.join(` > `)}`)},_c=(e,t)=>t===`input`?e._zod.optin===void 0:e._zod.optout===void 0,vc=(e,t,n)=>{if(e){if(fc(e)){let r=gc(e,`output`,n),i={};for(let[e,a]of Object.entries(r._zod.def.shape))i[e]=t.addHeader(a,[...n,e]);return i}return e}},yc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e))r[i]=t.addLink(a,[...n,i]);return r},bc=(e,t,n)=>{if(!e)return;let r=[];for(let i of e){if(fc(i)){let e=t.addParameter(i,[...n,`parameters`]);r.push(e);continue}r.push(i)}return r},xc=(e,t,n)=>{if(!e)return;let r=[];for(let[i,a]of Object.entries(e??{})){let e=gc(a,`input`,n);for(let[a,o]of Object.entries(e._zod.def.shape)){let e=t.addParameter(o,[...n,i,a],{location:{in:i,name:a}});r.push(e)}}return r},Sc=e=>e.startsWith(`x-`),Cc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e)){if(Sc(i)){r[i]=a;continue}r[i]=t.addCallback(a,[...n,i])}return r},wc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e))if(a){if(Sc(i)){r[i]=a;continue}if(`$ref`in a){r[i]=a;continue}r[i]=t.addResponse(a,[...n,i])}return r},Tc=(e,t,n)=>{let{parameters:r,requestParams:i,requestBody:a,responses:o,callbacks:s,...c}=e,l=c,u=bc(r,t,[...n,`parameters`]),d=xc(i,t,[...n,`requestParams`]);(d||u)&&(l.parameters=[...d??[],...u??[]]);let f=a&&t.addRequestBody(a,n);f&&(l.requestBody=f);let p=wc(o,t,[...n,`responses`]);p&&(l.responses=p);let m=Cc(s,t,[...n,`callbacks`]);return m&&(l.callbacks=m),l},Ec=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e)){if(Sc(i)){r[i]=a;continue}r[i]=t.addPathItem(a,[...n,i])}return r},Dc=[`3.0.0`,`3.0.1`,`3.0.2`,`3.0.3`,`3.1.0`,`3.1.1`],Oc=(e,t)=>Dc.indexOf(e)>=Dc.indexOf(t),kc=e=>{let t=e.zodSchema._zod.def;switch(t.type){case`bigint`:e.jsonSchema.type=`integer`,e.jsonSchema.format=`int64`;break;case`union`:{if(`discriminator`in t&&typeof t.discriminator==`string`){e.jsonSchema.oneOf??=e.jsonSchema.anyOf,delete e.jsonSchema.anyOf,e.jsonSchema.type=`object`,e.jsonSchema.discriminator={propertyName:t.discriminator};let n={};for(let[r,i]of Object.entries(e.jsonSchema.oneOf)){let a=i.$ref;if(!a){delete e.jsonSchema.discriminator;return}let o=t.options[Number(r)]._zod.propValues?.[t.discriminator];if(!o?.size)return;for(let e of[...o??[]]){if(typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return;n[String(e)]=a}}e.jsonSchema.discriminator.mapping=n}let n=je.get(e.zodSchema);typeof n?.unionOneOf==`boolean`&&(n.unionOneOf&&(e.jsonSchema.oneOf=e.jsonSchema.anyOf,delete e.jsonSchema.anyOf),delete e.jsonSchema.unionOneOf);break}case`date`:e.jsonSchema.type=`string`;break;case`literal`:if(t.values.includes(void 0))break;break;case`undefined`:e.jsonSchema.not={};break}},Ac=(e,t)=>{if(Object.keys(e.jsonSchema).length)return;let n=e.zodSchema._zod.def,r=t.allowEmptySchema?.[n.type];if(!(r===!0||r?.[e.io])){switch(n.type){case`optional`:Ac({...e,zodSchema:n.innerType},t);return;case`any`:return;case`unknown`:return;case`pipe`:if(e.io===`output`)throw Error(`Zod transform found at ${e.path.join(` > `)} are not supported in output schemas. Please use \`.overwrite()\` or wrap the schema in a \`.pipe()\` or assign it manual metadata with \`.meta()\``);return;case`transform`:if(e.io===`output`)return;break;case`literal`:if(n.values.includes(void 0))throw Error(`Zod literal at ${e.path.join(` > `)} cannot include \`undefined\` as a value. Please use \`z.undefined()\` or \`.optional()\` instead.`);return}throw Error(`Zod schema of type \`${n.type}\` at ${e.path.join(` > `)} cannot be represented in OpenAPI. Please assign it metadata with \`.meta()\``)}},jc=(e,t,n,r)=>{let i=new Map;if(n.io===`input`)return i;let a=new Map,o=new Map;for(let[t,n]of Object.entries(e)){let e=JSON.stringify(n),i=RegExp(`"${r}([^"]+)"`,`g`),s=e.matchAll(i),c=new Set;for(let e of s){let n=e[1];n!==t&&c.add(n)}o.set(t,e),a.set(t,{dependencies:c})}for(let[r]of o){if(!n.registry.components.schemas.ids.get(r)||Mc(a,o,n.registry,r))continue;let s=t.get(r)??`${r}${n.opts.outputIdSuffix??`Output`}`;i.set(r,s),e[s]=e[r],delete e[r]}return i},Mc=(e,t,n,r,i=new Set)=>{if(i.has(r))return!0;let a=e.get(r);if(a.pure!==void 0)return a.pure;let o=t.get(r),s=n.components.schemas.ids.get(r);if(s&&o!==JSON.stringify(s))return a.pure=!1,!1;i.add(r);let c=[...a.dependencies].every(r=>Mc(e,t,n,r,new Set(i)));return a.pure=c,c},Nc=[`param`,`header`,`unusedIO`,`override`,`outputId`],Pc=e=>{Nc.forEach(t=>{delete e[t]})},Fc=e=>{delete e.$schema,delete e.id,delete e.$id},Ic=(e,t)=>{let n=t.opts.schemaRefPath??`#/components/schemas/`,r={};for(let[t,{zodType:n}]of Object.entries(e))r[t]=n;let i=Me();i.add(Ne(r),{id:`zodOpenApiCreateSchema`});for(let[e,{zodType:n}]of t.registry.components.schemas.manual)i.add(n,{id:e});let a=new Map,o=Oc(t.openapiVersion??`3.1.0`,`3.1.0`)?`$defs`:`definitions`,s=Ae(i,{override(e){let n=je.get(e.zodSchema);if(n?.outputId&&n?.id&&a.set(n.id,n.outputId),e.jsonSchema.$ref)return;let r={...e,io:t.io};kc(r),typeof t.opts.override==`function`&&t.opts.override(r),typeof n?.override==`function`&&(n.override(r),delete e.jsonSchema.override),typeof n?.override==`object`&&n.override!==null&&(Object.assign(e.jsonSchema,n.override),delete e.jsonSchema.override),Fc(e.jsonSchema),Pc(e.jsonSchema),Ac(r,t.opts)},io:t.io,unrepresentable:`any`,reused:t.opts.reused,cycles:t.opts.cycles,target:Oc(t.openapiVersion??`3.1.0`,`3.1.0`)?void 0:`openapi-3.0`,uri:e=>e===`__shared`?`#ZOD_OPENAPI/${e}`:`#ZOD_OPENAPI/__shared#/${o}/${e}`}),c=s.schemas.__shared?.[o]??{};s.schemas.__shared??={[o]:c};let l=new Map;for(let[e,r]of Object.entries(c))if(Fc(r),/^schema\d+$/.test(e)){let i=`__schema${t.registry.components.schemas.dynamicSchemaCount++}`;l.set(e,`"${n}${i}"`),i!==e&&(c[i]=r,delete c[e])}for(let[e]of t.registry.components.schemas.manual){let t=s.schemas[e];t&&Fc(t)}let u={},d=JSON.parse(JSON.stringify(s).replace(/"#ZOD_OPENAPI\/__shared#\/(?:\$defs|definitions)\/([^"]+)"/g,(e,r)=>l.get(r)||(t.registry.components.schemas.manual.get(r)&&(u[r]=!0),`"${n}${r}"`))),f=d.schemas.__shared?.[o]??{};d.schemas.__shared??={[o]:f};for(let[e]of t.registry.components.schemas.manual){let t=d.schemas[e];if(t&&u[e]){if(f[e])throw Error(`Component "${e}" is already registered as a component in the registry`);f[e]=t}}let p=jc(f,a,t,n);if(!p.size){let e=d.schemas.zodOpenApiCreateSchema?.properties;return delete d.schemas.zodOpenApiCreateSchema,delete d.schemas.__shared,{schemas:e,components:f,manual:d.schemas}}let m=JSON.parse(JSON.stringify(d).replace(RegExp(`"${n}([^"]+)"`,`g`),(e,t)=>{let r=p.get(t);return r?`"${n}${r}"`:`"${n}${t}"`})),h=m.schemas.zodOpenApiCreateSchema?.properties,g=m.schemas.__shared?.[o]??{};return delete m.schemas.zodOpenApiCreateSchema,delete m.schemas.__shared,{schemas:h,components:g,manual:m.schemas}},Lc=e=>{let t={components:{schemas:{dynamicSchemaCount:0,input:new Map,output:new Map,ids:new Map,manual:new Map},headers:{ids:new Map,seen:new WeakMap},requestBodies:{ids:new Map,seen:new WeakMap},responses:{ids:new Map,seen:new WeakMap},parameters:{ids:new Map,seen:new WeakMap},callbacks:{ids:new Map,seen:new WeakMap},pathItems:{ids:new Map,seen:new WeakMap},securitySchemes:{ids:new Map,seen:new WeakMap},links:{ids:new Map,seen:new WeakMap},examples:{ids:new Map,seen:new WeakMap}},addSchema:(e,n,r)=>{let i={};return t.components.schemas[r.io].set(n.join(` > `),{schemaObject:i,zodType:e,source:{path:n,...r?.source}}),i},addParameter:(e,n,r)=>{let i=t.components.parameters.seen.get(e);if(i)return i;let a=je.get(e),o=r?.location?.name??a?.param?.name,s=r?.location?.in??a?.param?.in;if(r?.location?.name&&a?.param?.name||r?.location?.in&&a?.param?.in)throw Error(`Parameter at ${n.join(` > `)} has both \`.meta({ param: { name, in } })\` and \`.meta({ param: { location: { in, name } } })\` information`);if(!o||!s)throw Error(`Parameter at ${n.join(` > `)} is missing \`.meta({ param: { name, in } })\` information`);let c=t.addSchema(e,[...n,s,o,`schema`],{io:`input`,source:{type:`parameter`,location:{in:s,name:o}}}),{id:l,examples:u,...d}=a?.param??{},f={in:s,name:o,schema:c,...d},p=pc(u,t,[...n,s,o,`examples`]);p&&(f.examples=p),_c(e,`input`)&&(f.required=!0),!f.description&&a?.description&&(f.description=a.description);let m=l??r?.manualId;if(m){if(t.components.parameters.ids.has(m))throw Error(`Schema "${m}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/parameters/${m}`};return t.components.parameters.seen.set(e,i),t.components.parameters.ids.set(m,f),r?.manualId?f:i}return r?.location?.name||r?.location?.in||t.components.parameters.seen.set(e,f),f},addHeader:(e,n,r)=>{let i=t.components.headers.seen.get(e);if(i)return i;let a=je.get(e),{id:o,...s}=a?.header??{},c=o??r?.manualId,l=s;if(_c(e,`output`)&&(l.required=!0),!l.description&&a?.description&&(l.description=a.description),l.schema=t.addSchema(e,[...n,`schema`],{io:`output`,source:{type:`header`}}),c){if(t.components.schemas.ids.has(c))throw Error(`Schema "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/headers/${c}`};return t.components.headers.ids.set(c,l),t.components.headers.seen.set(e,i),r?.manualId?l:i}return t.components.headers.seen.set(e,l),l},addRequestBody:(e,n,r)=>{let i=t.components.requestBodies.seen.get(e);if(i)return i;let{content:a,id:o,...s}=e,c={...s,content:hc(a,{registry:t,io:`input`},[...n,`content`])},l=o??r?.manualId;if(l){if(t.components.requestBodies.ids.has(l))throw Error(`RequestBody "${l}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/requestBodies/${l}`};return t.components.requestBodies.ids.set(l,c),t.components.requestBodies.seen.set(e,i),r?.manualId?c:i}return t.components.requestBodies.seen.set(e,c),c},addPathItem:(e,n,r)=>{let i=t.components.pathItems.seen.get(e);if(i)return i;let a={},{id:o,...s}=e,c=o??r?.manualId;for(let[e,r]of Object.entries(s)){if(Sc(e)){a[e]=r;continue}if(e===`get`||e===`put`||e===`post`||e===`delete`||e===`options`||e===`head`||e===`patch`||e===`trace`){a[e]=Tc(r,t,[...n,e]);continue}if(e===`parameters`){a[e]=bc(r,t,[...n,e]);continue}a[e]=r}if(c){if(t.components.pathItems.ids.has(c))throw Error(`PathItem "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/pathItems/${c}`};return t.components.pathItems.ids.set(c,a),t.components.pathItems.seen.set(e,i),r?.manualId?a:i}return t.components.pathItems.seen.set(e,a),a},addResponse:(e,n,r)=>{let i=t.components.responses.seen.get(e);if(i)return i;let{content:a,headers:o,links:s,id:c,...l}=e,u=l,d=vc(o,t,[...n,`headers`]);d&&(u.headers=d),a&&(u.content=hc(a,{registry:t,io:`output`},[...n,`content`])),s&&(u.links=yc(s,t,[...n,`links`]));let f=c??r?.manualId;if(f){if(t.components.responses.ids.has(f))throw Error(`Response "${f}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/responses/${f}`};return t.components.responses.ids.set(f,u),t.components.responses.seen.set(e,i),r?.manualId?u:i}return t.components.responses.seen.set(e,u),u},addCallback:(e,n,r)=>{let i=t.components.callbacks.seen.get(e);if(i)return i;let{id:a,...o}=e,s={};for(let[e,r]of Object.entries(o)){if(Sc(e)){s[e]=r;continue}s[e]=t.addPathItem(r,[...n,e])}let c=a??r?.manualId;if(c){if(t.components.callbacks.ids.has(c))throw Error(`Callback "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/callbacks/${c}`};return t.components.callbacks.ids.set(c,s),t.components.callbacks.seen.set(e,i),r?.manualId?s:i}return t.components.callbacks.seen.set(e,s),s},addSecurityScheme:(e,n,r)=>{let i=t.components.securitySchemes.seen.get(e);if(i)return i;let{id:a,...o}=e,s=o,c=a??r?.manualId;if(c){if(t.components.securitySchemes.ids.has(c))throw Error(`SecurityScheme "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/securitySchemes/${c}`};return t.components.securitySchemes.ids.set(c,s),t.components.securitySchemes.seen.set(e,i),r?.manualId?s:i}return t.components.securitySchemes.seen.set(e,s),s},addLink:(e,n,r)=>{let i=t.components.links.seen.get(e);if(i)return i;let{id:a,...o}=e,s=o,c=a??r?.manualId;if(c){if(t.components.links.ids.has(c))throw Error(`Link "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/links/${c}`};return t.components.links.ids.set(c,s),t.components.links.seen.set(e,i),r?.manualId?s:i}return t.components.links.seen.set(e,s),s},addExample:(e,n,r)=>{let i=t.components.examples.seen.get(e);if(i)return i;let{id:a,...o}=e,s=o,c=a??r?.manualId;if(c){if(t.components.examples.ids.has(c))throw Error(`Example "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/examples/${c}`};return t.components.examples.ids.set(c,s),t.components.examples.seen.set(e,i),r?.manualId?s:i}return t.components.examples.seen.set(e,s),s}};return Rc(e?.schemas,t),zc(e?.parameters,t),Bc(e?.headers,t),Vc(e?.responses,t),Wc(e?.pathItems,t),Hc(e?.requestBodies,t),Uc(e?.callbacks,t),Gc(e?.securitySchemes,t),Kc(e?.links,t),qc(e?.examples,t),t},Rc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){let e=je.get(r)?.id??n;t.components.schemas.manual.set(e,{input:{schemaObject:{}},output:{schemaObject:{}},zodType:r});continue}t.components.schemas.ids.set(n,r)}},zc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){let e=[`components`,`parameters`,n];t.addParameter(r,e,{manualId:n});continue}t.components.parameters.ids.set(n,r)}},Bc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){let e=[`components`,`headers`,n];t.addHeader(r,e,{manualId:n});continue}t.components.headers.ids.set(n,r)}},Vc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){let e=t.addResponse(r,[`components`,`responses`,n],{manualId:n});t.components.responses.ids.set(n,e),t.components.responses.seen.set(r,e)}},Hc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){t.addRequestBody(r,[`components`,`requestBodies`,n],{manualId:n});continue}t.components.requestBodies.ids.set(n,r)}},Uc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addCallback(r,[`components`,`callbacks`,n],{manualId:n})},Wc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addPathItem(r,[`components`,`pathItems`,n],{manualId:n})},Gc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addSecurityScheme(r,[`components`,`securitySchemes`,n],{manualId:n})},Kc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addLink(r,[`components`,`links`,n],{manualId:n})},qc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.components.examples.ids.set(n,r)},Jc=e=>{let{schemas:t,components:n,manual:r}=Ic(Object.fromEntries(e.registry.components.schemas[e.io]),e);for(let[t,r]of Object.entries(n))e.registry.components.schemas.ids.set(t,r);for(let[n,r]of Object.entries(t)){let t=e.registry.components.schemas[e.io].get(n);t&&Object.assign(t.schemaObject,r)}for(let[t,i]of Object.entries(r)){let r=e.registry.components.schemas.manual.get(t);r&&(n[t]&&(r[e.io].used=!0),Object.assign(r[e.io].schemaObject,i))}},Yc=e=>{for(let[t,n]of e.components.schemas.manual)if(!n.input.used){let r=n[je.get(n.zodType)?.unusedIO??`output`].schemaObject;e.components.schemas.ids.set(t,r)}},Xc=(e,t,n)=>{Jc({registry:e,io:`input`,opts:t,openapiVersion:n}),Jc({registry:e,io:`output`,opts:t,openapiVersion:n}),Yc(e);let r={};return e.components.schemas.ids.size>0&&(r.schemas=Object.fromEntries(e.components.schemas.ids)),e.components.headers.ids.size>0&&(r.headers=Object.fromEntries(e.components.headers.ids)),e.components.requestBodies.ids.size>0&&(r.requestBodies=Object.fromEntries(e.components.requestBodies.ids)),e.components.responses.ids.size>0&&(r.responses=Object.fromEntries(e.components.responses.ids)),e.components.parameters.ids.size>0&&(r.parameters=Object.fromEntries(e.components.parameters.ids)),e.components.callbacks.ids.size>0&&(r.callbacks=Object.fromEntries(e.components.callbacks.ids)),e.components.pathItems.ids.size>0&&(r.pathItems=Object.fromEntries(e.components.pathItems.ids)),e.components.securitySchemes.ids.size>0&&(r.securitySchemes=Object.fromEntries(e.components.securitySchemes.ids)),e.components.links.ids.size>0&&(r.links=Object.fromEntries(e.components.links.ids)),e.components.examples.ids.size>0&&(r.examples=Object.fromEntries(e.components.examples.ids)),r},Zc=(e,t={})=>{let{paths:n,webhooks:r,components:i,...a}=e,o=a,s=Lc(i),c=Ec(n,s,[`paths`]);c&&(o.paths=c);let l=Ec(r,s,[`webhooks`]);l&&(o.webhooks=l);let u=Xc(s,t,e.openapi);return Object.keys(u).length>0&&(o.components=u),o},Qc=Ze(Ce,`openapi`);function $c(e){return e.match(/^\/(v\d+)/)?.[1]}function el(e){return e.replace(/:(\w+)/g,`{$1}`)}function tl(e,t){let n=el(e),r={summary:t.summary,description:t.description};(t.request?.params||t.request?.query||t.request?.headers)&&(r.requestParams={},t.request.params&&(r.requestParams.path=t.request.params),t.request.query&&(r.requestParams.query=t.request.query),t.request.headers&&(r.requestParams.header=t.request.headers)),t.request?.body&&(r.requestBody={content:{"application/json":{schema:t.request.body}}}),r.responses={};for(let[e,n]of Object.entries(t.responses))r.responses[e]={description:n.description,content:{"application/json":{schema:n.content[`application/json`].schema}}};return{path:n,config:r}}function nl(e,t,n){let r={};for(let n of e){if(n.version!==t)continue;let e=n.path.replace(`/${t}`,``)||`/`;for(let t of n.openAPISpec){let{path:n,config:i}=tl(e,t);r[n]||(r[n]={}),r[n][t.method]=i}}return Zc({openapi:`3.1.0`,info:n?.info||{title:`API ${t.toUpperCase()}`,version:t.replace(`v`,``),description:`OpenAPI specification for ${t} API`},servers:n?.servers||[{url:`http://localhost:8000/${t}`,description:process.env.NODE_ENV===`production`?`Production server`:`Development server`}],paths:r})}async function rl(e){let t=Ze(Oe,Ee);try{await Ue(t)}catch(t){return e.logger.error({error:t},`OpenAPI routes directory not found`),[]}let n=await(0,dc.remixRoutesOptionAdapter)(e=>(0,uc.flatRoutes)(Ee,e,{appDir:Oe,ignoredRouteFiles:[`**/.*`,`**/*.{spec,test}.{ts,tsx}`,`**/*-????????.{js,ts}`]})),r=[];for(let[t,i]of Object.entries(n)){let t=Ze(Oe,i.file).replace(/\.ts$/,`.${De}`);try{let n=(await import(t)).default;if(!n||tc(n)||/\/openapi.(j|t)s$/.test(t))continue;if(!n?.handlers&&!n?.openAPISpec){e.logger.warn(`Missing default export with 'defineOpenAPI' for '${Oe}/${i.file}'`);continue}let a=`/${i.path}`;r.push({path:a,filePath:t,handlers:n.handlers,openAPISpec:n.openAPISpec,version:$c(a)})}catch(t){e.logger.error(t,`Error loading route ${i.file}:`)}}return r}function il(e,t){for(let n of t)for(let[t,r]of Object.entries(n.handlers))e[t.toLowerCase()](n.path,r)}async function al(e,t){let n=Ze(Oe,Ee,`${t}+/openapi.${De}`);try{let t=(await import(n)).default;return t?t(e):void 0}catch{return}}async function ol(e,t){let n=[...new Set(t.map(e=>e.version).filter(Boolean))];n.length>0&&await Ge(Qc,{recursive:!0});for(let r of n){let n=nl(t,r,await al(e,r));await qe(Xe(Qc,`${r}.json`),JSON.stringify(n,null,2),`utf-8`)}}async function sl(e){let t=await rl(e.locals.container);il(e,t),process.env.NODE_ENV!==`production`&&await ol(e.locals.container,t)}async function cl({container:e}){let t=!1,{host:n=`0.0.0.0`,port:r,timeout:i=3e4,bodyLimit:a=`1mb`,healthPath:o=`/health`,cors:s,helmet:c,rateLimit:l,redisUrl:u}=e.server,d=rt();d.disable(`x-powered-by`),d.locals.container=e;let f=null;if(u&&l)try{f=(0,ks.createClient)({url:u}),f.on(`error`,t=>{e.logger.error({error:t.message},`Redis client error`)}),await f.connect(),e.logger.info(`Connected to Redis for rate limiting`)}catch(t){e.logger.error({error:t instanceof Error?t.message:t},`Failed to connect to Redis, falling back to in-memory rate limiting`),f=null}if(d.use(zs(e.logger,()=>t),Bs(e.logger,i),Rs(e.logger),Ms(o)),c!==void 0&&d.use(ws(c)),s!==void 0&&d.use((0,vo.default)(s)),l)for(let[e,t]of l.entries()){let n=Vo({windowMs:t.windowMs??60*1e3,limit:t.limit??100,standardHeaders:t.standardHeaders??`draft-8`,legacyHeaders:t.legacyHeaders??!1,skip:t.skip,keyGenerator:t.keyGenerator,handler:t.handler,message:t.message,statusCode:t.statusCode,requestPropertyName:t.requestPropertyName,skipFailedRequests:t.skipFailedRequests,skipSuccessfulRequests:t.skipSuccessfulRequests,requestWasSuccessful:t.requestWasSuccessful,validate:t.validate,store:f?new Os({sendCommand:(...e)=>f.sendCommand(e),prefix:`rl:${e}:`}):t.store});d.use(n)}if(d.use(Ns(e.i18n),rt.json({limit:a}),rt.urlencoded({extended:!0,limit:a})),await Ys(Xe(process.cwd(),Oe,we),e,d),d.get(`/`,(t,n)=>{n.json({message:`${e.config.APP_NAME} server is running.`})}).all(`${e.auth.options.basePath}/*`,io(e.auth)),await sl(d),d.use(rt.static(Ze(Ce))),process.env.NODE_ENV!==`production`){let{defineYouchErrorHandler:t}=await import(`./youch-handler-Ch5yf6im.mjs`);d.use(t(e.logger))}else d.use(js(e.logger));return{app:d,host:n,port:r,async start(){await new Promise((e,t)=>{try{d.listen(r,n,()=>{e()})}catch(e){t(e)}})},async close(){if(t=!0,d.uwsApp.close(),f)try{await f.destroy()}catch(t){e.logger.warn({error:t instanceof Error?t.message:t},`Error disconnecting from Redis`)}}}}let ll=[],ul=Fe();function dl(){ll=[],ul=Fe()}function fl(e){return async t=>{let n=await t(),r=async e=>{let t=new URL(e.poolConfig.connectionString||`postgres://postgres:postgres@localhost:5432/test`),n=await qa({connectionString:t.toString(),logger:ul,name:t.pathname.slice(1)||`test`,schema:e.schema??{},relations:e.relations??{}});return ll.push(n.cleanUp),n.db},i=e=>{let t=Be(Xe(Je(),`test-storage-`)),r={};for(let n of Object.keys(e.disks||{})){let e=Xe(t,n);ze(e,{recursive:!0}),r[n]={location:e}}return ll.push(()=>Ke(t,{recursive:!0,force:!0})),n.defineStorage({database:e.database,default:e.default,disks:r})};return{...n,defineDatabase:e?.defineDatabase??r,defineStorage:e?.defineStorage??i,defineCache:e?.defineCache??(()=>Fe()),defineLogger:e?.defineLogger??(async()=>ul),defineMailer:e?.defineMailer??(async()=>Fe()),defineEventBus:e?.defineEventBus??(()=>Pe()),defineAuth:e?.defineAuth??(()=>Pe()),defineI18n:e?.defineI18n??(async()=>Fe())}}}function pl(e){let t=e.address?.bind(e);return e.address=()=>{let e=t?.();return e&&e.port===void 0?null:e},e.close||=t=>{e.uwsApp&&e.uwsApp.close(),t?.()},e}function ml(e){return(0,ji.default)(pl(e))}function hl(e,t){let n={...e};for(let r of Object.keys(t)){let i=t[r],a=e[r];i!==void 0&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof a==`object`&&a&&!Array.isArray(a)?n[r]=hl(a,i):i!==void 0&&(n[r]=i)}return n}function gl(e,t){return i.extend({container:async({},n)=>{dl();let r=await e();await n(t?hl(r,t):r);for(let e of ll.reverse())await e()},app:async({container:e},t)=>{await t((await cl({container:e})).app)}})}export{fl as defineApiMocks,gl as defineServerTest,qa as defineTestDatabase,ml as request};
|
|
79
|
+
>>> no match, partial?`,t,f,n,p),f===c))}let a;if(typeof u==`string`?(a=d===u,this.debug(`string match`,u,d,a)):(a=u.test(d),this.debug(`pattern match`,u,d,a)),!a)return!1}if(o===c&&s===l)return!0;if(o===c)return r;if(s===l)return o===c-1&&t[o]===``;throw Error(`wtf?`)}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,n.assertValidPattern)(t);let i=this.options;if(t===`**`)return e.GLOBSTAR;if(t===``)return``;let a,w=null;(a=t.match(g))?w=i.dot?v:_:(a=t.match(o))?w=(i.nocase?i.dot?u:l:i.dot?c:s)(a[1]):(a=t.match(y))?w=(i.nocase?i.dot?x:b:i.dot?S:C)(a):(a=t.match(d))?w=i.dot?p:f:(a=t.match(m))&&(w=h);let T=r.AST.fromGlob(t,this.options).toMMPattern();return w&&typeof T==`object`&&Reflect.defineProperty(T,`test`,{value:w}),T}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?`[^/]*?`:n.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,i=new Set(n.nocase?[`i`]:[]),a=t.map(t=>{let n=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(``))i.add(e);return typeof t==`string`?A(t):t===e.GLOBSTAR?e.GLOBSTAR:t._src});n.forEach((t,i)=>{let a=n[i+1],o=n[i-1];t!==e.GLOBSTAR||o===e.GLOBSTAR||(o===void 0?a!==void 0&&a!==e.GLOBSTAR?n[i+1]=`(?:\\/|`+r+`\\/)?`+a:n[i]=r:a===void 0?n[i-1]=o+`(?:\\/|\\/`+r+`)?`:a!==e.GLOBSTAR&&(n[i-1]=o+`(?:\\/|\\/`+r+`\\/)`+a,n[i+1]=e.GLOBSTAR))});let a=n.filter(t=>t!==e.GLOBSTAR);if(this.partial&&a.length>=1){let e=[];for(let t=1;t<=a.length;t++)e.push(a.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return a.join(`/`)}).join(`|`),[o,s]=t.length>1?[`(?:`,`)`]:[``,``];a=`^`+o+a+s+`$`,this.partial&&(a=`^(?:\\/|`+o+a.slice(1,-1)+s+`)$`),this.negate&&(a=`^(?!`+a+`).+$`);try{this.regexp=new RegExp(a,[...i].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}};e.Minimatch=j;var M=sc();Object.defineProperty(e,`AST`,{enumerable:!0,get:function(){return M.AST}});var N=cc();Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return N.escape}});var P=oc();Object.defineProperty(e,`unescape`,{enumerable:!0,get:function(){return P.unescape}}),e.minimatch.AST=r.AST,e.minimatch.Minimatch=j,e.minimatch.escape=i.escape,e.minimatch.unescape=a.unescape})),uc=r(((e,n)=>{var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!c.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),f=e=>u(i({},`__esModule`,{value:!0}),e),p={};l(p,{createRouteId:()=>N,createRoutePath:()=>D,default:()=>y,defaultVisitFiles:()=>M,flatRoutes:()=>y,getRouteInfo:()=>E,getRouteSegments:()=>k,isIndexRoute:()=>T,isRouteModuleFile:()=>C,normalizeSlashes:()=>P}),n.exports=f(p);var m=d(t(`fs`),1),h=lc(),g=d(t(`path`),1),_={appDir:`app`,routeDir:`routes`,basePath:`/`,paramPrefixChar:`$`,nestedDirectoryChar:`+`,routeRegex:/((\${nestedDirectoryChar}[\/\\][^\/\\:?*]+)|[\/\\]((index|route|layout|page)|(_[^\/\\:?*]+)|([^\/\\:?*]+\.route)))\.(ts|tsx|js|jsx|md|mdx)$$/},v=void 0;function y(e,t,n={}){let r=b(n.appDir??_.appDir,n.ignoredRouteFiles??[],{..._,...n,routeDir:e,defineRoutes:t});return Object.values(r).forEach(e=>{e.parentId===void 0&&(e.parentId=`root`)}),r}function b(e,t,n){let r=[];t&&!Array.isArray(t)?n=t:r=t??[],n||=_;let i=new Map,a=new Map,o=Array.isArray(n.routeDir)?n.routeDir:[n.routeDir??`routes`],s=n.defineRoutes??v;if(!s)throw Error(`You must provide a defineRoutes function`);let c=n.visitFiles??M,l=I(n.routeRegex??_.routeRegex,n.nestedDirectoryChar??_.nestedDirectoryChar);for(let t of o)c(g.join(e,t),e=>{if(!(r&&r.some(t=>(0,h.minimatch)(e,t,{dot:!0})))&&C(e,l)){let r=E(t,e,n);i.set(r.id,r),a.set(r.name,r);return}});Array.from(i.values()).forEach(e=>{e.parentId=O(e,a)});function u(e,t){let n=Array.from(i.values()).filter(e=>e.parentId===t),r=(t?i.get(t):void 0)?.path??`/`;for(let t of n){let n=t?.path?.slice(r.length)??``;if(n.startsWith(`/`)&&(n=n.slice(1)),t.index){if(Object.values(i).filter(e=>e.parentId===t.id).length>0)throw Error(`Child routes are not allowed in index routes. Please remove child routes of ${t.id}`);e(n,i.get(t.id).file,{index:!0})}else e(n,i.get(t.id).file,()=>{u(e,t.id)})}}return s(u)}var x=[`.js`,`.jsx`,`.ts`,`.tsx`,`.md`,`.mdx`],S=/\.server\.(ts|tsx|js|jsx|md|mdx)$/;function C(e,t){return e.includes(g.sep)?t.test(e)?!S.test(e):!1:x.includes(g.extname(e))}var w=(()=>{let e={};return t=>{if(t in e)return e[t];let n=new RegExp(t);return e[t]=n,n}})();function T(e,t){return w(`((^|[.]|[${t.nestedDirectoryChar.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`)}]\\/)(index|_index))(\\/[^\\/]+)?$|(\\/_?index\\/)`).test(e)}function E(e,t,n){let r=P(g.join(e,t)),i=N(r),a=i.slice(e.length+1),o=T(a,n),s=k(a,o,n.paramPrefixChar,n.nestedDirectoryChar);return{id:i,path:D(s,o,n),file:r,name:s.join(`/`),segments:s,index:o}}function D(e,t,n){let r=``,i=n.basePath??`/`,a=n.paramPrefixChar??`$`;t&&(e[e.length-1]=``);for(let t=0;t<e.length;t++){let n=e[t];if(!n.startsWith(`_`)){if(n.endsWith(`_`)&&(n=n.slice(0,-1)),n.includes(`[`)&&n.includes(`]`)){let e=``,t=0;for(let r of n)r===`[`&&t===0?t++:r===`]`&&t>0?t--:e+=r;n=e}n.startsWith(a)?n===a?r+=`/*`:r+=`/:${n.slice(1)}`:n.startsWith(`(${a}`)?r+=`/:${n.slice(2,n.length-1)}?`:n.startsWith(`(`)?r+=`/${n.slice(1,n.length-1)}?`:r+=`/${n}`}}return i!==`/`&&(r=i+r),r.endsWith(`/`)&&(r=r.slice(0,-1)),r||void 0}function O(e,t){let n=e.segments.slice(0,-1).join(`/`);for(;n;){if(t.has(n))return t.get(n).id;n=n.substring(0,n.lastIndexOf(`/`))}}function k(e,t,n=`$`,r=`+`){let i=[],a=0,o=``,s=`START`,c=`NORMAL`,l=!1,u=r.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`),d=RegExp(`${u}[/\\\\]`,`g`),f=RegExp(`${u}[/\\\\]`),p=`${u}/_\\.`;if(new RegExp(p).test(e)){let t=new RegExp(p,`g`);e=e.replace(t,`_${r}/`)}f.test(e)&&(e=e.replace(d,`.`),l=!0);let m=/\//.test(e);if((l&&m||!l)&&!e.endsWith(`.route`)){let t=e.lastIndexOf(`/`);t>=0&&(e=e.substring(0,t))}let h=e=>{e&&i.push(e)};for(;a<e.length;){let t=e[a];switch(s){case`START`:if(o.includes(n)&&!(o.startsWith(n)||o.startsWith(`(${n}`)))throw Error(`Route params must start with prefix char ${n}: ${o}`);if(o.includes(`(`)&&!o.startsWith(`(`)&&!o.endsWith(`)`))throw Error(`Optional routes must start and end with parentheses: ${o}`);h(o),o=``,s=`PATH`;continue;case`PATH`:if(j(t)&&c===`NORMAL`){s=`START`;break}else t===`[`?c=`ESCAPE`:t===`]`&&(c=`NORMAL`);o+=t;break}a++}return h(o),i.at(-1)===`route`&&(i=i.slice(0,-1)),!t&&l&&i.at(-1)?.startsWith(`_`)&&(i=i.slice(0,-1)),i}var A=/[\/\\.]/;function j(e){return A.test(e)}function M(e,t,n=e){for(let r of m.readdirSync(e)){let i=g.resolve(e,r),a=m.statSync(i);a.isDirectory()?M(i,t,n):a.isFile()&&t(g.relative(n,i))}}function N(e){return P(F(e))}function P(e){return e.split(g.win32.sep).join(`/`)}function F(e){return e.replace(/\.[a-z0-9]+$/i,``)}var I=(e,t)=>(t=t.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`),new RegExp(e.source.replace("\\${nestedDirectoryChar}",`[${t}]`)))}))(),dc=Xs();const fc=e=>typeof e==`object`&&!!e&&`_zod`in e,pc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e))r[i]=t.addExample(a,[...n,i]);return r},mc=(e,t,n)=>{let{schema:r,examples:i,...a}=e,o=a;return fc(r)?o.schema=t.registry.addSchema(r,[...n,`schema`],{io:t.io,source:{type:`mediaType`}}):o.schema=r,i&&(o.examples=pc(i,t.registry,[...n,`examples`])),o},hc=(e,t,n)=>{let r={};for(let[i,a]of Object.entries(e))a&&(r[i]=mc(a,t,[...n,i]));return r},gc=(e,t,n)=>{let r=e._zod.def;switch(r.type){case`object`:return e;case`lazy`:return gc(r.getter(),t,n);case`pipe`:return gc(t===`input`?r.in:r.out,t,n)}throw Error(`Failed to unwrap ZodObject from type: ${e._zod.def.type} at ${n.join(` > `)}`)},_c=(e,t)=>t===`input`?e._zod.optin===void 0:e._zod.optout===void 0,vc=(e,t,n)=>{if(e){if(fc(e)){let r=gc(e,`output`,n),i={};for(let[e,a]of Object.entries(r._zod.def.shape))i[e]=t.addHeader(a,[...n,e]);return i}return e}},yc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e))r[i]=t.addLink(a,[...n,i]);return r},bc=(e,t,n)=>{if(!e)return;let r=[];for(let i of e){if(fc(i)){let e=t.addParameter(i,[...n,`parameters`]);r.push(e);continue}r.push(i)}return r},xc=(e,t,n)=>{if(!e)return;let r=[];for(let[i,a]of Object.entries(e??{})){let e=gc(a,`input`,n);for(let[a,o]of Object.entries(e._zod.def.shape)){let e=t.addParameter(o,[...n,i,a],{location:{in:i,name:a}});r.push(e)}}return r},Sc=e=>e.startsWith(`x-`),Cc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e)){if(Sc(i)){r[i]=a;continue}r[i]=t.addCallback(a,[...n,i])}return r},wc=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e))if(a){if(Sc(i)){r[i]=a;continue}if(`$ref`in a){r[i]=a;continue}r[i]=t.addResponse(a,[...n,i])}return r},Tc=(e,t,n)=>{let{parameters:r,requestParams:i,requestBody:a,responses:o,callbacks:s,...c}=e,l=c,u=bc(r,t,[...n,`parameters`]),d=xc(i,t,[...n,`requestParams`]);(d||u)&&(l.parameters=[...d??[],...u??[]]);let f=a&&t.addRequestBody(a,n);f&&(l.requestBody=f);let p=wc(o,t,[...n,`responses`]);p&&(l.responses=p);let m=Cc(s,t,[...n,`callbacks`]);return m&&(l.callbacks=m),l},Ec=(e,t,n)=>{if(!e)return;let r={};for(let[i,a]of Object.entries(e)){if(Sc(i)){r[i]=a;continue}r[i]=t.addPathItem(a,[...n,i])}return r},Dc=[`3.0.0`,`3.0.1`,`3.0.2`,`3.0.3`,`3.1.0`,`3.1.1`],Oc=(e,t)=>Dc.indexOf(e)>=Dc.indexOf(t),kc=e=>{let t=e.zodSchema._zod.def;switch(t.type){case`bigint`:e.jsonSchema.type=`integer`,e.jsonSchema.format=`int64`;break;case`union`:{if(`discriminator`in t&&typeof t.discriminator==`string`){e.jsonSchema.oneOf??=e.jsonSchema.anyOf,delete e.jsonSchema.anyOf,e.jsonSchema.type=`object`,e.jsonSchema.discriminator={propertyName:t.discriminator};let n={};for(let[r,i]of Object.entries(e.jsonSchema.oneOf)){let a=i.$ref;if(!a){delete e.jsonSchema.discriminator;return}let o=t.options[Number(r)]._zod.propValues?.[t.discriminator];if(!o?.size)return;for(let e of[...o??[]]){if(typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return;n[String(e)]=a}}e.jsonSchema.discriminator.mapping=n}let n=Ae.get(e.zodSchema);typeof n?.unionOneOf==`boolean`&&(n.unionOneOf&&(e.jsonSchema.oneOf=e.jsonSchema.anyOf,delete e.jsonSchema.anyOf),delete e.jsonSchema.unionOneOf);break}case`date`:e.jsonSchema.type=`string`;break;case`literal`:if(t.values.includes(void 0))break;break;case`undefined`:e.jsonSchema.not={};break}},Ac=(e,t)=>{if(Object.keys(e.jsonSchema).length)return;let n=e.zodSchema._zod.def,r=t.allowEmptySchema?.[n.type];if(!(r===!0||r?.[e.io])){switch(n.type){case`optional`:Ac({...e,zodSchema:n.innerType},t);return;case`any`:return;case`unknown`:return;case`pipe`:if(e.io===`output`)throw Error(`Zod transform found at ${e.path.join(` > `)} are not supported in output schemas. Please use \`.overwrite()\` or wrap the schema in a \`.pipe()\` or assign it manual metadata with \`.meta()\``);return;case`transform`:if(e.io===`output`)return;break;case`literal`:if(n.values.includes(void 0))throw Error(`Zod literal at ${e.path.join(` > `)} cannot include \`undefined\` as a value. Please use \`z.undefined()\` or \`.optional()\` instead.`);return}throw Error(`Zod schema of type \`${n.type}\` at ${e.path.join(` > `)} cannot be represented in OpenAPI. Please assign it metadata with \`.meta()\``)}},jc=(e,t,n,r)=>{let i=new Map;if(n.io===`input`)return i;let a=new Map,o=new Map;for(let[t,n]of Object.entries(e)){let e=JSON.stringify(n),i=RegExp(`"${r}([^"]+)"`,`g`),s=e.matchAll(i),c=new Set;for(let e of s){let n=e[1];n!==t&&c.add(n)}o.set(t,e),a.set(t,{dependencies:c})}for(let[r]of o){if(!n.registry.components.schemas.ids.get(r)||Mc(a,o,n.registry,r))continue;let s=t.get(r)??`${r}${n.opts.outputIdSuffix??`Output`}`;i.set(r,s),e[s]=e[r],delete e[r]}return i},Mc=(e,t,n,r,i=new Set)=>{if(i.has(r))return!0;let a=e.get(r);if(a.pure!==void 0)return a.pure;let o=t.get(r),s=n.components.schemas.ids.get(r);if(s&&o!==JSON.stringify(s))return a.pure=!1,!1;i.add(r);let c=[...a.dependencies].every(r=>Mc(e,t,n,r,new Set(i)));return a.pure=c,c},Nc=[`param`,`header`,`unusedIO`,`override`,`outputId`],Pc=e=>{Nc.forEach(t=>{delete e[t]})},Fc=e=>{delete e.$schema,delete e.id,delete e.$id},Ic=(e,t)=>{let n=t.opts.schemaRefPath??`#/components/schemas/`,r={};for(let[t,{zodType:n}]of Object.entries(e))r[t]=n;let i=je();i.add(Me(r),{id:`zodOpenApiCreateSchema`});for(let[e,{zodType:n}]of t.registry.components.schemas.manual)i.add(n,{id:e});let a=new Map,o=Oc(t.openapiVersion??`3.1.0`,`3.1.0`)?`$defs`:`definitions`,s=ke(i,{override(e){let n=Ae.get(e.zodSchema);if(n?.outputId&&n?.id&&a.set(n.id,n.outputId),e.jsonSchema.$ref)return;let r={...e,io:t.io};kc(r),typeof t.opts.override==`function`&&t.opts.override(r),typeof n?.override==`function`&&(n.override(r),delete e.jsonSchema.override),typeof n?.override==`object`&&n.override!==null&&(Object.assign(e.jsonSchema,n.override),delete e.jsonSchema.override),Fc(e.jsonSchema),Pc(e.jsonSchema),Ac(r,t.opts)},io:t.io,unrepresentable:`any`,reused:t.opts.reused,cycles:t.opts.cycles,target:Oc(t.openapiVersion??`3.1.0`,`3.1.0`)?void 0:`openapi-3.0`,uri:e=>e===`__shared`?`#ZOD_OPENAPI/${e}`:`#ZOD_OPENAPI/__shared#/${o}/${e}`}),c=s.schemas.__shared?.[o]??{};s.schemas.__shared??={[o]:c};let l=new Map;for(let[e,r]of Object.entries(c))if(Fc(r),/^schema\d+$/.test(e)){let i=`__schema${t.registry.components.schemas.dynamicSchemaCount++}`;l.set(e,`"${n}${i}"`),i!==e&&(c[i]=r,delete c[e])}for(let[e]of t.registry.components.schemas.manual){let t=s.schemas[e];t&&Fc(t)}let u={},d=JSON.parse(JSON.stringify(s).replace(/"#ZOD_OPENAPI\/__shared#\/(?:\$defs|definitions)\/([^"]+)"/g,(e,r)=>l.get(r)||(t.registry.components.schemas.manual.get(r)&&(u[r]=!0),`"${n}${r}"`))),f=d.schemas.__shared?.[o]??{};d.schemas.__shared??={[o]:f};for(let[e]of t.registry.components.schemas.manual){let t=d.schemas[e];if(t&&u[e]){if(f[e])throw Error(`Component "${e}" is already registered as a component in the registry`);f[e]=t}}let p=jc(f,a,t,n);if(!p.size){let e=d.schemas.zodOpenApiCreateSchema?.properties;return delete d.schemas.zodOpenApiCreateSchema,delete d.schemas.__shared,{schemas:e,components:f,manual:d.schemas}}let m=JSON.parse(JSON.stringify(d).replace(RegExp(`"${n}([^"]+)"`,`g`),(e,t)=>{let r=p.get(t);return r?`"${n}${r}"`:`"${n}${t}"`})),h=m.schemas.zodOpenApiCreateSchema?.properties,g=m.schemas.__shared?.[o]??{};return delete m.schemas.zodOpenApiCreateSchema,delete m.schemas.__shared,{schemas:h,components:g,manual:m.schemas}},Lc=e=>{let t={components:{schemas:{dynamicSchemaCount:0,input:new Map,output:new Map,ids:new Map,manual:new Map},headers:{ids:new Map,seen:new WeakMap},requestBodies:{ids:new Map,seen:new WeakMap},responses:{ids:new Map,seen:new WeakMap},parameters:{ids:new Map,seen:new WeakMap},callbacks:{ids:new Map,seen:new WeakMap},pathItems:{ids:new Map,seen:new WeakMap},securitySchemes:{ids:new Map,seen:new WeakMap},links:{ids:new Map,seen:new WeakMap},examples:{ids:new Map,seen:new WeakMap}},addSchema:(e,n,r)=>{let i={};return t.components.schemas[r.io].set(n.join(` > `),{schemaObject:i,zodType:e,source:{path:n,...r?.source}}),i},addParameter:(e,n,r)=>{let i=t.components.parameters.seen.get(e);if(i)return i;let a=Ae.get(e),o=r?.location?.name??a?.param?.name,s=r?.location?.in??a?.param?.in;if(r?.location?.name&&a?.param?.name||r?.location?.in&&a?.param?.in)throw Error(`Parameter at ${n.join(` > `)} has both \`.meta({ param: { name, in } })\` and \`.meta({ param: { location: { in, name } } })\` information`);if(!o||!s)throw Error(`Parameter at ${n.join(` > `)} is missing \`.meta({ param: { name, in } })\` information`);let c=t.addSchema(e,[...n,s,o,`schema`],{io:`input`,source:{type:`parameter`,location:{in:s,name:o}}}),{id:l,examples:u,...d}=a?.param??{},f={in:s,name:o,schema:c,...d},p=pc(u,t,[...n,s,o,`examples`]);p&&(f.examples=p),_c(e,`input`)&&(f.required=!0),!f.description&&a?.description&&(f.description=a.description);let m=l??r?.manualId;if(m){if(t.components.parameters.ids.has(m))throw Error(`Schema "${m}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/parameters/${m}`};return t.components.parameters.seen.set(e,i),t.components.parameters.ids.set(m,f),r?.manualId?f:i}return r?.location?.name||r?.location?.in||t.components.parameters.seen.set(e,f),f},addHeader:(e,n,r)=>{let i=t.components.headers.seen.get(e);if(i)return i;let a=Ae.get(e),{id:o,...s}=a?.header??{},c=o??r?.manualId,l=s;if(_c(e,`output`)&&(l.required=!0),!l.description&&a?.description&&(l.description=a.description),l.schema=t.addSchema(e,[...n,`schema`],{io:`output`,source:{type:`header`}}),c){if(t.components.schemas.ids.has(c))throw Error(`Schema "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/headers/${c}`};return t.components.headers.ids.set(c,l),t.components.headers.seen.set(e,i),r?.manualId?l:i}return t.components.headers.seen.set(e,l),l},addRequestBody:(e,n,r)=>{let i=t.components.requestBodies.seen.get(e);if(i)return i;let{content:a,id:o,...s}=e,c={...s,content:hc(a,{registry:t,io:`input`},[...n,`content`])},l=o??r?.manualId;if(l){if(t.components.requestBodies.ids.has(l))throw Error(`RequestBody "${l}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/requestBodies/${l}`};return t.components.requestBodies.ids.set(l,c),t.components.requestBodies.seen.set(e,i),r?.manualId?c:i}return t.components.requestBodies.seen.set(e,c),c},addPathItem:(e,n,r)=>{let i=t.components.pathItems.seen.get(e);if(i)return i;let a={},{id:o,...s}=e,c=o??r?.manualId;for(let[e,r]of Object.entries(s)){if(Sc(e)){a[e]=r;continue}if(e===`get`||e===`put`||e===`post`||e===`delete`||e===`options`||e===`head`||e===`patch`||e===`trace`){a[e]=Tc(r,t,[...n,e]);continue}if(e===`parameters`){a[e]=bc(r,t,[...n,e]);continue}a[e]=r}if(c){if(t.components.pathItems.ids.has(c))throw Error(`PathItem "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/pathItems/${c}`};return t.components.pathItems.ids.set(c,a),t.components.pathItems.seen.set(e,i),r?.manualId?a:i}return t.components.pathItems.seen.set(e,a),a},addResponse:(e,n,r)=>{let i=t.components.responses.seen.get(e);if(i)return i;let{content:a,headers:o,links:s,id:c,...l}=e,u=l,d=vc(o,t,[...n,`headers`]);d&&(u.headers=d),a&&(u.content=hc(a,{registry:t,io:`output`},[...n,`content`])),s&&(u.links=yc(s,t,[...n,`links`]));let f=c??r?.manualId;if(f){if(t.components.responses.ids.has(f))throw Error(`Response "${f}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/responses/${f}`};return t.components.responses.ids.set(f,u),t.components.responses.seen.set(e,i),r?.manualId?u:i}return t.components.responses.seen.set(e,u),u},addCallback:(e,n,r)=>{let i=t.components.callbacks.seen.get(e);if(i)return i;let{id:a,...o}=e,s={};for(let[e,r]of Object.entries(o)){if(Sc(e)){s[e]=r;continue}s[e]=t.addPathItem(r,[...n,e])}let c=a??r?.manualId;if(c){if(t.components.callbacks.ids.has(c))throw Error(`Callback "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/callbacks/${c}`};return t.components.callbacks.ids.set(c,s),t.components.callbacks.seen.set(e,i),r?.manualId?s:i}return t.components.callbacks.seen.set(e,s),s},addSecurityScheme:(e,n,r)=>{let i=t.components.securitySchemes.seen.get(e);if(i)return i;let{id:a,...o}=e,s=o,c=a??r?.manualId;if(c){if(t.components.securitySchemes.ids.has(c))throw Error(`SecurityScheme "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/securitySchemes/${c}`};return t.components.securitySchemes.ids.set(c,s),t.components.securitySchemes.seen.set(e,i),r?.manualId?s:i}return t.components.securitySchemes.seen.set(e,s),s},addLink:(e,n,r)=>{let i=t.components.links.seen.get(e);if(i)return i;let{id:a,...o}=e,s=o,c=a??r?.manualId;if(c){if(t.components.links.ids.has(c))throw Error(`Link "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/links/${c}`};return t.components.links.ids.set(c,s),t.components.links.seen.set(e,i),r?.manualId?s:i}return t.components.links.seen.set(e,s),s},addExample:(e,n,r)=>{let i=t.components.examples.seen.get(e);if(i)return i;let{id:a,...o}=e,s=o,c=a??r?.manualId;if(c){if(t.components.examples.ids.has(c))throw Error(`Example "${c}" at ${n.join(` > `)} is already registered`);let i={$ref:`#/components/examples/${c}`};return t.components.examples.ids.set(c,s),t.components.examples.seen.set(e,i),r?.manualId?s:i}return t.components.examples.seen.set(e,s),s}};return Rc(e?.schemas,t),zc(e?.parameters,t),Bc(e?.headers,t),Vc(e?.responses,t),Wc(e?.pathItems,t),Hc(e?.requestBodies,t),Uc(e?.callbacks,t),Gc(e?.securitySchemes,t),Kc(e?.links,t),qc(e?.examples,t),t},Rc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){let e=Ae.get(r)?.id??n;t.components.schemas.manual.set(e,{input:{schemaObject:{}},output:{schemaObject:{}},zodType:r});continue}t.components.schemas.ids.set(n,r)}},zc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){let e=[`components`,`parameters`,n];t.addParameter(r,e,{manualId:n});continue}t.components.parameters.ids.set(n,r)}},Bc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){let e=[`components`,`headers`,n];t.addHeader(r,e,{manualId:n});continue}t.components.headers.ids.set(n,r)}},Vc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){let e=t.addResponse(r,[`components`,`responses`,n],{manualId:n});t.components.responses.ids.set(n,e),t.components.responses.seen.set(r,e)}},Hc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e)){if(fc(r)){t.addRequestBody(r,[`components`,`requestBodies`,n],{manualId:n});continue}t.components.requestBodies.ids.set(n,r)}},Uc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addCallback(r,[`components`,`callbacks`,n],{manualId:n})},Wc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addPathItem(r,[`components`,`pathItems`,n],{manualId:n})},Gc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addSecurityScheme(r,[`components`,`securitySchemes`,n],{manualId:n})},Kc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.addLink(r,[`components`,`links`,n],{manualId:n})},qc=(e,t)=>{if(e)for(let[n,r]of Object.entries(e))t.components.examples.ids.set(n,r)},Jc=e=>{let{schemas:t,components:n,manual:r}=Ic(Object.fromEntries(e.registry.components.schemas[e.io]),e);for(let[t,r]of Object.entries(n))e.registry.components.schemas.ids.set(t,r);for(let[n,r]of Object.entries(t)){let t=e.registry.components.schemas[e.io].get(n);t&&Object.assign(t.schemaObject,r)}for(let[t,i]of Object.entries(r)){let r=e.registry.components.schemas.manual.get(t);r&&(n[t]&&(r[e.io].used=!0),Object.assign(r[e.io].schemaObject,i))}},Yc=e=>{for(let[t,n]of e.components.schemas.manual)if(!n.input.used){let r=n[Ae.get(n.zodType)?.unusedIO??`output`].schemaObject;e.components.schemas.ids.set(t,r)}},Xc=(e,t,n)=>{Jc({registry:e,io:`input`,opts:t,openapiVersion:n}),Jc({registry:e,io:`output`,opts:t,openapiVersion:n}),Yc(e);let r={};return e.components.schemas.ids.size>0&&(r.schemas=Object.fromEntries(e.components.schemas.ids)),e.components.headers.ids.size>0&&(r.headers=Object.fromEntries(e.components.headers.ids)),e.components.requestBodies.ids.size>0&&(r.requestBodies=Object.fromEntries(e.components.requestBodies.ids)),e.components.responses.ids.size>0&&(r.responses=Object.fromEntries(e.components.responses.ids)),e.components.parameters.ids.size>0&&(r.parameters=Object.fromEntries(e.components.parameters.ids)),e.components.callbacks.ids.size>0&&(r.callbacks=Object.fromEntries(e.components.callbacks.ids)),e.components.pathItems.ids.size>0&&(r.pathItems=Object.fromEntries(e.components.pathItems.ids)),e.components.securitySchemes.ids.size>0&&(r.securitySchemes=Object.fromEntries(e.components.securitySchemes.ids)),e.components.links.ids.size>0&&(r.links=Object.fromEntries(e.components.links.ids)),e.components.examples.ids.size>0&&(r.examples=Object.fromEntries(e.components.examples.ids)),r},Zc=(e,t={})=>{let{paths:n,webhooks:r,components:i,...a}=e,o=a,s=Lc(i),c=Ec(n,s,[`paths`]);c&&(o.paths=c);let l=Ec(r,s,[`webhooks`]);l&&(o.webhooks=l);let u=Xc(s,t,e.openapi);return Object.keys(u).length>0&&(o.components=u),o},Qc=Xe(Ce,`openapi`);function $c(e){return e.match(/^\/(v\d+)/)?.[1]}function el(e){return e.replace(/:(\w+)/g,`{$1}`)}function tl(e,t){let n=el(e),r={summary:t.summary,description:t.description};(t.request?.params||t.request?.query||t.request?.headers)&&(r.requestParams={},t.request.params&&(r.requestParams.path=t.request.params),t.request.query&&(r.requestParams.query=t.request.query),t.request.headers&&(r.requestParams.header=t.request.headers)),t.request?.body&&(r.requestBody={content:{"application/json":{schema:t.request.body}}}),r.responses={};for(let[e,n]of Object.entries(t.responses))r.responses[e]={description:n.description,content:{"application/json":{schema:n.content[`application/json`].schema}}};return{path:n,config:r}}function nl(e,t,n){let r={};for(let n of e){if(n.version!==t)continue;let e=n.path.replace(`/${t}`,``)||`/`;for(let t of n.openAPISpec){let{path:n,config:i}=tl(e,t);r[n]||(r[n]={}),r[n][t.method]=i}}return Zc({openapi:`3.1.0`,info:n?.info||{title:`API ${t.toUpperCase()}`,version:t.replace(`v`,``),description:`OpenAPI specification for ${t} API`},servers:n?.servers||[{url:`http://localhost:8000/${t}`,description:process.env.NODE_ENV===`production`?`Production server`:`Development server`}],paths:r})}async function rl(e){let t=Xe(q,Ee);try{await He(t)}catch(t){return e.logger.error({error:t},`OpenAPI routes directory not found`),[]}let n=await(0,dc.remixRoutesOptionAdapter)(e=>(0,uc.flatRoutes)(Ee,e,{appDir:q,ignoredRouteFiles:[`**/.*`,`**/*.{spec,test}.{ts,tsx}`,`**/*-????????.{js,ts}`]})),r=[];for(let[t,i]of Object.entries(n)){let t=Xe(q,i.file).replace(/\.ts$/,`.${De}`);try{let n=(await import(t)).default;if(!n||tc(n)||/\/openapi.(j|t)s$/.test(t))continue;if(!n?.handlers&&!n?.openAPISpec){e.logger.warn(`Missing default export with 'defineOpenAPI' for '${q}/${i.file}'`);continue}let a=`/${i.path}`;r.push({path:a,filePath:t,handlers:n.handlers,openAPISpec:n.openAPISpec,version:$c(a)})}catch(t){e.logger.error(t,`Error loading route ${i.file}:`)}}return r}function il(e,t){for(let n of t)for(let[t,r]of Object.entries(n.handlers))e[t.toLowerCase()](n.path,r)}async function al(e,t){let n=Xe(q,Ee,`${t}+/openapi.${De}`);try{let t=(await import(n)).default;return t?t(e):void 0}catch{return}}async function ol(e,t){let n=[...new Set(t.map(e=>e.version).filter(Boolean))];n.length>0&&await We(Qc,{recursive:!0});for(let r of n){let n=nl(t,r,await al(e,r));await Ke(Ye(Qc,`${r}.json`),JSON.stringify(n,null,2),`utf-8`)}}async function sl(e){let t=await rl(e.locals.container);il(e,t),process.env.NODE_ENV!==`production`&&await ol(e.locals.container,t)}async function cl({container:e}){let t=!1,{host:n=`0.0.0.0`,port:r,timeout:i=3e4,bodyLimit:a=`1mb`,healthPath:o=`/health`,cors:s,helmet:c,rateLimit:l,redisUrl:u}=e.server,d=rt();d.disable(`x-powered-by`),d.locals.container=e;let f=null;if(u&&l)try{f=(0,ks.createClient)({url:u}),f.on(`error`,t=>{e.logger.error({error:t.message},`Redis client error`)}),await f.connect(),e.logger.info(`Connected to Redis for rate limiting`)}catch(t){e.logger.error({error:t instanceof Error?t.message:t},`Failed to connect to Redis, falling back to in-memory rate limiting`),f=null}if(d.use(zs(e.logger,()=>t),Bs(e.logger,i),Rs(e.logger),Ms(o)),c!==void 0&&d.use(ws(c)),s!==void 0&&d.use((0,vo.default)(s)),l)for(let[e,t]of l.entries()){let n=Vo({windowMs:t.windowMs??60*1e3,limit:t.limit??100,standardHeaders:t.standardHeaders??`draft-8`,legacyHeaders:t.legacyHeaders??!1,skip:t.skip,keyGenerator:t.keyGenerator,handler:t.handler,message:t.message,statusCode:t.statusCode,requestPropertyName:t.requestPropertyName,skipFailedRequests:t.skipFailedRequests,skipSuccessfulRequests:t.skipSuccessfulRequests,requestWasSuccessful:t.requestWasSuccessful,validate:t.validate,store:f?new Os({sendCommand:(...e)=>f.sendCommand(e),prefix:`rl:${e}:`}):t.store});d.use(n)}if(d.use(Ns(e.i18n),rt.json({limit:a}),rt.urlencoded({extended:!0,limit:a})),await Ys(Ye(process.cwd(),q,we),e,d),d.get(`/`,(t,n)=>{n.json({message:`${e.config.APP_NAME} server is running.`})}).all(`${e.auth.options.basePath}/*`,io(e.auth)),await sl(d),d.use(rt.static(Xe(Ce))),process.env.NODE_ENV!==`production`){let{defineYouchErrorHandler:t}=await import(`./youch-handler-efUxKCCs.mjs`);d.use(t(e.logger))}else d.use(js(e.logger));return{app:d,host:n,port:r,async start(){await new Promise((e,t)=>{try{d.listen(r,n,()=>{e()})}catch(e){t(e)}})},async close(){if(t=!0,d.uwsApp.close(),f)try{await f.destroy()}catch(t){e.logger.warn({error:t instanceof Error?t.message:t},`Error disconnecting from Redis`)}}}}let ll=[],ul=Pe();function dl(){ll=[],ul=Pe()}function fl(e){return async t=>{let n=await t(),r=async e=>{let t=new URL(e.poolConfig.connectionString||`postgres://postgres:postgres@localhost:5432/test`),n=await qa({connectionString:t.toString(),logger:ul,name:t.pathname.slice(1)||`test`,schema:e.schema??{},relations:e.relations??{}});return ll.push(n.cleanUp),n.db},i=e=>{let t=ze(Ye(qe(),`test-storage-`)),r={};for(let n of Object.keys(e.disks||{})){let e=Ye(t,n);Re(e,{recursive:!0}),r[n]={location:e}}return ll.push(()=>Ge(t,{recursive:!0,force:!0})),n.defineStorage({database:e.database,default:e.default,disks:r})};return{...n,defineDatabase:e?.defineDatabase??r,defineStorage:e?.defineStorage??i,defineCache:e?.defineCache??(()=>Pe()),defineLogger:e?.defineLogger??(async()=>ul),defineMailer:e?.defineMailer??(async()=>Pe()),defineEventBus:e?.defineEventBus??(()=>Ne()),defineAuth:e?.defineAuth??(()=>Ne()),defineI18n:e?.defineI18n??(async()=>Pe())}}}function pl(e){let t=e.address?.bind(e);return e.address=()=>{let e=t?.();return e&&e.port===void 0?null:e},e.close||=t=>{e.uwsApp&&e.uwsApp.close(),t?.()},e}function ml(e){return(0,ji.default)(pl(e))}function hl(e,t){let n={...e};for(let r of Object.keys(t)){let i=t[r],a=e[r];i!==void 0&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof a==`object`&&a&&!Array.isArray(a)?n[r]=hl(a,i):i!==void 0&&(n[r]=i)}return n}function gl(e,t){return $e.extend({container:async({},n)=>{dl();let r=await e();await n(t?hl(r,t):r);for(let e of ll.reverse())await e()},app:async({container:e},t)=>{await t((await cl({container:e})).app)}})}export{fl as defineApiMocks,gl as defineServerTest,qa as defineTestDatabase,ml as request};
|