@doubao-dev/cli 0.0.32 → 0.0.34
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/2168.js +16 -16
- package/dist/275.js +12 -14
- package/dist/2932.js +1 -1
- package/dist/318.js +1 -1
- package/dist/{1560.js → 3688.js} +2 -2
- package/dist/3974.js +22 -22
- package/dist/4525.js +1 -1
- package/dist/4880.js +1 -1
- package/dist/4931.js +2 -2
- package/dist/6427.js +126 -0
- package/dist/7410.js +1 -1
- package/dist/7417.js +204 -0
- package/dist/7417.js.LICENSE.txt +107 -0
- package/dist/7945.js +1 -0
- package/dist/8981.js +78 -0
- package/dist/{8891.js.LICENSE.txt → 8981.js.LICENSE.txt} +0 -108
- package/dist/@byted-doubao-apps/create.js +1 -1
- package/dist/@byted-doubao-apps/kit.js +1 -0
- package/dist/@byted-doubao-apps/login.js +1 -1
- package/dist/@byted-doubao-apps/login~1.js +1 -1
- package/dist/@byted-doubao-apps/template-empty/package.json +3 -3
- package/dist/@byted-doubao-apps/template-starter/package.json +3 -3
- package/dist/@byted-hdt/cli.js +1 -1
- package/dist/@inquirer/select.js +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/web-sdk-debugger/__doubao_web_sdk_native_modules/applet-bridge-module-core.js +1 -1
- package/dist/assets/web-sdk-debugger/index.html +1 -1
- package/dist/assets/web-sdk-debugger/static/js/index.9f626ba3a2.js +44 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-api.template.js +0 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-framework.template.js +0 -0
- package/dist/build.js +1 -1
- package/dist/build~1.js +6 -6
- package/dist/check.js +1 -1
- package/dist/demo-server.js +1 -1
- package/dist/dev-config.js +1 -1
- package/dist/dev-shell.js +1 -1
- package/dist/dev.js +10 -10
- package/dist/devtools.js +1 -1
- package/dist/gen-explore.js +1 -1
- package/dist/gen-trajectory.js +1 -1
- package/dist/init.js +4 -4
- package/dist/ink.js +1 -1
- package/dist/inquirer.js +1 -0
- package/dist/json-file.js +1 -1
- package/dist/kit-dev-options.js +1 -1
- package/dist/legacy-upload.js +1 -1
- package/dist/lepus.js +1 -1
- package/dist/ora.js +1 -1
- package/dist/project-layout.js +1 -1
- package/dist/prompt.js +1 -1
- package/dist/prompts.js +1 -1
- package/dist/report.js +1 -1
- package/dist/run-registry.js +1 -1
- package/dist/run.js +44 -44
- package/dist/sandbox.js +1 -1
- package/dist/scan.js +1 -1
- package/dist/sdk.js +63 -188
- package/dist/sdk~1.js +50 -50
- package/dist/server.js +1 -1
- package/dist/skill.js +1 -1
- package/dist/skills.js +1 -1
- package/dist/skills~1.js +2 -1
- package/dist/static/assets/web-view-proxy-bootstrap.js +1 -0
- package/dist/static/assets/web-view-proxy-page-client.js +1 -1
- package/dist/static/assets/web-view-proxy-service-worker.js +1 -1
- package/dist/status~1.js +1 -1
- package/dist/stop.js +1 -1
- package/dist/sync.js +1 -1
- package/dist/templates/README.md +0 -1
- package/dist/update.js +1 -1
- package/dist/workspace.js +1 -1
- package/dist/wrapper.js +1 -0
- package/dist/yaml.js +1 -1
- package/package.json +2 -2
- package/skills/dbx-eval/SKILL.md +15 -7
- package/skills/doubao-agentic-service-development/SKILL.md +1 -1
- package/skills/doubao-agentic-service-development/references/auth.md +1 -1
- package/skills/doubao-agentic-service-development/references/dev-debug.md +3 -3
- package/skills/doubao-agentic-service-development/references/frontend/components/map-canvas.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/06-/350/267/257/347/224/261.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/07-/347/225/214/351/235/242.md +0 -6
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/08-/344/272/244/344/272/222.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/guides/debugger-mcp.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/widget-templates/props.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend-dev.md +3 -3
- package/skills/doubao-agentic-service-development/references/local-debug/overview.md +2 -2
- package/skills/doubao-agentic-service-development/references/overview.md +16 -31
- package/skills/doubao-agentic-service-development/scripts/workspace.py +6 -89
- package/dist/180.js +0 -1
- package/dist/8891.js +0 -280
- package/dist/9635.js +0 -1
- package/dist/assets/web-sdk-debugger/static/js/index.75528d6de7.js +0 -26
- package/dist/dbx.js +0 -3
- package/dist/skills~2.js +0 -2
package/dist/7417.js
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/*! LICENSE: 7417.js.LICENSE.txt */
|
|
2
|
+
let e,t,a,o,n,i,s,r,c,l,p;import u from"node:module";let d=u.createRequire(import.meta.url);import{__webpack_require__ as m}from"./rslib-runtime.js";import{external_node_process_namespaceObject as h}from"./7945.js";import{external_node_module_namespaceObject as f}from"./3551.js";import{isBrowser as v}from"./environment.js";import"./lepus.js";import"./318.js";import"./7410.js";import{fileURLToPath as g}from"node:url";import{dirname as b}from"node:path";var y,x,_,S,w,$,R,j,E,k,P,T,O,C=b(g(import.meta.url));m.add({"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: decode"(e,t,a){var o={"./darwin/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/darwin/Release/lepus.node","./linux/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/linux/Release/lepus.node"};function n(e){return a(i(e))}function i(e){if(!a.o(o,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=()=>Object.keys(o),n.resolve=i,e.exports=n,n.id="../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: decode"},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: decrypt"(e,t,a){var o={"./darwin/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/darwin/Release/lepus.node","./linux/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/linux/Release/lepus.node"};function n(e){return a(i(e))}function i(e){if(!a.o(o,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=()=>Object.keys(o),n.resolve=i,e.exports=n,n.id="../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: decrypt"},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encode"(e,t,a){var o={"./darwin/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/darwin/Release/lepus.node","./linux/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/linux/Release/lepus.node"};function n(e){return a(i(e))}function i(e){if(!a.o(o,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=()=>Object.keys(o),n.resolve=i,e.exports=n,n.id="../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encode"},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encode_ssr"(e,t,a){var o={"./darwin/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/darwin/Release/lepus.node","./linux/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/linux/Release/lepus.node"};function n(e){return a(i(e))}function i(e){if(!a.o(o,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=()=>Object.keys(o),n.resolve=i,e.exports=n,n.id="../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encode_ssr"},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encrypt"(e,t,a){var o={"./darwin/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/darwin/Release/lepus.node","./linux/Release/lepus.node":"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/linux/Release/lepus.node"};function n(e){return a(i(e))}function i(e){if(!a.o(o,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=()=>Object.keys(o),n.resolve=i,e.exports=n,n.id="../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encrypt"},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/index.js"(e,t,a){a("path");let{qjsCheckBin:o}=a("../../../node_modules/.pnpm/@byted-lynx+vm-check@1.0.27_debug@4.4.3/node_modules/@byted-lynx/vm-check/index.js"),n=a("fs"),i=a("../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js");function s(){return"darwin"===process.platform||"linux"===process.platform&&"x64"===process.arch}function r(){return a("../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/lepus.js")()}function c(e){!e||"function"!=typeof e.delete||"function"==typeof e.isDeleted&&e.isDeleted()||e.delete()}async function l(e){let t=await r(),a=t._encode(JSON.stringify(e)),o=a.buffer;try{if(0!==a.status)throw Error(`encode error: ${a.error_msg}`);let n={status:a.status,error_msg:a.error_msg,lepus_code:a.lepus_code,lepus_debug:a.lepus_debug,section_size:a.section_size},i=new Uint8Array(o.size());for(let e=0;e<o.size();e++)i[e]=o.get(e);if(n.buffer=Buffer.from(i),e.onTemplateDebugGenerated){let o=await e.onTemplateDebugGenerated(a.template_debug,e.templateDebugUrl),i=t.allocateUTF8(o),s=t._reencode_template_debug(bufferPtr,bufferLen,i,buffer_pool),r=t.UTF8ToString(s),c=JSON.parse(r),l=t._readBufferPool_data(buffer_pool,c.buffer),p=t._readBufferPool_len(buffer_pool,c.buffer);n.buffer=Array.from(new Uint8Array(t.HEAPU8.buffer,l,p))}return n}finally{c(o),c(a)}}function p(e){let t=a("../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encode")(`./${process.platform}/Release/lepus.node`).encode(JSON.stringify({...e}));if(0!==t.status)throw Error(`encode error: ${t.error_msg}`);return t}async function u(e,t){let a=await r(),o=Uint8Array.from(e),n=a._malloc(o.length*o.BYTES_PER_ELEMENT);a.HEAPU8.set(o,n);let i=a._encode_ssr(n,o.length*o.BYTES_PER_ELEMENT,JSON.stringify(t)),s=i.buffer;try{let e={status:i.status,error_msg:i.error_msg,lepus_code:i.lepus_code,lepus_debug:i.lepus_debug,section_size:i.section_size};if(0!==i.status)return e;let t=new Uint8Array(s.size());for(let e=0;e<s.size();e++)t[e]=s.get(e);return e.buffer=Buffer.from(t),e}finally{c(s),c(i)}}async function d(e,t){let o=a("../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encode_ssr")(`./${process.platform}/Release/lepus.node`).encode_ssr(e,JSON.stringify({...t}));return 0!==o.status||(o.buffer=Buffer.from(o.buffer)),o}async function m(e,t,a){let s=i.fileSync();n.writeFileSync(s.name,e,"utf8");let r={targetSdkVersion:void 0==t?"1.6":t,jsPath:s.name,env:void 0==a?"boe":a};try{return await o(r)}catch(e){throw Error(`QuickJS Check error: ${e}`)}finally{s.removeCallback()}}function h(e){return a("../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: encrypt")(`./${process.platform}/Release/lepus.node`).encrypt(e)}function f(e){return a("../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: decrypt")(`./${process.platform}/Release/lepus.node`).decrypt(e)}async function v(e){let t=await r();if("function"!=typeof t._encrypt)throw Error("encrypt_wasm is not supported by the current wasm build");return t._encrypt(e)}async function g(e){let t=await r();if("function"!=typeof t._decrypt)throw Error("decrypt_wasm is not supported by the current wasm build");return t._decrypt(e)}i.setGracefulCleanup(),e.exports={supportNapi:s,encode:l,encode_napi:p,encode_wasm:l,lepusCheck:async function e(t,a,o=0){return JSON.parse((await r()).cwrap("lepusCheck","string",["string","string","number"])(t,a,o))},getEncodeMode:function(e){return e?"napi"===e?p:l:s()?p:l},getEncodeModule:function(e){let t={encode:p,encodeSSR:d,qjsCheck:m,decrypt:f,encrypt:h},a={encode:l,encodeSSR:u,qjsCheck:m,decrypt:g,encrypt:v};return e?"napi"===e?t:a:s()?t:a},encodeSSRWasm:u,encodeSSRNapi:d,encrypt:h,decrypt:f,encrypt_wasm:v,decrypt_wasm:g,quickjsCheckBin:m,decode_napi:function(e){let t=Uint8Array.from(e),o=a("../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build sync recursive ^\\.\\/.*\\/Release\\/lepus\\.node$ referencedExports: decode")(`./${process.platform}/Release/lepus.node`).decode(t);if(0!==o.status)throw Error(`decode error: ${o.error_msg}`);return JSON.parse(o.result)},decode_wasm:async function e(e){let t=await r(),a=new Uint8Array(e),o=a.length,n=t._malloc(o);t.HEAPU8.set(a,n);let i=t._decode(n,o);t._free(n);try{if(0!==i.status)throw Error(`decode error: ${i.result}`);return JSON.parse(i.result)}finally{c(i)}}}},"../../../node_modules/.pnpm/@byted-lynx+vm-check@1.0.27_debug@4.4.3/node_modules/@byted-lynx/vm-check/index.js"(e,t,a){a("fs"),a("path"),a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/index.js"),a("child_process");let o=a("os");async function n(e){let t;try{var a;let n,i,s;e.useLepusNG?execute_flag=2:execute_flag=1;let r=(a=e.targetSdkVersion,n=o.platform(),i=o.arch(),s=a.replace(".",""),(Number(s)>25&&(s="25"),"x64"==i)?`@byted-lynx/js-check-${s}-${n}-64`:"x32"==i?`@byted-lynx/js-check-${s}-${n}-32`:`@byted-lynx/js-check-${s}-${n}-${i}`),c=d(r);t=await c.jsCheck(e.jsPath,execute_flag)}catch(t){return console.error(t),console.log("lepus execute failed: "+e.jsPath),{error_msg:"unknown error",status:1}}return t}async function i(e){return e.useLepusNG=!0,await n(e)}e.exports={qjsCheckBin:i,lepusCheckBin:n,qjsCheck:i,lepusCheck:n}},"../../../node_modules/.pnpm/@lynx-js+type-config@4.1.3/node_modules/@lynx-js/type-config/config-keys.js"(e){e.exports={compilerOptionsKeys:[],configKeys:["alignMouseEventWithW3C","disableLongpressAfterScroll","enableA11y","enableAccessibilityElement","enableCSSInheritance","enableCSSInlineVariables","enableCSSRule","enableEndGestureAtLastFingerUp","enableEventHandleRefactor","enableEventThrough","enableFetchAPIStandardStreaming","enableFixedNew","enableFlexBasisZeroPercent","enableGridPlacementShorthands","enableJsBindingApiThrowException","enableListNewArchitecture","enableMultiTouch","enableNativeList","enableNewGesture","enableNewIntersectionObserver","enableNewTransformOrigin","enableParseIntFlex","enableReloadLifecycle","enableSimultaneousTap","enableTextOverflow","enableTransformedTouchPosition","fontScaleEffectiveOnlyOnSp","includeFontPadding","keyboardCallbackPassRelativeHeight","longPressDuration","removeDescendantSelectorScope","tapSlop","unifyVWVHBehavior"]}},"../../../node_modules/.pnpm/@lynx-js+type-config@4.1.3/node_modules/@lynx-js/type-config/index.js"(e,t,a){let{compilerOptionsKeys:o,configKeys:n}=a("../../../node_modules/.pnpm/@lynx-js+type-config@4.1.3/node_modules/@lynx-js/type-config/config-keys.js");e.exports={compilerOptionsKeys:o,configKeys:n}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/index.js"(e,t,a){e.exports=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/axios.js")},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/adapters/http.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/settle.js"),i=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js"),s=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js"),r=a("http"),c=a("https"),l=a("../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js").http,p=a("../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js").https,u=a("url"),d=a("zlib"),m=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/package.json"),h=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/createError.js"),f=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/enhanceError.js"),v=/https:?/;e.exports=function(e){return new Promise(function(t,a){var g,b=function(e){t(e)},y=function(e){a(e)},x=e.data,_=e.headers;if("User-Agent"in _||"user-agent"in _?_["User-Agent"]||_["user-agent"]||(delete _["User-Agent"],delete _["user-agent"]):_["User-Agent"]="axios/"+m.version,x&&!o.isStream(x)){if(Buffer.isBuffer(x));else if(o.isArrayBuffer(x))x=Buffer.from(new Uint8Array(x));else{if(!o.isString(x))return y(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));x=Buffer.from(x,"utf-8")}_["Content-Length"]=x.length}var S=void 0;e.auth&&(S=(e.auth.username||"")+":"+(e.auth.password||""));var w=i(e.baseURL,e.url),$=u.parse(w),R=$.protocol||"http:";if(!S&&$.auth){var j=$.auth.split(":");S=(j[0]||"")+":"+(j[1]||"")}S&&delete _.Authorization;var E=v.test(R),k=E?e.httpsAgent:e.httpAgent,P={path:s($.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:_,agent:k,agents:{http:e.httpAgent,https:e.httpsAgent},auth:S};e.socketPath?P.socketPath=e.socketPath:(P.hostname=$.hostname,P.port=$.port);var T=e.proxy;if(!T&&!1!==T){var O=R.slice(0,-1)+"_proxy",C=process.env[O]||process.env[O.toUpperCase()];if(C){var I=u.parse(C),N=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(N&&(q=!N.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||"."===e[0]&&$.hostname.substr($.hostname.length-e.length)===e||$.hostname===e)})),q&&(T={host:I.hostname,port:I.port,protocol:I.protocol},I.auth)){var A=I.auth.split(":");T.auth={username:A[0],password:A[1]}}}}T&&(P.headers.host=$.hostname+($.port?":"+$.port:""),function e(t,a,o){if(t.hostname=a.host,t.host=a.host,t.port=a.port,t.path=o,a.auth){var n=Buffer.from(a.auth.username+":"+a.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(t){t.headers.host=t.host,e(t,a,t.href)}}(P,T,R+"//"+$.hostname+($.port?":"+$.port:"")+P.path));var z=E&&(!T||v.test(T.protocol));e.transport?g=e.transport:0===e.maxRedirects?g=z?c:r:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),g=z?p:l),e.maxBodyLength>-1&&(P.maxBodyLength=e.maxBodyLength);var M=g.request(P,function(t){if(!M.aborted){var a=t,i=t.req||M;if(204!==t.statusCode&&"HEAD"!==i.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":a=a.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if("stream"===e.responseType)s.data=a,n(b,y,s);else{var r=[],c=0;a.on("data",function(t){r.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(a.destroy(),y(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i)))}),a.on("error",function(t){M.aborted||y(f(t,e,null,i))}),a.on("end",function(){var t=Buffer.concat(r);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=o.stripBOM(t))),s.data=t,n(b,y,s)})}}});if(M.on("error",function(t){M.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||y(f(t,e,null,M))}),e.timeout){var L=parseInt(e.timeout,10);if(isNaN(L))return void y(h("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",M));M.setTimeout(L,function(){M.abort(),y(h("timeout of "+L+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",M))})}e.cancelToken&&e.cancelToken.promise.then(function(e){M.aborted||(M.abort(),y(e))}),o.isStream(x)?x.on("error",function(t){y(f(t,e,null,M))}).pipe(M):M.end(x)})}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/settle.js"),i=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js"),s=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js"),r=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js"),c=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js"),l=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js"),p=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/createError.js");e.exports=function(e){return new Promise(function(t,a){var u=e.data,d=e.headers,m=e.responseType;o.isFormData(u)&&delete d["Content-Type"];var h=new XMLHttpRequest;e.auth&&(d.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password?unescape(encodeURIComponent(e.auth.password)):"")));var f=r(e.baseURL,e.url);function v(){if(h){var o="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null;n(t,a,{data:m&&"text"!==m&&"json"!==m?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:o,config:e,request:h}),h=null}}if(h.open(e.method.toUpperCase(),s(f,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){!h||4!==h.readyState||(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(a(p("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){a(p("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),a(p(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},o.isStandardBrowserEnv()){var g=(e.withCredentials||l(f))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}"setRequestHeader"in h&&o.forEach(d,function(e,t){void 0===u&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)}),o.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),m&&"json"!==m&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),a(e),h=null)}),u||(u=null),h.send(u)})}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/axios.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/bind.js"),i=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/Axios.js"),s=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js");function r(e){var t=new i(e),a=n(i.prototype.request,t);return o.extend(a,i.prototype,t),o.extend(a,t),a}var c=r(a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/defaults.js"));c.Axios=i,c.create=function(e){return r(s(c.defaults,e))},c.Cancel=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/Cancel.js"),c.CancelToken=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js"),c.isCancel=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js"),c.all=function(e){return Promise.all(e)},c.spread=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/spread.js"),c.isAxiosError=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js"),e.exports=c,e.exports.default=c},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/Cancel.js"(e){function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/Cancel.js");function n(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,a=this;e(function(e){a.reason||(a.reason=new o(e),t(a.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n(function(t){e=t}),cancel:e}},e.exports=n},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js"(e){e.exports=function(e){return!!(e&&e.__CANCEL__)}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/Axios.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js"),i=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js"),s=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js"),r=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js"),c=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/validator.js"),l=c.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},(e=r(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t,a=e.transitional;void 0!==a&&c.assertOptions(a,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var o=[],n=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(n=n&&t.synchronous,o.unshift(t.fulfilled,t.rejected))});var i=[];if(this.interceptors.response.forEach(function(e){i.push(e.fulfilled,e.rejected)}),!n){var p=[s,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(i),t=Promise.resolve(e);p.length;)t=t.then(p.shift(),p.shift());return t}for(var u=e;o.length;){var d=o.shift(),m=o.shift();try{u=d(u)}catch(e){m(e);break}}try{t=s(u)}catch(e){return Promise.reject(e)}for(;i.length;)t=t.then(i.shift(),i.shift());return t},p.prototype.getUri=function(e){return n((e=r(this.defaults,e)).url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(e){p.prototype[e]=function(t,a){return this.request(r(a||{},{method:e,url:t,data:(a||{}).data}))}}),o.forEach(["post","put","patch"],function(e){p.prototype[e]=function(t,a,o){return this.request(r(o||{},{method:e,url:t,data:a}))}}),e.exports=p},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js");function n(){this.handlers=[]}n.prototype.use=function(e,t,a){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!a&&a.synchronous,runWhen:a?a.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js");e.exports=function(e,t){return e&&!o(t)?n(e,t):t}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/createError.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/enhanceError.js");e.exports=function(e,t,a,n,i){return o(Error(e),t,a,n,i)}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/transformData.js"),i=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js"),s=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/defaults.js");function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return r(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!i(t)&&(r(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/enhanceError.js"(e){e.exports=function(e,t,a,o,n){return e.config=t,a&&(e.code=a),e.request=o,e.response=n,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js");e.exports=function(e,t){t=t||{};var a={},n=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],r=["validateStatus"];function c(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function l(n){o.isUndefined(t[n])?o.isUndefined(e[n])||(a[n]=c(void 0,e[n])):a[n]=c(e[n],t[n])}o.forEach(n,function(e){o.isUndefined(t[e])||(a[e]=c(void 0,t[e]))}),o.forEach(i,l),o.forEach(s,function(n){o.isUndefined(t[n])?o.isUndefined(e[n])||(a[n]=c(void 0,e[n])):a[n]=c(void 0,t[n])}),o.forEach(r,function(o){o in t?a[o]=c(e[o],t[o]):o in e&&(a[o]=c(void 0,e[o]))});var p=n.concat(i).concat(s).concat(r),u=Object.keys(e).concat(Object.keys(t)).filter(function(e){return -1===p.indexOf(e)});return o.forEach(u,l),a}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/settle.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/createError.js");e.exports=function(e,t,a){var n=a.config.validateStatus;!a.status||!n||n(a.status)?e(a):t(o("Request failed with status code "+a.status,a.config,null,a.request,a))}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/transformData.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/defaults.js");e.exports=function(e,t,a){var i=this||n;return o.forEach(a,function(a){e=a.call(i,e,t)}),e}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/defaults.js"(e,t,a){var o,n=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),i=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/normalizeHeaderName.js"),s=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/core/enhanceError.js"),r={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("u">typeof XMLHttpRequest?o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js"):"u">typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/adapters/http.js")),o),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(n.isObject(e)||t&&"application/json"===t["Content-Type"]){c(t,"application/json");if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}return e}],transformResponse:[function(e){var t=this.transitional,a=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!a&&"json"===this.responseType;if(i||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){l.headers[e]={}}),n.forEach(["post","put","patch"],function(e){l.headers[e]=n.merge(r)}),e.exports=l},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/bind.js"(e){e.exports=function(e,t){return function(){for(var a=Array(arguments.length),o=0;o<a.length;o++)a[o]=arguments[o];return e.apply(t,a)}}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js");function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,a){if(!t)return e;if(a)i=a(t);else if(o.isURLSearchParams(t))i=t.toString();else{var i,s=[];o.forEach(t,function(e,t){null!=e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))}))}),i=s.join("&")}if(i){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js"(e){e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js");e.exports=o.isStandardBrowserEnv()?{write:function(e,t,a,n,i,s){var r=[];r.push(e+"="+encodeURIComponent(t)),o.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),o.isString(n)&&r.push("path="+n),o.isString(i)&&r.push("domain="+i),!0===s&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js"(e){e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js"(e){e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js");e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");function n(e){var o=e;return t&&(a.setAttribute("href",o),o=a.href),a.setAttribute("href",o),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return e=n(window.location.href),function(t){var a=o.isString(t)?n(t):t;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/normalizeHeaderName.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js");e.exports=function(e,t){o.forEach(e,function(a,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[o])})}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,a,i,s={};return e&&o.forEach(e.split("\n"),function(e){i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),a=o.trim(e.substr(i+1)),t&&(s[t]&&n.indexOf(t)>=0||("set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([a]):s[t]=s[t]?s[t]+", "+a:a))}),s}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/spread.js"(e){e.exports=function(e){return function(t){return e.apply(null,t)}}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/validator.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/package.json"),n={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){n[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var i={},s=o.version.split(".");function r(e,t){for(var a=t?t.split("."):s,o=e.split("."),n=0;n<3;n++)if(a[n]>o[n])return!0;else if(a[n]<o[n])break;return!1}n.transitional=function(e,t,a){var n=t&&r(t);function s(e,t){return"[Axios v"+o.version+"] Transitional option '"+e+"'"+t+(a?". "+a:"")}return function(a,o,r){if(!1===e)throw Error(s(o," has been removed in "+t));return n&&!i[o]&&(i[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(a,o,r)}},e.exports={isOlderVersion:r,assertOptions:function(e,t,a){if("object"!=typeof e)throw TypeError("options must be an object");for(var o=Object.keys(e),n=o.length;n-- >0;){var i=o[n],s=t[i];if(s){var r=e[i],c=void 0===r||s(r,i,e);if(!0!==c)throw TypeError("option "+i+" must be "+c);continue}if(!0!==a)throw Error("Unknown option "+i)}},validators:n}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/utils.js"(e,t,a){var o=a("../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/lib/helpers/bind.js"),n=Object.prototype.toString;function i(e){return"[object Array]"===n.call(e)}function s(e){return void 0===e}function r(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==n.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===n.call(e)}function p(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===n.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"u">typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:r,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===n.call(e)},isFile:function(e){return"[object File]"===n.call(e)},isBlob:function(e){return"[object Blob]"===n.call(e)},isFunction:l,isStream:function(e){return r(e)&&l(e.pipe)},isURLSearchParams:function(e){return"u">typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return(!("u">typeof navigator)||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"u">typeof window&&"u">typeof document},forEach:p,merge:function e(){var t={};function a(a,o){c(t[o])&&c(a)?t[o]=e(t[o],a):c(a)?t[o]=e({},a):i(a)?t[o]=a.slice():t[o]=a}for(var o=0,n=arguments.length;o<n;o++)p(arguments[o],a);return t},extend:function(e,t,a){return p(t,function(t,n){a&&"function"==typeof t?e[n]=o(t,a):e[n]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},"../../../node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js"(e,t,a){var o=a("path").relative;e.exports=function(e){var t,a;if(!e)throw TypeError("argument namespace is required");function o(e){r.call(o,e)}return o._file=c(m()[1])[0],t=e,o._ignored=!!process.noDeprecation||i(process.env.NO_DEPRECATION||"",t),o._namespace=e,a=e,o._traced=!!process.traceDeprecation||i(process.env.TRACE_DEPRECATION||"",a),o._warned=Object.create(null),o.function=f,o.property=v,o};var n=process.cwd();function i(e,t){for(var a=e.split(/[ ,]+/),o=String(t).toLowerCase(),n=0;n<a.length;n++){var i=a[n];if(i&&("*"===i||i.toLowerCase()===o))return!0}return!1}function s(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var a=0;a<e.length;a++)t+="\n at "+e[a].toString();return t}function r(e,t){var a,o,n,i,r,d,h=(o="deprecation",("function"!=typeof(a=process).listenerCount?a.listeners(o).length:a.listenerCount(o))>0);if(h||!this._ignored){var f=0,v=!1,g=m(),b=this._file;for(t?(d=t,(r=c(g[1])).name=d.name,b=r[0]):r=d=c(g[f=2]);f<g.length;f++)if((i=(n=c(g[f]))[0])===b)v=!0;else if(i===this._file)b=this._file;else if(v)break;var y=n?d.join(":")+"__"+n.join(":"):void 0;if(void 0===y||!(y in this._warned)){this._warned[y]=!0;var x=e;if(x||(x=r!==d&&r.name?l(r):l(d)),h){var _=function e(t,a,o){var n,i=Error();return Object.defineProperty(i,"constructor",{value:e}),Object.defineProperty(i,"message",{configurable:!0,enumerable:!1,value:a,writable:!0}),Object.defineProperty(i,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(i,"namespace",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(i,"stack",{configurable:!0,enumerable:!1,get:function(){return void 0!==n?n:n=s.call(this,o)},set:function(e){n=e}}),i}(this._namespace,x,g.slice(f));process.emit("deprecation",_);return}var S=(process.stderr.isTTY?u:p).call(this,x,n,g.slice(f));process.stderr.write(S+"\n","utf8")}}}function c(e){var t=e.getFileName()||"<anonymous>",a=e.getLineNumber(),o=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var n=[t,a,o];return n.callSite=e,n.name=e.getFunctionName(),n}function l(e){var t=e.callSite,a=e.name;a||(a="<anonymous@"+d(e)+">");var o=t.getThis(),n=o&&t.getTypeName();return"Object"===n&&(n=void 0),"Function"===n&&(n=o.name||n),n&&t.getMethodName()?n+"."+a:a}function p(e,t,a){var o=new Date().toUTCString()+" "+this._namespace+" deprecated "+e;if(this._traced){for(var n=0;n<a.length;n++)o+="\n at "+a[n].toString();return o}return t&&(o+=" at "+d(t)),o}function u(e,t,a){var o="\x1b[36;1m"+this._namespace+"\x1b[22;39m \x1b[33;1mdeprecated\x1b[22;39m \x1b[0m"+e+"\x1b[39m";if(this._traced){for(var n=0;n<a.length;n++)o+="\n \x1b[36mat "+a[n].toString()+"\x1b[39m";return o}return t&&(o+=" \x1b[36m"+d(t)+"\x1b[39m"),o}function d(e){return o(n,e[0])+":"+e[1]+":"+e[2]}function m(){var e=Error.stackTraceLimit,t={},a=Error.prepareStackTrace;Error.prepareStackTrace=h,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var o=t.stack.slice(1);return Error.prepareStackTrace=a,Error.stackTraceLimit=e,o}function h(e,t){return t}function f(e,t){if("function"!=typeof e)throw TypeError("argument fn must be a function");var a=function(e){for(var t="",a=0;a<e;a++)t+=", arg"+a;return t.substr(2)}(e.length),o=c(m()[1]);return o.name=e.name,Function("fn","log","deprecate","message","site",'"use strict"\nreturn function ('+a+") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(e,r,this,t,o)}function v(e,t,a){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("argument obj must be object");var o,n,i=Object.getOwnPropertyDescriptor(e,t);if(!i)throw TypeError("must call property on owner object");if(!i.configurable)throw TypeError("property must be configurable");var s=this,l=c(m()[1]);l.name=t,"value"in i&&(n=(o=Object.getOwnPropertyDescriptor(e,t)).value,o.get=function(){return n},o.writable&&(o.set=function(e){return n=e}),delete o.value,delete o.writable,Object.defineProperty(e,t,o),i=o);var p=i.get,u=i.set;"function"==typeof p&&(i.get=function(){return r.call(s,a,l),p.apply(this,arguments)}),"function"==typeof u&&(i.set=function(){return r.call(s,a,l),u.apply(this,arguments)}),Object.defineProperty(e,t,i)}},"../../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js"(e){e.exports=function(e,t){if(!Array.isArray(e))throw TypeError("arg must be an array of [ee, events...] arrays");for(var a=[],o=0;o<e.length;o++){var n=e[o];if(!Array.isArray(n)||n.length<2)throw TypeError("each array member must be [ee, events...]");for(var i=n[0],s=1;s<n.length;s++){var r=n[s],c=function(e,t){return function(a){for(var o=Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];t("error"===e?a:null,this,e,o)}}(r,l);i.on(r,c),a.push({ee:i,event:r,fn:c})}}function l(){p(),t.apply(null,arguments)}function p(){for(var e,t=0;t<a.length;t++)(e=a[t]).ee.removeListener(e.event,e.fn)}function u(e){t=e}return u.cancel=p,u}},"../../../node_modules/.pnpm/encodeurl@2.0.0/node_modules/encodeurl/index.js"(e){e.exports=function(e){return String(e).replace(a,"$1�$2").replace(t,encodeURI)};var t=/(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,a=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g},"../../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js"(e){var t=/["'&<>]/;e.exports=function(e){var a,o=""+e,n=t.exec(o);if(!n)return o;var i="",s=0,r=0;for(s=n.index;s<o.length;s++){switch(o.charCodeAt(s)){case 34:a=""";break;case 38:a="&";break;case 39:a="'";break;case 60:a="<";break;case 62:a=">";break;default:continue}r!==s&&(i+=o.substring(r,s)),r=s+1,i+=a}return r!==s?i+o.substring(r,s):i}},"../../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js"(e,t,a){e.exports=function(e,t){if(null==e)throw TypeError("argument entity is required");var a,s,r,c=(a=e,"function"==typeof n&&a instanceof n||a&&"object"==typeof a&&"ctime"in a&&"[object Date]"===i.call(a.ctime)&&"mtime"in a&&"[object Date]"===i.call(a.mtime)&&"ino"in a&&"number"==typeof a.ino&&"size"in a&&"number"==typeof a.size),l=t&&"boolean"==typeof t.weak?t.weak:c;if(!c&&"string"!=typeof e&&!Buffer.isBuffer(e))throw TypeError("argument entity must be string, Buffer, or fs.Stats");var p=c?(r=(s=e).mtime.getTime().toString(16),'"'+s.size.toString(16)+"-"+r+'"'):function(e){if(0===e.length)return'"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';var t=o.createHash("sha1").update(e,"utf8").digest("base64").substring(0,27);return'"'+("string"==typeof e?Buffer.byteLength(e,"utf8"):e.length).toString(16)+"-"+t+'"'}(e);return l?"W/"+p:p};var o=a("crypto"),n=a("fs").Stats,i=Object.prototype.toString},"../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(e,t,a){var o;e.exports=function(){if(!o){try{o=a("../../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js")("follow-redirects")}catch(e){}"function"!=typeof o&&(o=function(){})}o.apply(null,arguments)}},"../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(e,t,a){var o,n,i,s=a("url"),r=s.URL,c=a("http"),l=a("https"),p=a("stream").Writable,u=a("assert"),d=a("../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js");o="u">typeof process,n="u">typeof window&&"u">typeof document,i=N(Error.captureStackTrace),o||!n&&i||console.warn("The follow-redirects package should be excluded from browser builds.");var m=!1;try{u(new r(""))}catch(e){m="ERR_INVALID_URL"===e.code}var h=["Authorization","Proxy-Authorization","Cookie"],f=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],v=["abort","aborted","connect","error","socket","timeout"],g=Object.create(null);v.forEach(function(e){g[e]=function(t,a,o){this._redirectable.emit(e,t,a,o)}});var b=O("ERR_INVALID_URL","Invalid URL",TypeError),y=O("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),x=O("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),_=O("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),S=O("ERR_STREAM_WRITE_AFTER_END","write after end"),w=p.prototype.destroy||j;function $(e,t){p.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var a=this;this._onNativeResponse=function(e){try{a._processResponse(e)}catch(e){a.emit("error",e instanceof y?e:new y({cause:e}))}},this._headerFilter=RegExp("^(?:"+h.concat(e.sensitiveHeaders).map(q).join("|")+")$","i"),this._performRequest()}function R(e){var t={maxRedirects:21,maxBodyLength:0xa00000},a={};return Object.keys(e).forEach(function(o){var n=o+":",i=a[n]=e[o],s=t[o]=Object.create(i);Object.defineProperties(s,{request:{value:function(e,o,i){var s;return(s=e,r&&s instanceof r)?e=P(e):I(e)?e=P(E(e)):(i=o,o=k(e),e={protocol:n}),N(o)&&(i=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=a,I(o.host)||I(o.hostname)||(o.hostname="::1"),u.equal(o.protocol,n,"protocol mismatch"),d("options",o),new $(o,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,a){var o=s.request(e,t,a);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})}),t}function j(){}function E(e){var t;if(m)t=new r(e);else if(!I((t=k(s.parse(e))).protocol))throw new b({input:e});return t}function k(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new b({input:e.href||e});return e}function P(e,t){var a=t||{};for(var o of f)a[o]=e[o];return a.hostname.startsWith("[")&&(a.hostname=a.hostname.slice(1,-1)),""!==a.port&&(a.port=Number(a.port)),a.path=a.search?a.pathname+a.search:a.pathname,a}function T(e,t){var a;for(var o in t)e.test(o)&&(a=t[o],delete t[o]);return null==a?void 0:String(a).trim()}function O(e,t,a){function o(a){N(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return o.prototype=new(a||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),o}function C(e,t){for(var a of v)e.removeListener(a,g[a]);e.on("error",j),e.destroy(t)}function I(e){return"string"==typeof e||e instanceof String}function N(e){return"function"==typeof e}function q(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}$.prototype=Object.create(p.prototype),$.prototype.abort=function(){C(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},$.prototype.destroy=function(e){return C(this._currentRequest,e),w.call(this,e),this},$.prototype.write=function(e,t,a){var o;if(this._ending)throw new S;if(!I(e)&&!("object"==typeof(o=e)&&"length"in o))throw TypeError("data should be a string, Buffer or Uint8Array");if(N(t)&&(a=t,t=null),0===e.length){a&&a();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,a)):(this.emit("error",new _),this.abort())},$.prototype.end=function(e,t,a){if(N(e)?(a=e,e=t=null):N(t)&&(a=t,t=null),e){var o=this,n=this._currentRequest;this.write(e,t,function(){o._ended=!0,n.end(null,null,a)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,a)},$.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},$.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},$.prototype.setTimeout=function(e,t){var a=this;function o(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function n(t){a._timeout&&clearTimeout(a._timeout),a._timeout=setTimeout(function(){a.emit("timeout"),i()},e),o(t)}function i(){a._timeout&&(clearTimeout(a._timeout),a._timeout=null),a.removeListener("abort",i),a.removeListener("error",i),a.removeListener("response",i),a.removeListener("close",i),t&&a.removeListener("timeout",t),a.socket||a._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",o),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){$.prototype[e]=function(t,a){return this._currentRequest[e](t,a)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty($.prototype,e,{get:function(){return this._currentRequest[e]}})}),$.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.sensitiveHeaders instanceof Array||(e.sensitiveHeaders=[]),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},$.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError("Unsupported protocol "+e);if(this._options.agents){var a=e.slice(0,-1);this._options.agent=this._options.agents[a]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var n of(o._redirectable=this,v))o.on(n,g[n]);if(this._currentUrl=/^\//.test(this._options.path)?s.format(this._options):this._options.path,this._isRedirect){var i=0,r=this,c=this._requestBodyBuffers;!function e(t){if(o===r._currentRequest)if(t)r.emit("error",t);else if(i<c.length){var a=c[i++];o.finished||o.write(a.data,a.encoding,e)}else r._ended&&o.end()}()}},$.prototype._processResponse=function(e){var t,a,o,n,i,c,l=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:l});var p=e.headers.location;if(!p||!1===this._options.followRedirects||l<300||l>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(C(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new x;var h=this._options.beforeRedirect;h&&(c=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var f=this._options.method;(301!==l&&302!==l||"POST"!==this._options.method)&&(303!==l||/^(?:GET|HEAD)$/.test(this._options.method))||(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var v=T(/^host$/i,this._options.headers),g=E(this._currentUrl),b=v||g.host,y=/^\w+:/.test(p)?this._currentUrl:s.format(Object.assign(g,{host:b})),_=(t=p,a=y,m?new r(t,a):E(s.resolve(a,t)));if(d("redirecting to",_.href),this._isRedirect=!0,P(_,this._options),(_.protocol===g.protocol||"https:"===_.protocol)&&(_.host===b||(o=_.host,n=b,u(I(o)&&I(n)),(i=o.length-n.length-1)>0&&"."===o[i]&&o.endsWith(n)))||T(this._headerFilter,this._options.headers),N(h)){var S={headers:e.headers,statusCode:l},w={url:y,method:f,headers:c};h(this._options,S,w),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=R({http:c,https:l}),e.exports.wrap=R},"../../../node_modules/.pnpm/fresh@2.0.0/node_modules/fresh/index.js"(e){var t=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;function a(e){var t=e&&Date.parse(e);return"number"==typeof t?t:NaN}e.exports=function(e,o){var n=e["if-modified-since"],i=e["if-none-match"];if(!n&&!i)return!1;var s=e["cache-control"];if(s&&t.test(s))return!1;if(i){if("*"===i)return!0;var r=o.etag;if(!r)return!1;for(var c=function(e){for(var t=0,a=[],o=0,n=0,i=e.length;n<i;n++)switch(e.charCodeAt(n)){case 32:o===t&&(o=t=n+1);break;case 44:a.push(e.substring(o,t)),o=t=n+1;break;default:t=n+1}return a.push(e.substring(o,t)),a}(i),l=0;l<c.length;l++){var p=c[l];if(p===r||p==="W/"+r||"W/"+p===r)return!0}return!1}if(n){var u=o["last-modified"];if(!u||!(a(u)<=a(n)))return!1}return!0}},"../../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js"(e,t,a){var o,n,i,s,r=a("../../../node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js")("http-errors"),c=a("../../../node_modules/.pnpm/setprototypeof@1.2.0/node_modules/setprototypeof/index.js"),l=a("../../../node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js"),p=a("../../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"),u=a("../../../node_modules/.pnpm/toidentifier@1.0.1/node_modules/toidentifier/index.js");function d(e){return Number(String(e).charAt(0)+"00")}function m(e,t){var a=Object.getOwnPropertyDescriptor(e,"name");a&&a.configurable&&(a.value=t,Object.defineProperty(e,"name",a))}function h(e){return"Error"===e.slice(-5)?e:e+"Error"}e.exports=function e(){for(var t,a,o=500,n={},i=0;i<arguments.length;i++){var s=arguments[i],c=typeof s;if("object"===c&&s instanceof Error)o=(t=s).status||t.statusCode||o;else if("number"===c&&0===i)o=s;else if("string"===c)a=s;else if("object"===c)n=s;else throw TypeError("argument #"+(i+1)+" unsupported type "+c)}"number"==typeof o&&(o<400||o>=600)&&r("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof o||!l.message[o]&&(o<400||o>=600))&&(o=500);var p=e[o]||e[d(o)];for(var u in t||Error.captureStackTrace(t=p?new p(a):Error(a||l.message[o]),e),p&&t instanceof p&&t.status===o||(t.expose=o<500,t.status=t.statusCode=o),n)"status"!==u&&"statusCode"!==u&&(t[u]=n[u]);return t},e.exports.HttpError=function(){function e(){throw TypeError("cannot construct abstract class")}return p(e,Error),e}(),e.exports.isHttpError=(o=e.exports.HttpError,function(e){return!!e&&"object"==typeof e&&(e instanceof o||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),n=e.exports,i=l.codes,s=e.exports.HttpError,i.forEach(function(e){var t,a=u(l.message[e]);switch(d(e)){case 400:t=function(e,t,a){var o=h(t);function n(e){var t=null!=e?e:l.message[a],i=Error(t);return Error.captureStackTrace(i,n),c(i,n.prototype),Object.defineProperty(i,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(i,"name",{enumerable:!1,configurable:!0,value:o,writable:!0}),i}return p(n,e),m(n,o),n.prototype.status=a,n.prototype.statusCode=a,n.prototype.expose=!0,n}(s,a,e);break;case 500:t=function(e,t,a){var o=h(t);function n(e){var t=null!=e?e:l.message[a],i=Error(t);return Error.captureStackTrace(i,n),c(i,n.prototype),Object.defineProperty(i,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(i,"name",{enumerable:!1,configurable:!0,value:o,writable:!0}),i}return p(n,e),m(n,o),n.prototype.status=a,n.prototype.statusCode=a,n.prototype.expose=!1,n}(s,a,e)}t&&(n[e]=t,n[a]=t)})},"../../../node_modules/.pnpm/mime-db@1.54.0/node_modules/mime-db/index.js"(e,t,a){e.exports=a("../../../node_modules/.pnpm/mime-db@1.54.0/node_modules/mime-db/db.json")},"../../../node_modules/.pnpm/mime-types@3.0.2/node_modules/mime-types/index.js"(e,t,a){var o,n,i=a("../../../node_modules/.pnpm/mime-db@1.54.0/node_modules/mime-db/index.js"),s=a("path").extname,r=a("../../../node_modules/.pnpm/mime-types@3.0.2/node_modules/mime-types/mimeScore.js"),c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),a=t&&i[t[1].toLowerCase()];return a&&a.charset?a.charset:!!(t&&l.test(t[1]))&&"UTF-8"}function u(e){if(!e||"string"!=typeof e)return!1;var a=c.exec(e),o=a&&t.extensions[a[1].toLowerCase()];return!!o&&!!o.length&&o[0]}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var a=-1===e.indexOf("/")?t.lookup(e):e;if(!a)return!1;if(-1===a.indexOf("charset")){var o=t.charset(a);o&&(a+="; charset="+o.toLowerCase())}return a},t.extension=u,t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var a=s("x."+e).toLowerCase().slice(1);return!!a&&(t.types[a]||!1)},t.types=Object.create(null),t._extensionConflicts=[],o=t.extensions,n=t.types,Object.keys(i).forEach(function(e){var a=i[e].extensions;if(a&&a.length){o[e]=a;for(var s=0;s<a.length;s++){var c,l,p=a[s];n[p]=(c=n[p],l=e,(c?r(c,i[c].source):0)>(l?r(l,i[l].source):0)?c:l);let o=function(e,a){var o=["nginx","apache",void 0,"iana"],n=e?o.indexOf(i[e].source):0,s=a?o.indexOf(i[a].source):0;return"application/octet-stream"!==t.types[u]&&(n>s||n===s&&t.types[u]?.slice(0,12)==="application/")||n>s?e:a}(n[p],e);o!==n[p]&&t._extensionConflicts.push([p,o,n[p]])}}})},"../../../node_modules/.pnpm/mime-types@3.0.2/node_modules/mime-types/mimeScore.js"(e){var t={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},a={nginx:10,apache:20,iana:40,default:30},o={application:1,font:2,audio:2,video:3,default:0};e.exports=function(e,n="default"){if("application/octet-stream"===e)return 0;let[i,s]=e.split("/");return(t[s.replace(/(\.|x-).*/,"$1")]||t.default)+(a[n]||a.default)+(o[i]||o.default)+(1-e.length/100)}},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/darwin/Release/lepus.node"(e,t,a){e=a.nmd(e);try{process.dlopen(e,a("path").join(C,a.p,"lepus.7db599fd.node"))}catch(e){throw Error("node-loader:\n"+e)}},"../../../node_modules/.pnpm/@byted-lynx+tasm@4.4.40_debug@4.4.3/node_modules/@byted-lynx/tasm/build/linux/Release/lepus.node"(e,t,a){e=a.nmd(e);try{process.dlopen(e,a("path").join(C,a.p,"lepus.904aa689.node"))}catch(e){throw Error("node-loader:\n"+e)}},"../../../node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js"(e,t,a){e.exports=function(e,t){var a,r,c,l,p;return!1!==s(e)?i(t,null,e):(c=e,l=(a=t,(o.AsyncResource&&(r=new o.AsyncResource(a.name||"bound-anonymous-fn")),r&&r.runInAsyncScope)?r.runInAsyncScope.bind(r,a,null):a),(p=c.__onFinished)&&p.queue||(p=c.__onFinished=function(e){function t(a){if(e.__onFinished===t&&(e.__onFinished=null),t.queue){var o=t.queue;t.queue=null;for(var n=0;n<o.length;n++)o[n](a,e)}}return t.queue=[],t}(c),function(e,t){var a,o,i,s,r,c=!1;function l(e){s.cancel(),r.cancel(),c=!0,t(e)}function p(t){e.removeListener("socket",p),c||s===r&&(r=n([[t,"error","close"]],l))}(s=r=n([[e,"end","finish"]],l),e.socket)?p(e.socket):(e.on("socket",p),void 0===e.socket&&(a=e,o=p,"function"==typeof(i=a.assignSocket)&&(a.assignSocket=function(e){i.call(this,e),o(e)})))}(c,p)),p.queue.push(l)),e},e.exports.isFinished=s;var o=function(){try{return a("async_hooks")}catch(e){return{}}}(),n=a("../../../node_modules/.pnpm/ee-first@1.1.1/node_modules/ee-first/index.js"),i="function"==typeof setImmediate?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function s(e){var t=e.socket;return"boolean"==typeof e.finished?!!(e.finished||t&&!t.writable):"boolean"==typeof e.complete?!!(e.upgrade||!t||!t.readable||e.complete&&!e.readable):void 0}},"../../../node_modules/.pnpm/range-parser@1.3.0/node_modules/range-parser/index.js"(e){function t(e){return/^\d+$/.test(e)?Number(e):NaN}function a(e,t){return{start:e.start,end:e.end,index:t}}function o(e){return{start:e.start,end:e.end}}function n(e,t){return e.index-t.index}function i(e,t){return e.start-t.start}e.exports=function(e,s,r){if("string"!=typeof s)throw TypeError("argument str must be a string");var c=s.indexOf("=");if(-1===c)return -2;var l=s.slice(c+1).split(","),p=[];p.type=s.slice(0,c);for(var u=0;u<l.length;u++){var d=l[u].indexOf("-");if(-1===d)return -2;var m=l[u].slice(0,d).trim(),h=l[u].slice(d+1).trim(),f=t(m),v=t(h);if(0===m.length?(f=e-v,v=e-1):0===h.length&&(v=e-1),v>e-1&&(v=e-1),isNaN(f)||isNaN(v))return -2;f>v||f<0||p.push({start:f,end:v})}return p.length<1?-1:r&&r.combine?function(e){for(var t=e.map(a).sort(i),s=0,r=1;r<t.length;r++){var c=t[r],l=t[s];c.start>l.end+1?t[++s]=c:c.end>l.end&&(l.end=c.end,l.index=Math.min(l.index,c.index))}t.length=s+1;var p=t.sort(n).map(o);return p.type=e.type,p}(p):p}},"../../../node_modules/.pnpm/send@1.2.0/node_modules/send/index.js"(e,t,a){var o=a("../../../node_modules/.pnpm/http-errors@2.0.1/node_modules/http-errors/index.js"),n=a("../../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js")("send"),i=a("../../../node_modules/.pnpm/encodeurl@2.0.0/node_modules/encodeurl/index.js"),s=a("../../../node_modules/.pnpm/escape-html@1.0.3/node_modules/escape-html/index.js"),r=a("../../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js"),c=a("../../../node_modules/.pnpm/fresh@2.0.0/node_modules/fresh/index.js"),l=a("fs"),p=a("../../../node_modules/.pnpm/mime-types@3.0.2/node_modules/mime-types/index.js"),u=a("../../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"),d=a("../../../node_modules/.pnpm/on-finished@2.4.1/node_modules/on-finished/index.js"),m=a("../../../node_modules/.pnpm/range-parser@1.3.0/node_modules/range-parser/index.js"),h=a("path"),f=a("../../../node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js"),v=a("stream"),g=a("util"),b=h.extname,y=h.join,x=h.normalize,_=h.resolve,S=h.sep,w=/^ *bytes=/,$=/(?:^|[\\/])\.\.(?:[\\/]|$)/;function R(e,t,a){v.call(this);var o=a||{};if(this.options=o,this.path=t,this.req=e,this._acceptRanges=void 0===o.acceptRanges||!!o.acceptRanges,this._cacheControl=void 0===o.cacheControl||!!o.cacheControl,this._etag=void 0===o.etag||!!o.etag,this._dotfiles=void 0!==o.dotfiles?o.dotfiles:"ignore","ignore"!==this._dotfiles&&"allow"!==this._dotfiles&&"deny"!==this._dotfiles)throw TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._extensions=void 0!==o.extensions?P(o.extensions,"extensions option"):[],this._immutable=void 0!==o.immutable&&!!o.immutable,this._index=void 0!==o.index?P(o.index,"index option"):["index.html"],this._lastModified=void 0===o.lastModified||!!o.lastModified,this._maxage=o.maxAge||o.maxage,this._maxage="string"==typeof this._maxage?u(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),31536e6),this._root=o.root?_(o.root):null}function j(e,t,a){return e+" "+(a?a.start+"-"+a.end:"*")+"/"+t}function E(e,t){return'<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>'+e+"</title>\n</head>\n<body>\n<pre>"+t+"</pre>\n</body>\n</html>\n"}function k(e,t){return("function"!=typeof e.listenerCount?e.listeners(t).length:e.listenerCount(t))>0}function P(e,t){for(var a=[].concat(e||[]),o=0;o<a.length;o++)if("string"!=typeof a[o])throw TypeError(t+" must be array of strings or false");return a}function T(e){var t=e&&Date.parse(e);return"number"==typeof t?t:NaN}e.exports=function(e,t,a){return new R(e,t,a)},g.inherits(R,v),R.prototype.error=function(e,t){if(k(this,"error")){var a,n;return this.emit("error",(a=e,(n=t)?n instanceof Error?o(a,n,{expose:!1}):o(a,n):o(a)))}var i=this.res,r=E("Error",s(f.message[e]||String(e)));(function(e){for(let t of e.getHeaderNames())e.removeHeader(t)})(i),t&&t.headers&&function(e,t){for(var a=Object.keys(t),o=0;o<a.length;o++){var n=a[o];e.setHeader(n,t[n])}}(i,t.headers),i.statusCode=e,i.setHeader("Content-Type","text/html; charset=UTF-8"),i.setHeader("Content-Length",Buffer.byteLength(r)),i.setHeader("Content-Security-Policy","default-src 'none'"),i.setHeader("X-Content-Type-Options","nosniff"),i.end(r)},R.prototype.hasTrailingSlash=function(){return"/"===this.path[this.path.length-1]},R.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]},R.prototype.isPreconditionFailure=function(){var e=this.req,t=this.res,a=e.headers["if-match"];if(a){var o=t.getHeader("ETag");return!o||"*"!==a&&(function(e){for(var t=0,a=[],o=0,n=0,i=e.length;n<i;n++)switch(e.charCodeAt(n)){case 32:o===t&&(o=t=n+1);break;case 44:o!==t&&a.push(e.substring(o,t)),o=t=n+1;break;default:t=n+1}return o!==t&&a.push(e.substring(o,t)),a})(a).every(function(e){return e!==o&&e!=="W/"+o&&"W/"+e!==o})}var n=T(e.headers["if-unmodified-since"]);if(!isNaN(n)){var i=T(t.getHeader("Last-Modified"));return isNaN(i)||i>n}return!1},R.prototype.removeContentHeaderFields=function(){var e=this.res;e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Length"),e.removeHeader("Content-Range"),e.removeHeader("Content-Type")},R.prototype.notModified=function(){var e=this.res;n("not modified"),this.removeContentHeaderFields(),e.statusCode=304,e.end()},R.prototype.headersAlreadySent=function(){var e=Error("Can't set headers after they are sent.");n("headers already sent"),this.error(500,e)},R.prototype.isCachable=function(){var e=this.res.statusCode;return e>=200&&e<300||304===e},R.prototype.onStatError=function(e){switch(e.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,e);break;default:this.error(500,e)}},R.prototype.isFresh=function(){return c(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})},R.prototype.isRangeFresh=function(){var e=this.req.headers["if-range"];if(!e)return!0;if(-1!==e.indexOf('"')){var t=this.res.getHeader("ETag");return!!(t&&-1!==e.indexOf(t))}return T(this.res.getHeader("Last-Modified"))<=T(e)},R.prototype.redirect=function(e){var t=this.res;if(k(this,"directory"))return void this.emit("directory",t,e);if(this.hasTrailingSlash())return void this.error(403);var a=i(function(e){for(var t=0;t<e.length&&"/"===e[t];t++);return t>1?"/"+e.substr(t):e}(this.path+"/")),o=E("Redirecting","Redirecting to "+s(a));t.statusCode=301,t.setHeader("Content-Type","text/html; charset=UTF-8"),t.setHeader("Content-Length",Buffer.byteLength(o)),t.setHeader("Content-Security-Policy","default-src 'none'"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("Location",a),t.end(o)},R.prototype.pipe=function(e){var t,a=this._root;this.res=e;var o=function(e){try{return decodeURIComponent(e)}catch(e){return -1}}(this.path);if(-1===o||~o.indexOf("\0"))return this.error(400),e;if(null!==a){if(o&&(o=x("."+S+o)),$.test(o))return n('malicious path "%s"',o),this.error(403),e;t=o.split(S),o=x(y(a,o))}else{if($.test(o))return n('malicious path "%s"',o),this.error(403),e;t=x(o).split(S),o=_(o)}if(function(e){for(var t=0;t<e.length;t++){var a=e[t];if(a.length>1&&"."===a[0])return!0}return!1}(t))switch(n('%s dotfile "%s"',this._dotfiles,o),this._dotfiles){case"allow":break;case"deny":return this.error(403),e;default:return this.error(404),e}return this._index.length&&this.hasTrailingSlash()?this.sendIndex(o):this.sendFile(o),e},R.prototype.send=function(e,t){var a=t.size,o=this.options,i={},s=this.res,r=this.req,c=r.headers.range,l=o.start||0;if(s.headersSent)return void this.headersAlreadySent();if(n('pipe "%s"',e),this.setHeader(e,t),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure())return void this.error(412);if(this.isCachable()&&this.isFresh())return void this.notModified()}if(a=Math.max(0,a-l),void 0!==o.end){var p=o.end-l+1;a>p&&(a=p)}if(this._acceptRanges&&w.test(c)){if(c=m(a,c,{combine:!0}),this.isRangeFresh()||(n("range stale"),c=-2),-1===c)return n("range unsatisfiable"),s.setHeader("Content-Range",j("bytes",a)),this.error(416,{headers:{"Content-Range":s.getHeader("Content-Range")}});-2!==c&&1===c.length&&(n("range %j",c),s.statusCode=206,s.setHeader("Content-Range",j("bytes",a,c[0])),l+=c[0].start,a=c[0].end-c[0].start+1)}for(var u in o)i[u]=o[u];(i.start=l,i.end=Math.max(l,l+a-1),s.setHeader("Content-Length",a),"HEAD"===r.method)?s.end():this.stream(e,i)},R.prototype.sendFile=function(e){var t=0,a=this;n('stat "%s"',e),l.stat(e,function(o,i){var s=e[e.length-1]===S;return!o||"ENOENT"!==o.code||b(e)||s?o?a.onStatError(o):i.isDirectory()?a.redirect(e):s?a.error(404):void(a.emit("file",e,i),a.send(e,i)):function o(i){if(a._extensions.length<=t)return i?a.onStatError(i):a.error(404);var s=e+"."+a._extensions[t++];n('stat "%s"',s),l.stat(s,function(e,t){return e?o(e):t.isDirectory()?o():void(a.emit("file",s,t),a.send(s,t))})}(o)})},R.prototype.sendIndex=function(e){var t=-1,a=this;!function o(i){if(++t>=a._index.length)return i?a.onStatError(i):a.error(404);var s=y(e,a._index[t]);n('stat "%s"',s),l.stat(s,function(e,t){return e?o(e):t.isDirectory()?o():void(a.emit("file",s,t),a.send(s,t))})}()},R.prototype.stream=function(e,t){var a=this,o=this.res,n=l.createReadStream(e,t);function i(){n.destroy()}this.emit("stream",n),n.pipe(o),d(o,i),n.on("error",function(e){i(),a.onStatError(e)}),n.on("end",function(){a.emit("end")})},R.prototype.type=function(e){var t=this.res;if(!t.getHeader("Content-Type")){var a=b(e),o=p.contentType(a)||"application/octet-stream";n("content-type %s",o),t.setHeader("Content-Type",o)}},R.prototype.setHeader=function(e,t){var a=this.res;if(this.emit("headers",a,e,t),this._acceptRanges&&!a.getHeader("Accept-Ranges")&&(n("accept ranges"),a.setHeader("Accept-Ranges","bytes")),this._cacheControl&&!a.getHeader("Cache-Control")){var o="public, max-age="+Math.floor(this._maxage/1e3);this._immutable&&(o+=", immutable"),n("cache-control %s",o),a.setHeader("Cache-Control",o)}if(this._lastModified&&!a.getHeader("Last-Modified")){var i=t.mtime.toUTCString();n("modified %s",i),a.setHeader("Last-Modified",i)}if(this._etag&&!a.getHeader("ETag")){var s=r(t);n("etag %s",s),a.setHeader("ETag",s)}}},"../../../node_modules/.pnpm/setprototypeof@1.2.0/node_modules/setprototypeof/index.js"(e){e.exports=Object.setPrototypeOf||(({__proto__:[]})instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(e,a)||(e[a]=t[a]);return e})},"../../../node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/index.js"(e,t,a){var o,n,i=a("../../../node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json");function s(e){if(!Object.prototype.hasOwnProperty.call(r.message,e))throw Error("invalid status code: "+e);return r.message[e]}function r(e){if("number"==typeof e)return s(e);if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);if(!isNaN(t))return s(t);var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(r.code,a))throw Error('invalid status message: "'+e+'"');return r.code[a]}e.exports=r,r.message=i,n={},Object.keys(o=i).forEach(function(e){var t=o[e],a=Number(e);n[t.toLowerCase()]=a}),r.code=n,r.codes=Object.keys(i).map(function(e){return Number(e)}),r.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},r.empty={204:!0,205:!0,304:!0},r.retry={502:!0,503:!0,504:!0}},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncParallelBailHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onResult:t,onDone:a}){let o="";return o+=`var _results = new Array(${this.options.taps.length});
|
|
3
|
+
`,o+="var _checkDone = function() {\n",o+="for(var i = 0; i < _results.length; i++) {\n",o+="var item = _results[i];\n",o+="if(item === undefined) return false;\n",o+="if(item.result !== undefined) {\n",o+=t("item.result"),o+="return true;\n",o+="}\n",o+="if(item.error) {\n",o+=e("item.error"),o+="return true;\n",o+="}\n",o+="}\n",o+="return false;\n",o+="}\n",o+=this.callTapsParallel({onError:(e,t,a,o)=>{let n="";return n+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {
|
|
4
|
+
`,n+=o(!0),n+="} else {\n",n+=a(),n+="}\n"},onResult:(e,t,a,o)=>{let n="";return n+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {
|
|
5
|
+
`,n+=o(!0),n+="} else {\n",n+=a(),n+="}\n"},onTap:(e,t,a,o)=>{let n="";return e>0&&(n+=`if(${e} >= _results.length) {
|
|
6
|
+
`,n+=a(),n+="} else {\n"),n+=t(),e>0&&(n+="}\n"),n},onDone:a})}},s=function(e){return i.setup(this,e),i.create(e)};function r(e=[],t){let a=new o(e,t);return a.constructor=r,a.compile=s,a._call=void 0,a.call=void 0,a}r.prototype=null,e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncParallelHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onDone:t}){return this.callTapsParallel({onError:(t,a,o,n)=>e(a)+n(!0),onDone:t})}},s=function(e){return i.setup(this,e),i.create(e)};function r(e=[],t){let a=new o(e,t);return a.constructor=r,a.compile=s,a._call=void 0,a.call=void 0,a}r.prototype=null,e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesBailHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onResult:t,resultReturns:a,onDone:o}){return this.callTapsSeries({onError:(t,a,o,n)=>e(a)+n(!0),onResult:(e,a,o)=>`if(${a} !== undefined) {
|
|
7
|
+
${t(a)}
|
|
8
|
+
} else {
|
|
9
|
+
${o()}}
|
|
10
|
+
`,resultReturns:a,onDone:o})}},s=function(e){return i.setup(this,e),i.create(e)};function r(e=[],t){let a=new o(e,t);return a.constructor=r,a.compile=s,a._call=void 0,a.call=void 0,a}r.prototype=null,e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,a,o,n)=>e(a)+n(!0),onDone:t})}},s=function(e){return i.setup(this,e),i.create(e)};function r(e=[],t){let a=new o(e,t);return a.constructor=r,a.compile=s,a._call=void 0,a.call=void 0,a}r.prototype=null,e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesLoopHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onDone:t}){return this.callTapsLooping({onError:(t,a,o,n)=>e(a)+n(!0),onDone:t})}},s=function(e){return i.setup(this,e),i.create(e)};function r(e=[],t){let a=new o(e,t);return a.constructor=r,a.compile=s,a._call=void 0,a.call=void 0,a}r.prototype=null,e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesWaterfallHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onResult:t,onDone:a}){return this.callTapsSeries({onError:(t,a,o,n)=>e(a)+n(!0),onResult:(e,t,a)=>{let o="";return o+=`if(${t} !== undefined) {
|
|
11
|
+
`,o+=`${this._args[0]} = ${t};
|
|
12
|
+
`,o+=`}
|
|
13
|
+
`,o+=a()},onDone:()=>t(this._args[0])})}},s=function(e){return i.setup(this,e),i.create(e)};function r(e=[],t){if(e.length<1)throw Error("Waterfall hooks must have at least one argument");let a=new o(e,t);return a.constructor=r,a.compile=s,a._call=void 0,a.call=void 0,a}r.prototype=null,e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"(e,t,a){let o=a("util").deprecate(()=>{},"Hook.context is deprecated and will be removed"),n=function(...e){return this.call=this._createCall("sync"),this.call(...e)},i=function(...e){return this.callAsync=this._createCall("async"),this.callAsync(...e)},s=function(...e){return this.promise=this._createCall("promise"),this.promise(...e)};class r{constructor(e=[],t){this._args=e,this.name=t,this.taps=[],this.interceptors=[],this._call=n,this.call=n,this._callAsync=i,this.callAsync=i,this._promise=s,this.promise=s,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}compile(e){throw Error("Abstract: should be overridden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}_tap(e,t,a){if("string"==typeof t)t={name:t.trim()};else if("object"!=typeof t||null===t)throw Error("Invalid tap options");if("string"!=typeof t.name||""===t.name)throw Error("Missing name for tap");void 0!==t.context&&o(),t=Object.assign({type:e,fn:a},t),t=this._runRegisterInterceptors(t),this._insert(t)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_runRegisterInterceptors(e){for(let t of this.interceptors)if(t.register){let a=t.register(e);void 0!==a&&(e=a)}return e}withOptions(e){let t=t=>Object.assign({},e,"string"==typeof t?{name:t}:t);return{name:this.name,tap:(e,a)=>this.tap(t(e),a),tapAsync:(e,a)=>this.tapAsync(t(e),a),tapPromise:(e,a)=>this.tapPromise(t(e),a),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){if(this._resetCompilation(),this.interceptors.push(Object.assign({},e)),e.register)for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}_resetCompilation(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise}_insert(e){let t;this._resetCompilation(),"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let a=0;"number"==typeof e.stage&&(a=e.stage);let o=this.taps.length;for(;o>0;){o--;let e=this.taps[o];this.taps[o+1]=e;let n=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(n>a)){o++;break}}this.taps[o]=e}}Object.setPrototypeOf(r.prototype,null),e.exports=r},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"(e){e.exports=class{constructor(e){this.config=e,this.options=void 0,this._args=void 0}create(e){let t;switch(this.init(e),this.options.type){case"sync":t=Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`throw ${e};
|
|
14
|
+
`,onResult:e=>`return ${e};
|
|
15
|
+
`,resultReturns:!0,onDone:()=>"",rethrowIfPossible:!0}));break;case"async":t=Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`_callback(${e});
|
|
16
|
+
`,onResult:e=>`_callback(null, ${e});
|
|
17
|
+
`,onDone:()=>"_callback();\n"}));break;case"promise":let a=!1,o=this.contentWithInterceptors({onError:e=>(a=!0,`_error(${e});
|
|
18
|
+
`),onResult:e=>`_resolve(${e});
|
|
19
|
+
`,onDone:()=>"_resolve();\n"}),n="";n+='"use strict";\n',n+=this.header(),n+="return new Promise((function(_resolve, _reject) {\n",a&&(n+="var _sync = true;\n",n+="function _error(_err) {\n",n+="if(_sync)\n",n+="_resolve(Promise.resolve().then((function() { throw _err; })));\n",n+="else\n",n+="_reject(_err);\n",n+="};\n"),n+=o,a&&(n+="_sync = false;\n"),n+="}));\n",t=Function(this.args(),n)}return this.deinit(),t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e,this._args=e.args.slice()}deinit(){this.options=void 0,this._args=void 0}contentWithInterceptors(e){if(!(this.options.interceptors.length>0))return this.content(e);{let t=e.onError,a=e.onResult,o=e.onDone,n="";for(let e=0;e<this.options.interceptors.length;e++){let t=this.options.interceptors[e];t.call&&(n+=`${this.getInterceptor(e)}.call(${this.args({before:t.context?"_context":void 0})});
|
|
20
|
+
`)}return n+this.content(Object.assign(e,{onError:t&&(e=>{let a="";for(let t=0;t<this.options.interceptors.length;t++)this.options.interceptors[t].error&&(a+=`${this.getInterceptor(t)}.error(${e});
|
|
21
|
+
`);return a+t(e)}),onResult:a&&(e=>{let t="";for(let a=0;a<this.options.interceptors.length;a++)this.options.interceptors[a].result&&(t+=`${this.getInterceptor(a)}.result(${e});
|
|
22
|
+
`);return t+a(e)}),onDone:o&&(()=>{let e="";for(let t=0;t<this.options.interceptors.length;t++)this.options.interceptors[t].done&&(e+=`${this.getInterceptor(t)}.done();
|
|
23
|
+
`);return e+o()})}))}}header(){let e="";return this.needContext()?e+="var _context = {};\n":e+="var _context;\n",e+="var _x = this._x;\n",this.options.interceptors.length>0&&(e+="var _taps = this.taps;\nvar _interceptors = this.interceptors;\n"),e}needContext(){for(let e of this.options.taps)if(e.context)return!0;return!1}callTap(e,{onError:t,onResult:a,onDone:o,rethrowIfPossible:n}){let i="",s=!1;for(let t=0;t<this.options.interceptors.length;t++){let a=this.options.interceptors[t];a.tap&&(s||(i+=`var _tap${e} = ${this.getTap(e)};
|
|
24
|
+
`,s=!0),i+=`${this.getInterceptor(t)}.tap(${a.context?"_context, ":""}_tap${e});
|
|
25
|
+
`)}i+=`var _fn${e} = ${this.getTapFn(e)};
|
|
26
|
+
`;let r=this.options.taps[e];switch(r.type){case"sync":n||(i+=`var _hasError${e} = false;
|
|
27
|
+
`,i+="try {\n"),a?i+=`var _result${e} = _fn${e}(${this.args({before:r.context?"_context":void 0})});
|
|
28
|
+
`:i+=`_fn${e}(${this.args({before:r.context?"_context":void 0})});
|
|
29
|
+
`,n||(i+="} catch(_err) {\n",i+=`_hasError${e} = true;
|
|
30
|
+
`,i+=t("_err"),i+="}\n",i+=`if(!_hasError${e}) {
|
|
31
|
+
`),a&&(i+=a(`_result${e}`)),o&&(i+=o()),n||(i+="}\n");break;case"async":let c="";a?c+=`(function(_err${e}, _result${e}) {
|
|
32
|
+
`:c+=`(function(_err${e}) {
|
|
33
|
+
`,c+=`if(_err${e}) {
|
|
34
|
+
`,c+=t(`_err${e}`),c+="} else {\n",a&&(c+=a(`_result${e}`)),o&&(c+=o()),c+="}\n",c+="})",i+=`_fn${e}(${this.args({before:r.context?"_context":void 0,after:c})});
|
|
35
|
+
`;break;case"promise":i+=`var _hasResult${e} = false;
|
|
36
|
+
`,i+=`var _promise${e} = _fn${e}(${this.args({before:r.context?"_context":void 0})});
|
|
37
|
+
`,i+=`if (!_promise${e} || !_promise${e}.then)
|
|
38
|
+
`,i+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');
|
|
39
|
+
`,i+=`_promise${e}.then((function(_result${e}) {
|
|
40
|
+
`,i+=`_hasResult${e} = true;
|
|
41
|
+
`,a&&(i+=a(`_result${e}`)),o&&(i+=o()),i+=`}), function(_err${e}) {
|
|
42
|
+
`,i+=`if(_hasResult${e}) throw _err${e};
|
|
43
|
+
`,i+=t(`_err${e}`),i+="});\n"}return i}callTapsSeries({onError:e,onResult:t,resultReturns:a,onDone:o,doneReturns:n,rethrowIfPossible:i}){if(0===this.options.taps.length)return o();let s=this.options.taps.findIndex(e=>"sync"!==e.type),r=a||n,c="",l=o,p=0;for(let a=this.options.taps.length-1;a>=0;a--){let n=a;l!==o&&("sync"!==this.options.taps[n].type||p++>20)&&(p=0,c+=`function _next${n}() {
|
|
44
|
+
`,c+=l(),c+=`}
|
|
45
|
+
`,l=()=>`${r?"return ":""}_next${n}();
|
|
46
|
+
`);let u=l,d=e=>e?"":o(),m=this.callTap(n,{onError:t=>e(n,t,u,d),onResult:t&&(e=>t(n,e,u,d)),onDone:!t&&u,rethrowIfPossible:i&&(s<0||n<s)});l=()=>m}return c+l()}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:a}){if(0===this.options.taps.length)return t();let o=this.options.taps.every(e=>"sync"===e.type),n="";o||(n+="var _looper = (function() {\n",n+="var _loopAsync = false;\n"),n+="var _loop;\n",n+="do {\n",n+="_loop = false;\n";for(let e=0;e<this.options.interceptors.length;e++){let t=this.options.interceptors[e];t.loop&&(n+=`${this.getInterceptor(e)}.loop(${this.args({before:t.context?"_context":void 0})});
|
|
47
|
+
`)}return n+=this.callTapsSeries({onError:e,onResult:(e,t,a,n)=>{let i="";return i+=`if(${t} !== undefined) {
|
|
48
|
+
`,i+="_loop = true;\n",o||(i+="if(_loopAsync) _looper();\n"),i+=n(!0),i+=`} else {
|
|
49
|
+
`,i+=a(),i+=`}
|
|
50
|
+
`},onDone:t&&(()=>{let e="";return e+="if(!_loop) {\n",e+=t(),e+="}\n"}),rethrowIfPossible:a&&o}),n+="} while(_loop);\n",o||(n+="_loopAsync = true;\n",n+="});\n",n+="_looper();\n"),n}callTapsParallel({onError:e,onResult:t,onDone:a,rethrowIfPossible:o,onTap:n=(e,t)=>t()}){if(this.options.taps.length<=1)return this.callTapsSeries({onError:e,onResult:t,onDone:a,rethrowIfPossible:o});let i="";i+="do {\n",i+=`var _counter = ${this.options.taps.length};
|
|
51
|
+
`,a&&(i+="var _done = (function() {\n",i+=a(),i+="});\n");for(let s=0;s<this.options.taps.length;s++){let r=()=>a?"if(--_counter === 0) _done();\n":"--_counter;",c=e=>e||!a?"_counter = 0;\n":"_counter = 0;\n_done();\n";i+="if(_counter <= 0) break;\n",i+=n(s,()=>this.callTap(s,{onError:t=>{let a="";return a+="if(_counter > 0) {\n",a+=e(s,t,r,c),a+="}\n"},onResult:t&&(e=>{let a="";return a+="if(_counter > 0) {\n",a+=t(s,e,r,c),a+="}\n"}),onDone:!t&&(()=>r()),rethrowIfPossible:o}),r,c)}return i+"} while(false);\n"}args({before:e,after:t}={}){let a=this._args;return(e&&(a=[e].concat(a)),t&&(a=a.concat(t)),0===a.length)?"":a.join(", ")}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookMap.js"(e,t,a){let o=a("util"),n=(e,t)=>t;class i{constructor(e,t){this._map=new Map,this.name=t,this._factory=e,this._interceptors=[]}get(e){return this._map.get(e)}for(e){let t=this.get(e);if(void 0!==t)return t;let a=this._factory(e),o=this._interceptors;for(let t=0;t<o.length;t++)a=o[t].factory(e,a);return this._map.set(e,a),a}intercept(e){this._interceptors.push(Object.assign({factory:n},e))}}i.prototype.tap=o.deprecate(function(e,t,a){return this.for(e).tap(t,a)},"HookMap#tap(key,…) is deprecated. Use HookMap#for(key).tap(…) instead."),i.prototype.tapAsync=o.deprecate(function(e,t,a){return this.for(e).tapAsync(t,a)},"HookMap#tapAsync(key,…) is deprecated. Use HookMap#for(key).tapAsync(…) instead."),i.prototype.tapPromise=o.deprecate(function(e,t,a){return this.for(e).tapPromise(t,a)},"HookMap#tapPromise(key,…) is deprecated. Use HookMap#for(key).tapPromise(…) instead."),e.exports=i},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/MultiHook.js"(e,t,a){a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),e.exports=class e{constructor(e,t){this.hooks=e,this.name=t}tap(e,t){for(let a of this.hooks)a.tap(e,t)}tapAsync(e,t){for(let a of this.hooks)a.tapAsync(e,t)}tapPromise(e,t){for(let a of this.hooks)a.tapPromise(e,t)}isUsed(){for(let e of this.hooks)if(e.isUsed())return!0;return!1}intercept(e){for(let t of this.hooks)t.intercept(e)}withOptions(t){return new e(this.hooks.map(e=>e.withOptions(t)),this.name)}}},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncBailHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onResult:t,resultReturns:a,onDone:o,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,a)=>e(a),onResult:(e,a,o)=>`if(${a} !== undefined) {
|
|
52
|
+
${t(a)};
|
|
53
|
+
} else {
|
|
54
|
+
${o()}}
|
|
55
|
+
`,resultReturns:a,onDone:o,rethrowIfPossible:n})}},s=()=>{throw Error("tapAsync is not supported on a SyncBailHook")},r=()=>{throw Error("tapPromise is not supported on a SyncBailHook")},c=function(e){return i.setup(this,e),i.create(e)};function l(e=[],t){let a=new o(e,t);return a.constructor=l,a.tapAsync=s,a.tapPromise=r,a.compile=c,a}l.prototype=null,e.exports=l},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onDone:t,rethrowIfPossible:a}){return this.callTapsSeries({onError:(t,a)=>e(a),onDone:t,rethrowIfPossible:a})}},s=()=>{throw Error("tapAsync is not supported on a SyncHook")},r=()=>{throw Error("tapPromise is not supported on a SyncHook")},c=function(e){return i.setup(this,e),i.create(e)};function l(e=[],t){let a=new o(e,t);return a.constructor=l,a.tapAsync=s,a.tapPromise=r,a.compile=c,a}l.prototype=null,e.exports=l},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncLoopHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onDone:t,rethrowIfPossible:a}){return this.callTapsLooping({onError:(t,a)=>e(a),onDone:t,rethrowIfPossible:a})}},s=()=>{throw Error("tapAsync is not supported on a SyncLoopHook")},r=()=>{throw Error("tapPromise is not supported on a SyncLoopHook")},c=function(e){return i.setup(this,e),i.create(e)};function l(e=[],t){let a=new o(e,t);return a.constructor=l,a.tapAsync=s,a.tapPromise=r,a.compile=c,a}l.prototype=null,e.exports=l},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncWaterfallHook.js"(e,t,a){let o=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/Hook.js"),n=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js"),i=new class extends n{content({onError:e,onResult:t,resultReturns:a,rethrowIfPossible:o}){return this.callTapsSeries({onError:(t,a)=>e(a),onResult:(e,t,a)=>{let o="";return o+=`if(${t} !== undefined) {
|
|
56
|
+
`,o+=`${this._args[0]} = ${t};
|
|
57
|
+
`,o+=`}
|
|
58
|
+
`,o+=a()},onDone:()=>t(this._args[0]),doneReturns:a,rethrowIfPossible:o})}},s=()=>{throw Error("tapAsync is not supported on a SyncWaterfallHook")},r=()=>{throw Error("tapPromise is not supported on a SyncWaterfallHook")},c=function(e){return i.setup(this,e),i.create(e)};function l(e=[],t){if(e.length<1)throw Error("Waterfall hooks must have at least one argument");let a=new o(e,t);return a.constructor=l,a.tapAsync=s,a.tapPromise=r,a.compile=c,a}l.prototype=null,e.exports=l},"../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/index.js"(e,t,a){a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncBailHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncWaterfallHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/SyncLoopHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncParallelHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncParallelBailHook.js"),t.FU=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesBailHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesLoopHook.js"),t.BD=a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/AsyncSeriesWaterfallHook.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookMap.js"),a("../../../node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/MultiHook.js")},"../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js"(e,t,a){let o=a("fs"),n=a("os"),i=a("path"),s=a("crypto"),r={fs:o.constants,os:n.constants},c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",l=/XXXXXX/,p=(r.O_CREAT||r.fs.O_CREAT)|(r.O_EXCL||r.fs.O_EXCL)|(r.O_RDWR||r.fs.O_RDWR),u="win32"===n.platform(),d=r.EBADF||r.os.errno.EBADF,m=r.ENOENT||r.os.errno.ENOENT,h=[],f=o.rmdirSync.bind(o),v=!1;function g(e){return o.rmSync(e,{recursive:!0})}function b(e,t){let a=function(e){if(e&&!k(e))return t(e);t()};0<=e[0]?o.close(e[0],function(){o.unlink(e[1],a)}):o.unlink(e[1],a)}function y(e){let t=null;try{0<=e[0]&&o.closeSync(e[0])}catch(e){if(!P(e,-d,"EBADF")&&!k(e))throw e}finally{try{o.unlinkSync(e[1])}catch(e){k(e)||(t=e)}}if(null!==t)throw t}function x(e,t,a,o){let n=!1;return function i(s){if(!n){let r=h.indexOf(o||i);return(r>=0&&h.splice(r,1),n=!0,a||e===f||e===g)?e(t):e(t,s||function(){})}}}function _(e){let t=[],a=null;try{a=s.randomBytes(e)}catch(t){a=s.pseudoRandomBytes(e)}for(let o=0;o<e;o++)t.push(c[a[o]%c.length]);return t.join("")}function S(e){return void 0===e}function w(e,t){if("function"==typeof e)return[{},e];if(S(e))return[{},t];let a={};for(let t of Object.getOwnPropertyNames(e))a[t]=e[t];return[a,t]}function $(e){let t=e.tmpdir;if(!S(e.name))return i.join(t,e.dir,e.name);if(!S(e.template))return i.join(t,e.dir,e.template).replace(l,_(6));let a=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_(12),e.postfix?"-"+e.postfix:""].join("");return i.join(t,e.dir,a)}function R(e,t){if("string"!=typeof t)throw Error(`${e} option must be a string, got "${typeof t}".`);if(t.includes(".."))throw Error("Relative value not allowed");return t}function j(e){if(!S(e.name)){let t=e.name;if(i.isAbsolute(t))throw Error(`name option must not contain an absolute path, found "${t}".`);let a=i.basename(t);if(".."===a||"."===a||a!==t)throw Error(`name option must not contain a path, found "${t}".`)}if(!S(e.template)){if("string"!=typeof e.template)throw Error(`template option must be a string, got "${typeof e.template}".`);if(!e.template.match(l))throw Error(`Invalid template, found "${e.template}".`)}if(!S(e.tries)&&isNaN(e.tries)||e.tries<0)throw Error(`Invalid tries, found "${e.tries}".`);e.tries=S(e.name)?e.tries||3:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.prefix=S(e.prefix)?"":R("prefix",e.prefix),e.postfix=S(e.postfix)?"":R("postfix",e.postfix),e.template=S(e.template)?void 0:R("template",e.template)}function E(e,t,a){if(S(t))return;let n=function(e,t){let a=i.isAbsolute(e)?e:i.join(t,e);try{return o.statSync(a),o.realpathSync(a)}catch(t){let e=o.realpathSync(i.dirname(a));return i.join(e,i.basename(a))}}(t,a),s=i.relative(a,n);if(s.startsWith("..")||i.isAbsolute(s))throw Error(`${e} option must be relative to "${a}", found "${s}".`);return s}function k(e){return P(e,-m,"ENOENT")}function P(e,t,a){return u?e.code===a:e.code===a&&e.errno===t}process.addListener("exit",function(){if(v)for(;h.length;)try{h[0]()}catch(e){}}),e.exports.fileSync=function(e){var t,a,i,s;let r,c,l=w(e)[0],u=l.discardDescriptor||l.detachDescriptor,d=function(e){var t,a;let i,s,r=(i=(a=t=w(e)[0],t.tmpdir=o.realpathSync(a&&a.tmpdir||n.tmpdir())),j(t),s=E("dir",t.dir,i),t.dir=S(s)?"":s,t.template=E("template",t.template,i),t),c=r.tries;do{let e=$(r);try{o.statSync(e)}catch(t){return e}}while(c-- >0);throw Error("Could not get a unique tmp filename, max tries reached")}(l),m=o.openSync(d,p,l.mode||384);return l.discardDescriptor&&(o.closeSync(m),m=void 0),{name:d,fd:m,removeCallback:(t=d,a=u?-1:m,i=l,r=x(y,[a,t],s=!0),c=x(b,[a,t],s,r),i.keep||h.unshift(r),s?r:c)}},e.exports.setGracefulCleanup=function(){v=!0}},"../../../node_modules/.pnpm/toidentifier@1.0.1/node_modules/toidentifier/index.js"(e){e.exports=function(e){return e.split(" ").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}},"../../../node_modules/.pnpm/axios@0.21.4_debug@4.4.3/node_modules/axios/package.json"(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},"../../../node_modules/.pnpm/mime-db@1.54.0/node_modules/mime-db/db.json"(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/ace+json":{"source":"iana","compressible":true},"application/ace-groupcomm+cbor":{"source":"iana"},"application/ace-trl+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/aif+cbor":{"source":"iana"},"application/aif+json":{"source":"iana","compressible":true},"application/alto-cdni+json":{"source":"iana","compressible":true},"application/alto-cdnifilter+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-propmap+json":{"source":"iana","compressible":true},"application/alto-propmapparams+json":{"source":"iana","compressible":true},"application/alto-tips+json":{"source":"iana","compressible":true},"application/alto-tipsparams+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/appinstaller":{"compressible":false,"extensions":["appinstaller"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/appx":{"compressible":false,"extensions":["appx"]},"application/appxbundle":{"compressible":false,"extensions":["appxbundle"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/automationml-aml+xml":{"source":"iana","compressible":true,"extensions":["aml"]},"application/automationml-amlx+zip":{"source":"iana","compressible":false,"extensions":["amlx"]},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/bufr":{"source":"iana"},"application/c2pa":{"source":"iana"},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/cdfx+xml":{"source":"iana","compressible":true,"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/ce+cbor":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/cid-edhoc+cbor-seq":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/city+json-seq":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-eap":{"source":"iana"},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/concise-problem-details+cbor":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cose-x509":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwl":{"source":"iana","extensions":["cwl"]},"application/cwl+json":{"source":"iana","compressible":true},"application/cwl+yaml":{"source":"iana"},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana","extensions":["dcm"]},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dpop+jwt":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/eat+cwt":{"source":"iana"},"application/eat+jwt":{"source":"iana"},"application/eat-bun+cbor":{"source":"iana"},"application/eat-bun+json":{"source":"iana","compressible":true},"application/eat-ucs+cbor":{"source":"iana"},"application/eat-ucs+json":{"source":"iana","compressible":true},"application/ecmascript":{"source":"apache","compressible":true,"extensions":["ecma"]},"application/edhoc+cbor-seq":{"source":"iana"},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.legacyesn+json":{"source":"iana","compressible":true},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/entity-statement+jwt":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdf":{"source":"iana","extensions":["fdf"]},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"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":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geopose+json":{"source":"iana","compressible":true},"application/geoxacml+json":{"source":"iana","compressible":true},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gnap-binding-jws":{"source":"iana"},"application/gnap-binding-jwsd":{"source":"iana"},"application/gnap-binding-rotation-jws":{"source":"iana"},"application/gnap-binding-rotation-jwsd":{"source":"iana"},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/grib":{"source":"iana"},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"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":true,"extensions":["its"]},"application/java-archive":{"source":"iana","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"apache","charset":"UTF-8","compressible":true,"extensions":["js"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/jscontact+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jsonpath":{"source":"iana"},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwk-set+jwt":{"source":"iana"},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/linkset":{"source":"iana"},"application/linkset+json":{"source":"iana","compressible":true},"application/load-control+xml":{"source":"iana","compressible":true},"application/logout+jwt":{"source":"iana"},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"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":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"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":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"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":["mp4","mpg4","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":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msix":{"compressible":false,"extensions":["msix"]},"application/msixbundle":{"compressible":false,"extensions":["msixbundle"]},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"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":true},"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":true,"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":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/ohttp-keys":{"source":"iana"},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["sig","asc"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/private-token-issuer-directory":{"source":"iana"},"application/private-token-request":{"source":"iana"},"application/private-token-response":{"source":"iana"},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/provided-claims+jwt":{"source":"iana"},"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":false},"application/prs.implied-document+xml":{"source":"iana","compressible":true},"application/prs.implied-executable":{"source":"iana"},"application/prs.implied-object+json":{"source":"iana","compressible":true},"application/prs.implied-object+json-seq":{"source":"iana"},"application/prs.implied-object+yaml":{"source":"iana"},"application/prs.implied-structure":{"source":"iana"},"application/prs.mayfile":{"source":"iana"},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.vcfbzip2":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true,"extensions":["xsf"]},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"apache"},"application/reputon+json":{"source":"iana","compressible":true},"application/resolve-response+jwt":{"source":"iana"},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-checklist":{"source":"iana"},"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-signed-tal":{"source":"iana"},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"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":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"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":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"apache"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana","extensions":["sql"]},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/sslkeylogfile":{"source":"iana"},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/st2110-41":{"source":"iana"},"application/stix+json":{"source":"iana","compressible":true},"application/stratum":{"source":"iana"},"application/swid+cbor":{"source":"iana"},"application/swid+xml":{"source":"iana","compressible":true,"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":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"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":true},"application/tm+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/toc+cbor":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"source":"iana","compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/trust-chain+json":{"source":"iana","compressible":true},"application/trust-mark+jwt":{"source":"iana"},"application/trust-mark-delegation+jwt":{"source":"iana"},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/uccs+cbor":{"source":"iana"},"application/ujcs+json":{"source":"iana","compressible":true},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vc":{"source":"iana"},"application/vc+cose":{"source":"iana"},"application/vc+jwt":{"source":"iana"},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.1ob":{"source":"iana"},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3a+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ach+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc8+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.5gsa2x":{"source":"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gsv2x":{"source":"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.crs+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.current-location-discovery+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-regroup+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"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.pinapp-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.seal-group-doc+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-network-qos-management-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-ue-config-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-unicast-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.seal-user-profile-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.v2x":{"source":"iana"},"application/vnd.3gpp.vae-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"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.acm.addressxfer+json":{"source":"iana","compressible":true},"application/vnd.acm.chatbot+json":{"source":"iana","compressible":true},"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":false,"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":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"apache","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":"apache"},"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":true},"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":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"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.parquet":{"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.apexlang":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"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":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"apache"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autodesk.fbx":{"extensions":["fbx"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"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":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.belightsoft.lhzd+zip":{"source":"iana","compressible":false},"application/vnd.belightsoft.lhzl+zip":{"source":"iana","compressible":false},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.bzip3":{"source":"iana"},"application/vnd.c3voc.schedule+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"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":true,"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.cncf.helm.chart.content.v1.tar+gzip":{"source":"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{"source":"iana"},"application/vnd.cncf.helm.config.v1+json":{"source":"iana","compressible":true},"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":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"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":true},"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":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datalog":{"source":"iana"},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.dcmp+xml":{"source":"iana","compressible":true,"extensions":["dcmp"]},"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":true,"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":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"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":true},"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":true},"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":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"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":true},"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.eln+zip":{"source":"iana","compressible":false},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"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.erofs":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"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":false},"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":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"apache","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{"source":"iana","charset":"XML-BASED","compressible":true},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"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.freelog.comic":{"source":"iana"},"application/vnd.frogans.fnc":{"source":"apache","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"apache","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":true},"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":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.ga4gh.passport+jwt":{"source":"iana"},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.genozip":{"source":"iana"},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.gentoo.catmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.ebuild":{"source":"iana"},"application/vnd.gentoo.eclass":{"source":"iana"},"application/vnd.gentoo.gpkg":{"source":"iana"},"application/vnd.gentoo.manifest":{"source":"iana"},"application/vnd.gentoo.pkgmetadata+xml":{"source":"iana","compressible":true},"application/vnd.gentoo.xpak":{"source":"iana"},"application/vnd.geo+json":{"source":"apache","compressible":true},"application/vnd.geocube+xml":{"source":"apache","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.pinboard":{"source":"iana"},"application/vnd.geogebra.slides":{"source":"iana","extensions":["ggs"]},"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.gnu.taler.exchange+json":{"source":"iana","compressible":true},"application/vnd.gnu.taler.merchant+json":{"source":"iana","compressible":true},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.drawing":{"compressible":false,"extensions":["gdraw"]},"application/vnd.google-apps.drive-sdk":{"compressible":false},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{"compressible":false},"application/vnd.google-apps.form":{"compressible":false,"extensions":["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{"compressible":false,"extensions":["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{"compressible":false,"extensions":["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.script":{"compressible":false,"extensions":["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{"compressible":false,"extensions":["gsite"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"apache","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true,"extensions":["xdcf"]},"application/vnd.gpxsee.map+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"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.hsl":{"source":"iana"},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"apache"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"apache","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":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"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":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"apache"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"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.ipfs.ipns-record":{"source":"iana"},"application/vnd.ipld.car":{"source":"iana"},"application/vnd.ipld.dag-cbor":{"source":"iana"},"application/vnd.ipld.dag-json":{"source":"iana"},"application/vnd.ipld.raw":{"source":"iana"},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"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":false},"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.kdl":{"source":"iana"},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.keyman.kmp+zip":{"source":"iana","compressible":false},"application/vnd.keyman.kmx":{"source":"iana"},"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":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.ldev.productlicensing":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"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":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.mdl":{"source":"iana"},"application/vnd.mdl-mbsdf":{"source":"iana"},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.medicalholodeck.recordxr":{"source":"iana"},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mermaid":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"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":true},"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.modl":{"source":"iana"},"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":true,"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":false,"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":true,"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":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"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":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"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":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-visio.viewer":{"extensions":["vdx"]},"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":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msgpack":{"source":"iana"},"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":true},"application/vnd.nato.bindingdataobject+cbor":{"source":"iana"},"application/vnd.nato.bindingdataobject+json":{"source":"iana","compressible":true},"application/vnd.nato.bindingdataobject+xml":{"source":"iana","compressible":true,"extensions":["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{"source":"iana","compressible":false},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"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":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"apache","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"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.oai.workflows":{"source":"iana"},"application/vnd.oai.workflows+json":{"source":"iana","compressible":true},"application/vnd.oai.workflows+yaml":{"source":"iana"},"application/vnd.oasis.opendocument.base":{"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":"apache","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":false,"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":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-master-template":{"source":"iana"},"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":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"apache","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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.onvif.metadata":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"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":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openvpi.dspx+json":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"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":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"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":true},"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.procrate.brushset":{"extensions":["brushset"]},"application/vnd.procreate.brush":{"extensions":["brush"]},"application/vnd.procreate.dream":{"extensions":["drm"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.pt.mundusmundi":{"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":true,"extensions":["xhtm"]},"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":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"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":true,"extensions":["musicxml"]},"application/vnd.relpipe":{"source":"iana"},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"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":true,"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":true},"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":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"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":true},"application/vnd.sketchometry":{"source":"iana"},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.smintio.portals.archive":{"source":"iana"},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"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":true,"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.sybyl.mol2":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"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":true,"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":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"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":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"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.uic.osdm+json":{"source":"iana","compressible":true},"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":true,"extensions":["uoml","uo"]},"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":true},"application/vnd.veraison.tsm-report+cbor":{"source":"iana"},"application/vnd.veraison.tsm-report+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"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","vsdx","vtx"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vocalshaper.vsp4":{"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.wasmflow.wafl":{"source":"iana"},"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.wordlift":{"source":"iana"},"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":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xarin.cpj":{"source":"iana"},"application/vnd.xecrets-encrypted":{"source":"iana"},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"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":true,"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.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/voucher-jws+json":{"source":"iana","compressible":true},"application/vp":{"source":"iana"},"application/vp+cose":{"source":"iana"},"application/vp+jwt":{"source":"iana"},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"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":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"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":false,"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":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blender":{"extensions":["blend"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"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-compressed":{"extensions":["rar"]},"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":false},"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":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"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":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-ipynb+json":{"compressible":true,"extensions":["ipynb"]},"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":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"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":false},"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":true,"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":false,"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":false,"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":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"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":true,"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":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"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":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zip-compressed":{"extensions":["zip"]},"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":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xfdf":{"source":"iana","extensions":["xfdf"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yaml":{"source":"iana"},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+cbor":{"source":"iana"},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yang-sid+json":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zip+dotlottie":{"extensions":["lottie"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana","extensions":["adts","aac"]},"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":false,"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/flac":{"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":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/matroska":{"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/midi-clip":{"source":"iana"},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a","m4b"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"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":"apache"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"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":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"source":"iana","compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp","dib"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/dpx":{"source":"iana","extensions":["dpx"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"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/ief":{"source":"iana","extensions":["ief"]},"image/j2c":{"source":"iana"},"image/jaii":{"source":"iana","extensions":["jaii"]},"image/jais":{"source":"iana","extensions":["jais"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpg","jpeg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm","jpgm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxl":{"source":"iana","extensions":["jxl"]},"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":false,"extensions":["jfif"]},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif","btf"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.clip":{"source":"iana"},"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":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"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":"iana","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-adobe-dng":{"extensions":["dng"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-emf":{"source":"iana"},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"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-wmf":{"source":"iana"},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/bhttp":{"source":"iana"},"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":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/mls":{"source":"iana"},"message/news":{"source":"apache"},"message/ohttp-req":{"source":"iana"},"message/ohttp-res":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime","mht","mhtml"]},"message/s-http":{"source":"apache"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"apache"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/jt":{"source":"iana","extensions":["jt"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/prc":{"source":"iana","extensions":["prc"]},"model/step":{"source":"iana","extensions":["step","stp","stpnc","p21","210"]},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/u3d":{"source":"iana","extensions":["u3d"]},"model/vnd.bary":{"source":"iana","extensions":["bary"]},"model/vnd.cld":{"source":"iana","extensions":["cld"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"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":true},"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","extensions":["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usda":{"source":"iana","extensions":["usda"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"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":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"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":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"apache"},"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/hl7v2":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["md","markdown"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"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/prs.texi":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"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":true,"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":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"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.exchangeable":{"source":"iana"},"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":"apache"},"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.vcf":{"source":"iana"},"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/vnd.zoo.kcl":{"source":"iana"},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/wgsl":{"source":"iana","extensions":["wgsl"]},"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":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"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":true,"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":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"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/evc":{"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/h266":{"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/lottie+json":{"source":"iana","compressible":true},"video/matroska":{"source":"iana"},"video/matroska-3d":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts","m2t","m2ts","mts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"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.planar":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"apache"},"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":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"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":false,"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":true},"x-shader/x-vertex":{"compressible":true}}')},"../../../node_modules/.pnpm/statuses@2.0.2/node_modules/statuses/codes.json"(e){e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}});var I=Array.isArray,N="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,q="object"==typeof self&&self&&self.Object===Object&&self,A=N||q||Function("return this")(),z=A.Symbol,M=Object.prototype,L=M.hasOwnProperty,U=M.toString,D=z?z.toStringTag:void 0;let H=function(e){var t=L.call(e,D),a=e[D];try{e[D]=void 0;var o=!0}catch(e){}var n=U.call(e);return o&&(t?e[D]=a:delete e[D]),n};var F=Object.prototype.toString,V=z?z.toStringTag:void 0;let B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?H(e):F.call(e)},J=function(e){return null!=e&&"object"==typeof e},G=function(e){return"symbol"==typeof e||J(e)&&"[object Symbol]"==B(e)};var Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/;let W=function(e,t){if(I(e))return!1;var a=typeof e;return!!("number"==a||"symbol"==a||"boolean"==a||null==e||G(e))||K.test(e)||!Z.test(e)||null!=t&&e in Object(t)},X=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Y=function(e){if(!X(e))return!1;var t=B(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var Q=A["__core-js_shared__"],ee=(y=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",et=Function.prototype.toString;let ea=function(e){if(null!=e){try{return et.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var eo=/^\[object .+?Constructor\]$/,en=Object.prototype,ei=Function.prototype.toString,es=en.hasOwnProperty,er=RegExp("^"+ei.call(es).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let ec=function(e){return!!X(e)&&(!ee||!(ee in e))&&(Y(e)?er:eo).test(ea(e))},el=function(e,t){var a=null==e?void 0:e[t];return ec(a)?a:void 0};var ep=el(Object,"create"),eu=Object.prototype.hasOwnProperty,ed=Object.prototype.hasOwnProperty;function em(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var o=e[t];this.set(o[0],o[1])}}em.prototype.clear=function(){this.__data__=ep?ep(null):{},this.size=0},em.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},em.prototype.get=function(e){var t=this.__data__;if(ep){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return eu.call(t,e)?t[e]:void 0},em.prototype.has=function(e){var t=this.__data__;return ep?void 0!==t[e]:ed.call(t,e)},em.prototype.set=function(e,t){var a=this.__data__;return this.size+=+!this.has(e),a[e]=ep&&void 0===t?"__lodash_hash_undefined__":t,this};let eh=function(e,t){return e===t||e!=e&&t!=t},ef=function(e,t){for(var a=e.length;a--;)if(eh(e[a][0],t))return a;return -1};var ev=Array.prototype.splice;function eg(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var o=e[t];this.set(o[0],o[1])}}eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,a=ef(t,e);return!(a<0)&&(a==t.length-1?t.pop():ev.call(t,a,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,a=ef(t,e);return a<0?void 0:t[a][1]},eg.prototype.has=function(e){return ef(this.__data__,e)>-1},eg.prototype.set=function(e,t){var a=this.__data__,o=ef(a,e);return o<0?(++this.size,a.push([e,t])):a[o][1]=t,this};var eb=el(A,"Map");let ey=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ex=function(e,t){var a=e.__data__;return ey(t)?a["string"==typeof t?"string":"hash"]:a.map};function e_(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var o=e[t];this.set(o[0],o[1])}}function eS(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var a=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=a.cache;if(i.has(n))return i.get(n);var s=e.apply(this,o);return a.cache=i.set(n,s)||i,s};return a.cache=new(eS.Cache||e_),a}e_.prototype.clear=function(){this.size=0,this.__data__={hash:new em,map:new(eb||eg),string:new em}},e_.prototype.delete=function(e){var t=ex(this,e).delete(e);return this.size-=!!t,t},e_.prototype.get=function(e){return ex(this,e).get(e)},e_.prototype.has=function(e){return ex(this,e).has(e)},e_.prototype.set=function(e,t){var a=ex(this,e),o=a.size;return a.set(e,t),this.size+=+(a.size!=o),this},eS.Cache=e_;var ew=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,e$=/\\(\\)?/g,eR=(_=(x=eS(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ew,function(e,a,o,n){t.push(o?n.replace(e$,"$1"):a||e)}),t},function(e){return 500===_.size&&_.clear(),e})).cache,x);let ej=function(e,t){for(var a=-1,o=null==e?0:e.length,n=Array(o);++a<o;)n[a]=t(e[a],a,e);return n};var eE=1/0,ek=z?z.prototype:void 0,eP=ek?ek.toString:void 0;let eT=function e(t){if("string"==typeof t)return t;if(I(t))return ej(t,e)+"";if(G(t))return eP?eP.call(t):"";var a=t+"";return"0"==a&&1/t==-eE?"-0":a},eO=function(e,t){return I(e)?e:W(e,t)?[e]:eR(null==e?"":eT(e))};var eC=1/0;let eI=function(e){if("string"==typeof e||G(e))return e;var t=e+"";return"0"==t&&1/e==-eC?"-0":t},eN=function(e,t){t=eO(t,e);for(var a=0,o=t.length;null!=e&&a<o;)e=e[eI(t[a++])];return a&&a==o?e:void 0},eq=function(e,t,a){var o=null==e?void 0:eN(e,t);return void 0===o?a:o};function eA(e){var t=this.__data__=new eg(e);this.size=t.size}eA.prototype.clear=function(){this.__data__=new eg,this.size=0},eA.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},eA.prototype.get=function(e){return this.__data__.get(e)},eA.prototype.has=function(e){return this.__data__.has(e)},eA.prototype.set=function(e,t){var a=this.__data__;if(a instanceof eg){var o=a.__data__;if(!eb||o.length<199)return o.push([e,t]),this.size=++a.size,this;a=this.__data__=new e_(o)}return a.set(e,t),this.size=a.size,this};var ez=function(){try{var e=el(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let eM=function(e,t,a){"__proto__"==t&&ez?ez(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a},eL=function(e,t,a){(void 0===a||eh(e[t],a))&&(void 0!==a||t in e)||eM(e,t,a)},eU=function(e,t,a){for(var o=-1,n=Object(e),i=a(e),s=i.length;s--;){var r=i[++o];if(!1===t(n[r],r,n))break}return e};var eD="object"==typeof exports&&exports&&!exports.nodeType&&exports,eH=eD&&"object"==typeof module&&module&&!module.nodeType&&module,eF=eH&&eH.exports===eD?A.Buffer:void 0,eV=eF?eF.allocUnsafe:void 0;let eB=function(e,t){if(t)return e.slice();var a=e.length,o=eV?eV(a):new e.constructor(a);return e.copy(o),o};var eJ=A.Uint8Array;let eG=function(e){var t=new e.constructor(e.byteLength);return new eJ(t).set(new eJ(e)),t},eZ=function(e,t){var a=t?eG(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)},eK=function(e,t){var a=-1,o=e.length;for(t||(t=Array(o));++a<o;)t[a]=e[a];return t};var eW=Object.create,eX=function(){function e(){}return function(t){if(!X(t))return{};if(eW)return eW(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}(),eY=(S=Object.getPrototypeOf,w=Object,function(e){return S(w(e))}),eQ=Object.prototype;let e0=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eQ)},e1=function(e){return J(e)&&"[object Arguments]"==B(e)};var e2=Object.prototype,e4=e2.hasOwnProperty,e3=e2.propertyIsEnumerable,e9=e1(function(){return arguments}())?e1:function(e){return J(e)&&e4.call(e,"callee")&&!e3.call(e,"callee")};let e5=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},e6=function(e){return null!=e&&e5(e.length)&&!Y(e)};var e8="object"==typeof exports&&exports&&!exports.nodeType&&exports,e7=e8&&"object"==typeof module&&module&&!module.nodeType&&module,te=e7&&e7.exports===e8?A.Buffer:void 0;let tt=(te?te.isBuffer:void 0)||function(){return!1};var ta=Object.prototype,to=Function.prototype.toString,tn=ta.hasOwnProperty,ti=to.call(Object);let ts=function(e){if(!J(e)||"[object Object]"!=B(e))return!1;var t=eY(e);if(null===t)return!0;var a=tn.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&to.call(a)==ti};var tr={};tr["[object Float32Array]"]=tr["[object Float64Array]"]=tr["[object Int8Array]"]=tr["[object Int16Array]"]=tr["[object Int32Array]"]=tr["[object Uint8Array]"]=tr["[object Uint8ClampedArray]"]=tr["[object Uint16Array]"]=tr["[object Uint32Array]"]=!0,tr["[object Arguments]"]=tr["[object Array]"]=tr["[object ArrayBuffer]"]=tr["[object Boolean]"]=tr["[object DataView]"]=tr["[object Date]"]=tr["[object Error]"]=tr["[object Function]"]=tr["[object Map]"]=tr["[object Number]"]=tr["[object Object]"]=tr["[object RegExp]"]=tr["[object Set]"]=tr["[object String]"]=tr["[object WeakMap]"]=!1;var tc="object"==typeof exports&&exports&&!exports.nodeType&&exports,tl=tc&&"object"==typeof module&&module&&!module.nodeType&&module,tp=tl&&tl.exports===tc&&N.process,tu=function(){try{var e=tl&&tl.require&&tl.require("util").types;if(e)return e;return tp&&tp.binding&&tp.binding("util")}catch(e){}}(),td=tu&&tu.isTypedArray,tm=td?function(e){return td(e)}:function(e){return J(e)&&e5(e.length)&&!!tr[B(e)]};let th=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var tf=Object.prototype.hasOwnProperty;let tv=function(e,t,a){var o=e[t];tf.call(e,t)&&eh(o,a)&&(void 0!==a||t in e)||eM(e,t,a)},tg=function(e,t,a,o){var n=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var r=t[i],c=o?o(a[r],e[r],r,a,e):void 0;void 0===c&&(c=e[r]),n?eM(a,r,c):tv(a,r,c)}return a},tb=function(e,t){for(var a=-1,o=Array(e);++a<e;)o[a]=t(a);return o};var ty=/^(?:0|[1-9]\d*)$/;let tx=function(e,t){var a=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==a||"symbol"!=a&&ty.test(e))&&e>-1&&e%1==0&&e<t};var t_=Object.prototype.hasOwnProperty;let tS=function(e,t){var a=I(e),o=!a&&e9(e),n=!a&&!o&&tt(e),i=!a&&!o&&!n&&tm(e),s=a||o||n||i,r=s?tb(e.length,String):[],c=r.length;for(var l in e)(t||t_.call(e,l))&&!(s&&("length"==l||n&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tx(l,c)))&&r.push(l);return r},tw=function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t};var t$=Object.prototype.hasOwnProperty;let tR=function(e){if(!X(e))return tw(e);var t=e0(e),a=[];for(var o in e)"constructor"==o&&(t||!t$.call(e,o))||a.push(o);return a},tj=function(e){return e6(e)?tS(e,!0):tR(e)},tE=function(e,t,a,o,n,i,s){var r=th(e,a),c=th(t,a),l=s.get(c);if(l)return void eL(e,a,l);var p=i?i(r,c,a+"",e,t,s):void 0,u=void 0===p;if(u){var d=I(c),m=!d&&tt(c),h=!d&&!m&&tm(c);(p=c,d||m||h)?I(r)?p=r:J(r)&&e6(r)?p=eK(r):m?(u=!1,p=eB(c,!0)):h?(u=!1,p=eZ(c,!0)):p=[]:ts(c)||e9(c)?(p=r,e9(r))?p=tg(r,tj(r)):(!X(r)||Y(r))&&(p="function"!=typeof c.constructor||e0(c)?{}:eX(eY(c))):u=!1}u&&(s.set(c,p),n(p,c,o,i,s),s.delete(c)),eL(e,a,p)},tk=function e(t,a,o,n,i){t!==a&&eU(a,function(s,r){if(i||(i=new eA),X(s))tE(t,a,r,o,e,n,i);else{var c=n?n(th(t,r),s,r+"",t,a,i):void 0;void 0===c&&(c=s),eL(t,r,c)}},tj)},tP=function(e){return e},tT=function(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)};var tO=Math.max,tC=Date.now,tI=($=ez?function(e,t){return ez(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:tP,R=0,j=0,function(){var e=tC(),t=16-(e-j);if(j=e,t>0){if(++R>=800)return arguments[0]}else R=0;return $.apply(void 0,arguments)});let tN=function(e,t){var a;return tI((a=tO(void 0===(a=t)?e.length-1:a,0),function(){for(var t=arguments,o=-1,n=tO(t.length-a,0),i=Array(n);++o<n;)i[o]=t[a+o];o=-1;for(var s=Array(a+1);++o<a;)s[o]=t[o];return s[a]=tP(i),tT(e,this,s)}),e+"")},tq=function(e,t,a){if(!X(a))return!1;var o=typeof t;return("number"==o?!!(e6(a)&&tx(t,a.length)):"string"==o&&t in a)&&eh(a[t],e)},tA=function(e){return tN(function(t,a){var o=-1,n=a.length,i=n>1?a[n-1]:void 0,s=n>2?a[2]:void 0;for(i=e.length>3&&"function"==typeof i?(n--,i):void 0,s&&tq(a[0],a[1],s)&&(i=n<3?void 0:i,n=1),t=Object(t);++o<n;){var r=a[o];r&&e(t,r,o,i)}return t})},tz=tA(function(e,t,a,o){tk(e,t,a,o)});function tM(e){return`${e??"lynx"}[Symbol.for('__LYNX_EXTERNAL_GLOBAL__')]`}class tL{options;constructor(e){for(let[t,a]of(this.options=e,Object.entries(this.options.externals)))if(!a.url&&!a.bundlePath)throw Error(`ExternalsLoadingPlugin requires \`url\` or \`bundlePath\` for external "${t}".`)}apply(e){let{RuntimeModule:t}=e.webpack,a=this.options,o=a.externals??{};class n extends t{runtimeRequirements;options;constructor(e,a){super("externals-loading-runtime",t.STAGE_TRIGGER),this.runtimeRequirements=e,this.options=a,this.runtimeRequirements=e}generate(){return this.chunk?.name&&o?this.#e(this.options.layer):""}#e(t){let n,i=new Map,s=new Map,r=new Set,c=new Map;if(t===a.backgroundLayer)n="background";else{if(t!==a.mainThreadLayer)return"";n="mainThread"}let l="mainThread"===n;for(let[e,t]of Object.entries(o))c.set(t.libraryName??e,t);let p=Array.from(c.entries());if(0===p.length)return"";let u=tM(a.globalObject),d=`${u} = ${u} === undefined ? {} : ${u};`,m=`
|
|
59
|
+
function createRetryingHandler(fetchBundle, retries) {
|
|
60
|
+
let cachedResponse = null
|
|
61
|
+
let asyncPromise = null
|
|
62
|
+
let currentHandler = fetchBundle()
|
|
63
|
+
let attemptsUsed = 0
|
|
64
|
+
return {
|
|
65
|
+
then(onFulfilled, onRejected) {
|
|
66
|
+
if (asyncPromise === null) {
|
|
67
|
+
asyncPromise = new Promise((resolve, reject) => {
|
|
68
|
+
const tryNext = (response) => {
|
|
69
|
+
if (cachedResponse !== null) {
|
|
70
|
+
resolve(cachedResponse)
|
|
71
|
+
return
|
|
72
|
+
}
|
|
73
|
+
if (response.code === -2 && attemptsUsed < retries) {
|
|
74
|
+
attemptsUsed++
|
|
75
|
+
currentHandler = fetchBundle()
|
|
76
|
+
currentHandler.then(tryNext, reject)
|
|
77
|
+
} else {
|
|
78
|
+
if (response.code !== -2) cachedResponse = response
|
|
79
|
+
resolve(response)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
currentHandler.then(tryNext, reject)
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
return asyncPromise.then(onFulfilled, onRejected)
|
|
86
|
+
},
|
|
87
|
+
wait(timeout) {
|
|
88
|
+
if (cachedResponse !== null) return cachedResponse
|
|
89
|
+
let response = currentHandler.wait(timeout)
|
|
90
|
+
while (response.code === -2 && attemptsUsed < retries) {
|
|
91
|
+
attemptsUsed++
|
|
92
|
+
currentHandler = fetchBundle()
|
|
93
|
+
response = currentHandler.wait(timeout)
|
|
94
|
+
}
|
|
95
|
+
if (response.code !== -2) cachedResponse = response
|
|
96
|
+
return response
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function createLoadExternalAsync(handler, sectionPath) {
|
|
102
|
+
return new Promise((resolve, reject) => {
|
|
103
|
+
handler.then((response) => {
|
|
104
|
+
if (response.code === 0) {
|
|
105
|
+
try {
|
|
106
|
+
const result = lynx.loadScript(sectionPath, { bundleName: response.url });
|
|
107
|
+
${l?`
|
|
108
|
+
// TODO: Use configured layer suffix instead of hard-coded __main-thread for CSS section lookup.
|
|
109
|
+
if (typeof __LoadStyleSheet === 'function') {
|
|
110
|
+
const styleSheet = __LoadStyleSheet(sectionPath.replace('__main-thread', '') + ':CSS', response.url);
|
|
111
|
+
if (styleSheet !== null) {
|
|
112
|
+
__AdoptStyleSheet(styleSheet);
|
|
113
|
+
__FlushElementTree();
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
console.warn('__LoadStyleSheet is not defined. Failed to load CSS for ' + sectionPath + ' in ' + response.url + '. __LoadStyleSheet is only available in LynxSDK >= 3.7');
|
|
117
|
+
}
|
|
118
|
+
`:""}
|
|
119
|
+
resolve(result)
|
|
120
|
+
} catch (error) {
|
|
121
|
+
console.error(error)
|
|
122
|
+
reject(new Error('Failed to load script ' + sectionPath + ' in ' + response.url, { cause: error }))
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
reject(new Error('Failed to fetch external source ' + response.url + ' . The response is ' + JSON.stringify(response), { cause: response }));
|
|
126
|
+
}
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function createLoadExternalSync(handler, sectionPath, timeout) {
|
|
132
|
+
const response = handler.wait(timeout)
|
|
133
|
+
if (response.code === 0) {
|
|
134
|
+
try {
|
|
135
|
+
const result = lynx.loadScript(sectionPath, { bundleName: response.url });
|
|
136
|
+
${l?`
|
|
137
|
+
// TODO: Use configured layer suffix instead of hard-coded __main-thread for CSS section lookup.
|
|
138
|
+
if (typeof __LoadStyleSheet === 'function') {
|
|
139
|
+
const styleSheet = __LoadStyleSheet(sectionPath.replace('__main-thread', '') + ':CSS', response.url);
|
|
140
|
+
if (styleSheet !== null) {
|
|
141
|
+
__AdoptStyleSheet(styleSheet);
|
|
142
|
+
__FlushElementTree();
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
console.warn('__LoadStyleSheet is not defined. Failed to load CSS for ' + sectionPath + ' in ' + response.url + '. __LoadStyleSheet is only available in LynxSDK >= 3.7');
|
|
146
|
+
}
|
|
147
|
+
`:""}
|
|
148
|
+
return result
|
|
149
|
+
} catch (error) {
|
|
150
|
+
console.error(error)
|
|
151
|
+
throw new Error('Failed to load script ' + sectionPath + ' in ' + response.url, { cause: error })
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
throw new Error('Failed to fetch external source ' + response.url + ' . The response is ' + JSON.stringify(response), { cause: response })
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
`,h=new Set,f=new Map;for(let[t,o]of p){let{libraryName:c,url:l,bundlePath:p,async:u=!0,timeout:d=a.timeout??2e3,retries:m=a.retries??0}=o,v=o[n],g=d/1e3;if(!v?.sectionPath)continue;let b=c??t,y=Array.isArray(b)?b[0]:b,x=p?{...o,bundlePath:p.replace(/^\/+/,"")}:o,_=l??`bundlePath:${x.bundlePath}`,S=`${_}-${y}`;if(h.has(S))continue;h.add(S);let w=x.url?JSON.stringify(x.url):`${e.webpack.RuntimeGlobals.publicPath} + ${JSON.stringify(x.bundlePath)}`;i.set(_,`() => lynx.fetchBundle(${w}, {})`),s.set(_,Math.max(s.get(_)??0,m));let $=`${tM(a.globalObject)}[${JSON.stringify(y)}]`,R=`${_}||${v.sectionPath}||${u}`,j=f.get(R);if(void 0!==j){r.add(`${$} = ${$} === undefined ? ${j} : ${$};`);continue}f.set(R,$);let E=[...i.keys()].indexOf(_);if(u){r.add(`${$} = ${$} === undefined ? createLoadExternalAsync(handler${E}, ${JSON.stringify(v.sectionPath)}) : ${$};`);continue}r.add(`${$} = ${$} === undefined ? createLoadExternalSync(handler${E}, ${JSON.stringify(v.sectionPath)}, ${g}) : ${$};`)}return[d,m,...[...i.entries()].map(([e,t],a)=>`const handler${a} = createRetryingHandler(${t}, ${s.get(e)??0});`),...r].join("\n")}}e.hooks.environment.tap(tL.name,()=>{e.options.externals=[...Array.isArray(e.options.externals)?e.options.externals:void 0===e.options.externals?[]:[e.options.externals],this.#t(a.globalObject)]}),e.hooks.compilation.tap(n.name,t=>{t.hooks.additionalTreeRuntimeRequirements.tap(n.name,(a,o)=>{let i;for(let e of t.chunkGraph.getChunkModulesIterable(a))if(e.layer){i=e.layer;break}i&&(o.add(e.webpack.RuntimeGlobals.publicPath),t.addRuntimeModule(a,new n(o,{layer:i})))})})}#t(e){let{externals:t,backgroundLayer:a,mainThreadLayer:o}=this.options,n=new Set(Object.keys(t));return({request:i,contextInfo:s},r)=>{let c=s?.issuerLayer===o?"mainThread":s?.issuerLayer===a?"background":void 0;if(i&&n.has(i)&&c&&t[i]?.[c]){let a=t[i]?.async??!0,o=t[i]?.libraryName??i,n=Array.isArray(o)?o:[o];if(a){let t=`${tM(e)}[${JSON.stringify(n[0])}]`,a=n.slice(1).map(e=>`[${JSON.stringify(e)}]`).join("");return r(void 0,a?`Promise.resolve(${t}).then(function (m) { return m${a}; })`:t,"promise")}return r(void 0,[tM(e),...n],void 0)}r()}}}let tU=m("node:fs"),tD=m("node:path");var tH=m.n(tD);let tF=(0,f.createRequire)(import.meta.url),tV={react:{libraryName:["ReactLynx","React"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react":{libraryName:["ReactLynx","React"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/internal":{libraryName:["ReactLynx","ReactInternal"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/jsx-dev-runtime":{libraryName:["ReactLynx","ReactJSXDevRuntime"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/jsx-runtime":{libraryName:["ReactLynx","ReactJSXRuntime"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/lepus/jsx-dev-runtime":{libraryName:["ReactLynx","ReactJSXLepusDevRuntime"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/lepus/jsx-runtime":{libraryName:["ReactLynx","ReactJSXLepusRuntime"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/experimental/lazy/import":{libraryName:["ReactLynx","ReactLazyImport"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/legacy-react-runtime":{libraryName:["ReactLynx","ReactLegacyRuntime"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/runtime-components":{libraryName:["ReactLynx","ReactComponents"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/worklet-runtime/bindings":{libraryName:["ReactLynx","ReactWorkletRuntime"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/debug":{libraryName:["ReactLynx","ReactDebug"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},"@lynx-js/react/refresh":{libraryName:["ReactLynx","ReactRefresh"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1},preact:{libraryName:["ReactLynx","Preact"],background:{sectionPath:"ReactLynx"},mainThread:{sectionPath:"ReactLynx__main-thread"},async:!1}};function tB(e){return e?new Map(e instanceof Map?e:Object.entries(e)):new Map}let tJ=tK();function tG(e){if(e)return!0===e?{}:e}function tZ(e){return e.replace(/^\/+/,"")}function tK(){return{reactlynx:{resolveExternals:(e,t)=>{var a,o;let n;return a=tG(e),o=tW(t),n=a?.url?{url:a.url}:{bundlePath:tY(a,o)},Object.fromEntries(Object.entries(tV).map(([e,t])=>[e,{...t,...a?.async===void 0?{}:{async:a.async},...n}]))},resolveManagedAssets(e,t){let a=tG(e);if(!a||a.url)return new Map;let o=tW(t);return new Map([[tY(a,o),function(e,t,a){let o="production"===process.env.NODE_ENV?"prod":"dev",n=`${t}/${o}${a?"-web":""}`;try{return tF.resolve(n,{paths:[e]})}catch{throw Error(`external-bundle-rsbuild-plugin requires \`${n}\` when \`externalsPresets.reactlynx\` is enabled. Install a compatible \`${t}\` into your devDependencies.`)}}(t.rootPath,a.reactUmdPackageName??"@lynx-js/react-umd",o)]])}}}}function tW(e){let t=e.environmentName;return void 0!==t&&"lynx"!==t&&!t.startsWith("lynx-")}class tX{assets;constructor(e){this.assets=e}apply(e){e.hooks.thisCompilation.tap(tX.name,t=>{t.hooks.processAssets.tap({name:tX.name,stage:e.webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT},()=>{let{RawSource:a}=e.webpack.sources;for(let[e,o]of this.assets)if(!t.getAsset(e)){if(!(0,tU.existsSync)(o))throw Error(`external-bundle-rsbuild-plugin could not find local bundle \`${o}\` for emitted asset \`${e}\`.`);t.emitAsset(e,new a((0,tU.readFileSync)(o),!1))}})})}}function tY(e,t){return e?.bundlePath?tZ(e.bundlePath):t?"react.web.bundle":"react.lynx.bundle"}function tQ(e,t){return"string"!=typeof t?t:{bundlePath:t,libraryName:e,background:{sectionPath:e},mainThread:{sectionPath:`${e}__main-thread`},async:!0}}function t0(e){return{name:"lynx:external-bundle",setup(t){let a,o=function(e){let t={...tK()};for(let[a,o]of Object.entries(e??{})){let e=tJ[a];t[a]=e?function(e,t){return{extends:[...e.extends?Array.isArray(e.extends)?e.extends:[e.extends]:[],...t.extends?Array.isArray(t.extends)?t.extends:[t.extends]:[]],resolveExternals:(a,o)=>({...e.resolveExternals?.(a,o)??{},...t.resolveExternals?.(a,o)??{}}),resolveManagedAssets(a,o){let n=tB(e.resolveManagedAssets?.(a,o));for(let[e,i]of tB(t.resolveManagedAssets?.(a,o)))n.set(e,i);return n}}}(e,o):o}return t}(e.externalsPresetDefinitions),n=new Map;t.modifyRsbuildConfig((t,{mergeRsbuildConfig:o})=>(a=t.server?.base,void 0===e.externals&&void 0===e.externalsPresets)?t:o(t,{server:{setup:({server:e,action:t})=>{"dev"===t&&e.middlewares.use((e,t,a)=>{let o=e.url?n.get(e.url):void 0;if(o&&(0,tU.existsSync)(o)){t.setHeader("Content-Type","application/octet-stream"),t.setHeader("Access-Control-Allow-Origin","*");let e=(0,tU.createReadStream)(o);e.on("error",()=>{t.headersSent||(t.statusCode=404),t.end()}),e.pipe(t);return}a()})}}})),t.modifyRspackConfig((i,{environment:s})=>{let r=t.useExposed(Symbol.for("LAYERS"));if(!r)throw Error("external-bundle-rsbuild-plugin requires exposed `LAYERS`. Please install a DSL plugin, for example `pluginReactLynx` for ReactLynx.");let c=function(e,t,a){let o={},n=new Map;for(let[i,s]of Object.entries(e??{})){if(!s)continue;let e=function e(t,a,o,n,i){let s=o[t];if(!s)throw Error(`Unknown externals preset "${t}". Define it in \`externalsPresetDefinitions\` before enabling it in \`externalsPresets\`.`);if(n.includes(t))throw Error(`Circular externals preset dependency detected: ${[...n,t].join(" -> ")}`);let r={},c=new Map,l=[...n,t];for(let t of s.extends?Array.isArray(s.extends)?s.extends:[s.extends]:[]){let a=e(t,!0,o,l,i);for(let[e,t]of(Object.assign(r,a.externals),a.managedAssets))c.set(e,t)}for(let[e,t]of(Object.assign(r,s.resolveExternals?.(a,i)??{}),tB(s.resolveManagedAssets?.(a,i))))c.set(e,t);return{externals:r,managedAssets:c}}(i,s,t,[],a);for(let[t,a]of(Object.assign(o,e.externals),e.managedAssets))n.set(t,a)}return{externals:o,managedAssets:n}}(e.externalsPresets,o,{rootPath:t.context.rootPath,environmentName:s.name}),l=function(e){if(!e)return{};for(let[t,a]of Object.entries(e)){let e=tQ(t,a);if(!e.url&&!e.bundlePath)throw Error(`external-bundle-rsbuild-plugin requires \`url\` or \`bundlePath\` for external "${t}".`)}return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,tQ(e,t)]))}(e.externals),p={...c.externals,...l},u=function(e,t,a){let o=new Map(t),n=tH().resolve(a.context.rootPath,e.externalBundleRoot??"dist-external-bundle");for(let[t,a]of Object.entries(e.externals??{})){let e=tQ(t,a);!e.url&&e.bundlePath&&o.set(tZ(e.bundlePath),tH().resolve(n,tZ(e.bundlePath)))}return o}(e,c.managedAssets,t);for(let[e,t]of u)n.set(function(e,t){let a=e??"/",o=tZ(t);if("/"===a)return`/${o}`;if(/^[a-z][a-z\d+\-.]*:/i.test(a))try{return new URL(o,a).toString()}catch{}return`${a.replace(/\/$/,"")}/${o}`}(a,e),t);return i.plugins=i.plugins||[],u.size>0&&i.plugins.push(new tX(u)),i.plugins.push(new tL({backgroundLayer:r.BACKGROUND,mainThreadLayer:r.MAIN_THREAD,externals:p,globalObject:e.globalObject,timeout:e.timeout,retries:e.retries})),i})}}}var t1={},t2={};function t4(e){var t=t2[e];if(void 0!==t)return t.exports;var a=t2[e]={exports:{}};return t1[e](a,a.exports,t4),a.exports}t4.m=t1,t4.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return t4.d(t,{a:t}),t},t4.d=(e,t,a)=>{var o=(t,a)=>{for(var o in t)t4.o(t,o)&&!t4.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,[a]:t[o]})};o(t,"get"),o(a,"value")},t4.add=function(e){Object.assign(t4.m,e)},t4.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t4.add({"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(e,t,a){let o=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"),{safeRe:s,t:r}=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"),c=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"),{compareIdentifiers:l}=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js");e.exports=class e{constructor(t,a){if(a=c(a),t instanceof e)if(!!a.loose===t.loose&&!!a.includePrerelease===t.includePrerelease)return t;else t=t.version;else if("string"!=typeof t)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>n)throw TypeError(`version is longer than ${n} characters`);o("SemVer",t,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let l=t.trim().match(a.loose?s[r.LOOSE]:s[r.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(o("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return(t instanceof e||(t=new e(t,this.options)),this.major<t.major)?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return -1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let a=0;do{let e=this.prerelease[a],n=t.prerelease[a];if(o("prerelease compare",a,e,n),void 0===e&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===e)return -1;if(e===n)continue;return l(e,n)}while(++a)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let a=0;do{let e=this.build[a],n=t.build[a];if(o("build compare",a,e,n),void 0===e&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===e)return -1;if(e===n)continue;return l(e,n)}while(++a)}inc(e,t,a){if(e.startsWith("pre")){if(!t&&!1===a)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?s[r.PRERELEASELOOSE]:s[r.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,a);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,a);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,a),this.inc("pre",t,a);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,a),this.inc("pre",t,a);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(a);if(0===this.prerelease.length)this.prerelease=[e];else{let o=this.prerelease.length;for(;--o>=0;)"number"==typeof this.prerelease[o]&&(this.prerelease[o]++,o=-2);if(-1===o){if(t===this.prerelease.join(".")&&!1===a)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let o=[t,e];!1===a&&(o=[t]),((e,t)=>{let a=t.split(".");if(a.length>e.length)return!1;for(let t=0;t<a.length;t++)if(0!==l(e[t],a[t]))return!1;return!0})(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=o):this.prerelease=o}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(e,t,a){let o=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js");e.exports=(e,t,a)=>new o(e,a).compare(new o(t,a))},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(e,t,a){let o=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js");e.exports=(e,t,a)=>o(e,t,a)>=0},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(e){e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(e){e.exports="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(e){let t=/^[0-9]+$/,a=(e,a)=>{if("number"==typeof e&&"number"==typeof a)return e===a?0:e<a?-1:1;let o=t.test(e),n=t.test(a);return o&&n&&(e*=1,a*=1),e===a?0:o&&!n?-1:n&&!o?1:e<a?-1:1};e.exports={compareIdentifiers:a,rcompareIdentifiers:(e,t)=>a(t,e)}},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(e){let t=Object.freeze({loose:!0}),a=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:a},"../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(e,t,a){let{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"),s=a("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"),r=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],p=t.safeSrc=[],u=t.t={},d=0,m="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[m,n]],f=(e,t,a)=>{let o=(e=>{for(let[t,a]of h)e=e.split(`${t}*`).join(`${t}{0,${a}}`).split(`${t}+`).join(`${t}{1,${a}}`);return e})(t),n=d++;s(e,n,t),u[e]=n,l[n]=t,p[n]=o,r[n]=new RegExp(t,a?"g":void 0),c[n]=new RegExp(o,a?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),f("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${m}+`),f("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),f("FULL",`^${l[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),f("LOOSE",`^${l[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),f("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`),f("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?`+"(?:$|[^\\d])"),f("COERCERTL",l[u.COERCE],!0),f("COERCERTLFULL",l[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}});let t3=t4("../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js");var t9=t4.n(t3);let t5=Symbol.for("@lynx-js/plugin-react-alias");function t6(e){let{LAYERS:t,lazy:a,rootPath:o,elementTemplate:n}=e??{};return{name:"lynx:react-alias",setup(e){let i=(0,f.createRequire)(import.meta.url),s=i.resolve("@lynx-js/react/package.json",{paths:[o??e.context.rootPath]}),{version:r}=i(s),c=tH().dirname(s);e.modifyRsbuildConfig((e,{mergeRsbuildConfig:t})=>t(e,{source:{include:[c]}})),e.modifyBundlerChain(async(i,{isProd:s,environment:l,rspack:p})=>{if(Object.hasOwn(l,t5))return;let u=t8(p,o??e.context.rootPath,a?["lazy","import"]:["import"]),d=t8(p,c,["import"]);e.expose(Symbol.for("@lynx-js/react/internal:resolve"),{resolve:u}),Object.defineProperty(l,t5,{value:!0});let[m,h,f,v,g,b,y,x,_,S,w,$,R,j]=await Promise.all([u("@lynx-js/react/jsx-runtime"),u("@lynx-js/react/lepus/jsx-runtime"),u("@lynx-js/react/jsx-dev-runtime"),u("@lynx-js/react/lepus/jsx-dev-runtime"),n?u("@lynx-js/react/element-template/jsx-runtime"):Promise.resolve(null),n?u("@lynx-js/react/element-template/jsx-dev-runtime"):Promise.resolve(null),d("preact/hooks"),u("@lynx-js/react/hooks"),u("@lynx-js/react/lepus/hooks"),u("@lynx-js/react"),u("@lynx-js/react/lepus"),t9()(r,"0.111.9999")?u("@lynx-js/react/compat"):Promise.resolve(null),n?u("@lynx-js/react/element-template"):Promise.resolve(null),n?u("@lynx-js/react/element-template/internal"):Promise.resolve(null)]),E={background:m,mainThread:g??h},k={background:f,mainThread:b??v};i.module.rule("react:jsx-runtime:main-thread").issuerLayer(t.MAIN_THREAD).resolve.alias.set("react/jsx-runtime",E.mainThread).set("react/jsx-dev-runtime",k.mainThread).set("@lynx-js/react/jsx-runtime",E.mainThread).set("@lynx-js/react/jsx-dev-runtime",k.mainThread).set("@lynx-js/react/lepus$",w).set("@lynx-js/react/lepus/jsx-runtime",E.mainThread).set("@lynx-js/react/lepus/jsx-dev-runtime",k.mainThread).set("preact/hooks",_).set("@lynx-js/react/hooks",_).set("@lynx-js/react/lepus/hooks",_).end().end().end().rule("react:jsx-runtime:background").issuerLayer(t.BACKGROUND).resolve.alias.set("react/jsx-runtime",E.background).set("react/jsx-dev-runtime",k.background).set("@lynx-js/react/jsx-runtime",E.background).set("@lynx-js/react/jsx-dev-runtime",k.background).set("@lynx-js/react/lepus$",R??S).set("preact/hooks",y).set("@lynx-js/react/hooks",x).end().end().end().end();let P=new Map;for(let[e,t]of(n&&P.set("experimental/lazy/import",tD.join(c,"runtime/lazy/element-template-import.js")),await Promise.all(["experimental/lazy/import","internal","legacy-react-runtime","runtime-components","worklet-runtime/bindings"].map(async e=>{let t=`@lynx-js/react/${e}`,a=P.get(e)??await u(t);return[`${t}$`,a]}))))i.resolve.alias.set(e,t);s&&(i.resolve.alias.set("@lynx-js/react/debug$",!1),process.env.REACT_DEVTOOL||i.resolve.alias.set("@lynx-js/preact-devtools$",!1)),i.resolve.alias.has("react$")||i.resolve.alias.set("react$",S),i.resolve.alias.set("@lynx-js/react$",R??S).set("@lynx-js/react/internal$",j??i.resolve.alias.get("@lynx-js/react/internal$")).set("@lynx-js/react/jsx-runtime",E.background).set("@lynx-js/react/jsx-dev-runtime",k.background),n&&i.resolve.alias.set("@lynx-js/react/element-template$",R).set("@lynx-js/react/element-template/internal$",j).set("@lynx-js/react/element-template/jsx-runtime",g).set("@lynx-js/react/element-template/jsx-dev-runtime",b),$&&i.resolve.alias.set("@lynx-js/react/compat$",$),await Promise.all(["preact","preact/compat","preact/debug","preact/devtools","preact/test-utils","preact/jsx-runtime","preact/jsx-dev-runtime","preact/compat","preact/compat/client","preact/compat/server","preact/compat/jsx-runtime","preact/compat/jsx-dev-runtime","preact/compat/scheduler"].map(e=>d(e).then(t=>{i.resolve.alias.set(`${e}$`,t)})))})}}}function t8(e,t,a){let o,n,{ResolverFactory:i}=e.experiments.resolver;return async e=>{if(o||(o={}),void 0===o[e]){if(!n){let e=new i({conditionNames:a,enablePnp:!!process.versions.pnp});n=(t,a)=>e.sync(t,a)}let s=n(t,e);if(s.error)throw Error(s.error);if(!s.path)throw Error(`Failed to resolve ${e}`);o[e]=s.path}return o[e]}}let t7=tA(function(e,t,a){tk(e,t,a)}),ae=m("node:os");v||h.env.TERM_PROGRAM;let at=!v&&"win32"===h.platform;!v&&(h.env.TERM?.startsWith("screen")||h.env.TERM?.startsWith("tmux")||h.env.TMUX),v||h.cwd;let aa=(e=1)=>"\x1b["+e+"A",ao=e=>{let t="";for(let a=0;a<e;a++)t+=an+(a<e-1?aa():"");return e&&(t+="\x1b[G"),t},an="\x1b[2K";function ai(e,t,a=!1){let o;for(let i of e){var n;if(n=i.family,"IPv4"===t?"IPv4"===n||4===n:"IPv6"===t?"IPv6"===n||6===n:n===t){if(a&&i.address.startsWith("127."))continue;if("IPv6"!==t||0===i.scopeid)return i;o||(o=i)}}return o}(()=>{if(v||!at)return;let e=ae.release().split("."),t=Number(e[0]),a=Number(e[2]??0);return t<10||10===t})(),m("node:fs/promises"),m("node:child_process");let as=m("node:net"),ar=m("node:util"),ac=(0,ar.debuglog)("detect-port");class al extends Error{constructor(e){super("The IP address is not available on this machine",e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}async function ap(e,t,a){return e>=t&&(ac("port: %s >= maxPort: %s, give up and use random port",e,t),e=0,t=0),await au(e,t,a)}async function au(e,t,a){if(a)try{return await ad(e,a)}catch(o){if("EADDRNOTAVAIL"===o.code)throw new al({cause:o});return await ap(++e,t,a)}try{await ad(e)}catch(o){if(0===e)throw o;return await ap(++e,t,a)}try{await ad(e,"0.0.0.0")}catch(o){return await ap(++e,t,a)}try{await ad(e,"127.0.0.1")}catch(o){return await ap(++e,t,a)}try{await ad(e,"localhost")}catch(o){if("EADDRNOTAVAIL"!==o.code)return await ap(++e,t,a)}try{let t;return await ad(e,(t=function(e,t){let a,o,n=ae.networkInterfaces(),i=!t;if(t=t||(a="eth",o=ae.platform(),"darwin"===o?a="en":"win32"===o&&(a=void 0),a),e=e||"IPv4",t)for(let a=-1;a<8;a++){let o=n[t+(a>=0?a:"")];if(o){let t=ai(o,e);if(t)return t}}if(i)for(let t in n){let a=n[t];if(a){let t=ai(a,e,!0);if(t)return t}}}("IPv4",void 0),t?.address))}catch(o){return await ap(++e,t,a)}}function ad(e,t){let a=(0,as.createServer)();return new Promise((o,n)=>{a.once("error",i=>(ac("listen %s:%s error: %s",t,e,i),a.close(),"ENOTFOUND"===i.code)?(ac("ignore dns ENOTFOUND error, get free %s:%s",t,e),o(e)):n(i)),ac("try listen %d on %s",e,t),a.listen(e,t,()=>(ac("get free %s:%s",t,e=a.address().port),a.close(),o(e)))})}(0,ar.debuglog)("detect-port:wait-port");let am=function(e,t){let a="";e&&"object"==typeof e?(a=e.hostname,t=e.callback,e=e.port):"function"==typeof e&&(t=e,e=void 0);let o=(e=parseInt(e)||0)+10;return(o>65535&&(o=65535),ac("detect free port between [%s, %s)",e,o),"function"==typeof t)?au(e,o,a).then(e=>t(null,e)).catch(t):au(e,o,a)};var ah=Object.create,af=Object.defineProperty,av=Object.getOwnPropertyDescriptor,ag=Object.getOwnPropertyNames,ab=Object.getPrototypeOf,ay=Object.prototype.hasOwnProperty,ax=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a_=(e,t,a)=>(a=null!=e?ah(ab(e)):{},((e,t,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,n=ag(t),i=0,s=n.length;i<s;i++)o=n[i],ay.call(e,o)||void 0===o||af(e,o,{get:(e=>t[e]).bind(null,o),enumerable:!(a=av(t,o))||a.enumerable});return e})(!t&&e&&e.__esModule?a:af(a,"default",{value:e,enumerable:!0}),e));let aS=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),aw=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),a$=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),aR=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]),aj=Object.freeze({status:"aborted"});function aE(e,t,a){function o(a,o){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:o,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,o);let n=s.prototype,i=Object.keys(n);for(let e=0;e<i.length;e++){let t=i[e];t in a||(a[t]=n[t].bind(a))}}let n=a?.Parent??Object;class i extends n{}function s(e){var t;let n=a?.Parent?new i:this;for(let a of(o(n,e),(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred))a();return n}return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!a?.Parent&&t instanceof a.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}Symbol("zod_brand");class ak extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class aP extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let aT={};function aO(e){return e&&Object.assign(aT,e),aT}function aC(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,a])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function aI(e,t="|"){return e.map(e=>aX(e)).join(t)}function aN(e,t){return"bigint"==typeof t?t.toString():t}function aq(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function aA(e){let t=+!!e.startsWith("^"),a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}let az=Symbol("evaluating");function aM(e,t,a){let o;Object.defineProperty(e,t,{get(){if(o!==az)return void 0===o&&(o=az,o=a()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function aL(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function aU(...e){let t={};for(let a of e)Object.assign(t,Object.getOwnPropertyDescriptors(a));return Object.defineProperties({},t)}function aD(e){return JSON.stringify(e)}let aH="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function aF(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let aV=aq(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function aB(e){if(!1===aF(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let a=t.prototype;return!1!==aF(a)&&!1!==Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")}function aJ(e){return aB(e)?{...e}:Array.isArray(e)?[...e]:e}let aG=new Set(["string","number","symbol"]);function aZ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function aK(e,t,a){let o=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(o._zod.parent=e),o}function aW(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function aX(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}let aY={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function aQ(e,t=0){if(!0===e.aborted)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function a0(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function a1(e){return"string"==typeof e?e:e?.message}function a2(e,t,a){let o={...e,path:e.path??[]};return e.message||(o.message=a1(e.inst?._zod.def?.error?.(e))??a1(t?.error?.(e))??a1(a.customError?.(e))??a1(a.localeError?.(e))??"Invalid input"),delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function a4(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function a3(...e){let[t,a,o]=e;return"string"==typeof t?{message:t,code:"custom",input:a,inst:o}:{...t}}let a9=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,aN,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},a5=aE("$ZodError",a9),a6=aE("$ZodError",a9,{Parent:Error}),a8=e=>(t,a,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},s=t._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new ak;if(s.issues.length){let t=new(n?.Err??e)(s.issues.map(e=>a2(e,i,aO())));throw aH(t,n?.callee),t}return s.value},a7=e=>async(t,a,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},s=t._zod.run({value:a,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(n?.Err??e)(s.issues.map(e=>a2(e,i,aO())));throw aH(t,n?.callee),t}return s.value},oe=e=>(t,a,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new ak;return i.issues.length?{success:!1,error:new(e??a5)(i.issues.map(e=>a2(e,n,aO())))}:{success:!0,data:i.value}},ot=oe(a6),oa=e=>async(t,a,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:a,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(e=>a2(e,n,aO())))}:{success:!0,data:i.value}},oo=oa(a6),on=/^[cC][^\s-]{8,}$/,oi=/^[0-9a-z]+$/,os=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,or=/^[0-9a-vA-V]{20}$/,oc=/^[A-Za-z0-9]{27}$/,ol=/^[a-zA-Z0-9_-]{21}$/,op=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ou=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,od=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,om=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,oh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,of=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ov=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,og=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ob=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,oy=/^[A-Za-z0-9_-]*$/,ox=/^\+(?:[0-9]){6,14}[0-9]$/,o_="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",oS=RegExp(`^${o_}$`);function ow(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let o$=/^-?\d+$/,oR=/^-?\d+(?:\.\d+)?/,oj=/^(?:true|false)$/i,oE=/^null$/i,ok=/^[^A-Z]*$/,oP=/^[^a-z]*$/,oT=aE("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),oO={number:"number",bigint:"bigint",object:"date"},oC=aE("$ZodCheckLessThan",(e,t)=>{oT.init(e,t);let a=oO[typeof t.value];e._zod.onattach.push(e=>{let a=e._zod.bag,o=(t.inclusive?a.maximum:a.exclusiveMaximum)??1/0;t.value<o&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:a,code:"too_big",maximum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oI=aE("$ZodCheckGreaterThan",(e,t)=>{oT.init(e,t);let a=oO[typeof t.value];e._zod.onattach.push(e=>{let a=e._zod.bag,o=(t.inclusive?a.minimum:a.exclusiveMinimum)??-1/0;t.value>o&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:a,code:"too_small",minimum:t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oN=aE("$ZodCheckMultipleOf",(e,t)=>{oT.init(e,t),e._zod.onattach.push(e=>{var a;(a=e._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof a.value?a.value%t.value===BigInt(0):0===function(e,t){let a=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(0===n&&/\d?e-\d?/.test(o)){let e=o.match(/\d?e-(\d?)/);e?.[1]&&(n=Number.parseInt(e[1]))}let i=a>n?a:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(a.value,t.value))||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),oq=aE("$ZodCheckNumberFormat",(e,t)=>{oT.init(e,t),t.format=t.format||"float64";let a=t.format?.includes("int"),o=a?"int":"number",[n,i]=aY[t.format];e._zod.onattach.push(e=>{let o=e._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i,a&&(o.pattern=o$)}),e._zod.check=s=>{let r=s.value;if(a){if(!Number.isInteger(r))return void s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:r,inst:e});if(!Number.isSafeInteger(r))return void(r>0?s.issues.push({input:r,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort}):s.issues.push({input:r,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,continue:!t.abort}))}r<n&&s.issues.push({origin:"number",input:r,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),r>i&&s.issues.push({origin:"number",input:r,code:"too_big",maximum:i,inst:e})}}),oA=aE("$ZodCheckMaxLength",(e,t)=>{var a;oT.init(e,t),(a=e._zod.def).when??(a.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let a=e._zod.bag.maximum??1/0;t.maximum<a&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let o=a.value;if(o.length<=t.maximum)return;let n=a4(o);a.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),oz=aE("$ZodCheckMinLength",(e,t)=>{var a;oT.init(e,t),(a=e._zod.def).when??(a.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let a=e._zod.bag.minimum??-1/0;t.minimum>a&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let o=a.value;if(o.length>=t.minimum)return;let n=a4(o);a.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),oM=aE("$ZodCheckLengthEquals",(e,t)=>{var a;oT.init(e,t),(a=e._zod.def).when??(a.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let a=e._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=a=>{let o=a.value,n=o.length;if(n===t.length)return;let i=a4(o),s=n>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),oL=aE("$ZodCheckStringFormat",(e,t)=>{var a,o;oT.init(e,t),e._zod.onattach.push(e=>{let a=e._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=a=>{t.pattern.lastIndex=0,t.pattern.test(a.value)||a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),oU=aE("$ZodCheckRegex",(e,t)=>{oL.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,t.pattern.test(a.value)||a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),oD=aE("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ok),oL.init(e,t)}),oH=aE("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=oP),oL.init(e,t)}),oF=aE("$ZodCheckIncludes",(e,t)=>{oT.init(e,t);let a=aZ(t.includes),o=new RegExp("number"==typeof t.position?`^.{${t.position}}${a}`:a);t.pattern=o,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),oV=aE("$ZodCheckStartsWith",(e,t)=>{oT.init(e,t);let a=RegExp(`^${aZ(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(a)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),oB=aE("$ZodCheckEndsWith",(e,t)=>{oT.init(e,t);let a=RegExp(`.*${aZ(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(a)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}}),oJ=aE("$ZodCheckOverwrite",(e,t)=>{oT.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class oG{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),a=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(a)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let oZ={major:4,minor:2,patch:0},oK=aE("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=oZ;let o=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&o.unshift(e),o))for(let a of t._zod.onattach)a(e);if(0===o.length)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,a)=>{let o,n=aQ(e);for(let i of t){if(i._zod.def.when){if(!i._zod.def.when(e))continue}else if(n)continue;let t=e.issues.length,s=i._zod.check(e);if(s instanceof Promise&&a?.async===!1)throw new ak;if(o||s instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(n||(n=aQ(e,t)))});else{if(e.issues.length===t)continue;n||(n=aQ(e,t))}}return o?o.then(()=>e):e},a=(a,n,i)=>{if(aQ(a))return a.aborted=!0,a;let s=t(n,o,i);if(s instanceof Promise){if(!1===i.async)throw new ak;return s.then(t=>e._zod.parse(t,i))}return e._zod.parse(s,i)};e._zod.run=(n,i)=>{if(i.skipChecks)return e._zod.parse(n,i);if("backward"===i.direction){let t=e._zod.parse({value:n.value,issues:[]},{...i,skipChecks:!0});return t instanceof Promise?t.then(e=>a(e,n,i)):a(t,n,i)}let s=e._zod.parse(n,i);if(s instanceof Promise){if(!1===i.async)throw new ak;return s.then(e=>t(e,o,i))}return t(s,o,i)}}e["~standard"]={validate:t=>{try{let a=ot(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch(a){return oo(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),oW=aE("$ZodString",(e,t)=>{var a;let o;oK.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(o=(a=e._zod.bag)?`[\\s\\S]{${a?.minimum??0},${a?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${o}$`)),e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=String(a.value)}catch(e){}return"string"==typeof a.value||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),oX=aE("$ZodStringFormat",(e,t)=>{oL.init(e,t),oW.init(e,t)}),oY=aE("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ou),oX.init(e,t)}),oQ=aE("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=od(e))}else t.pattern??(t.pattern=od());oX.init(e,t)}),o0=aE("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=om),oX.init(e,t)}),o1=aE("$ZodURL",(e,t)=>{oX.init(e,t),e._zod.check=a=>{try{let o=a.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=n.href:a.value=o;return}catch(o){a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),o2=aE("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),oX.init(e,t)}),o4=aE("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ol),oX.init(e,t)}),o3=aE("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=on),oX.init(e,t)}),o9=aE("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=oi),oX.init(e,t)}),o5=aE("$ZodULID",(e,t)=>{t.pattern??(t.pattern=os),oX.init(e,t)}),o6=aE("$ZodXID",(e,t)=>{t.pattern??(t.pattern=or),oX.init(e,t)}),o8=aE("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=oc),oX.init(e,t)}),o7=aE("$ZodISODateTime",(e,t)=>{let a,o,n;t.pattern??(a=ow({precision:t.precision}),o=["Z"],t.local&&o.push(""),t.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),n=`${a}(?:${o.join("|")})`,t.pattern=RegExp(`^${o_}T(?:${n})$`)),oX.init(e,t)}),ne=aE("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=oS),oX.init(e,t)}),nt=aE("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${ow(t)}$`)),oX.init(e,t)}),na=aE("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=op),oX.init(e,t)}),no=aE("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=oh),oX.init(e,t),e._zod.bag.format="ipv4"}),nn=aE("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=of),oX.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),ni=aE("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ov),oX.init(e,t)}),ns=aE("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=og),oX.init(e,t),e._zod.check=a=>{let o=a.value.split("/");try{if(2!==o.length)throw Error();let[e,t]=o;if(!t)throw Error();let a=Number(t);if(`${a}`!==t||a<0||a>128)throw Error();new URL(`http://[${e}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function nr(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let nc=aE("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ob),oX.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{nr(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}}),nl=aE("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=oy),oX.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{!function(e){if(!oy.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return nr(t.padEnd(4*Math.ceil(t.length/4),"="))}(a.value)&&a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),np=aE("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ox),oX.init(e,t)}),nu=aE("$ZodJWT",(e,t)=>{oX.init(e,t),e._zod.check=a=>{!function(e,t=null){try{let a=e.split(".");if(3!==a.length)return!1;let[o]=a;if(!o)return!1;let n=JSON.parse(atob(o));if("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}(a.value,t.alg)&&a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),nd=aE("$ZodNumber",(e,t)=>{oK.init(e,t),e._zod.pattern=e._zod.bag.pattern??oR,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=Number(a.value)}catch(e){}let n=a.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return a;let i="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),a}}),nm=aE("$ZodNumberFormat",(e,t)=>{oq.init(e,t),nd.init(e,t)}),nh=aE("$ZodBoolean",(e,t)=>{oK.init(e,t),e._zod.pattern=oj,e._zod.parse=(a,o)=>{if(t.coerce)try{a.value=!!a.value}catch(e){}let n=a.value;return"boolean"==typeof n||a.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),a}}),nf=aE("$ZodNull",(e,t)=>{oK.init(e,t),e._zod.pattern=oE,e._zod.values=new Set([null]),e._zod.parse=(t,a)=>{let o=t.value;return null===o||t.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),t}}),nv=aE("$ZodAny",(e,t)=>{oK.init(e,t),e._zod.parse=e=>e}),ng=aE("$ZodUnknown",(e,t)=>{oK.init(e,t),e._zod.parse=e=>e}),nb=aE("$ZodNever",(e,t)=>{oK.init(e,t),e._zod.parse=(t,a)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function ny(e,t,a){e.issues.length&&t.issues.push(...a0(a,e.issues)),t.value[a]=e.value}let nx=aE("$ZodArray",(e,t)=>{oK.init(e,t),e._zod.parse=(a,o)=>{let n=a.value;if(!Array.isArray(n))return a.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),a;a.value=Array(n.length);let i=[];for(let e=0;e<n.length;e++){let s=n[e],r=t.element._zod.run({value:s,issues:[]},o);r instanceof Promise?i.push(r.then(t=>ny(t,a,e))):ny(r,a,e)}return i.length?Promise.all(i).then(()=>a):a}});function n_(e,t,a,o){e.issues.length&&t.issues.push(...a0(a,e.issues)),void 0===e.value?a in o&&(t.value[a]=void 0):t.value[a]=e.value}function nS(e){var t;let a=Object.keys(e.shape);for(let t of a)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let o=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(o)}}function nw(e,t,a,o,n,i){let s=[],r=n.keySet,c=n.catchall._zod,l=c.def.type;for(let n in t){if(r.has(n))continue;if("never"===l){s.push(n);continue}let i=c.run({value:t[n],issues:[]},o);i instanceof Promise?e.push(i.then(e=>n_(e,a,n,t))):n_(i,a,n,t)}return(s.length&&a.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length)?Promise.all(e).then(()=>a):a}let n$=aE("$ZodObject",(e,t)=>{let a;oK.init(e,t);let o=Object.getOwnPropertyDescriptor(t,"shape");if(!o?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let a={...e};return Object.defineProperty(t,"shape",{value:a}),a}})}let n=aq(()=>nS(t));aM(e._zod,"propValues",()=>{let e=t.shape,a={};for(let t in e){let o=e[t]._zod;if(o.values)for(let e of(a[t]??(a[t]=new Set),o.values))a[t].add(e)}return a});let i=t.catchall;e._zod.parse=(t,o)=>{a??(a=n.value);let s=t.value;if(!aF(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let r=[],c=a.shape;for(let e of a.keys){let a=c[e]._zod.run({value:s[e],issues:[]},o);a instanceof Promise?r.push(a.then(a=>n_(a,t,e,s))):n_(a,t,e,s)}return i?nw(r,s,t,o,n.value,e):r.length?Promise.all(r).then(()=>t):t}}),nR=aE("$ZodObjectJIT",(e,t)=>{let a,o;n$.init(e,t);let n=e._zod.parse,i=aq(()=>nS(t)),s=!aT.jitless,r=s&&aV.value,c=t.catchall;e._zod.parse=(l,p)=>{o??(o=i.value);let u=l.value;return aF(u)?s&&r&&p?.async===!1&&!0!==p.jitless?(a||(a=(e=>{let t=new oG(["shape","payload","ctx"]),a=i.value,o=e=>{let t=aD(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let n=Object.create(null),s=0;for(let e of a.keys)n[e]=`key_${s++}`;for(let e of(t.write("const newResult = {};"),a.keys)){let a=n[e],i=aD(e);t.write(`const ${a} = ${o(e)};`),t.write(`
|
|
158
|
+
if (${a}.issues.length) {
|
|
159
|
+
payload.issues = payload.issues.concat(${a}.issues.map(iss => ({
|
|
160
|
+
...iss,
|
|
161
|
+
path: iss.path ? [${i}, ...iss.path] : [${i}]
|
|
162
|
+
})));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
if (${a}.value === undefined) {
|
|
167
|
+
if (${i} in input) {
|
|
168
|
+
newResult[${i}] = undefined;
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
171
|
+
newResult[${i}] = ${a}.value;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
`)}t.write("payload.value = newResult;"),t.write("return payload;");let r=t.compile();return(t,a)=>r(e,t,a)})(t.shape)),l=a(l,p),c)?nw([],u,l,p,o,e):l:n(l,p):(l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l)}});function nj(e,t,a,o){for(let a of e)if(0===a.issues.length)return t.value=a.value,t;let n=e.filter(e=>!aQ(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(e=>e.issues.map(e=>a2(e,o,aO())))}),t)}let nE=aE("$ZodUnion",(e,t)=>{oK.init(e,t),aM(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),aM(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),aM(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),aM(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>aA(e.source)).join("|")})$`)}});let a=1===t.options.length,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(a)return o(n,i);let s=!1,r=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},i);if(t instanceof Promise)r.push(t),s=!0;else{if(0===t.issues.length)return t;r.push(t)}}return s?Promise.all(r).then(t=>nj(t,n,e,i)):nj(r,n,e,i)}}),nk=aE("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nE.init(e,t);let a=e._zod.parse;aM(e._zod,"propValues",()=>{let e={};for(let a of t.options){let o=a._zod.propValues;if(!o||0===Object.keys(o).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[t,a]of Object.entries(o))for(let o of(e[t]||(e[t]=new Set),a))e[t].add(o)}return e});let o=aq(()=>{let e=t.options,a=new Map;for(let o of e){let e=o._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let t of e){if(a.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);a.set(t,o)}}return a});e._zod.parse=(n,i)=>{let s=n.value;if(!aF(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let r=o.value.get(s?.[t.discriminator]);return r?r._zod.run(n,i):t.unionFallback?a(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),n)}}),nP=aE("$ZodIntersection",(e,t)=>{oK.init(e,t),e._zod.parse=(e,a)=>{let o=e.value,n=t.left._zod.run({value:o,issues:[]},a),i=t.right._zod.run({value:o,issues:[]},a);return n instanceof Promise||i instanceof Promise?Promise.all([n,i]).then(([t,a])=>nT(e,t,a)):nT(e,n,i)}});function nT(e,t,a){if(t.issues.length&&e.issues.push(...t.issues),a.issues.length&&e.issues.push(...a.issues),aQ(e))return e;let o=function e(t,a){if(t===a||t instanceof Date&&a instanceof Date&&+t==+a)return{valid:!0,data:t};if(aB(t)&&aB(a)){let o=Object.keys(a),n=Object.keys(t).filter(e=>-1!==o.indexOf(e)),i={...t,...a};for(let o of n){let n=e(t[o],a[o]);if(!n.valid)return{valid:!1,mergeErrorPath:[o,...n.mergeErrorPath]};i[o]=n.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(a)){if(t.length!==a.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let n=0;n<t.length;n++){let i=e(t[n],a[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o.push(i.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}(t.value,a.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let nO=aE("$ZodRecord",(e,t)=>{oK.init(e,t),e._zod.parse=(a,o)=>{let n=a.value;if(!aB(n))return a.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),a;let i=[],s=t.keyType._zod.values;if(s){let r;a.value={};let c=new Set;for(let e of s)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){c.add("number"==typeof e?e.toString():e);let s=t.valueType._zod.run({value:n[e],issues:[]},o);s instanceof Promise?i.push(s.then(t=>{t.issues.length&&a.issues.push(...a0(e,t.issues)),a.value[e]=t.value})):(s.issues.length&&a.issues.push(...a0(e,s.issues)),a.value[e]=s.value)}for(let e in n)c.has(e)||(r=r??[]).push(e);r&&r.length>0&&a.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:r})}else for(let s of(a.value={},Reflect.ownKeys(n))){if("__proto__"===s)continue;let r=t.keyType._zod.run({value:s,issues:[]},o);if(r instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(r.issues.length){"loose"===t.mode?a.value[s]=n[s]:a.issues.push({code:"invalid_key",origin:"record",issues:r.issues.map(e=>a2(e,o,aO())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:n[s],issues:[]},o);c instanceof Promise?i.push(c.then(e=>{e.issues.length&&a.issues.push(...a0(s,e.issues)),a.value[r.value]=e.value})):(c.issues.length&&a.issues.push(...a0(s,c.issues)),a.value[r.value]=c.value)}return i.length?Promise.all(i).then(()=>a):a}}),nC=aE("$ZodEnum",(e,t)=>{oK.init(e,t);let a=aC(t.entries),o=new Set(a);e._zod.values=o,e._zod.pattern=RegExp(`^(${a.filter(e=>aG.has(typeof e)).map(e=>"string"==typeof e?aZ(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let i=t.value;return o.has(i)||t.issues.push({code:"invalid_value",values:a,input:i,inst:e}),t}}),nI=aE("$ZodLiteral",(e,t)=>{if(oK.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let a=new Set(t.values);e._zod.values=a,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?aZ(e):e?aZ(e.toString()):String(e)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return a.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),nN=aE("$ZodTransform",(e,t)=>{oK.init(e,t),e._zod.parse=(a,o)=>{if("backward"===o.direction)throw new aP(e.constructor.name);let n=t.transform(a.value,a);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(e=>(a.value=e,a));if(n instanceof Promise)throw new ak;return a.value=n,a}});function nq(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let nA=aE("$ZodOptional",(e,t)=>{oK.init(e,t),e._zod.optin="optional",e._zod.optout="optional",aM(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),aM(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${aA(e.source)})?$`):void 0}),e._zod.parse=(e,a)=>{if("optional"===t.innerType._zod.optin){let o=t.innerType._zod.run(e,a);return o instanceof Promise?o.then(t=>nq(t,e.value)):nq(o,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,a)}}),nz=aE("$ZodNullable",(e,t)=>{oK.init(e,t),aM(e._zod,"optin",()=>t.innerType._zod.optin),aM(e._zod,"optout",()=>t.innerType._zod.optout),aM(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${aA(e.source)}|null)$`):void 0}),aM(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,a)=>null===e.value?e:t.innerType._zod.run(e,a)}),nM=aE("$ZodDefault",(e,t)=>{oK.init(e,t),e._zod.optin="optional",aM(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,a)=>{if("backward"===a.direction)return t.innerType._zod.run(e,a);if(void 0===e.value)return e.value=t.defaultValue,e;let o=t.innerType._zod.run(e,a);return o instanceof Promise?o.then(e=>nL(e,t)):nL(o,t)}});function nL(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let nU=aE("$ZodPrefault",(e,t)=>{oK.init(e,t),e._zod.optin="optional",aM(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,a)=>("backward"===a.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,a))}),nD=aE("$ZodNonOptional",(e,t)=>{oK.init(e,t),aM(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(a,o)=>{let n=t.innerType._zod.run(a,o);return n instanceof Promise?n.then(t=>nH(t,e)):nH(n,e)}});function nH(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let nF=aE("$ZodCatch",(e,t)=>{oK.init(e,t),aM(e._zod,"optin",()=>t.innerType._zod.optin),aM(e._zod,"optout",()=>t.innerType._zod.optout),aM(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,a)=>{if("backward"===a.direction)return t.innerType._zod.run(e,a);let o=t.innerType._zod.run(e,a);return o instanceof Promise?o.then(o=>(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>a2(e,a,aO()))},input:e.value}),e.issues=[]),e)):(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>a2(e,a,aO()))},input:e.value}),e.issues=[]),e)}}),nV=aE("$ZodPipe",(e,t)=>{oK.init(e,t),aM(e._zod,"values",()=>t.in._zod.values),aM(e._zod,"optin",()=>t.in._zod.optin),aM(e._zod,"optout",()=>t.out._zod.optout),aM(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,a)=>{if("backward"===a.direction){let o=t.out._zod.run(e,a);return o instanceof Promise?o.then(e=>nB(e,t.in,a)):nB(o,t.in,a)}let o=t.in._zod.run(e,a);return o instanceof Promise?o.then(e=>nB(e,t.out,a)):nB(o,t.out,a)}});function nB(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}let nJ=aE("$ZodReadonly",(e,t)=>{oK.init(e,t),aM(e._zod,"propValues",()=>t.innerType._zod.propValues),aM(e._zod,"values",()=>t.innerType._zod.values),aM(e._zod,"optin",()=>t.innerType?._zod?.optin),aM(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,a)=>{if("backward"===a.direction)return t.innerType._zod.run(e,a);let o=t.innerType._zod.run(e,a);return o instanceof Promise?o.then(nG):nG(o)}});function nG(e){return e.value=Object.freeze(e.value),e}let nZ=aE("$ZodLazy",(e,t)=>{oK.init(e,t),aM(e._zod,"innerType",()=>t.getter()),aM(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),aM(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),aM(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),aM(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,a)=>e._zod.innerType._zod.run(t,a)}),nK=aE("$ZodCustom",(e,t)=>{oT.init(e,t),oK.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=a=>{let o=a.value,n=t.fn(o);if(n instanceof Promise)return n.then(t=>nW(t,a,o,e));nW(n,a,o,e)}});function nW(e,t,a,o){if(!e){let e={code:"custom",input:a,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(e.params=o._zod.def.params),t.issues.push(a3(e))}}Symbol("ZodOutput"),Symbol("ZodInput");(T=globalThis).__zod_globalRegistry??(T.__zod_globalRegistry=new class e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let a=t[0];if(this._map.set(e,a),a&&"object"==typeof a&&"id"in a){if(this._idmap.has(a.id))throw Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let a={...this.get(t)??{}};delete a.id;let o={...a,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});let nX=globalThis.__zod_globalRegistry;function nY(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...aW(t)})}function nQ(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...aW(t)})}function n0(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...aW(t)})}function n1(e,t){return new oC({check:"less_than",...aW(t),value:e,inclusive:!1})}function n2(e,t){return new oC({check:"less_than",...aW(t),value:e,inclusive:!0})}function n4(e,t){return new oI({check:"greater_than",...aW(t),value:e,inclusive:!1})}function n3(e,t){return new oI({check:"greater_than",...aW(t),value:e,inclusive:!0})}function n9(e,t){return new oN({check:"multiple_of",...aW(t),value:e})}function n5(e,t){return new oA({check:"max_length",...aW(t),maximum:e})}function n6(e,t){return new oz({check:"min_length",...aW(t),minimum:e})}function n8(e,t){return new oM({check:"length_equals",...aW(t),length:e})}function n7(e){return new oJ({check:"overwrite",tx:e})}function ie(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??nX,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function it(e,t,a={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,a.schemaPath.includes(e)&&(i.cycle=a.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,s);let r=e._zod.toJSONSchema?.();if(r)s.schema=r;else{let o={...a,schemaPath:[...a.schemaPath,e],path:a.path},i=e._zod.parent;if(i)s.ref=i,it(i,t,o),t.seen.get(i).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,o);else{let a=s.schema,i=t.processors[n.type];if(!i)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);i(e,t,a,o)}}let c=t.metadataRegistry.get(e);return c&&Object.assign(s.schema,c),"input"===t.io&&function e(t,a){let o=a??{seen:new Set};if(o.seen.has(t))return!1;o.seen.add(t);let n=t._zod.def;if("transform"===n.type)return!0;if("array"===n.type)return e(n.element,o);if("set"===n.type)return e(n.valueType,o);if("lazy"===n.type)return e(n.getter(),o);if("promise"===n.type||"optional"===n.type||"nonoptional"===n.type||"nullable"===n.type||"readonly"===n.type||"default"===n.type||"prefault"===n.type)return e(n.innerType,o);if("intersection"===n.type)return e(n.left,o)||e(n.right,o);if("record"===n.type||"map"===n.type)return e(n.keyType,o)||e(n.valueType,o);if("pipe"===n.type)return e(n.in,o)||e(n.out,o);if("object"===n.type){for(let t in n.shape)if(e(n.shape[t],o))return!0;return!1}if("union"===n.type){for(let t of n.options)if(e(t,o))return!0;return!1}if("tuple"===n.type){for(let t of n.items)if(e(t,o))return!0;if(n.rest&&e(n.rest,o))return!0}return!1}(e)&&(delete s.schema.examples,delete s.schema.default),"input"===t.io&&s.schema._prefault&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function ia(e,t){let a=e.seen.get(t);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");let o=t=>{if(t[1].schema.$ref)return;let o=t[1],{ref:n,defId:i}=(t=>{let o="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let a=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(a)return{ref:n(a)};let i=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=i,{defId:i,ref:`${n("__shared")}#/${o}/${i}`}}if(t[1]===a)return{ref:"#"};let n=`#/${o}/`,i=t[1].schema.id??`__schema${e.counter++}`;return{defId:i,ref:n+i}})(t);o.def={...o.schema},i&&(o.defId=i);let s=o.schema;for(let e in s)delete s[e];s.$ref=n};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
|
|
175
|
+
|
|
176
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let n=a[1];if(t===a[0]){o(a);continue}if(e.external){let n=e.external.registry.get(a[0])?.id;if(t!==a[0]&&n){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){o(a);continue}}}function io(e,t){let a=e.seen.get(t);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");let o=t=>{let a=e.seen.get(t),n=a.def??a.schema,i={...n};if(null===a.ref)return;let s=a.ref;if(a.ref=null,s){o(s);let t=e.seen.get(s).schema;t.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(n.allOf=n.allOf??[],n.allOf.push(t)):(Object.assign(n,t),Object.assign(n,i))}a.isParent||e.override({zodSchema:t,jsonSchema:n,path:a.path??[]})};for(let t of[...e.seen.entries()].reverse())o(t[0]);let n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,a.def??a.schema);let i=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(i[e.defId]=e.def)}e.external||Object.keys(i).length>0&&("draft-2020-12"===e.target?n.$defs=i:n.definitions=i);try{let e=JSON.parse(JSON.stringify(n));return Object.defineProperty(e,"~standard",{value:{...t["~standard"],jsonSchema:{input:ii(t,"input"),output:ii(t,"output")}},enumerable:!1,writable:!1}),e}catch(e){throw Error("Error converting schema to JSON.")}}let ii=(e,t)=>a=>{let{libraryOptions:o,target:n}=a??{},i=ie({...o??{},target:n,io:t,processors:{}});return it(e,i),ia(i,e),io(i,e)},is={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ir=(e,t,a,o)=>{a.type="string";let{minimum:n,maximum:i,format:s,patterns:r,contentEncoding:c}=e._zod.bag;if("number"==typeof n&&(a.minLength=n),"number"==typeof i&&(a.maxLength=i),s&&(a.format=is[s]??s,""===a.format&&delete a.format),c&&(a.contentEncoding=c),r&&r.size>0){let e=[...r];1===e.length?a.pattern=e[0].source:e.length>1&&(a.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},ic=(e,t,a,o)=>{let{minimum:n,maximum:i,format:s,multipleOf:r,exclusiveMaximum:c,exclusiveMinimum:l}=e._zod.bag;"string"==typeof s&&s.includes("int")?a.type="integer":a.type="number","number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(a.minimum=l,a.exclusiveMinimum=!0):a.exclusiveMinimum=l),"number"==typeof n&&(a.minimum=n,"number"==typeof l&&"draft-04"!==t.target&&(l>=n?delete a.minimum:delete a.exclusiveMinimum)),"number"==typeof c&&("draft-04"===t.target||"openapi-3.0"===t.target?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c),"number"==typeof i&&(a.maximum=i,"number"==typeof c&&"draft-04"!==t.target&&(c<=i?delete a.maximum:delete a.exclusiveMaximum)),"number"==typeof r&&(a.multipleOf=r)},il=(e,t,a,o)=>{a.type="boolean"},ip=(e,t,a,o)=>{"openapi-3.0"===t.target?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},iu=(e,t,a,o)=>{a.not={}},id=(e,t,a,o)=>{},im=(e,t,a,o)=>{},ih=(e,t,a,o)=>{let n=aC(e._zod.def.entries);n.every(e=>"number"==typeof e)&&(a.type="number"),n.every(e=>"string"==typeof e)&&(a.type="string"),a.enum=n},iv=(e,t,a,o)=>{let n=e._zod.def,i=[];for(let e of n.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else i.push(Number(e));else i.push(e);if(0===i.length);else if(1===i.length){let e=i[0];a.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?a.enum=[e]:a.const=e}else i.every(e=>"number"==typeof e)&&(a.type="number"),i.every(e=>"string"==typeof e)&&(a.type="string"),i.every(e=>"boolean"==typeof e)&&(a.type="boolean"),i.every(e=>null===e)&&(a.type="null"),a.enum=i},ig=(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},ib=(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},iy=(e,t,a,o)=>{let n=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;"number"==typeof i&&(a.minItems=i),"number"==typeof s&&(a.maxItems=s),a.type="array",a.items=it(n.element,t,{...o,path:[...o.path,"items"]})},ix=(e,t,a,o)=>{let n=e._zod.def;a.type="object",a.properties={};let i=n.shape;for(let e in i)a.properties[e]=it(i[e],t,{...o,path:[...o.path,"properties",e]});let s=new Set([...new Set(Object.keys(i))].filter(e=>{let a=n.shape[e]._zod;return"input"===t.io?void 0===a.optin:void 0===a.optout}));s.size>0&&(a.required=Array.from(s)),n.catchall?._zod.def.type==="never"?a.additionalProperties=!1:n.catchall?n.catchall&&(a.additionalProperties=it(n.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):"output"===t.io&&(a.additionalProperties=!1)},i_=(e,t,a,o)=>{let n=e._zod.def,i=!1===n.inclusive,s=n.options.map((e,a)=>it(e,t,{...o,path:[...o.path,i?"oneOf":"anyOf",a]}));i?a.oneOf=s:a.anyOf=s},iS=(e,t,a,o)=>{let n=e._zod.def,i=it(n.left,t,{...o,path:[...o.path,"allOf",0]}),s=it(n.right,t,{...o,path:[...o.path,"allOf",1]}),r=e=>"allOf"in e&&1===Object.keys(e).length;a.allOf=[...r(i)?i.allOf:[i],...r(s)?s.allOf:[s]]},iw=(e,t,a,o)=>{let n=e._zod.def;a.type="object",("draft-07"===t.target||"draft-2020-12"===t.target)&&(a.propertyNames=it(n.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=it(n.valueType,t,{...o,path:[...o.path,"additionalProperties"]})},i$=(e,t,a,o)=>{let n=e._zod.def,i=it(n.innerType,t,o),s=t.seen.get(e);"openapi-3.0"===t.target?(s.ref=n.innerType,a.nullable=!0):a.anyOf=[i,{type:"null"}]},iR=(e,t,a,o)=>{let n=e._zod.def;it(n.innerType,t,o),t.seen.get(e).ref=n.innerType},ij=(e,t,a,o)=>{let n=e._zod.def;it(n.innerType,t,o),t.seen.get(e).ref=n.innerType,a.default=JSON.parse(JSON.stringify(n.defaultValue))},iE=(e,t,a,o)=>{let n=e._zod.def;it(n.innerType,t,o),t.seen.get(e).ref=n.innerType,"input"===t.io&&(a._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},ik=(e,t,a,o)=>{let n,i=e._zod.def;it(i.innerType,t,o),t.seen.get(e).ref=i.innerType;try{n=i.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}a.default=n},iP=(e,t,a,o)=>{let n=e._zod.def,i="input"===t.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;it(i,t,o),t.seen.get(e).ref=i},iT=(e,t,a,o)=>{let n=e._zod.def;it(n.innerType,t,o),t.seen.get(e).ref=n.innerType,a.readOnly=!0},iO=(e,t,a,o)=>{let n=e._zod.def;it(n.innerType,t,o),t.seen.get(e).ref=n.innerType},iC=(e,t,a,o)=>{let n=e._zod.innerType;it(n,t,o),t.seen.get(e).ref=n},iI={string:ir,number:ic,boolean:il,bigint:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},symbol:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},null:ip,undefined:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},void:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},never:iu,any:id,unknown:im,date:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},enum:ih,literal:iv,nan:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},template_literal:(e,t,a,o)=>{let n=e._zod.pattern;if(!n)throw Error("Pattern not found in template literal");a.type="string",a.pattern=n.source},file:(e,t,a,o)=>{let n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:r}=e._zod.bag;void 0!==i&&(n.minLength=i),void 0!==s&&(n.maxLength=s),r?1===r.length?(n.contentMediaType=r[0],Object.assign(a,n)):a.anyOf=r.map(e=>({...n,contentMediaType:e})):Object.assign(a,n)},success:(e,t,a,o)=>{a.type="boolean"},custom:ig,function:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},transform:ib,map:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},set:(e,t,a,o)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},array:iy,object:ix,union:i_,intersection:iS,tuple:(e,t,a,o)=>{let n=e._zod.def;a.type="array";let i="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",r=n.items.map((e,a)=>it(e,t,{...o,path:[...o.path,i,a]})),c=n.rest?it(n.rest,t,{...o,path:[...o.path,s,..."openapi-3.0"===t.target?[n.items.length]:[]]}):null;"draft-2020-12"===t.target?(a.prefixItems=r,c&&(a.items=c)):"openapi-3.0"===t.target?(a.items={anyOf:r},c&&a.items.anyOf.push(c),a.minItems=r.length,c||(a.maxItems=r.length)):(a.items=r,c&&(a.additionalItems=c));let{minimum:l,maximum:p}=e._zod.bag;"number"==typeof l&&(a.minItems=l),"number"==typeof p&&(a.maxItems=p)},record:iw,nullable:i$,nonoptional:iR,default:ij,prefault:iE,catch:ik,pipe:iP,readonly:iT,promise:(e,t,a,o)=>{let n=e._zod.def;it(n.innerType,t,o),t.seen.get(e).ref=n.innerType},optional:iO,lazy:iC};function iN(e,t){if("_idmap"in e){let a=ie({...t,processors:iI}),o={};for(let t of e._idmap.entries()){let[e,o]=t;it(o,a)}let n={};for(let i of(a.external={registry:e,uri:t?.uri,defs:o},e._idmap.entries())){let[e,t]=i;ia(a,t),n[e]=io(a,t)}return Object.keys(o).length>0&&(n.__shared={["draft-2020-12"===a.target?"$defs":"definitions"]:o}),{schemas:n}}let a=ie({...t,processors:iI});return it(e,a),ia(a,e),io(a,e)}let iq=aE("ZodISODateTime",(e,t)=>{o7.init(e,t),i9.init(e,t)});function iA(e){return new iq({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...aW(e)})}let iz=aE("ZodISODate",(e,t)=>{ne.init(e,t),i9.init(e,t)});function iM(e){return new iz({type:"string",format:"date",check:"string_format",...aW(e)})}let iL=aE("ZodISOTime",(e,t)=>{nt.init(e,t),i9.init(e,t)}),iU=aE("ZodISODuration",(e,t)=>{na.init(e,t),i9.init(e,t)}),iD=(e,t)=>{a5.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let a={_errors:[]},o=e=>{for(let n of e.issues)if("invalid_union"===n.code&&n.errors.length)n.errors.map(e=>o({issues:e}));else if("invalid_key"===n.code)o({issues:n.issues});else if("invalid_element"===n.code)o({issues:n.issues});else if(0===n.path.length)a._errors.push(t(n));else{let e=a,o=0;for(;o<n.path.length;){let a=n.path[o];o===n.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(n))):e[a]=e[a]||{_errors:[]},e=e[a],o++}}};return o(e),a})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let a={},o=[];for(let n of e.issues)n.path.length>0?(a[n.path[0]]=a[n.path[0]]||[],a[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:a}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,aN,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,aN,2)}},isEmpty:{get:()=>0===e.issues.length}})};aE("ZodError",iD);let iH=aE("ZodError",iD,{Parent:Error}),iF=a8(iH),iV=a7(iH),iB=oe(iH),iJ=oa(iH),iG=(e,t,a)=>{let o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return a8(iH)(e,t,o)},iZ=(e,t,a)=>a8(iH)(e,t,a),iK=async(e,t,a)=>{let o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return a7(iH)(e,t,o)},iW=async(e,t,a)=>a7(iH)(e,t,a),iX=(e,t,a)=>{let o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return oe(iH)(e,t,o)},iY=(e,t,a)=>oe(iH)(e,t,a),iQ=async(e,t,a)=>{let o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return oa(iH)(e,t,o)},i0=async(e,t,a)=>oa(iH)(e,t,a),i1=aE("ZodType",(e,t)=>(oK.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ii(e,"input"),output:ii(e,"output")}}),e.toJSONSchema=((e,t={})=>a=>{let o=ie({...a,processors:t});return it(e,o),ia(o,e),io(o,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(aU(t,{checks:[...t.checks??[],...a.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]})),e.clone=(t,a)=>aK(e,t,a),e.brand=()=>e,e.register=(t,a)=>(t.add(e,a),e),e.parse=(t,a)=>iF(e,t,a,{callee:e.parse}),e.safeParse=(t,a)=>iB(e,t,a),e.parseAsync=async(t,a)=>iV(e,t,a,{callee:e.parseAsync}),e.safeParseAsync=async(t,a)=>iJ(e,t,a),e.spa=e.safeParseAsync,e.encode=(t,a)=>iG(e,t,a),e.decode=(t,a)=>iZ(e,t,a),e.encodeAsync=async(t,a)=>iK(e,t,a),e.decodeAsync=async(t,a)=>iW(e,t,a),e.safeEncode=(t,a)=>iX(e,t,a),e.safeDecode=(t,a)=>iY(e,t,a),e.safeEncodeAsync=async(t,a)=>iQ(e,t,a),e.safeDecodeAsync=async(t,a)=>i0(e,t,a),e.refine=(t,a)=>e.check(function(e,t={}){return new s9({type:"custom",check:"custom",fn:e,...aW(t)})}(t,a)),e.superRefine=t=>e.check(function(e){var t;let a,o;return t=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(a3(e,t.value,a._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=a),e.continue??(e.continue=!a._zod.def.abort),t.issues.push(a3(e)))},e(t.value,t)),(o=new oT({check:"custom",...aW(void 0)}))._zod.check=t,a=o}(t)),e.overwrite=t=>e.check(n7(t)),e.optional=()=>sG(e),e.nullable=()=>sK(e),e.nullish=()=>sG(sK(e)),e.nonoptional=t=>new sY({type:"nonoptional",innerType:e,...aW(t)}),e.array=()=>sk(e),e.or=t=>sI([e,t]),e.and=t=>sz(e,t),e.transform=t=>s1(e,sB(t)),e.default=t=>{var a,o;return a=e,o=t,new sW({type:"default",innerType:a,get defaultValue(){return"function"==typeof o?o():aJ(o)}})},e.prefault=t=>{var a,o;return a=e,o=t,new sX({type:"prefault",innerType:a,get defaultValue(){return"function"==typeof o?o():aJ(o)}})},e.catch=t=>{var a;return new sQ({type:"catch",innerType:e,catchValue:"function"==typeof(a=t)?a:()=>a})},e.pipe=t=>s1(e,t),e.readonly=()=>new s2({type:"readonly",innerType:e}),e.describe=t=>{let a=e.clone();return nX.add(a,{description:t}),a},Object.defineProperty(e,"description",{get:()=>nX.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return nX.get(e);let a=e.clone();return nX.add(a,t[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),i2=aE("_ZodString",(e,t)=>{oW.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ir(e,t,a,o);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new oU({check:"string_format",format:"regex",...aW(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new oF({check:"string_format",format:"includes",...aW(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new oV({check:"string_format",format:"starts_with",...aW(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new oB({check:"string_format",format:"ends_with",...aW(t),suffix:e})}(...t)),e.min=(...t)=>e.check(n6(...t)),e.max=(...t)=>e.check(n5(...t)),e.length=(...t)=>e.check(n8(...t)),e.nonempty=(...t)=>e.check(n6(1,...t)),e.lowercase=t=>e.check(new oD({check:"string_format",format:"lowercase",...aW(t)})),e.uppercase=t=>e.check(new oH({check:"string_format",format:"uppercase",...aW(t)})),e.trim=()=>e.check(n7(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return n7(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(n7(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(n7(e=>e.toUpperCase())),e.slugify=()=>e.check(n7(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}),i4=aE("ZodString",(e,t)=>{oW.init(e,t),i2.init(e,t),e.email=t=>e.check(nY(i5,t)),e.url=t=>e.check(n0(i7,t)),e.jwt=t=>e.check(new sh({type:"string",format:"jwt",check:"string_format",abort:!1,...aW(t)})),e.emoji=t=>e.check(new se({type:"string",format:"emoji",check:"string_format",abort:!1,...aW(t)})),e.guid=t=>e.check(nQ(i6,t)),e.uuid=t=>e.check(new i8({type:"string",format:"uuid",check:"string_format",abort:!1,...aW(t)})),e.uuidv4=t=>e.check(new i8({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...aW(t)})),e.uuidv6=t=>e.check(new i8({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...aW(t)})),e.uuidv7=t=>e.check(new i8({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...aW(t)})),e.nanoid=t=>e.check(new st({type:"string",format:"nanoid",check:"string_format",abort:!1,...aW(t)})),e.guid=t=>e.check(nQ(i6,t)),e.cuid=t=>e.check(new sa({type:"string",format:"cuid",check:"string_format",abort:!1,...aW(t)})),e.cuid2=t=>e.check(new so({type:"string",format:"cuid2",check:"string_format",abort:!1,...aW(t)})),e.ulid=t=>e.check(new sn({type:"string",format:"ulid",check:"string_format",abort:!1,...aW(t)})),e.base64=t=>e.check(new su({type:"string",format:"base64",check:"string_format",abort:!1,...aW(t)})),e.base64url=t=>e.check(new sd({type:"string",format:"base64url",check:"string_format",abort:!1,...aW(t)})),e.xid=t=>e.check(new si({type:"string",format:"xid",check:"string_format",abort:!1,...aW(t)})),e.ksuid=t=>e.check(new ss({type:"string",format:"ksuid",check:"string_format",abort:!1,...aW(t)})),e.ipv4=t=>e.check(new sr({type:"string",format:"ipv4",check:"string_format",abort:!1,...aW(t)})),e.ipv6=t=>e.check(new sc({type:"string",format:"ipv6",check:"string_format",abort:!1,...aW(t)})),e.cidrv4=t=>e.check(new sl({type:"string",format:"cidrv4",check:"string_format",abort:!1,...aW(t)})),e.cidrv6=t=>e.check(new sp({type:"string",format:"cidrv6",check:"string_format",abort:!1,...aW(t)})),e.e164=t=>e.check(new sm({type:"string",format:"e164",check:"string_format",abort:!1,...aW(t)})),e.datetime=t=>e.check(iA(t)),e.date=t=>e.check(iM(t)),e.time=t=>e.check(new iL({type:"string",format:"time",check:"string_format",precision:null,...aW(t)})),e.duration=t=>e.check(new iU({type:"string",format:"duration",check:"string_format",...aW(t)}))});function i3(e){return new i4({type:"string",...aW(e)})}let i9=aE("ZodStringFormat",(e,t)=>{oX.init(e,t),i2.init(e,t)}),i5=aE("ZodEmail",(e,t)=>{o0.init(e,t),i9.init(e,t)}),i6=aE("ZodGUID",(e,t)=>{oY.init(e,t),i9.init(e,t)}),i8=aE("ZodUUID",(e,t)=>{oQ.init(e,t),i9.init(e,t)}),i7=aE("ZodURL",(e,t)=>{o1.init(e,t),i9.init(e,t)}),se=aE("ZodEmoji",(e,t)=>{o2.init(e,t),i9.init(e,t)}),st=aE("ZodNanoID",(e,t)=>{o4.init(e,t),i9.init(e,t)}),sa=aE("ZodCUID",(e,t)=>{o3.init(e,t),i9.init(e,t)}),so=aE("ZodCUID2",(e,t)=>{o9.init(e,t),i9.init(e,t)}),sn=aE("ZodULID",(e,t)=>{o5.init(e,t),i9.init(e,t)}),si=aE("ZodXID",(e,t)=>{o6.init(e,t),i9.init(e,t)}),ss=aE("ZodKSUID",(e,t)=>{o8.init(e,t),i9.init(e,t)}),sr=aE("ZodIPv4",(e,t)=>{no.init(e,t),i9.init(e,t)}),sc=aE("ZodIPv6",(e,t)=>{nn.init(e,t),i9.init(e,t)}),sl=aE("ZodCIDRv4",(e,t)=>{ni.init(e,t),i9.init(e,t)}),sp=aE("ZodCIDRv6",(e,t)=>{ns.init(e,t),i9.init(e,t)}),su=aE("ZodBase64",(e,t)=>{nc.init(e,t),i9.init(e,t)}),sd=aE("ZodBase64URL",(e,t)=>{nl.init(e,t),i9.init(e,t)}),sm=aE("ZodE164",(e,t)=>{np.init(e,t),i9.init(e,t)}),sh=aE("ZodJWT",(e,t)=>{nu.init(e,t),i9.init(e,t)}),sf=aE("ZodNumber",(e,t)=>{nd.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ic(e,t,a,o),e.gt=(t,a)=>e.check(n4(t,a)),e.gte=(t,a)=>e.check(n3(t,a)),e.min=(t,a)=>e.check(n3(t,a)),e.lt=(t,a)=>e.check(n1(t,a)),e.lte=(t,a)=>e.check(n2(t,a)),e.max=(t,a)=>e.check(n2(t,a)),e.int=t=>e.check(sb(t)),e.safe=t=>e.check(sb(t)),e.positive=t=>e.check(n4(0,t)),e.nonnegative=t=>e.check(n3(0,t)),e.negative=t=>e.check(n1(0,t)),e.nonpositive=t=>e.check(n2(0,t)),e.multipleOf=(t,a)=>e.check(n9(t,a)),e.step=(t,a)=>e.check(n9(t,a)),e.finite=()=>e;let a=e._zod.bag;e.minValue=Math.max(a.minimum??-1/0,a.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(a.maximum??1/0,a.exclusiveMaximum??1/0)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function sv(e){return new sf({type:"number",checks:[],...aW(e)})}let sg=aE("ZodNumberFormat",(e,t)=>{nm.init(e,t),sf.init(e,t)});function sb(e){return new sg({type:"number",check:"number_format",abort:!1,format:"safeint",...aW(e)})}let sy=aE("ZodBoolean",(e,t)=>{nh.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>il(e,t,a,o)});function sx(e){return new sy({type:"boolean",...aW(e)})}let s_=aE("ZodNull",(e,t)=>{nf.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ip(e,t,a,o)});function sS(e){return new s_({type:"null",...aW(e)})}let sw=aE("ZodAny",(e,t)=>{nv.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>id(e,t,a,o)}),s$=aE("ZodUnknown",(e,t)=>{ng.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>im(e,t,a,o)});function sR(){return new s$({type:"unknown"})}let sj=aE("ZodNever",(e,t)=>{nb.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iu(e,t,a,o)}),sE=aE("ZodArray",(e,t)=>{nx.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iy(e,t,a,o),e.element=t.element,e.min=(t,a)=>e.check(n6(t,a)),e.nonempty=t=>e.check(n6(1,t)),e.max=(t,a)=>e.check(n5(t,a)),e.length=(t,a)=>e.check(n8(t,a)),e.unwrap=()=>e.element});function sk(e,t){return new sE({type:"array",element:e,...aW(t)})}let sP=aE("ZodObject",(e,t)=>{nR.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ix(e,t,a,o),aM(e,"shape",()=>t.shape),e.keyof=()=>sD(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sR()}),e.loose=()=>e.clone({...e._zod.def,catchall:sR()}),e.strict=()=>e.clone({...e._zod.def,catchall:new sj({type:"never",...aW(void 0)})}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>(function(e,t){if(!aB(t))throw Error("Invalid input to extend: expected a plain object");let a=e._zod.def.checks;if(a&&a.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let o=aU(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return aL(this,"shape",a),a},checks:[]});return aK(e,o)})(e,t),e.safeExtend=t=>(function(e,t){if(!aB(t))throw Error("Invalid input to safeExtend: expected a plain object");let a={...e._zod.def,get shape(){let a={...e._zod.def.shape,...t};return aL(this,"shape",a),a},checks:e._zod.def.checks};return aK(e,a)})(e,t),e.merge=t=>{let a;return a=aU(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return aL(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]}),aK(e,a)},e.pick=t=>{let a,o;return a=e._zod.def,o=aU(e._zod.def,{get shape(){let e={};for(let o in t){if(!(o in a.shape))throw Error(`Unrecognized key: "${o}"`);t[o]&&(e[o]=a.shape[o])}return aL(this,"shape",e),e},checks:[]}),aK(e,o)},e.omit=t=>{let a,o;return a=e._zod.def,o=aU(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let e in t){if(!(e in a.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete o[e]}return aL(this,"shape",o),o},checks:[]}),aK(e,o)},e.partial=(...t)=>{var a;let o;return a=t[0],o=aU(e._zod.def,{get shape(){let t=e._zod.def.shape,o={...t};if(a)for(let e in a){if(!(e in t))throw Error(`Unrecognized key: "${e}"`);a[e]&&(o[e]=sJ?new sJ({type:"optional",innerType:t[e]}):t[e])}else for(let e in t)o[e]=sJ?new sJ({type:"optional",innerType:t[e]}):t[e];return aL(this,"shape",o),o},checks:[]}),aK(e,o)},e.required=(...t)=>{var a;let o;return a=t[0],o=aU(e._zod.def,{get shape(){let t=e._zod.def.shape,o={...t};if(a)for(let e in a){if(!(e in o))throw Error(`Unrecognized key: "${e}"`);a[e]&&(o[e]=new sY({type:"nonoptional",innerType:t[e]}))}else for(let e in t)o[e]=new sY({type:"nonoptional",innerType:t[e]});return aL(this,"shape",o),o},checks:[]}),aK(e,o)}});function sT(e,t){return new sP({type:"object",shape:e??{},...aW(t)})}function sO(e,t){return new sP({type:"object",shape:e,catchall:sR(),...aW(t)})}let sC=aE("ZodUnion",(e,t)=>{nE.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>i_(e,t,a,o),e.options=t.options});function sI(e,t){return new sC({type:"union",options:e,...aW(t)})}let sN=aE("ZodDiscriminatedUnion",(e,t)=>{sC.init(e,t),nk.init(e,t)});function sq(e,t,a){return new sN({type:"union",options:t,discriminator:e,...aW(a)})}let sA=aE("ZodIntersection",(e,t)=>{nP.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iS(e,t,a,o)});function sz(e,t){return new sA({type:"intersection",left:e,right:t})}let sM=aE("ZodRecord",(e,t)=>{nO.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iw(e,t,a,o),e.keyType=t.keyType,e.valueType=t.valueType});function sL(e,t,a){return new sM({type:"record",keyType:e,valueType:t,...aW(a)})}let sU=aE("ZodEnum",(e,t)=>{nC.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ih(e,t,a,o),e.enum=t.entries,e.options=Object.values(t.entries);let a=new Set(Object.keys(t.entries));e.extract=(e,o)=>{let n={};for(let o of e)if(a.has(o))n[o]=t.entries[o];else throw Error(`Key ${o} not found in enum`);return new sU({...t,checks:[],...aW(o),entries:n})},e.exclude=(e,o)=>{let n={...t.entries};for(let t of e)if(a.has(t))delete n[t];else throw Error(`Key ${t} not found in enum`);return new sU({...t,checks:[],...aW(o),entries:n})}});function sD(e,t){return new sU({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...aW(t)})}let sH=aE("ZodLiteral",(e,t)=>{nI.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iv(e,t,a,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function sF(e,t){return new sH({type:"literal",values:Array.isArray(e)?e:[e],...aW(t)})}let sV=aE("ZodTransform",(e,t)=>{nN.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ib(e,t,a,o),e._zod.parse=(a,o)=>{if("backward"===o.direction)throw new aP(e.constructor.name);a.addIssue=o=>{"string"==typeof o?a.issues.push(a3(o,a.value,t)):(o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=a.value),o.inst??(o.inst=e),a.issues.push(a3(o)))};let n=t.transform(a.value,a);return n instanceof Promise?n.then(e=>(a.value=e,a)):(a.value=n,a)}});function sB(e){return new sV({type:"transform",transform:e})}let sJ=aE("ZodOptional",(e,t)=>{nA.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iO(e,t,a,o),e.unwrap=()=>e._zod.def.innerType});function sG(e){return new sJ({type:"optional",innerType:e})}let sZ=aE("ZodNullable",(e,t)=>{nz.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>i$(e,t,a,o),e.unwrap=()=>e._zod.def.innerType});function sK(e){return new sZ({type:"nullable",innerType:e})}let sW=aE("ZodDefault",(e,t)=>{nM.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ij(e,t,a,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),sX=aE("ZodPrefault",(e,t)=>{nU.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iE(e,t,a,o),e.unwrap=()=>e._zod.def.innerType}),sY=aE("ZodNonOptional",(e,t)=>{nD.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iR(e,t,a,o),e.unwrap=()=>e._zod.def.innerType}),sQ=aE("ZodCatch",(e,t)=>{nF.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ik(e,t,a,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),s0=aE("ZodPipe",(e,t)=>{nV.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iP(e,t,a,o),e.in=t.in,e.out=t.out});function s1(e,t){return new s0({type:"pipe",in:e,out:t})}let s2=aE("ZodReadonly",(e,t)=>{nJ.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iT(e,t,a,o),e.unwrap=()=>e._zod.def.innerType}),s4=aE("ZodLazy",(e,t)=>{nZ.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>iC(e,t,a,o),e.unwrap=()=>e._zod.def.getter()});function s3(e){return new s4({type:"lazy",getter:e})}let s9=aE("ZodCustom",(e,t)=>{nK.init(e,t),i1.init(e,t),e._zod.processJSONSchema=(t,a,o)=>ig(e,t,a,o)});function s5(e,t){return s1(sB(e),t)}O||(O={});aO({localeError:(l={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}},p={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},e=>{switch(e.code){case"invalid_type":return`Invalid input: expected ${e.expected}, received ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":if(1===e.values.length)return`Invalid input: expected ${aX(e.values[0])}`;return`Invalid option: expected one of ${aI(e.values,"|")}`;case"too_big":{let t=e.inclusive?"<=":"<",a=l[e.origin]??null;if(a)return`Too big: expected ${e.origin??"value"} to have ${t}${e.maximum.toString()} ${a.unit??"elements"}`;return`Too big: expected ${e.origin??"value"} to be ${t}${e.maximum.toString()}`}case"too_small":{let t=e.inclusive?">=":">",a=l[e.origin]??null;if(a)return`Too small: expected ${e.origin} to have ${t}${e.minimum.toString()} ${a.unit}`;return`Too small: expected ${e.origin} to be ${t}${e.minimum.toString()}`}case"invalid_format":if("starts_with"===e.format)return`Invalid string: must start with "${e.prefix}"`;if("ends_with"===e.format)return`Invalid string: must end with "${e.suffix}"`;if("includes"===e.format)return`Invalid string: must include "${e.includes}"`;if("regex"===e.format)return`Invalid string: must match pattern ${e.pattern}`;return`Invalid ${p[e.format]??e.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${aI(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}})});let s6="2025-11-25",s8=[s6,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],s7="io.modelcontextprotocol/protocolVersion",re="io.modelcontextprotocol/clientInfo",rt="io.modelcontextprotocol/serverInfo",ra="io.modelcontextprotocol/clientCapabilities",ro="io.modelcontextprotocol/subscriptionId",rn="io.modelcontextprotocol/logLevel",ri=s3(()=>sI([i3(),sv(),sx(),sS(),sL(i3(),ri),sk(ri)])),rs=sL(i3(),ri),rr=sk(ri),rc=sI([i3(),sv().int()]),rl=i3(),rp=sT({ttl:sv().optional()}),ru=sT({taskId:i3()}),rd=sO({progressToken:rc.optional(),"io.modelcontextprotocol/related-task":ru.optional()}),rm=sT({_meta:rd.optional()}),rh=rm.extend({task:rp.optional()}),rf=sT({method:i3(),params:rm.loose().optional()}),rv=sT({_meta:rd.optional()}),rg=sT({method:i3(),params:rv.loose().optional()}),rb=sO({get[rt](){return rI.optional().catch(void 0)}}),ry=sO({_meta:rb.optional()}),rx=sI([i3(),sv().int()]),r_=sT({jsonrpc:sF("2.0"),id:rx,...rf.shape}).strict(),rS=sT({jsonrpc:sF("2.0"),...rg.shape}).strict(),rw=sT({jsonrpc:sF("2.0"),id:rx,result:ry}).strict(),r$=sT({jsonrpc:sF("2.0"),id:rx.optional(),error:sT({code:sv().int(),message:i3(),data:sR().optional()})}).strict(),rR=sI([r_,rS,rw,r$]),rj=sI([rw,r$]),rE=ry.strict(),rk=rv.extend({requestId:rx.optional(),reason:i3().optional()}),rP=rg.extend({method:sF("notifications/cancelled"),params:rk}),rT=sT({src:i3(),mimeType:i3().optional(),sizes:sk(i3()).optional(),theme:sD(["light","dark"]).optional()}),rO=sT({icons:sk(rT).optional()}),rC=sT({name:i3(),title:i3().optional()}),rI=rC.extend({...rC.shape,...rO.shape,version:i3(),websiteUrl:i3().optional(),description:i3().optional()}),rN=sz(sT({applyDefaults:sx().optional()}),rs),rq=s5(e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e,sz(sT({form:rN.optional(),url:rs.optional()}),rs.optional())),rA=sO({list:rs.optional(),cancel:rs.optional(),requests:sO({sampling:sO({createMessage:rs.optional()}).optional(),elicitation:sO({create:rs.optional()}).optional()}).optional()}),rz=sO({list:rs.optional(),cancel:rs.optional(),requests:sO({tools:sO({call:rs.optional()}).optional()}).optional()}),rM=sT({experimental:sL(i3(),rs).optional(),sampling:sT({context:rs.optional(),tools:rs.optional()}).optional(),elicitation:rq.optional(),roots:sT({listChanged:sx().optional()}).optional(),tasks:rA.optional(),extensions:sL(i3(),rs).optional()}),rL=rm.extend({protocolVersion:i3(),capabilities:rM,clientInfo:rI}),rU=rf.extend({method:sF("initialize"),params:rL}),rD=sT({experimental:sL(i3(),rs).optional(),logging:rs.optional(),completions:rs.optional(),prompts:sT({listChanged:sx().optional()}).optional(),resources:sT({subscribe:sx().optional(),listChanged:sx().optional()}).optional(),tools:sT({listChanged:sx().optional()}).optional(),tasks:rz.optional(),extensions:sL(i3(),rs).optional()}),rH=ry.extend({protocolVersion:i3(),capabilities:rD,serverInfo:rI,instructions:i3().optional()}),rF=rg.extend({method:sF("notifications/initialized"),params:rv.optional()}),rV=rf.extend({method:sF("server/discover"),params:rm.optional()}),rB=ry.extend({supportedVersions:sk(i3()),capabilities:rD,instructions:i3().optional()}),rJ=rf.extend({method:sF("ping"),params:rm.optional()}),rG=sT({progress:sv(),total:sG(sv()),message:sG(i3())}),rZ=sT({...rv.shape,...rG.shape,progressToken:rc}),rK=rg.extend({method:sF("notifications/progress"),params:rZ}),rW=rm.extend({cursor:rl.optional()}),rX=rf.extend({params:rW.optional()}),rY=ry.extend({nextCursor:rl.optional()}),rQ=sT({uri:i3(),mimeType:sG(i3()),_meta:sL(i3(),sR()).optional()}),r0=rQ.extend({text:i3()}),r1=i3().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),r2=rQ.extend({blob:r1}),r4=sD(["user","assistant"]),r3=sT({audience:sk(r4).optional(),priority:sv().min(0).max(1).optional(),lastModified:iA({offset:!0}).optional()}),r9=sT({...rC.shape,...rO.shape,uri:i3(),description:sG(i3()),mimeType:sG(i3()),size:sG(sv()),annotations:r3.optional(),_meta:sG(sO({}))}),r5=sT({...rC.shape,...rO.shape,uriTemplate:i3(),description:sG(i3()),mimeType:sG(i3()),annotations:r3.optional(),_meta:sG(sO({}))}),r6=rX.extend({method:sF("resources/list")}),r8=rY.extend({resources:sk(r9)}),r7=rX.extend({method:sF("resources/templates/list")}),ce=rY.extend({resourceTemplates:sk(r5)}),ct=rm.extend({uri:i3()}),ca=rf.extend({method:sF("resources/read"),params:ct}),co=ry.extend({contents:sk(sI([r0,r2]))}),cn=rg.extend({method:sF("notifications/resources/list_changed"),params:rv.optional()}),ci=rf.extend({method:sF("resources/subscribe"),params:ct}),cs=rf.extend({method:sF("resources/unsubscribe"),params:ct}),cr=sT({toolsListChanged:sx().optional(),promptsListChanged:sx().optional(),resourcesListChanged:sx().optional(),resourceSubscriptions:sk(i3()).optional()}),cc=rm.extend({notifications:cr}),cl=rf.extend({method:sF("subscriptions/listen"),params:cc}),cp=rv.extend({notifications:cr}),cu=rg.extend({method:sF("notifications/subscriptions/acknowledged"),params:cp}),cd=rb.extend({[ro]:rx}),cm=ry.extend({_meta:cd}),ch=rv.extend({uri:i3()}),cf=rg.extend({method:sF("notifications/resources/updated"),params:ch}),cv=sT({name:i3(),description:sG(i3()),required:sG(sx())}),cg=sT({...rC.shape,...rO.shape,description:sG(i3()),arguments:sG(sk(cv)),_meta:sG(sO({}))}),cb=rX.extend({method:sF("prompts/list")}),cy=rY.extend({prompts:sk(cg)}),cx=rm.extend({name:i3(),arguments:sL(i3(),i3()).optional()}),c_=rf.extend({method:sF("prompts/get"),params:cx}),cS=sT({type:sF("text"),text:i3(),annotations:r3.optional(),_meta:sL(i3(),sR()).optional()}),cw=sT({type:sF("image"),data:r1,mimeType:i3(),annotations:r3.optional(),_meta:sL(i3(),sR()).optional()}),c$=sT({type:sF("audio"),data:r1,mimeType:i3(),annotations:r3.optional(),_meta:sL(i3(),sR()).optional()}),cR=sT({type:sF("tool_use"),name:i3(),id:i3(),input:sL(i3(),sR()),_meta:sL(i3(),sR()).optional()}),cj=sT({type:sF("resource"),resource:sI([r0,r2]),annotations:r3.optional(),_meta:sL(i3(),sR()).optional()}),cE=r9.extend({type:sF("resource_link")}),ck=sI([cS,cw,c$,cE,cj]),cP=sT({role:r4,content:ck}),cT=ry.extend({description:i3().optional(),messages:sk(cP)}),cO=rg.extend({method:sF("notifications/prompts/list_changed"),params:rv.optional()}),cC=sT({title:i3().optional(),readOnlyHint:sx().optional(),destructiveHint:sx().optional(),idempotentHint:sx().optional(),openWorldHint:sx().optional()}),cI=sT({taskSupport:sD(["required","optional","forbidden"]).optional()}),cN=sT({...rC.shape,...rO.shape,description:i3().optional(),inputSchema:sT({type:sF("object"),properties:sL(i3(),ri).optional(),required:sk(i3()).optional()}).catchall(sR()),outputSchema:sO({$schema:i3().optional()}).optional(),annotations:cC.optional(),execution:cI.optional(),_meta:sL(i3(),sR()).optional()}),cq=rX.extend({method:sF("tools/list")}),cA=rY.extend({tools:sk(cN)}),cz=ry.extend({content:sk(ck).default([]),structuredContent:sR().optional(),isError:sx().optional()}),cM=cz.or(ry.extend({toolResult:sR()})),cL=rh.extend({name:i3(),arguments:sL(i3(),sR()).optional()}),cU=rf.extend({method:sF("tools/call"),params:cL}),cD=rg.extend({method:sF("notifications/tools/list_changed"),params:rv.optional()}),cH=sT({autoRefresh:sx().default(!0),debounceMs:sv().int().nonnegative().default(300)}),cF=sD(["debug","info","notice","warning","error","critical","alert","emergency"]),cV=rm.extend({level:cF}),cB=rf.extend({method:sF("logging/setLevel"),params:cV}),cJ=rv.extend({level:cF,logger:i3().optional(),data:sR()}),cG=rg.extend({method:sF("notifications/message"),params:cJ}),cZ=sT({name:i3().optional()}),cK=sT({hints:sk(cZ).optional(),costPriority:sv().min(0).max(1).optional(),speedPriority:sv().min(0).max(1).optional(),intelligencePriority:sv().min(0).max(1).optional()}),cW=sT({mode:sD(["auto","required","none"]).optional()}),cX=sT({type:sF("tool_result"),toolUseId:i3().describe("The unique identifier for the corresponding tool call."),content:sk(ck),structuredContent:sR().optional(),isError:sx().optional(),_meta:sL(i3(),sR()).optional()}),cY=sq("type",[cS,cw,c$]),cQ=sq("type",[cS,cw,c$,cR,cX]),c0=sT({role:r4,content:sI([cQ,sk(cQ)]),_meta:sL(i3(),sR()).optional()}),c1=rh.extend({messages:sk(c0),modelPreferences:cK.optional(),systemPrompt:i3().optional(),includeContext:sD(["none","thisServer","allServers"]).optional(),temperature:sv().optional(),maxTokens:sv().int(),stopSequences:sk(i3()).optional(),metadata:rs.optional(),tools:sk(cN).optional(),toolChoice:cW.optional()}),c2=rf.extend({method:sF("sampling/createMessage"),params:c1}),c4=ry.extend({model:i3(),stopReason:sG(sD(["endTurn","stopSequence","maxTokens"]).or(i3())),role:r4,content:cY}),c3=ry.extend({model:i3(),stopReason:sG(sD(["endTurn","stopSequence","maxTokens","toolUse"]).or(i3())),role:r4,content:sI([cQ,sk(cQ)])}),c9=sT({type:sF("boolean"),title:i3().optional(),description:i3().optional(),default:sx().optional()}),c5=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),minLength:sv().optional(),maxLength:sv().optional(),format:sD(["email","uri","date","date-time"]).optional(),default:i3().optional()}),c6=sT({type:sD(["number","integer"]),title:i3().optional(),description:i3().optional(),minimum:sv().optional(),maximum:sv().optional(),default:sv().optional()}),c8=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),enum:sk(i3()),default:i3().optional()}),c7=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),oneOf:sk(sT({const:i3(),title:i3()})),default:i3().optional()}),le=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),enum:sk(i3()),enumNames:sk(i3()).optional(),default:i3().optional()}),lt=sI([c8,c7]),la=sT({type:sF("array"),title:i3().optional(),description:i3().optional(),minItems:sv().optional(),maxItems:sv().optional(),items:sT({type:sF("string"),enum:sk(i3())}),default:sk(i3()).optional()}),lo=sT({type:sF("array"),title:i3().optional(),description:i3().optional(),minItems:sv().optional(),maxItems:sv().optional(),items:sT({anyOf:sk(sT({const:i3(),title:i3()}))}),default:sk(i3()).optional()}),ln=sI([la,lo]),li=sI([le,lt,ln]),ls=sI([li,c9,c5,c6]),lr=rh.extend({mode:sF("form").optional(),message:i3(),requestedSchema:sT({type:sF("object"),properties:sL(i3(),ls),required:sk(i3()).optional()}).catchall(sR())}),lc=rh.extend({mode:sF("url"),message:i3(),elicitationId:i3(),url:i3().url()}),ll=sI([lr,lc]),lp=rf.extend({method:sF("elicitation/create"),params:ll}),lu=rv.extend({elicitationId:i3()}),ld=rg.extend({method:sF("notifications/elicitation/complete"),params:lu}),lm=ry.extend({action:sD(["accept","decline","cancel"]),content:s5(e=>null===e?void 0:e,sL(i3(),sI([i3(),sv(),sx(),sk(i3())])).optional())}),lh=sT({type:sF("ref/resource"),uri:i3()}),lf=sT({type:sF("ref/prompt"),name:i3()}),lv=rm.extend({ref:sI([lf,lh]),argument:sT({name:i3(),value:i3()}),context:sT({arguments:sL(i3(),i3()).optional()}).optional()}),lg=rf.extend({method:sF("completion/complete"),params:lv}),lb=ry.extend({completion:sO({values:sk(i3()).max(100),total:sG(sv().int()),hasMore:sG(sx())})}),ly=sT({uri:i3().startsWith("file://"),name:i3().optional(),_meta:sL(i3(),sR()).optional()}),lx=rf.extend({method:sF("roots/list"),params:rm.optional()}),l_=ry.extend({roots:sk(ly)}),lS=rg.extend({method:sF("notifications/roots/list_changed"),params:rv.optional()}),lw=sO({ttl:sv().optional(),pollInterval:sv().optional()}),l$=sD(["working","input_required","completed","failed","cancelled"]),lR=sT({taskId:i3(),status:l$,ttl:sI([sv(),sS()]),createdAt:i3(),lastUpdatedAt:i3(),pollInterval:sG(sv()),statusMessage:sG(i3())}),lj=ry.extend({task:lR}),lE=rv.merge(lR),lk=rg.extend({method:sF("notifications/tasks/status"),params:lE}),lP=rf.extend({method:sF("tasks/get"),params:rm.extend({taskId:i3()})}),lT=ry.merge(lR),lO=rf.extend({method:sF("tasks/result"),params:rm.extend({taskId:i3()})}),lC=ry.loose(),lI=rX.extend({method:sF("tasks/list")}),lN=rY.extend({tasks:sk(lR)}),lq=rf.extend({method:sF("tasks/cancel"),params:rm.extend({taskId:i3()})}),lA=ry.merge(lR),lz=sI([rJ,rU,rV,lg,cB,c_,cb,r6,r7,ca,ci,cs,cl,cU,cq]),lM=sI([rP,rK,rF,lS]),lL=sI([rE,c4,c3,lm,l_]),lU=sI([rJ,c2,lp,lx]),lD=sI([rP,rK,cG,cf,cn,cD,cO,cu,ld]),lH=sI([rE,rH,rB,lb,cT,cy,r8,ce,co,cz,cA,cm]),lF=n0(i7,void 0).superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:"custom",message:"URL must be parseable",fatal:!0}),aj}).refine(e=>{let t=new URL(e);return"javascript:"!==t.protocol&&"data:"!==t.protocol&&"vbscript:"!==t.protocol},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),lV=sO({resource:i3().url(),authorization_servers:sk(lF).optional(),jwks_uri:i3().url().optional(),scopes_supported:sk(i3()).optional(),bearer_methods_supported:sk(i3()).optional(),resource_signing_alg_values_supported:sk(i3()).optional(),resource_name:i3().optional(),resource_documentation:i3().optional(),resource_policy_uri:i3().url().optional(),resource_tos_uri:i3().url().optional(),tls_client_certificate_bound_access_tokens:sx().optional(),authorization_details_types_supported:sk(i3()).optional(),dpop_signing_alg_values_supported:sk(i3()).optional(),dpop_bound_access_tokens_required:sx().optional()}),lB=sO({issuer:i3(),authorization_endpoint:lF,token_endpoint:lF,registration_endpoint:lF.optional(),scopes_supported:sk(i3()).optional(),response_types_supported:sk(i3()),response_modes_supported:sk(i3()).optional(),grant_types_supported:sk(i3()).optional(),token_endpoint_auth_methods_supported:sk(i3()).optional(),token_endpoint_auth_signing_alg_values_supported:sk(i3()).optional(),service_documentation:lF.optional(),revocation_endpoint:lF.optional(),revocation_endpoint_auth_methods_supported:sk(i3()).optional(),revocation_endpoint_auth_signing_alg_values_supported:sk(i3()).optional(),introspection_endpoint:i3().optional(),introspection_endpoint_auth_methods_supported:sk(i3()).optional(),introspection_endpoint_auth_signing_alg_values_supported:sk(i3()).optional(),code_challenge_methods_supported:sk(i3()).optional(),client_id_metadata_document_supported:sx().optional(),authorization_response_iss_parameter_supported:sx().optional().catch(void 0)}),lJ=sO({issuer:i3(),authorization_endpoint:lF,token_endpoint:lF,userinfo_endpoint:lF.optional(),jwks_uri:lF,registration_endpoint:lF.optional(),scopes_supported:sk(i3()).optional(),response_types_supported:sk(i3()),response_modes_supported:sk(i3()).optional(),grant_types_supported:sk(i3()).optional(),acr_values_supported:sk(i3()).optional(),subject_types_supported:sk(i3()),id_token_signing_alg_values_supported:sk(i3()),id_token_encryption_alg_values_supported:sk(i3()).optional(),id_token_encryption_enc_values_supported:sk(i3()).optional(),userinfo_signing_alg_values_supported:sk(i3()).optional(),userinfo_encryption_alg_values_supported:sk(i3()).optional(),userinfo_encryption_enc_values_supported:sk(i3()).optional(),request_object_signing_alg_values_supported:sk(i3()).optional(),request_object_encryption_alg_values_supported:sk(i3()).optional(),request_object_encryption_enc_values_supported:sk(i3()).optional(),token_endpoint_auth_methods_supported:sk(i3()).optional(),token_endpoint_auth_signing_alg_values_supported:sk(i3()).optional(),display_values_supported:sk(i3()).optional(),claim_types_supported:sk(i3()).optional(),claims_supported:sk(i3()).optional(),service_documentation:i3().optional(),claims_locales_supported:sk(i3()).optional(),ui_locales_supported:sk(i3()).optional(),claims_parameter_supported:sx().optional(),request_parameter_supported:sx().optional(),request_uri_parameter_supported:sx().optional(),require_request_uri_registration:sx().optional(),op_policy_uri:lF.optional(),op_tos_uri:lF.optional(),client_id_metadata_document_supported:sx().optional(),authorization_response_iss_parameter_supported:sx().optional().catch(void 0)}),lG=sT({...lJ.shape,...lB.pick({code_challenge_methods_supported:!0}).shape}),lZ=sT({access_token:i3(),id_token:i3().optional(),token_type:i3(),expires_in:new sf({type:"number",coerce:!0,checks:[],...aW(void 0)}).optional(),scope:i3().optional(),refresh_token:i3().optional()}).strip(),lK=sT({issued_token_type:sF("urn:ietf:params:oauth:token-type:id-jag"),access_token:i3(),token_type:i3().optional(),expires_in:sv().optional(),scope:i3().optional()}).strip(),lW=sT({error:i3(),error_description:i3().optional(),error_uri:i3().optional()}),lX=lF.optional().or(sF("").transform(()=>void 0)),lY=sT({redirect_uris:sk(lF),token_endpoint_auth_method:i3().optional(),grant_types:sk(i3()).optional(),response_types:sk(i3()).optional(),application_type:i3().optional(),client_name:i3().optional(),client_uri:lF.optional(),logo_uri:lX,scope:i3().optional(),contacts:sk(i3()).optional(),tos_uri:lX,policy_uri:i3().optional(),jwks_uri:lF.optional(),jwks:new sw({type:"any"}).optional(),software_id:i3().optional(),software_version:i3().optional(),software_statement:i3().optional()}).strip(),lQ=sT({client_id:i3(),client_secret:i3().optional(),client_id_issued_at:sv().optional(),client_secret_expires_at:sv().optional()}).strip(),l0=lY.merge(lQ),l1=sT({error:i3(),error_description:i3().optional()}).strip(),l2=sT({token:i3(),token_type_hint:i3().optional()}).strip(),l4=Symbol.for("mcp.sdk.errorBrands");function l3(e,t){let a=new Set,o=t;for(;"function"==typeof o;){let e=o.mcpBrand;Object.prototype.hasOwnProperty.call(o,"mcpBrand")&&"string"==typeof e&&a.add(e),o=Object.getPrototypeOf(o)}0!==a.size&&Object.defineProperty(e,l4,{value:a,enumerable:!1,configurable:!0})}function l9(e,t){try{if("object"==typeof t&&null!==t&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&"string"==typeof e.mcpBrand&&Object.prototype.hasOwnProperty.call(t,l4)){let a=t[l4];if(a&&"function"==typeof a.has&&a.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}(class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](e){return l9(this,e)}static isInstance(e){if("function"!=typeof this)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return l9(this,e)}constructor(e,t,a){super(t),this.code=e,this.errorUri=a,this.name="OAuthError",l3(this,new.target)}toResponseObject(){let e={error:this.code,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}static fromResponse(t){return new e(t.error,t.error_description??t.error,t.error_uri)}});let l5=((E={}).NotConnected="NOT_CONNECTED",E.AlreadyConnected="ALREADY_CONNECTED",E.NotInitialized="NOT_INITIALIZED",E.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",E.RequestTimeout="REQUEST_TIMEOUT",E.ConnectionClosed="CONNECTION_CLOSED",E.SendFailed="SEND_FAILED",E.InvalidResult="INVALID_RESULT",E.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",E.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",E.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",E.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",E.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",E.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",E.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",E.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",E.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",E.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",E.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",E);var l6=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return l9(this,e)}static isInstance(e){if("function"!=typeof this)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return l9(this,e)}constructor(e,t,a){super(t),this.code=e,this.data=a,this.name="SdkError",l3(this,new.target)}};(class extends l6{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,a){super(e,t,a),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}});let l8={};function l7(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function pe(e,t){let a={};for(let[o,n]of Object.entries(e)){if(void 0===n)continue;let e=void 0===t?void 0:t[o];if(void 0===e){a[o]=n;continue}if(l7(n)&&l7(e)){let t={};for(let[a,i]of Object.entries(n))void 0!==i&&void 0===e[a]&&("elicitation"!==o||"form"!==a||void 0!==e.form||void 0!==e.url)&&(t[a]=i);Object.keys(t).length>0&&(a[o]=t)}}return Object.keys(a).length>0?a:void 0}let pt="2026-07-28",pa=[pt];function po(e){return e.filter(e=>e>=pt)}function pn(e){let t=e.structuredContent;return void 0===t||!("object"!=typeof t||null===t||Array.isArray(t))||e.content?.some(e=>"text"===e.type)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}let pi=["task","inputRequests","requestState"];function ps(e){return null===e||"object"!=typeof e||Array.isArray(e)||void 0!==e.content||pi.some(t=>t in e)?e:{...e,content:[]}}function pr(){let t,a,o,n,i,s,r,c,l,p,u,d,m,h,f,v,g,b,y,x,_,S,w,$,R,j,E,k,P,T,O,C,I,N,q,A,z,M,L,U,D,H,F,V,B,J,G,Z,K,W,X,Y,Q,ee,et,ea,eo,en,ei,es,er,ec,el,ep,eu,ed,em,eh,ef,ev,eg,eb,ey,ex,e_,eS,ew,e$,eR,ej,eE,ek,eP,eT,eO,eC,eI,eN,eq,eA,ez,eM,eL,eU,eD,eH,eF,eV,eB,eJ,eG,eZ,eK,eW,eX,eY,eQ,e0,e1,e2,e4,e3,e9,e5,e6,e8,e7,te,tt,ta,to,tn,ti,ts,tr,tc,tl,tp,tu,td,tm,th,tf,tv,tg,tb,ty,tx,t_,tS;return e??=(t=s3(()=>sI([i3(),sv(),sx(),sS(),sL(i3(),t),sk(t)])),a=sL(i3(),t),o=sI([i3(),sv().int()]),n=i3(),i=sT({ttl:sv().optional()}),s=sT({taskId:i3()}),l=(c=sT({_meta:(r=sO({progressToken:o.optional(),"io.modelcontextprotocol/related-task":s.optional()})).optional()})).extend({task:i.optional()}),p=sT({method:i3(),params:c.loose().optional()}),u=sT({_meta:r.optional()}),d=sT({method:i3(),params:u.loose().optional()}),m=sO({_meta:r.optional()}),h=sI([i3(),sv().int()]),f=m.strict(),v=u.extend({requestId:h.optional(),reason:i3().optional()}),g=d.extend({method:sF("notifications/cancelled"),params:v}),b=sT({src:i3(),mimeType:i3().optional(),sizes:sk(i3()).optional(),theme:sD(["light","dark"]).optional()}),y=sT({icons:sk(b).optional()}),_=(x=sT({name:i3(),title:i3().optional()})).extend({...x.shape,...y.shape,version:i3(),websiteUrl:i3().optional(),description:i3().optional()}),S=sz(sT({applyDefaults:sx().optional()}),a),w=s5(e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e,sz(sT({form:S.optional(),url:a.optional()}),a.optional())),$=sO({list:a.optional(),cancel:a.optional(),requests:sO({sampling:sO({createMessage:a.optional()}).optional(),elicitation:sO({create:a.optional()}).optional()}).optional()}),R=sO({list:a.optional(),cancel:a.optional(),requests:sO({tools:sO({call:a.optional()}).optional()}).optional()}),j=sT({experimental:sL(i3(),a).optional(),sampling:sT({context:a.optional(),tools:a.optional()}).optional(),elicitation:w.optional(),roots:sT({listChanged:sx().optional()}).optional(),tasks:$.optional(),extensions:sL(i3(),a).optional()}),E=c.extend({protocolVersion:i3(),capabilities:j,clientInfo:_}),k=p.extend({method:sF("initialize"),params:E}),P=sT({experimental:sL(i3(),a).optional(),logging:a.optional(),completions:a.optional(),prompts:sT({listChanged:sx().optional()}).optional(),resources:sT({subscribe:sx().optional(),listChanged:sx().optional()}).optional(),tools:sT({listChanged:sx().optional()}).optional(),tasks:R.optional(),extensions:sL(i3(),a).optional()}),T=m.extend({protocolVersion:i3(),capabilities:P,serverInfo:_,instructions:i3().optional()}),O=d.extend({method:sF("notifications/initialized"),params:u.optional()}),C=p.extend({method:sF("ping"),params:c.optional()}),I=sT({progress:sv(),total:sG(sv()),message:sG(i3())}),N=sT({...u.shape,...I.shape,progressToken:o}),q=d.extend({method:sF("notifications/progress"),params:N}),A=c.extend({cursor:n.optional()}),z=p.extend({params:A.optional()}),M=m.extend({nextCursor:n.optional()}),U=(L=sT({uri:i3(),mimeType:sG(i3()),_meta:sL(i3(),sR()).optional()})).extend({text:i3()}),D=i3().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),H=L.extend({blob:D}),V=sT({audience:sk(F=sD(["user","assistant"])).optional(),priority:sv().min(0).max(1).optional(),lastModified:iA({offset:!0}).optional()}),B=sT({...x.shape,...y.shape,uri:i3(),description:sG(i3()),mimeType:sG(i3()),size:sG(sv()),annotations:V.optional(),_meta:sG(sO({}))}),J=sT({...x.shape,...y.shape,uriTemplate:i3(),description:sG(i3()),mimeType:sG(i3()),annotations:V.optional(),_meta:sG(sO({}))}),G=z.extend({method:sF("resources/list")}),Z=M.extend({resources:sk(B)}),K=z.extend({method:sF("resources/templates/list")}),W=M.extend({resourceTemplates:sk(J)}),X=c.extend({uri:i3()}),Y=p.extend({method:sF("resources/read"),params:X}),Q=m.extend({contents:sk(sI([U,H]))}),ee=d.extend({method:sF("notifications/resources/list_changed"),params:u.optional()}),et=p.extend({method:sF("resources/subscribe"),params:X}),ea=p.extend({method:sF("resources/unsubscribe"),params:X}),eo=u.extend({uri:i3()}),en=d.extend({method:sF("notifications/resources/updated"),params:eo}),ei=sT({name:i3(),description:sG(i3()),required:sG(sx())}),es=sT({...x.shape,...y.shape,description:sG(i3()),arguments:sG(sk(ei)),_meta:sG(sO({}))}),er=z.extend({method:sF("prompts/list")}),ec=M.extend({prompts:sk(es)}),el=c.extend({name:i3(),arguments:sL(i3(),i3()).optional()}),ep=p.extend({method:sF("prompts/get"),params:el}),eu=sT({type:sF("text"),text:i3(),annotations:V.optional(),_meta:sL(i3(),sR()).optional()}),ed=sT({type:sF("image"),data:D,mimeType:i3(),annotations:V.optional(),_meta:sL(i3(),sR()).optional()}),em=sT({type:sF("audio"),data:D,mimeType:i3(),annotations:V.optional(),_meta:sL(i3(),sR()).optional()}),eh=sT({type:sF("tool_use"),name:i3(),id:i3(),input:sL(i3(),sR()),_meta:sL(i3(),sR()).optional()}),ef=sT({type:sF("resource"),resource:sI([U,H]),annotations:V.optional(),_meta:sL(i3(),sR()).optional()}),eb=sT({role:F,content:eg=sI([eu,ed,em,ev=B.extend({type:sF("resource_link")}),ef])}),ey=m.extend({description:i3().optional(),messages:sk(eb)}),ex=d.extend({method:sF("notifications/prompts/list_changed"),params:u.optional()}),e_=sT({title:i3().optional(),readOnlyHint:sx().optional(),destructiveHint:sx().optional(),idempotentHint:sx().optional(),openWorldHint:sx().optional()}),eS=sT({taskSupport:sD(["required","optional","forbidden"]).optional()}),ew=sT({...x.shape,...y.shape,description:i3().optional(),inputSchema:sT({type:sF("object"),properties:sL(i3(),t).optional(),required:sk(i3()).optional()}).catchall(sR()),outputSchema:sT({type:sF("object"),properties:sL(i3(),t).optional(),required:sk(i3()).optional()}).catchall(sR()).optional(),annotations:e_.optional(),execution:eS.optional(),_meta:sL(i3(),sR()).optional()}),e$=z.extend({method:sF("tools/list")}),eR=M.extend({tools:sk(ew)}),ej=m.extend({content:sk(eg),structuredContent:sL(i3(),sR()).optional(),isError:sx().optional()}),eE=l.extend({name:i3(),arguments:sL(i3(),sR()).optional()}),ek=p.extend({method:sF("tools/call"),params:eE}),eP=d.extend({method:sF("notifications/tools/list_changed"),params:u.optional()}),eT=sD(["debug","info","notice","warning","error","critical","alert","emergency"]),eO=c.extend({level:eT}),eC=p.extend({method:sF("logging/setLevel"),params:eO}),eI=u.extend({level:eT,logger:i3().optional(),data:sR()}),eN=d.extend({method:sF("notifications/message"),params:eI}),eq=sT({name:i3().optional()}),eA=sT({hints:sk(eq).optional(),costPriority:sv().min(0).max(1).optional(),speedPriority:sv().min(0).max(1).optional(),intelligencePriority:sv().min(0).max(1).optional()}),ez=sT({mode:sD(["auto","required","none"]).optional()}),eM=sT({type:sF("tool_result"),toolUseId:i3().describe("The unique identifier for the corresponding tool call."),content:sk(eg),structuredContent:sT({}).loose().optional(),isError:sx().optional(),_meta:sL(i3(),sR()).optional()}),eL=sq("type",[eu,ed,em]),eD=sT({role:F,content:sI([eU=sq("type",[eu,ed,em,eh,eM]),sk(eU)]),_meta:sL(i3(),sR()).optional()}),eH=l.extend({messages:sk(eD),modelPreferences:eA.optional(),systemPrompt:i3().optional(),includeContext:sD(["none","thisServer","allServers"]).optional(),temperature:sv().optional(),maxTokens:sv().int(),stopSequences:sk(i3()).optional(),metadata:a.optional(),tools:sk(ew).optional(),toolChoice:ez.optional()}),eF=p.extend({method:sF("sampling/createMessage"),params:eH}),eV=m.extend({model:i3(),stopReason:sG(sD(["endTurn","stopSequence","maxTokens"]).or(i3())),role:F,content:eL}),eB=m.extend({model:i3(),stopReason:sG(sD(["endTurn","stopSequence","maxTokens","toolUse"]).or(i3())),role:F,content:sI([eU,sk(eU)])}),eJ=sT({type:sF("boolean"),title:i3().optional(),description:i3().optional(),default:sx().optional()}),eG=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),minLength:sv().optional(),maxLength:sv().optional(),format:sD(["email","uri","date","date-time"]).optional(),default:i3().optional()}),eZ=sT({type:sD(["number","integer"]),title:i3().optional(),description:i3().optional(),minimum:sv().optional(),maximum:sv().optional(),default:sv().optional()}),eK=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),enum:sk(i3()),default:i3().optional()}),eW=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),oneOf:sk(sT({const:i3(),title:i3()})),default:i3().optional()}),eX=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),enum:sk(i3()),enumNames:sk(i3()).optional(),default:i3().optional()}),eY=sI([eK,eW]),eQ=sT({type:sF("array"),title:i3().optional(),description:i3().optional(),minItems:sv().optional(),maxItems:sv().optional(),items:sT({type:sF("string"),enum:sk(i3())}),default:sk(i3()).optional()}),e1=sI([eQ,e0=sT({type:sF("array"),title:i3().optional(),description:i3().optional(),minItems:sv().optional(),maxItems:sv().optional(),items:sT({anyOf:sk(sT({const:i3(),title:i3()}))}),default:sk(i3()).optional()})]),e2=sI([eX,eY,e1]),e4=sI([e2,eJ,eG,eZ]),e3=l.extend({mode:sF("form").optional(),message:i3(),requestedSchema:sT({type:sF("object"),properties:sL(i3(),e4),required:sk(i3()).optional()}).catchall(sR())}),e5=sI([e3,e9=l.extend({mode:sF("url"),message:i3(),elicitationId:i3(),url:i3().url()})]),e6=p.extend({method:sF("elicitation/create"),params:e5}),e8=u.extend({elicitationId:i3()}),e7=d.extend({method:sF("notifications/elicitation/complete"),params:e8}),te=m.extend({action:sD(["accept","decline","cancel"]),content:s5(e=>null===e?void 0:e,sL(i3(),sI([i3(),sv(),sx(),sk(i3())])).optional())}),tt=sT({type:sF("ref/resource"),uri:i3()}),ta=sT({type:sF("ref/prompt"),name:i3()}),to=c.extend({ref:sI([ta,tt]),argument:sT({name:i3(),value:i3()}),context:sT({arguments:sL(i3(),i3()).optional()}).optional()}),tn=p.extend({method:sF("completion/complete"),params:to}),ti=m.extend({completion:sO({values:sk(i3()).max(100),total:sG(sv().int()),hasMore:sG(sx())})}),ts=sT({uri:i3().startsWith("file://"),name:i3().optional(),_meta:sL(i3(),sR()).optional()}),tr=p.extend({method:sF("roots/list"),params:c.optional()}),tc=m.extend({roots:sk(ts)}),tl=d.extend({method:sF("notifications/roots/list_changed"),params:u.optional()}),tp=sO({ttl:sv().optional(),pollInterval:sv().optional()}),tu=sD(["working","input_required","completed","failed","cancelled"]),td=sT({taskId:i3(),status:tu,ttl:sI([sv(),sS()]),createdAt:i3(),lastUpdatedAt:i3(),pollInterval:sG(sv()),statusMessage:sG(i3())}),tm=m.extend({task:td}),th=u.merge(td),tf=d.extend({method:sF("notifications/tasks/status"),params:th}),tv=p.extend({method:sF("tasks/get"),params:c.extend({taskId:i3()})}),tg=m.merge(td),tb=p.extend({method:sF("tasks/result"),params:c.extend({taskId:i3()})}),ty=m.loose(),tx=z.extend({method:sF("tasks/list")}),t_=M.extend({tasks:sk(td)}),tS=p.extend({method:sF("tasks/cancel"),params:c.extend({taskId:i3()})}),{JSONValueSchema:t,JSONObjectSchema:a,ProgressTokenSchema:o,CursorSchema:n,TaskMetadataSchema:i,RelatedTaskMetadataSchema:s,RequestMetaSchema:r,BaseRequestParamsSchema:c,TaskAugmentedRequestParamsSchema:l,RequestSchema:p,NotificationsParamsSchema:u,NotificationSchema:d,ResultSchema:m,RequestIdSchema:h,EmptyResultSchema:f,CancelledNotificationParamsSchema:v,CancelledNotificationSchema:g,IconSchema:b,IconsSchema:y,BaseMetadataSchema:x,ImplementationSchema:_,ClientTasksCapabilitySchema:$,ServerTasksCapabilitySchema:R,ClientCapabilitiesSchema:j,InitializeRequestParamsSchema:E,InitializeRequestSchema:k,ServerCapabilitiesSchema:P,InitializeResultSchema:T,InitializedNotificationSchema:O,PingRequestSchema:C,ProgressSchema:I,ProgressNotificationParamsSchema:N,ProgressNotificationSchema:q,PaginatedRequestParamsSchema:A,PaginatedRequestSchema:z,PaginatedResultSchema:M,ResourceContentsSchema:L,TextResourceContentsSchema:U,BlobResourceContentsSchema:H,RoleSchema:F,AnnotationsSchema:V,ResourceSchema:B,ResourceTemplateSchema:J,ListResourcesRequestSchema:G,ListResourcesResultSchema:Z,ListResourceTemplatesRequestSchema:K,ListResourceTemplatesResultSchema:W,ResourceRequestParamsSchema:X,ReadResourceRequestParamsSchema:X,ReadResourceRequestSchema:Y,ReadResourceResultSchema:Q,ResourceListChangedNotificationSchema:ee,SubscribeRequestParamsSchema:X,SubscribeRequestSchema:et,UnsubscribeRequestParamsSchema:X,UnsubscribeRequestSchema:ea,ResourceUpdatedNotificationParamsSchema:eo,ResourceUpdatedNotificationSchema:en,PromptArgumentSchema:ei,PromptSchema:es,ListPromptsRequestSchema:er,ListPromptsResultSchema:ec,GetPromptRequestParamsSchema:el,GetPromptRequestSchema:ep,TextContentSchema:eu,ImageContentSchema:ed,AudioContentSchema:em,ToolUseContentSchema:eh,EmbeddedResourceSchema:ef,ResourceLinkSchema:ev,ContentBlockSchema:eg,PromptMessageSchema:eb,GetPromptResultSchema:ey,PromptListChangedNotificationSchema:ex,ToolAnnotationsSchema:e_,ToolExecutionSchema:eS,ToolSchema:ew,ListToolsRequestSchema:e$,ListToolsResultSchema:eR,CallToolResultSchema:ej,CallToolRequestParamsSchema:eE,CallToolRequestSchema:ek,ToolListChangedNotificationSchema:eP,LoggingLevelSchema:eT,SetLevelRequestParamsSchema:eO,SetLevelRequestSchema:eC,LoggingMessageNotificationParamsSchema:eI,LoggingMessageNotificationSchema:eN,ModelHintSchema:eq,ModelPreferencesSchema:eA,ToolChoiceSchema:ez,ToolResultContentSchema:eM,SamplingContentSchema:eL,SamplingMessageContentBlockSchema:eU,SamplingMessageSchema:eD,CreateMessageRequestParamsSchema:eH,CreateMessageRequestSchema:eF,CreateMessageResultSchema:eV,CreateMessageResultWithToolsSchema:eB,BooleanSchemaSchema:eJ,StringSchemaSchema:eG,NumberSchemaSchema:eZ,UntitledSingleSelectEnumSchemaSchema:eK,TitledSingleSelectEnumSchemaSchema:eW,LegacyTitledEnumSchemaSchema:eX,SingleSelectEnumSchemaSchema:eY,UntitledMultiSelectEnumSchemaSchema:eQ,TitledMultiSelectEnumSchemaSchema:e0,MultiSelectEnumSchemaSchema:e1,EnumSchemaSchema:e2,PrimitiveSchemaDefinitionSchema:e4,ElicitRequestFormParamsSchema:e3,ElicitRequestURLParamsSchema:e9,ElicitRequestParamsSchema:e5,ElicitRequestSchema:e6,ElicitationCompleteNotificationParamsSchema:e8,ElicitationCompleteNotificationSchema:e7,ElicitResultSchema:te,ResourceTemplateReferenceSchema:tt,PromptReferenceSchema:ta,CompleteRequestParamsSchema:to,CompleteRequestSchema:tn,CompleteResultSchema:ti,RootSchema:ts,ListRootsRequestSchema:tr,ListRootsResultSchema:tc,RootsListChangedNotificationSchema:tl,TaskCreationParamsSchema:tp,TaskStatusSchema:tu,TaskSchema:td,CreateTaskResultSchema:tm,TaskStatusNotificationParamsSchema:th,TaskStatusNotificationSchema:tf,GetTaskRequestSchema:tv,GetTaskResultSchema:tg,GetTaskPayloadRequestSchema:tb,GetTaskPayloadResultSchema:ty,ListTasksRequestSchema:tx,ListTasksResultSchema:t_,CancelTaskRequestSchema:tS,CancelTaskResultSchema:m.merge(td),ClientRequestSchema:sI([C,k,tn,eC,ep,er,G,K,Y,et,ea,ek,e$,tv,tb,tx,tS]),ClientNotificationSchema:sI([g,q,O,tl,tf]),ClientResultSchema:sI([f,eV,eB,te,tc,tg,t_,tm]),ServerRequestSchema:sI([C,eF,e6,tr,tv,tb,tx,tS]),ServerNotificationSchema:sI([g,q,eN,en,ee,eP,ex,tf,e7]),ServerResultSchema:sI([f,T,ti,ey,ec,Z,W,Q,ej,eR,tg,t_,tm]),CallToolResultWireSchema:sR().superRefine((e,t)=>{if(!("object"!=typeof e||null===e||Array.isArray(e))&&void 0===e.content){for(let a of pi)if(a in e)return void t.addIssue({code:"custom",message:`content is required when the body carries '${a}' — another result family cannot default into an empty tools/call success`})}}).transform(ps).pipe(ej)})}function pc(e){return"object"!==e.type}let pl=new Set(["const","enum","default","examples"]),pp=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function pu(e){return void 0!==e&&!("string"==typeof e&&e.startsWith("#"))}let pd={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},pm={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},ph={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null};function pf(){if(t)return t;let e=pr();return t={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}}}function pv(e){return Object.prototype.hasOwnProperty.call(pd,e)}function pg(e){return Object.prototype.hasOwnProperty.call(pm,e)}function pb(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function py(e,t){if(void 0===e)return{ok:!1,reason:"not-in-era"};let a=e.safeParse(t);return a.success?{ok:!0,value:a.data}:{ok:!1,reason:"invalid",message:String(a.error)}}Object.keys(pd),Object.keys(pm);let px={ok:!1,reason:"not-in-era"};function p_(e){return pb(e)&&pb(e.outputSchema)&&pc(e.outputSchema)}let pS={era:"2025-11-25",hasRequestMethod:pv,hasNotificationMethod:pg,validateRequest:(e,t)=>py(pv(e)?pf().requestSchemas[e]:void 0,t),validateResult:(e,t)=>py(Object.prototype.hasOwnProperty.call(ph,e)?pf().resultSchemas[e]:void 0,t),validateNotification:(e,t)=>py(pg(e)?pf().notificationSchemas[e]:void 0,t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>px,validateInputResponse:()=>px,samplingResultVariant:(e,t)=>{let a=pr();return py(e?a.CreateMessageResultWithToolsSchema:a.CreateMessageResultSchema,t)},outboundEnvelope:e=>void 0,validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let a=pn(e),o=a.structuredContent;if(void 0===o)return a;let n="object"!=typeof o||null===o||Array.isArray(o),i=void 0!==t&&pc(t);return n||i?{...a,structuredContent:{result:o}}:a},decodeResult(e,t){if(pb(t)&&"resultType"in t){let e={...t};return delete e.resultType,{kind:"complete",result:e}}return{kind:"complete",result:t}},encodeResult(e,t){if("tools/list"!==e)return t;let a=t.tools;return Array.isArray(a)&&a.some(e=>p_(e))?{...t,tools:a.map(e=>p_(e)?{...e,outputSchema:function(e){var t;let a="string"==typeof e.$schema?e.$schema:void 0;if(pu(e.$id))return{...void 0!==a&&{$schema:a},type:"object",properties:{result:e},required:["result"]};let o="string"==typeof(t=e.$schema)&&aw.has(t.replace(/#$/,""))&&!0!==e.$recursiveAnchor,n=(e,t)=>{if(Array.isArray(e))return e.map(e=>n(e,!1));if(null===e||"object"!=typeof e||!t&&pu(e.$id))return e;let a={},i=!1;for(let[s,r]of Object.entries(e))t?a[s]=n(r,!1):("$ref"===s||"$dynamicRef"===s)&&"string"==typeof r?a[s]="#"===r?"#/properties/result":r.startsWith("#/")?`#/properties/result${r.slice(1)}`:r:"$recursiveRef"===s&&"#"===r&&o?i=!0:pl.has(s)?a[s]=r:pp.has(s)?a[s]=n(r,!0):a[s]=n(r,!1);return i&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...void 0!==a&&{$schema:a},type:"object",properties:{result:n(e,!1)},required:["result"]}}(e.outputSchema)}:e)}:t},encodeErrorCode:e=>-32002===e?-32602:e,checkInboundEnvelope:e=>void 0};function pw(){return a??=function(){let e=s3(()=>sI([i3(),sv(),sx(),sS(),sL(i3(),e),sk(e)])),t=sL(i3(),e),a=sI([i3(),sv().int()]),o=i3(),n=sI([i3(),sv().int()]),i=sD(["user","assistant"]),s=sD(["debug","info","notice","warning","error","critical","alert","emergency"]),r=i3().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=sT({ttl:sv().optional()}),l=sT({taskId:i3()}),p=sO({progressToken:a.optional(),"io.modelcontextprotocol/related-task":l.optional()}),u=sT({_meta:p.optional()}),d=u.extend({task:c.optional()}),m=sT({_meta:p.optional()}),h=sT({method:i3(),params:m.loose().optional()}),f=sT({src:i3(),mimeType:i3().optional(),sizes:sk(i3()).optional(),theme:sD(["light","dark"]).optional()}),v=sT({icons:sk(f).optional()}),g=sT({name:i3(),title:i3().optional()}),b=g.extend({...g.shape,...v.shape,version:i3(),websiteUrl:i3().optional(),description:i3().optional()}),y=sz(sT({applyDefaults:sx().optional()}),t),x=s5(e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e,sz(sT({form:y.optional(),url:t.optional()}),t.optional())),_=sO({list:t.optional(),cancel:t.optional(),requests:sO({sampling:sO({createMessage:t.optional()}).optional(),elicitation:sO({create:t.optional()}).optional()}).optional()}),S=sO({list:t.optional(),cancel:t.optional(),requests:sO({tools:sO({call:t.optional()}).optional()}).optional()}),w=sT({experimental:sL(i3(),t).optional(),sampling:sT({context:t.optional(),tools:t.optional()}).optional(),elicitation:x.optional(),roots:sT({listChanged:sx().optional()}).optional(),tasks:_.optional(),extensions:sL(i3(),t).optional()}),$=sT({experimental:sL(i3(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:sT({listChanged:sx().optional()}).optional(),resources:sT({subscribe:sx().optional(),listChanged:sx().optional()}).optional(),tools:sT({listChanged:sx().optional()}).optional(),tasks:S.optional(),extensions:sL(i3(),t).optional()}),R=sT({progress:sv(),total:sG(sv()),message:sG(i3())}),j=sT({...m.shape,...R.shape,progressToken:a}),E=h.extend({method:sF("notifications/progress"),params:j}),k=m.extend({level:s,logger:i3().optional(),data:sR()}),P=h.extend({method:sF("notifications/message"),params:k}),T=sT({uri:i3(),mimeType:sG(i3()),_meta:sL(i3(),sR()).optional()}),O=T.extend({text:i3()}),C=T.extend({blob:r}),I=sT({audience:sk(i).optional(),priority:sv().min(0).max(1).optional(),lastModified:iA({offset:!0}).optional()}),N=sT({...g.shape,...v.shape,uri:i3(),description:sG(i3()),mimeType:sG(i3()),size:sG(sv()),annotations:I.optional(),_meta:sG(sO({}))}),q=sT({...g.shape,...v.shape,uriTemplate:i3(),description:sG(i3()),mimeType:sG(i3()),annotations:I.optional(),_meta:sG(sO({}))}),A=h.extend({method:sF("notifications/resources/list_changed"),params:m.optional()}),z=m.extend({uri:i3()}),M=h.extend({method:sF("notifications/resources/updated"),params:z}),L=sT({name:i3(),description:sG(i3()),required:sG(sx())}),U=sT({...g.shape,...v.shape,description:sG(i3()),arguments:sG(sk(L)),_meta:sG(sO({}))}),D=h.extend({method:sF("notifications/prompts/list_changed"),params:m.optional()}),H=sT({type:sF("text"),text:i3(),annotations:I.optional(),_meta:sL(i3(),sR()).optional()}),F=sT({type:sF("image"),data:r,mimeType:i3(),annotations:I.optional(),_meta:sL(i3(),sR()).optional()}),V=sT({type:sF("audio"),data:r,mimeType:i3(),annotations:I.optional(),_meta:sL(i3(),sR()).optional()}),B=sT({type:sF("tool_use"),name:i3(),id:i3(),input:sL(i3(),sR()),_meta:sL(i3(),sR()).optional()}),J=sT({type:sF("resource"),resource:sI([O,C]),annotations:I.optional(),_meta:sL(i3(),sR()).optional()}),G=N.extend({type:sF("resource_link")}),Z=sI([H,F,V,G,J]),K=sT({role:i,content:Z}),W=sT({title:i3().optional(),readOnlyHint:sx().optional(),destructiveHint:sx().optional(),idempotentHint:sx().optional(),openWorldHint:sx().optional()}),X=h.extend({method:sF("notifications/tools/list_changed"),params:m.optional()}),Y=sT({name:i3().optional()}),Q=sT({hints:sk(Y).optional(),costPriority:sv().min(0).max(1).optional(),speedPriority:sv().min(0).max(1).optional(),intelligencePriority:sv().min(0).max(1).optional()}),ee=sT({mode:sD(["auto","required","none"]).optional()}),et=sT({type:sF("boolean"),title:i3().optional(),description:i3().optional(),default:sx().optional()}),ea=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),minLength:sv().optional(),maxLength:sv().optional(),format:sD(["email","uri","date","date-time"]).optional(),default:i3().optional()}),eo=sT({type:sD(["number","integer"]),title:i3().optional(),description:i3().optional(),minimum:sv().optional(),maximum:sv().optional(),default:sv().optional()}),en=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),enum:sk(i3()),default:i3().optional()}),ei=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),oneOf:sk(sT({const:i3(),title:i3()})),default:i3().optional()}),es=sT({type:sF("string"),title:i3().optional(),description:i3().optional(),enum:sk(i3()),enumNames:sk(i3()).optional(),default:i3().optional()}),er=sI([en,ei]),ec=sT({type:sF("array"),title:i3().optional(),description:i3().optional(),minItems:sv().optional(),maxItems:sv().optional(),items:sT({type:sF("string"),enum:sk(i3())}),default:sk(i3()).optional()}),el=sT({type:sF("array"),title:i3().optional(),description:i3().optional(),minItems:sv().optional(),maxItems:sv().optional(),items:sT({anyOf:sk(sT({const:i3(),title:i3()}))}),default:sk(i3()).optional()}),ep=sI([ec,el]),eu=sI([es,er,ep]),ed=sI([eu,et,ea,eo]),em=d.extend({mode:sF("form").optional(),message:i3(),requestedSchema:sT({type:sF("object"),properties:sL(i3(),ed),required:sk(i3()).optional()}).catchall(sR())}),eh=sT({type:sF("ref/resource"),uri:i3()}),ef=sT({type:sF("ref/prompt"),name:i3()}),ev=sT({uri:i3().startsWith("file://"),name:i3().optional(),_meta:sL(i3(),sR()).optional()}),eg=w.shape,eb=sT({experimental:eg.experimental,sampling:eg.sampling,elicitation:eg.elicitation,roots:eg.roots,extensions:eg.extensions}),ey=$.shape,ex=sT({experimental:ey.experimental,logging:ey.logging,completions:ey.completions,prompts:ey.prompts,resources:ey.resources,tools:ey.tools,extensions:ey.extensions}),e_=sO({progressToken:a.optional(),[s7]:i3(),[re]:b.optional(),[ra]:eb,[rn]:s.optional()}),eS=sT({...g.shape,...v.shape,description:i3().optional(),inputSchema:sO({$schema:i3().optional(),type:sF("object")}),outputSchema:sO({$schema:i3().optional()}).optional(),annotations:W.optional(),_meta:sL(i3(),sR()).optional()}),ew=sT({type:sF("tool_result"),toolUseId:i3(),content:sk(Z),structuredContent:sR().optional(),isError:sx().optional(),_meta:sL(i3(),sR()).optional()}),e$=sI([H,F,V,B,ew]),eR=sT({role:i,content:sI([e$,sk(e$)]),_meta:sL(i3(),sR()).optional()}),ej=i3(),eE=sO({[rt]:b.optional().catch(void 0)}),ek=eE.optional();function eP(e){return sO({_meta:ek,resultType:ej.default("complete"),...e})}let eT=eP({}),eO=eP({nextCursor:o.optional()}),eC=eP({content:sk(Z),structuredContent:sR().optional(),isError:sx().optional()}),eI=eP({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),tools:sk(eS),nextCursor:o.optional()}),eN=eP({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),prompts:sk(U),nextCursor:o.optional()}),eq=eP({description:i3().optional(),messages:sk(K)}),eA=eP({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),resources:sk(N),nextCursor:o.optional()}),ez=eP({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),resourceTemplates:sk(q),nextCursor:o.optional()}),eM=eP({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),contents:sk(sI([O,C]))}),eL=eP({completion:sT({values:sk(i3()).max(100),total:sv().int().optional(),hasMore:sx().optional()}).loose()}),eU=eP({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"])}),eD=eP({ttlMs:sv().int().min(0).catch(0),cacheScope:sD(["public","private"]).catch("private"),supportedVersions:sk(i3()),capabilities:ex,instructions:i3().optional()}),eH=sT({messages:sk(eR),modelPreferences:Q.optional(),systemPrompt:i3().optional(),includeContext:sD(["none","thisServer","allServers"]).optional(),temperature:sv().optional(),maxTokens:sv().int(),stopSequences:sk(i3()).optional(),metadata:t.optional(),tools:sk(eS).optional(),toolChoice:ee.optional()}),eF=sT({method:sF("sampling/createMessage"),params:eH}),eV=sT({method:sF("roots/list"),params:sT({_meta:sL(i3(),sR()).optional()}).optional()}),eB=sT({...eR.shape,model:i3(),stopReason:i3().optional()}),eJ=sT({roots:sk(ev)}),eG=sT({action:sD(["accept","decline","cancel"]),content:sL(i3(),sI([i3(),sv(),sx(),sk(i3())])).optional()}),eZ=sT({mode:sF("url"),message:i3(),url:i3().url()}),eK=sI([em,eZ]),eW=sT({method:sF("elicitation/create"),params:eK}),eX=sI([eF,eV,eW]),eY=sI([eB,eJ,eG]),eQ=sL(i3(),eX),e0=sL(i3(),eY),e1=eP({inputRequests:eQ.optional(),requestState:i3().optional()}),e2={inputResponses:e0.optional(),requestState:i3().optional()},e4=sT({_meta:e_,...e2}),e3=sO({progressToken:a.optional()});function e9(e,t){return sT({method:sF(e),params:sT({_meta:e_,...t})})}function e5(e,t){return sT({method:sF(e),params:sT({_meta:e3.optional(),...t}).optional()})}let e6={name:i3(),arguments:sL(i3(),sR()).optional(),...e2},e8={cursor:o.optional()},e7=e9("tools/call",e6),te=e9("tools/list",e8),tt=e9("prompts/list",e8),ta=e9("prompts/get",{name:i3(),arguments:sL(i3(),i3()).optional(),...e2}),to=e9("resources/list",e8),tn=e9("resources/templates/list",e8),ti=e9("resources/read",{uri:i3(),...e2}),ts={ref:sI([ef,eh]),argument:sT({name:i3(),value:i3()}),context:sT({arguments:sL(i3(),i3()).optional()}).optional()},tr=e9("completion/complete",ts),tc=e9("server/discover",{}),tl=sT({toolsListChanged:sx().optional(),promptsListChanged:sx().optional(),resourcesListChanged:sx().optional(),resourceSubscriptions:sk(i3()).optional()}),tp={notifications:tl},tu=e9("subscriptions/listen",tp),td=eE.extend({"io.modelcontextprotocol/subscriptionId":n}),tm=sO({_meta:td,resultType:ej.default("complete")}),th={"tools/call":e5("tools/call",e6),"tools/list":e5("tools/list",e8),"prompts/get":e5("prompts/get",{name:i3(),arguments:sL(i3(),i3()).optional()}),"prompts/list":e5("prompts/list",e8),"resources/list":e5("resources/list",e8),"resources/templates/list":e5("resources/templates/list",e8),"resources/read":e5("resources/read",{uri:i3()}),"completion/complete":e5("completion/complete",ts),"server/discover":e5("server/discover",{}),"subscriptions/listen":e5("subscriptions/listen",tp)};function tf(e){return sO({_meta:ek,...e})}let tv={"tools/call":tf({content:sk(Z),structuredContent:sR().optional(),isError:sx().optional()}),"tools/list":tf({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),tools:sk(eS),nextCursor:o.optional()}),"prompts/get":tf({description:i3().optional(),messages:sk(K)}),"prompts/list":tf({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),prompts:sk(U),nextCursor:o.optional()}),"resources/list":tf({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),resources:sk(N),nextCursor:o.optional()}),"resources/templates/list":tf({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),resourceTemplates:sk(q),nextCursor:o.optional()}),"resources/read":tf({ttlMs:sv().int().min(0),cacheScope:sD(["public","private"]),contents:sk(sI([O,C]))}),"completion/complete":tf({completion:sT({values:sk(i3()).max(100),total:sv().int().optional(),hasMore:sx().optional()}).loose()}),"server/discover":tf({ttlMs:sv().int().min(0).catch(0),cacheScope:sD(["public","private"]).catch("private"),supportedVersions:sk(i3()),capabilities:ex,instructions:i3().optional()}),"subscriptions/listen":tf({})},tg=sO({"io.modelcontextprotocol/subscriptionId":n.optional()}),tb=sT({method:sF("notifications/subscriptions/acknowledged"),params:sT({_meta:tg.optional(),notifications:tl})}),ty=sT({_meta:tg.optional(),requestId:n,reason:i3().optional()}),tx=sT({method:sF("notifications/cancelled"),params:ty}),t_=e=>sT({jsonrpc:sF("2.0"),id:sI([i3(),sv().int()]),result:e}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:a,CursorSchema:o,RequestIdSchema:n,RoleSchema:i,LoggingLevelSchema:s,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:p,BaseRequestParamsSchema:u,TaskAugmentedRequestParamsSchema:d,NotificationsParamsSchema:m,NotificationSchema:h,IconSchema:f,IconsSchema:v,BaseMetadataSchema:g,ImplementationSchema:b,ClientTasksCapabilitySchema:_,ServerTasksCapabilitySchema:S,ClientCapabilitiesSchema:w,ServerCapabilitiesSchema:$,ProgressSchema:R,ProgressNotificationParamsSchema:j,ProgressNotificationSchema:E,LoggingMessageNotificationParamsSchema:k,LoggingMessageNotificationSchema:P,ResourceContentsSchema:T,TextResourceContentsSchema:O,BlobResourceContentsSchema:C,AnnotationsSchema:I,ResourceSchema:N,ResourceTemplateSchema:q,ResourceListChangedNotificationSchema:A,ResourceUpdatedNotificationParamsSchema:z,ResourceUpdatedNotificationSchema:M,PromptArgumentSchema:L,PromptSchema:U,PromptListChangedNotificationSchema:D,TextContentSchema:H,ImageContentSchema:F,AudioContentSchema:V,ToolUseContentSchema:B,EmbeddedResourceSchema:J,ResourceLinkSchema:G,ContentBlockSchema:Z,PromptMessageSchema:K,ToolAnnotationsSchema:W,ToolListChangedNotificationSchema:X,ModelHintSchema:Y,ModelPreferencesSchema:Q,ToolChoiceSchema:ee,BooleanSchemaSchema:et,StringSchemaSchema:ea,NumberSchemaSchema:eo,UntitledSingleSelectEnumSchemaSchema:en,TitledSingleSelectEnumSchemaSchema:ei,LegacyTitledEnumSchemaSchema:es,SingleSelectEnumSchemaSchema:er,UntitledMultiSelectEnumSchemaSchema:ec,TitledMultiSelectEnumSchemaSchema:el,MultiSelectEnumSchemaSchema:ep,EnumSchemaSchema:eu,PrimitiveSchemaDefinitionSchema:ed,ElicitRequestFormParamsSchema:em,ResourceTemplateReferenceSchema:eh,PromptReferenceSchema:ef,RootSchema:ev,ClientCapabilities2026Schema:eb,ServerCapabilities2026Schema:ex,RequestMetaEnvelopeSchema:e_,ToolSchema:eS,ToolResultContentSchema:ew,SamplingMessageContentBlockSchema:e$,SamplingMessageSchema:eR,ResultTypeSchema:ej,ResultMetaSchema:eE,ResultSchema:eT,PaginatedResultSchema:eO,CallToolResultSchema:eC,ListToolsResultSchema:eI,ListPromptsResultSchema:eN,GetPromptResultSchema:eq,ListResourcesResultSchema:eA,ListResourceTemplatesResultSchema:ez,ReadResourceResultSchema:eM,CompleteResultSchema:eL,CacheableResultSchema:eU,DiscoverResultSchema:eD,CreateMessageRequestParamsSchema:eH,CreateMessageRequestSchema:eF,ListRootsRequestSchema:eV,CreateMessageResultSchema:eB,ListRootsResultSchema:eJ,ElicitResultSchema:eG,ElicitRequestURLParamsSchema:eZ,ElicitRequestParamsSchema:eK,ElicitRequestSchema:eW,InputRequestSchema:eX,InputResponseSchema:eY,InputRequestsSchema:eQ,InputResponsesSchema:e0,InputRequiredResultSchema:e1,InputResponseRequestParamsSchema:e4,CallToolRequestSchema:e7,ListToolsRequestSchema:te,ListPromptsRequestSchema:tt,GetPromptRequestSchema:ta,ListResourcesRequestSchema:to,ListResourceTemplatesRequestSchema:tn,ReadResourceRequestSchema:ti,CompleteRequestSchema:tr,DiscoverRequestSchema:tc,SubscriptionFilterSchema:tl,SubscriptionsListenRequestSchema:tu,SubscriptionsListenResultMetaSchema:td,SubscriptionsListenResultSchema:tm,dispatchRequestSchemas:th,dispatchResultSchemas:tv,NotificationMetaSchema:tg,SubscriptionsAcknowledgedNotificationSchema:tb,CancelledNotificationParamsSchema:ty,CancelledNotificationSchema:tx,notificationSchemas2026:{"notifications/cancelled":tx,"notifications/progress":E,"notifications/message":P,"notifications/resources/updated":M,"notifications/resources/list_changed":A,"notifications/tools/list_changed":X,"notifications/prompts/list_changed":D,"notifications/subscriptions/acknowledged":tb},JSONRPCResultResponseSchema:t_(eT),CallToolResultResponseSchema:t_(sI([eC,e1])),ListToolsResultResponseSchema:t_(eI),ListPromptsResultResponseSchema:t_(eN),GetPromptResultResponseSchema:t_(sI([eq,e1])),ListResourcesResultResponseSchema:t_(eA),ListResourceTemplatesResultResponseSchema:t_(ez),ReadResourceResultResponseSchema:t_(sI([eM,e1])),CompleteResultResponseSchema:t_(eL),DiscoverResultResponseSchema:t_(eD)}}()}let p$=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"],pR=Symbol("modelcontextprotocol.resultCacheHintFallback");function pj(e,t){if(void 0===t)return e;let a=e[pR];if(void 0===a)return{...e,[pR]:t};let o={},n=a.ttlMs??t.ttlMs;void 0!==n&&(o.ttlMs=n);let i=a.cacheScope??t.cacheScope;return void 0!==i&&(o.cacheScope=i),{...e,[pR]:o}}function pE(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0}function pk(e){return"public"===e||"private"===e}function pP(e,t){if(void 0!==e.ttlMs&&!pE(e.ttlMs))throw RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(void 0!==e.cacheScope&&!pk(e.cacheScope))throw RangeError(`Invalid cache hint for ${t}: cacheScope must be 'public' or 'private' (got ${String(e.cacheScope)})`)}let pT=((k={})[k.ParseError=-32700]="ParseError",k[k.InvalidRequest=-32600]="InvalidRequest",k[k.MethodNotFound=-32601]="MethodNotFound",k[k.InvalidParams=-32602]="InvalidParams",k[k.InternalError=-32603]="InternalError",k[k.ResourceNotFound=-32002]="ResourceNotFound",k[k.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",k[k.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",k[k.UrlElicitationRequired=-32042]="UrlElicitationRequired",k);var pO=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](e){return l9(this,e)}static isInstance(e){if("function"!=typeof this)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return l9(this,e)}constructor(e,t,a){super(t),this.code=e,this.data=a,this.name="ProtocolError",l3(this,new.target)}static fromError(t,a,o){return t===pT.UrlElicitationRequired&&o&&o.elicitations?new pI(o.elicitations,a):t===pT.UnsupportedProtocolVersion&&o&&Array.isArray(o.supported)&&"string"==typeof o.requested?new pN({supported:o.supported,requested:o.requested},a):(t===pT.InvalidParams||t===pT.ResourceNotFound)&&"string"==typeof o?.uri&&(t===pT.ResourceNotFound||1===Object.keys(o).length)?new pC(o.uri,a):t===pT.MissingRequiredClientCapability&&o&&null!==o.requiredCapabilities&&"object"==typeof o.requiredCapabilities&&!Array.isArray(o.requiredCapabilities)?new pq({requiredCapabilities:o.requiredCapabilities},a):new e(t,a,o)}},pC=class extends pO{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(pT.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},pI=class extends pO{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(pT.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},pN=class extends pO{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(pT.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},pq=class extends pO{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(pT.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}};let pA=["tools/call","prompts/get","resources/read"],pz=["elicitation/create","sampling/createMessage","roots/list"];function pM(){if(o)return o;let e=pw();return o={request:{"elicitation/create":sT({method:sF("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":sT({method:sF("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":sT({method:sF("roots/list"),params:sO({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}}}function pL(e){return pz.includes(e)}function pU(e){return pL(e)?pM().request[e]:void 0}let pD={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},pH={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function pF(e){return Object.prototype.hasOwnProperty.call(pD,e)}function pV(e){return Object.prototype.hasOwnProperty.call(pH,e)}function pB(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function pJ(e,t){if(void 0===e)return{ok:!1,reason:"not-in-era"};let a=e.safeParse(t);return a.success?{ok:!0,value:a.data}:{ok:!1,reason:"invalid",message:String(a.error)}}Object.keys(pD),Object.keys(pH);let pG={ok:!1,reason:"not-in-era"},pZ=[s7,ra],pK={era:"2026-07-28",hasRequestMethod:pF,hasNotificationMethod:pV,hasInputRequestMethod:e=>void 0!==pU(e),validateRequest:(e,t)=>pJ(pF(e)?pw().dispatchRequestSchemas[e]:void 0,t),validateResult:(e,t)=>pJ(Object.prototype.hasOwnProperty.call(pD,e)?pw().dispatchResultSchemas[e]:void 0,t),validateNotification:(e,t)=>pJ(pV(e)?pw().notificationSchemas2026[e]:void 0,t),validateInputRequest:(e,t)=>pJ(pU(e),t),validateInputResponse:(e,t)=>pJ(pL(e)?pM().response[e]:void 0,t),samplingResultVariant:()=>pG,outboundEnvelope:e=>({[s7]:e.protocolVersion,[re]:e.clientInfo,[ra]:e.clientCapabilities,...void 0!==e.logLevel&&{[rn]:e.logLevel}}),validateEnvelopeMeta(e){let t=[];for(let a of pZ)a in e||t.push({key:a,problem:"missing"});let a=pw().RequestMetaEnvelopeSchema.safeParse(e);if(!a.success)for(let e of a.error.issues){let a=e.path.map(String),o=a.length>0?a.join("."):"_meta";1===a.length&&t.some(e=>e.key===o&&"missing"===e.problem)||t.push({key:o,problem:e.message})}return t},projectCallToolResult:e=>pn(e),inputRequestSchema:pU,decodeResult(e,t){if(!pB(t))return{kind:"invalid",error:new l6(l5.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let a=t.resultType;if(void 0===a)return{kind:"invalid",error:new l6(l5.InvalidResult,`Invalid result for ${e}: missing required resultType — servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if("string"!=typeof a)return{kind:"invalid",error:new l6(l5.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:a})};if("input_required"===a){let a=t.inputRequests,o=pB(a)?a:{},n=t.requestState;return 0===Object.keys(o).length&&"string"!=typeof n?{kind:"invalid",error:new l6(l5.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:o,..."string"==typeof n&&{requestState:n}}}if("complete"!==a)return{kind:"invalid",error:new l6(l5.UnsupportedResultType,`Unsupported result type '${a}' for ${e}`,{resultType:a,method:e})};let o=function(){if(n)return n;let e=pw();return n={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema}}(),i=Object.hasOwn(o,e)?o[e]:void 0;if(void 0!==i){let a=i.safeParse(t);if(!a.success)return{kind:"invalid",error:new l6(l5.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let s={...t};return delete s.resultType,{kind:"complete",result:s}},encodeResult:(e,t,a)=>(function(e,t){if(void 0===t)return e;let a=e._meta;return void 0===a?{...e,_meta:{[rt]:t}}:null===a||"object"!=typeof a||Array.isArray(a)||void 0!==a[rt]?e:{...e,_meta:{...a,[rt]:t}}})(function(e,t){var a,o;let n=t[pR];if("complete"!==t.resultType||!p$.includes(e)){let e;return void 0===n?t:(e={...t},delete e[pR],e)}let i=pE(t.ttlMs)?t.ttlMs:void 0!==(a=n)&&pE(a.ttlMs)?a.ttlMs:0,s=pk(t.cacheScope)?t.cacheScope:void 0!==(o=n)&&pk(o.cacheScope)?o.cacheScope:"private",r={...t,ttlMs:i,cacheScope:s};return delete r[pR],r}(e,function(e,t){let a=t.resultType;if(void 0===a)return{...t,resultType:"complete"};if("complete"===a||pA.includes(e))return t;throw new pO(pT.InternalError,`Handler for ${e} returned resultType '${String(a)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}(e,function(e,t){let a=t,o=!1,n=()=>(o||(a={...a},o=!0),a),i=t.tools;"tools/list"===e&&Array.isArray(i)&&i.some(e=>pB(e)&&"execution"in e)&&(n().tools=i.map(e=>{if(!pB(e)||!("execution"in e))return e;let t={...e};return delete t.execution,t}));let s=t.capabilities;if(pB(s)&&"tasks"in s){let e={...s};delete e.tasks,n().capabilities=e}return a}(e,t))),a),encodeErrorCode:e=>-32002===e?-32602:e,checkInboundEnvelope(e){if(void 0===e.envelope)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=pw().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(e=>e.message).join("; ")}`}},pW="2026-07-28";function pX(e){return void 0!==e&&e>=pt?pK:pS}function pY(e){return void 0!==e.revision?pX(e.revision).era:"modern"===e.era?pK.era:pS.era}function pQ(e){return p1.some(t=>t.hasRequestMethod(e))}function p0(e){return p1.some(t=>t.hasNotificationMethod(e))}let p1=[pS,pK];function p2(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function p4(e){if(!p2(e))return;let t=e._meta;return p2(t)?t:void 0}function p3(e){let t=p4(e);return void 0!==t&&s7 in t}function p9(e){let t=p4(e)?.[s7];return"string"==typeof t?t:void 0}function p5(e){return pX(pW).validateEnvelopeMeta(e)}var p6=(e=>{let t={};for(var a in e)af(t,a,{get:e[a],enumerable:!0});return t})({AnnotationsSchema:()=>r3,AudioContentSchema:()=>c$,BaseMetadataSchema:()=>rC,BaseRequestParamsSchema:()=>rm,BlobResourceContentsSchema:()=>r2,BooleanSchemaSchema:()=>c9,CallToolRequestParamsSchema:()=>cL,CallToolRequestSchema:()=>cU,CallToolResultSchema:()=>cz,CancelTaskRequestSchema:()=>lq,CancelTaskResultSchema:()=>lA,CancelledNotificationParamsSchema:()=>rk,CancelledNotificationSchema:()=>rP,ClientCapabilitiesSchema:()=>rM,ClientNotificationSchema:()=>lM,ClientRequestSchema:()=>lz,ClientResultSchema:()=>lL,ClientTasksCapabilitySchema:()=>rA,CompatibilityCallToolResultSchema:()=>cM,CompleteRequestParamsSchema:()=>lv,CompleteRequestSchema:()=>lg,CompleteResultSchema:()=>lb,ContentBlockSchema:()=>ck,CreateMessageRequestParamsSchema:()=>c1,CreateMessageRequestSchema:()=>c2,CreateMessageResultSchema:()=>c4,CreateMessageResultWithToolsSchema:()=>c3,CreateTaskResultSchema:()=>lj,CursorSchema:()=>rl,DiscoverRequestSchema:()=>rV,DiscoverResultSchema:()=>rB,ElicitRequestFormParamsSchema:()=>lr,ElicitRequestParamsSchema:()=>ll,ElicitRequestSchema:()=>lp,ElicitRequestURLParamsSchema:()=>lc,ElicitResultSchema:()=>lm,ElicitationCompleteNotificationParamsSchema:()=>lu,ElicitationCompleteNotificationSchema:()=>ld,EmbeddedResourceSchema:()=>cj,EmptyResultSchema:()=>rE,EnumSchemaSchema:()=>li,GetPromptRequestParamsSchema:()=>cx,GetPromptRequestSchema:()=>c_,GetPromptResultSchema:()=>cT,GetTaskPayloadRequestSchema:()=>lO,GetTaskPayloadResultSchema:()=>lC,GetTaskRequestSchema:()=>lP,GetTaskResultSchema:()=>lT,IconSchema:()=>rT,IconsSchema:()=>rO,ImageContentSchema:()=>cw,ImplementationSchema:()=>rI,InitializeRequestParamsSchema:()=>rL,InitializeRequestSchema:()=>rU,InitializeResultSchema:()=>rH,InitializedNotificationSchema:()=>rF,JSONArraySchema:()=>rr,JSONObjectSchema:()=>rs,JSONRPCErrorResponseSchema:()=>r$,JSONRPCMessageSchema:()=>rR,JSONRPCNotificationSchema:()=>rS,JSONRPCRequestSchema:()=>r_,JSONRPCResponseSchema:()=>rj,JSONRPCResultResponseSchema:()=>rw,JSONValueSchema:()=>ri,LegacyTitledEnumSchemaSchema:()=>le,ListChangedOptionsBaseSchema:()=>cH,ListPromptsRequestSchema:()=>cb,ListPromptsResultSchema:()=>cy,ListResourceTemplatesRequestSchema:()=>r7,ListResourceTemplatesResultSchema:()=>ce,ListResourcesRequestSchema:()=>r6,ListResourcesResultSchema:()=>r8,ListRootsRequestSchema:()=>lx,ListRootsResultSchema:()=>l_,ListTasksRequestSchema:()=>lI,ListTasksResultSchema:()=>lN,ListToolsRequestSchema:()=>cq,ListToolsResultSchema:()=>cA,LoggingLevelSchema:()=>cF,LoggingMessageNotificationParamsSchema:()=>cJ,LoggingMessageNotificationSchema:()=>cG,ModelHintSchema:()=>cZ,ModelPreferencesSchema:()=>cK,MultiSelectEnumSchemaSchema:()=>ln,NotificationSchema:()=>rg,NotificationsParamsSchema:()=>rv,NumberSchemaSchema:()=>c6,PaginatedRequestParamsSchema:()=>rW,PaginatedRequestSchema:()=>rX,PaginatedResultSchema:()=>rY,PingRequestSchema:()=>rJ,PrimitiveSchemaDefinitionSchema:()=>ls,ProgressNotificationParamsSchema:()=>rZ,ProgressNotificationSchema:()=>rK,ProgressSchema:()=>rG,ProgressTokenSchema:()=>rc,PromptArgumentSchema:()=>cv,PromptListChangedNotificationSchema:()=>cO,PromptMessageSchema:()=>cP,PromptReferenceSchema:()=>lf,PromptSchema:()=>cg,ReadResourceRequestParamsSchema:()=>ct,ReadResourceRequestSchema:()=>ca,ReadResourceResultSchema:()=>co,RelatedTaskMetadataSchema:()=>ru,RequestIdSchema:()=>rx,RequestMetaSchema:()=>rd,RequestSchema:()=>rf,ResourceContentsSchema:()=>rQ,ResourceLinkSchema:()=>cE,ResourceListChangedNotificationSchema:()=>cn,ResourceRequestParamsSchema:()=>ct,ResourceSchema:()=>r9,ResourceTemplateReferenceSchema:()=>lh,ResourceTemplateSchema:()=>r5,ResourceUpdatedNotificationParamsSchema:()=>ch,ResourceUpdatedNotificationSchema:()=>cf,ResultMetaObjectSchema:()=>rb,ResultSchema:()=>ry,RoleSchema:()=>r4,RootSchema:()=>ly,RootsListChangedNotificationSchema:()=>lS,SamplingContentSchema:()=>cY,SamplingMessageContentBlockSchema:()=>cQ,SamplingMessageSchema:()=>c0,ServerCapabilitiesSchema:()=>rD,ServerNotificationSchema:()=>lD,ServerRequestSchema:()=>lU,ServerResultSchema:()=>lH,ServerTasksCapabilitySchema:()=>rz,SetLevelRequestParamsSchema:()=>cV,SetLevelRequestSchema:()=>cB,SingleSelectEnumSchemaSchema:()=>lt,StringSchemaSchema:()=>c5,SubscribeRequestParamsSchema:()=>ct,SubscribeRequestSchema:()=>ci,SubscriptionFilterSchema:()=>cr,SubscriptionsAcknowledgedNotificationParamsSchema:()=>cp,SubscriptionsAcknowledgedNotificationSchema:()=>cu,SubscriptionsListenRequestParamsSchema:()=>cc,SubscriptionsListenRequestSchema:()=>cl,SubscriptionsListenResultMetaSchema:()=>cd,SubscriptionsListenResultSchema:()=>cm,TaskAugmentedRequestParamsSchema:()=>rh,TaskCreationParamsSchema:()=>lw,TaskMetadataSchema:()=>rp,TaskSchema:()=>lR,TaskStatusNotificationParamsSchema:()=>lE,TaskStatusNotificationSchema:()=>lk,TaskStatusSchema:()=>l$,TextContentSchema:()=>cS,TextResourceContentsSchema:()=>r0,TitledMultiSelectEnumSchemaSchema:()=>lo,TitledSingleSelectEnumSchemaSchema:()=>c7,ToolAnnotationsSchema:()=>cC,ToolChoiceSchema:()=>cW,ToolExecutionSchema:()=>cI,ToolListChangedNotificationSchema:()=>cD,ToolResultContentSchema:()=>cX,ToolSchema:()=>cN,ToolUseContentSchema:()=>cR,UnsubscribeRequestParamsSchema:()=>ct,UnsubscribeRequestSchema:()=>cs,UntitledMultiSelectEnumSchemaSchema:()=>la,UntitledSingleSelectEnumSchemaSchema:()=>c8});let p8=e=>r_.safeParse(e).success,p7=e=>rS.safeParse(e).success,ue=e=>rw.safeParse(e).success,ut=e=>r$.safeParse(e).success,ua=e=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&"input_required"===e.resultType,uo="x-mcp-header",un=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,ui=new Set(["string","integer","boolean","number"]);function us(e){let t=[],a=new Map,o=(e,n,i)=>{if(null===e||"object"!=typeof e)return;if(uo in e){if(!i||0===n.length)return`${ul(n)}: x-mcp-header is only permitted on properties statically reachable via a chain of 'properties' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let o=e[uo];if("string"!=typeof o||0===o.length)return`${ul(n)}: x-mcp-header MUST be a non-empty string`;if(!un.test(o))return`${ul(n)}: x-mcp-header '${o}' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let s="string"==typeof e.type?e.type:void 0;if(void 0===s||!ui.has(s))return`${ul(n)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${s??"<none>"}`;let r=o.toLowerCase(),c=a.get(r);if(void 0!==c)return`x-mcp-header '${o}' is not case-insensitively unique (also declared as '${c}')`;a.set(r,o),t.push({path:n,headerName:o,type:s})}let s=e.properties;if(null!==s&&"object"==typeof s)for(let[e,t]of Object.entries(s)){let a=o(t,[...n,e],i);if(void 0!==a)return a}for(let t of ur){let a=e[t];if(void 0!==a)for(let e of Array.isArray(a)?a:null!==a&&"object"==typeof a&&uc.has(t)?Object.values(a):[a]){let a=o(e,[...n,`<${t}>`],!1);if(void 0!==a)return a}}},n=o(e,[],!0);return void 0===n?{valid:!0,declarations:t}:{valid:!1,reason:n}}let ur=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],uc=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function ul(e){return 0===e.length?"<root>":e.join(".")}let up=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,uu=/^-?\d+(\.\d+)?$/;function ud(e){if(!(e.startsWith("=?base64?")&&e.endsWith("?=")))return e;let t=e.slice(9,e.length-2);if(up.test(t))try{let e=atob(t),a=new Uint8Array(e.length);for(let t=0;t<e.length;t++)a[t]=e.codePointAt(t);return new TextDecoder("utf-8",{fatal:!0}).decode(a)}catch{return}}function um(e,t,a){return{kind:"reject",rung:"param-header-validation",cell:e,httpStatus:400,code:uh,message:`Bad Request: the request headers and body disagree: ${a}`,data:{mismatch:{header:t,body:a}},settled:!0}}let uh=-32020;pT.InvalidRequest,pT.UnsupportedProtocolVersion,pT.InvalidParams,pT.MethodNotFound,pT.InvalidParams,pT.MissingRequiredClientCapability;let uf={[pT.ParseError]:400,[pT.InvalidRequest]:400,[pT.MethodNotFound]:404,[pT.UnsupportedProtocolVersion]:400,[pT.MissingRequiredClientCapability]:400,[uh]:400};function uv(e,t,a,o,n){return{kind:"reject",rung:e,cell:t,httpStatus:a,code:o.code,message:o.message,...void 0!==o.data&&{data:o.data},settled:n}}function ug(e,t,a,o="era-classification"){return uv(o,e,400,new pO(uh,`Bad Request: the request headers and body disagree: ${a}`,{mismatch:{header:t,body:a}}),!0)}let ub={"tools/call":"name","prompts/get":"name","resources/read":"uri"};function uy(e){let t=0;for(;t<e.length;){let a=e.codePointAt(t);if(9!==a&&32!==a)break;t+=1}let a=e.length;for(;a>t;){let t=e.codePointAt(a-1);if(9!==t&&32!==t)break;a-=1}return 0===t&&a===e.length?e:e.slice(t,a)}function ux(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function u_(e){return void 0===e?{era:"modern"}:{era:e>=pt?"modern":"legacy",revision:e}}function uS(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function uw(e){if(null==e)return!1;let t=typeof e;return("object"===t||"function"===t)&&"~standard"in e&&"function"==typeof e["~standard"]?.validate}let u$=!1,uR="draft-2020-12";function uj(e,t="input"){let a,o=e["~standard"];if(o.jsonSchema)a=o.jsonSchema[t]({target:uR});else if("zod"===o.vendor){if(!("_zod"in e))throw Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");u$||(u$=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),a=iN(e,{target:uR,io:t})}else throw Error(`Schema library "${o.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if("output"===t)return void 0!==a.type||!function e(t){if("properties"in t||"patternProperties"in t||"additionalProperties"in t||"required"in t)return!0;for(let a of["oneOf","anyOf","allOf"]){let o=t[a];if(Array.isArray(o)&&o.length>0)return o.every(t=>null!==t&&"object"==typeof t&&("object"===t.type||e(t)))}return!1}(a)?a:{type:"object",...a};if(void 0!==a.type&&"object"!==a.type)throw Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(a.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...a}}async function uE(e,t){let a=await e["~standard"].validate(t);return a.issues&&a.issues.length>0?{success:!1,error:a.issues.map(e=>e.path?.length?`${e.path.map(e=>String("object"==typeof e?e.key:e)).join(".")}: ${e.message}`:e.message).join(", ")}:{success:!0,data:a.value}}let uk=/\\\.\\d\{(\d+)\}/;function uP(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let uT=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function uO(e){return uT.has(e)||e.startsWith("x-")}let uC=new Set(["$schema",...Object.keys(lr.shape.requestedSchema.shape)]),uI={string:uS([c5,c8,c7,le]),number:uS([c6]),integer:uS([c6]),boolean:uS([c9]),array:uS([la,lo])},uN=new Set(c5.shape.format.unwrap().options);Object.assign(function(e){let t=void 0!==e.inputRequests&&Object.keys(e.inputRequests).length>0,a="string"==typeof e.requestState;if(!t&&!a)throw TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...void 0!==e.inputRequests&&{inputRequests:e.inputRequests},...void 0!==e.requestState&&{requestState:e.requestState}}},{elicit(e){try{return{method:"elicitation/create",params:function(e){var t;if(!uw(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let a=e.requestedSchema["~standard"].vendor,o=function(e,t){let a={},o=[];for(let[n,i]of Object.entries(e))"properties"===n&&uP(i)?a[n]=Object.fromEntries(Object.entries(i).map(([e,a])=>[e,function(e,t,a,o){if(!uP(e))return e;let n="string"==typeof e.type&&Object.hasOwn(uI,e.type)?uI[e.type]:void 0;if(void 0===n)return e;let i={};for(let[r,c]of Object.entries(e))if(n.has(r)||uO(r))i[r]=c;else if("pattern"===r&&"string"===e.type&&"string"==typeof e.format)if(uN.has(e.format)){var s;"string"==typeof c&&(s=e.format,"zod"!==a||(function(e,t){let a;switch(e){case"email":a=[nY(i5,void 0)];break;case"uri":a=[n0(i7,void 0)];break;case"date":a=[iM()];break;case"date-time":let o,n;o=uk.exec(t),n=[void 0,-1,0],o&&n.push(Number(o[1])),a=[!1,!0].flatMap(e=>[!1,!0].flatMap(t=>n.map(a=>iA({local:e,offset:t,precision:a}))))}return new Set(a.map(e=>{let t;return t=iN(e,{target:uR,io:"input"}),"string"==typeof t.pattern?t.pattern:void 0}).filter(e=>void 0!==e))})(s,c).has(c))||o.push(`${t}.${r}`)}else i[r]=c;else o.push(`${t}.${r}`);return i}(a,`properties.${e}`,t,o)])):uC.has(n)?a[n]=i:uO(n)||o.push(n);if(o.length>0)throw new pO(pT.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${o.join(", ")}`);return a}(function(e){try{return uj(e,"input")}catch(t){let e=t instanceof Error?t.message:String(t);throw new pO(pT.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${e}`)}}(e.requestedSchema),a),n=(t=lr.shape.requestedSchema,iB(t,o));if(!n.success)throw new pO(pT.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${function(e,t){if(!uP(e.properties))return t;let a=Object.entries(e.properties).filter(([,e])=>!iB(ls,e).success).map(([e])=>`properties.${e}`);return a.length>0?a.join(", "):t}(o,n.error.message)}`);let i=function e(t,a,o=""){return Array.isArray(t)&&Array.isArray(a)?t.flatMap((t,n)=>e(t,a[n],`${o}[${n}]`)):uP(t)&&uP(a)?Object.entries(t).flatMap(([t,n])=>{let i=o?`${o}.${t}`:t;return Object.prototype.hasOwnProperty.call(a,t)?e(n,a[t],i):uO(t)?[]:[i]}):[]}(o,n.data);if(i.length>0)throw new pO(pT.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(", ")}`);let s=(n.data.required??[]).filter(e=>!Object.prototype.hasOwnProperty.call(n.data.properties,e));if(s.length>0)throw new pO(pT.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${s.join(", ")}`);return{...e,mode:"form",requestedSchema:n.data}}(e)}}catch(e){throw e instanceof pO?TypeError(e.message,{cause:e}):e}},elicitUrl:e=>({method:"elicitation/create",params:{...e,mode:"url"}}),createMessage:e=>({method:"sampling/createMessage",params:e}),listRoots:()=>({method:"roots/list"})});let uq={},uA={};function uz(e,t){let a=e.slice(0,-6);uq[a]=t,uA[a]=e=>t.safeParse(e).success}for(let e of["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"])uz(e,p6[e]);for(let[e,t]of Object.entries({IdJagTokenExchangeResponseSchema:lK,OAuthClientInformationFullSchema:l0,OAuthClientInformationSchema:lQ,OAuthClientMetadataSchema:lY,OAuthClientRegistrationErrorSchema:l1,OAuthErrorResponseSchema:lW,OAuthMetadataSchema:lB,OAuthProtectedResourceMetadataSchema:lV,OAuthTokenRevocationRequestSchema:l2,OAuthTokensSchema:lZ,OpenIdProviderDiscoveryMetadataSchema:lG,OpenIdProviderMetadataSchema:lJ}))uz(e,t);Object.freeze(uq),Object.freeze(uA);let uM=[s7,re,ra,rn],uL=["inputResponses","requestState"];function uU(e,t){let a=e.params;if(!uB(a))return{message:e,lifted:{}};let o=a._meta,n=uB(o)?uM.filter(e=>e in o):[],i="request"===t?uL.filter(e=>e in a):[];if(0===n.length&&0===i.length)return{message:e,lifted:{}};let s={},r={...a};if(n.length>0&&uB(o)){let e={},t={...o};for(let a of n)e[a]=o[a],delete t[a];s.envelope=e,Object.keys(t).length>0?r._meta=t:delete r._meta}for(let e of i)"inputResponses"===e&&(s.inputResponses=r[e]),"requestState"===e&&(s.requestState=r[e]),delete r[e];return{message:{...e,params:r},lifted:s}}function uD(e,t){let a=e.validateResult(t,void 0);if(a.ok||"not-in-era"!==a.reason)return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(a){let o=e.validateResult(t,a);return o.ok?{value:o.value}:{issues:[{message:"invalid"===o.reason?o.message:`not-in-era: ${t}`}]}}}}}let uH=(P=void 0,()=>P);function uF(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:()=>t}}}var uV=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{i=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??s8,this.setNotificationHandler("notifications/cancelled",e=>{this._oncancel(e)}),this.setNotificationHandler("notifications/progress",e=>{this._onprogress(e)}),this.setRequestHandler("ping",e=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(void 0===t)return e;let a=e.params??{};return{...e,params:{...a,_meta:{...t,...a._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new l6(l5.UnsupportedResultType,`Unsupported result type '${e.kind}' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,a,o,n=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,t),startTime:Date.now(),timeout:t,maxTotalTimeout:a,resetTimeoutOnProgress:n,onTimeout:o})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let a=Date.now()-t.startTime;if(t.maxTotalTimeout&&a>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new l6(l5.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:a});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let a=this.transport?.onerror;this._transport.onerror=e=>{a?.(e),this._onerror(e)};let o=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{o?.(e,t),ue(e)||ut(e)?this._onresponse(e):p8(e)?this._onrequest(e,t):p7(e)?this._onnotification(e,t):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;for(let e of(this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._timeoutInfo.values()))clearTimeout(e.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let a=new l6(l5.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let t of e.values())t(a);for(let e of t.values())e.abort(a)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:a}=uU(e,"notification"),o=this._negotiatedWireCodec();if(t?.classification===void 0&&"drop"===this._shouldDropInbound(e))return;if(t?.classification!==void 0){let e=pY(t.classification);if(e!==o.era)return void this._onerror(Error(`Era mismatch on inbound notification '${a.method}': classified as ${e} but this instance serves ${o.era}`))}if(p0(a.method)&&!o.hasNotificationMethod(a.method))return;let n=this._notificationHandlers.get(a.method),i=this.fallbackNotificationHandler;(void 0!==n||void 0!==i)&&Promise.resolve().then(()=>void 0===n?i(a):n(a,o)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){var a;let{message:o,lifted:n}=uU(e,"request"),i=this._negotiatedWireCodec();if(t?.classification===void 0&&"drop"===this._shouldDropInbound(e))return void this._onerror(Error(`Dropped inbound request '${e.method}': not servable on this connection's protocol era`));let s=this._transport,r=(e,t,a)=>{let n={jsonrpc:"2.0",id:o.id,error:{code:e,message:t,...void 0!==a&&{data:a}}};s?.send(n).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)))};if(t?.classification!==void 0){let e=pY(t.classification);if(e!==i.era){this._onerror(Error(`Era mismatch on inbound request '${o.method}': classified as ${e} but this instance serves ${i.era}`));let a=t.classification.revision??e;r(pT.UnsupportedProtocolVersion,`Unsupported protocol version: ${a}`,{supported:this._supportedProtocolVersions,requested:a});return}}if(pQ(o.method)&&!i.hasRequestMethod(o.method))return void r(pT.MethodNotFound,"Method not found");let c=this._requestHandlers.get(o.method)??this.fallbackRequestHandler;if(void 0===c)return void r(pT.MethodNotFound,"Method not found");let l=i.checkInboundEnvelope(n);if(void 0!==l)return void r(pT.InvalidParams,l);let p=(e,t)=>this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,{...t,relatedRequestId:o.id}),u=(e,t,a)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(e.method),e,t,{...a,relatedRequestId:o.id}),d=new AbortController;this._requestHandlerAbortControllers.set(o.id,d);let m=void 0===n.inputResponses?void 0:function(e){let t={},a=[];if(!uJ(e))return{accepted:t,droppedKeys:a};for(let[o,n]of Object.entries(e)){if(!uJ(n)||"method"in n||"result"in n){a.push(o);continue}t[o]=n}return{accepted:t,droppedKeys:a}}(n.inputResponses),h={sessionId:s?.sessionId,mcpReq:{id:o.id,method:o.method,_meta:o.params?._meta,...void 0!==n.envelope&&{envelope:n.envelope},...void 0!==m&&{inputResponses:m.accepted},...void 0!==m&&m.droppedKeys.length>0&&{droppedInputResponseKeys:m.droppedKeys},requestState:void 0===n.requestState?uH:(a=n.requestState,()=>a),signal:d.signal,send:(e,t,a)=>{let o=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(o,e.method),uw(t))return u(e,t,a);let n=uD(o,e.method);if(void 0===n)throw TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(e,n,t)},notify:p},http:t?.authInfo?{authInfo:t.authInfo}:void 0},f=this.buildContext(h,t);Promise.resolve().then(()=>c(o,f)).then(async e=>{let t;if(d.signal.aborted)return;try{t=i.encodeResult(o.method,e,this._outboundServerInfo())}catch(e){this._onerror(Error(`Failed to encode result for ${o.method}: ${e}`)),r(pT.InternalError,"Internal error");return}let a={result:t,jsonrpc:"2.0",id:o.id};await s?.send(a)},async e=>{if(d.signal.aborted)return;let t=Number.isSafeInteger(e.code)?e.code:pT.InternalError,a={jsonrpc:"2.0",id:o.id,error:{code:i.encodeErrorCode(t),message:e.message??"Internal error",...void 0!==e.data&&{data:e.data}}};await s?.send(a)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(o.id)===d&&this._requestHandlerAbortControllers.delete(o.id)})}_onprogress(e){let{progressToken:t,...a}=e.params,o=Number(t),n=this._progressHandlers.get(o);if(!n)return void this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));let i=this._responseHandlers.get(o),s=this._timeoutInfo.get(o);if(s&&i&&s.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(e){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),i(e);return}n(a)}_onresponse(e){let t=Number(e.id),a=this._responseHandlers.get(t);void 0===a?this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`)):(this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),a(ue(e)?e:pO.fromError(e.error.code,e.error.message,e.error.data)))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,a){let o=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(o,e.method),uw(t))return this._requestWithSchemaViaCodec(o,e,t,a);let n=uD(o,e.method);if(void 0===n)throw TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(o,e,n,t)}_negotiatedWireCodec(){return pX(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(void 0===this._negotiatedProtocolVersion){let t=function(e){switch(e){case"initialize":case"notifications/initialized":return pX(void 0);case"server/discover":return pX(pW);default:return}}(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(pQ(t)&&!e.hasRequestMethod(t))throw new l6(l5.MethodNotSupportedByProtocolVersion,`Method '${t}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,a){let o=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(o,e.method),this._requestWithSchemaViaCodec(o,e,t,a)}_requestWithSchemaViaCodec(e,t,a,o){let n,i,{relatedRequestId:s,resumptionToken:r,onresumptiontoken:c,headers:l}=o??{},p=Date.now();return new Promise((u,d)=>{let m=e=>{d(e)};if(!this._transport)return void m(Error("Not connected"));if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(e){m(e);return}if(o?.signal?.aborted){let e=o.signal.reason;throw e instanceof l6?e:new l6(l5.RequestTimeout,String(e))}let h=e.era===pW&&!0===this._transport.hasPerRequestStream?new AbortController:void 0,f=this._requestMessageId++;i=f;let v={...t,jsonrpc:"2.0",id:f};o?.onprogress&&(this._progressHandlers.set(f,o.onprogress),v.params={...t.params,_meta:{...t.params?._meta,progressToken:f}});let g=this._envelopeOutbound(v),b=!1,y=e=>{b||(this._progressHandlers.delete(f),void 0===h?this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:f,reason:String(e)}}),{relatedRequestId:s,resumptionToken:r,onresumptiontoken:c}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))):h.abort(),d(e instanceof l6?e:new l6(l5.RequestTimeout,String(e))))};this._responseHandlers.set(f,n=>{let i;if(!o?.signal?.aborted){if(b=!0,n instanceof Error)return d(n);try{i=e.decodeResult(t.method,n.result)}catch(e){return d(e instanceof Error?e:Error(String(e)))}if("invalid"===i.kind)return d(i.error);if("input_required"===i.kind){var s;return o?.allowInputRequired===!0?u({resultType:"input_required",inputRequests:(s=i).inputRequests,...void 0!==s.requestState&&{requestState:s.requestState}}):u(this._resolveNonCompleteResult(i,{codec:e,request:t,resultSchema:a,options:o,flowStartedAt:p,retry:(o,n)=>this._requestWithSchemaViaCodec(e,void 0===o?{method:t.method}:{method:t.method,params:o},a,n)}))}uE(a,i.result).then(e=>{e.success?u(e.data):d(new l6(l5.InvalidResult,`Invalid result for ${t.method}: ${e.error}`))},d)}}),n=()=>y(o?.signal?.reason),o?.signal?.addEventListener("abort",n,{once:!0});let x=o?.timeout??6e4;this._setupTimeout(f,x,o?.maxTotalTimeout,()=>y(new l6(l5.RequestTimeout,"Request timed out",{timeout:x})),o?.resetTimeoutOnProgress??!1),this._transport.send(g,{relatedRequestId:s,resumptionToken:r,onresumptiontoken:c,headers:l,requestSignal:h?.signal}).catch(e=>{this._progressHandlers.delete(f),d(e)})}).finally(()=>{n&&o?.signal?.removeEventListener("abort",n),void 0!==i&&(this._responseHandlers.delete(i),this._cleanupTimeout(i))})}async notification(e,t){return this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,a){if(!this._transport)throw new l6(l5.NotConnected,"Not connected");if(p0(t.method)&&!e.hasNotificationMethod(t.method))throw new l6(l5.MethodNotSupportedByProtocolVersion,`Notification '${t.method}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let o=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!a?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(o,a).catch(e=>this._onerror(e))});return}await this._transport.send(o,a)}setRequestHandler(e,t,a){let o;if(this.assertRequestHandlerCapability(e),"function"==typeof t){if(!pQ(e))throw TypeError(`'${e}' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);o=(a,o)=>{let n=this._negotiatedWireCodec(),i=n.validateRequest(e,a);if(i.ok||"not-in-era"!==i.reason||(i=n.validateInputRequest(e,a)),!i.ok){if("not-in-era"===i.reason)throw new pO(pT.InternalError,`No wire schema for ${e} in the resolved era`);throw Error(i.message)}return Promise.resolve(t(i.value,o))}}else if(a)o=async(o,n)=>{let i=await uE(t.params,{...o.params});if(!i.success)throw new pO(pT.InvalidParams,`Invalid params for ${e}: ${i.error}`);return a(i.data,n)};else throw TypeError("setRequestHandler: handler is required");this._requestHandlers.set(e,this._wrapHandler(e,o))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,a){if("function"==typeof t){if(!p0(e))throw TypeError(`'${e}' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(a,o)=>{let n=o.validateNotification(e,a);if(!n.ok){if("not-in-era"===n.reason)throw new pO(pT.InternalError,`No wire schema for ${e} in the resolved era`);throw Error(n.message)}return Promise.resolve(t(n.value))});return}if(!a)throw TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async o=>{let n=await uE(t.params,{...o.params});if(!n.success)throw new pO(pT.InvalidParams,`Invalid params for notification ${e}: ${n.error}`);await a(n.data,o)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function uB(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function uJ(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var uG=a_(ax(e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,a=/\\([\u000b\u0020-\u00ff])/g,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function n(e){this.parameters=Object.create(null),this.type=e}e.parse=function(e){if(!e)throw TypeError("argument string is required");var i,s,r,c="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof c)throw TypeError("argument string is required to be a string");var l=c.indexOf(";"),p=-1!==l?c.slice(0,l).trim():c.trim();if(!o.test(p))throw TypeError("invalid media type");var u=new n(p.toLowerCase());if(-1!==l){for(t.lastIndex=l;s=t.exec(c);){if(s.index!==l)throw TypeError("invalid parameter format");l+=s[0].length,i=s[1].toLowerCase(),34===(r=s[2]).charCodeAt(0)&&-1!==(r=r.slice(1,-1)).indexOf("\\")&&(r=r.replace(a,"$1")),u.parameters[i]=r}if(l!==c.length)throw TypeError("invalid parameter format")}return u}})(),1);function uZ(e){if(e)try{return uG.parse(e).type}catch{let t=(e.split(";",1)[0]??"").trim().toLowerCase();if(""===t||e.slice(t.length).includes(","))return;return t}}function uK(e){return"application/json"===e||"application/json"===uZ(e)}let uW=/^[A-Za-z0-9._-]{1,128}$/;function uX(e){let t=function(e){let t=[];if(0===e.length)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!uW.test(e)){let a=[...e].filter(e=>!/[A-Za-z0-9._-]/.test(e)).filter((e,t,a)=>a.indexOf(e)===t);return t.push(`Tool name contains invalid characters: ${a.map(e=>`"${e}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}(e);var a=t.warnings;if(a.length>0){for(let t of(console.warn(`Tool name validation warning for "${e}":`),a))console.warn(` - ${t}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}return t.isValid}function uY(e){if(void 0!==e){if(function(e){if("object"!=typeof e||null===e||uw(e))return!1;let t=Object.getPrototypeOf(e);return(t===Object.prototype||null===t)&&Object.values(e).every(e=>"object"==typeof e&&null!==e&&"_zod"in e)}(e))return sT(e);if("object"==typeof e&&null!==e&&!uw(e)&&Object.values(e).some(e=>"object"==typeof e&&null!==e&&!("_zod"in e)&&"_def"in e&&"string"==typeof e._def?.typeName))throw TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!uw(e))throw TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}var uQ=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var a=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=a;var o=class extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return""===e||'""'===e}get str(){var e;return null!=(e=this._str)?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!=(e=this._names)?e:this._names=this._items.reduce((e,t)=>(t instanceof a&&(e[t.str]=(e[t.str]||0)+1),e),{})}};function n(e,...t){let a=[e[0]],i=0;for(;i<t.length;)r(a,t[i]),a.push(e[++i]);return new o(a)}e._Code=o,e.nil=new o(""),e._=n;let i=new o("+");function s(e,...t){let n=[c(e[0])],l=0;for(;l<t.length;)n.push(i),r(n,t[l]),n.push(i,c(e[++l]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){var o,n;let i=(o=e[t-1],'""'===(n=e[t+1])?o:'""'===o?n:"string"==typeof o?n instanceof a||'"'!==o[o.length-1]?void 0:"string"!=typeof n?`${o.slice(0,-1)}${n}"`:'"'===n[0]?o.slice(0,-1)+n.slice(1):void 0:"string"!=typeof n||'"'!==n[0]||o instanceof a?void 0:`"${o}${n.slice(1)}`);if(void 0!==i){e.splice(t-1,3,i);continue}e[t++]="+"}t++}}(n),new o(n)}function r(e,t){var n;t instanceof o?e.push(...t._items):t instanceof a?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:c(Array.isArray(n)?n.join(","):n))}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=s,e.addCodeArg=r,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},e.stringify=function(e){return new o(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new o(`.${t}`):n`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new o(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new o(e.toString())}}),u0=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=uQ();var a,o,n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}};(a=o||(e.UsedValueState=o={}))[a.Started=0]="Started",a[a.Completed=1]="Completed",e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,a;if((null==(a=null==(t=this._parent)?void 0:t._prefixes)?void 0:a.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var s=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:a,itemIndex:o}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(a)}[${o}]`}};e.ValueScopeName=s;let r=(0,t._)`\n`;var c=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?r:t.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var a;if(void 0===t.ref)throw Error("CodeGen: ref must be passed in value");let o=this.toName(e),{prefix:n}=o,i=null!=(a=t.key)?a:t.ref,s=this._values[n];if(s){let e=s.get(i);if(e)return e}else s=this._values[n]=new Map;s.set(i,o);let r=this._scope[n]||(this._scope[n]=[]),c=r.length;return r[c]=t.ref,o.setValue(t,{property:n,itemIndex:c}),o}getValue(e,t){let a=this._values[e];if(a)return a.get(t)}scopeRefs(e,a=this._values){return this._reduceValues(a,a=>{if(void 0===a.scopePath)throw Error(`CodeGen: name "${a}" has no value`);return(0,t._)`${e}${a.scopePath}`})}scopeCode(e=this._values,t,a){return this._reduceValues(e,e=>{if(void 0===e.value)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,a)}_reduceValues(a,i,s={},r){let c=t.nil;for(let l in a){let p=a[l];if(!p)continue;let u=s[l]=s[l]||new Map;p.forEach(a=>{if(u.has(a))return;u.set(a,o.Started);let s=i(a);if(s){let o=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${o} ${a} = ${s};${this.opts._n}`}else if(s=null==r?void 0:r(a))c=(0,t._)`${c}${s}${this.opts._n}`;else throw new n(a);u.set(a,o.Completed)})}return c}};e.ValueScope=c}),u1=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=uQ(),a=u0();var o=uQ();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var n=u0();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};var i=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},s=class extends i{constructor(e,t,a){super(),this.varKind=e,this.name=t,this.rhs=a}render({es5:e,_n:t}){let o=e?a.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${o} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},r=class extends i{constructor(e,t,a){super(),this.lhs=e,this.rhs=t,this.sideEffects=a}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,a){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=T(this.rhs,e,a),this}get names(){return P(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends r{constructor(e,t,a,o){super(e,a,o),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},p=class extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},u=class extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},d=class extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=T(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},m=class extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,a)=>t+a.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let a=e[t].optimizeNodes();Array.isArray(a)?e.splice(t,1,...a):a?e[t]=a:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:a}=this,o=a.length;for(;o--;){let n=a[o];n.optimizeNames(e,t)||(function(e,t){for(let a in t)e[a]=(e[a]||0)-(t[a]||0)}(e,n.names),a.splice(o,1))}return a.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>k(e,t.names),{})}},h=class extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},f=class extends m{},v=class extends h{};v.kind="else";var g=class e extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(!0===t)return this.nodes;let a=this.else;if(a){let e=a.optimizeNodes();a=this.else=Array.isArray(e)?new v(e):e}return a?!1===t?a instanceof e?a:a.nodes:this.nodes.length?this:new e(O(t),a instanceof e?[a]:a.nodes):!1!==t&&this.nodes.length?this:void 0}optimizeNames(e,t){var a;if(this.else=null==(a=this.else)?void 0:a.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=T(this.condition,e,t),this}get names(){let e=super.names;return P(e,this.condition),this.else&&k(e,this.else.names),e}};g.kind="if";var b=class extends h{};b.kind="for";var y=class extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=T(this.iteration,e,t),this}get names(){return k(super.names,this.iteration.names)}},x=class extends b{constructor(e,t,a,o){super(),this.varKind=e,this.name=t,this.from=a,this.to=o}render(e){let t=e.es5?a.varKinds.var:this.varKind,{name:o,from:n,to:i}=this;return`for(${t} ${o}=${n}; ${o}<${i}; ${o}++)`+super.render(e)}get names(){return P(P(super.names,this.from),this.to)}},_=class extends b{constructor(e,t,a,o){super(),this.loop=e,this.varKind=t,this.name=a,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=T(this.iterable,e,t),this}get names(){return k(super.names,this.iterable.names)}},S=class extends h{constructor(e,t,a){super(),this.name=e,this.args=t,this.async=a}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};S.kind="func";var w=class extends m{render(e){return"return "+super.render(e)}};w.kind="return";var $=class extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null==(e=this.catch)||e.optimizeNodes(),null==(t=this.finally)||t.optimizeNodes(),this}optimizeNames(e,t){var a,o;return super.optimizeNames(e,t),null==(a=this.catch)||a.optimizeNames(e,t),null==(o=this.finally)||o.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&k(e,this.catch.names),this.finally&&k(e,this.finally.names),e}},R=class extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};R.kind="catch";var j=class extends h{render(e){return"finally"+super.render(e)}};j.kind="finally";var E=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new a.Scope({parent:e}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let a=this._extScope.value(e,t);return(this._values[a.prefix]||(this._values[a.prefix]=new Set)).add(a),a}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,a,o){let n=this._scope.toName(t);return void 0!==a&&o&&(this._constants[n.str]=a),this._leafNode(new s(e,n,a)),n}const(e,t,o){return this._def(a.varKinds.const,e,t,o)}let(e,t,o){return this._def(a.varKinds.let,e,t,o)}var(e,t,o){return this._def(a.varKinds.var,e,t,o)}assign(e,t,a){return this._leafNode(new r(e,t,a))}add(t,a){return this._leafNode(new c(t,e.operators.ADD,a))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new d(e)),this}object(...e){let a=["{"];for(let[o,n]of e)a.length>1&&a.push(","),a.push(o),(o!==n||this.opts.es5)&&(a.push(":"),(0,t.addCodeArg)(a,n));return a.push("}"),new t._Code(a)}if(e,t,a){if(this._blockNode(new g(e)),t&&a)this.code(t).else().code(a).endIf();else if(t)this.code(t).endIf();else if(a)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,o,n,i=this.opts.es5?a.varKinds.var:a.varKinds.let){let s=this._scope.toName(e);return this._for(new x(i,s,t,o),()=>n(s))}forOf(e,o,n,i=a.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let e=o instanceof t.Name?o:this.var("_arr",o);return this.forRange("_i",0,(0,t._)`${e}.length`,a=>{this.var(s,(0,t._)`${e}[${a}]`),n(s)})}return this._for(new _("of",i,s,o),()=>n(s))}forIn(e,o,n,i=this.opts.es5?a.varKinds.var:a.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${o})`,n);let s=this._scope.toName(e);return this._for(new _("in",i,s,o),()=>n(s))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new p(e))}return(e){let t=new w;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(e,t,a){if(!t&&!a)throw Error('CodeGen: "try" without "catch" and "finally"');let o=new $;if(this._blockNode(o),this.code(e),t){let e=this.name("e");this._currNode=o.catch=new R(e),t(e)}return a&&(this._currNode=o.finally=new j,this.code(a)),this._endBlockNode(R,j)}throw(e){return this._leafNode(new u(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(void 0===t)throw Error("CodeGen: not in self-balancing block");let a=this._nodes.length-t;if(a<0||void 0!==e&&a!==e)throw Error(`CodeGen: wrong number of nodes: ${a} vs ${e} expected`);return this._nodes.length=t,this}func(e,a=t.nil,o,n){return this._blockNode(new S(e,a,o)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let a=this._currNode;if(a instanceof e||t&&a instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof g))throw Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function k(e,t){for(let a in t)e[a]=(e[a]||0)+(t[a]||0);return e}function P(e,a){return a instanceof t._CodeOrName?k(e,a.names):e}function T(e,a,o){var n;if(e instanceof t.Name)return i(e);if(!((n=e)instanceof t._Code&&n._items.some(e=>e instanceof t.Name&&1===a[e.str]&&void 0!==o[e.str])))return e;return new t._Code(e._items.reduce((e,a)=>(a instanceof t.Name&&(a=i(a)),a instanceof t._Code?e.push(...a._items):e.push(a),e),[]));function i(e){let t=o[e.str];return void 0===t||1!==a[e.str]?e:(delete a[e.str],t)}}function O(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,t._)`!${q(e)}`}e.CodeGen=E,e.not=O;let C=N(e.operators.AND);e.and=function(...e){return e.reduce(C)};let I=N(e.operators.OR);function N(e){return(a,o)=>a===t.nil?o:o===t.nil?a:(0,t._)`${q(a)} ${e} ${q(o)}`}function q(e){return e instanceof t.Name?e:(0,t._)`(${e})`}e.or=function(...e){return e.reduce(I)}}),u2=ax(e=>{var t,a;Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let o=u1(),n=uQ();function i(e,t=e.schema){let{opts:a,self:o}=e;if(!a.strictSchema||"boolean"==typeof t)return;let n=o.RULES.keywords;for(let a in t)n[a]||m(e,`unknown keyword: "${a}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(let a in e)if(t[a])return!0;return!1}function r(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:a,resultToName:n}){return(i,s,r,c)=>{let l=void 0===r?s:r instanceof o.Name?(s instanceof o.Name?e(i,s,r):t(i,s,r),r):s instanceof o.Name?(t(i,r,s),s):a(s,r);return c!==o.Name||l instanceof o.Name?l:n(i,l)}}function p(e,t){if(!0===t)return e.var("props",!0);let a=e.var("props",(0,o._)`{}`);return void 0!==t&&u(e,a,t),a}function u(e,t,a){Object.keys(a).forEach(a=>e.assign((0,o._)`${t}${(0,o.getProperty)(a)}`,!0))}e.toHash=function(e){let t={};for(let a of e)t[a]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(i(e,t),!s(t,e.self.RULES.all))},e.checkUnknownRules=i,e.schemaHasRules=s,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(let a in e)if("$ref"!==a&&t.all[a])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},a,n,i){if(!i){if("number"==typeof a||"boolean"==typeof a)return a;if("string"==typeof a)return(0,o._)`${a}`}return(0,o._)`${e}${t}${(0,o.getProperty)(n)}`},e.unescapeFragment=function(e){return c(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(r(e))},e.escapeJsonPointer=r,e.unescapeJsonPointer=c,e.eachItem=function(e,t){if(Array.isArray(e))for(let a of e)t(a);else t(e)},e.mergeEvaluated={props:l({mergeNames:(e,t,a)=>e.if((0,o._)`${a} !== true && ${t} !== undefined`,()=>{e.if((0,o._)`${t} === true`,()=>e.assign(a,!0),()=>e.assign(a,(0,o._)`${a} || {}`).code((0,o._)`Object.assign(${a}, ${t})`))}),mergeToName:(e,t,a)=>e.if((0,o._)`${a} !== true`,()=>{!0===t?e.assign(a,!0):(e.assign(a,(0,o._)`${a} || {}`),u(e,a,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:p}),items:l({mergeNames:(e,t,a)=>e.if((0,o._)`${a} !== true && ${t} !== undefined`,()=>e.assign(a,(0,o._)`${t} === true ? true : ${a} > ${t} ? ${a} : ${t}`)),mergeToName:(e,t,a)=>e.if((0,o._)`${a} !== true`,()=>e.assign(a,!0===t||(0,o._)`${a} > ${t} ? ${a} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=p,e.setEvaluated=u;let d={};function m(e,t,a=e.opts.strictSchema){if(a){if(t=`strict mode: ${t}`,!0===a)throw Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new n._Code(t.code))})},(a=t||(e.Type=t={}))[a.Num=0]="Num",a[a.Str=1]="Str",e.getErrorPath=function(e,a,n){if(e instanceof o.Name){let i=a===t.Num;return n?i?(0,o._)`"[" + ${e} + "]"`:(0,o._)`"['" + ${e} + "']"`:i?(0,o._)`"/" + ${e}`:(0,o._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,o.getProperty)(e).toString():"/"+r(e)},e.checkStrictMode=m}),u4=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1();e.default={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")}}),u3=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let t=u1(),a=u2(),o=u4();function n(e,a){let n=e.const("err",a);e.if((0,t._)`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,(0,t._)`[${n}]`),(0,t._)`${o.default.vErrors}.push(${n})`),e.code((0,t._)`${o.default.errors}++`)}function i(e,a){let{gen:o,validateName:n,schemaEnv:i}=e;i.$async?o.throw((0,t._)`new ${e.ValidationError}(${a})`):(o.assign((0,t._)`${n}.errors`,a),o.return(!1))}e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:a})=>a?(0,t.str)`"${e}" keyword must be ${a} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`},e.reportError=function(a,o=e.keywordError,s,c){let{it:l}=a,{gen:p,compositeRule:u,allErrors:d}=l,m=r(a,o,s);(null!=c?c:u||d)?n(p,m):i(l,(0,t._)`[${m}]`)},e.reportExtraError=function(t,a=e.keywordError,s){let{it:c}=t,{gen:l,compositeRule:p,allErrors:u}=c;n(l,r(t,a,s)),p||u||i(c,o.default.vErrors)},e.resetErrorsCount=function(e,a){e.assign(o.default.errors,a),e.if((0,t._)`${o.default.vErrors} !== null`,()=>e.if(a,()=>e.assign((0,t._)`${o.default.vErrors}.length`,a),()=>e.assign(o.default.vErrors,null)))},e.extendErrors=function({gen:e,keyword:a,schemaValue:n,data:i,errsCount:s,it:r}){if(void 0===s)throw Error("ajv implementation error");let c=e.name("err");e.forRange("i",s,o.default.errors,s=>{e.const(c,(0,t._)`${o.default.vErrors}[${s}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(o.default.instancePath,r.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${r.errSchemaPath}/${a}`),r.opts.verbose&&(e.assign((0,t._)`${c}.schema`,n),e.assign((0,t._)`${c}.data`,i))})};let s={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function r(e,n,i){let{createErrors:r}=e.it;return!1===r?(0,t._)`{}`:function(e,n,i={}){let{gen:r,it:c}=e,l=[function({errorPath:e},{instancePath:n}){let i=n?(0,t.str)`${e}${(0,a.getErrorPath)(n,a.Type.Str)}`:e;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,i)]}(c,i),function({keyword:e,it:{errSchemaPath:o}},{schemaPath:n,parentSchema:i}){let r=i?o:(0,t.str)`${o}/${e}`;return n&&(r=(0,t.str)`${r}${(0,a.getErrorPath)(n,a.Type.Str)}`),[s.schemaPath,r]}(e,i)];return function(e,{params:a,message:n},i){let{keyword:r,data:c,schemaValue:l,it:p}=e,{opts:u,propertyName:d,topSchemaRef:m,schemaPath:h}=p;i.push([s.keyword,r],[s.params,"function"==typeof a?a(e):a||(0,t._)`{}`]),u.messages&&i.push([s.message,"function"==typeof n?n(e):n]),u.verbose&&i.push([s.schema,l],[s.parentSchema,(0,t._)`${m}${h}`],[o.default.data,c]),d&&i.push([s.propertyName,d])}(e,n,l),r.object(...l)}(e,n,i)}}),u9=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let t=u3(),a=u1(),o=u4(),n={message:"boolean schema is false"};function i(e,a){let{gen:o,data:i}=e;(0,t.reportError)({gen:o,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e},n,void 0,a)}e.topBoolOrEmptySchema=function(e){let{gen:t,schema:n,validateName:s}=e;!1===n?i(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign((0,a._)`${s}.errors`,null),t.return(!0))},e.boolOrEmptySchema=function(e,t){let{gen:a,schema:o}=e;!1===o?(a.var(t,!1),i(e)):a.var(t,!0)}}),u5=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set(["string","number","integer","boolean","null","object","array"]);e.isJSONType=function(e){return"string"==typeof e&&t.has(e)},e.getRules=function(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}}),u6=ax(e=>{function t(e,t){return t.rules.some(t=>a(e,t))}function a(e,t){var a;return void 0!==e[t.keyword]||(null==(a=t.definition.implements)?void 0:a.some(t=>void 0!==e[t]))}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0,e.schemaHasRulesForType=function({schema:e,self:a},o){let n=a.RULES.types[o];return n&&!0!==n&&t(e,n)},e.shouldUseGroup=t,e.shouldUseRule=a}),u8=ax(e=>{var t,a;Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let o=u5(),n=u6(),i=u3(),s=u1(),r=u2();function c(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(o.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}(a=t||(e.DataType=t={}))[a.Correct=0]="Correct",a[a.Wrong=1]="Wrong",e.getSchemaTypes=function(e){let t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=c,e.coerceAndCheckDataType=function(e,a){var o,i;let{gen:r,data:c,opts:p}=e,d=(o=a,(i=p.coerceTypes)?o.filter(e=>l.has(e)||"array"===i&&"array"===e):[]),h=a.length>0&&!(0===d.length&&1===a.length&&(0,n.schemaHasRulesForType)(e,a[0]));if(h){let o=u(a,c,p.strictNumbers,t.Wrong);r.if(o,()=>{d.length?function(e,t,a){let{gen:o,data:n,opts:i}=e,r=o.let("dataType",(0,s._)`typeof ${n}`),c=o.let("coerced",(0,s._)`undefined`);for(let e of("array"===i.coerceTypes&&o.if((0,s._)`${r} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>o.assign(n,(0,s._)`${n}[0]`).assign(r,(0,s._)`typeof ${n}`).if(u(t,n,i.strictNumbers),()=>o.assign(c,n))),o.if((0,s._)`${c} !== undefined`),a))(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&function(e){switch(e){case"string":o.elseIf((0,s._)`${r} == "number" || ${r} == "boolean"`).assign(c,(0,s._)`"" + ${n}`).elseIf((0,s._)`${n} === null`).assign(c,(0,s._)`""`);return;case"number":o.elseIf((0,s._)`${r} == "boolean" || ${n} === null
|
|
177
|
+
|| (${r} == "string" && ${n} && ${n} == +${n})`).assign(c,(0,s._)`+${n}`);return;case"integer":o.elseIf((0,s._)`${r} === "boolean" || ${n} === null
|
|
178
|
+
|| (${r} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,(0,s._)`+${n}`);return;case"boolean":o.elseIf((0,s._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,!1).elseIf((0,s._)`${n} === "true" || ${n} === 1`).assign(c,!0);return;case"null":o.elseIf((0,s._)`${n} === "" || ${n} === 0 || ${n} === false`),o.assign(c,null);return;case"array":o.elseIf((0,s._)`${r} === "string" || ${r} === "number"
|
|
179
|
+
|| ${r} === "boolean" || ${n} === null`).assign(c,(0,s._)`[${n}]`)}}(e);o.else(),m(e),o.endIf(),o.if((0,s._)`${c} !== undefined`,()=>{o.assign(n,c),function({gen:e,parentData:t,parentDataProperty:a},o){e.if((0,s._)`${t} !== undefined`,()=>e.assign((0,s._)`${t}[${a}]`,o))}(e,c)})}(e,a,d):m(e)})}return h};let l=new Set(["string","number","integer","boolean","null"]);function p(e,a,o,n=t.Correct){let i,r=n===t.Correct?s.operators.EQ:s.operators.NEQ;switch(e){case"null":return(0,s._)`${a} ${r} null`;case"array":i=(0,s._)`Array.isArray(${a})`;break;case"object":i=(0,s._)`${a} && typeof ${a} == "object" && !Array.isArray(${a})`;break;case"integer":i=c((0,s._)`!(${a} % 1) && !isNaN(${a})`);break;case"number":i=c();break;default:return(0,s._)`typeof ${a} ${r} ${e}`}return n===t.Correct?i:(0,s.not)(i);function c(e=s.nil){return(0,s.and)((0,s._)`typeof ${a} == "number"`,e,o?(0,s._)`isFinite(${a})`:s.nil)}}function u(e,t,a,o){let n;if(1===e.length)return p(e[0],t,a,o);let i=(0,r.toHash)(e);if(i.array&&i.object){let e=(0,s._)`typeof ${t} != "object"`;n=i.null?e:(0,s._)`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else n=s.nil;for(let e in i.number&&delete i.integer,i)n=(0,s.and)(n,p(e,t,a,o));return n}e.checkDataType=p,e.checkDataTypes=u;let d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?(0,s._)`{type: ${e}}`:(0,s._)`{type: ${t}}`};function m(e){let t=function(e){let{gen:t,data:a,schema:o}=e,n=(0,r.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:a,schema:o.type,schemaCode:n,schemaValue:n,parentSchema:o,params:{},it:e}}(e);(0,i.reportError)(t,d)}e.reportTypeError=m}),u7=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;let t=u1(),a=u2();function o(e,o,n){let{gen:i,compositeRule:s,data:r,opts:c}=e;if(void 0===n)return;let l=(0,t._)`${r}${(0,t.getProperty)(o)}`;if(s)return void(0,a.checkStrictMode)(e,`default is ignored for: ${l}`);let p=(0,t._)`${l} === undefined`;"empty"===c.useDefaults&&(p=(0,t._)`${p} || ${l} === null || ${l} === ""`),i.if(p,(0,t._)`${l} = ${(0,t.stringify)(n)}`)}e.assignDefaults=function(e,t){let{properties:a,items:n}=e.schema;if("object"===t&&a)for(let t in a)o(e,t,a[t].default);else"array"===t&&Array.isArray(n)&&n.forEach((t,a)=>o(e,a,t.default))}}),de=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;let t=u1(),a=u2(),o=u4(),n=u2();function i(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}function s(e,a,o){return(0,t._)`${i(e)}.call(${a}, ${o})`}function r(e,a,o,n){let i=(0,t._)`${a}${(0,t.getProperty)(o)} === undefined`;return n?(0,t.or)(i,(0,t.not)(s(e,a,o))):i}function c(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}e.checkReportMissingProp=function(e,a){let{gen:o,data:n,it:i}=e;o.if(r(o,n,a,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,t._)`${a}`},!0),e.error()})},e.checkMissingProp=function({gen:e,data:a,it:{opts:o}},n,i){return(0,t.or)(...n.map(n=>(0,t.and)(r(e,a,n,o.ownProperties),(0,t._)`${i} = ${n}`)))},e.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},e.hasPropFunc=i,e.isOwnProperty=s,e.propertyInData=function(e,a,o,n){let i=(0,t._)`${a}${(0,t.getProperty)(o)} !== undefined`;return n?(0,t._)`${i} && ${s(e,a,o)}`:i},e.noPropertyInData=r,e.allSchemaProperties=c,e.schemaProperties=function(e,t){return c(t).filter(o=>!(0,a.alwaysValidSchema)(e,t[o]))},e.callValidateCode=function({schemaCode:e,data:a,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:r},it:c},l,p,u){let d=u?(0,t._)`${e}, ${a}, ${i}${s}`:a,m=[[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,r)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&m.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);let h=(0,t._)`${d}, ${n.object(...m)}`;return p!==t.nil?(0,t._)`${l}.call(${p}, ${h})`:(0,t._)`${l}(${h})`};let l=(0,t._)`new RegExp`;e.usePattern=function({gen:e,it:{opts:a}},o){let i=a.unicodeRegExp?"u":"",{regExp:s}=a.code,r=s(o,i);return e.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,t._)`${"new RegExp"===s.code?l:(0,n.useFunc)(e,s)}(${o}, ${i})`})},e.validateArray=function(e){let{gen:o,data:n,keyword:i,it:s}=e,r=o.name("valid");if(s.allErrors){let e=o.let("valid",!0);return c(()=>o.assign(e,!1)),e}return o.var(r,!0),c(()=>o.break()),r;function c(s){let c=o.const("len",(0,t._)`${n}.length`);o.forRange("i",0,c,n=>{e.subschema({keyword:i,dataProp:n,dataPropType:a.Type.Num},r),o.if((0,t.not)(r),s)})}},e.validateUnion=function(e){let{gen:o,schema:n,keyword:i,it:s}=e;if(!Array.isArray(n))throw Error("ajv implementation error");if(n.some(e=>(0,a.alwaysValidSchema)(s,e))&&!s.opts.unevaluated)return;let r=o.let("valid",!1),c=o.name("_valid");o.block(()=>n.forEach((a,n)=>{let s=e.subschema({keyword:i,schemaProp:n,compositeRule:!0},c);o.assign(r,(0,t._)`${r} || ${c}`),e.mergeValidEvaluated(s,c)||o.if((0,t.not)(r))})),e.result(r,()=>e.reset(),()=>e.error(!0))}}),dt=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;let t=u1(),a=u4(),o=de(),n=u3();function i(e){let{gen:a,data:o,it:n}=e;a.if(n.parentData,()=>a.assign(o,(0,t._)`${n.parentData}[${n.parentDataProperty}]`))}function s(e,a,o){if(void 0===o)throw Error(`keyword "${a}" failed to compile`);return e.scopeValue("keyword","function"==typeof o?{ref:o}:{ref:o,code:(0,t.stringify)(o)})}e.macroKeywordCode=function(e,a){let{gen:o,keyword:n,schema:i,parentSchema:r,it:c}=e,l=a.macro.call(c.self,i,r,c),p=s(o,n,l);!1!==c.opts.validateSchema&&c.self.validateSchema(l,!0);let u=o.name("valid");e.subschema({schema:l,schemaPath:t.nil,errSchemaPath:`${c.errSchemaPath}/${n}`,topSchemaRef:p,compositeRule:!0},u),e.pass(u,()=>e.error(!0))},e.funcKeywordCode=function(e,r){var c;let{gen:l,keyword:p,schema:u,parentSchema:d,$data:m,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}(h,r);let f=s(l,p,!m&&r.compile?r.compile.call(h.self,u,d,h):r.validate),v=l.let("valid");function g(n=r.async?(0,t._)`await `:t.nil){let i=h.opts.passContext?a.default.this:a.default.self,s=!("compile"in r&&!m||!1===r.schema);l.assign(v,(0,t._)`${n}${(0,o.callValidateCode)(e,f,i,s)}`,r.modifying)}function b(e){var a;l.if((0,t.not)(null!=(a=r.valid)?a:v),e)}e.block$data(v,function(){if(!1===r.errors)g(),r.modifying&&i(e),b(()=>e.error());else{let o,s,c=r.async?(o=l.let("ruleErrs",null),l.try(()=>g((0,t._)`await `),e=>l.assign(v,!1).if((0,t._)`${e} instanceof ${h.ValidationError}`,()=>l.assign(o,(0,t._)`${e}.errors`),()=>l.throw(e))),o):(s=(0,t._)`${f}.errors`,l.assign(s,null),g(t.nil),s);r.modifying&&i(e),b(()=>(function(e,o){let{gen:i}=e;i.if((0,t._)`Array.isArray(${o})`,()=>{i.assign(a.default.vErrors,(0,t._)`${a.default.vErrors} === null ? ${o} : ${a.default.vErrors}.concat(${o})`).assign(a.default.errors,(0,t._)`${a.default.vErrors}.length`),(0,n.extendErrors)(e)},()=>e.error())})(e,c))}}),e.ok(null!=(c=r.valid)?c:v)},e.validSchemaType=function(e,t,a=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||a&&void 0===e)},e.validateKeywordUsage=function({schema:e,opts:t,self:a,errSchemaPath:o},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw Error("ajv implementation error");let s=n.dependencies;if(null==s?void 0:s.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[i])){let e=`keyword "${i}" value is invalid at path "${o}": `+a.errorsText(n.validateSchema.errors);if("log"===t.validateSchema)a.logger.error(e);else throw Error(e)}}}),da=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;let t=u1(),a=u2();e.getSubschema=function(e,{keyword:o,schemaProp:n,schema:i,schemaPath:s,errSchemaPath:r,topSchemaRef:c}){if(void 0!==o&&void 0!==i)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==o){let i=e.schema[o];return void 0===n?{schema:i,schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(o)}`,errSchemaPath:`${e.errSchemaPath}/${o}`}:{schema:i[n],schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(o)}${(0,t.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${o}/${(0,a.escapeFragment)(n)}`}}if(void 0!==i){if(void 0===s||void 0===r||void 0===c)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:s,topSchemaRef:c,errSchemaPath:r}}throw Error('either "keyword" or "schema" must be passed')},e.extendSubschemaData=function(e,o,{dataProp:n,dataPropType:i,data:s,dataTypes:r,propertyName:c}){if(void 0!==s&&void 0!==n)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:l}=o;if(void 0!==n){let{errorPath:s,dataPathArr:r,opts:c}=o;p(l.let("data",(0,t._)`${o.data}${(0,t.getProperty)(n)}`,!0)),e.errorPath=(0,t.str)`${s}${(0,a.getErrorPath)(n,i,c.jsPropertySyntax)}`,e.parentDataProperty=(0,t._)`${n}`,e.dataPathArr=[...r,e.parentDataProperty]}function p(t){e.data=t,e.dataLevel=o.dataLevel+1,e.dataTypes=[],o.definedProperties=new Set,e.parentData=o.data,e.dataNames=[...o.dataNames,t]}void 0!==s&&(p(s instanceof t.Name?s:l.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),r&&(e.dataTypes=r)},e.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:a,compositeRule:o,createErrors:n,allErrors:i}){void 0!==o&&(e.compositeRule=o),void 0!==n&&(e.createErrors=n),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=a}}),dn=ax((e,t)=>{t.exports=function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=a.length)return!1;for(n=o;0!=n--;)if(!e(t[n],a[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(a,i[n]))return!1;for(n=o;0!=n--;){var o,n,i,s=i[n];if(!e(t[s],a[s]))return!1}return!0}return t!=t&&a!=a}}),di=ax((e,t)=>{var a=t.exports=function(e,t,o){"function"==typeof t&&(o=t,t={});var n="function"==typeof(o=t.cb||o)?o:o.pre||function(){};!function e(t,o,n,i,s,r,c,l,p,u){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var d in o(i,s,r,c,l,p,u),i){var m=i[d];if(Array.isArray(m)){if(d in a.arrayKeywords)for(var h=0;h<m.length;h++)e(t,o,n,m[h],s+"/"+d+"/"+h,r,s,d,i,h)}else if(d in a.propsKeywords){if(m&&"object"==typeof m)for(var f in m)e(t,o,n,m[f],s+"/"+d+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),r,s,d,i,f)}else(d in a.keywords||t.allKeys&&!(d in a.skipKeywords))&&e(t,o,n,m,s+"/"+d,r,s,d,i)}n(i,s,r,c,l,p,u)}}(t,n,o.post||function(){},e,"",e)};a.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},a.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},a.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},a.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}}),ds=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;let t=u2(),a=dn(),o=di(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);e.inlineRef=function(e,a=!0){return"boolean"==typeof e||(!0===a?!function e(t){for(let a in t){if(i.has(a))return!0;let o=t[a];if(Array.isArray(o)&&o.some(e)||"object"==typeof o&&e(o))return!0}return!1}(e):!!a&&function e(a){let o=0;for(let i in a)if("$ref"===i||(o++,!n.has(i)&&("object"==typeof a[i]&&(0,t.eachItem)(a[i],t=>o+=e(t)),o===1/0)))return 1/0;return o}(e)<=a)};let i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e,t="",a){return!1!==a&&(t=l(t)),r(e,e.parse(t))}function r(e,t){return e.serialize(t).split("#")[0]+"#"}e.getFullPath=s,e._getFullPath=r;let c=/#\/?$/;function l(e){return e?e.replace(c,""):""}e.normalizeId=l,e.resolveUrl=function(e,t,a){return a=l(a),e.resolve(t,a)};let p=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};let{schemaId:n,uriResolver:i}=this.opts,r=l(e[n]||t),c={"":r},u=s(i,r,!1),d={},m=new Set;return o(e,{allKeys:!0},(e,t,a,o)=>{if(void 0===o)return;let i=u+t,s=c[o];function r(t){let a=this.opts.uriResolver.resolve;if(t=l(s?a(s,t):t),m.has(t))throw f(t);m.add(t);let o=this.refs[t];return"string"==typeof o&&(o=this.refs[o]),"object"==typeof o?h(e,o.schema,t):t!==l(i)&&("#"===t[0]?(h(e,d[t],t),d[t]=e):this.refs[t]=i),t}function v(e){if("string"==typeof e){if(!p.test(e))throw Error(`invalid anchor "${e}"`);r.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=r.call(this,e[n])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),c[t]=s}),d;function h(e,t,o){if(void 0!==t&&!a(e,t))throw f(o)}function f(e){return Error(`reference "${e}" resolves to more than one schema`)}}}),dr=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;let t=u9(),a=u8(),o=u6(),n=u8(),i=u7(),s=dt(),r=da(),c=u1(),l=u4(),p=ds(),u=u2(),d=u3();function m({gen:e,validateName:t,schema:a,schemaEnv:o,opts:n},i){var s;n.code.es5?e.func(t,(0,c._)`${l.default.data}, ${l.default.valCxt}`,o.$async,()=>{var t,o;e.code((0,c._)`"use strict"; ${h(a,n)}`),t=e,o=n,t.if(l.default.valCxt,()=>{t.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),t.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),t.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),t.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),o.dynamicRef&&t.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{t.var(l.default.instancePath,(0,c._)`""`),t.var(l.default.parentData,(0,c._)`undefined`),t.var(l.default.parentDataProperty,(0,c._)`undefined`),t.var(l.default.rootData,l.default.data),o.dynamicRef&&t.var(l.default.dynamicAnchors,(0,c._)`{}`)}),e.code(i)}):e.func(t,(0,c._)`${l.default.data}, ${(s=n,(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${s.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`)}`,o.$async,()=>e.code(h(a,n)).code(i))}function h(e,t){let a="object"==typeof e&&e[t.schemaId];return a&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${a} */`:c.nil}function f({schema:e,self:t}){if("boolean"==typeof e)return!e;for(let a in e)if(t.RULES.all[a])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,u.checkUnknownRules)(e),function(e){let{schema:t,errSchemaPath:a,opts:o,self:n}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${a}"`)}(e)}function b(e,t){if(e.opts.jtd)return x(e,[],!1,t);let o=(0,a.getSchemaTypes)(e.schema);x(e,o,!(0,a.coerceAndCheckDataType)(e,o),t)}function y({gen:e,schemaEnv:t,schema:a,errSchemaPath:o,opts:n}){let i=a.$comment;if(!0===n.$comment)e.code((0,c._)`${l.default.self}.logger.log(${i})`);else if("function"==typeof n.$comment){let a=(0,c.str)`${o}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code((0,c._)`${l.default.self}.opts.$comment(${i}, ${a}, ${n}.schema)`)}}function x(e,t,a,i){var s,r,p,d;let{gen:m,schema:h,data:f,allErrors:v,opts:g,self:b}=e,{RULES:y}=b;if(h.$ref&&(g.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(h,y)))return void m.block(()=>R(e,"$ref",y.all.$ref.definition));function x(s){(0,o.shouldUseGroup)(h,s)&&(s.type?(m.if((0,n.checkDataType)(s.type,f,g.strictNumbers)),_(e,s),1===t.length&&t[0]===s.type&&a&&(m.else(),(0,n.reportTypeError)(e)),m.endIf()):_(e,s),v||m.if((0,c._)`${l.default.errors} === ${i||0}`))}g.jtd||(s=e,r=t,!s.schemaEnv.meta&&s.opts.strictTypes&&(function(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{S(e.dataTypes,t)||w(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){let a=[];for(let o of e.dataTypes)S(t,o)?a.push(o):t.includes("integer")&&"number"===o&&a.push("integer");e.dataTypes=a}(e,t)}}(s,r),s.opts.allowUnionTypes||(p=s,(d=r).length>1&&!(2===d.length&&d.includes("null"))&&w(p,"use allowUnionTypes to allow union type keyword")),function(e,t){let a=e.self.RULES.all;for(let n in a){let i=a[n];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){let{type:a}=i.definition;a.length&&!a.some(e=>{var a,o;return a=t,o=e,a.includes(o)||"number"===o&&a.includes("integer")})&&w(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}(s,s.dataTypes))),m.block(()=>{for(let e of y.rules)x(e);x(y.post)})}function _(e,t){let{gen:a,schema:n,opts:{useDefaults:s}}=e;s&&(0,i.assignDefaults)(e,t.type),a.block(()=>{for(let a of t.rules)(0,o.shouldUseRule)(n,a)&&R(e,a.keyword,a.definition,t.type)})}function S(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function w(e,t){let a=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${a}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}e.validateFunctionCode=function(e){v(e)&&(g(e),f(e))?function(e){let{schema:t,opts:a,gen:o}=e;m(e,()=>{a.$comment&&t.$comment&&y(e),function(e){let{schema:t,opts:a}=e;void 0!==t.default&&a.useDefaults&&a.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),o.let(l.default.vErrors,null),o.let(l.default.errors,0),a.unevaluated&&function(e){let{gen:t,validateName:a}=e;e.evaluated=t.const("evaluated",(0,c._)`${a}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}(e),b(e),function(e){let{gen:t,schemaEnv:a,validateName:o,ValidationError:n,opts:i}=e;a.$async?t.if((0,c._)`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw((0,c._)`new ${n}(${l.default.vErrors})`)):(t.assign((0,c._)`${o}.errors`,l.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:a,items:o}){a instanceof c.Name&&e.assign((0,c._)`${t}.props`,a),o instanceof c.Name&&e.assign((0,c._)`${t}.items`,o)}(e),t.return((0,c._)`${l.default.errors} === 0`))}(e)})}(e):m(e,()=>(0,t.topBoolOrEmptySchema)(e))};var $=class{constructor(e,t,a){if((0,s.validateKeywordUsage)(e,t,a),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=a,this.data=e.data,this.schema=e.schema[a],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,a,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",k(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${a} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,a){this.failResult((0,c.not)(e),t,a)}failResult(e,t,a){this.gen.if(e),a?a():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,a){if(t){this.setParams(t),this._error(e,a),this.setParams({});return}this._error(e,a)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,a=c.nil){this.gen.block(()=>{this.check$data(e,a),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:a,schemaCode:o,schemaType:n,def:i}=this;a.if((0,c.or)((0,c._)`${o} === undefined`,t)),e!==c.nil&&a.assign(e,!0),(n.length||i.validateSchema)&&(a.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&a.assign(e,!1)),a.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:a,def:o,it:i}=this;return(0,c.or)(function(){if(a.length){if(!(t instanceof c.Name))throw Error("ajv implementation error");let e=Array.isArray(a)?a:[a];return(0,c._)`${(0,n.checkDataTypes)(e,t,i.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}(),function(){if(o.validateSchema){let a=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,c._)`!${a}(${t})`}return c.nil}())}subschema(e,a){let o=(0,r.getSubschema)(this.it,e);(0,r.extendSubschemaData)(o,this.it,e),(0,r.extendSubschemaMode)(o,e);let n={...this.it,...o,items:void 0,props:void 0};return!function(e,a){if(v(e)&&(g(e),f(e)))return function(e,t){var a;let o,{schema:n,gen:i,opts:s}=e;s.$comment&&n.$comment&&y(e),(o=(a=e).schema[a.opts.schemaId])&&(a.baseId=(0,p.resolveUrl)(a.opts.uriResolver,a.baseId,o)),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}(e);let r=i.const("_errs",l.default.errors);b(e,r),i.var(t,(0,c._)`${r} === ${l.default.errors}`)}(e,a);(0,t.boolOrEmptySchema)(e,a)}(n,a),n}mergeEvaluated(e,t){let{it:a,gen:o}=this;a.opts.unevaluated&&(!0!==a.props&&void 0!==e.props&&(a.props=u.mergeEvaluated.props(o,e.props,a.props,t)),!0!==a.items&&void 0!==e.items&&(a.items=u.mergeEvaluated.items(o,e.items,a.items,t)))}mergeValidEvaluated(e,t){let{it:a,gen:o}=this;if(a.opts.unevaluated&&(!0!==a.props||!0!==a.items))return o.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}};function R(e,t,a,o){let n=new $(e,a,t);"code"in a?a.code(n,o):n.$data&&a.validate?(0,s.funcKeywordCode)(n,a):"macro"in a?(0,s.macroKeywordCode)(n,a):(a.compile||a.validate)&&(0,s.funcKeywordCode)(n,a)}e.KeywordCxt=$;let j=/^\/(?:[^~]|~0|~1)*$/,E=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function k(e,{dataLevel:t,dataNames:a,dataPathArr:o}){let n,i;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw Error(`Invalid JSON-pointer: ${e}`);n=e,i=l.default.rootData}else{let s=E.exec(e);if(!s)throw Error(`Invalid JSON-pointer: ${e}`);let c=+s[1];if("#"===(n=s[2])){if(c>=t)throw Error(r("property/index",c));return o[t-c]}if(c>t)throw Error(r("data",c));if(i=a[t-c],!n)return i}let s=i;for(let e of n.split("/"))e&&(i=(0,c._)`${i}${(0,c.getProperty)((0,u.unescapeJsonPointer)(e))}`,s=(0,c._)`${s} && ${i}`);return s;function r(e,a){return`Cannot access ${e} ${a} levels up, current level is ${t}`}}e.getData=k}),dc=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}}),dl=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ds();e.default=class extends Error{constructor(e,a,o,n){super(n||`can't resolve reference ${o} from id ${a}`),this.missingRef=(0,t.resolveUrl)(e,a,o),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(e,this.missingRef))}}}),dp=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;let t=u1(),a=dc(),o=u4(),n=ds(),i=u2(),s=dr();var r=class{constructor(e){var t;let a;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(a=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!=(t=e.baseId)?t:(0,n.normalizeId)(null==a?void 0:a[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==a?void 0:a.$async,this.refs={}}};function c(e){let i,r,c=p.call(this,e);if(c)return c;let l=(0,n.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:u,lines:d}=this.opts.code,{ownProperties:m}=this.opts,h=new t.CodeGen(this.scope,{es5:u,lines:d,ownProperties:m});e.$async&&(i=h.scopeValue("Error",{ref:a.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let f=h.scopeName("validate");e.validateName=f;let v={gen:h,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:h.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,t.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:i,schema:e.schema,schemaEnv:e,rootId:l,baseId:e.baseId||l,schemaPath:t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};try{this._compilations.add(e),(0,s.validateFunctionCode)(v),h.optimize(this.opts.code.optimize);let a=h.toString();r=`${h.scopeRefs(o.default.scope)}return ${a}`,this.opts.code.process&&(r=this.opts.code.process(r,e));let n=Function(`${o.default.self}`,`${o.default.scope}`,r)(this,this.scope.get());if(this.scope.value(f,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:f,validateCode:a,scopeValues:h._values}),this.opts.unevaluated){let{props:e,items:a}=v;n.evaluated={props:e instanceof t.Name?void 0:e,items:a instanceof t.Name?void 0:a,dynamicProps:e instanceof t.Name,dynamicItems:a instanceof t.Name},n.source&&(n.source.evaluated=(0,t.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,r&&this.logger.error("Error compiling schema, function code:",r),t}finally{this._compilations.delete(e)}}function l(e){return(0,n.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function p(e){for(let o of this._compilations){var t,a;if(t=o,a=e,t.schema===a.schema&&t.root===a.root&&t.baseId===a.baseId)return o}}function u(e,t){let a;for(;"string"==typeof(a=this.refs[t]);)t=a;return a||this.schemas[t]||d.call(this,e,t)}function d(e,t){let a=this.opts.uriResolver.parse(t),o=(0,n._getFullPath)(this.opts.uriResolver,a),i=(0,n.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===i)return h.call(this,a,e);let s=(0,n.normalizeId)(o),l=this.refs[s]||this.schemas[s];if("string"==typeof l){let t=d.call(this,e,l);if("object"!=typeof(null==t?void 0:t.schema))return;return h.call(this,a,t)}if("object"==typeof(null==l?void 0:l.schema)){if(l.validate||c.call(this,l),s===(0,n.normalizeId)(t)){let{schema:t}=l,{schemaId:a}=this.opts,o=t[a];return o&&(i=(0,n.resolveUrl)(this.opts.uriResolver,i,o)),new r({schema:t,schemaId:a,root:e,baseId:i})}return h.call(this,a,l)}}e.SchemaEnv=r,e.compileSchema=c,e.resolveRef=function(e,t,a){var o;a=(0,n.resolveUrl)(this.opts.uriResolver,t,a);let i=e.refs[a];if(i)return i;let s=u.call(this,e,a);if(void 0===s){let n=null==(o=e.localRefs)?void 0:o[a],{schemaId:i}=this.opts;n&&(s=new r({schema:n,schemaId:i,root:e,baseId:t}))}if(void 0!==s)return e.refs[a]=l.call(this,s)},e.getCompilingSchema=p,e.resolveSchema=d;let m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,{baseId:t,schema:a,root:o}){var s;let c;if((null==(s=e.fragment)?void 0:s[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if("boolean"==typeof a)return;let e=a[(0,i.unescapeFragment)(o)];if(void 0===e)return;let s="object"==typeof(a=e)&&a[this.opts.schemaId];!m.has(o)&&s&&(t=(0,n.resolveUrl)(this.opts.uriResolver,t,s))}if("boolean"!=typeof a&&a.$ref&&!(0,i.schemaHasRulesButRef)(a,this.RULES)){let e=(0,n.resolveUrl)(this.opts.uriResolver,t,a.$ref);c=d.call(this,o,e)}let{schemaId:l}=this.opts;if((c=c||new r({schema:a,schemaId:l,root:o,baseId:t})).schema!==c.root.schema)return c}}),du=ax((e,t)=>{t.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}),dd=ax((e,t)=>{let a=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),o=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(e){let t="",a=0,o=0;for(o=0;o<e.length;o++)if(48!==(a=e[o].charCodeAt(0))){if(!(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102))return"";t+=e[o];break}for(o+=1;o<e.length;o++){if(!((a=e[o].charCodeAt(0))>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102))return"";t+=e[o]}return t}function i(e){return e.length=0,!0}function s(e,t,a){if(e.length){let o=n(e);if(""===o)return a.error=!0,!1;t.push(o),e.length=0}return!0}function r(e){if(2>function(e){let t=0;for(let a=0;a<e.length;a++)":"===e[a]&&t++;return t}(e))return{host:e,isIPV6:!1};let t=function(e){let t=0,a={error:!1,address:"",zone:""},o=[],r=[],c=!1,l=!1,p=s;for(let n=0;n<e.length;n++){let s=e[n];if("["!==s&&"]"!==s)if(":"===s){if(!0===c&&(l=!0),!p(r,o,a))break;if(++t>7){a.error=!0;break}n>0&&":"===e[n-1]&&(c=!0),o.push(":");continue}else if("%"===s){if(!p(r,o,a))break;p=i}else{r.push(s);continue}}return r.length&&(p===i?a.zone=r.join(""):l?o.push(r.join("")):o.push(n(r))),a.address=o.join(""),a}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,a=t.address;return t.zone&&(e+="%"+t.zone,a+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:a}}}t.exports={nonSimpleDomain:RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u),recomposeAuthority:function(e){let t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let a=unescape(e.host);if(!o(a)){let t=r(a);a=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(a)}return("number"==typeof e.port||"string"==typeof e.port)&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){let a=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=a(e.scheme)),void 0!==e.userinfo&&(e.userinfo=a(e.userinfo)),void 0!==e.host&&(e.host=a(e.host)),void 0!==e.path&&(e.path=a(e.path)),void 0!==e.query&&(e.query=a(e.query)),void 0!==e.fragment&&(e.fragment=a(e.fragment)),e},removeDotSegments:function(e){let t=e,a=[],o=-1,n=0;for(;n=t.length;){if(1===n)if("."===t)break;else if("/"===t){a.push("/");break}else{a.push(t);break}if(2===n){if("."===t[0]){if("."===t[1])break;else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){a.push("/");break}}else if(3===n&&"/.."===t){0!==a.length&&a.pop(),a.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}else if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==a.length&&a.pop();continue}}if(-1===(o=t.indexOf("/",1))){a.push(t);break}a.push(t.slice(0,o)),t=t.slice(o)}return a.join("")},isIPv4:o,isUUID:a,normalizeIPv6:r,stringArrayToHexStripped:n}}),dm=ax((e,t)=>{let{isUUID:a}=dd(),o=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function i(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&3===e.scheme.length&&("w"===e.scheme[0]||"W"===e.scheme[0])&&("s"===e.scheme[1]||"S"===e.scheme[1])&&("s"===e.scheme[2]||"S"===e.scheme[2])}function s(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function r(e){let t="https"===String(e.scheme).toLowerCase();return(e.port===(t?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}let c={scheme:"http",domainHost:!0,parse:s,serialize:r},l={scheme:"https",domainHost:c.domainHost,parse:s,serialize:r},p={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=i(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if((e.port===(i(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,a]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},u={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize},d={http:c,https:l,ws:p,wss:u,urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;let a=e.path.match(o);if(a){let o=t.scheme||e.scheme||"urn";e.nid=a[1].toLowerCase(),e.nss=a[2];let n=m(`${o}:${t.nid||e.nid}`);e.path=void 0,n&&(e=n.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw Error("URN without nid cannot be serialized");let a=t.scheme||e.scheme||"urn",o=e.nid.toLowerCase(),n=m(`${a}:${t.nid||o}`);n&&(e=n.serialize(e,t));let i=e,s=e.nss;return i.path=`${o||t.nid}:${s}`,t.skipEscape=!0,i},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&a(e.uuid)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e){return e.nss=(e.uuid||"").toLowerCase(),e},skipNormalize:!0}};function m(e){return e&&(d[e]||d[e.toLowerCase()])||void 0}Object.setPrototypeOf(d,null),t.exports={wsIsSecure:i,SCHEMES:d,isValidSchemeName:function(e){return -1!==n.indexOf(e)},getSchemeHandler:m}}),dh=ax((e,t)=>{let{normalizeIPv6:a,removeDotSegments:o,recomposeAuthority:n,normalizeComponentEncoding:i,isIPv4:s,nonSimpleDomain:r}=dd(),{SCHEMES:c,getSchemeHandler:l}=dm();function p(e,t,a,n){let i={};return n||(e=m(u(e,a),a),t=m(u(t,a),a)),!(a=a||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=o(t.path||""),i.query=t.query):(t.path?("/"===t.path[0]?i.path=o(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=o(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function u(e,t){let a={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),s=[],r=l(i.scheme||a.scheme);r&&r.serialize&&r.serialize(a,i),void 0!==a.path&&(i.skipEscape?a.path=unescape(a.path):(a.path=escape(a.path),void 0!==a.scheme&&(a.path=a.path.split("%3A").join(":")))),"suffix"!==i.reference&&a.scheme&&s.push(a.scheme,":");let c=n(a);if(void 0!==c&&("suffix"!==i.reference&&s.push("//"),s.push(c),a.path&&"/"!==a.path[0]&&s.push("/")),void 0!==a.path){let e=a.path;i.absolutePath||r&&r.absolutePath||(e=o(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),s.push(e)}return void 0!==a.query&&s.push("?",a.query),void 0!==a.fragment&&s.push("#",a.fragment),s.join("")}let d=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function m(e,t){let o=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1;"suffix"===o.reference&&(e=o.scheme?o.scheme+":"+e:"//"+e);let c=e.match(d);if(c){if(n.scheme=c[1],n.userinfo=c[3],n.host=c[4],n.port=parseInt(c[5],10),n.path=c[6]||"",n.query=c[7],n.fragment=c[8],isNaN(n.port)&&(n.port=c[5]),n.host)if(!1===s(n.host)){let e=a(n.host);n.host=e.host.toLowerCase(),i=e.isIPV6}else i=!0;void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||void 0!==n.query||n.path?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",o.reference&&"suffix"!==o.reference&&o.reference!==n.reference&&(n.error=n.error||"URI is not a "+o.reference+" reference.");let t=l(o.scheme||n.scheme);if(!o.unicodeSupport&&(!t||!t.unicodeSupport)&&n.host&&(o.domainHost||t&&t.domainHost)&&!1===i&&r(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII: "+e}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==n.scheme&&(n.scheme=unescape(n.scheme)),void 0!==n.host&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),t&&t.parse&&t.parse(n,o)}else n.error=n.error||"URI can not be parsed.";return n}let h={SCHEMES:c,normalize:function(e,t){return"string"==typeof e?e=u(m(e,t),t):"object"==typeof e&&(e=m(u(e,t),t)),e},resolve:function(e,t,a){let o=a?Object.assign({scheme:"null"},a):{scheme:"null"},n=p(m(e,o),m(t,o),o,!0);return o.skipEscape=!0,u(n,o)},resolveComponent:p,equal:function(e,t,a){return"string"==typeof e?e=u(i(m(e=unescape(e),a),!0),{...a,skipEscape:!0}):"object"==typeof e&&(e=u(i(e,!0),{...a,skipEscape:!0})),"string"==typeof t?t=u(i(m(t=unescape(t),a),!0),{...a,skipEscape:!0}):"object"==typeof t&&(t=u(i(t,!0),{...a,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:u,parse:m};t.exports=h,t.exports.default=h,t.exports.fastUri=h}),df=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dh();t.code='require("ajv/dist/runtime/uri").default',e.default=t}),dv=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=dr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var a=u1();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});let o=dc(),n=dl(),i=u5(),s=dp(),r=u1(),c=ds(),l=u8(),p=u2(),u=du(),d=df(),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";let h=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};var b=class{constructor(e={}){var t,a,o,n,s,c,l,p,u,h,b,x,j,E,k,P,T,O,C,I,N,q,A,z,M,L;let U,D,H,F,V;this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...(U=(t=e).strict,H=!0===(D=null==(a=t.code)?void 0:a.optimize)||void 0===D?1:D||0,F=null!=(n=null==(o=t.code)?void 0:o.regExp)?n:m,V=null!=(s=t.uriResolver)?s:d.default,{strictSchema:null==(l=null!=(c=t.strictSchema)?c:U)||l,strictNumbers:null==(u=null!=(p=t.strictNumbers)?p:U)||u,strictTypes:null!=(b=null!=(h=t.strictTypes)?h:U)?b:"log",strictTuples:null!=(j=null!=(x=t.strictTuples)?x:U)?j:"log",strictRequired:null!=(k=null!=(E=t.strictRequired)?E:U)&&k,code:t.code?{...t.code,optimize:H,regExp:F}:{optimize:H,regExp:F},loopRequired:null!=(P=t.loopRequired)?P:200,loopEnum:null!=(T=t.loopEnum)?T:200,meta:null==(O=t.meta)||O,messages:null==(C=t.messages)||C,inlineRefs:null==(I=t.inlineRefs)||I,schemaId:null!=(N=t.schemaId)?N:"$id",addUsedSchema:null==(q=t.addUsedSchema)||q,validateSchema:null==(A=t.validateSchema)||A,validateFormats:null==(z=t.validateFormats)||z,unicodeRegExp:null==(M=t.unicodeRegExp)||M,int32range:null==(L=t.int32range)||L,uriResolver:V})};let{es5:B,lines:J}=this.opts.code;this.scope=new r.ValueScope({scope:{},prefixes:f,es5:B,lines:J}),this.logger=function(e){if(!1===e)return R;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}(e.logger);let G=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),y.call(this,v,e,"NOT SUPPORTED"),y.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=$.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&w.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),_.call(this),e.validateFormats=G}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:a}=this.opts,o=u;"id"===a&&((o={...u}).id=o.$id,delete o.$id),t&&e&&this.addMetaSchema(o,o[a],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let a;if("string"==typeof e){if(!(a=this.getSchema(e)))throw Error(`no schema with key or ref "${e}"`)}else a=this.compile(e);let o=a(t);return"$async"in a||(this.errors=a.errors),o}compile(e,t){let a=this._addSchema(e,t);return a.validate||this._compileSchemaEnv(a)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:a}=this.opts;return o.call(this,e,t);async function o(e,t){await i.call(this,e.$schema);let a=this._addSchema(e,t);return a.validate||s.call(this,a)}async function i(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof n.default))throw t;return r.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function r({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){let a=await l.call(this,e);this.refs[e]||await i.call(this,a.$schema),this.refs[e]||this.addSchema(a,e,t)}async function l(e){let t=this._loading[e];if(t)return t;try{return await (this._loading[e]=a(e))}finally{delete this._loading[e]}}}addSchema(e,t,a,o=this.opts.validateSchema){let n;if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,a,o);return this}if("object"==typeof e){let{schemaId:t}=this.opts;if(void 0!==(n=e[t])&&"string"!=typeof n)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,a,t,o,!0),this}addMetaSchema(e,t,a=this.opts.validateSchema){return this.addSchema(e,t,!0,a),this}validateSchema(e,t){let a;if("boolean"==typeof e)return!0;if(void 0!==(a=e.$schema)&&"string"!=typeof a)throw Error("$schema must be a string");if(!(a=a||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(a,e);if(!o&&t){let e="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(e);else throw Error(e)}return o}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){let{schemaId:a}=this.opts,o=new s.SchemaEnv({schema:{},schemaId:a});if(!(t=s.resolveSchema.call(this,o,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,c.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let a;if("string"==typeof e)a=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=a);else if("object"==typeof e&&void 0===t){if(Array.isArray(a=(t=e).keyword)&&!a.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(E.call(this,a,t),!t)return(0,p.eachItem)(a,e=>k.call(this,e)),this;T.call(this,t);let o={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};return(0,p.eachItem)(a,0===o.type.length?e=>k.call(this,e,o):e=>o.type.forEach(t=>k.call(this,e,o,t))),this}getKeyword(e){let t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;for(let a of(delete t.keywords[e],delete t.all[e],t.rules)){let t=a.rules.findIndex(t=>t.keyword===e);t>=0&&a.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:a="data"}={}){return e&&0!==e.length?e.map(e=>`${a}${e.instancePath} ${e.message}`).reduce((e,a)=>e+t+a):"No errors"}$dataMetaSchema(e,t){let a=this.RULES.all;for(let o of(e=JSON.parse(JSON.stringify(e)),t)){let t=o.split("/").slice(1),n=e;for(let e of t)n=n[e];for(let e in a){let t=a[e];if("object"!=typeof t)continue;let{$data:o}=t.definition,i=n[e];o&&i&&(n[e]=C(i))}}return e}_removeAllSchemas(e,t){for(let a in e){let o=e[a];(!t||t.test(a))&&("string"==typeof o?delete e[a]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[a]))}}_addSchema(e,t,a,o=this.opts.validateSchema,n=this.opts.addUsedSchema){let i,{schemaId:r}=this.opts;if("object"==typeof e)i=e[r];else if(this.opts.jtd)throw Error("schema must be object");else if("boolean"!=typeof e)throw Error("schema must be object or boolean");let l=this._cache.get(e);if(void 0!==l)return l;a=(0,c.normalizeId)(i||a);let p=c.getSchemaRefs.call(this,e,a);return l=new s.SchemaEnv({schema:e,schemaId:r,meta:t,baseId:a,localRefs:p}),this._cache.set(l.schema,l),n&&!a.startsWith("#")&&(a&&this._checkUnique(a),this.refs[a]=l),o&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}};function y(e,t,a,o="error"){for(let n in e)n in t&&this.logger[o](`${a}: option ${n}. ${e[n]}`)}function x(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function _(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function S(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function w(e){if(Array.isArray(e))return void this.addVocabulary(e);for(let t in this.logger.warn("keywords option as map is deprecated, pass array"),e){let a=e[t];a.keyword||(a.keyword=t),this.addKeyword(a)}}function $(){let e={...this.opts};for(let t of h)delete e[t];return e}b.ValidationError=o.default,b.MissingRefError=n.default,e.default=b;let R={log(){},warn(){},error(){}},j=/^[a-z_$][a-z0-9_$:-]*$/i;function E(e,t){let{RULES:a}=this;if((0,p.eachItem)(e,e=>{if(a.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!j.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t||"validate"in t))throw Error('$data keyword must have "code" or "validate" function')}function k(e,t,a){var o;let n=null==t?void 0:t.post;if(a&&n)throw Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=n?i.post:i.rules.find(({type:e})=>e===a);if(s||(s={type:a,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let r={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};t.before?P.call(this,s,r,t.before):s.rules.push(r),i.all[e]=r,null==(o=t.implements)||o.forEach(e=>this.addKeyword(e))}function P(e,t,a){let o=e.rules.findIndex(e=>e.keyword===a);o>=0?e.rules.splice(o,0,t):(e.rules.push(t),this.logger.warn(`rule ${a} is not defined`))}function T(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}let O={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,O]}}}),dg=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}}),db=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;let t=dl(),a=de(),o=u1(),n=u4(),i=dp(),s=u2();function r(e,t){let{gen:a}=e;return t.validate?a.scopeValue("validate",{ref:t.validate}):(0,o._)`${a.scopeValue("wrapper",{ref:t})}.validate`}function c(e,t,i,r){let{gen:c,it:l}=e,{allErrors:p,schemaEnv:u,opts:d}=l,m=d.passContext?n.default.this:o.nil;function h(e){let t=(0,o._)`${e}.errors`;c.assign(n.default.vErrors,(0,o._)`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`),c.assign(n.default.errors,(0,o._)`${n.default.vErrors}.length`)}function f(e){var t;if(!l.opts.unevaluated)return;let a=null==(t=null==i?void 0:i.validate)?void 0:t.evaluated;if(!0!==l.props)if(a&&!a.dynamicProps)void 0!==a.props&&(l.props=s.mergeEvaluated.props(c,a.props,l.props));else{let t=c.var("props",(0,o._)`${e}.evaluated.props`);l.props=s.mergeEvaluated.props(c,t,l.props,o.Name)}if(!0!==l.items)if(a&&!a.dynamicItems)void 0!==a.items&&(l.items=s.mergeEvaluated.items(c,a.items,l.items));else{let t=c.var("items",(0,o._)`${e}.evaluated.items`);l.items=s.mergeEvaluated.items(c,t,l.items,o.Name)}}r?function(){if(!u.$async)throw Error("async schema referenced by sync schema");let n=c.let("valid");c.try(()=>{c.code((0,o._)`await ${(0,a.callValidateCode)(e,t,m)}`),f(t),p||c.assign(n,!0)},e=>{c.if((0,o._)`!(${e} instanceof ${l.ValidationError})`,()=>c.throw(e)),h(e),p||c.assign(n,!1)}),e.ok(n)}():e.result((0,a.callValidateCode)(e,t,m),()=>f(t),()=>h(t))}e.getValidate=r,e.callRef=c,e.default={keyword:"$ref",schemaType:"string",code(e){var a,n;let s,l,p,{gen:u,schema:d,it:m}=e,{baseId:h,schemaEnv:f,validateName:v,opts:g,self:b}=m,{root:y}=f;if(("#"===d||"#/"===d)&&h===y.baseId){if(f===y)return c(e,v,f,f.$async);let t=u.scopeValue("root",{ref:y});return c(e,(0,o._)`${t}.validate`,y,y.$async)}let x=i.resolveRef.call(b,y,h,d);if(void 0===x)throw new t.default(m.opts.uriResolver,h,d);return x instanceof i.SchemaEnv?void c(e,r(e,a=x),a,a.$async):(n=x,s=u.scopeValue("schema",!0===g.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),l=u.name("valid"),p=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:s,errSchemaPath:d},l),void(e.mergeEvaluated(p),e.ok(l)))}}}),dy=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dg(),a=db();e.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,a.default]}),dx=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=t.operators,o={maximum:{okStr:"<=",ok:a.LTE,fail:a.GT},minimum:{okStr:">=",ok:a.GTE,fail:a.LT},exclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},exclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}};e.default={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:a})=>(0,t.str)`must be ${o[e].okStr} ${a}`,params:({keyword:e,schemaCode:a})=>(0,t._)`{comparison: ${o[e].okStr}, limit: ${a}}`},code(e){let{keyword:a,data:n,schemaCode:i}=e;e.fail$data((0,t._)`${n} ${o[a].fail} ${i} || isNaN(${n})`)}}}),d_=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1();e.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,t._)`{multipleOf: ${e}}`},code(e){let{gen:a,data:o,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,r=a.let("res"),c=s?(0,t._)`Math.abs(Math.round(${r}) - ${r}) > 1e-${s}`:(0,t._)`${r} !== parseInt(${r})`;e.fail$data((0,t._)`(${n} === 0 || (${r} = ${o}/${n}, ${c}))`)}}}),dS=ax(e=>{function t(e){let t,a=e.length,o=0,n=0;for(;n<a;)o++,(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<a&&(64512&(t=e.charCodeAt(n)))==56320&&n++;return o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.code='require("ajv/dist/runtime/ucs2length").default'}),dw=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2(),o=dS();e.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:a})=>(0,t.str)`must NOT have ${"maxLength"===e?"more":"fewer"} than ${a} characters`,params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:i,schemaCode:s,it:r}=e,c="maxLength"===n?t.operators.GT:t.operators.LT,l=!1===r.opts.unicode?(0,t._)`${i}.length`:(0,t._)`${(0,a.useFunc)(e.gen,o.default)}(${i})`;e.fail$data((0,t._)`${l} ${c} ${s}`)}}}),d$=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=de(),a=u2(),o=u1();e.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,o.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,o._)`{pattern: ${e}}`},code(e){let{gen:n,data:i,$data:s,schema:r,schemaCode:c,it:l}=e,p=l.opts.unicodeRegExp?"u":"";if(s){let{regExp:t}=l.opts.code,s="new RegExp"===t.code?(0,o._)`new RegExp`:(0,a.useFunc)(n,t),r=n.let("valid");n.try(()=>n.assign(r,(0,o._)`${s}(${c}, ${p}).test(${i})`),()=>n.assign(r,!1)),e.fail$data((0,o._)`!${r}`)}else{let a=(0,t.usePattern)(e,r);e.fail$data((0,o._)`!${a}.test(${i})`)}}}}),dR=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1();e.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:a})=>(0,t.str)`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${a} properties`,params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:a,data:o,schemaCode:n}=e,i="maxProperties"===a?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`Object.keys(${o}).length ${i} ${n}`)}}}),dj=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=de(),a=u1(),o=u2();e.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,a.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,a._)`{missingProperty: ${e}}`},code(e){let{gen:n,schema:i,schemaCode:s,data:r,$data:c,it:l}=e,{opts:p}=l;if(!c&&0===i.length)return;let u=i.length>=p.loopRequired;if(l.allErrors?function(){if(u||c)e.block$data(a.nil,d);else for(let a of i)(0,t.checkReportMissingProp)(e,a)}():function(){let o=n.let("missing");if(u||c){let i=n.let("valid",!0);e.block$data(i,()=>{var c,l;return c=o,l=i,void(e.setParams({missingProperty:c}),n.forOf(c,s,()=>{n.assign(l,(0,t.propertyInData)(n,r,c,p.ownProperties)),n.if((0,a.not)(l),()=>{e.error(),n.break()})},a.nil))}),e.ok(i)}else n.if((0,t.checkMissingProp)(e,i,o)),(0,t.reportMissingProp)(e,o),n.else()}(),p.strictRequired){let t=e.parentSchema.properties,{definedProperties:a}=e.it;for(let e of i)if((null==t?void 0:t[e])===void 0&&!a.has(e)){let t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(l,t,l.opts.strictRequired)}}function d(){n.forOf("prop",s,a=>{e.setParams({missingProperty:a}),n.if((0,t.noPropertyInData)(n,r,a,p.ownProperties),()=>e.error())})}}}}),dE=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1();e.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:a})=>(0,t.str)`must NOT have ${"maxItems"===e?"more":"fewer"} than ${a} items`,params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:a,data:o,schemaCode:n}=e,i="maxItems"===a?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`${o}.length ${i} ${n}`)}}}),dk=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dn();t.code='require("ajv/dist/runtime/equal").default',e.default=t}),dP=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u8(),a=u1(),o=u2(),n=dk();e.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,a.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,a._)`{i: ${e}, j: ${t}}`},code(e){let{gen:i,data:s,$data:r,schema:c,parentSchema:l,schemaCode:p,it:u}=e;if(!r&&!c)return;let d=i.let("valid"),m=l.items?(0,t.getSchemaTypes)(l.items):[];e.block$data(d,function(){let r=i.let("i",(0,a._)`${s}.length`),c=i.let("j");e.setParams({i:r,j:c}),i.assign(d,!0),i.if((0,a._)`${r} > 1`,()=>(m.length>0&&!m.some(e=>"object"===e||"array"===e)?function(o,n){let r=i.name("item"),c=(0,t.checkDataTypes)(m,r,u.opts.strictNumbers,t.DataType.Wrong),l=i.const("indices",(0,a._)`{}`);i.for((0,a._)`;${o}--;`,()=>{i.let(r,(0,a._)`${s}[${o}]`),i.if(c,(0,a._)`continue`),m.length>1&&i.if((0,a._)`typeof ${r} == "string"`,(0,a._)`${r} += "_"`),i.if((0,a._)`typeof ${l}[${r}] == "number"`,()=>{i.assign(n,(0,a._)`${l}[${r}]`),e.error(),i.assign(d,!1).break()}).code((0,a._)`${l}[${r}] = ${o}`)})}:function(t,r){let c=(0,o.useFunc)(i,n.default),l=i.name("outer");i.label(l).for((0,a._)`;${t}--;`,()=>i.for((0,a._)`${r} = ${t}; ${r}--;`,()=>i.if((0,a._)`${c}(${s}[${t}], ${s}[${r}])`,()=>{e.error(),i.assign(d,!1).break(l)})))})(r,c))},(0,a._)`${p} === false`),e.ok(d)}}}),dT=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2(),o=dk();e.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,t._)`{allowedValue: ${e}}`},code(e){let{gen:n,data:i,$data:s,schemaCode:r,schema:c}=e;s||c&&"object"==typeof c?e.fail$data((0,t._)`!${(0,a.useFunc)(n,o.default)}(${i}, ${r})`):e.fail((0,t._)`${c} !== ${i}`)}}}),dO=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2(),o=dk();e.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,t._)`{allowedValues: ${e}}`},code(e){let n,i,{gen:s,data:r,$data:c,schema:l,schemaCode:p,it:u}=e;if(!c&&0===l.length)throw Error("enum must have non-empty array");let d=l.length>=u.opts.loopEnum,m=()=>null!=n?n:n=(0,a.useFunc)(s,o.default);if(d||c)i=s.let("valid"),e.block$data(i,function(){s.assign(i,!1),s.forOf("v",p,e=>s.if((0,t._)`${m()}(${r}, ${e})`,()=>s.assign(i,!0).break()))});else{if(!Array.isArray(l))throw Error("ajv implementation error");let e=s.const("vSchema",p);i=(0,t.or)(...l.map((a,o)=>{var n,i;let s;return n=e,"object"==typeof(s=l[i=o])&&null!==s?(0,t._)`${m()}(${r}, ${n}[${i}])`:(0,t._)`${r} === ${s}`}))}e.pass(i)}}}),dC=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dx(),a=d_(),o=dw(),n=d$(),i=dR(),s=dj(),r=dE(),c=dP(),l=dT(),p=dO();e.default=[t.default,a.default,o.default,n.default,i.default,s.default,r.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,p.default]}),dI=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;let t=u1(),a=u2();function o(e,o){let{gen:n,schema:i,data:s,keyword:r,it:c}=e;c.items=!0;let l=n.const("len",(0,t._)`${s}.length`);if(!1===i)e.setParams({len:o.length}),e.pass((0,t._)`${l} <= ${o.length}`);else if("object"==typeof i&&!(0,a.alwaysValidSchema)(c,i)){let i=n.var("valid",(0,t._)`${l} <= ${o.length}`);n.if((0,t.not)(i),()=>{var s;return s=i,void n.forRange("i",o.length,l,o=>{e.subschema({keyword:r,dataProp:o,dataPropType:a.Type.Num},s),c.allErrors||n.if((0,t.not)(s),()=>n.break())})}),e.ok(i)}}e.validateAdditionalItems=o,e.default={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:n}=e,{items:i}=t;Array.isArray(i)?o(e,i):(0,a.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}}}),dN=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;let t=u1(),a=u2(),o=de();function n(e,o,i=e.schema){let{gen:s,parentSchema:r,data:c,keyword:l,it:p}=e;(function(e){let{opts:t,errSchemaPath:n}=p,s=i.length,r=s===e.minItems&&(s===e.maxItems||!1===e[o]);if(t.strictTuples&&!r){let e=`"${l}" is ${s}-tuple, but minItems or maxItems/${o} are not specified or different at path "${n}"`;(0,a.checkStrictMode)(p,e,t.strictTuples)}})(r),p.opts.unevaluated&&i.length&&!0!==p.items&&(p.items=a.mergeEvaluated.items(s,i.length,p.items));let u=s.name("valid"),d=s.const("len",(0,t._)`${c}.length`);i.forEach((o,n)=>{(0,a.alwaysValidSchema)(p,o)||(s.if((0,t._)`${d} > ${n}`,()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},u)),e.ok(u))})}e.validateTuple=n,e.default={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:i}=e;if(Array.isArray(t))return n(e,"additionalItems",t);i.items=!0,(0,a.alwaysValidSchema)(i,t)||e.ok((0,o.validateArray)(e))}}}),dq=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dN();e.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,t.validateTuple)(e,"items")}}),dA=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2(),o=de(),n=dI();e.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:i,it:s}=e,{prefixItems:r}=i;s.items=!0,(0,a.alwaysValidSchema)(s,t)||(r?(0,n.validateAdditionalItems)(e,r):e.ok((0,o.validateArray)(e)))}}}),dz=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2();e.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:a}})=>void 0===a?(0,t.str)`must contain at least ${e} valid item(s)`:(0,t.str)`must contain at least ${e} and no more than ${a} valid item(s)`,params:({params:{min:e,max:a}})=>void 0===a?(0,t._)`{minContains: ${e}}`:(0,t._)`{minContains: ${e}, maxContains: ${a}}`},code(e){let o,n,{gen:i,schema:s,parentSchema:r,data:c,it:l}=e,{minContains:p,maxContains:u}=r;l.opts.next?(o=void 0===p?1:p,n=u):o=1;let d=i.const("len",(0,t._)`${c}.length`);if(e.setParams({min:o,max:n}),void 0===n&&0===o)return void(0,a.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==n&&o>n){(0,a.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,a.alwaysValidSchema)(l,s)){let a=(0,t._)`${d} >= ${o}`;void 0!==n&&(a=(0,t._)`${a} && ${d} <= ${n}`),e.pass(a);return}l.items=!0;let m=i.name("valid");function h(){let e=i.name("_valid"),a=i.let("count",0);f(e,()=>i.if(e,()=>{var e;return e=a,void(i.code((0,t._)`${e}++`),void 0===n?i.if((0,t._)`${e} >= ${o}`,()=>i.assign(m,!0).break()):(i.if((0,t._)`${e} > ${n}`,()=>i.assign(m,!1).break()),1===o?i.assign(m,!0):i.if((0,t._)`${e} >= ${o}`,()=>i.assign(m,!0))))}))}function f(t,o){i.forRange("i",0,d,n=>{e.subschema({keyword:"contains",dataProp:n,dataPropType:a.Type.Num,compositeRule:!0},t),o()})}void 0===n&&1===o?f(m,()=>i.if(m,()=>i.break())):0===o?(i.let(m,!0),void 0!==n&&i.if((0,t._)`${c}.length > 0`,h)):(i.let(m,!1),h()),e.result(m,()=>e.reset())}}}),dM=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;let t=u1(),a=u2(),o=de();e.error={message:({params:{property:e,depsCount:a,deps:o}})=>(0,t.str)`must have ${1===a?"property":"properties"} ${o} when property ${e} is present`,params:({params:{property:e,depsCount:a,deps:o,missingProperty:n}})=>(0,t._)`{property: ${e},
|
|
180
|
+
missingProperty: ${n},
|
|
181
|
+
depsCount: ${a},
|
|
182
|
+
deps: ${o}}`};let n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){let[t,a]=function({schema:e}){let t={},a={};for(let o in e)"__proto__"!==o&&((Array.isArray(e[o])?t:a)[o]=e[o]);return[t,a]}(e);i(e,t),s(e,a)}};function i(e,a=e.schema){let{gen:n,data:s,it:r}=e;if(0===Object.keys(a).length)return;let c=n.let("missing");for(let i in a){let l=a[i];if(0===l.length)continue;let p=(0,o.propertyInData)(n,s,i,r.opts.ownProperties);e.setParams({property:i,depsCount:l.length,deps:l.join(", ")}),r.allErrors?n.if(p,()=>{for(let t of l)(0,o.checkReportMissingProp)(e,t)}):(n.if((0,t._)`${p} && (${(0,o.checkMissingProp)(e,l,c)})`),(0,o.reportMissingProp)(e,c),n.else())}}function s(e,t=e.schema){let{gen:n,data:i,keyword:r,it:c}=e,l=n.name("valid");for(let s in t)(0,a.alwaysValidSchema)(c,t[s])||(n.if((0,o.propertyInData)(n,i,s,c.opts.ownProperties),()=>{let t=e.subschema({keyword:r,schemaProp:s},l);e.mergeValidEvaluated(t,l)},()=>n.var(l,!0)),e.ok(l))}e.validatePropertyDeps=i,e.validateSchemaDeps=s,e.default=n}),dL=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2();e.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,t._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:o,schema:n,data:i,it:s}=e;if((0,a.alwaysValidSchema)(s,n))return;let r=o.name("valid");o.forIn("key",i,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},r),o.if((0,t.not)(r),()=>{e.error(!0),s.allErrors||o.break()})}),e.ok(r)}}}),dU=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=de(),a=u1(),o=u4(),n=u2();e.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,a._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:i,schema:s,parentSchema:r,data:c,errsCount:l,it:p}=e;if(!l)throw Error("ajv implementation error");let{allErrors:u,opts:d}=p;if(p.props=!0,"all"!==d.removeAdditional&&(0,n.alwaysValidSchema)(p,s))return;let m=(0,t.allSchemaProperties)(r.properties),h=(0,t.allSchemaProperties)(r.patternProperties);function f(e){i.code((0,a._)`delete ${c}[${e}]`)}function v(t){if("all"===d.removeAdditional||d.removeAdditional&&!1===s)return void f(t);if(!1===s){e.setParams({additionalProperty:t}),e.error(),u||i.break();return}if("object"==typeof s&&!(0,n.alwaysValidSchema)(p,s)){let o=i.name("valid");"failing"===d.removeAdditional?(g(t,o,!1),i.if((0,a.not)(o),()=>{e.reset(),f(t)})):(g(t,o),u||i.if((0,a.not)(o),()=>i.break()))}}function g(t,a,o){let i={keyword:"additionalProperties",dataProp:t,dataPropType:n.Type.Str};!1===o&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,a)}i.forIn("key",c,o=>{m.length||h.length?i.if(function(o){let s;if(m.length>8){let e=(0,n.schemaRefOrVal)(p,r.properties,"properties");s=(0,t.isOwnProperty)(i,e,o)}else s=m.length?(0,a.or)(...m.map(e=>(0,a._)`${o} === ${e}`)):a.nil;return h.length&&(s=(0,a.or)(s,...h.map(n=>(0,a._)`${(0,t.usePattern)(e,n)}.test(${o})`))),(0,a.not)(s)}(o),()=>v(o)):v(o)}),e.ok((0,a._)`${l} === ${o.default.errors}`)}}}),dD=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dr(),a=de(),o=u2(),n=dU();e.default={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:i,schema:s,parentSchema:r,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===r.additionalProperties&&n.default.code(new t.KeywordCxt(l,n.default,"additionalProperties"));let p=(0,a.allSchemaProperties)(s);for(let e of p)l.definedProperties.add(e);l.opts.unevaluated&&p.length&&!0!==l.props&&(l.props=o.mergeEvaluated.props(i,(0,o.toHash)(p),l.props));let u=p.filter(e=>!(0,o.alwaysValidSchema)(l,s[e]));if(0===u.length)return;let d=i.name("valid");for(let t of u){var m;(m=t,l.opts.useDefaults&&!l.compositeRule&&void 0!==s[m].default)?h(t):(i.if((0,a.propertyInData)(i,c,t,l.opts.ownProperties)),h(t),l.allErrors||i.else().var(d,!0),i.endIf()),e.it.definedProperties.add(t),e.ok(d)}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}}}),dH=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=de(),a=u1(),o=u2(),n=u2();e.default={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:i,schema:s,data:r,parentSchema:c,it:l}=e,{opts:p}=l,u=(0,t.allSchemaProperties)(s),d=u.filter(e=>(0,o.alwaysValidSchema)(l,s[e]));if(0===u.length||d.length===u.length&&(!l.opts.unevaluated||!0===l.props))return;let m=p.strictSchema&&!p.allowMatchingProperties&&c.properties,h=i.name("valid");!0===l.props||l.props instanceof a.Name||(l.props=(0,n.evaluatedPropsToName)(i,l.props));let{props:f}=l;for(let e of u)m&&function(e){for(let t in m)new RegExp(e).test(t)&&(0,o.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}(e),l.allErrors?v(e):(i.var(h,!0),v(e),i.if(h));function v(o){i.forIn("key",r,s=>{i.if((0,a._)`${(0,t.usePattern)(e,o)}.test(${s})`,()=>{let t=d.includes(o);t||e.subschema({keyword:"patternProperties",schemaProp:o,dataProp:s,dataPropType:n.Type.Str},h),l.opts.unevaluated&&!0!==f?i.assign((0,a._)`${f}[${s}]`,!0):t||l.allErrors||i.if((0,a.not)(h),()=>i.break())})})}}}}),dF=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u2();e.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:a,schema:o,it:n}=e;if((0,t.alwaysValidSchema)(n,o))return void e.fail();let i=a.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}}}),dV=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:de().validateUnion,error:{message:"must match a schema in anyOf"}}}),dB=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2();e.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,t._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:o,schema:n,parentSchema:i,it:s}=e;if(!Array.isArray(n))throw Error("ajv implementation error");if(s.opts.discriminator&&i.discriminator)return;let r=o.let("valid",!1),c=o.let("passing",null),l=o.name("_valid");e.setParams({passing:c}),o.block(function(){n.forEach((n,i)=>{let p;(0,a.alwaysValidSchema)(s,n)?o.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},l),i>0&&o.if((0,t._)`${l} && ${r}`).assign(r,!1).assign(c,(0,t._)`[${c}, ${i}]`).else(),o.if(l,()=>{o.assign(r,!0),o.assign(c,i),p&&e.mergeEvaluated(p,t.Name)})})}),e.result(r,()=>e.reset(),()=>e.error(!0))}}}),dJ=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u2();e.default={keyword:"allOf",schemaType:"array",code(e){let{gen:a,schema:o,it:n}=e;if(!Array.isArray(o))throw Error("ajv implementation error");let i=a.name("valid");o.forEach((a,o)=>{if((0,t.alwaysValidSchema)(n,a))return;let s=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(s)})}}}),dG=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2();function o(e,t){let o=e.schema[t];return void 0!==o&&!(0,a.alwaysValidSchema)(e,o)}e.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,t.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t._)`{failingKeyword: ${e.ifClause}}`},code(e){let n,{gen:i,parentSchema:s,it:r}=e;void 0===s.then&&void 0===s.else&&(0,a.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let c=o(r,"then"),l=o(r,"else");if(!c&&!l)return;let p=i.let("valid",!0),u=i.name("_valid");if(n=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u),e.mergeEvaluated(n),e.reset(),c&&l){let t=i.let("ifClause");e.setParams({ifClause:t}),i.if(u,d("then",t),d("else",t))}else c?i.if(u,d("then")):i.if((0,t.not)(u),d("else"));function d(a,o){return()=>{let n=e.subschema({keyword:a},u);i.assign(p,u),e.mergeValidEvaluated(n,p),o?i.assign(o,(0,t._)`${a}`):e.setParams({ifClause:a})}}e.pass(p,()=>e.error(!0))}}}),dZ=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u2();e.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:a,it:o}){void 0===a.if&&(0,t.checkStrictMode)(o,`"${e}" without "if" is ignored`)}}}),dK=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dI(),a=dq(),o=dN(),n=dA(),i=dz(),s=dM(),r=dL(),c=dU(),l=dD(),p=dH(),u=dF(),d=dV(),m=dB(),h=dJ(),f=dG(),v=dZ();e.default=function(e=!1){let g=[u.default,d.default,m.default,h.default,f.default,v.default,r.default,c.default,s.default,l.default,p.default];return e?g.push(a.default,n.default):g.push(t.default,o.default),g.push(i.default),g}}),dW=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1();e.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,t._)`{format: ${e}}`},code(e,a){let o,n,i,s,r,c,{gen:l,data:p,$data:u,schema:d,schemaCode:m,it:h}=e,{opts:f,errSchemaPath:v,schemaEnv:g,self:b}=h;f.validateFormats&&(u?(o=l.scopeValue("formats",{ref:b.formats,code:f.code.formats}),n=l.const("fDef",(0,t._)`${o}[${m}]`),i=l.let("fType"),s=l.let("format"),l.if((0,t._)`typeof ${n} == "object" && !(${n} instanceof RegExp)`,()=>l.assign(i,(0,t._)`${n}.type || "string"`).assign(s,(0,t._)`${n}.validate`),()=>l.assign(i,(0,t._)`"string"`).assign(s,n)),e.fail$data((0,t.or)(!1===f.strictSchema?t.nil:(0,t._)`${m} && !${s}`,(r=g.$async?(0,t._)`(${n}.async ? await ${s}(${p}) : ${s}(${p}))`:(0,t._)`${s}(${p})`,c=(0,t._)`(typeof ${s} == "function" ? ${r} : ${s}.test(${p}))`,(0,t._)`${s} && ${s} !== true && ${i} === ${a} && !${c}`)))):function(){var o;let n,i,s=b.formats[d];if(!s){if(!1===f.strictSchema)return b.logger.warn(r());throw Error(r());function r(){return`unknown format "${d}" ignored in schema at path "${v}"`}}if(!0===s)return;let[c,u,m]=(n=(o=s)instanceof RegExp?(0,t.regexpCode)(o):f.code.formats?(0,t._)`${f.code.formats}${(0,t.getProperty)(d)}`:void 0,i=l.scopeValue("formats",{key:d,ref:o,code:n}),"object"!=typeof o||o instanceof RegExp?["string",o,i]:[o.type||"string",o.validate,(0,t._)`${i}.validate`]);c===a&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!g.$async)throw Error("async format in sync schema");return(0,t._)`await ${m}(${p})`}return"function"==typeof u?(0,t._)`${m}(${p})`:(0,t._)`${m}.test(${p})`}())}())}}}),dX=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=[dW().default]}),dY=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}),dQ=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dy(),a=dC(),o=dK(),n=dX(),i=dY();e.default=[t.default,a.default,(0,o.default)(),n.default,i.metadataVocabulary,i.contentVocabulary]}),d0=ax(e=>{var t,a;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(a=t||(e.DiscrError=t={})).Tag="tag",a.Mapping="mapping"}),d1=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=d0(),o=dp(),n=dl(),i=u2();e.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===a.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:a,tagName:o}})=>(0,t._)`{error: ${e}, tag: ${o}, tagValue: ${a}}`},code(e){let{gen:s,data:r,schema:c,parentSchema:l,it:p}=e,{oneOf:u}=l;if(!p.opts.discriminator)throw Error("discriminator: requires discriminator option");let d=c.propertyName;if("string"!=typeof d)throw Error("discriminator: requires propertyName");if(c.mapping)throw Error("discriminator: mapping is not supported");if(!u)throw Error("discriminator: requires oneOf keyword");let m=s.let("valid",!1),h=s.const("tag",(0,t._)`${r}${(0,t.getProperty)(d)}`);s.if((0,t._)`typeof ${h} == "string"`,()=>(function(){let r=function(){var e;let t={},a=r(l),s=!0;for(let t=0;t<u.length;t++){let l=u[t];if((null==l?void 0:l.$ref)&&!(0,i.schemaHasRulesButRef)(l,p.self.RULES)){let e=l.$ref;if((l=o.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,e))instanceof o.SchemaEnv&&(l=l.schema),void 0===l)throw new n.default(p.opts.uriResolver,p.baseId,e)}let m=null==(e=null==l?void 0:l.properties)?void 0:e[d];if("object"!=typeof m)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);s=s&&(a||r(l)),function(e,t){if(e.const)c(e.const,t);else if(e.enum)for(let a of e.enum)c(a,t);else throw Error(`discriminator: "properties/${d}" must have "const" or "enum"`)}(m,t)}if(!s)throw Error(`discriminator: "${d}" must be required`);return t;function r({required:e}){return Array.isArray(e)&&e.includes(d)}function c(e,a){if("string"!=typeof e||e in t)throw Error(`discriminator: "${d}" values must be unique strings`);t[e]=a}}();for(let a in s.if(!1),r)s.elseIf((0,t._)`${h} === ${a}`),s.assign(m,function(a){let o=s.name("valid"),n=e.subschema({keyword:"oneOf",schemaProp:a},o);return e.mergeEvaluated(n,t.Name),o}(r[a]));s.else(),e.error(!1,{discrError:a.DiscrError.Mapping,tag:h,tagName:d}),s.endIf()})(),()=>e.error(!1,{discrError:a.DiscrError.Tag,tag:h,tagName:d})),e.ok(m)}}}),d2=ax((e,t)=>{t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}),d4=ax((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;let a=dv(),o=dQ(),n=d1(),i=d2(),s=["/properties"],r="http://json-schema.org/draft-07/schema";var c=class extends a.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(e,r,!1),this.refs["http://json-schema.org/schema"]=r}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(r)?r:void 0)}};e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=dr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=u1();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var u=dc();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=dl();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}),d3=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicAnchor=void 0;let t=u1(),a=u4(),o=dp(),n=db();function i(e,i){let{gen:s,it:r}=e;r.schemaEnv.root.dynamicAnchors[i]=!0;let c=(0,t._)`${a.default.dynamicAnchors}${(0,t.getProperty)(i)}`,l="#"===r.errSchemaPath?r.validateName:function(e){let{schemaEnv:t,schema:a,self:i}=e.it,{root:s,baseId:r,localRefs:c,meta:l}=t.root,{schemaId:p}=i.opts,u=new o.SchemaEnv({schema:a,schemaId:p,root:s,baseId:r,localRefs:c,meta:l});return o.compileSchema.call(i,u),(0,n.getValidate)(e,u)}(e);s.if((0,t._)`!${c}`,()=>s.assign(c,l))}e.dynamicAnchor=i,e.default={keyword:"$dynamicAnchor",schemaType:"string",code:e=>i(e,e.schema)}}),d9=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicRef=void 0;let t=u1(),a=u4(),o=db();function n(e,n){let{gen:i,keyword:s,it:r}=e;if("#"!==n[0])throw Error(`"${s}" only supports hash fragment reference`);let c=n.slice(1);if(r.allErrors)l();else{let t=i.let("valid",!1);l(t),e.ok(t)}function l(e){if(r.schemaEnv.root.dynamicAnchors[c]){let o=i.let("_v",(0,t._)`${a.default.dynamicAnchors}${(0,t.getProperty)(c)}`);i.if(o,p(o,e),p(r.validateName,e))}else p(r.validateName,e)()}function p(t,a){return a?()=>i.block(()=>{(0,o.callRef)(e,t),i.let(a,!0)}):()=>(0,o.callRef)(e,t)}}e.dynamicRef=n,e.default={keyword:"$dynamicRef",schemaType:"string",code:e=>n(e,e.schema)}}),d5=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=d3(),a=u2();e.default={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,t.dynamicAnchor)(e,""):(0,a.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}}}),d6=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=d9();e.default={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,t.dynamicRef)(e,e.schema)}}),d8=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=d3(),a=d9(),o=d5(),n=d6();e.default=[t.default,a.default,o.default,n.default]}),d7=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dM();e.default={keyword:"dependentRequired",type:"object",schemaType:"object",error:t.error,code:e=>(0,t.validatePropertyDeps)(e)}}),me=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dM();e.default={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,t.validateSchemaDeps)(e)}}),mt=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u2();e.default={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:a,it:o}){void 0===a.contains&&(0,t.checkStrictMode)(o,`"${e}" without "contains" is ignored`)}}}),ma=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=d7(),a=me(),o=mt();e.default=[t.default,a.default,o.default]}),mo=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2(),o=u4();e.default={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>(0,t._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){let{gen:n,schema:i,data:s,errsCount:r,it:c}=e;if(!r)throw Error("ajv implementation error");let{allErrors:l,props:p}=c;function u(o){if(!1===i){e.setParams({unevaluatedProperty:o}),e.error(),l||n.break();return}if(!(0,a.alwaysValidSchema)(c,i)){let i=n.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:a.Type.Str},i),l||n.if((0,t.not)(i),()=>n.break())}}p instanceof t.Name?n.if((0,t._)`${p} !== true`,()=>n.forIn("key",s,e=>{var a,o;return n.if((a=p,o=e,(0,t._)`!${a} || !${a}[${o}]`),()=>u(e))})):!0!==p&&n.forIn("key",s,e=>void 0===p?u(e):n.if(function(e,a){let o=[];for(let n in e)!0===e[n]&&o.push((0,t._)`${a} !== ${n}`);return(0,t.and)(...o)}(p,e),()=>u(e))),c.props=!0,e.ok((0,t._)`${r} === ${o.default.errors}`)}}}),mn=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),a=u2();e.default={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{gen:o,schema:n,data:i,it:s}=e,r=s.items||0;if(!0===r)return;let c=o.const("len",(0,t._)`${i}.length`);if(!1===n)e.setParams({len:r}),e.fail((0,t._)`${c} > ${r}`);else if("object"==typeof n&&!(0,a.alwaysValidSchema)(s,n)){let n=o.var("valid",(0,t._)`${c} <= ${r}`);o.if((0,t.not)(n),()=>{var i,l;return i=n,l=r,void o.forRange("i",l,c,n=>{e.subschema({keyword:"unevaluatedItems",dataProp:n,dataPropType:a.Type.Num},i),s.allErrors||o.if((0,t.not)(i),()=>o.break())})}),e.ok(n)}s.items=!0}}}),mi=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=mo(),a=mn();e.default=[t.default,a.default]}),ms=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}}),mr=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}}),mc=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}}),ml=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}}),mp=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}}),mu=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}}),md=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}}),mm=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=ms(),a=mr(),o=mc(),n=ml(),i=mp(),s=mu(),r=md(),c=["/properties"];e.default=function(e){return[t,a,o,n,l(this,i),s,l(this,r)].forEach(e=>this.addMetaSchema(e,void 0,!1)),this;function l(t,a){return e?t.$dataMetaSchema(a,c):a}}}),mh=ax((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2019=void 0;let a=dv(),o=dQ(),n=d8(),i=ma(),s=mi(),r=d1(),c=mm(),l="https://json-schema.org/draft/2019-09/schema";var p=class extends a.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(n.default),o.default.forEach(e=>this.addVocabulary(e)),this.addVocabulary(i.default),this.addVocabulary(s.default),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;t&&(c.default.call(this,e),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}};e.Ajv2019=p,t.exports=e=p,t.exports.Ajv2019=p,Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var u=dr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=u1();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var m=dc();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return m.default}});var h=dl();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})}),mf=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dy(),a=dC(),o=dK(),n=d8(),i=ma(),s=mi(),r=dX(),c=dY();e.default=[n.default,t.default,a.default,(0,o.default)(!0),r.default,c.metadataVocabulary,c.contentVocabulary,i.default,s.default]}),mv=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}}),mg=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}}),mb=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}}),my=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}}),mx=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}}),m_=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}}),mS=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}}),mw=ax((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}}),m$=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=mv(),a=mg(),o=mb(),n=my(),i=mx(),s=m_(),r=mS(),c=mw(),l=["/properties"];e.default=function(e){return[t,a,o,n,i,p(this,s),r,p(this,c)].forEach(e=>this.addMetaSchema(e,void 0,!1)),this;function p(t,a){return e?t.$dataMetaSchema(a,l):a}}}),mR=ax((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;let a=dv(),o=mf(),n=d1(),i=m$(),s="https://json-schema.org/draft/2020-12/schema";var r=class extends a.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),o.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;t&&(i.default.call(this,e),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv2020=r,t.exports=e=r,t.exports.Ajv2020=r,Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var c=dr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=u1();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=dc();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return p.default}});var u=dl();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return u.default}})}),mj=ax(e=>{function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(n,i),time:t(r(!0),c),"date-time":t(u(!0),d),"iso-time":t(r(),l),"iso-date-time":t(u(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return h.test(e)&&f.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return v.lastIndex=0,v.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=b&&e>=g}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:y},double:{type:"number",validate:y},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,d),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);let a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(e){var t;let n=a.exec(e);if(!n)return!1;let i=+n[1],s=+n[2],r=+n[3];return s>=1&&s<=12&&r>=1&&r<=(2===s&&(t=i)%4==0&&(t%100!=0||t%400==0)?29:o[s])}function i(e,t){if(e&&t)return e>t?1:e<t?-1:0}let s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function r(e){return function(t){let a=s.exec(t);if(!a)return!1;let o=+a[1],n=+a[2],i=+a[3],r=a[4],c="-"===a[5]?-1:1,l=+(a[6]||0),p=+(a[7]||0);if(l>23||p>59||e&&!r)return!1;if(o<=23&&n<=59&&i<60)return!0;let u=n-p*c,d=o-l*c-(u<0);return(23===d||-1===d)&&(59===u||-1===u)&&i<61}}function c(e,t){if(!(e&&t))return;let a=new Date("2020-01-01T"+e).valueOf(),o=new Date("2020-01-01T"+t).valueOf();if(a&&o)return a-o}function l(e,t){if(!(e&&t))return;let a=s.exec(e),o=s.exec(t);if(a&&o)return(e=a[1]+a[2]+a[3])>(t=o[1]+o[2]+o[3])?1:e<t?-1:0}let p=/t|\s/i;function u(e){let t=r(e);return function(e){let a=e.split(p);return 2===a.length&&n(a[0])&&t(a[1])}}function d(e,t){if(!(e&&t))return;let a=new Date(e).valueOf(),o=new Date(t).valueOf();if(a&&o)return a-o}function m(e,t){if(!(e&&t))return;let[a,o]=e.split(p),[n,s]=t.split(p),r=i(a,n);if(void 0!==r)return r||c(o,s)}let h=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm,g=-0x80000000,b=0x80000000-1;function y(){return!0}let x=/[^\\]\\Z/}),mE=ax(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;let t=d4(),a=u1(),o=a.operators,n={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,a.str)`should be ${n[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,a._)`{comparison: ${n[e].okStr}, limit: ${t}}`},code(e){let o,i,{gen:s,data:r,schemaCode:c,keyword:l,it:p}=e,{opts:u,self:d}=p;if(!u.validateFormats)return;let m=new t.KeywordCxt(p,d.RULES.all.format.definition,"format");function h(e){return(0,a._)`${e}.compare(${r}, ${c}) ${n[l].fail} 0`}m.$data?(o=s.scopeValue("formats",{ref:d.formats,code:u.code.formats}),i=s.const("fmt",(0,a._)`${o}[${m.schemaCode}]`),e.fail$data((0,a.or)((0,a._)`typeof ${i} != "object"`,(0,a._)`${i} instanceof RegExp`,(0,a._)`typeof ${i}.compare != "function"`,h(i)))):function(){let t=m.schema,o=d.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw Error(`"${l}": format "${t}" does not define "compare" function`);let n=s.scopeValue("formats",{key:t,ref:o,code:u.code.formats?(0,a._)`${u.code.formats}${(0,a.getProperty)(t)}`:void 0});e.fail$data(h(n))}()},dependencies:["format"]},e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}),mk=ax((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});let a=mj(),o=mE(),n=u1(),i=new n.Name("fullFormats"),s=new n.Name("fastFormats"),r=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,a.fullFormats,i),e;let[n,r]="fast"===t.mode?[a.fastFormats,s]:[a.fullFormats,i];return c(e,t.formats||a.formatNames,n,r),t.keywords&&(0,o.default)(e),e};function c(e,t,a,o){var i;for(let s of(null!=(i=e.opts.code).formats||(i.formats=(0,n._)`require("ajv-formats/dist/formats").${o}`),t))e.addFormat(s,a[s])}r.get=(e,t="full")=>{let o=("fast"===t?a.fastFormats:a.fullFormats)[e];if(!o)throw Error(`Unknown format "${e}"`);return o},t.exports=e=r,Object.defineProperty(e,"__esModule",{value:!0}),e.default=r}),mP=d4(),mT=mh(),mO=mR();let mC=a_(mk(),1).default;function mI(e){let t=new e({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return mC(t),t}var mN=class{_ajv;_ajvDraft7;_ajv2019;_userAjv;constructor(e){this._userAjv=void 0!==e,this._ajv=e}get ajv(){return this._ajv??=mI(mO.Ajv2020)}_engineFor(e){if(this._userAjv)return this.ajv;let t=function(e,t){if(!("$schema"in e)||"string"!=typeof e.$schema)return"2020-12";let a=e.$schema.replace(/#$/,"");if(aS.has(a))return"2020-12";if(aw.has(a))return"2019-09";if(a$.has(a)||aR.has(a))return"draft-7";throw Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}(e,"pass a pre-configured Ajv instance to AjvJsonSchemaValidator(ajv) to validate other dialects.");return"2020-12"===t?this.ajv:"2019-09"===t?this._ajv2019??=mI(mT.Ajv2019):this._ajvDraft7??=mI(mP.Ajv)}getValidator(e){let t=this._engineFor(e),a="$id"in e&&"string"==typeof e.$id?t.getSchema(e.$id)??t.compile(e):t.compile(e);return e=>a(e)?{valid:!0,data:e,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:t.errorsText(a.errors)}}};mP.Ajv;let mq=Symbol.for("mcp.completable");function mA(e){return!!e&&"object"==typeof e&&mq in e}let mz=0x80000000-1;function mM(e,t){if(!Number.isFinite(e)||e<1)return;let a=setInterval(t,Math.min(e,mz));return a.unref?.(),a}var mL=class{_listeners=new Set;constructor(e){this.onerror=e}publish(e){for(let t of this._listeners)try{t(e)}catch(e){this.onerror?.(e instanceof Error?e:Error(String(e)))}}subscribe(e){this._listeners.add(e);let t=!0;return()=>{t&&(t=!1,this._listeners.delete(e))}}get listenerCount(){return this._listeners.size}};function mU(e,t,a){return Response.json({jsonrpc:"2.0",error:{code:t,message:a},id:e},{status:200})}function mD(e,t){return{method:e.method,params:{...e.params,_meta:{...e.params?._meta,[ro]:t}}}}function mH(e,t,a){if(null===a||"object"!=typeof a||"string"!=typeof a.method)throw new pO(pT.InternalError,`Handler for ${e} returned an invalid input request '${t}': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let o=function(e){switch(e.method){case"elicitation/create":if(e.params?.mode==="url")return{elicitation:{url:{}}};return{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;if(void 0!==t&&(void 0!==t.tools||void 0!==t.toolChoice))return{sampling:{tools:{}}};return{sampling:{}}}case"roots/list":return{roots:{}};default:return}}(a);if(void 0===o)throw new pO(pT.InternalError,`Handler for ${e} returned an input request '${t}' of kind '${a.method}', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:a,required:o}}function mF(e,t){if("tools/call"===e)return{content:[{type:"text",text:t}],isError:!0};throw new pO(pT.InternalError,t)}var mV=class{constructor(e){this._host=e}async fulfill(e,t,a,o,n){let{maxRounds:i,roundTimeoutMs:s}=this._host,r=o.mcpReq.signal,c=n,l=0;for(;;){let n;if((l+=1)>i)return mF(e,`Multi-round-trip request '${e}' still required input after ${i} rounds (inputRequired.maxRounds)`);let p=c.inputRequests,u=null!=p&&Object.keys(p).length>0,d="string"==typeof c.requestState?c.requestState:void 0;if(!u&&void 0===d)throw new pO(pT.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(u){let t=this._host.resolvedClientCapabilities(o),a=[];for(let[o,n]of Object.entries(p)){let{embedded:i,required:s}=mH(e,o,n);if("roots/list"!==i.method&&void 0===i.params)throw new pO(pT.InternalError,`Handler for ${e} returned an input request '${o}' of kind '${i.method}' without params`);if(void 0!==pe(s,t))return mF(e,`Cannot request input '${o}' (${i.method}): the client on this 2025-era connection did not declare the required capability${void 0===t?" (no client capabilities are available on this connection — per-request legacy serving cannot receive server-to-client requests)":""}`);a.push([o,i])}let i=function(e){let t=new AbortController,a=()=>t.abort(e?.reason);return e?.addEventListener("abort",a,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:e=>t.abort(e),dispose:()=>e?.removeEventListener("abort",a)}}(r);try{let e={relatedRequestId:o.mcpReq.id,timeout:s,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:i.signal},t=await Promise.all(a.map(async([t,a])=>{try{return[t,await this._dispatchLeg(a,e)]}catch(e){throw i.abort(e),e}}));n=Object.fromEntries(t)}catch(t){if(r.aborted)throw t;return mF(e,`Fulfilling input required by '${e}' failed: ${t instanceof Error?t.message:String(t)}`)}finally{i.dispose()}}else await function(e){return new Promise((t,a)=>{if(e?.aborted)return void a(e.reason instanceof l6?e.reason:new l6(l5.RequestTimeout,String(e.reason)));let o=setTimeout(()=>{e?.removeEventListener("abort",n),t()},250),n=()=>{clearTimeout(o),a(e?.reason instanceof l6?e.reason:new l6(l5.RequestTimeout,String(e?.reason)))};e?.addEventListener("abort",n,{once:!0})})}(r);let m={...o,mcpReq:{...o.mcpReq,inputResponses:n,droppedInputResponseKeys:void 0,requestState:function(e){return()=>e}(d)}};if(void 0!==d){let t=await this._host.verifyRequestState(d,m,e);void 0!==t&&(m=uF(m,t))}let h=await t(a,m);if(!ua(h))return h;c=h}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let a=e.params;return"url"===a.mode&&void 0===a.elicitationId&&(a={...a,elicitationId:function(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let a=[...t].map(e=>e.toString(16).padStart(2,"0")).join("");return`${a.slice(0,8)}-${a.slice(8,12)}-${a.slice(12,16)}-${a.slice(16,20)}-${a.slice(20)}`}()}),await this._host.sendElicitation(a,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}};let mB=new Set(["tools/call","prompts/get","resources/read"]);var mJ=class extends uV{_clientCapabilities;_clientVersion;static{s=(e,t)=>{void 0!==t.clientCapabilities&&(e._clientCapabilities=t.clientCapabilities),void 0!==t.clientInfo&&(e._clientVersion=t.clientInfo)},r=(e,t)=>{let a=t.filter(t=>!e._supportedProtocolVersions.includes(t));a.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...a]),e.setRequestHandler("server/discover",()=>e._ondiscover())},c=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_legacyInputRequiredShim(){return this._legacyShim??=new mV({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,a)=>this._verifyRequestState(e,t,a),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new mN,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=function(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??8,roundTimeoutMs:e?.roundTimeoutMs??6e5,legacyShim:e?.legacyShim??!0}}(t?.inputRequired),t?.cacheHints!==void 0){for(let[e,a]of Object.entries(t.cacheHints))void 0!==a&&pP(a,`cacheHints['${e}']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",e=>this._oninitialize(e)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),po(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let a=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:o}=e.params,n=iB(cF,o);return n.success&&this._loggingLevels.set(a,n.data),{}})}buildContext(e,t){let a=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(t,a,o)=>{let n;if(!this._capabilities.logging)return Promise.resolve();if(this._servedModernEra()){if(void 0===(n=e.mcpReq.envelope?.[rn]))return Promise.resolve()}else n=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return void 0!==n&&this.LOG_LEVEL_SEVERITY.get(t)<this.LOG_LEVEL_SEVERITY.get(n)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:t,data:a,logger:o}})},elicitInput:(e,t)=>this.elicitInput(e,t),requestSampling:(e,t)=>this.createMessage(e,t)},http:a?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(cF.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let a=this._loggingLevels.get(t);return!!a&&this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(a)};registerCapabilities(e){if(this.transport)throw new l6(l5.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=function(e,t){let a={...e};for(let e in t){let o=t[e];if(void 0===o)continue;let n=a[e];a[e]=uB(n)&&uB(o)?{...n,...o}:o}return a}(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if("tools/call"!==e){let a=this._cacheHints?.[e],o=mB.has(e);return void 0!==a||o?async(n,i)=>{let s=o?await this._invokeInputRequiredCapableHandler(e,t,n,i):await t(n,i);if(ua(s)){if(!o)throw new pO(pT.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return s}return void 0===a?s:pj(s,a)}:async(a,o)=>{let n=await t(a,o);if(ua(n))throw new pO(pT.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return n}}return async(e,a)=>{let o=pX(this._negotiatedProtocolVersion),n=o.validateRequest("tools/call",e);if(!n.ok)throw new pO("not-in-era"===n.reason?pT.InternalError:pT.InvalidParams,"not-in-era"===n.reason?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${n.message}`);let i=await this._invokeInputRequiredCapableHandler("tools/call",t,e,a);if(ua(i))return i;let s=ps(i),r=o.validateResult("tools/call",s);if(!r.ok)throw new pO("not-in-era"===r.reason?pT.InternalError:pT.InvalidParams,"not-in-era"===r.reason?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${r.message}`);return r.value}}_servedModernEra(){return void 0!==this._negotiatedProtocolVersion&&this._negotiatedProtocolVersion>=pt}async _invokeInputRequiredCapableHandler(e,t,a,o){let n,i=this._servedModernEra(),s=o.mcpReq.requestState();if(void 0!==s&&"string"!=typeof s)throw new pO(pT.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let r=o;if("string"==typeof s){let t=await this._verifyRequestState(s,o,e);void 0!==t&&(r=uF(o,t))}try{n=await t(a,r)}catch(e){if(e instanceof pO&&e.code===pT.UrlElicitationRequired){if(!i)throw e;throw new pO(pT.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { …: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`)}throw e}if(!ua(n))return n;if(!i){if(!this._inputRequiredServing.legacyShim)throw new pO(pT.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??s6}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,a,r,n)}let c=n.inputRequests,l=null!=c&&Object.keys(c).length>0,p="string"==typeof n.requestState;if(!l&&!p)throw new pO(pT.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let t=this._inputRequestCapabilityView(o);for(let[a,o]of Object.entries(c)){let{embedded:n,required:i}=mH(e,a,o),s=pe(i,t);if(void 0!==s)throw new pq({requiredCapabilities:s},`Cannot request input '${a}' (${n.method}): the request's client capabilities do not declare the required capability`)}}return n}async _verifyRequestState(e,t,a){if(void 0!==this._requestStateVerify)try{return await this._requestStateVerify(e,t)}catch(e){throw this.onerror?.(Error(`requestState verification rejected ${a}: ${e instanceof Error?e.message:String(e)}`)),new pO(pT.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[ra]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new l6(l5.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: '${e}' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead — the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new l6(l5.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new l6(l5.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new l6(l5.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`)}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new l6(l5.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new l6(l5.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new l6(l5.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new l6(l5.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new l6(l5.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`)}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new l6(l5.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new l6(l5.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new l6(l5.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new l6(l5.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new l6(l5.CapabilityNotSupported,`Server does not support tools (required for ${e})`)}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let a=this._supportedProtocolVersions.filter(e=>!(e>=pt)),o=a.includes(t)?t:a[0]??s6;return this._negotiatedProtocolVersion=o,this.transport?.setProtocolVersion?.(o),{protocolVersion:o,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:po(this._supportedProtocolVersions),capabilities:{...this.getCapabilities()},...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new l6(l5.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let t=e.messages.at(-1),a=Array.isArray(t.content)?t.content:[t.content],o=a.some(e=>"tool_result"===e.type),n=e.messages.length>1?e.messages.at(-2):void 0,i=n?Array.isArray(n.content)?n.content:[n.content]:[],s=i.some(e=>"tool_use"===e.type);if(o){if(a.some(e=>"tool_result"!==e.type))throw new pO(pT.InvalidParams,"The last message must contain only tool_result content if any is present");if(!s)throw new pO(pT.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(s){let e=new Set(i.filter(e=>"tool_use"===e.type).map(e=>e.id)),t=new Set(a.filter(e=>"tool_result"===e.type).map(e=>e.toolUseId));if(e.size!==t.size||![...e].every(e=>t.has(e)))throw new pO(pT.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let a=!!(e.tools||e.toolChoice),o=await this.request({method:"sampling/createMessage",params:e},t),n=this._wireCodec().samplingResultVariant(a,o);if(!n.ok)throw new l6(l5.InvalidResult,`Invalid sampling/createMessage result: ${"invalid"===n.reason?n.message:n.reason}`);return n.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new l6(l5.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new l6(l5.CapabilityNotSupported,"Client does not support form elicitation.")}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,a){let o=e.mode??"form",n=a?.validateAcceptedContent??!0;switch(o){case"url":return this.request({method:"elicitation/create",params:e},t);case"form":{let a="form"===e.mode?e:{...e,mode:"form"},o=await this.request({method:"elicitation/create",params:a},t);if(n&&"accept"===o.action&&o.content&&a.requestedSchema)try{let e=this._jsonSchemaValidator.getValidator(a.requestedSchema)(o.content);if(!e.valid)throw new pO(pT.InvalidParams,`Elicitation response content does not match requested schema: ${e.errorMessage}`)}catch(e){if(e instanceof pO)throw e;throw new pO(pT.InternalError,`Error validating elicitation response: ${e instanceof Error?e.message:String(e)}`)}return o}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new l6(l5.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}},mG=class{server;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(void 0!==t&&t.enabled){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(void 0===t.inputSchema)return mK;try{let a=uj(t.inputSchema,"input");return this._toolInputSchemaJson[e]=a,a}catch{return}}}constructor(e,t){this.server=new mJ(e,t),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let a={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?uj(t.inputSchema,"input"):mK,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(a.outputSchema=uj(t.outputSchema,"output")),a})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let a=this._registeredTools[e.params.name];if(!a)throw new pO(pT.InvalidParams,`Tool ${e.params.name} not found`);if(!a.enabled)throw new pO(pT.InvalidParams,`Tool ${e.params.name} disabled`);try{let o=await this.validateToolInput(a,e.params.arguments,e.params.name),n=await this.executeToolHandler(a,o,t);if(await this.validateToolOutput(a,n,e.params.name),ua(n))return n;return this.server.projectCallToolResult(n,a.outputSchemaJson)}catch(e){if(e instanceof pO&&e.code===pT.UrlElicitationRequired)throw e;return this.createToolError(e instanceof Error?e.message:String(e))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,a){if(!e.inputSchema)return;let o=await uE(e.inputSchema,t??{});if(!o.success)throw new pO(pT.InvalidParams,`Input validation error: Invalid arguments for tool ${a}: ${o.error}`);return o.data}async validateToolOutput(e,t,a){if(!e.outputSchema||ua(t)||t.isError)return;if(void 0===t.structuredContent)throw new pO(pT.InvalidParams,`Output validation error: Tool ${a} has an output schema but no structured content was provided`);let o=await uE(e.outputSchema,t.structuredContent);if(!o.success)throw new pO(pT.InvalidParams,`Output validation error: Invalid structured content for tool ${a}: ${o.error}`)}async executeToolHandler(e,t,a){return e.executor(t,a)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":if("ref/prompt"!==e.params.ref.type)throw TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`);return this.handlePromptCompletion(e,e.params.ref);case"ref/resource":if("ref/resource"!==e.params.ref.type)throw TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`);return this.handleResourceCompletion(e,e.params.ref);default:throw new pO(pT.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let a=this._registeredPrompts[t.name];if(!a)throw new pO(pT.InvalidParams,`Prompt ${t.name} not found`);if(!a.enabled)throw new pO(pT.InvalidParams,`Prompt ${t.name} disabled`);if(!a.argsSchema)return mQ;let o=m1(m0(a.argsSchema)?.[e.params.argument.name]);if(!mA(o))return mQ;let n=o[mq]?.complete;return n?mY(await n(e.params.argument.value,e.params.context)):mQ}async handleResourceCompletion(e,t){let a=Object.values(this._registeredResourceTemplates).find(e=>e.resourceTemplate.uriTemplate.toString()===t.uri);if(!a){if(this._registeredResources[t.uri])return mQ;throw new pO(pT.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=a.resourceTemplate.completeCallback(e.params.argument.name);return o?mY(await o(e.params.argument.value,e.params.context)):mQ}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let a=Object.entries(this._registeredResources).filter(([e,t])=>t.enabled).map(([e,t])=>({uri:e,name:t.name,...t.metadata})),o=[];for(let e of Object.values(this._registeredResourceTemplates))if(e.resourceTemplate.listCallback)for(let a of(await e.resourceTemplate.listCallback(t)).resources)o.push({...e.metadata,...a});return{resources:[...a,...o]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let a;try{a=new URL(e.params.uri)}catch{throw new pO(pT.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let o=this._registeredResources[a.toString()];if(o){if(!o.enabled)throw new pO(pT.InvalidParams,`Resource ${a} disabled`);return pj(await o.readCallback(a,t),o.cacheHint)}for(let e of Object.values(this._registeredResourceTemplates)){let o=e.resourceTemplate.uriTemplate.match(a.toString());if(o)return pj(await e.readCallback(a,o,t),e.cacheHint)}throw new pC(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>{let a,o,n;return{name:e,title:t.title,description:t.description,arguments:t.argsSchema?(o=(a=uj(t.argsSchema,"input")).properties||{},n=a.required||[],Object.entries(o).map(([e,t])=>({name:e,description:t?.description,required:n.includes(e)}))):void 0,icons:t.icons,_meta:t._meta}})})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let a=this._registeredPrompts[e.params.name];if(!a)throw new pO(pT.InvalidParams,`Prompt ${e.params.name} not found`);if(!a.enabled)throw new pO(pT.InvalidParams,`Prompt ${e.params.name} disabled`);return a.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,a,o){let n=a.cacheHint,i=a;if(void 0!==n){pP(n,`resource ${e}`);let t={...a};delete t.cacheHint,i=t}if("string"==typeof t){if(this._registeredResources[t])throw Error(`Resource ${t} is already registered`);let s=this._createRegisteredResource(e,a.title,t,i,o);return void 0!==n&&(s.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}{if(this._registeredResourceTemplates[e])throw Error(`Resource template ${e} is already registered`);let s=this._createRegisteredResourceTemplate(e,a.title,t,i,o);return void 0!==n&&(s.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}_createRegisteredResource(e,t,a,o,n){let i={name:e,title:t,metadata:o,readCallback:n,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({uri:null}),update:e=>{void 0!==e.uri&&e.uri!==a&&(delete this._registeredResources[a],e.uri&&(this._registeredResources[e.uri]=i)),void 0!==e.name&&(i.name=e.name),void 0!==e.title&&(i.title=e.title),void 0!==e.metadata&&(i.metadata=e.metadata),void 0!==e.callback&&(i.readCallback=e.callback),void 0!==e.enabled&&(i.enabled=e.enabled),this.sendResourceListChanged()}};return this._registeredResources[a]=i,i}_createRegisteredResourceTemplate(e,t,a,o,n){let i={resourceTemplate:a,title:t,metadata:o,readCallback:n,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({name:null}),update:t=>{void 0!==t.name&&t.name!==e&&(delete this._registeredResourceTemplates[e],t.name&&(this._registeredResourceTemplates[t.name]=i)),void 0!==t.title&&(i.title=t.title),void 0!==t.template&&(i.resourceTemplate=t.template),void 0!==t.metadata&&(i.metadata=t.metadata),void 0!==t.callback&&(i.readCallback=t.callback),void 0!==t.enabled&&(i.enabled=t.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=i;let s=a.uriTemplate.variableNames;return Array.isArray(s)&&s.some(e=>!!a.completeCallback(e))&&this.setCompletionRequestHandler(),i}_createRegisteredPrompt(e,t,a,o,n,i,s){let r=o,c=n,l={title:t,description:a,argsSchema:o,icons:i,_meta:s,handler:mX(e,o,n),enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:t=>{void 0!==t.name&&t.name!==e&&(delete this._registeredPrompts[e],t.name&&(this._registeredPrompts[t.name]=l)),void 0!==t.title&&(l.title=t.title),void 0!==t.description&&(l.description=t.description),void 0!==t.icons&&(l.icons=t.icons),void 0!==t._meta&&(l._meta=t._meta);let a=!1;void 0!==t.argsSchema&&(l.argsSchema=t.argsSchema,r=t.argsSchema,a=!0),void 0!==t.callback&&(c=t.callback,a=!0),a&&(l.handler=mX(e,r,c)),void 0!==t.enabled&&(l.enabled=t.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=l,o){let e=m0(o);e&&Object.values(e).some(e=>mA(m1(e)))&&this.setCompletionRequestHandler()}return l}_createRegisteredTool(e,t,a,o,n,i,s,r,c,l){if(uX(e),void 0!==o)try{let t=uj(o,"input");this._toolInputSchemaJson[e]=t;let a=us(t);a.valid||console.warn(`[mcp-sdk] tool '${e}' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${a.reason}`)}catch{}let p=l,u={title:t,description:a,inputSchema:o,outputSchema:n,outputSchemaJson:mW(n),annotations:i,icons:s,execution:r,_meta:c,handler:l,executor:mZ(o,l),enabled:!0,disable:()=>u.update({enabled:!1}),enable:()=>u.update({enabled:!0}),remove:()=>u.update({name:null}),update:t=>{void 0!==t.name&&t.name!==e&&("string"==typeof t.name&&uX(t.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],t.name&&(delete this._toolInputSchemaJson[t.name],this._registeredTools[t.name]=u,e=t.name)),void 0!==t.title&&(u.title=t.title),void 0!==t.description&&(u.description=t.description);let a=!1;void 0!==t.paramsSchema&&(u.inputSchema=t.paramsSchema,delete this._toolInputSchemaJson[e],a=!0),void 0!==t.callback&&(u.handler=t.callback,p=t.callback,a=!0),a&&(u.executor=mZ(u.inputSchema,p)),void 0!==t.outputSchema&&(u.outputSchema=t.outputSchema,u.outputSchemaJson=mW(t.outputSchema)),void 0!==t.annotations&&(u.annotations=t.annotations),void 0!==t.icons&&(u.icons=t.icons),void 0!==t._meta&&(u._meta=t._meta),void 0!==t.enabled&&(u.enabled=t.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=u,this.setToolRequestHandlers(),this.sendToolListChanged(),u}registerTool(e,t,a){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let{title:o,description:n,inputSchema:i,outputSchema:s,annotations:r,icons:c,_meta:l}=t;return this._createRegisteredTool(e,o,n,uY(i),uY(s),r,c,void 0,l,a)}registerPrompt(e,t,a){if(this._registeredPrompts[e])throw Error(`Prompt ${e} is already registered`);let{title:o,description:n,argsSchema:i,icons:s,_meta:r}=t,c=this._createRegisteredPrompt(e,o,n,uY(i),a,s,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),c}isConnected(){return void 0!==this.server.transport}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};function mZ(e,t){return e?async(e,a)=>t(e,a):async(e,a)=>t(a)}let mK={type:"object",properties:{}};function mW(e){if(void 0!==e)try{return uj(e,"output")}catch{return}}function mX(e,t,a){return t?async(o,n)=>{let i=await uE(t,o);if(!i.success)throw new pO(pT.InvalidParams,`Invalid arguments for prompt ${e}: ${i.error}`);return a(i.data,n)}:async(e,t)=>a(t)}function mY(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}let mQ={completion:{values:[],hasMore:!1}};function m0(e){if(e.shape&&"object"==typeof e.shape)return e.shape}function m1(e){return e?.type!=="optional"?e:e.def?.innerType??e}var m2=class{onclose;onerror;onmessage;_classification;_responseMode;_started=!1;_used=!1;_closed=!1;_terminalDelivered=!1;_dispatchWindowOpen=!1;_requestId;_deferredResponse;_sse;_abortCleanup;_keepAliveMs;constructor(e){this._classification=e.classification,this._responseMode=e.responseMode??"auto",this._keepAliveMs=e.keepAliveMs??15e3}async start(){if(this._started)throw Error("PerRequestHTTPServerTransport is already started");this._started=!0}async handleMessage(e,t){if(this._used)throw Error("PerRequestHTTPServerTransport serves exactly one exchange; construct a new transport per request");if(!this._started||void 0===this.onmessage)throw Error("PerRequestHTTPServerTransport is not connected: connect a server to this transport before handling a message");if(this._closed)throw Error("PerRequestHTTPServerTransport is closed");this._used=!0;let a=t?.request?.signal;if(a?.aborted)throw await this.close(),new l6(l5.ConnectionClosed,"The request was aborted before it could be handled");let o={classification:this._classification,...t?.request!==void 0&&{request:t.request},...t?.authInfo!==void 0&&{authInfo:t.authInfo}};if(p8(e)){let t,n;this._requestId=e.id;let i=new Promise((e,a)=>{t=e,n=a});if(this._deferredResponse={promise:i,resolve:t,reject:n,settled:!1},void 0!==a){let e=()=>void this.close();a.addEventListener("abort",e,{once:!0}),this._abortCleanup=()=>a.removeEventListener("abort",e)}this._dispatchWindowOpen=!0;try{this.onmessage(e,o)}finally{this._dispatchWindowOpen=!1}return"sse"!==this._responseMode||this._closed||this._deferredResponse.settled||this.upgradeToSse(),i}return this.onmessage(e,o),new Response(null,{status:202})}async send(e,t){if(this._closed)return;let a=ue(e)||ut(e),o=a?e.id:t?.relatedRequestId;if(void 0===this._requestId||void 0===o||o!==this._requestId){a&&this.onerror?.(Error(`Received a response for an unknown request id: ${String(e.id)}`));return}if(a){if(this._terminalDelivered)return;this._terminalDelivered=!0;let t=ut(e)?e.error.code:void 0,a=void 0!==t&&(this._dispatchWindowOpen||t===pT.MissingRequiredClientCapability)?uf[t]:void 0;if(void 0!==a&&void 0===this._sse){this.settleResponse(Response.json(e,{status:a,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>void this.close());return}if(void 0!==this._sse||"sse"===this._responseMode){void 0===this._sse&&this.upgradeToSse(),this.writeMessageFrame(e),this.finalizeStream();return}this.settleResponse(Response.json(e,{status:200,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>void this.close());return}"json"!==this._responseMode&&(void 0===this._sse&&this.upgradeToSse(),this.writeMessageFrame(e))}writeCommentFrame(e){if(this._closed||void 0===this._sse||this._sse.closed)return;let t=e.split("\n").map(e=>`: ${e}`).join("\n");this.writeFrame(`${t}
|
|
183
|
+
|
|
184
|
+
`)}async close(){if(!this._closed){if(this._closed=!0,this._abortCleanup?.(),this._abortCleanup=void 0,this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),void 0!==this._sse&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}void 0===this._deferredResponse||this._deferredResponse.settled||(this._deferredResponse.settled=!0,this._deferredResponse.reject(new l6(l5.ConnectionClosed,"Connection closed before a response was produced"))),this.onclose?.()}}settleResponse(e){void 0===this._deferredResponse||this._deferredResponse.settled||(this._deferredResponse.settled=!0,this._deferredResponse.resolve(e))}upgradeToSse(){let e,t=new ReadableStream({start:t=>{e=t},cancel:()=>{this.close()}});this._sse={controller:e,encoder:new TextEncoder,closed:!1},this._sse.keepAliveTimer=mM(this._keepAliveMs,()=>this.writeCommentFrame("keepalive")),this.settleResponse(new Response(t,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}}))}finalizeStream(){if(this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),void 0!==this._sse&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}queueMicrotask(()=>void this.close())}writeMessageFrame(e){this.writeFrame(`event: message
|
|
185
|
+
data: ${JSON.stringify(e)}
|
|
186
|
+
|
|
187
|
+
`)}writeFrame(e){if(void 0!==this._sse&&!this._sse.closed)try{this._sse.controller.enqueue(this._sse.encoder.encode(e))}catch(e){this.onerror?.(Error(`Failed to write to the response stream: ${e}`))}}};async function m4(e,t,a){let o=new m2({classification:a.classification,...void 0!==a.responseMode&&{responseMode:a.responseMode},...void 0!==a.keepAliveMs&&{keepAliveMs:a.keepAliveMs}});return await e.connect(o),o.handleMessage(t,{...void 0!==a.request&&{request:a.request},...void 0!==a.authInfo&&{authInfo:a.authInfo}})}var m3=class{sessionIdGenerator;_started=!1;_closed=!1;_streamMapping=new Map;_requestToStreamMapping=new Map;_requestResponseMap=new Map;_initialized=!1;_enableJsonResponse=!1;_standaloneSseStreamId="_GET_stream";_eventStore;_onsessioninitialized;_onsessionclosed;_allowedHosts;_allowedOrigins;_enableDnsRebindingProtection;_retryInterval;_supportedProtocolVersions;_keepAliveMs;sessionId;onclose;onerror;onmessage;constructor(e={}){this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=e.enableJsonResponse??!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=e.enableDnsRebindingProtection??!1,this._retryInterval=e.retryInterval,this._supportedProtocolVersions=e.supportedProtocolVersions??s8,this._keepAliveMs=e.keepAliveMs??15e3}startKeepAlive(e,t){if(this._closed)return;let a=mM(this._keepAliveMs,()=>{try{e.enqueue(t.encode(": keepalive\n\n"))}catch{void 0!==a&&clearInterval(a)}});return a}async start(){if(this._started)throw Error("Transport already started");this._started=!0}setSupportedProtocolVersions(e){this._supportedProtocolVersions=e}createJsonErrorResponse(e,t,a,o){let n={code:t,message:a};return o?.data!==void 0&&(n.data=o.data),Response.json({jsonrpc:"2.0",error:n,id:null},{status:e,headers:{"Content-Type":"application/json",...o?.headers}})}validateRequestHeaders(e){if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let t=e.headers.get("host");if(!t||!this._allowedHosts.includes(t)){let e=`Invalid Host header: ${t}`;return this.onerror?.(Error(e)),this.createJsonErrorResponse(403,-32e3,e)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let t=e.headers.get("origin");if(t&&!this._allowedOrigins.includes(t)){let e=`Invalid Origin header: ${t}`;return this.onerror?.(Error(e)),this.createJsonErrorResponse(403,-32e3,e)}}}}async handleRequest(e,t){if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let a=this.validateRequestHeaders(e);if(a)return a;switch(e.method){case"POST":return this.handlePostRequest(e,t);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}supportsEmptySSEData(e){return this._supportedProtocolVersions.includes(e)&&e>="2025-11-25"}async writePrimingEvent(e,t,a,o){if(!this._eventStore||!this.supportsEmptySSEData(o))return;let n=await this._eventStore.storeEvent(a,{}),i=`id: ${n}
|
|
188
|
+
data:
|
|
189
|
+
|
|
190
|
+
`;void 0!==this._retryInterval&&(i=`id: ${n}
|
|
191
|
+
retry: ${this._retryInterval}
|
|
192
|
+
data:
|
|
193
|
+
|
|
194
|
+
`),e.enqueue(t.encode(i))}async handleGetRequest(e){let t,a;if(!e.headers.get("accept")?.includes("text/event-stream"))return this.onerror?.(Error("Not Acceptable: Client must accept text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let o=this.validateSession(e);if(o)return o;let n=this.validateProtocolVersion(e);if(n)return n;if(this._eventStore){let t=e.headers.get("last-event-id");if(t)return this.replayEvents(t)}if(void 0!==this._streamMapping.get(this._standaloneSseStreamId))return this.onerror?.(Error("Conflict: Only one SSE stream is allowed per session")),this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let i=new TextEncoder,s=new ReadableStream({start:e=>{t=e},cancel:()=>{void 0!==a&&clearInterval(a),this._streamMapping.get(this._standaloneSseStreamId)?.controller===t&&this._streamMapping.delete(this._standaloneSseStreamId)}}),r={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};return void 0!==this.sessionId&&(r["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:t,encoder:i,cleanup:()=>{void 0!==a&&clearInterval(a),this._streamMapping.delete(this._standaloneSseStreamId);try{t.close()}catch{}}}),a=this.startKeepAlive(t,i),new Response(s,{headers:r})}async replayEvents(e){if(!this._eventStore)return this.onerror?.(Error("Event store not configured")),this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let t,a,o,n;if(this._eventStore.getStreamIdForEventId){if(!(t=await this._eventStore.getStreamIdForEventId(e)))return this.onerror?.(Error("Invalid event ID format")),this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(void 0!==this._streamMapping.get(t))return this.onerror?.(Error("Conflict: Stream already has an active connection")),this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let i={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};void 0!==this.sessionId&&(i["mcp-session-id"]=this.sessionId);let s=new TextEncoder,r=!1,c=new ReadableStream({start:e=>{a=e},cancel:()=>{r=!0,void 0!==o&&clearInterval(o),void 0!==n&&this._streamMapping.get(n)?.controller===a&&this._streamMapping.delete(n)}}),l=new Set;if(n=await this._eventStore.replayEventsAfter(e,{send:async(e,t)=>{if(l.add(e),!this.writeSSEEvent(a,s,t,e))try{a.close()}catch{}}}),this._closed||r){try{a.close()}catch{}return this.createJsonErrorResponse(404,-32001,"Session not found")}if(this._streamMapping.get(n)?.cleanup(),this._streamMapping.set(n,{controller:a,encoder:s,replayedEventIds:l,cleanup:()=>{void 0!==o&&clearInterval(o),this._streamMapping.delete(n);try{a.close()}catch{}}}),n!==this._standaloneSseStreamId&&![...this._requestToStreamMapping.values()].includes(n)){this._streamMapping.delete(n);try{a.close()}catch{}}return this._streamMapping.get(n)?.controller===a&&(o=this.startKeepAlive(a,s)),new Response(c,{headers:i})}catch(e){return this.onerror?.(e),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,t,a,o){try{let n=`event: message
|
|
195
|
+
`;return o&&(n+=`id: ${o}
|
|
196
|
+
`),n+=`data: ${JSON.stringify(a)}
|
|
197
|
+
|
|
198
|
+
`,e.enqueue(t.encode(n)),!0}catch(e){return this.onerror?.(e),!1}}handleUnsupportedRequest(){return this.onerror?.(Error("Method not allowed.")),Response.json({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null},{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,t){try{let a,o,n,i,s=e.headers.get("accept");if(!s?.includes("application/json")||!s.includes("text/event-stream"))return this.onerror?.(Error("Not Acceptable: Client must accept both application/json and text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");if(!uK(e.headers.get("content-type")))return this.onerror?.(Error("Unsupported Media Type: Content-Type must be application/json")),this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");if(t?.parsedBody===void 0)try{a=await e.json()}catch(e){return this.onerror?.(e),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}else a=t.parsedBody;try{o=Array.isArray(a)?a.map(e=>rR.parse(e)):[rR.parse(a)]}catch(e){return this.onerror?.(e),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let r=o.some(e=>rU.safeParse(e).success);if(r){if(this._initialized&&void 0!==this.sessionId)return this.onerror?.(Error("Invalid Request: Server already initialized")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(o.length>1)return this.onerror?.(Error("Invalid Request: Only one initialization request is allowed")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=this.sessionIdGenerator?.(),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!r){let t=this.validateSession(e);if(t)return t;let a=this.validateProtocolVersion(e);if(a)return a}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");if(!o.some(e=>p8(e))){for(let a of o)this.onmessage?.(a,{authInfo:t?.authInfo,request:e});return new Response(null,{status:202})}let c=crypto.randomUUID(),l=o.find(e=>rU.safeParse(e).success),p=l?l.params.protocolVersion:e.headers.get("mcp-protocol-version")??"2025-03-26";if(this._enableJsonResponse)return new Promise(a=>{for(let e of(this._streamMapping.set(c,{resolveJson:a,cleanup:()=>{this._streamMapping.delete(c)}}),o))p8(e)&&this._requestToStreamMapping.set(e.id,c);for(let a of o)this.onmessage?.(a,{authInfo:t?.authInfo,request:e})});let u=new TextEncoder,d=new ReadableStream({start:e=>{n=e},cancel:()=>{void 0!==i&&clearInterval(i),this._streamMapping.get(c)?.controller===n&&this._streamMapping.delete(c)}}),m={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};for(let e of(void 0!==this.sessionId&&(m["mcp-session-id"]=this.sessionId),o))p8(e)&&(this._streamMapping.set(c,{controller:n,encoder:u,cleanup:()=>{void 0!==i&&clearInterval(i),this._streamMapping.delete(c);try{n.close()}catch{}}}),this._requestToStreamMapping.set(e.id,c));for(let a of(await this.writePrimingEvent(n,u,c,p),o)){let o,n;p8(a)&&this._eventStore&&this.supportsEmptySSEData(p)&&(o=()=>{this.closeSSEStream(a.id)},n=()=>{this.closeStandaloneSSEStream()}),this.onmessage?.(a,{authInfo:t?.authInfo,request:e,closeSSEStream:o,closeStandaloneSSEStream:n})}return this._streamMapping.get(c)?.controller===n&&(i=this.startKeepAlive(n,u)),new Response(d,{status:200,headers:m})}catch(e){return this.onerror?.(e),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(e)})}}async handleDeleteRequest(e){let t=this.validateSession(e);if(t)return t;let a=this.validateProtocolVersion(e);if(a)return a;try{return await Promise.resolve(this._onsessionclosed?.(this.sessionId)),new Response(null,{status:200})}finally{await this.close()}}validateSession(e){if(void 0===this.sessionIdGenerator)return;if(!this._initialized)return this.onerror?.(Error("Bad Request: Server not initialized")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let t=e.headers.get("mcp-session-id");return t?t!==this.sessionId?(this.onerror?.(Error("Session not found")),this.createJsonErrorResponse(404,-32001,"Session not found")):void 0:(this.onerror?.(Error("Bad Request: Mcp-Session-Id header is required")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required"))}validateProtocolVersion(e){let t=e.headers.get("mcp-protocol-version");if(null!==t&&!this._supportedProtocolVersions.includes(t)){let e=`Bad Request: Unsupported protocol version: ${t} (supported versions: ${this._supportedProtocolVersions.join(", ")})`;return this.onerror?.(Error(e)),this.createJsonErrorResponse(400,-32e3,e)}}async close(){if(!this._closed){for(let{cleanup:e}of(this._closed=!0,this._streamMapping.values()))e();this._streamMapping.clear(),this._requestResponseMap.clear(),this.onclose?.()}}closeSSEStream(e){let t=this._requestToStreamMapping.get(e);if(!t)return;let a=this._streamMapping.get(t);a&&a.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,t){let a=t?.relatedRequestId;if((ue(e)||ut(e))&&(a=e.id),void 0===a){let t;if(ue(e)||ut(e))throw Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");this._eventStore&&(t=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let a=this._streamMapping.get(this._standaloneSseStreamId);if(void 0===a)return;a.controller&&a.encoder&&(void 0===t||!a.replayedEventIds?.has(t))&&this.writeSSEEvent(a.controller,a.encoder,e,t);return}let o=this._requestToStreamMapping.get(a);if(!o)throw Error(`No connection established for request ID: ${String(a)}`);let n=this._streamMapping.get(o);if(!this._enableJsonResponse){let t;this._eventStore&&(t=await this._eventStore.storeEvent(o,e),n=this._streamMapping.get(o)),n?.controller&&n?.encoder&&(void 0===t||!n.replayedEventIds?.has(t))&&this.writeSSEEvent(n.controller,n.encoder,e,t)}if(ue(e)||ut(e)){this._requestResponseMap.set(a,e);let t=[...this._requestToStreamMapping.entries()].filter(([e,t])=>t===o).map(([e])=>e);if(t.every(e=>this._requestResponseMap.has(e))){if(!n){if(this._enableJsonResponse)throw Error(`No connection established for request ID: ${String(a)}`);if(!this._eventStore){for(let e of(this.onerror?.(Error(`Response for request ID ${String(a)} is undeliverable: per-request stream is disconnected and no eventStore is configured`)),t))this._requestResponseMap.delete(e),this._requestToStreamMapping.delete(e);return}for(let e of t)this._requestResponseMap.delete(e),this._requestToStreamMapping.delete(e);return}if(this._enableJsonResponse&&n.resolveJson){let e={"Content-Type":"application/json"};void 0!==this.sessionId&&(e["mcp-session-id"]=this.sessionId);let a=t.map(e=>this._requestResponseMap.get(e));1===a.length?n.resolveJson(Response.json(a[0],{status:200,headers:e})):n.resolveJson(Response.json(a,{status:200,headers:e})),n.cleanup()}else n.cleanup();for(let e of t)this._requestResponseMap.delete(e),this._requestToStreamMapping.delete(e)}}}};function m9(e){if(null===e||"object"!=typeof e||Array.isArray(e))return null;let{method:t,id:a}=e;return"string"!=typeof t?null:"string"==typeof a||"number"==typeof a?a:null}function m5(e,t,a,o,n=null){return Response.json({jsonrpc:"2.0",error:{code:t,message:a,...void 0!==o&&{data:o}},id:n},{status:e})}function m6(e,t=null){return m5(e.httpStatus,e.code,e.message,e.data,t)}function m8(e){return e instanceof Error?e:Error(String(e))}function m7(e=null){return m5(500,-32603,"Internal server error",void 0,e)}async function he(e,t,a=!0){let o,n=e.method.toUpperCase(),i=t,s=e,r=!1;if("POST"===n){if(void 0===i){let t;a&&(s=e.clone());try{t=await e.text()}catch{return{step:"unreadable-body"}}try{o=0===t.length?void 0:JSON.parse(t)}catch{r=!0}r||void 0===o||(i=o)}else o=i;if(r||void 0===o)return{step:"no-json-body",forwardRequest:s}}return{step:"classified",outcome:function(e){if("POST"!==(e={...e,...void 0!==e.protocolVersionHeader&&{protocolVersionHeader:uy(e.protocolVersionHeader)},...void 0!==e.mcpMethodHeader&&{mcpMethodHeader:uy(e.mcpMethodHeader)},...void 0!==e.mcpNameHeader&&{mcpNameHeader:uy(e.mcpNameHeader)}}).httpMethod.toUpperCase())return{kind:"legacy",reason:"http-method"};let t=e.body;if(Array.isArray(t)){if(0===t.length)return uv("jsonrpc-shape","empty-batch",400,new pO(pT.InvalidRequest,"Bad Request: empty JSON-RPC batch"),!0);for(let e of t){if(p3(ux(e)?e.params:void 0))return uv("jsonrpc-shape","batch-with-modern-element",400,new pO(pT.InvalidRequest,"Bad Request: JSON-RPC batches may not contain requests for protocol revision 2026-07-28 or later"),!0);if(!(p8(e)||p7(e)||ue(e)||ut(e)))return uv("jsonrpc-shape","batch-with-invalid-element",400,new pO(pT.InvalidRequest,"Bad Request: JSON-RPC batch contains an invalid message"),!0)}return{kind:"legacy",reason:"batch"}}return ue(t)||ut(t)?{kind:"legacy",reason:"response"}:ux(t)&&p8(t)?function(e,t){let a=t.params,o=t.method,n=e.protocolVersionHeader,i=void 0!==n&&n>=pt;if("initialize"===o&&!function(e){if(!p3(e))return!1;let t=p9(e);if(void 0===t||!(t>=pt))return!1;let a=p4(e);return void 0!==a&&0===p5(a).length}(a)){if(i)return ug("initialize-with-modern-header",n,"an initialize request (legacy handshake) was sent with a modern MCP-Protocol-Version header");let e=ux(a)&&"string"==typeof a.protocolVersion?a.protocolVersion:void 0;return{kind:"legacy",reason:"initialize",...void 0!==e&&{requestedVersion:e}}}if(p3(a)){let i=p4(a),s=(void 0===i?[]:p5(i))[0];if(void 0!==s)return uv("envelope","envelope-invalid",400,new pO(pT.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${s.key}: ${s.problem}`,{envelope:s}),!0);let r=p9(a);return void 0!==n&&void 0!==r&&n!==r?ug("header-body-version-mismatch",n,`the body envelope names protocol version ${r} but the MCP-Protocol-Version header names ${n}`):void 0!==e.mcpMethodHeader&&e.mcpMethodHeader!==o?ug("method-header-mismatch",e.mcpMethodHeader,`the body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"request",message:t,classification:u_(r)}}if(i){let e=p4(a),t=p5(e??{}).filter(e=>"missing"===e.problem).map(e=>e.key),o=void 0===e?["_meta"]:t.length>0?t:[s7];return uv("envelope","modern-header-without-claim",400,new pO(pT.InvalidParams,`Invalid params: the MCP-Protocol-Version header names protocol revision ${n}, but the request is missing the required per-request envelope key(s): ${o.join(", ")}`,{envelope:{missing:o}}),!0)}return{kind:"legacy",reason:"no-claim",...void 0!==n&&{requestedVersion:n}}}(e,t):ux(t)&&p7(t)?function(e,t){let a=t.params,o=t.method,n=e.protocolVersionHeader,i=void 0!==n&&n>=pt;if(p3(a)){let i=p9(a);if(void 0===i){let e=p4(a),t=(void 0===e?[]:p5(e)).find(e=>e.key===s7)??{key:s7,problem:"expected a protocol version string"};return uv("envelope","notification-envelope-invalid",400,new pO(pT.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${t.key}: ${t.problem}`,{envelope:t}),!0)}if(void 0!==n&&n!==i)return ug("notification-header-body-version-mismatch",n,`the notification envelope names protocol version ${i} but the MCP-Protocol-Version header names ${n}`);let s=u_(i);return"modern"===s.era&&void 0!==e.mcpMethodHeader&&e.mcpMethodHeader!==o?ug("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:s}}return i?void 0!==e.mcpMethodHeader&&e.mcpMethodHeader!==o?ug("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:{era:"modern",revision:n}}:{kind:"legacy",reason:"notification",...void 0!==n&&{requestedVersion:n}}}(e,t):uv("jsonrpc-shape","invalid-json-rpc-body",400,new pO(pT.InvalidRequest,"Bad Request: the request body is not a valid JSON-RPC message"),!0)}({httpMethod:n,protocolVersionHeader:e.headers.get("mcp-protocol-version")??void 0,mcpMethodHeader:e.headers.get("mcp-method")??void 0,mcpNameHeader:e.headers.get("mcp-name")??void 0,...void 0!==o&&{body:o}}),body:o,parsedBody:i,forwardRequest:s}}function ht(e,t={}){var a;let{legacy:o,onerror:n,responseMode:l}=t;if("function"==typeof o)throw TypeError("The 'legacy' option only accepts 'stateless' or 'reject', not a handler function. To serve 2025-era traffic with your own handler, route in user land with the exported isLegacyRequest(request) predicate in front of a strict (legacy: 'reject') handler.");let p=new Set,u=!1,d=e=>{try{n?.(e)}catch{}},m=t.bus??new mL(d),h={toolsChanged:()=>m.publish({kind:"tools_list_changed"}),promptsChanged:()=>m.publish({kind:"prompts_list_changed"}),resourcesChanged:()=>m.publish({kind:"resources_list_changed"}),resourceUpdated:e=>m.publish({kind:"resource_updated",uri:e})},f=function(e){let{bus:t,onerror:a}=e,o=e.maxSubscriptions??1024,n=e.keepAliveMs??15e3,i=new Set;return{serve:function(e,s,r,c){var l,p,u;let d,m,h,f,v,g,b;if(i.size>=o)return a?.(Error(`subscriptions/listen refused: subscription limit reached (${o})`)),mU(e.id,-32603,"Subscription limit reached");let y=(l=e,(v=pX(pW).validateRequest("subscriptions/listen",l)).ok?v.value.params?.notifications:void 0);if(void 0===y)return mU(e.id,-32602,"Invalid params: 'notifications' is required and must be a valid SubscriptionFilter");let x=(p=y,u=r,g={},b=e=>void 0===u||!0===e,!0===p.toolsListChanged&&b(u?.tools?.listChanged)&&(g.toolsListChanged=!0),!0===p.promptsListChanged&&b(u?.prompts?.listChanged)&&(g.promptsListChanged=!0),!0===p.resourcesListChanged&&b(u?.resources?.listChanged)&&(g.resourcesListChanged=!0),void 0!==p.resourceSubscriptions&&p.resourceSubscriptions.length>0&&b(u?.resources?.subscribe)&&(g.resourceSubscriptions=[...p.resourceSubscriptions]),g),_=e.id,S=new TextEncoder,w=!1,$=e=>{if(!w)try{d.enqueue(S.encode(e))}catch(e){a?.(e instanceof Error?e:Error(String(e)))}},R=(e,t)=>{$(`event: message
|
|
199
|
+
data: ${JSON.stringify({jsonrpc:"2.0",method:e,params:t})}
|
|
200
|
+
|
|
201
|
+
`)},j=e=>{if(!w){e&&$(`event: message
|
|
202
|
+
data: ${JSON.stringify({jsonrpc:"2.0",id:_,result:{resultType:"complete",_meta:{[ro]:_,[rt]:c}}})}
|
|
203
|
+
|
|
204
|
+
`),w=!0;try{m?.()}catch(e){a?.(e instanceof Error?e:Error(String(e)))}void 0!==h&&clearInterval(h),f?.(),i.delete(j);try{d.close()}catch{}}},E=new ReadableStream({start(e){d=e;let a=mD({method:"notifications/subscriptions/acknowledged",params:{notifications:x}},_);R(a.method,a.params),m=t.subscribe(e=>{if(w||!function(e,t){switch(t.kind){case"tools_list_changed":return!0===e.toolsListChanged;case"prompts_list_changed":return!0===e.promptsListChanged;case"resources_list_changed":return!0===e.resourcesListChanged;case"resource_updated":return void 0!==e.resourceSubscriptions&&e.resourceSubscriptions.includes(t.uri)}}(x,e))return;let t=mD(function(e){switch(e.kind){case"tools_list_changed":return{method:"notifications/tools/list_changed"};case"prompts_list_changed":return{method:"notifications/prompts/list_changed"};case"resources_list_changed":return{method:"notifications/resources/list_changed"};case"resource_updated":return{method:"notifications/resources/updated",params:{uri:e.uri}}}}(e),_);R(t.method,t.params)}),h=mM(n,()=>$(": keepalive\n\n")),i.add(j)},cancel(){j(!1)}});if(void 0!==s)if(s.aborted)j(!1);else{let e=()=>j(!1);s.addEventListener("abort",e,{once:!0}),f=()=>s.removeEventListener("abort",e)}return new Response(E,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}})},closeAll(){for(let e of i)e(!0)},get openCount(){return i.size}}}({bus:m,maxSubscriptions:t.maxSubscriptions??1024,keepAliveMs:t.keepAliveMs??15e3,onerror:d});"json"===l&&console.warn("responseMode: 'json' drops mid-call notifications. subscriptions/listen streams are always served over SSE regardless; other notifications emitted before a result are dropped.");let v="reject"===o?void 0:(a=t.keepAliveMs,async(t,o)=>{if("POST"!==t.method.toUpperCase())return m5(405,-32e3,"Method not allowed.");try{let n=await e({era:"legacy",...o?.authInfo!==void 0&&{authInfo:o.authInfo},requestInfo:t}),i=new m3({sessionIdGenerator:void 0,...void 0!==a&&{keepAliveMs:a}});await n.connect(i);let s=()=>{i.close().catch(()=>{}),n.close().catch(()=>{})};t.signal?.addEventListener("abort",s,{once:!0});let r=await i.handleRequest(t,{...o?.authInfo!==void 0&&{authInfo:o.authInfo},...o?.parsedBody!==void 0&&{parsedBody:o.parsedBody}});if(null===r.body||"text/event-stream"!==uZ(r.headers.get("content-type")))return s(),r;let c=r.body.getReader(),l=!1,p=()=>{l||(l=!0,s())},u=new ReadableStream({pull:async e=>{try{let{done:t,value:a}=await c.read();if(t){p(),e.close();return}void 0!==a&&e.enqueue(a)}catch(t){p(),e.error(t)}},cancel:e=>(p(),c.cancel(e).catch(()=>{}))});return new Response(u,{status:r.status,statusText:r.statusText,headers:r.headers})}catch(e){try{d?.(m8(e))}catch{}return m7(m9(o?.parsedBody))}});async function g(a,o,n){var u,m;let h=a.classification.revision;if(void 0===h||!pa.includes(h)){let e=new pN({supported:[...pa],requested:h??"unknown"});return d(e),m5(400,e.code,e.message,e.data,m9(a.message))}let v=function(e,t){if("request"!==t.messageKind)return;let a=t.message.method;if(void 0===e.mcpMethodHeader)return ug("method-header-missing","(missing)",`the body names method ${a} but the required Mcp-Method header is absent`,"standard-header-validation");let o=Object.hasOwn(ub,a)?ub[a]:void 0;if(void 0===o)return;let n=t.message.params?.[o],i="string"==typeof n?n:void 0;if(void 0===e.mcpNameHeader){if(void 0===i)return;return ug("name-header-missing","(missing)",`the body carries params.${o}="${i}" but the required Mcp-Name header is absent`,"standard-header-validation")}let s=uy(e.mcpNameHeader),r=ud(s);return void 0===r?ug("name-header-invalid-encoding",s,"the Mcp-Name header carries an invalid Base64 sentinel value","standard-header-validation"):void 0!==i&&r!==i?ug("name-header-mismatch",s,`the body carries params.${o}="${i}" but the Mcp-Name header names "${r}"`,"standard-header-validation"):void 0}({httpMethod:o.method,mcpMethodHeader:o.headers.get("mcp-method")??void 0,mcpNameHeader:o.headers.get("mcp-name")??void 0},a);if(void 0!==v)return d(Error(`Rejected inbound request (${v.cell}): ${v.message}`)),m6(v,m9(a.message));let g="request"===a.messageKind?p4(a.message.params):void 0,b=g?.[ra];if("request"===a.messageKind){let e=Object.hasOwn(l8,u=a.message.method)?l8[u]:void 0;if(void 0!==e){let t=pe(e,b);if(void 0!==t){let e=new pq({requiredCapabilities:t});return d(e),m5(uf[e.code]??400,e.code,e.message,e.data,a.message.id)}}}let y=await e({era:"modern",...void 0!==n&&{authInfo:n},requestInfo:o}),x=y instanceof mG?y.server:y;if("request"===a.messageKind&&"subscriptions/listen"===a.message.method){let e=x.getCapabilities(),t=c(x);return y.close().catch(d),f.serve(a.message,o.signal,e,t)}if("request"===a.messageKind&&"tools/call"===a.message.method&&y instanceof mG){let e=a.message.params,t="string"==typeof e?.name?e.name:void 0,n=void 0===t?void 0:y.toolInputSchemaJson(t);if(void 0!==n){let t=us(n);if(t.valid&&t.declarations.length>0){let n=function(e,t,a){for(let o of e){let e=`Mcp-Param-${o.headerName}`,n=a.get(e),i=function(e,t){let a=e;for(let e of t){if(null===a||"object"!=typeof a)return;a=a[e]}return a}(t,o.path);if(null==i)continue;let s=function(e){if("string"==typeof e)return e;if("boolean"==typeof e)return e?"true":"false";if("number"==typeof e){if(!Number.isFinite(e)||Number.isInteger(e)&&!Number.isSafeInteger(e))return;return String(e)}}(i);if(void 0===s)continue;if(null===n)return um("param-header-missing",e,`the body carries ${ul(o.path)}=${JSON.stringify(i)} but the ${e} header is absent`);let r=ud(n);if(void 0===r)return um("param-header-invalid-encoding",e,`the ${e} header carries an invalid Base64 sentinel value`);if(!(("integer"===o.type||"number"===o.type)&&uu.test(r)&&"number"==typeof i?Number(r)===i:r===s))return um("param-header-mismatch",e,`the ${e} header decodes to ${JSON.stringify(r)} but the body carries ${ul(o.path)}=${JSON.stringify(i)}`)}}(t.declarations,e?.arguments,o.headers);if(void 0!==n)return y.close().catch(d),d(Error(`Rejected inbound request (${n.cell}): ${n.message}`)),m6(n,a.message.id)}}}i(x,h),r(x,pa),void 0!==g&&(m={clientInfo:g[re],clientCapabilities:b},s(x,m));let _=x.onclose;p.add(x),x.onclose=()=>{p.delete(x),_?.()};try{let e=await m4(y,a.message,{classification:a.classification,request:o,...void 0!==n&&{authInfo:n},...void 0!==l&&{responseMode:l},...void 0!==t.keepAliveMs&&{keepAliveMs:t.keepAliveMs}});return"notification"===a.messageKind&&queueMicrotask(()=>void x.close().catch(()=>{})),e}catch(e){if(e instanceof l6&&e.code===l5.ConnectionClosed)return new Response(null,{status:499});return await x.close().catch(()=>{}),p.delete(x),d(m8(e)),m7(m9(a.message))}}async function b(e,t,a,o){if(void 0!==v)return v(t,{...void 0!==a&&{authInfo:a},...void 0!==o&&{parsedBody:o}});let n=function(e,t){switch(e.reason){case"http-method":return uv("http-method","modern-only-method-not-allowed",405,new pO(-32e3,"Method not allowed."),!0);case"batch":return uv("jsonrpc-shape","modern-only-batch-not-supported",400,new pO(pT.InvalidRequest,"Bad Request: JSON-RPC batches are not supported by this endpoint"),!0);case"response":return uv("jsonrpc-shape","modern-only-response-post",400,new pO(pT.InvalidRequest,"Bad Request: JSON-RPC responses cannot be posted to this endpoint"),!0);case"notification":return;case"initialize":case"no-claim":{let a=e.requestedVersion;return uv("era-classification","modern-only-missing-envelope",400,void 0===a?new pO(pT.UnsupportedProtocolVersion,"Unsupported protocol version: the request did not name a protocol version",{supported:[...t]}):new pN({supported:[...t],requested:a}),!0)}}}(e,pa);return void 0===n?new Response(null,{status:202}):(d(Error(`Rejected 2025-era request on a modern-only endpoint (${n.cell}): ${n.message}`)),m6(n,m9(o)))}async function y(e,t){let a=t?.authInfo;if("POST"===e.method.toUpperCase()&&!uK(e.headers.get("content-type")))return d(Error("Unsupported Media Type: Content-Type must be application/json")),m5(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let o=await he(e,t?.parsedBody);if("unreadable-body"===o.step)return m5(400,-32700,"Parse error: the request body could not be read");if("no-json-body"===o.step)return void 0!==v?v(o.forwardRequest,{...void 0!==a&&{authInfo:a}}):m5(400,-32700,"Parse error: the request body is not valid JSON");let{outcome:n,body:i,parsedBody:s,forwardRequest:r}=o;try{switch(n.kind){case"reject":return d(Error(`Rejected inbound request (${n.cell}): ${n.message}`)),m6(n,m9(i));case"modern":return await g(n,e,a);case"legacy":return await b(n,r,a,s)}}catch(e){return d(m8(e)),m7(m9(i))}}return{fetch:async(e,t)=>{if(u)throw Error("This MCP handler has been closed");try{return await y(e,t)}catch(e){return d(m8(e)),m7(m9(t?.parsedBody))}},notify:h,bus:m,close:async()=>{u=!0,f.closeAll();let e=[...p].map(e=>e.close().catch(()=>{}));p.clear(),await Promise.all(e)}}}m("http"),m("http2");let ha=m("stream"),ho=m("crypto");var hn=globalThis.Request,hi=class extends hn{constructor(e,t){"object"==typeof e&&hr in e&&(e=e[hr]()),void 0!==t?.body?.getReader&&(t.duplex??="half"),super(e,t)}},hs=Symbol("wrapBodyStream"),hr=Symbol("getRequestCache"),hc=Symbol("requestCache"),hl=Symbol("incomingKey"),hp=Symbol("urlKey"),hu=Symbol("headersKey"),hd=Symbol("abortControllerKey"),hm=Symbol("getAbortController"),hh={get method(){return this[hl].method||"GET"},get url(){return this[hp]},get headers(){return this[hu]||=(e=>{let t=[],a=e.rawHeaders;for(let e=0;e<a.length;e+=2){let{[e]:o,[e+1]:n}=a;58!==o.charCodeAt(0)&&t.push([o,n])}return new Headers(t)})(this[hl])},[hm](){return this[hr](),this[hd]},[hr](){return this[hd]||=new AbortController,this[hc]||=((e,t,a,o,n)=>{let i={method:e,headers:a,signal:n.signal};if("TRACE"===e){i.method="GET";let e=new hi(t,i);return Object.defineProperty(e,"method",{get:()=>"TRACE"}),e}if("GET"!==e&&"HEAD"!==e)if("rawBody"in o&&o.rawBody instanceof Buffer)i.body=new ReadableStream({start(e){e.enqueue(o.rawBody),e.close()}});else if(o[hs]){let e;i.body=new ReadableStream({async pull(t){try{e||=ha.Readable.toWeb(o).getReader();let{done:a,value:n}=await e.read();a?t.close():t.enqueue(n)}catch(e){t.error(e)}}})}else i.body=ha.Readable.toWeb(o);return new hi(t,i)})(this.method,this[hp],this.headers,this[hl],this[hd])}};["body","bodyUsed","cache","credentials","destination","integrity","mode","redirect","referrer","referrerPolicy","signal","keepalive"].forEach(e=>{Object.defineProperty(hh,e,{get(){return this[hr]()[e]}})}),["arrayBuffer","blob","clone","formData","json","text"].forEach(e=>{Object.defineProperty(hh,e,{value:function(){return this[hr]()[e]()}})}),Object.defineProperty(hh,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,a){let o={method:this.method,url:this.url,headers:this.headers,nativeRequest:this[hc]};return`Request (lightweight) ${a(o,{...t,depth:null==e?null:e-1})}`}}),Object.setPrototypeOf(hh,hi.prototype);var hf=Symbol("responseCache"),hv=Symbol("getResponseCache"),hg=Symbol("cache"),hb=globalThis.Response,hy=class e{#a;#o;[hv](){return delete this[hg],this[hf]||=new hb(this.#a,this.#o)}constructor(t,a){let o;if(this.#a=t,a instanceof e){let e=a[hf];if(e){this.#o=e,this[hv]();return}this.#o=a.#o,o=new Headers(a.#o.headers)}else this.#o=a;("string"==typeof t||void 0!==t?.getReader||t instanceof Blob||t instanceof Uint8Array)&&(this[hg]=[a?.status||200,t,o||a?.headers])}get headers(){let e=this[hg];return e?(e[2]instanceof Headers||(e[2]=new Headers(e[2]||{"content-type":"text/plain; charset=UTF-8"})),e[2]):this[hv]().headers}get status(){return this[hg]?.[0]??this[hv]().status}get ok(){let e=this.status;return e>=200&&e<300}};function hx(e,t){return async(a,o,n)=>{let i,s;"function"==typeof n&&(n=void 0);let r=!1,c=new AbortController;o.on("close",()=>{r||c.abort()}),!0===o.destroyed&&c.abort();try{let t=await hS(a,n,{signal:c.signal});i=await e.fetch(t,{...void 0!==a.auth&&{authInfo:a.auth},...void 0!==n&&{parsedBody:n}})}catch(e){var l;try{t?.onerror?.(e instanceof Error?e:Error(String(e)))}catch{}l=function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return null;let{method:t,id:a}=e;return"string"!=typeof t?null:"string"==typeof a||"number"==typeof a?a:null}(n),i=Response.json({jsonrpc:"2.0",error:{code:-32603,message:"Internal server error"},id:l},{status:500})}let p={};for(let[e,t]of i.headers)p[e]=t;if(o.writeHead(i.status,p),null===i.body){r=!0,o.end();return}o.on("drain",()=>{s?.(),s=void 0});let u=new Promise(e=>{c.signal.addEventListener("abort",()=>e(),{once:!0})});try{for await(let e of i.body){if(c.signal.aborted)break;!1===o.write(e)&&await Promise.race([new Promise(e=>{s=e}),u])}}catch{}r=!0,o.end()}}function h_(e){return Array.isArray(e)?e[0]:e}async function hS(e,t,a){let o,n=(e.method??"GET").toUpperCase(),i=`http://${h_(e.headers.host)??h_(e.headers[":authority"])??"localhost"}${e.url??"/"}`,s=new Headers;for(let[t,a]of Object.entries(e.headers))if(!(void 0===a||t.startsWith(":")))if(Array.isArray(a))for(let e of a)s.append(t,e);else s.set(t,a);if("GET"!==n&&"HEAD"!==n)if(void 0===t){let t=new TextDecoder,a="";for await(let o of e)a+="string"==typeof o?o:t.decode(o,{stream:!0});(a+=t.decode()).length>0&&(o=a)}else{let e=JSON.stringify(t);s.delete("content-encoding"),s.delete("transfer-encoding"),void 0===e?s.delete("content-length"):(o=e,s.set("content-length",String(new TextEncoder().encode(e).byteLength)))}return new Request(i,{method:n,headers:s,...a?.signal!==void 0&&{signal:a.signal},...void 0!==o&&{body:o}})}["body","bodyUsed","redirected","statusText","trailers","type","url"].forEach(e=>{Object.defineProperty(hy.prototype,e,{get(){return this[hv]()[e]}})}),["arrayBuffer","blob","clone","formData","json","text"].forEach(e=>{Object.defineProperty(hy.prototype,e,{value:function(){return this[hv]()[e]()}})}),Object.defineProperty(hy.prototype,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,a){let o={status:this.status,headers:this.headers,ok:this.ok,nativeResponse:this[hf]};return`Response (lightweight) ${a(o,{...t,depth:null==e?null:e-1})}`}}),Object.setPrototypeOf(hy,hb),Object.setPrototypeOf(hy.prototype,hb.prototype),void 0===globalThis.crypto&&(globalThis.crypto=ho),Symbol("outgoingEnded"),Symbol("incomingDraining");let hw=m("node:url");function h$(){return tH().resolve(tH().dirname((0,hw.fileURLToPath)(import.meta.url)),"assets","web-sdk-debugger")}export{mG as McpServer,ht as createMcpHandler,am as dist_esm,ao as eraseLines,h$ as getWebSdkDebuggerDistPath,eq as lodash_es_get,t7 as lodash_es_merge,tz as lodash_es_mergeWith,t0 as pluginExternalBundle,t6 as pluginReactAlias,sL as record,sk as schemas_array,sx as schemas_boolean,sD as schemas_enum,sv as schemas_number,sT as schemas_object,i3 as schemas_string,hx as toNodeHandler,sR as unknown};
|