@anthropic-ai/claude-agent-sdk 0.3.200 → 0.3.201

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/bridge.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
2
2
 
3
- // Version: 0.3.200
3
+ // Version: 0.3.201
4
4
  import{createRequire as zW}from"node:module";var LW=Object.create;var{getPrototypeOf:UW,defineProperty:hE,getOwnPropertyNames:OW}=Object;var FW=Object.prototype.hasOwnProperty;function MW(e){return this[e]}var PW,$W,Su=(e,t,r)=>{var n=e!=null&&typeof e==="object";if(n){var o=t?PW??=new WeakMap:$W??=new WeakMap,i=o.get(e);if(i)return i}r=e!=null?LW(UW(e)):{};let s=t||!e||!e.__esModule?hE(r,"default",{value:e,enumerable:!0}):r;for(let a of OW(e))if(!FW.call(s,a))hE(s,a,{get:MW.bind(e,a),enumerable:!0});if(n)o.set(e,s);return s};var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var HW=(e)=>e;function GW(e,t){this[e]=HW.bind(null,t)}var ft=(e,t)=>{for(var r in t)hE(e,r,{get:t[r],enumerable:!0,configurable:!0,set:GW.bind(t,r)})};var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=zW(import.meta.url),YW=Symbol.dispose||Symbol.for("Symbol.dispose"),jW=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),Ge=(e,t,r)=>{if(t!=null){if(typeof t!=="object"&&typeof t!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var n;if(r)n=t[jW];if(n===void 0)n=t[YW];if(typeof n!=="function")throw TypeError("Object not disposable");e.push([r,n,t])}else if(r)e.push([r]);return t},ze=(e,t,r)=>{var n=typeof SuppressedError==="function"?SuppressedError:function(s,a,c,u){return u=Error(c),u.name="SuppressedError",u.error=s,u.suppressed=a,u},o=(s)=>t=r?new n(s,t,"An error was suppressed during disposal"):(r=!0,s),i=(s)=>{while(s=e.pop())try{var a=s[1]&&s[1].call(s[2]);if(s[0])return Promise.resolve(a).then(i,(c)=>(o(c),i()))}catch(c){o(c)}if(r)throw t};return i()};function ku(e,t){return function(){return e.apply(t,arguments)}}function Du(e){return e!==null&&!ta(e)&&e.constructor!==null&&!ta(e.constructor)&&sr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function JW(e){let t;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)t=ArrayBuffer.isView(e);else t=e&&e.buffer&&tk(e.buffer);return t}function i4(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function Tu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!=="object")e=[e];if(ra(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Du(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length,a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function nk(e,t){if(Du(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;while(n-- >0)if(o=r[n],t===o.toLowerCase())return o;return null}function mE(){let{caseless:e,skipUndefined:t}=ok(this)&&this||{},r={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;let s=e&&nk(r,i)||i;if(mp(r[s])&&mp(o))r[s]=mE(r[s],o);else if(mp(o))r[s]=mE({},o);else if(ra(o))r[s]=o.slice();else if(!t||!ta(o))r[s]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Tu(arguments[o],n);return r}function S4(e){return!!(e&&sr(e.append)&&e[ek]==="FormData"&&e[Cp])}var VW,Ep,Cp,ek,Ip,cn=(e)=>(e=e.toLowerCase(),(t)=>Ip(t)===e),yp=(e)=>(t)=>typeof t===e,ra,ta,tk,qW,sr,rk,Ru=(e)=>e!==null&&typeof e==="object",WW=(e)=>e===!0||e===!1,mp=(e)=>{if(Ip(e)!=="object")return!1;let t=Ep(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ek in e)&&!(Cp in e)},ZW=(e)=>{if(!Ru(e)||Du(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},KW,XW,e4=(e)=>!!(e&&typeof e.uri<"u"),t4=(e)=>e&&typeof e.getParts<"u",r4,n4,o4=(e)=>Ru(e)&&sr(e.pipe),ZS,KS,s4=(e)=>{if(!e)return!1;if(KS&&e instanceof KS)return!0;let t=Ep(e);if(!t||t===Object.prototype)return!1;if(!sr(e.append))return!1;let r=Ip(e);return r==="formdata"||r==="object"&&sr(e.toString)&&e.toString()==="[object FormData]"},a4,c4,u4,l4,A4,d4=(e)=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),Ui,ok=(e)=>!ta(e)&&e!==Ui,p4=(e,t,r,{allOwnKeys:n}={})=>(Tu(t,(o,i)=>{if(r&&sr(o))Object.defineProperty(e,i,{value:ku(o,r),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),f4=(e)=>{if(e.charCodeAt(0)===65279)e=e.slice(1);return e},g4=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},h4=(e,t,r,n)=>{let o,i,s,a={};if(t=t||{},e==null)return t;do{o=Object.getOwnPropertyNames(e),i=o.length;while(i-- >0)if(s=o[i],(!n||n(s,e,t))&&!a[s])t[s]=e[s],a[s]=!0;e=r!==!1&&Ep(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},m4=(e,t,r)=>{if(e=String(e),r===void 0||r>e.length)r=e.length;r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},E4=(e)=>{if(!e)return null;if(ra(e))return e;let t=e.length;if(!rk(t))return null;let r=Array(t);while(t-- >0)r[t]=e[t];return r},C4,I4=(e,t)=>{let n=(e&&e[Cp]).call(e),o;while((o=n.next())&&!o.done){let i=o.value;t.call(e,i[0],i[1])}},y4=(e,t)=>{let r,n=[];while((r=e.exec(t))!==null)n.push(r);return n},B4,b4=(e)=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),XS,x4,ik=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Tu(r,(o,i)=>{let s;if((s=t(o,i,e))!==!1)n[i]=s||o}),Object.defineProperties(e,n)},_4=(e)=>{ik(e,(t,r)=>{if(sr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(!sr(n))return;if(t.enumerable=!1,"writable"in t){t.writable=!1;return}if(!t.set)t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}})},v4=(e,t)=>{let r={},n=(o)=>{o.forEach((i)=>{r[i]=!0})};return ra(e)?n(e):n(String(e).split(t)),r},Q4=()=>{},w4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,k4=(e)=>{let t=[,,,,,,,,,,],r=(n,o)=>{if(Ru(n)){if(t.indexOf(n)>=0)return;if(Du(n))return n;if(!("toJSON"in n)){t[o]=n;let i=ra(n)?[]:{};return Tu(n,(s,a)=>{let c=r(s,o+1);!ta(c)&&(i[a]=c)}),t[o]=void 0,i}}return n};return r(e,0)},D4,R4=(e)=>e&&(Ru(e)||sr(e))&&sr(e.then)&&sr(e.catch),sk,T4,N4=(e)=>e!=null&&sr(e[Cp]),I;var Ye=C(()=>{({toString:VW}=Object.prototype),{getPrototypeOf:Ep}=Object,{iterator:Cp,toStringTag:ek}=Symbol,Ip=((e)=>(t)=>{let r=VW.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:ra}=Array,ta=yp("undefined");tk=cn("ArrayBuffer");qW=yp("string"),sr=yp("function"),rk=yp("number"),KW=cn("Date"),XW=cn("File"),r4=cn("Blob"),n4=cn("FileList");ZS=i4(),KS=typeof ZS.FormData<"u"?ZS.FormData:void 0,a4=cn("URLSearchParams"),[c4,u4,l4,A4]=["ReadableStream","Request","Response","Headers"].map(cn);Ui=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();C4=((e)=>(t)=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ep(Uint8Array)),B4=cn("HTMLFormElement"),XS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),x4=cn("RegExp");D4=cn("AsyncFunction"),sk=((e,t)=>{if(e)return setImmediate;return t?((r,n)=>(Ui.addEventListener("message",({source:o,data:i})=>{if(o===Ui&&i===r)n.length&&n.shift()()},!1),(o)=>{n.push(o),Ui.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):(r)=>setTimeout(r)})(typeof setImmediate==="function",sr(Ui.postMessage)),T4=typeof queueMicrotask<"u"?queueMicrotask.bind(Ui):typeof process<"u"&&process.nextTick||sk,I={isArray:ra,isArrayBuffer:tk,isBuffer:Du,isFormData:s4,isArrayBufferView:JW,isString:qW,isNumber:rk,isBoolean:WW,isObject:Ru,isPlainObject:mp,isEmptyObject:ZW,isReadableStream:c4,isRequest:u4,isResponse:l4,isHeaders:A4,isUndefined:ta,isDate:KW,isFile:XW,isReactNativeBlob:e4,isReactNative:t4,isBlob:r4,isRegExp:x4,isFunction:sr,isStream:o4,isURLSearchParams:a4,isTypedArray:C4,isFileList:n4,forEach:Tu,merge:mE,extend:p4,trim:d4,stripBOM:f4,inherits:g4,toFlatObject:h4,kindOf:Ip,kindOfTest:cn,endsWith:m4,toArray:E4,forEachEntry:I4,matchAll:y4,isHTMLForm:B4,hasOwnProperty:XS,hasOwnProp:XS,reduceDescriptors:ik,freezeMethods:_4,toObjectSet:v4,toCamelCase:b4,noop:Q4,toFiniteNumber:w4,findKey:nk,global:Ui,isContextDefined:ok,isSpecCompliantForm:S4,toJSONObject:k4,isAsyncFn:D4,isThenable:R4,setImmediate:sk,asap:T4,isIterable:N4}});var Yt,U;var xr=C(()=>{Ye();Yt=class Yt extends Error{static from(e,t,r,n,o,i){let s=new Yt(e.message,t||e.code,r,n,o);if(s.cause=e,s.name=e.name,e.status!=null&&s.status==null)s.status=e.status;return i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e);if(Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o)this.response=o,this.status=o.status}toJSON(){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:I.toJSONObject(this.config),code:this.code,status:this.status}}};Yt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Yt.ERR_BAD_OPTION="ERR_BAD_OPTION";Yt.ECONNABORTED="ECONNABORTED";Yt.ETIMEDOUT="ETIMEDOUT";Yt.ERR_NETWORK="ERR_NETWORK";Yt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Yt.ERR_DEPRECATED="ERR_DEPRECATED";Yt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Yt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Yt.ERR_CANCELED="ERR_CANCELED";Yt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Yt.ERR_INVALID_URL="ERR_INVALID_URL";Yt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";U=Yt});var uk=y((QNe,ck)=>{var ak=v("stream").Stream,L4=v("util");ck.exports=un;function un(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}L4.inherits(un,ak);un.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;if(e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream)e.pause();return r};Object.defineProperty(un.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});un.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};un.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};un.prototype.pause=function(){this.source.pause()};un.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};un.prototype.pipe=function(){var e=ak.prototype.pipe.apply(this,arguments);return this.resume(),e};un.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data")this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(e)};un.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(e))}});var pk=y((wNe,dk)=>{var U4=v("util"),Ak=v("stream").Stream,lk=uk();dk.exports=ut;function ut(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}U4.inherits(ut,Ak);ut.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};ut.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};ut.prototype.append=function(e){var t=ut.isStreamLike(e);if(t){if(!(e instanceof lk)){var r=lk.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}if(this._handleErrors(e),this.pauseStreams)e.pause()}return this._streams.push(e),this};ut.prototype.pipe=function(e,t){return Ak.prototype.pipe.call(this,e,t),this.resume(),e};ut.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};ut.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=ut.isStreamLike(r);if(n)r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r);this._pipeNext(r)}.bind(this))};ut.prototype._pipeNext=function(e){this._currentStream=e;var t=ut.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};ut.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};ut.prototype.write=function(e){this.emit("data",e)};ut.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};ut.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};ut.prototype.end=function(){this._reset(),this.emit("end")};ut.prototype.destroy=function(){this._reset(),this.emit("close")};ut.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ut.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(e))};ut.prototype._updateDataSize=function(){this.dataSize=0;var e=this;if(this._streams.forEach(function(t){if(!t.dataSize)return;e.dataSize+=t.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};ut.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var fk=y((SNe,O4)=>{O4.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var Ck=y((z4)=>{/*!
5
5
  * mime-types
6
6
  * Copyright(c) 2014 Jonathan Ong
@@ -126,7 +126,7 @@ ${r.count} ${r.noun} ${r.is} pending:
126
126
 
127
127
  ${e.format(t)}
128
128
  `.trim())}}kY.exports=SY});var kh=y((IKe,LY)=>{var RY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:S_e}=ve(),k_e=jc();if(NY()===void 0)TY(new k_e);function TY(e){if(!e||typeof e.dispatch!=="function")throw new S_e("Argument agent must implement Agent");Object.defineProperty(globalThis,RY,{value:e,writable:!0,enumerable:!1,configurable:!1})}function NY(){return globalThis[RY]}LY.exports={setGlobalDispatcher:TY,getGlobalDispatcher:NY}});var Dh=y((yKe,UY)=>{UY.exports=class{#e;constructor(t){if(typeof t!=="object"||t===null)throw TypeError("handler must be an object");this.#e=t}onConnect(...t){return this.#e.onConnect?.(...t)}onError(...t){return this.#e.onError?.(...t)}onUpgrade(...t){return this.#e.onUpgrade?.(...t)}onResponseStarted(...t){return this.#e.onResponseStarted?.(...t)}onHeaders(...t){return this.#e.onHeaders?.(...t)}onData(...t){return this.#e.onData?.(...t)}onComplete(...t){return this.#e.onComplete?.(...t)}onBodySent(...t){return this.#e.onBodySent?.(...t)}}});var FY=y((BKe,OY)=>{var D_e=Ah();OY.exports=(e)=>{let t=e?.maxRedirections;return(r)=>function(o,i){let{maxRedirections:s=t,...a}=o;if(!s)return r(o,i);let c=new D_e(r,s,o,i);return r(a,c)}}});var PY=y((bKe,MY)=>{var R_e=yh();MY.exports=(e)=>(t)=>function(n,o){return t(n,new R_e({...n,retryOptions:{...e,...n.retryOptions}},{handler:o,dispatch:t}))}});var GY=y((xKe,HY)=>{var T_e=me(),{InvalidArgumentError:N_e,RequestAbortedError:L_e}=ve(),U_e=Dh();class $Y extends U_e{#e=1048576;#t=null;#r=!1;#n=!1;#o=0;#a=null;#i=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1))throw new N_e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=t}onConnect(e){this.#t=e,this.#i.onConnect(this.#l.bind(this))}#l(e){this.#n=!0,this.#a=e}onHeaders(e,t,r,n){let i=T_e.parseHeaders(t)["content-length"];if(i!=null&&i>this.#e)throw new L_e(`Response size (${i}) larger than maxSize (${this.#e})`);if(this.#n)return!0;return this.#i.onHeaders(e,t,r,n)}onError(e){if(this.#r)return;e=this.#a??e,this.#i.onError(e)}onData(e){if(this.#o=this.#o+e.length,this.#o>=this.#e)if(this.#r=!0,this.#n)this.#i.onError(this.#a);else this.#i.onComplete([]);return!0}onComplete(e){if(this.#r)return;if(this.#n){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}function O_e({maxSize:e}={maxSize:1048576}){return(t)=>function(n,o){let{dumpMaxSize:i=e}=n,s=new $Y({maxSize:i},o);return t(n,s)}}HY.exports=O_e});var JY=y((_Ke,VY)=>{var{isIP:F_e}=v("node:net"),{lookup:M_e}=v("node:dns"),P_e=Dh(),{InvalidArgumentError:tu,InformationalError:$_e}=ve(),zY=Math.pow(2,31)-1;class YY{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#n,this.pick=e.pick??this.#o}get full(){return this.#r.size===this.#t}runLookup(e,t,r){let n=this.#r.get(e.hostname);if(n==null&&this.full){r(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,o,(i,s)=>{if(i||s==null||s.length===0){r(i??new $_e("No DNS entries found"));return}this.setRecords(e,s);let a=this.#r.get(e.hostname),c=this.pick(e,a,o.affinity),u;if(typeof c.port==="number")u=`:${c.port}`;else if(e.port!=="")u=`:${e.port}`;else u="";r(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,n,o.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,t,r);return}let s;if(typeof i.port==="number")s=`:${i.port}`;else if(e.port!=="")s=`:${e.port}`;else s="";r(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${s}`)}}#n(e,t,r){M_e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,o)=>{if(n)return r(n);let i=new Map;for(let s of o)i.set(`${s.address}:${s.family}`,s);r(null,i.values())})}#o(e,t,r){let n=null,{records:o,offset:i}=t,s;if(this.dualStack){if(r==null)if(i==null||i===zY)t.offset=0,r=4;else t.offset++,r=(t.offset&1)===1?6:4;if(o[r]!=null&&o[r].ips.length>0)s=o[r];else s=o[r===4?6:4]}else s=o[r];if(s==null||s.ips.length===0)return n;if(s.offset==null||s.offset===zY)s.offset=0;else s.offset++;let a=s.offset%s.ips.length;if(n=s.ips[a]??null,n==null)return n;if(Date.now()-n.timestamp>n.ttl)return s.ips.splice(a,1),this.pick(e,t,r);return n}setRecords(e,t){let r=Date.now(),n={records:{4:null,6:null}};for(let o of t){if(o.timestamp=r,typeof o.ttl==="number")o.ttl=Math.min(o.ttl,this.#e);else o.ttl=this.#e;let i=n.records[o.family]??{ips:[]};i.ips.push(o),n.records[o.family]=i}this.#r.set(e.hostname,n)}getHandler(e,t){return new jY(this,e,t)}}class jY extends P_e{#e=null;#t=null;#r=null;#n=null;#o=null;constructor(e,{origin:t,handler:r,dispatch:n},o){super(r);this.#o=t,this.#n=r,this.#t={...o},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#o,this.#t,(t,r)=>{if(t)return this.#n.onError(t);let n={...this.#t,origin:r};this.#r(n,this)});return}this.#n.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#o);default:this.#n.onError(e);break}}}VY.exports=(e)=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0))throw new tu("Invalid maxTTL. Must be a positive number");if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1))throw new tu("Invalid maxItems. Must be a positive number and greater than zero");if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new tu("Invalid affinity. Must be either 4 or 6");if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean")throw new tu("Invalid dualStack. Must be a boolean");if(e?.lookup!=null&&typeof e?.lookup!=="function")throw new tu("Invalid lookup. Must be a function");if(e?.pick!=null&&typeof e?.pick!=="function")throw new tu("Invalid pick. Must be a function");let t=e?.dualStack??!0,r;if(t)r=e?.affinity??null;else r=e?.affinity??4;let n={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0},o=new YY(n);return(i)=>function(a,c){let u=a.origin.constructor===URL?a.origin:new URL(a.origin);if(F_e(u.hostname)!==0)return i(a,c);return o.runLookup(u,a,(A,p)=>{if(A)return c.onError(A);let d=null;d={...a,servername:u.hostname,origin:p,headers:{host:u.hostname,...a.headers}},i(d,o.getHandler({origin:u,dispatch:i,handler:c},a))}),!0}}});var Ls=y((vKe,tj)=>{var{kConstruct:H_e}=rt(),{kEnumerableProperty:ru}=me(),{iteratorMixin:G_e,isValidHeaderName:ld,isValidHeaderValue:WY}=Lr(),{webidl:xe}=Gt(),Nx=v("node:assert"),Rh=v("node:util"),xt=Symbol("headers map"),Fr=Symbol("headers map sorted");function qY(e){return e===10||e===13||e===9||e===32}function ZY(e){let t=0,r=e.length;while(r>t&&qY(e.charCodeAt(r-1)))--r;while(r>t&&qY(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function KY(e,t){if(Array.isArray(t))for(let r=0;r<t.length;++r){let n=t[r];if(n.length!==2)throw xe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});Lx(e,n[0],n[1])}else if(typeof t==="object"&&t!==null){let r=Object.keys(t);for(let n=0;n<r.length;++n)Lx(e,r[n],t[r[n]])}else throw xe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Lx(e,t,r){if(r=ZY(r),!ld(t))throw xe.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"});else if(!WY(r))throw xe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"});if(ej(e)==="immutable")throw TypeError("immutable");return Ux(e).append(t,r,!1)}function XY(e,t){return e[0]<t[0]?-1:1}class Th{cookies=null;constructor(e){if(e instanceof Th)this[xt]=new Map(e[xt]),this[Fr]=e[Fr],this.cookies=e.cookies===null?null:[...e.cookies];else this[xt]=new Map(e),this[Fr]=null}contains(e,t){return this[xt].has(t?e:e.toLowerCase())}clear(){this[xt].clear(),this[Fr]=null,this.cookies=null}append(e,t,r){this[Fr]=null;let n=r?e:e.toLowerCase(),o=this[xt].get(n);if(o){let i=n==="cookie"?"; ":", ";this[xt].set(n,{name:o.name,value:`${o.value}${i}${t}`})}else this[xt].set(n,{name:e,value:t});if(n==="set-cookie")(this.cookies??=[]).push(t)}set(e,t,r){this[Fr]=null;let n=r?e:e.toLowerCase();if(n==="set-cookie")this.cookies=[t];this[xt].set(n,{name:e,value:t})}delete(e,t){if(this[Fr]=null,!t)e=e.toLowerCase();if(e==="set-cookie")this.cookies=null;this[xt].delete(e)}get(e,t){return this[xt].get(t?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:t}}of this[xt])yield[e,t]}get entries(){let e={};if(this[xt].size!==0)for(let{name:t,value:r}of this[xt].values())e[t]=r;return e}rawValues(){return this[xt].values()}get entriesList(){let e=[];if(this[xt].size!==0)for(let{0:t,1:{name:r,value:n}}of this[xt])if(t==="set-cookie")for(let o of this.cookies)e.push([r,o]);else e.push([r,n]);return e}toSortedArray(){let e=this[xt].size,t=Array(e);if(e<=32){if(e===0)return t;let r=this[xt][Symbol.iterator](),n=r.next().value;t[0]=[n[0],n[1].value],Nx(n[1].value!==null);for(let o=1,i=0,s=0,a=0,c=0,u,A;o<e;++o){A=r.next().value,u=t[o]=[A[0],A[1].value],Nx(u[1]!==null),a=0,s=o;while(a<s)if(c=a+(s-a>>1),t[c][0]<=u[0])a=c+1;else s=c;if(o!==c){i=o;while(i>a)t[i]=t[--i];t[a]=u}}if(!r.next().done)throw TypeError("Unreachable");return t}else{let r=0;for(let{0:n,1:{value:o}}of this[xt])t[r++]=[n,o],Nx(o!==null);return t.sort(XY)}}}class Xt{#e;#t;constructor(e=void 0){if(xe.util.markAsUncloneable(this),e===H_e)return;if(this.#t=new Th,this.#e="none",e!==void 0)e=xe.converters.HeadersInit(e,"Headers contructor","init"),KY(this,e)}append(e,t){xe.brandCheck(this,Xt),xe.argumentLengthCheck(arguments,2,"Headers.append");let r="Headers.append";return e=xe.converters.ByteString(e,r,"name"),t=xe.converters.ByteString(t,r,"value"),Lx(this,e,t)}delete(e){xe.brandCheck(this,Xt),xe.argumentLengthCheck(arguments,1,"Headers.delete");let t="Headers.delete";if(e=xe.converters.ByteString(e,t,"name"),!ld(e))throw xe.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw TypeError("immutable");if(!this.#t.contains(e,!1))return;this.#t.delete(e,!1)}get(e){xe.brandCheck(this,Xt),xe.argumentLengthCheck(arguments,1,"Headers.get");let t="Headers.get";if(e=xe.converters.ByteString(e,t,"name"),!ld(e))throw xe.errors.invalidArgument({prefix:t,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){xe.brandCheck(this,Xt),xe.argumentLengthCheck(arguments,1,"Headers.has");let t="Headers.has";if(e=xe.converters.ByteString(e,t,"name"),!ld(e))throw xe.errors.invalidArgument({prefix:t,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,t){xe.brandCheck(this,Xt),xe.argumentLengthCheck(arguments,2,"Headers.set");let r="Headers.set";if(e=xe.converters.ByteString(e,r,"name"),t=xe.converters.ByteString(t,r,"value"),t=ZY(t),!ld(e))throw xe.errors.invalidArgument({prefix:r,value:e,type:"header name"});else if(!WY(t))throw xe.errors.invalidArgument({prefix:r,value:t,type:"header value"});if(this.#e==="immutable")throw TypeError("immutable");this.#t.set(e,t,!1)}getSetCookie(){xe.brandCheck(this,Xt);let e=this.#t.cookies;if(e)return[...e];return[]}get[Fr](){if(this.#t[Fr])return this.#t[Fr];let e=[],t=this.#t.toSortedArray(),r=this.#t.cookies;if(r===null||r.length===1)return this.#t[Fr]=t;for(let n=0;n<t.length;++n){let{0:o,1:i}=t[n];if(o==="set-cookie")for(let s=0;s<r.length;++s)e.push([o,r[s]]);else e.push([o,i])}return this.#t[Fr]=e}[Rh.inspect.custom](e,t){return t.depth??=e,`Headers ${Rh.formatWithOptions(t,this.#t.entries)}`}static getHeadersGuard(e){return e.#e}static setHeadersGuard(e,t){e.#e=t}static getHeadersList(e){return e.#t}static setHeadersList(e,t){e.#t=t}}var{getHeadersGuard:ej,setHeadersGuard:z_e,getHeadersList:Ux,setHeadersList:Y_e}=Xt;Reflect.deleteProperty(Xt,"getHeadersGuard");Reflect.deleteProperty(Xt,"setHeadersGuard");Reflect.deleteProperty(Xt,"getHeadersList");Reflect.deleteProperty(Xt,"setHeadersList");G_e("Headers",Xt,Fr,0,1);Object.defineProperties(Xt.prototype,{append:ru,delete:ru,get:ru,has:ru,set:ru,getSetCookie:ru,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[Rh.inspect.custom]:{enumerable:!1}});xe.converters.HeadersInit=function(e,t,r){if(xe.util.Type(e)==="Object"){let n=Reflect.get(e,Symbol.iterator);if(!Rh.types.isProxy(e)&&n===Xt.prototype.entries)try{return Ux(e).entriesList}catch{}if(typeof n==="function")return xe.converters["sequence<sequence<ByteString>>"](e,t,r,n.bind(e));return xe.converters["record<ByteString, ByteString>"](e,t,r)}throw xe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};tj.exports={fill:KY,compareHeaderName:XY,Headers:Xt,HeadersList:Th,getHeadersGuard:ej,setHeadersGuard:z_e,setHeadersList:Y_e,getHeadersList:Ux}});var dd=y((QKe,pj)=>{var{Headers:aj,HeadersList:rj,fill:j_e,getHeadersGuard:V_e,setHeadersGuard:cj,setHeadersList:uj}=Ls(),{extractBody:nj,cloneBody:J_e,mixinBody:q_e,hasFinalizationRegistry:lj,streamRegistry:Aj,bodyUnusable:W_e}=Oc(),Ox=me(),oj=v("node:util"),{kEnumerableProperty:Mr}=Ox,{isValidReasonPhrase:Z_e,isCancelled:K_e,isAborted:X_e,isBlobLike:eve,serializeJavascriptValueToJSONString:tve,isErrorLike:rve,isomorphicEncode:nve,environmentSettingsObject:ove}=Lr(),{redirectStatusSet:ive,nullBodyStatus:sve}=LA(),{kState:nt,kHeaders:Ro}=fi(),{webidl:de}=Gt(),{FormData:ave}=PA(),{URLSerializer:ij}=gr(),{kConstruct:Lh}=rt(),Fx=v("node:assert"),{types:cve}=v("node:util"),uve=new TextEncoder("utf-8");class er{static error(){return Ad(Uh(),"immutable")}static json(e,t={}){if(de.argumentLengthCheck(arguments,1,"Response.json"),t!==null)t=de.converters.ResponseInit(t);let r=uve.encode(tve(e)),n=nj(r),o=Ad(nu({}),"response");return sj(o,t,{body:n[0],type:"application/json"}),o}static redirect(e,t=302){de.argumentLengthCheck(arguments,1,"Response.redirect"),e=de.converters.USVString(e),t=de.converters["unsigned short"](t);let r;try{r=new URL(e,ove.settingsObject.baseUrl)}catch(i){throw TypeError(`Failed to parse URL from ${e}`,{cause:i})}if(!ive.has(t))throw RangeError(`Invalid status code ${t}`);let n=Ad(nu({}),"immutable");n[nt].status=t;let o=nve(ij(r));return n[nt].headersList.append("location",o,!0),n}constructor(e=null,t={}){if(de.util.markAsUncloneable(this),e===Lh)return;if(e!==null)e=de.converters.BodyInit(e);t=de.converters.ResponseInit(t),this[nt]=nu({}),this[Ro]=new aj(Lh),cj(this[Ro],"response"),uj(this[Ro],this[nt].headersList);let r=null;if(e!=null){let[n,o]=nj(e);r={body:n,type:o}}sj(this,t,r)}get type(){return de.brandCheck(this,er),this[nt].type}get url(){de.brandCheck(this,er);let e=this[nt].urlList,t=e[e.length-1]??null;if(t===null)return"";return ij(t,!0)}get redirected(){return de.brandCheck(this,er),this[nt].urlList.length>1}get status(){return de.brandCheck(this,er),this[nt].status}get ok(){return de.brandCheck(this,er),this[nt].status>=200&&this[nt].status<=299}get statusText(){return de.brandCheck(this,er),this[nt].statusText}get headers(){return de.brandCheck(this,er),this[Ro]}get body(){return de.brandCheck(this,er),this[nt].body?this[nt].body.stream:null}get bodyUsed(){return de.brandCheck(this,er),!!this[nt].body&&Ox.isDisturbed(this[nt].body.stream)}clone(){if(de.brandCheck(this,er),W_e(this))throw de.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=Mx(this[nt]);if(lj&&this[nt].body?.stream)Aj.register(this,new WeakRef(this[nt].body.stream));return Ad(e,V_e(this[Ro]))}[oj.inspect.custom](e,t){if(t.depth===null)t.depth=2;t.colors??=!0;let r={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${oj.formatWithOptions(t,r)}`}}q_e(er);Object.defineProperties(er.prototype,{type:Mr,url:Mr,status:Mr,ok:Mr,redirected:Mr,statusText:Mr,headers:Mr,clone:Mr,body:Mr,bodyUsed:Mr,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(er,{json:Mr,redirect:Mr,error:Mr});function Mx(e){if(e.internalResponse)return dj(Mx(e.internalResponse),e.type);let t=nu({...e,body:null});if(e.body!=null)t.body=J_e(t,e.body);return t}function nu(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new rj(e?.headersList):new rj,urlList:e?.urlList?[...e.urlList]:[]}}function Uh(e){let t=rve(e);return nu({type:"error",status:0,error:t?e:Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function lve(e){return e.type==="error"&&e.status===0}function Nh(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(r,n){return n in t?t[n]:r[n]},set(r,n,o){return Fx(!(n in t)),r[n]=o,!0}})}function dj(e,t){if(t==="basic")return Nh(e,{type:"basic",headersList:e.headersList});else if(t==="cors")return Nh(e,{type:"cors",headersList:e.headersList});else if(t==="opaque")return Nh(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});else if(t==="opaqueredirect")return Nh(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});else Fx(!1)}function Ave(e,t=null){return Fx(K_e(e)),X_e(e)?Uh(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):Uh(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function sj(e,t,r){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in t&&t.statusText!=null){if(!Z_e(String(t.statusText)))throw TypeError("Invalid statusText")}if("status"in t&&t.status!=null)e[nt].status=t.status;if("statusText"in t&&t.statusText!=null)e[nt].statusText=t.statusText;if("headers"in t&&t.headers!=null)j_e(e[Ro],t.headers);if(r){if(sve.includes(e.status))throw de.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`});if(e[nt].body=r.body,r.type!=null&&!e[nt].headersList.contains("content-type",!0))e[nt].headersList.append("content-type",r.type,!0)}}function Ad(e,t){let r=new er(Lh);if(r[nt]=e,r[Ro]=new aj(Lh),uj(r[Ro],e.headersList),cj(r[Ro],t),lj&&e.body?.stream)Aj.register(r,new WeakRef(e.body.stream));return r}de.converters.ReadableStream=de.interfaceConverter(ReadableStream);de.converters.FormData=de.interfaceConverter(ave);de.converters.URLSearchParams=de.interfaceConverter(URLSearchParams);de.converters.XMLHttpRequestBodyInit=function(e,t,r){if(typeof e==="string")return de.converters.USVString(e,t,r);if(eve(e))return de.converters.Blob(e,t,r,{strict:!1});if(ArrayBuffer.isView(e)||cve.isArrayBuffer(e))return de.converters.BufferSource(e,t,r);if(Ox.isFormDataLike(e))return de.converters.FormData(e,t,r,{strict:!1});if(e instanceof URLSearchParams)return de.converters.URLSearchParams(e,t,r);return de.converters.DOMString(e,t,r)};de.converters.BodyInit=function(e,t,r){if(e instanceof ReadableStream)return de.converters.ReadableStream(e,t,r);if(e?.[Symbol.asyncIterator])return e;return de.converters.XMLHttpRequestBodyInit(e,t,r)};de.converters.ResponseInit=de.dictionaryConverter([{key:"status",converter:de.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:de.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:de.converters.HeadersInit}]);pj.exports={isNetworkError:lve,makeNetworkError:Uh,makeResponse:nu,makeAppropriateNetworkError:Ave,filterResponse:dj,Response:er,cloneResponse:Mx,fromInnerResponse:Ad}});var Cj=y((wKe,Ej)=>{var{kConnected:fj,kSize:gj}=rt();class hj{constructor(e){this.value=e}deref(){return this.value[fj]===0&&this.value[gj]===0?void 0:this.value}}class mj{constructor(e){this.finalizer=e}register(e,t){if(e.on)e.on("disconnect",()=>{if(e[fj]===0&&e[gj]===0)this.finalizer(t)})}unregister(e){}}Ej.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18"))return process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:hj,FinalizationRegistry:mj};return{WeakRef,FinalizationRegistry}}});var ou=y((SKe,Nj)=>{var{extractBody:dve,mixinBody:pve,cloneBody:fve,bodyUnusable:Ij}=Oc(),{Headers:Sj,fill:gve,HeadersList:Ph,setHeadersGuard:$x,getHeadersGuard:hve,setHeadersList:kj,getHeadersList:yj}=Ls(),{FinalizationRegistry:mve}=Cj()(),Fh=me(),Bj=v("node:util"),{isValidHTTPToken:Eve,sameOrigin:bj,environmentSettingsObject:Oh}=Lr(),{forbiddenMethodsSet:Cve,corsSafeListedMethodsSet:Ive,referrerPolicy:yve,requestRedirect:Bve,requestMode:bve,requestCredentials:xve,requestCache:_ve,requestDuplex:vve}=LA(),{kEnumerableProperty:_t,normalizedMethodRecordsBase:Qve,normalizedMethodRecords:wve}=Fh,{kHeaders:Pr,kSignal:Mh,kState:Xe,kDispatcher:Px}=fi(),{webidl:ee}=Gt(),{URLSerializer:Sve}=gr(),{kConstruct:$h}=rt(),kve=v("node:assert"),{getMaxListeners:xj,setMaxListeners:_j,getEventListeners:Dve,defaultMaxListeners:vj}=v("node:events"),Rve=Symbol("abortController"),Dj=new mve(({signal:e,abort:t})=>{e.removeEventListener("abort",t)}),Hh=new WeakMap;function Qj(e){return t;function t(){let r=e.deref();if(r!==void 0){Dj.unregister(t),this.removeEventListener("abort",t),r.abort(this.reason);let n=Hh.get(r.signal);if(n!==void 0){if(n.size!==0){for(let o of n){let i=o.deref();if(i!==void 0)i.abort(this.reason)}n.clear()}Hh.delete(r.signal)}}}}var wj=!1;class Pe{constructor(e,t={}){if(ee.util.markAsUncloneable(this),e===$h)return;let r="Request constructor";ee.argumentLengthCheck(arguments,1,r),e=ee.converters.RequestInfo(e,r,"input"),t=ee.converters.RequestInit(t,r,"init");let n=null,o=null,i=Oh.settingsObject.baseUrl,s=null;if(typeof e==="string"){this[Px]=t.dispatcher;let h;try{h=new URL(e,i)}catch(E){throw TypeError("Failed to parse URL from "+e,{cause:E})}if(h.username||h.password)throw TypeError("Request cannot be constructed from a URL that includes credentials: "+e);n=Gh({urlList:[h]}),o="cors"}else this[Px]=t.dispatcher||e[Px],kve(e instanceof Pe),n=e[Xe],s=e[Mh];let a=Oh.settingsObject.origin,c="client";if(n.window?.constructor?.name==="EnvironmentSettingsObject"&&bj(n.window,a))c=n.window;if(t.window!=null)throw TypeError(`'window' option '${c}' must be null`);if("window"in t)c="no-window";n=Gh({method:n.method,headersList:n.headersList,unsafeRequest:n.unsafeRequest,client:Oh.settingsObject,window:c,priority:n.priority,origin:n.origin,referrer:n.referrer,referrerPolicy:n.referrerPolicy,mode:n.mode,credentials:n.credentials,cache:n.cache,redirect:n.redirect,integrity:n.integrity,keepalive:n.keepalive,reloadNavigation:n.reloadNavigation,historyNavigation:n.historyNavigation,urlList:[...n.urlList]});let u=Object.keys(t).length!==0;if(u){if(n.mode==="navigate")n.mode="same-origin";n.reloadNavigation=!1,n.historyNavigation=!1,n.origin="client",n.referrer="client",n.referrerPolicy="",n.url=n.urlList[n.urlList.length-1],n.urlList=[n.url]}if(t.referrer!==void 0){let h=t.referrer;if(h==="")n.referrer="no-referrer";else{let E;try{E=new URL(h,i)}catch(w){throw TypeError(`Referrer "${h}" is not a valid URL.`,{cause:w})}if(E.protocol==="about:"&&E.hostname==="client"||a&&!bj(E,Oh.settingsObject.baseUrl))n.referrer="client";else n.referrer=E}}if(t.referrerPolicy!==void 0)n.referrerPolicy=t.referrerPolicy;let A;if(t.mode!==void 0)A=t.mode;else A=o;if(A==="navigate")throw ee.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(A!=null)n.mode=A;if(t.credentials!==void 0)n.credentials=t.credentials;if(t.cache!==void 0)n.cache=t.cache;if(n.cache==="only-if-cached"&&n.mode!=="same-origin")throw TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(t.redirect!==void 0)n.redirect=t.redirect;if(t.integrity!=null)n.integrity=String(t.integrity);if(t.keepalive!==void 0)n.keepalive=Boolean(t.keepalive);if(t.method!==void 0){let h=t.method,E=wve[h];if(E!==void 0)n.method=E;else{if(!Eve(h))throw TypeError(`'${h}' is not a valid HTTP method.`);let w=h.toUpperCase();if(Cve.has(w))throw TypeError(`'${h}' HTTP method is unsupported.`);h=Qve[w]??h,n.method=h}if(!wj&&n.method==="patch")process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),wj=!0}if(t.signal!==void 0)s=t.signal;this[Xe]=n;let p=new AbortController;if(this[Mh]=p.signal,s!=null){if(!s||typeof s.aborted!=="boolean"||typeof s.addEventListener!=="function")throw TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(s.aborted)p.abort(s.reason);else{this[Rve]=p;let h=new WeakRef(p),E=Qj(h);try{if(typeof xj==="function"&&xj(s)===vj)_j(1500,s);else if(Dve(s,"abort").length>=vj)_j(1500,s)}catch{}Fh.addAbortListener(s,E),Dj.register(p,{signal:s,abort:E},E)}}if(this[Pr]=new Sj($h),kj(this[Pr],n.headersList),$x(this[Pr],"request"),A==="no-cors"){if(!Ive.has(n.method))throw TypeError(`'${n.method} is unsupported in no-cors mode.`);$x(this[Pr],"request-no-cors")}if(u){let h=yj(this[Pr]),E=t.headers!==void 0?t.headers:new Ph(h);if(h.clear(),E instanceof Ph){for(let{name:w,value:b}of E.rawValues())h.append(w,b,!1);h.cookies=E.cookies}else gve(this[Pr],E)}let d=e instanceof Pe?e[Xe].body:null;if((t.body!=null||d!=null)&&(n.method==="GET"||n.method==="HEAD"))throw TypeError("Request with GET/HEAD method cannot have body.");let f=null;if(t.body!=null){let[h,E]=dve(t.body,n.keepalive);if(f=h,E&&!yj(this[Pr]).contains("content-type",!0))this[Pr].append("content-type",E)}let g=f??d;if(g!=null&&g.source==null){if(f!=null&&t.duplex==null)throw TypeError("RequestInit: duplex option is required when sending a body.");if(n.mode!=="same-origin"&&n.mode!=="cors")throw TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');n.useCORSPreflightFlag=!0}let m=g;if(f==null&&d!=null){if(Ij(e))throw TypeError("Cannot construct a Request with a Request object that has already been used.");let h=new TransformStream;d.stream.pipeThrough(h),m={source:d.source,length:d.length,stream:h.readable}}this[Xe].body=m}get method(){return ee.brandCheck(this,Pe),this[Xe].method}get url(){return ee.brandCheck(this,Pe),Sve(this[Xe].url)}get headers(){return ee.brandCheck(this,Pe),this[Pr]}get destination(){return ee.brandCheck(this,Pe),this[Xe].destination}get referrer(){if(ee.brandCheck(this,Pe),this[Xe].referrer==="no-referrer")return"";if(this[Xe].referrer==="client")return"about:client";return this[Xe].referrer.toString()}get referrerPolicy(){return ee.brandCheck(this,Pe),this[Xe].referrerPolicy}get mode(){return ee.brandCheck(this,Pe),this[Xe].mode}get credentials(){return this[Xe].credentials}get cache(){return ee.brandCheck(this,Pe),this[Xe].cache}get redirect(){return ee.brandCheck(this,Pe),this[Xe].redirect}get integrity(){return ee.brandCheck(this,Pe),this[Xe].integrity}get keepalive(){return ee.brandCheck(this,Pe),this[Xe].keepalive}get isReloadNavigation(){return ee.brandCheck(this,Pe),this[Xe].reloadNavigation}get isHistoryNavigation(){return ee.brandCheck(this,Pe),this[Xe].historyNavigation}get signal(){return ee.brandCheck(this,Pe),this[Mh]}get body(){return ee.brandCheck(this,Pe),this[Xe].body?this[Xe].body.stream:null}get bodyUsed(){return ee.brandCheck(this,Pe),!!this[Xe].body&&Fh.isDisturbed(this[Xe].body.stream)}get duplex(){return ee.brandCheck(this,Pe),"half"}clone(){if(ee.brandCheck(this,Pe),Ij(this))throw TypeError("unusable");let e=Rj(this[Xe]),t=new AbortController;if(this.signal.aborted)t.abort(this.signal.reason);else{let r=Hh.get(this.signal);if(r===void 0)r=new Set,Hh.set(this.signal,r);let n=new WeakRef(t);r.add(n),Fh.addAbortListener(t.signal,Qj(n))}return Tj(e,t.signal,hve(this[Pr]))}[Bj.inspect.custom](e,t){if(t.depth===null)t.depth=2;t.colors??=!0;let r={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${Bj.formatWithOptions(t,r)}`}}pve(Pe);function Gh(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??!1,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new Ph(e.headersList):new Ph}}function Rj(e){let t=Gh({...e,body:null});if(e.body!=null)t.body=fve(t,e.body);return t}function Tj(e,t,r){let n=new Pe($h);return n[Xe]=e,n[Mh]=t,n[Pr]=new Sj($h),kj(n[Pr],e.headersList),$x(n[Pr],r),n}Object.defineProperties(Pe.prototype,{method:_t,url:_t,headers:_t,redirect:_t,clone:_t,signal:_t,duplex:_t,destination:_t,body:_t,bodyUsed:_t,isHistoryNavigation:_t,isReloadNavigation:_t,keepalive:_t,integrity:_t,cache:_t,credentials:_t,attribute:_t,referrerPolicy:_t,referrer:_t,mode:_t,[Symbol.toStringTag]:{value:"Request",configurable:!0}});ee.converters.Request=ee.interfaceConverter(Pe);ee.converters.RequestInfo=function(e,t,r){if(typeof e==="string")return ee.converters.USVString(e,t,r);if(e instanceof Pe)return ee.converters.Request(e,t,r);return ee.converters.USVString(e,t,r)};ee.converters.AbortSignal=ee.interfaceConverter(AbortSignal);ee.converters.RequestInit=ee.dictionaryConverter([{key:"method",converter:ee.converters.ByteString},{key:"headers",converter:ee.converters.HeadersInit},{key:"body",converter:ee.nullableConverter(ee.converters.BodyInit)},{key:"referrer",converter:ee.converters.USVString},{key:"referrerPolicy",converter:ee.converters.DOMString,allowedValues:yve},{key:"mode",converter:ee.converters.DOMString,allowedValues:bve},{key:"credentials",converter:ee.converters.DOMString,allowedValues:xve},{key:"cache",converter:ee.converters.DOMString,allowedValues:_ve},{key:"redirect",converter:ee.converters.DOMString,allowedValues:Bve},{key:"integrity",converter:ee.converters.DOMString},{key:"keepalive",converter:ee.converters.boolean},{key:"signal",converter:ee.nullableConverter((e)=>ee.converters.AbortSignal(e,"RequestInit","signal",{strict:!1}))},{key:"window",converter:ee.converters.any},{key:"duplex",converter:ee.converters.DOMString,allowedValues:vve},{key:"dispatcher",converter:ee.converters.any}]);Nj.exports={Request:Pe,makeRequest:Gh,fromInnerRequest:Tj,cloneRequest:Rj}});var fd=y((kKe,qj)=>{var{makeNetworkError:Oe,makeAppropriateNetworkError:zh,filterResponse:Hx,makeResponse:Yh,fromInnerResponse:Tve}=dd(),{HeadersList:Lj}=Ls(),{Request:Nve,cloneRequest:Lve}=ou(),vi=v("node:zlib"),{bytesMatch:Uve,makePolicyContainer:Ove,clonePolicyContainer:Fve,requestBadPort:Mve,TAOCheck:Pve,appendRequestOriginHeader:$ve,responseLocationURL:Hve,requestCurrentURL:oo,setRequestReferrerPolicyOnRedirect:Gve,tryUpgradeRequestToAPotentiallyTrustworthyURL:zve,createOpaqueTimingInfo:Vx,appendFetchMetadata:Yve,corsCheck:jve,crossOriginResourcePolicyCheck:Vve,determineRequestsReferrer:Jve,coarsenedSharedCurrentTime:pd,createDeferredPromise:qve,isBlobLike:Wve,sameOrigin:jx,isCancelled:Us,isAborted:Uj,isErrorLike:Zve,fullyReadBody:Kve,readableStreamClose:Xve,isomorphicEncode:jh,urlIsLocal:eQe,urlIsHttpHttpsScheme:Jx,urlHasHttpsScheme:tQe,clampAndCoarsenConnectionTimingInfo:rQe,simpleRangeHeaderValue:nQe,buildContentRange:oQe,createInflate:iQe,extractMimeType:sQe}=Lr(),{kState:Pj,kDispatcher:aQe}=fi(),Os=v("node:assert"),{safelyExtractBody:qx,extractBody:Oj}=Oc(),{redirectStatusSet:$j,nullBodyStatus:Hj,safeMethodsSet:cQe,requestBodyHeader:uQe,subresourceSet:lQe}=LA(),AQe=v("node:events"),{Readable:dQe,pipeline:pQe,finished:fQe}=v("node:stream"),{addAbortListener:gQe,isErrored:hQe,isReadable:Vh,bufferToLowerCasedHeaderName:Fj}=me(),{dataURLProcessor:mQe,serializeAMimeType:EQe,minimizeSupportedMimeType:CQe}=gr(),{getGlobalDispatcher:IQe}=kh(),{webidl:yQe}=Gt(),{STATUS_CODES:BQe}=v("node:http"),bQe=["GET","HEAD"],xQe=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",Gx;class Wx extends AQe{constructor(e){super();this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){if(this.state!=="ongoing")return;this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e)}abort(e){if(this.state!=="ongoing")return;if(this.state="aborted",!e)e=new DOMException("The operation was aborted.","AbortError");this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e)}}function _Qe(e){Gj(e,"fetch")}function vQe(e,t=void 0){yQe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=qve(),n;try{n=new Nve(e,t)}catch(A){return r.reject(A),r.promise}let o=n[Pj];if(n.signal.aborted)return zx(r,o,null,n.signal.reason),r.promise;if(o.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope")o.serviceWorkers="none";let s=null,a=!1,c=null;return gQe(n.signal,()=>{a=!0,Os(c!=null),c.abort(n.signal.reason);let A=s?.deref();zx(r,o,A,n.signal.reason)}),c=Yj({request:o,processResponseEndOfBody:_Qe,processResponse:(A)=>{if(a)return;if(A.aborted){zx(r,o,s,c.serializedAbortReason);return}if(A.type==="error"){r.reject(TypeError("fetch failed",{cause:A.error}));return}s=new WeakRef(Tve(A,"immutable")),r.resolve(s.deref()),r=null},dispatcher:n[aQe]}),r.promise}function Gj(e,t="other"){if(e.type==="error"&&e.aborted)return;if(!e.urlList?.length)return;let r=e.urlList[0],n=e.timingInfo,o=e.cacheState;if(!Jx(r))return;if(n===null)return;if(!e.timingAllowPassed)n=Vx({startTime:n.startTime}),o="";n.endTime=pd(),e.timingInfo=n,zj(n,r.href,t,globalThis,o)}var zj=performance.markResourceTiming;function zx(e,t,r,n){if(e)e.reject(n);if(t.body!=null&&Vh(t.body?.stream))t.body.stream.cancel(n).catch((i)=>{if(i.code==="ERR_INVALID_STATE")return;throw i});if(r==null)return;let o=r[Pj];if(o.body!=null&&Vh(o.body?.stream))o.body.stream.cancel(n).catch((i)=>{if(i.code==="ERR_INVALID_STATE")return;throw i})}function Yj({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:o,processResponseConsumeBody:i,useParallelQueue:s=!1,dispatcher:a=IQe()}){Os(a);let c=null,u=!1;if(e.client!=null)c=e.client.globalObject,u=e.client.crossOriginIsolatedCapability;let A=pd(u),p=Vx({startTime:A}),d={controller:new Wx(a),request:e,timingInfo:p,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:i,processResponseEndOfBody:o,taskDestination:c,crossOriginIsolatedCapability:u};if(Os(!e.body||e.body.stream),e.window==="client")e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window";if(e.origin==="client")e.origin=e.client.origin;if(e.policyContainer==="client")if(e.client!=null)e.policyContainer=Fve(e.client.policyContainer);else e.policyContainer=Ove();if(!e.headersList.contains("accept",!0))e.headersList.append("accept","*/*",!0);if(!e.headersList.contains("accept-language",!0))e.headersList.append("accept-language","*",!0);if(e.priority===null);if(lQe.has(e.destination));return jj(d).catch((f)=>{d.controller.terminate(f)}),d.controller}async function jj(e,t=!1){let r=e.request,n=null;if(r.localURLsOnly&&!eQe(oo(r)))n=Oe("local URLs only");if(zve(r),Mve(r)==="blocked")n=Oe("bad port");if(r.referrerPolicy==="")r.referrerPolicy=r.policyContainer.referrerPolicy;if(r.referrer!=="no-referrer")r.referrer=Jve(r);if(n===null)n=await(async()=>{let i=oo(r);if(jx(i,r.url)&&r.responseTainting==="basic"||i.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket"))return r.responseTainting="basic",await Mj(e);if(r.mode==="same-origin")return Oe('request mode cannot be "same-origin"');if(r.mode==="no-cors"){if(r.redirect!=="follow")return Oe('redirect mode cannot be "follow" for "no-cors" request');return r.responseTainting="opaque",await Mj(e)}if(!Jx(oo(r)))return Oe("URL scheme must be a HTTP(S) scheme");return r.responseTainting="cors",await Vj(e)})();if(t)return n;if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors");if(r.responseTainting==="basic")n=Hx(n,"basic");else if(r.responseTainting==="cors")n=Hx(n,"cors");else if(r.responseTainting==="opaque")n=Hx(n,"opaque");else Os(!1)}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0)o.urlList.push(...r.urlList);if(!r.timingAllowFailed)n.timingAllowPassed=!0;if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range",!0))n=o=Oe();if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Hj.includes(o.status)))o.body=null,e.controller.dump=!0;if(r.integrity){let i=(a)=>Yx(e,Oe(a));if(r.responseTainting==="opaque"||n.body==null){i(n.error);return}let s=(a)=>{if(!Uve(a,r.integrity)){i("integrity mismatch");return}n.body=qx(a)[0],Yx(e,n)};await Kve(n.body,s,i)}else Yx(e,n)}function Mj(e){if(Us(e)&&e.request.redirectCount===0)return Promise.resolve(zh(e));let{request:t}=e,{protocol:r}=oo(t);switch(r){case"about:":return Promise.resolve(Oe("about scheme is not supported"));case"blob:":{if(!Gx)Gx=v("node:buffer").resolveObjectURL;let n=oo(t);if(n.search.length!==0)return Promise.resolve(Oe("NetworkError when attempting to fetch resource."));let o=Gx(n.toString());if(t.method!=="GET"||!Wve(o))return Promise.resolve(Oe("invalid method"));let i=Yh(),s=o.size,a=jh(`${s}`),c=o.type;if(!t.headersList.contains("range",!0)){let u=Oj(o);i.statusText="OK",i.body=u[0],i.headersList.set("content-length",a,!0),i.headersList.set("content-type",c,!0)}else{i.rangeRequested=!0;let u=t.headersList.get("range",!0),A=nQe(u,!0);if(A==="failure")return Promise.resolve(Oe("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:d}=A;if(p===null)p=s-d,d=p+d-1;else{if(p>=s)return Promise.resolve(Oe("Range start is greater than the blob's size."));if(d===null||d>=s)d=s-1}let f=o.slice(p,d,c),g=Oj(f);i.body=g[0];let m=jh(`${f.size}`),h=oQe(p,d,s);i.status=206,i.statusText="Partial Content",i.headersList.set("content-length",m,!0),i.headersList.set("content-type",c,!0),i.headersList.set("content-range",h,!0)}return Promise.resolve(i)}case"data:":{let n=oo(t),o=mQe(n);if(o==="failure")return Promise.resolve(Oe("failed to fetch the data URL"));let i=EQe(o.mimeType);return Promise.resolve(Yh({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:qx(o.body)[0]}))}case"file:":return Promise.resolve(Oe("not implemented... yet..."));case"http:":case"https:":return Vj(e).catch((n)=>Oe(n));default:return Promise.resolve(Oe("unknown scheme"))}}function QQe(e,t){if(e.request.done=!0,e.processResponseDone!=null)queueMicrotask(()=>e.processResponseDone(t))}function Yx(e,t){let r=e.timingInfo,n=()=>{let i=Date.now();if(e.request.destination==="document")e.controller.fullTimingInfo=r;e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:")return;r.endTime=i;let{cacheState:a,bodyInfo:c}=t;if(!t.timingAllowPassed)r=Vx(r),a="";let u=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){u=t.status;let A=sQe(t.headersList);if(A!=="failure")c.contentType=CQe(A)}if(e.request.initiatorType!=null)zj(r,e.request.url.href,e.request.initiatorType,globalThis,a,c,u)};let s=()=>{if(e.request.done=!0,e.processResponseEndOfBody!=null)queueMicrotask(()=>e.processResponseEndOfBody(t));if(e.request.initiatorType!=null)e.controller.reportTimingSteps()};queueMicrotask(()=>s())};if(e.processResponse!=null)queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let o=t.type==="error"?t:t.internalResponse??t;if(o.body==null)n();else fQe(o.body.stream,()=>{n()})}async function Vj(e){let t=e.request,r=null,n=null,o=e.timingInfo;if(t.serviceWorkers==="all");if(r===null){if(t.redirect==="follow")t.serviceWorkers="none";if(n=r=await Jj(e),t.responseTainting==="cors"&&jve(t,r)==="failure")return Oe("cors failure");if(Pve(t,r)==="failure")t.timingAllowFailed=!0}if((t.responseTainting==="opaque"||r.type==="opaque")&&Vve(t.origin,t.client,t.destination,n)==="blocked")return Oe("blocked");if($j.has(n.status)){if(t.redirect!=="manual")e.controller.connection.destroy(void 0,!1);if(t.redirect==="error")r=Oe("unexpected redirect");else if(t.redirect==="manual")r=n;else if(t.redirect==="follow")r=await wQe(e,r);else Os(!1)}return r.timingInfo=o,r}function wQe(e,t){let r=e.request,n=t.internalResponse?t.internalResponse:t,o;try{if(o=Hve(n,oo(r).hash),o==null)return t}catch(s){return Promise.resolve(Oe(s))}if(!Jx(o))return Promise.resolve(Oe("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Oe("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(o.username||o.password)&&!jx(r,o))return Promise.resolve(Oe('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(o.username||o.password))return Promise.resolve(Oe('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Oe());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!bQe.includes(r.method)){r.method="GET",r.body=null;for(let s of uQe)r.headersList.delete(s)}if(!jx(oo(r),o))r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0);if(r.body!=null)Os(r.body.source!=null),r.body=qx(r.body.source)[0];let i=e.timingInfo;if(i.redirectEndTime=i.postRedirectStartTime=pd(e.crossOriginIsolatedCapability),i.redirectStartTime===0)i.redirectStartTime=i.startTime;return r.urlList.push(o),Gve(r,n),jj(e,!0)}async function Jj(e,t=!1,r=!1){let n=e.request,o=null,i=null,s=null,a=null,c=!1;if(n.window==="no-window"&&n.redirect==="error")o=e,i=n;else i=Lve(n),o={...e},o.request=i;let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",A=i.body?i.body.length:null,p=null;if(i.body==null&&["POST","PUT"].includes(i.method))p="0";if(A!=null)p=jh(`${A}`);if(p!=null)i.headersList.append("content-length",p,!0);if(A!=null&&i.keepalive);if(i.referrer instanceof URL)i.headersList.append("referer",jh(i.referrer.href),!0);if($ve(i),Yve(i),!i.headersList.contains("user-agent",!0))i.headersList.append("user-agent",xQe);if(i.cache==="default"&&(i.headersList.contains("if-modified-since",!0)||i.headersList.contains("if-none-match",!0)||i.headersList.contains("if-unmodified-since",!0)||i.headersList.contains("if-match",!0)||i.headersList.contains("if-range",!0)))i.cache="no-store";if(i.cache==="no-cache"&&!i.preventNoCacheCacheControlHeaderModification&&!i.headersList.contains("cache-control",!0))i.headersList.append("cache-control","max-age=0",!0);if(i.cache==="no-store"||i.cache==="reload"){if(!i.headersList.contains("pragma",!0))i.headersList.append("pragma","no-cache",!0);if(!i.headersList.contains("cache-control",!0))i.headersList.append("cache-control","no-cache",!0)}if(i.headersList.contains("range",!0))i.headersList.append("accept-encoding","identity",!0);if(!i.headersList.contains("accept-encoding",!0))if(tQe(oo(i)))i.headersList.append("accept-encoding","br, gzip, deflate",!0);else i.headersList.append("accept-encoding","gzip, deflate",!0);if(i.headersList.delete("host",!0),a==null)i.cache="no-store";if(i.cache!=="no-store"&&i.cache!=="reload");if(s==null){if(i.cache==="only-if-cached")return Oe("only if cached");let d=await SQe(o,u,r);if(!cQe.has(i.method)&&d.status>=200&&d.status<=399);if(c&&d.status===304);if(s==null)s=d}if(s.urlList=[...i.urlList],i.headersList.contains("range",!0))s.rangeRequested=!0;if(s.requestIncludesCredentials=u,s.status===407){if(n.window==="no-window")return Oe();if(Us(e))return zh(e);return Oe("proxy authentication required")}if(s.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Us(e))return zh(e);e.controller.connection.destroy(),s=await Jj(e,t,!0)}return s}async function SQe(e,t=!1,r=!1){Os(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(g,m=!0){if(!this.destroyed){if(this.destroyed=!0,m)this.abort?.(g??new DOMException("The operation was aborted.","AbortError"))}}};let n=e.request,o=null,i=e.timingInfo;if(!0)n.cache="no-store";let a=r?"yes":"no";if(n.mode==="websocket");let c=null;if(n.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(n.body!=null){let g=async function*(E){if(Us(e))return;yield E,e.processRequestBodyChunkLength?.(E.byteLength)},m=()=>{if(Us(e))return;if(e.processRequestEndOfBody)e.processRequestEndOfBody()},h=(E)=>{if(Us(e))return;if(E.name==="AbortError")e.controller.abort();else e.controller.terminate(E)};c=async function*(){try{for await(let E of n.body.stream)yield*g(E);m()}catch(E){h(E)}}()}try{let{body:g,status:m,statusText:h,headersList:E,socket:w}=await f({body:c});if(w)o=Yh({status:m,statusText:h,headersList:E,socket:w});else{let b=g[Symbol.asyncIterator]();e.controller.next=()=>b.next(),o=Yh({status:m,statusText:h,headersList:E})}}catch(g){if(g.name==="AbortError")return e.controller.connection.destroy(),zh(e,g);return Oe(g)}let u=async()=>{await e.controller.resume()},A=(g)=>{if(!Us(e))e.controller.abort(g)},p=new ReadableStream({async start(g){e.controller.controller=g},async pull(g){await u(g)},async cancel(g){await A(g)},type:"bytes"});o.body={stream:p,source:null,length:null},e.controller.onAborted=d,e.controller.on("terminated",d),e.controller.resume=async()=>{while(!0){let g,m;try{let{done:E,value:w}=await e.controller.next();if(Uj(e))break;g=E?void 0:w}catch(E){if(e.controller.ended&&!i.encodedBodySize)g=void 0;else g=E,m=!0}if(g===void 0){Xve(e.controller.controller),QQe(e,o);return}if(i.decodedBodySize+=g?.byteLength??0,m){e.controller.terminate(g);return}let h=new Uint8Array(g);if(h.byteLength)e.controller.controller.enqueue(h);if(hQe(p)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function d(g){if(Uj(e)){if(o.aborted=!0,Vh(p))e.controller.controller.error(e.controller.serializedAbortReason)}else if(Vh(p))e.controller.controller.error(TypeError("terminated",{cause:Zve(g)?g:void 0}));e.controller.connection.destroy()}return o;function f({body:g}){let m=oo(n),h=e.controller.dispatcher;return new Promise((E,w)=>h.dispatch({path:m.pathname+m.search,origin:m.origin,method:n.method,body:h.isMockActive?n.body&&(n.body.source||n.body.stream):g,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(b){let{connection:_}=e.controller;if(i.finalConnectionTimingInfo=rQe(void 0,i.postRedirectStartTime,e.crossOriginIsolatedCapability),_.destroyed)b(new DOMException("The operation was aborted.","AbortError"));else e.controller.on("terminated",b),this.abort=_.abort=b;i.finalNetworkRequestStartTime=pd(e.crossOriginIsolatedCapability)},onResponseStarted(){i.finalNetworkResponseStartTime=pd(e.crossOriginIsolatedCapability)},onHeaders(b,_,L,T){if(b<200)return;let S="",le=new Lj;for(let He=0;He<_.length;He+=2)le.append(Fj(_[He]),_[He+1].toString("latin1"),!0);S=le.get("location",!0),this.body=new dQe({read:L});let pe=[],Ft=S&&n.redirect==="follow"&&$j.has(b);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!Hj.includes(b)&&!Ft){let He=le.get("content-encoding",!0),rr=He?He.toLowerCase().split(","):[],br=5;if(rr.length>5)return w(Error(`too many content-encodings in response: ${rr.length}, maximum allowed is 5`)),!0;for(let Go=rr.length-1;Go>=0;--Go){let qe=rr[Go].trim();if(qe==="x-gzip"||qe==="gzip")pe.push(vi.createGunzip({flush:vi.constants.Z_SYNC_FLUSH,finishFlush:vi.constants.Z_SYNC_FLUSH}));else if(qe==="deflate")pe.push(iQe({flush:vi.constants.Z_SYNC_FLUSH,finishFlush:vi.constants.Z_SYNC_FLUSH}));else if(qe==="br")pe.push(vi.createBrotliDecompress({flush:vi.constants.BROTLI_OPERATION_FLUSH,finishFlush:vi.constants.BROTLI_OPERATION_FLUSH}));else{pe.length=0;break}}}let et=this.onError.bind(this);return E({status:b,statusText:T,headersList:le,body:pe.length?pQe(this.body,...pe,(He)=>{if(He)this.onError(He)}).on("error",et):this.body.on("error",et)}),!0},onData(b){if(e.controller.dump)return;let _=b;return i.encodedBodySize+=_.byteLength,this.body.push(_)},onComplete(){if(this.abort)e.controller.off("terminated",this.abort);if(e.controller.onAborted)e.controller.off("terminated",e.controller.onAborted);e.controller.ended=!0,this.body.push(null)},onError(b){if(this.abort)e.controller.off("terminated",this.abort);this.body?.destroy(b),e.controller.terminate(b),w(b)},onUpgrade(b,_,L){if(b!==101)return;let T=new Lj;for(let S=0;S<_.length;S+=2)T.append(Fj(_[S]),_[S+1].toString("latin1"),!0);return E({status:b,statusText:BQe[b],headersList:T,socket:L}),!0}}))}}qj.exports={fetch:vQe,Fetch:Wx,fetching:Yj,finalizeAndReportTiming:Gj}});var Zx=y((DKe,Wj)=>{Wj.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var Kj=y((RKe,Zj)=>{var{webidl:$r}=Gt(),Jh=Symbol("ProgressEvent state");class gd extends Event{constructor(e,t={}){e=$r.converters.DOMString(e,"ProgressEvent constructor","type"),t=$r.converters.ProgressEventInit(t??{});super(e,t);this[Jh]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return $r.brandCheck(this,gd),this[Jh].lengthComputable}get loaded(){return $r.brandCheck(this,gd),this[Jh].loaded}get total(){return $r.brandCheck(this,gd),this[Jh].total}}$r.converters.ProgressEventInit=$r.dictionaryConverter([{key:"lengthComputable",converter:$r.converters.boolean,defaultValue:()=>!1},{key:"loaded",converter:$r.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:$r.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:$r.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:$r.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:$r.converters.boolean,defaultValue:()=>!1}]);Zj.exports={ProgressEvent:gd}});var eV=y((TKe,Xj)=>{function kQe(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}Xj.exports={getEncoding:kQe}});var cV=y((NKe,aV)=>{var{kState:iu,kError:Kx,kResult:tV,kAborted:hd,kLastProgressEventFired:Xx}=Zx(),{ProgressEvent:DQe}=Kj(),{getEncoding:rV}=eV(),{serializeAMimeType:RQe,parseMIMEType:nV}=gr(),{types:TQe}=v("node:util"),{StringDecoder:oV}=v("string_decoder"),{btoa:iV}=v("node:buffer"),NQe={enumerable:!0,writable:!1,configurable:!1};function LQe(e,t,r,n){if(e[iu]==="loading")throw new DOMException("Invalid state","InvalidStateError");e[iu]="loading",e[tV]=null,e[Kx]=null;let i=t.stream().getReader(),s=[],a=i.read(),c=!0;(async()=>{while(!e[hd])try{let{done:u,value:A}=await a;if(c&&!e[hd])queueMicrotask(()=>{Qi("loadstart",e)});if(c=!1,!u&&TQe.isUint8Array(A)){if(s.push(A),(e[Xx]===void 0||Date.now()-e[Xx]>=50)&&!e[hd])e[Xx]=Date.now(),queueMicrotask(()=>{Qi("progress",e)});a=i.read()}else if(u){queueMicrotask(()=>{e[iu]="done";try{let p=UQe(s,r,t.type,n);if(e[hd])return;e[tV]=p,Qi("load",e)}catch(p){e[Kx]=p,Qi("error",e)}if(e[iu]!=="loading")Qi("loadend",e)});break}}catch(u){if(e[hd])return;queueMicrotask(()=>{if(e[iu]="done",e[Kx]=u,Qi("error",e),e[iu]!=="loading")Qi("loadend",e)});break}})()}function Qi(e,t){let r=new DQe(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(r)}function UQe(e,t,r,n){switch(t){case"DataURL":{let o="data:",i=nV(r||"application/octet-stream");if(i!=="failure")o+=RQe(i);o+=";base64,";let s=new oV("latin1");for(let a of e)o+=iV(s.write(a));return o+=iV(s.end()),o}case"Text":{let o="failure";if(n)o=rV(n);if(o==="failure"&&r){let i=nV(r);if(i!=="failure")o=rV(i.parameters.get("charset"))}if(o==="failure")o="UTF-8";return OQe(e,o)}case"ArrayBuffer":return sV(e).buffer;case"BinaryString":{let o="",i=new oV("latin1");for(let s of e)o+=i.write(s);return o+=i.end(),o}}}function OQe(e,t){let r=sV(e),n=FQe(r),o=0;if(n!==null)t=n,o=n==="UTF-8"?3:2;let i=r.slice(o);return new TextDecoder(t).decode(i)}function FQe(e){let[t,r,n]=e;if(t===239&&r===187&&n===191)return"UTF-8";else if(t===254&&r===255)return"UTF-16BE";else if(t===255&&r===254)return"UTF-16LE";return null}function sV(e){let t=e.reduce((n,o)=>n+o.byteLength,0),r=0;return e.reduce((n,o)=>(n.set(o,r),r+=o.byteLength,n),new Uint8Array(t))}aV.exports={staticPropertyDescriptors:NQe,readOperation:LQe,fireAProgressEvent:Qi}});var dV=y((LKe,AV)=>{var{staticPropertyDescriptors:su,readOperation:qh,fireAProgressEvent:uV}=cV(),{kState:Fs,kError:lV,kResult:Wh,kEvents:Se,kAborted:MQe}=Zx(),{webidl:Me}=Gt(),{kEnumerableProperty:Er}=me();class Fe extends EventTarget{constructor(){super();this[Fs]="empty",this[Wh]=null,this[lV]=null,this[Se]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){Me.brandCheck(this,Fe),Me.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=Me.converters.Blob(e,{strict:!1}),qh(this,e,"ArrayBuffer")}readAsBinaryString(e){Me.brandCheck(this,Fe),Me.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=Me.converters.Blob(e,{strict:!1}),qh(this,e,"BinaryString")}readAsText(e,t=void 0){if(Me.brandCheck(this,Fe),Me.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=Me.converters.Blob(e,{strict:!1}),t!==void 0)t=Me.converters.DOMString(t,"FileReader.readAsText","encoding");qh(this,e,"Text",t)}readAsDataURL(e){Me.brandCheck(this,Fe),Me.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=Me.converters.Blob(e,{strict:!1}),qh(this,e,"DataURL")}abort(){if(this[Fs]==="empty"||this[Fs]==="done"){this[Wh]=null;return}if(this[Fs]==="loading")this[Fs]="done",this[Wh]=null;if(this[MQe]=!0,uV("abort",this),this[Fs]!=="loading")uV("loadend",this)}get readyState(){switch(Me.brandCheck(this,Fe),this[Fs]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return Me.brandCheck(this,Fe),this[Wh]}get error(){return Me.brandCheck(this,Fe),this[lV]}get onloadend(){return Me.brandCheck(this,Fe),this[Se].loadend}set onloadend(e){if(Me.brandCheck(this,Fe),this[Se].loadend)this.removeEventListener("loadend",this[Se].loadend);if(typeof e==="function")this[Se].loadend=e,this.addEventListener("loadend",e);else this[Se].loadend=null}get onerror(){return Me.brandCheck(this,Fe),this[Se].error}set onerror(e){if(Me.brandCheck(this,Fe),this[Se].error)this.removeEventListener("error",this[Se].error);if(typeof e==="function")this[Se].error=e,this.addEventListener("error",e);else this[Se].error=null}get onloadstart(){return Me.brandCheck(this,Fe),this[Se].loadstart}set onloadstart(e){if(Me.brandCheck(this,Fe),this[Se].loadstart)this.removeEventListener("loadstart",this[Se].loadstart);if(typeof e==="function")this[Se].loadstart=e,this.addEventListener("loadstart",e);else this[Se].loadstart=null}get onprogress(){return Me.brandCheck(this,Fe),this[Se].progress}set onprogress(e){if(Me.brandCheck(this,Fe),this[Se].progress)this.removeEventListener("progress",this[Se].progress);if(typeof e==="function")this[Se].progress=e,this.addEventListener("progress",e);else this[Se].progress=null}get onload(){return Me.brandCheck(this,Fe),this[Se].load}set onload(e){if(Me.brandCheck(this,Fe),this[Se].load)this.removeEventListener("load",this[Se].load);if(typeof e==="function")this[Se].load=e,this.addEventListener("load",e);else this[Se].load=null}get onabort(){return Me.brandCheck(this,Fe),this[Se].abort}set onabort(e){if(Me.brandCheck(this,Fe),this[Se].abort)this.removeEventListener("abort",this[Se].abort);if(typeof e==="function")this[Se].abort=e,this.addEventListener("abort",e);else this[Se].abort=null}}Fe.EMPTY=Fe.prototype.EMPTY=0;Fe.LOADING=Fe.prototype.LOADING=1;Fe.DONE=Fe.prototype.DONE=2;Object.defineProperties(Fe.prototype,{EMPTY:su,LOADING:su,DONE:su,readAsArrayBuffer:Er,readAsBinaryString:Er,readAsText:Er,readAsDataURL:Er,abort:Er,readyState:Er,result:Er,error:Er,onloadstart:Er,onprogress:Er,onload:Er,onabort:Er,onerror:Er,onloadend:Er,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Fe,{EMPTY:su,LOADING:su,DONE:su});AV.exports={FileReader:Fe}});var Zh=y((UKe,pV)=>{pV.exports={kConstruct:rt().kConstruct}});var hV=y((OKe,gV)=>{var PQe=v("node:assert"),{URLSerializer:fV}=gr(),{isValidHeaderName:$Qe}=Lr();function HQe(e,t,r=!1){let n=fV(e,r),o=fV(t,r);return n===o}function GQe(e){PQe(e!==null);let t=[];for(let r of e.split(","))if(r=r.trim(),$Qe(r))t.push(r);return t}gV.exports={urlEquals:HQe,getFieldValues:GQe}});var CV=y((FKe,EV)=>{var{kConstruct:zQe}=Zh(),{urlEquals:YQe,getFieldValues:e_}=hV(),{kEnumerableProperty:Ms,isDisturbed:jQe}=me(),{webidl:W}=Gt(),{Response:VQe,cloneResponse:JQe,fromInnerResponse:qQe}=dd(),{Request:To,fromInnerRequest:WQe}=ou(),{kState:Ln}=fi(),{fetching:ZQe}=fd(),{urlIsHttpHttpsScheme:Kh,createDeferredPromise:au,readAllBytes:KQe}=Lr(),t_=v("node:assert");class io{#e;constructor(){if(arguments[0]!==zQe)W.illegalConstructor();W.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,t={}){W.brandCheck(this,io);let r="Cache.match";W.argumentLengthCheck(arguments,1,r),e=W.converters.RequestInfo(e,r,"request"),t=W.converters.CacheQueryOptions(t,r,"options");let n=this.#o(e,t,1);if(n.length===0)return;return n[0]}async matchAll(e=void 0,t={}){W.brandCheck(this,io);let r="Cache.matchAll";if(e!==void 0)e=W.converters.RequestInfo(e,r,"request");return t=W.converters.CacheQueryOptions(t,r,"options"),this.#o(e,t)}async add(e){W.brandCheck(this,io);let t="Cache.add";W.argumentLengthCheck(arguments,1,t),e=W.converters.RequestInfo(e,t,"request");let r=[e];return await this.addAll(r)}async addAll(e){W.brandCheck(this,io);let t="Cache.addAll";W.argumentLengthCheck(arguments,1,t);let r=[],n=[];for(let p of e){if(p===void 0)throw W.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]});if(p=W.converters.RequestInfo(p),typeof p==="string")continue;let d=p[Ln];if(!Kh(d.url)||d.method!=="GET")throw W.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let p of e){let d=new To(p)[Ln];if(!Kh(d.url))throw W.errors.exception({header:t,message:"Expected http/s scheme."});d.initiator="fetch",d.destination="subresource",n.push(d);let f=au();o.push(ZQe({request:d,processResponse(g){if(g.type==="error"||g.status===206||g.status<200||g.status>299)f.reject(W.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(g.headersList.contains("vary")){let m=e_(g.headersList.get("vary"));for(let h of m)if(h==="*"){f.reject(W.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let E of o)E.abort();return}}},processResponseEndOfBody(g){if(g.aborted){f.reject(new DOMException("aborted","AbortError"));return}f.resolve(g)}})),r.push(f.promise)}let s=await Promise.all(r),a=[],c=0;for(let p of s){let d={type:"put",request:n[c],response:p};a.push(d),c++}let u=au(),A=null;try{this.#t(a)}catch(p){A=p}return queueMicrotask(()=>{if(A===null)u.resolve(void 0);else u.reject(A)}),u.promise}async put(e,t){W.brandCheck(this,io);let r="Cache.put";W.argumentLengthCheck(arguments,2,r),e=W.converters.RequestInfo(e,r,"request"),t=W.converters.Response(t,r,"response");let n=null;if(e instanceof To)n=e[Ln];else n=new To(e)[Ln];if(!Kh(n.url)||n.method!=="GET")throw W.errors.exception({header:r,message:"Expected an http/s scheme when method is not GET"});let o=t[Ln];if(o.status===206)throw W.errors.exception({header:r,message:"Got 206 status"});if(o.headersList.contains("vary")){let d=e_(o.headersList.get("vary"));for(let f of d)if(f==="*")throw W.errors.exception({header:r,message:"Got * vary field value"})}if(o.body&&(jQe(o.body.stream)||o.body.stream.locked))throw W.errors.exception({header:r,message:"Response body is locked or disturbed"});let i=JQe(o),s=au();if(o.body!=null){let f=o.body.stream.getReader();KQe(f).then(s.resolve,s.reject)}else s.resolve(void 0);let a=[],c={type:"put",request:n,response:i};a.push(c);let u=await s.promise;if(i.body!=null)i.body.source=u;let A=au(),p=null;try{this.#t(a)}catch(d){p=d}return queueMicrotask(()=>{if(p===null)A.resolve();else A.reject(p)}),A.promise}async delete(e,t={}){W.brandCheck(this,io);let r="Cache.delete";W.argumentLengthCheck(arguments,1,r),e=W.converters.RequestInfo(e,r,"request"),t=W.converters.CacheQueryOptions(t,r,"options");let n=null;if(e instanceof To){if(n=e[Ln],n.method!=="GET"&&!t.ignoreMethod)return!1}else t_(typeof e==="string"),n=new To(e)[Ln];let o=[],i={type:"delete",request:n,options:t};o.push(i);let s=au(),a=null,c;try{c=this.#t(o)}catch(u){a=u}return queueMicrotask(()=>{if(a===null)s.resolve(!!c?.length);else s.reject(a)}),s.promise}async keys(e=void 0,t={}){W.brandCheck(this,io);let r="Cache.keys";if(e!==void 0)e=W.converters.RequestInfo(e,r,"request");t=W.converters.CacheQueryOptions(t,r,"options");let n=null;if(e!==void 0){if(e instanceof To){if(n=e[Ln],n.method!=="GET"&&!t.ignoreMethod)return[]}else if(typeof e==="string")n=new To(e)[Ln]}let o=au(),i=[];if(e===void 0)for(let s of this.#e)i.push(s[0]);else{let s=this.#r(n,t);for(let a of s)i.push(a[0])}return queueMicrotask(()=>{let s=[];for(let a of i){let c=WQe(a,new AbortController().signal,"immutable");s.push(c)}o.resolve(Object.freeze(s))}),o.promise}#t(e){let t=this.#e,r=[...t],n=[],o=[];try{for(let i of e){if(i.type!=="delete"&&i.type!=="put")throw W.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(i.type==="delete"&&i.response!=null)throw W.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#r(i.request,i.options,n).length)throw new DOMException("???","InvalidStateError");let s;if(i.type==="delete"){if(s=this.#r(i.request,i.options),s.length===0)return[];for(let a of s){let c=t.indexOf(a);t_(c!==-1),t.splice(c,1)}}else if(i.type==="put"){if(i.response==null)throw W.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=i.request;if(!Kh(a.url))throw W.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw W.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(i.options!=null)throw W.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});s=this.#r(i.request);for(let c of s){let u=t.indexOf(c);t_(u!==-1),t.splice(u,1)}t.push([i.request,i.response]),n.push([i.request,i.response])}o.push([i.request,i.response])}return o}catch(i){throw this.#e.length=0,this.#e=r,i}}#r(e,t,r){let n=[],o=r??this.#e;for(let i of o){let[s,a]=i;if(this.#n(e,s,a,t))n.push(i)}return n}#n(e,t,r=null,n){let o=new URL(e.url),i=new URL(t.url);if(n?.ignoreSearch)i.search="",o.search="";if(!YQe(o,i,!0))return!1;if(r==null||n?.ignoreVary||!r.headersList.contains("vary"))return!0;let s=e_(r.headersList.get("vary"));for(let a of s){if(a==="*")return!1;let c=t.headersList.get(a),u=e.headersList.get(a);if(c!==u)return!1}return!0}#o(e,t,r=1/0){let n=null;if(e!==void 0){if(e instanceof To){if(n=e[Ln],n.method!=="GET"&&!t.ignoreMethod)return[]}else if(typeof e==="string")n=new To(e)[Ln]}let o=[];if(e===void 0)for(let s of this.#e)o.push(s[1]);else{let s=this.#r(n,t);for(let a of s)o.push(a[1])}let i=[];for(let s of o){let a=qQe(s,"immutable");if(i.push(a.clone()),i.length>=r)break}return Object.freeze(i)}}Object.defineProperties(io.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Ms,matchAll:Ms,add:Ms,addAll:Ms,put:Ms,delete:Ms,keys:Ms});var mV=[{key:"ignoreSearch",converter:W.converters.boolean,defaultValue:()=>!1},{key:"ignoreMethod",converter:W.converters.boolean,defaultValue:()=>!1},{key:"ignoreVary",converter:W.converters.boolean,defaultValue:()=>!1}];W.converters.CacheQueryOptions=W.dictionaryConverter(mV);W.converters.MultiCacheQueryOptions=W.dictionaryConverter([...mV,{key:"cacheName",converter:W.converters.DOMString}]);W.converters.Response=W.interfaceConverter(VQe);W.converters["sequence<RequestInfo>"]=W.sequenceConverter(W.converters.RequestInfo);EV.exports={Cache:io}});var yV=y((MKe,IV)=>{var{kConstruct:md}=Zh(),{Cache:Xh}=CV(),{webidl:tr}=Gt(),{kEnumerableProperty:Ed}=me();class wi{#e=new Map;constructor(){if(arguments[0]!==md)tr.illegalConstructor();tr.util.markAsUncloneable(this)}async match(e,t={}){if(tr.brandCheck(this,wi),tr.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=tr.converters.RequestInfo(e),t=tr.converters.MultiCacheQueryOptions(t),t.cacheName!=null){if(this.#e.has(t.cacheName)){let r=this.#e.get(t.cacheName);return await new Xh(md,r).match(e,t)}}else for(let r of this.#e.values()){let o=await new Xh(md,r).match(e,t);if(o!==void 0)return o}}async has(e){tr.brandCheck(this,wi);let t="CacheStorage.has";return tr.argumentLengthCheck(arguments,1,t),e=tr.converters.DOMString(e,t,"cacheName"),this.#e.has(e)}async open(e){tr.brandCheck(this,wi);let t="CacheStorage.open";if(tr.argumentLengthCheck(arguments,1,t),e=tr.converters.DOMString(e,t,"cacheName"),this.#e.has(e)){let n=this.#e.get(e);return new Xh(md,n)}let r=[];return this.#e.set(e,r),new Xh(md,r)}async delete(e){tr.brandCheck(this,wi);let t="CacheStorage.delete";return tr.argumentLengthCheck(arguments,1,t),e=tr.converters.DOMString(e,t,"cacheName"),this.#e.delete(e)}async keys(){return tr.brandCheck(this,wi),[...this.#e.keys()]}}Object.defineProperties(wi.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:Ed,has:Ed,open:Ed,delete:Ed,keys:Ed});IV.exports={CacheStorage:wi}});var bV=y((PKe,BV)=>{BV.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var r_=y(($Ke,wV)=>{function XQe(e){for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r>=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}function xV(e){for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r<33||r>126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw Error("Invalid cookie name")}}function _V(e){let t=e.length,r=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"')throw Error("Invalid cookie value");--t,++r}while(r<t){let n=e.charCodeAt(r++);if(n<33||n>126||n===34||n===44||n===59||n===92)throw Error("Invalid cookie value")}}function vV(e){for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r<32||r===127||r===59)throw Error("Invalid cookie path")}}function ewe(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw Error("Invalid cookie domain")}var twe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rwe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],em=Array(61).fill(0).map((e,t)=>t.toString().padStart(2,"0"));function QV(e){if(typeof e==="number")e=new Date(e);return`${twe[e.getUTCDay()]}, ${em[e.getUTCDate()]} ${rwe[e.getUTCMonth()]} ${e.getUTCFullYear()} ${em[e.getUTCHours()]}:${em[e.getUTCMinutes()]}:${em[e.getUTCSeconds()]} GMT`}function nwe(e){if(e<0)throw Error("Invalid cookie max-age")}function owe(e){if(e.name.length===0)return null;xV(e.name),_V(e.value);let t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-"))e.secure=!0;if(e.name.startsWith("__Host-"))e.secure=!0,e.domain=null,e.path="/";if(e.secure)t.push("Secure");if(e.httpOnly)t.push("HttpOnly");if(typeof e.maxAge==="number")nwe(e.maxAge),t.push(`Max-Age=${e.maxAge}`);if(e.domain)ewe(e.domain),t.push(`Domain=${e.domain}`);if(e.path)vV(e.path),t.push(`Path=${e.path}`);if(e.expires&&e.expires.toString()!=="Invalid Date")t.push(`Expires=${QV(e.expires)}`);if(e.sameSite)t.push(`SameSite=${e.sameSite}`);for(let r of e.unparsed){if(!r.includes("="))throw Error("Invalid unparsed");let[n,...o]=r.split("=");t.push(`${n.trim()}=${o.join("=")}`)}return t.join("; ")}wV.exports={isCTLExcludingHtab:XQe,validateCookieName:xV,validateCookiePath:vV,validateCookieValue:_V,toIMFDate:QV,stringify:owe}});var kV=y((HKe,SV)=>{var{maxNameValuePairSize:iwe,maxAttributeValueSize:swe}=bV(),{isCTLExcludingHtab:awe}=r_(),{collectASequenceOfCodePointsFast:tm}=gr(),cwe=v("node:assert");function uwe(e){if(awe(e))return null;let t="",r="",n="",o="";if(e.includes(";")){let i={position:0};t=tm(";",e,i),r=e.slice(i.position)}else t=e;if(!t.includes("="))o=t;else{let i={position:0};n=tm("=",t,i),o=t.slice(i.position+1)}if(n=n.trim(),o=o.trim(),n.length+o.length>iwe)return null;return{name:n,value:o,...cu(r)}}function cu(e,t={}){if(e.length===0)return t;cwe(e[0]===";"),e=e.slice(1);let r="";if(e.includes(";"))r=tm(";",e,{position:0}),e=e.slice(r.length);else r=e,e="";let n="",o="";if(r.includes("=")){let s={position:0};n=tm("=",r,s),o=r.slice(s.position+1)}else n=r;if(n=n.trim(),o=o.trim(),o.length>swe)return cu(e,t);let i=n.toLowerCase();if(i==="expires"){let s=new Date(o);t.expires=s}else if(i==="max-age"){let s=o.charCodeAt(0);if((s<48||s>57)&&o[0]!=="-")return cu(e,t);if(!/^\d+$/.test(o))return cu(e,t);let a=Number(o);t.maxAge=a}else if(i==="domain"){let s=o;if(s[0]===".")s=s.slice(1);s=s.toLowerCase(),t.domain=s}else if(i==="path"){let s="";if(o.length===0||o[0]!=="/")s="/";else s=o;t.path=s}else if(i==="secure")t.secure=!0;else if(i==="httponly")t.httpOnly=!0;else if(i==="samesite"){let s="Default",a=o.toLowerCase();if(a.includes("none"))s="None";if(a.includes("strict"))s="Strict";if(a.includes("lax"))s="Lax";t.sameSite=s}else t.unparsed??=[],t.unparsed.push(`${n}=${o}`);return cu(e,t)}SV.exports={parseSetCookie:uwe,parseUnparsedAttributes:cu}});var TV=y((GKe,RV)=>{var{parseSetCookie:lwe}=kV(),{stringify:Awe}=r_(),{webidl:ye}=Gt(),{Headers:rm}=Ls();function dwe(e){ye.argumentLengthCheck(arguments,1,"getCookies"),ye.brandCheck(e,rm,{strict:!1});let t=e.get("cookie"),r={};if(!t)return r;for(let n of t.split(";")){let[o,...i]=n.split("=");r[o.trim()]=i.join("=")}return r}function pwe(e,t,r){ye.brandCheck(e,rm,{strict:!1});let n="deleteCookie";ye.argumentLengthCheck(arguments,2,n),t=ye.converters.DOMString(t,n,"name"),r=ye.converters.DeleteCookieAttributes(r),DV(e,{name:t,value:"",expires:new Date(0),...r})}function fwe(e){ye.argumentLengthCheck(arguments,1,"getSetCookies"),ye.brandCheck(e,rm,{strict:!1});let t=e.getSetCookie();if(!t)return[];return t.map((r)=>lwe(r))}function DV(e,t){ye.argumentLengthCheck(arguments,2,"setCookie"),ye.brandCheck(e,rm,{strict:!1}),t=ye.converters.Cookie(t);let r=Awe(t);if(r)e.append("Set-Cookie",r)}ye.converters.DeleteCookieAttributes=ye.dictionaryConverter([{converter:ye.nullableConverter(ye.converters.DOMString),key:"path",defaultValue:()=>null},{converter:ye.nullableConverter(ye.converters.DOMString),key:"domain",defaultValue:()=>null}]);ye.converters.Cookie=ye.dictionaryConverter([{converter:ye.converters.DOMString,key:"name"},{converter:ye.converters.DOMString,key:"value"},{converter:ye.nullableConverter((e)=>{if(typeof e==="number")return ye.converters["unsigned long long"](e);return new Date(e)}),key:"expires",defaultValue:()=>null},{converter:ye.nullableConverter(ye.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:ye.nullableConverter(ye.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:ye.nullableConverter(ye.converters.DOMString),key:"path",defaultValue:()=>null},{converter:ye.nullableConverter(ye.converters.boolean),key:"secure",defaultValue:()=>null},{converter:ye.nullableConverter(ye.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:ye.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:ye.sequenceConverter(ye.converters.DOMString),key:"unparsed",defaultValue:()=>[]}]);RV.exports={getCookies:dwe,deleteCookie:pwe,getSetCookies:fwe,setCookie:DV}});var lu=y((zKe,LV)=>{var{webidl:q}=Gt(),{kEnumerableProperty:Cr}=me(),{kConstruct:NV}=rt(),{MessagePort:gwe}=v("node:worker_threads");class Hr extends Event{#e;constructor(e,t={}){if(e===NV){super(arguments[1],arguments[2]);q.util.markAsUncloneable(this);return}let r="MessageEvent constructor";q.argumentLengthCheck(arguments,1,r),e=q.converters.DOMString(e,r,"type"),t=q.converters.MessageEventInit(t,r,"eventInitDict");super(e,t);this.#e=t,q.util.markAsUncloneable(this)}get data(){return q.brandCheck(this,Hr),this.#e.data}get origin(){return q.brandCheck(this,Hr),this.#e.origin}get lastEventId(){return q.brandCheck(this,Hr),this.#e.lastEventId}get source(){return q.brandCheck(this,Hr),this.#e.source}get ports(){if(q.brandCheck(this,Hr),!Object.isFrozen(this.#e.ports))Object.freeze(this.#e.ports);return this.#e.ports}initMessageEvent(e,t=!1,r=!1,n=null,o="",i="",s=null,a=[]){return q.brandCheck(this,Hr),q.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new Hr(e,{bubbles:t,cancelable:r,data:n,origin:o,lastEventId:i,source:s,ports:a})}static createFastMessageEvent(e,t){let r=new Hr(NV,e,t);return r.#e=t,r.#e.data??=null,r.#e.origin??="",r.#e.lastEventId??="",r.#e.source??=null,r.#e.ports??=[],r}}var{createFastMessageEvent:hwe}=Hr;delete Hr.createFastMessageEvent;class uu extends Event{#e;constructor(e,t={}){q.argumentLengthCheck(arguments,1,"CloseEvent constructor"),e=q.converters.DOMString(e,"CloseEvent constructor","type"),t=q.converters.CloseEventInit(t);super(e,t);this.#e=t,q.util.markAsUncloneable(this)}get wasClean(){return q.brandCheck(this,uu),this.#e.wasClean}get code(){return q.brandCheck(this,uu),this.#e.code}get reason(){return q.brandCheck(this,uu),this.#e.reason}}class Si extends Event{#e;constructor(e,t){q.argumentLengthCheck(arguments,1,"ErrorEvent constructor");super(e,t);q.util.markAsUncloneable(this),e=q.converters.DOMString(e,"ErrorEvent constructor","type"),t=q.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return q.brandCheck(this,Si),this.#e.message}get filename(){return q.brandCheck(this,Si),this.#e.filename}get lineno(){return q.brandCheck(this,Si),this.#e.lineno}get colno(){return q.brandCheck(this,Si),this.#e.colno}get error(){return q.brandCheck(this,Si),this.#e.error}}Object.defineProperties(Hr.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:Cr,origin:Cr,lastEventId:Cr,source:Cr,ports:Cr,initMessageEvent:Cr});Object.defineProperties(uu.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:Cr,code:Cr,wasClean:Cr});Object.defineProperties(Si.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:Cr,filename:Cr,lineno:Cr,colno:Cr,error:Cr});q.converters.MessagePort=q.interfaceConverter(gwe);q.converters["sequence<MessagePort>"]=q.sequenceConverter(q.converters.MessagePort);var n_=[{key:"bubbles",converter:q.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:q.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:q.converters.boolean,defaultValue:()=>!1}];q.converters.MessageEventInit=q.dictionaryConverter([...n_,{key:"data",converter:q.converters.any,defaultValue:()=>null},{key:"origin",converter:q.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:q.converters.DOMString,defaultValue:()=>""},{key:"source",converter:q.nullableConverter(q.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:q.converters["sequence<MessagePort>"],defaultValue:()=>[]}]);q.converters.CloseEventInit=q.dictionaryConverter([...n_,{key:"wasClean",converter:q.converters.boolean,defaultValue:()=>!1},{key:"code",converter:q.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:q.converters.USVString,defaultValue:()=>""}]);q.converters.ErrorEventInit=q.dictionaryConverter([...n_,{key:"message",converter:q.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:q.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:q.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:q.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:q.converters.any}]);LV.exports={MessageEvent:Hr,CloseEvent:uu,ErrorEvent:Si,createFastMessageEvent:hwe}});var Ps=y((YKe,UV)=>{var mwe={enumerable:!0,writable:!1,configurable:!1},Ewe={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},Cwe={NOT_SENT:0,PROCESSING:1,SENT:2},Iwe={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},ywe={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},Bwe=Buffer.allocUnsafe(0),bwe={string:1,typedArray:2,arrayBuffer:3,blob:4};UV.exports={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",sentCloseFrameState:Cwe,staticPropertyDescriptors:mwe,states:Ewe,opcodes:Iwe,maxUnsigned16Bit:65535,parserStates:ywe,emptyBuffer:Bwe,sendHints:bwe}});var Cd=y((jKe,OV)=>{OV.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var Bd=y((VKe,jV)=>{var{kReadyState:Id,kController:xwe,kResponse:_we,kBinaryType:vwe,kWebSocketURL:Qwe}=Cd(),{states:yd,opcodes:ki}=Ps(),{ErrorEvent:wwe,createFastMessageEvent:Swe}=lu(),{isUtf8:kwe}=v("node:buffer"),{collectASequenceOfCodePointsFast:Dwe,removeHTTPWhitespace:FV}=gr();function Rwe(e){return e[Id]===yd.CONNECTING}function Twe(e){return e[Id]===yd.OPEN}function Nwe(e){return e[Id]===yd.CLOSING}function Lwe(e){return e[Id]===yd.CLOSED}function o_(e,t,r=(o,i)=>new Event(o,i),n={}){let o=r(e,n);t.dispatchEvent(o)}function Uwe(e,t,r){if(e[Id]!==yd.OPEN)return;let n;if(t===ki.TEXT)try{n=YV(r)}catch{PV(e,"Received invalid UTF-8 in text frame.");return}else if(t===ki.BINARY)if(e[vwe]==="blob")n=new Blob([r]);else n=Owe(r);o_("message",e,Swe,{origin:e[Qwe].origin,data:n})}function Owe(e){if(e.byteLength===e.buffer.byteLength)return e.buffer;return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function Fwe(e){if(e.length===0)return!1;for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r<33||r>126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}function Mwe(e){if(e>=1000&&e<1015)return e!==1004&&e!==1005&&e!==1006;return e>=3000&&e<=4999}function PV(e,t){let{[xwe]:r,[_we]:n}=e;if(r.abort(),n?.socket&&!n.socket.destroyed)n.socket.destroy();if(t)o_("error",e,(o,i)=>new wwe(o,i),{error:Error(t),message:t})}function $V(e){return e===ki.CLOSE||e===ki.PING||e===ki.PONG}function HV(e){return e===ki.CONTINUATION}function GV(e){return e===ki.TEXT||e===ki.BINARY}function Pwe(e){return GV(e)||HV(e)||$V(e)}function $we(e){let t={position:0},r=new Map;while(t.position<e.length){let n=Dwe(";",e,t),[o,i=""]=n.split("=");r.set(FV(o,!0,!1),FV(i,!1,!0)),t.position++}return r}function Hwe(e){if(e.length===0)return!1;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n<48||n>57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}var zV=typeof process.versions.icu==="string",MV=zV?new TextDecoder("utf-8",{fatal:!0}):void 0,YV=zV?MV.decode.bind(MV):function(e){if(kwe(e))return e.toString("utf-8");throw TypeError("Invalid utf-8 received.")};jV.exports={isConnecting:Rwe,isEstablished:Twe,isClosing:Nwe,isClosed:Lwe,fireEvent:o_,isValidSubprotocol:Fwe,isValidStatusCode:Mwe,failWebsocketConnection:PV,websocketMessageReceived:Uwe,utf8Decode:YV,isControlFrame:$V,isContinuationFrame:HV,isTextBinaryFrame:GV,isValidOpcode:Pwe,parseExtensions:$we,isValidClientWindowBits:Hwe}});var nm=y((JKe,JV)=>{var{maxUnsigned16Bit:Gwe}=Ps(),i_,bd=null,Au=16386;try{i_=v("node:crypto")}catch{i_={randomFillSync:function(t,r,n){for(let o=0;o<t.length;++o)t[o]=Math.random()*255|0;return t}}}function zwe(){if(Au===16386)Au=0,i_.randomFillSync(bd??=Buffer.allocUnsafe(16386),0,16386);return[bd[Au++],bd[Au++],bd[Au++],bd[Au++]]}class VV{constructor(e){this.frameData=e}createFrame(e){let t=this.frameData,r=zwe(),n=t?.byteLength??0,o=n,i=6;if(n>Gwe)i+=8,o=127;else if(n>125)i+=2,o=126;let s=Buffer.allocUnsafe(n+i);s[0]=s[1]=0,s[0]|=128,s[0]=(s[0]&240)+e;/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */if(s[i-4]=r[0],s[i-3]=r[1],s[i-2]=r[2],s[i-1]=r[3],s[1]=o,o===126)s.writeUInt16BE(n,2);else if(o===127)s[2]=s[3]=0,s.writeUIntBE(n,4,6);s[1]|=128;for(let a=0;a<n;++a)s[i+a]=t[a]^r[a&3];return s}}JV.exports={WebsocketFrameSend:VV}});var a_=y((qKe,tJ)=>{var{uid:Ywe,states:xd,sentCloseFrameState:om,emptyBuffer:jwe,opcodes:Vwe}=Ps(),{kReadyState:_d,kSentClose:im,kByteParser:WV,kReceivedClose:qV,kResponse:ZV}=Cd(),{fireEvent:Jwe,failWebsocketConnection:Di,isClosing:qwe,isClosed:Wwe,isEstablished:Zwe,parseExtensions:Kwe}=Bd(),{channels:du}=xc(),{CloseEvent:Xwe}=lu(),{makeRequest:eSe}=ou(),{fetching:tSe}=fd(),{Headers:rSe,getHeadersList:nSe}=Ls(),{getDecodeSplit:oSe}=Lr(),{WebsocketFrameSend:iSe}=nm(),s_;try{s_=v("node:crypto")}catch{}function sSe(e,t,r,n,o,i){let s=e;s.protocol=e.protocol==="ws:"?"http:":"https:";let a=eSe({urlList:[s],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(i.headers){let p=nSe(new rSe(i.headers));a.headersList=p}let c=s_.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c),a.headersList.append("sec-websocket-version","13");for(let p of t)a.headersList.append("sec-websocket-protocol",p);let u="permessage-deflate; client_max_window_bits";return a.headersList.append("sec-websocket-extensions",u),tSe({request:a,useParallelQueue:!0,dispatcher:i.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){Di(n,"Received network error or non-101 status code.");return}if(t.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){Di(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Di(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Di(n,'Server did not set Connection header to "upgrade".');return}let d=p.headersList.get("Sec-WebSocket-Accept"),f=s_.createHash("sha1").update(c+Ywe).digest("base64");if(d!==f){Di(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let g=p.headersList.get("Sec-WebSocket-Extensions"),m;if(g!==null){if(m=Kwe(g),!m.has("permessage-deflate")){Di(n,"Sec-WebSocket-Extensions header does not match.");return}}let h=p.headersList.get("Sec-WebSocket-Protocol");if(h!==null){if(!oSe("sec-websocket-protocol",a.headersList).includes(h)){Di(n,"Protocol was not set in the opening handshake.");return}}if(p.socket.on("data",KV),p.socket.on("close",XV),p.socket.on("error",eJ),du.open.hasSubscribers)du.open.publish({address:p.socket.address(),protocol:h,extensions:g});o(p,m)}})}function aSe(e,t,r,n){if(qwe(e)||Wwe(e));else if(!Zwe(e))Di(e,"Connection was closed before it was established."),e[_d]=xd.CLOSING;else if(e[im]===om.NOT_SENT){e[im]=om.PROCESSING;let o=new iSe;if(t!==void 0&&r===void 0)o.frameData=Buffer.allocUnsafe(2),o.frameData.writeUInt16BE(t,0);else if(t!==void 0&&r!==void 0)o.frameData=Buffer.allocUnsafe(2+n),o.frameData.writeUInt16BE(t,0),o.frameData.write(r,2,"utf-8");else o.frameData=jwe;e[ZV].socket.write(o.createFrame(Vwe.CLOSE)),e[im]=om.SENT,e[_d]=xd.CLOSING}else e[_d]=xd.CLOSING}function KV(e){if(!this.ws[WV].write(e))this.pause()}function XV(){let{ws:e}=this,{[ZV]:t}=e;t.socket.off("data",KV),t.socket.off("close",XV),t.socket.off("error",eJ);let r=e[im]===om.SENT&&e[qV],n=1005,o="",i=e[WV].closingInfo;if(i&&!i.error)n=i.code??1005,o=i.reason;else if(!e[qV])n=1006;if(e[_d]=xd.CLOSED,Jwe("close",e,(s,a)=>new Xwe(s,a),{wasClean:r,code:n,reason:o}),du.close.hasSubscribers)du.close.publish({websocket:e,code:n,reason:o})}function eJ(e){let{ws:t}=this;if(t[_d]=xd.CLOSING,du.socketError.hasSubscribers)du.socketError.publish(e);this.destroy()}tJ.exports={establishWebSocketConnection:sSe,closeWebSocketConnection:aSe}});var iJ=y((WKe,oJ)=>{var{createInflateRaw:cSe,Z_DEFAULT_WINDOWBITS:uSe}=v("node:zlib"),{isValidClientWindowBits:lSe}=Bd(),{MessageSizeExceededError:rJ}=ve(),ASe=Buffer.from([0,0,255,255]),sm=Symbol("kBuffer"),vd=Symbol("kLength");class nJ{#e;#t={};#r=!1;#n=null;constructor(e){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#r){r(new rJ);return}if(!this.#e){let n=uSe;if(this.#t.serverMaxWindowBits){if(!lSe(this.#t.serverMaxWindowBits)){r(Error("Invalid server_max_window_bits"));return}n=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=cSe({windowBits:n})}catch(o){r(o);return}this.#e[sm]=[],this.#e[vd]=0,this.#e.on("data",(o)=>{if(this.#r)return;if(this.#e[vd]+=o.length,this.#e[vd]>4194304){if(this.#r=!0,this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null,this.#n){let i=this.#n;this.#n=null,i(new rJ)}return}this.#e[sm].push(o)}),this.#e.on("error",(o)=>{this.#e=null,r(o)})}if(this.#n=r,this.#e.write(e),t)this.#e.write(ASe);this.#e.flush(()=>{if(this.#r||!this.#e)return;let n=Buffer.concat(this.#e[sm],this.#e[vd]);this.#e[sm].length=0,this.#e[vd]=0,this.#n=null,r(null,n)})}}oJ.exports={PerMessageDeflate:nJ}});var hJ=y((ZKe,gJ)=>{var{Writable:dSe}=v("node:stream"),pSe=v("node:assert"),{parserStates:Ir,opcodes:pu,states:fSe,emptyBuffer:sJ,sentCloseFrameState:aJ}=Ps(),{kReadyState:gSe,kSentClose:cJ,kResponse:uJ,kReceivedClose:lJ}=Cd(),{channels:am}=xc(),{isValidStatusCode:hSe,isValidOpcode:mSe,failWebsocketConnection:Gr,websocketMessageReceived:AJ,utf8Decode:ESe,isControlFrame:dJ,isTextBinaryFrame:c_,isContinuationFrame:CSe}=Bd(),{WebsocketFrameSend:pJ}=nm(),{closeWebSocketConnection:ISe}=a_(),{PerMessageDeflate:ySe}=iJ();class fJ extends dSe{#e=[];#t=0;#r=!1;#n=Ir.INFO;#o={};#a=[];#i;constructor(e,t){super();if(this.ws=e,this.#i=t==null?new Map:t,this.#i.has("permessage-deflate"))this.#i.set("permessage-deflate",new ySe(t))}_write(e,t,r){this.#e.push(e),this.#t+=e.length,this.#r=!0,this.run(r)}run(e){while(this.#r)if(this.#n===Ir.INFO){if(this.#t<2)return e();let t=this.consume(2),r=(t[0]&128)!==0,n=t[0]&15,o=(t[1]&128)===128,i=!r&&n!==pu.CONTINUATION,s=t[1]&127,a=t[0]&64,c=t[0]&32,u=t[0]&16;if(!mSe(n))return Gr(this.ws,"Invalid opcode received"),e();if(o)return Gr(this.ws,"Frame cannot be masked"),e();if(a!==0&&!this.#i.has("permessage-deflate")){Gr(this.ws,"Expected RSV1 to be clear.");return}if(c!==0||u!==0){Gr(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(i&&!c_(n)){Gr(this.ws,"Invalid frame type was fragmented.");return}if(c_(n)&&this.#a.length>0){Gr(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&i){Gr(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((s>125||i)&&dJ(n)){Gr(this.ws,"Control frame either too large or fragmented");return}if(CSe(n)&&this.#a.length===0&&!this.#o.compressed){Gr(this.ws,"Unexpected continuation frame");return}if(s<=125)this.#o.payloadLength=s,this.#n=Ir.READ_DATA;else if(s===126)this.#n=Ir.PAYLOADLENGTH_16;else if(s===127)this.#n=Ir.PAYLOADLENGTH_64;if(c_(n))this.#o.binaryType=n,this.#o.compressed=a!==0;this.#o.opcode=n,this.#o.masked=o,this.#o.fin=r,this.#o.fragmented=i}else if(this.#n===Ir.PAYLOADLENGTH_16){if(this.#t<2)return e();let t=this.consume(2);this.#o.payloadLength=t.readUInt16BE(0),this.#n=Ir.READ_DATA}else if(this.#n===Ir.PAYLOADLENGTH_64){if(this.#t<8)return e();let t=this.consume(8),r=t.readUInt32BE(0),n=t.readUInt32BE(4);if(r!==0||n>2147483647){Gr(this.ws,"Received payload length > 2^31 bytes.");return}this.#o.payloadLength=n,this.#n=Ir.READ_DATA}else if(this.#n===Ir.READ_DATA){if(this.#t<this.#o.payloadLength)return e();let t=this.consume(this.#o.payloadLength);if(dJ(this.#o.opcode))this.#r=this.parseControlFrame(t),this.#n=Ir.INFO;else if(!this.#o.compressed){if(this.#a.push(t),!this.#o.fragmented&&this.#o.fin){let r=Buffer.concat(this.#a);AJ(this.ws,this.#o.binaryType,r),this.#a.length=0}this.#n=Ir.INFO}else{this.#i.get("permessage-deflate").decompress(t,this.#o.fin,(r,n)=>{if(r){Gr(this.ws,r.message);return}if(this.#a.push(n),!this.#o.fin){this.#n=Ir.INFO,this.#r=!0,this.run(e);return}AJ(this.ws,this.#o.binaryType,Buffer.concat(this.#a)),this.#r=!0,this.#n=Ir.INFO,this.#a.length=0,this.run(e)}),this.#r=!1;break}}}consume(e){if(e>this.#t)throw Error("Called consume() before buffers satiated.");else if(e===0)return sJ;if(this.#e[0].length===e)return this.#t-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),r=0;while(r!==e){let n=this.#e[0],{length:o}=n;if(o+r===e){t.set(this.#e.shift(),r);break}else if(o+r>e){t.set(n.subarray(0,e-r),r),this.#e[0]=n.subarray(e-r);break}else t.set(this.#e.shift(),r),r+=n.length}return this.#t-=e,t}parseCloseBody(e){pSe(e.length!==1);let t;if(e.length>=2)t=e.readUInt16BE(0);if(t!==void 0&&!hSe(t))return{code:1002,reason:"Invalid status code",error:!0};let r=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191)r=r.subarray(3);try{r=ESe(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:t,reason:r,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:r}=this.#o;if(t===pu.CLOSE){if(r===1)return Gr(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#o.closeInfo=this.parseCloseBody(e),this.#o.closeInfo.error){let{code:n,reason:o}=this.#o.closeInfo;return ISe(this.ws,n,o,o.length),Gr(this.ws,o),!1}if(this.ws[cJ]!==aJ.SENT){let n=sJ;if(this.#o.closeInfo.code)n=Buffer.allocUnsafe(2),n.writeUInt16BE(this.#o.closeInfo.code,0);let o=new pJ(n);this.ws[uJ].socket.write(o.createFrame(pu.CLOSE),(i)=>{if(!i)this.ws[cJ]=aJ.SENT})}return this.ws[gSe]=fSe.CLOSING,this.ws[lJ]=!0,!1}else if(t===pu.PING){if(!this.ws[lJ]){let n=new pJ(e);if(this.ws[uJ].socket.write(n.createFrame(pu.PONG)),am.ping.hasSubscribers)am.ping.publish({payload:e})}}else if(t===pu.PONG){if(am.pong.hasSubscribers)am.pong.publish({payload:e})}return!0}get closingInfo(){return this.#o.closeInfo}}gJ.exports={ByteParser:fJ}});var BJ=y((KKe,yJ)=>{var{WebsocketFrameSend:BSe}=nm(),{opcodes:mJ,sendHints:fu}=Ps(),bSe=Yb(),EJ=Buffer[Symbol.species];class IJ{#e=new bSe;#t=!1;#r;constructor(e){this.#r=e}add(e,t,r){if(r!==fu.blob){let o=CJ(e,r);if(!this.#t)this.#r.write(o,t);else{let i={promise:null,callback:t,frame:o};this.#e.push(i)}return}let n={promise:e.arrayBuffer().then((o)=>{n.promise=null,n.frame=CJ(o,r)}),callback:t,frame:null};if(this.#e.push(n),!this.#t)this.#n()}async#n(){this.#t=!0;let e=this.#e;while(!e.isEmpty()){let t=e.shift();if(t.promise!==null)await t.promise;this.#r.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}}function CJ(e,t){return new BSe(xSe(e,t)).createFrame(t===fu.string?mJ.TEXT:mJ.BINARY)}function xSe(e,t){switch(t){case fu.string:return Buffer.from(e);case fu.arrayBuffer:case fu.blob:return new EJ(e);case fu.typedArray:return new EJ(e.buffer,e.byteOffset,e.byteLength)}}yJ.exports={SendQueue:IJ}});var DJ=y((XKe,kJ)=>{var{webidl:oe}=Gt(),{URLSerializer:_Se}=gr(),{environmentSettingsObject:bJ}=Lr(),{staticPropertyDescriptors:Ri,states:Qd,sentCloseFrameState:vSe,sendHints:cm}=Ps(),{kWebSocketURL:xJ,kReadyState:u_,kController:QSe,kBinaryType:um,kResponse:_J,kSentClose:wSe,kByteParser:SSe}=Cd(),{isConnecting:kSe,isEstablished:DSe,isClosing:RSe,isValidSubprotocol:TSe,fireEvent:vJ}=Bd(),{establishWebSocketConnection:NSe,closeWebSocketConnection:QJ}=a_(),{ByteParser:LSe}=hJ(),{kEnumerableProperty:on,isBlobLike:wJ}=me(),{getGlobalDispatcher:USe}=kh(),{types:SJ}=v("node:util"),{ErrorEvent:OSe,CloseEvent:FSe}=lu(),{SendQueue:MSe}=BJ();class Ne extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#r="";#n="";#o;constructor(e,t=[]){super();oe.util.markAsUncloneable(this);let r="WebSocket constructor";oe.argumentLengthCheck(arguments,1,r);let n=oe.converters["DOMString or sequence<DOMString> or WebSocketInit"](t,r,"options");e=oe.converters.USVString(e,r,"url"),t=n.protocols;let o=bJ.settingsObject.baseUrl,i;try{i=new URL(e,o)}catch(a){throw new DOMException(a,"SyntaxError")}if(i.protocol==="http:")i.protocol="ws:";else if(i.protocol==="https:")i.protocol="wss:";if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${i.protocol}`,"SyntaxError");if(i.hash||i.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof t==="string")t=[t];if(t.length!==new Set(t.map((a)=>a.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(t.length>0&&!t.every((a)=>TSe(a)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[xJ]=new URL(i.href);let s=bJ.settingsObject;this[QSe]=NSe(i,t,s,this,(a,c)=>this.#a(a,c),n),this[u_]=Ne.CONNECTING,this[wSe]=vSe.NOT_SENT,this[um]="blob"}close(e=void 0,t=void 0){oe.brandCheck(this,Ne);let r="WebSocket.close";if(e!==void 0)e=oe.converters["unsigned short"](e,r,"code",{clamp:!0});if(t!==void 0)t=oe.converters.USVString(t,r,"reason");if(e!==void 0){if(e!==1000&&(e<3000||e>4999))throw new DOMException("invalid code","InvalidAccessError")}let n=0;if(t!==void 0){if(n=Buffer.byteLength(t),n>123)throw new DOMException(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError")}QJ(this,e,t,n)}send(e){oe.brandCheck(this,Ne);let t="WebSocket.send";if(oe.argumentLengthCheck(arguments,1,t),e=oe.converters.WebSocketSendData(e,t,"data"),kSe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!DSe(this)||RSe(this))return;if(typeof e==="string"){let r=Buffer.byteLength(e);this.#t+=r,this.#o.add(e,()=>{this.#t-=r},cm.string)}else if(SJ.isArrayBuffer(e))this.#t+=e.byteLength,this.#o.add(e,()=>{this.#t-=e.byteLength},cm.arrayBuffer);else if(ArrayBuffer.isView(e))this.#t+=e.byteLength,this.#o.add(e,()=>{this.#t-=e.byteLength},cm.typedArray);else if(wJ(e))this.#t+=e.size,this.#o.add(e,()=>{this.#t-=e.size},cm.blob)}get readyState(){return oe.brandCheck(this,Ne),this[u_]}get bufferedAmount(){return oe.brandCheck(this,Ne),this.#t}get url(){return oe.brandCheck(this,Ne),_Se(this[xJ])}get extensions(){return oe.brandCheck(this,Ne),this.#n}get protocol(){return oe.brandCheck(this,Ne),this.#r}get onopen(){return oe.brandCheck(this,Ne),this.#e.open}set onopen(e){if(oe.brandCheck(this,Ne),this.#e.open)this.removeEventListener("open",this.#e.open);if(typeof e==="function")this.#e.open=e,this.addEventListener("open",e);else this.#e.open=null}get onerror(){return oe.brandCheck(this,Ne),this.#e.error}set onerror(e){if(oe.brandCheck(this,Ne),this.#e.error)this.removeEventListener("error",this.#e.error);if(typeof e==="function")this.#e.error=e,this.addEventListener("error",e);else this.#e.error=null}get onclose(){return oe.brandCheck(this,Ne),this.#e.close}set onclose(e){if(oe.brandCheck(this,Ne),this.#e.close)this.removeEventListener("close",this.#e.close);if(typeof e==="function")this.#e.close=e,this.addEventListener("close",e);else this.#e.close=null}get onmessage(){return oe.brandCheck(this,Ne),this.#e.message}set onmessage(e){if(oe.brandCheck(this,Ne),this.#e.message)this.removeEventListener("message",this.#e.message);if(typeof e==="function")this.#e.message=e,this.addEventListener("message",e);else this.#e.message=null}get binaryType(){return oe.brandCheck(this,Ne),this[um]}set binaryType(e){if(oe.brandCheck(this,Ne),e!=="blob"&&e!=="arraybuffer")this[um]="blob";else this[um]=e}#a(e,t){this[_J]=e;let r=new LSe(this,t);r.on("drain",PSe),r.on("error",$Se.bind(this)),e.socket.ws=this,this[SSe]=r,this.#o=new MSe(e.socket),this[u_]=Qd.OPEN;let n=e.headersList.get("sec-websocket-extensions");if(n!==null)this.#n=n;let o=e.headersList.get("sec-websocket-protocol");if(o!==null)this.#r=o;vJ("open",this)}}Ne.CONNECTING=Ne.prototype.CONNECTING=Qd.CONNECTING;Ne.OPEN=Ne.prototype.OPEN=Qd.OPEN;Ne.CLOSING=Ne.prototype.CLOSING=Qd.CLOSING;Ne.CLOSED=Ne.prototype.CLOSED=Qd.CLOSED;Object.defineProperties(Ne.prototype,{CONNECTING:Ri,OPEN:Ri,CLOSING:Ri,CLOSED:Ri,url:on,readyState:on,bufferedAmount:on,onopen:on,onerror:on,onclose:on,close:on,onmessage:on,binaryType:on,send:on,extensions:on,protocol:on,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Ne,{CONNECTING:Ri,OPEN:Ri,CLOSING:Ri,CLOSED:Ri});oe.converters["sequence<DOMString>"]=oe.sequenceConverter(oe.converters.DOMString);oe.converters["DOMString or sequence<DOMString>"]=function(e,t,r){if(oe.util.Type(e)==="Object"&&Symbol.iterator in e)return oe.converters["sequence<DOMString>"](e);return oe.converters.DOMString(e,t,r)};oe.converters.WebSocketInit=oe.dictionaryConverter([{key:"protocols",converter:oe.converters["DOMString or sequence<DOMString>"],defaultValue:()=>[]},{key:"dispatcher",converter:oe.converters.any,defaultValue:()=>USe()},{key:"headers",converter:oe.nullableConverter(oe.converters.HeadersInit)}]);oe.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(e){if(oe.util.Type(e)==="Object"&&!(Symbol.iterator in e))return oe.converters.WebSocketInit(e);return{protocols:oe.converters["DOMString or sequence<DOMString>"](e)}};oe.converters.WebSocketSendData=function(e){if(oe.util.Type(e)==="Object"){if(wJ(e))return oe.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||SJ.isArrayBuffer(e))return oe.converters.BufferSource(e)}return oe.converters.USVString(e)};function PSe(){this.ws[_J].socket.resume()}function $Se(e){let t,r;if(e instanceof FSe)t=e.reason,r=e.code;else t=e.message;vJ("error",this,()=>new OSe("error",{error:e,message:t})),QJ(this,r)}kJ.exports={WebSocket:Ne}});var l_=y((e8e,RJ)=>{function HSe(e){return e.indexOf("\x00")===-1}function GSe(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(e.charCodeAt(t)<48||e.charCodeAt(t)>57)return!1;return!0}function zSe(e){return new Promise((t)=>{setTimeout(t,e).unref()})}RJ.exports={isValidLastEventId:HSe,isASCIINumber:GSe,delay:zSe}});var OJ=y((t8e,UJ)=>{var{Transform:YSe}=v("node:stream"),{isASCIINumber:TJ,isValidLastEventId:NJ}=l_(),No=[239,187,191];class LJ extends YSe{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0;super(e);if(this.state=e.eventSourceSettings||{},e.push)this.push=e.push}_transform(e,t,r){if(e.length===0){r();return}if(this.buffer)this.buffer=Buffer.concat([this.buffer,e]);else this.buffer=e;if(this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===No[0]){r();return}this.checkBOM=!1,r();return;case 2:if(this.buffer[0]===No[0]&&this.buffer[1]===No[1]){r();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===No[0]&&this.buffer[1]===No[1]&&this.buffer[2]===No[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,r();return}this.checkBOM=!1;break;default:if(this.buffer[0]===No[0]&&this.buffer[1]===No[1]&&this.buffer[2]===No[2])this.buffer=this.buffer.subarray(3);this.checkBOM=!1;break}while(this.pos<this.buffer.length){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===10){this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.crlfCheck=!1;continue}this.crlfCheck=!1}if(this.buffer[this.pos]===10||this.buffer[this.pos]===13){if(this.buffer[this.pos]===13)this.crlfCheck=!0;if(this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.event.data!==void 0||this.event.event||this.event.id||this.event.retry)this.processEvent(this.event);this.clearEvent();continue}this.eventEndCheck=!1;continue}if(this.buffer[this.pos]===10||this.buffer[this.pos]===13){if(this.buffer[this.pos]===13)this.crlfCheck=!0;this.parseLine(this.buffer.subarray(0,this.pos),this.event),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.eventEndCheck=!0;continue}this.pos++}r()}parseLine(e,t){if(e.length===0)return;let r=e.indexOf(58);if(r===0)return;let n="",o="";if(r!==-1){n=e.subarray(0,r).toString("utf8");let i=r+1;if(e[i]===32)++i;o=e.subarray(i).toString("utf8")}else n=e.toString("utf8"),o="";switch(n){case"data":if(t[n]===void 0)t[n]=o;else t[n]+=`
129
- ${o}`;break;case"retry":if(TJ(o))t[n]=o;break;case"id":if(NJ(o))t[n]=o;break;case"event":if(o.length>0)t[n]=o;break}}processEvent(e){if(e.retry&&TJ(e.retry))this.state.reconnectionTime=parseInt(e.retry,10);if(e.id&&NJ(e.id))this.state.lastEventId=e.id;if(e.data!==void 0)this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}UJ.exports={EventSourceStream:LJ}});var YJ=y((r8e,zJ)=>{var{pipeline:jSe}=v("node:stream"),{fetching:VSe}=fd(),{makeRequest:JSe}=ou(),{webidl:Lo}=Gt(),{EventSourceStream:qSe}=OJ(),{parseMIMEType:WSe}=gr(),{createFastMessageEvent:ZSe}=lu(),{isNetworkError:FJ}=dd(),{delay:KSe}=l_(),{kEnumerableProperty:$s}=me(),{environmentSettingsObject:MJ}=Lr(),PJ=!1,$J=3000,wd=0,HJ=1,Sd=2,XSe="anonymous",eke="use-credentials";class gu extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=wd;#o=null;#a=null;#i;#l;constructor(e,t={}){super();Lo.util.markAsUncloneable(this);let r="EventSource constructor";if(Lo.argumentLengthCheck(arguments,1,r),!PJ)PJ=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"});e=Lo.converters.USVString(e,r,"url"),t=Lo.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#l={lastEventId:"",reconnectionTime:$J};let n=MJ,o;try{o=new URL(e,n.settingsObject.baseUrl),this.#l.origin=o.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=o.href;let i=XSe;if(t.withCredentials)i=eke,this.#r=!0;let s={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};s.client=MJ.settingsObject,s.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],s.cache="no-store",s.initiator="other",s.urlList=[new URL(this.#t)],this.#o=JSe(s),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Sd)return;this.#n=wd;let e={request:this.#o,dispatcher:this.#i},t=(r)=>{if(FJ(r))this.dispatchEvent(new Event("error")),this.close();this.#c()};e.processResponseEndOfBody=t,e.processResponse=(r)=>{if(FJ(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=r.headersList.get("content-type",!0),o=n!==null?WSe(n):"failure",i=o!=="failure"&&o.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=HJ,this.dispatchEvent(new Event("open")),this.#l.origin=r.urlList[r.urlList.length-1].origin;let s=new qSe({eventSourceSettings:this.#l,push:(a)=>{this.dispatchEvent(ZSe(a.type,a.options))}});jSe(r.body.stream,s,(a)=>{if(a?.aborted===!1)this.close(),this.dispatchEvent(new Event("error"))})},this.#a=VSe(e)}async#c(){if(this.#n===Sd)return;if(this.#n=wd,this.dispatchEvent(new Event("error")),await KSe(this.#l.reconnectionTime),this.#n!==wd)return;if(this.#l.lastEventId.length)this.#o.headersList.set("last-event-id",this.#l.lastEventId,!0);this.#A()}close(){if(Lo.brandCheck(this,gu),this.#n===Sd)return;this.#n=Sd,this.#a.abort(),this.#o=null}get onopen(){return this.#e.open}set onopen(e){if(this.#e.open)this.removeEventListener("open",this.#e.open);if(typeof e==="function")this.#e.open=e,this.addEventListener("open",e);else this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){if(this.#e.message)this.removeEventListener("message",this.#e.message);if(typeof e==="function")this.#e.message=e,this.addEventListener("message",e);else this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){if(this.#e.error)this.removeEventListener("error",this.#e.error);if(typeof e==="function")this.#e.error=e,this.addEventListener("error",e);else this.#e.error=null}}var GJ={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:wd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:HJ,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Sd,writable:!1}};Object.defineProperties(gu,GJ);Object.defineProperties(gu.prototype,GJ);Object.defineProperties(gu.prototype,{close:$s,onerror:$s,onmessage:$s,onopen:$s,readyState:$s,url:$s,withCredentials:$s});Lo.converters.EventSourceInitDict=Lo.dictionaryConverter([{key:"withCredentials",converter:Lo.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Lo.converters.any}]);zJ.exports={EventSource:gu,defaultReconnectionTime:$J}});var qJ=y((Tke,re)=>{var tke=zc(),jJ=RA(),rke=Yc(),nke=mG(),oke=jc(),ike=ox(),ske=YG(),ake=KG(),VJ=ve(),Am=me(),{InvalidArgumentError:lm}=VJ,hu=Yz(),cke=NA(),uke=Sx(),lke=DY(),Ake=Dx(),dke=Ex(),pke=yh(),{getGlobalDispatcher:JJ,setGlobalDispatcher:fke}=kh(),gke=Dh(),hke=Ah(),mke=dh();Object.assign(jJ.prototype,hu);Tke.Dispatcher=jJ;Tke.Client=tke;Tke.Pool=rke;Tke.BalancedPool=nke;Tke.Agent=oke;Tke.ProxyAgent=ike;Tke.EnvHttpProxyAgent=ske;Tke.RetryAgent=ake;Tke.RetryHandler=pke;Tke.DecoratorHandler=gke;Tke.RedirectHandler=hke;Tke.createRedirectInterceptor=mke;Tke.interceptors={redirect:FY(),retry:PY(),dump:GY(),dns:JY()};Tke.buildConnector=cke;Tke.errors=VJ;Tke.util={parseHeaders:Am.parseHeaders,headerNameToString:Am.headerNameToString};function kd(e){return(t,r,n)=>{if(typeof r==="function")n=r,r=null;if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL))throw new lm("invalid url");if(r!=null&&typeof r!=="object")throw new lm("invalid opts");if(r&&r.path!=null){if(typeof r.path!=="string")throw new lm("invalid opts.path");let s=r.path;if(!r.path.startsWith("/"))s=`/${s}`;t=new URL(Am.parseOrigin(t).origin+s)}else{if(!r)r=typeof t==="object"?t:{};t=Am.parseURL(t)}let{agent:o,dispatcher:i=JJ()}=r;if(o)throw new lm("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}Tke.setGlobalDispatcher=fke;Tke.getGlobalDispatcher=JJ;var Eke=fd().fetch;Tke.fetch=async function(t,r=void 0){try{return await Eke(t,r)}catch(n){if(n&&typeof n==="object")Error.captureStackTrace(n);throw n}};Tke.Headers=Ls().Headers;Tke.Response=dd().Response;Tke.Request=ou().Request;Tke.FormData=PA().FormData;Tke.File=globalThis.File??v("node:buffer").File;Tke.FileReader=dV().FileReader;var{setGlobalOrigin:Cke,getGlobalOrigin:Ike}=hb();Tke.setGlobalOrigin=Cke;Tke.getGlobalOrigin=Ike;var{CacheStorage:yke}=yV(),{kConstruct:Bke}=Zh();Tke.caches=new yke(Bke);var{deleteCookie:bke,getCookies:xke,getSetCookies:_ke,setCookie:vke}=TV();Tke.deleteCookie=bke;Tke.getCookies=xke;Tke.getSetCookies=_ke;Tke.setCookie=vke;var{parseMIMEType:Qke,serializeAMimeType:wke}=gr();Tke.parseMIMEType=Qke;Tke.serializeAMimeType=wke;var{CloseEvent:Ske,ErrorEvent:kke,MessageEvent:Dke}=lu();Tke.WebSocket=DJ().WebSocket;Tke.CloseEvent=Ske;Tke.ErrorEvent=kke;Tke.MessageEvent=Dke;Tke.request=kd(hu.request);Tke.stream=kd(hu.stream);Tke.pipeline=kd(hu.pipeline);Tke.connect=kd(hu.connect);Tke.upgrade=kd(hu.upgrade);Tke.MockClient=uke;Tke.MockPool=Ake;Tke.MockAgent=lke;Tke.mockErrors=dke;var{EventSource:Rke}=YJ();Tke.EventSource=Rke});ga();lo();tt();St();Jt();function ni(){return"claude-code/0.3.200"}function Ga(){switch(process.env.CLAUDE_CODE_ENTRYPOINT){case"claude-vscode":return"claude_code_vscode";case"remote":case"remote_baku":case"remote_cowork":case"remote_desktop":case"remote_mobile":return"claude_code_remote";case"claude-in-teams":return"claude_code_remote";case"sdk-cli":case"sdk-ts":case"sdk-py":return"claude_code_sdk";case"mcp":return"claude_code_mcp";case"claude-code-github-action":return"claude_code_github_action";case"local-agent":return"claude_code_local_agent";case"claude_in_slack":return"claude_in_slack";case"claude-in-slack":return"claude-in-slack";case"cli":default:return"claude_code_cli"}}cs();tt();St();Jt();var c5=["session_ingress_token","environment_secret","access_token","secret","token"],qje=new RegExp(`"(${c5.join("|")})"\\s*:\\s*"([^"]*)"`,"g");function Cy(e){if(!e||typeof e!=="object")return;if("message"in e&&typeof e.message==="string")return e.message;if("error"in e&&e.error!==null&&typeof e.error==="object"&&"message"in e.error&&typeof e.error.message==="string")return e.error.message;return}var Hte="2023-06-01";function qM(e){return{Authorization:`Bearer ${e}`,"Content-Type":"application/json","anthropic-version":Hte,"User-Agent":ni()}}async function Gte(e,t,r,n,o,i,s,a){let c=`${e}/v1/code/sessions`,u={cwd:s??It(),...a&&{model:a}};if(i){let{buildGitSessionContext:d}=await Promise.resolve().then(() => (JM(),VM)),{sources:f,outcomes:g}=await d(i.gitRepoUrl,i.branch,i.defaultBranch);if(f.length>0||g.length>0)u.sources=f,u.outcomes=g,u.reuse_outcome_branches=!0}let A;try{A=await jt.post(c,{title:r,bridge:{},...o?.length&&{tags:o},config:u},{headers:qM(t),timeout:n,validateStatus:(d)=>d<500})}catch(d){return Q(`[code-session] Session create request failed: ${Be(d)}`),null}if(A.status!==200&&A.status!==201){let d=Cy(A.data);return Q(`[code-session] Session create failed ${A.status}${d?`: ${d}`:""}`),null}let p=A.data;if(!p||typeof p!=="object"||!("session"in p)||!p.session||typeof p.session!=="object"||!("id"in p.session)||typeof p.session.id!=="string"||!p.session.id.startsWith("cse_"))return Q(`[code-session] No session.id (cse_*) in response: ${Bt(p).slice(0,200)}`),null;return p.session.id}function zte(e){return e!==null&&"terminal"in e}function Yte(e,t){if(e!==null&&typeof e==="object"&&"error"in e&&e.error!==null&&typeof e.error==="object"&&"resource"in e.error){let r=e.error.resource;if(r==="untrusted_device"||r==="session_stale_relogin")return r;return}if(t?.includes("trusted device"))return"untrusted_device";return}async function jte(e,t,r,n,o){let i=`${t}/v1/code/sessions/${e}/bridge`,s=qM(r);if(o)s["X-Trusted-Device-Token"]=o;let a;try{a=await jt.post(i,{},{headers:s,timeout:n,validateStatus:(p)=>p<500})}catch(p){return Q(`[code-session] /bridge request failed: ${Be(p)}`),null}if(a.status!==200){let p=Cy(a.data);if(Q(`[code-session] /bridge failed ${a.status}${p?`: ${p}`:""}`),a.status===403){let d=Yte(a.data,p);if(d)return{terminal:!0,reason:d}}return null}let c=a.data;if(c===null||typeof c!=="object"||!("worker_jwt"in c)||typeof c.worker_jwt!=="string"||!("expires_in"in c)||typeof c.expires_in!=="number"||!("api_base_url"in c)||typeof c.api_base_url!=="string"||!("worker_epoch"in c))return Q(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${Bt(c).slice(0,200)}`),null;let u=c.worker_epoch,A=typeof u==="string"?Number(u):u;if(typeof A!=="number"||!Number.isFinite(A)||!Number.isSafeInteger(A))return Q(`[code-session] /bridge worker_epoch invalid: ${Bt(u)}`),null;return{worker_jwt:c.worker_jwt,api_base_url:c.api_base_url,expires_in:c.expires_in,worker_epoch:A}}tt();St();import{randomUUID as Jte}from"crypto";Ja();cs();var WM={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"};var Vte=["acceptEdits","auto","bypassPermissions","default","dontAsk","plan"],D4e=[...Vte,"bubble"];function ZM(e){return e==="manual"?"default":e}function KM(e){if(e===null||typeof e!=="object")return e;let t=e;if("requestId"in t&&!("request_id"in t))t.request_id=t.requestId,delete t.requestId;if("response"in t&&t.response!==null&&typeof t.response==="object"){let r=t.response;if("requestId"in r&&!("request_id"in r))r.request_id=r.requestId,delete r.requestId}return e}tt();function XM(e){if(!Array.isArray(e))return[];return e.filter((t)=>typeof t==="string"&&t.length>0&&t.length<=64).slice(0,32)}oB();St();cs();Jt();function qte(e){return e!==null&&typeof e==="object"&&"type"in e&&typeof e.type==="string"}function Wte(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_response"&&"response"in e}function Zte(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_request"&&"request_id"in e&&"request"in e}function eP(e,t,r,n,o,i){try{let s=KM(ri(e));if(Wte(s)){Q("[bridge:repl] Ingress message type=control_response"),o?.(s);return}if(Zte(s)){Q(`[bridge:repl] Inbound control_request subtype=${s.request.subtype}`),i?.(s);return}if(!qte(s))return;let a="uuid"in s&&typeof s.uuid==="string"?s.uuid:void 0;if(a&&t.has(a)){Q(`[bridge:repl] Ignoring echo: type=${s.type} uuid=${a}`);return}if(a&&r.has(a)){Q(`[bridge:repl] Ignoring re-delivered inbound: type=${s.type} uuid=${a}`);return}if(Q(`[bridge:repl] Ingress message type=${s.type}${a?` uuid=${a}`:""}`),s.type==="user"){if(a)r.add(a);mn("tengu_bridge_message_received",{is_repl:!0}),En("bridge_message_receive"),n?.(s)}else Q(`[bridge:repl] Ignoring non-user inbound message: type=${s.type}`)}catch(s){Q(`[bridge:repl] Failed to parse ingress message: ${Be(s)}`),dA("bridge_message_receive","bridge_message_receive_parse_failed")}}var Kte="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function tP(e,t){let{transport:r,sessionId:n,outboundOnly:o,getInitializeState:i,onInterrupt:s,onDialogKindsDeclared:a,onSetModel:c,onSetMaxThinkingTokens:u,onSetPermissionMode:A,onRenameSession:p,onSetColor:d,onFileSuggestions:f,onReadFile:g,onGetContextUsage:m,onGetUsage:h,onMcpAuthenticate:E,onMcpOauthCallbackUrl:w,onMcpReconnect:b,onMcpStatus:_}=t;if(!r){Q("[bridge:repl] Cannot respond to control_request: transport not configured");return}let L;if(o&&e.request.subtype!=="initialize"){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Kte}};let S={...L,session_id:n};r.write(S),Q(`[bridge:repl] Rejected ${e.request.subtype} (outbound-only) request_id=${e.request_id}`);return}switch(e.request.subtype){case"initialize":{try{let S=XM(e.request.supportedDialogKinds);if(S.length>0)a?.(S)}catch(S){Q(`[bridge:repl] dialog-kind capture failed; acking initialize anyway: ${Be(S)}`)}L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{commands:[],agents:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid,...i?.()}}};break}case"set_model":{let S=c?.(e.request.model);if(S&&!S.ok)L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};else L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break}case"set_max_thinking_tokens":u?.(e.request.max_thinking_tokens,e.request.thinking_display),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;case"set_permission_mode":{let S=A?.(ZM(e.request.mode))??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"rename_session":{let S=p?.(e.request.title)??{ok:!1,error:"rename_session is not supported in this context (onRenameSession callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"set_color":{let S=d?.(e.request.color)??{ok:!1,error:"set_color is not supported in this context (onSetColor callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"file_suggestions":{if(!f){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"file_suggestions is not supported in this context (onFileSuggestions callback not registered)"}};break}f(e.request.query).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{suggestions:S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for file_suggestions request_id=${e.request_id} result=${S.response.subtype}`)});return}case"read_file":{if(!g){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"read_file is not supported in this context (onReadFile callback not registered)"}};break}g(e.request.path,e.request.max_bytes,e.request.encoding).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:S}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for read_file request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_context_usage":{if(!m){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_context_usage is not supported in this context (onGetContextUsage callback not registered)"}};break}m().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for get_context_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_usage":{if(!h){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_usage is not supported in this context (onGetUsage callback not registered)"}};break}h().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for get_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"mcp_status":L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{mcpServers:_?.()??[]}}};break;case"mcp_authenticate":case"mcp_oauth_callback_url":case"mcp_reconnect":{let S=e.request,{subtype:le,serverName:pe}=S,Ft=S.subtype==="mcp_authenticate"?E&&((et)=>E(et,S.redirectUri)):S.subtype==="mcp_oauth_callback_url"?w&&((et)=>w(et,S.callbackUrl)):b;if(!Ft){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`${le} is not supported in this context (callback not registered)`}};break}Ft(pe).then((et)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:et??{}}})).catch((et)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(et)}})).then((et)=>{let He={...et,session_id:n};r.write(He),Q(`[bridge:repl] Sent control_response for ${le} request_id=${e.request_id} result=${et.response.subtype}`)});return}case"interrupt":s?.(),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;default:L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`REPL bridge does not handle control_request subtype: ${e.request.subtype}`}}}let T={...L,session_id:n};r.write(T),Q(`[bridge:repl] Sent control_response for ${e.request.subtype} request_id=${e.request_id} result=${L.response.subtype}`)}function rP(e){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...WM},modelUsage:{},permission_denials:[],session_id:e,uuid:Jte()}}class xg{capacity;ring;set=new Set;writeIdx=0;constructor(e){this.capacity=e,this.ring=Array(e)}add(e){if(this.set.has(e))return;let t=this.ring[this.writeIdx];if(t!==void 0)this.set.delete(t);this.ring[this.writeIdx]=e,this.set.add(e),this.writeIdx=(this.writeIdx+1)%this.capacity}has(e){return this.set.has(e)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}import{randomUUID as cq}from"crypto";cs();tt();qa();St();Jt();function Xte(e){let r=(e.startsWith("sk-ant-si-")?e.slice(10):e).split(".");if(r.length!==3||!r[1])return null;try{return ri(Buffer.from(r[1],"base64url").toString("utf8"))}catch{return null}}function nP(e){let t=Xte(e);if(t!==null&&typeof t==="object"&&"exp"in t&&typeof t.exp==="number")return t.exp;return null}Ja();cs();tt();qa();St();cr();pn();var wDe=Su(EP(),1);import{isIP as WJ}from"net";cr();function nc(e){return[...new Set(e)]}tt();var TB={};ft(TB,{USE_STAGING_OAUTH:()=>uoe,USE_LOCAL_OAUTH:()=>coe,MCP_XAA_IDP_CLIENT_SECRET:()=>Vne,MCP_CLIENT_SECRET:()=>jne,ENVIRONMENT_SERVICE_KEY:()=>Yne,CLAUDE_TRUSTED_DEVICE_TOKEN:()=>aoe,CLAUDE_SESSION_INGRESS_TOKEN_FILE:()=>Zne,CLAUDE_LOCAL_OAUTH_CONSOLE_BASE:()=>doe,CLAUDE_LOCAL_OAUTH_APPS_BASE:()=>Aoe,CLAUDE_LOCAL_OAUTH_API_BASE:()=>loe,CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR:()=>Wne,CLAUDE_CODE_USER_EMAIL:()=>Soe,CLAUDE_CODE_SUBSCRIPTION_TYPE:()=>koe,CLAUDE_CODE_SKIP_VERTEX_AUTH:()=>Coe,CLAUDE_CODE_SKIP_MANTLE_AUTH:()=>Boe,CLAUDE_CODE_SKIP_FOUNDRY_AUTH:()=>Ioe,CLAUDE_CODE_SKIP_BEDROCK_AUTH:()=>Eoe,CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH:()=>yoe,CLAUDE_CODE_SESSION_ACCESS_TOKEN:()=>soe,CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH:()=>noe,CLAUDE_CODE_RATE_LIMIT_TIER:()=>Doe,CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS:()=>moe,CLAUDE_CODE_ORGANIZATION_UUID:()=>woe,CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR:()=>qne,CLAUDE_CODE_OAUTH_TOKEN:()=>Fne,CLAUDE_CODE_OAUTH_SCOPES:()=>toe,CLAUDE_CODE_OAUTH_REFRESH_TOKEN:()=>Kne,CLAUDE_CODE_OAUTH_CLIENT_ID:()=>Xne,CLAUDE_CODE_OAUTH_401_WAIT_MS:()=>poe,CLAUDE_CODE_HOST_CREDS_FILE:()=>ioe,CLAUDE_CODE_HOST_AUTH_ENV_VAR:()=>ooe,CLAUDE_CODE_HFI_BEARER_TOKEN:()=>Hne,CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER:()=>hoe,CLAUDE_CODE_DESIGN_OAUTH_CLIENT_ID:()=>eoe,CLAUDE_CODE_CUSTOM_OAUTH_URL:()=>roe,CLAUDE_CODE_AUTH_FAIL_EXIT_MS:()=>foe,CLAUDE_CODE_API_KEY_HELPER_TTL_MS:()=>goe,CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR:()=>Jne,CLAUDE_CODE_ACCOUNT_UUID:()=>voe,CLAUDE_CODE_ACCOUNT_TAGGED_ID:()=>Qoe,AWS_BEARER_TOKEN_BEDROCK:()=>Mne,API_TOKEN:()=>zne,ANTHROPIC_PROFILE:()=>_oe,ANTHROPIC_ORGANIZATION_ID:()=>xoe,ANTHROPIC_FOUNDRY_API_KEY:()=>$ne,ANTHROPIC_FEDERATION_RULE_ID:()=>boe,ANTHROPIC_AWS_API_KEY:()=>Pne,ANTHROPIC_AUTH_TOKEN:()=>One,ANTHROPIC_API_KEY:()=>Une,AGENT_PROXY_AUTH_TOKEN:()=>Gne});var Nr={};ft(Nr,{void:()=>one,util:()=>Ce,unknown:()=>rne,union:()=>cne,undefined:()=>Xre,tuple:()=>Ane,transformer:()=>yne,symbol:()=>Kre,string:()=>QP,strictObject:()=>ane,setErrorMap:()=>bre,set:()=>fne,record:()=>dne,quotelessJson:()=>yre,promise:()=>Ine,preprocess:()=>xne,pipeline:()=>_ne,ostring:()=>vne,optional:()=>Bne,onumber:()=>Qne,oboolean:()=>wne,objectUtil:()=>kB,object:()=>sne,number:()=>wP,nullable:()=>bne,null:()=>ene,never:()=>nne,nativeEnum:()=>Cne,nan:()=>qre,map:()=>pne,makeIssue:()=>CA,literal:()=>mne,lazy:()=>hne,late:()=>Vre,isValid:()=>ui,isDirty:()=>wg,isAsync:()=>ic,isAborted:()=>Qg,intersection:()=>lne,instanceof:()=>Jre,getParsedType:()=>$n,getErrorMap:()=>oc,function:()=>gne,enum:()=>Ene,effect:()=>yne,discriminatedUnion:()=>une,defaultErrorMap:()=>Eo,datetimeRegex:()=>xP,date:()=>Zre,custom:()=>vP,coerce:()=>Sne,boolean:()=>SP,bigint:()=>Wre,array:()=>ine,any:()=>tne,addIssueToContext:()=>G,ZodVoid:()=>yA,ZodUnknown:()=>li,ZodUnion:()=>Ac,ZodUndefined:()=>uc,ZodType:()=>ge,ZodTuple:()=>Gn,ZodTransformer:()=>vn,ZodSymbol:()=>IA,ZodString:()=>Bn,ZodSet:()=>ms,ZodSchema:()=>ge,ZodRecord:()=>BA,ZodReadonly:()=>Ec,ZodPromise:()=>Es,ZodPipeline:()=>_A,ZodParsedType:()=>F,ZodOptional:()=>xn,ZodObject:()=>st,ZodNumber:()=>Ai,ZodNullable:()=>Io,ZodNull:()=>lc,ZodNever:()=>Hn,ZodNativeEnum:()=>gc,ZodNaN:()=>xA,ZodMap:()=>bA,ZodLiteral:()=>fc,ZodLazy:()=>pc,ZodIssueCode:()=>R,ZodIntersection:()=>dc,ZodFunction:()=>ac,ZodFirstPartyTypeKind:()=>te,ZodError:()=>fr,ZodEnum:()=>pi,ZodEffects:()=>vn,ZodDiscriminatedUnion:()=>Sg,ZodDefault:()=>hc,ZodDate:()=>gs,ZodCatch:()=>mc,ZodBranded:()=>kg,ZodBoolean:()=>cc,ZodBigInt:()=>di,ZodArray:()=>bn,ZodAny:()=>hs,Schema:()=>ge,ParseStatus:()=>Ht,OK:()=>Wt,NEVER:()=>kne,INVALID:()=>K,EMPTY_PATH:()=>xre,DIRTY:()=>fs,BRAND:()=>jre});var Ce;(function(e){e.assertEqual=(o)=>{};function t(o){}e.assertIs=t;function r(o){throw Error()}e.assertNever=r,e.arrayToEnum=(o)=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=(o)=>{let i=e.objectKeys(o).filter((a)=>typeof o[o[a]]!=="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=(o)=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys==="function"?(o)=>Object.keys(o):(o)=>{let i=[];for(let s in o)if(Object.prototype.hasOwnProperty.call(o,s))i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s;return},e.isInteger=typeof Number.isInteger==="function"?(o)=>Number.isInteger(o):(o)=>typeof o==="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map((s)=>typeof s==="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>{if(typeof i==="bigint")return i.toString();return i}})(Ce||(Ce={}));var kB;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(kB||(kB={}));var F=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$n=(e)=>{switch(typeof e){case"undefined":return F.undefined;case"string":return F.string;case"number":return Number.isNaN(e)?F.nan:F.number;case"boolean":return F.boolean;case"function":return F.function;case"bigint":return F.bigint;case"symbol":return F.symbol;case"object":if(Array.isArray(e))return F.array;if(e===null)return F.null;if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return F.promise;if(typeof Map<"u"&&e instanceof Map)return F.map;if(typeof Set<"u"&&e instanceof Set)return F.set;if(typeof Date<"u"&&e instanceof Date)return F.date;return F.object;default:return F.unknown}};var R=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),yre=(e)=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class fr extends Error{get errors(){return this.issues}constructor(e){super();this.issues=[],this.addIssue=(r)=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let t=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,t);else this.__proto__=t;this.name="ZodError",this.issues=e}format(e){let t=e||function(o){return o.message},r={_errors:[]},n=(o)=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;while(a<i.path.length){let c=i.path[a];if(a!==i.path.length-1)s[c]=s[c]||{_errors:[]};else s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i));s=s[c],a++}}};return n(this),r}static assert(e){if(!(e instanceof fr))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=(t)=>t.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];t[o]=t[o]||[],t[o].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}fr.create=(e)=>new fr(e);var Bre=(e,t)=>{let r;switch(e.code){case R.invalid_type:if(e.received===F.undefined)r="Required";else r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ce.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ce.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ce.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${Ce.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:if(typeof e.validation==="object")if("includes"in e.validation){if(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==="number")r=`${r} at one or more positions greater than or equal to ${e.validation.position}`}else if("startsWith"in e.validation)r=`Invalid input: must start with "${e.validation.startsWith}"`;else if("endsWith"in e.validation)r=`Invalid input: must end with "${e.validation.endsWith}"`;else Ce.assertNever(e.validation);else if(e.validation!=="regex")r=`Invalid ${e.validation}`;else r="Invalid";break;case R.too_small:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="bigint")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`;else r="Invalid input";break;case R.too_big:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="bigint")r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`;else r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ce.assertNever(e)}return{message:r}},Eo=Bre;var CP=Eo;function bre(e){CP=e}function oc(){return CP}var CA=(e)=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",c=n.filter((u)=>!!u).slice().reverse();for(let u of c)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},xre=[];function G(e,t){let r=oc(),n=CA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Eo?void 0:Eo].filter((o)=>!!o)});e.common.issues.push(n)}class Ht{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(e,t){let r=[];for(let n of t){if(n.status==="aborted")return K;if(n.status==="dirty")e.dirty();r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let n of t){let o=await n.key,i=await n.value;r.push({key:o,value:i})}return Ht.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:o,value:i}=n;if(o.status==="aborted")return K;if(i.status==="aborted")return K;if(o.status==="dirty")e.dirty();if(i.status==="dirty")e.dirty();if(o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet))r[o.value]=i.value}return{status:e.value,value:r}}}var K=Object.freeze({status:"aborted"}),fs=(e)=>({status:"dirty",value:e}),Wt=(e)=>({status:"valid",value:e}),Qg=(e)=>e.status==="aborted",wg=(e)=>e.status==="dirty",ui=(e)=>e.status==="valid",ic=(e)=>typeof Promise<"u"&&e instanceof Promise;var V;(function(e){e.errToObj=(t)=>typeof t==="string"?{message:t}:t||{},e.toString=(t)=>typeof t==="string"?t:t?.message})(V||(V={}));class _n{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var IP=(e,t)=>{if(ui(t))return{success:!0,data:t.value};else{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new fr(e.common.issues);return this._error=r,this._error}}}};function Ae(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(t)return{errorMap:t,description:o};return{errorMap:(s,a)=>{let{message:c}=e;if(s.code==="invalid_enum_value")return{message:c??a.defaultError};if(typeof a.data>"u")return{message:c??n??a.defaultError};if(s.code!=="invalid_type")return{message:a.defaultError};return{message:c??r??a.defaultError}},description:o}}class ge{get description(){return this._def.description}_getType(e){return $n(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:$n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ht,ctx:{common:e.parent.common,data:e.data,parsedType:$n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ic(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$n(e)},n=this._parseSync({data:e,path:r.path,parent:r});return IP(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$n(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return ui(r)?{value:r.value}:{issues:t.common.issues}}catch(r){if(r?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then((r)=>ui(r)?{value:r.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$n(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(ic(n)?n:Promise.resolve(n));return IP(r,o)}refine(e,t){let r=(n)=>{if(typeof t==="string"||typeof t>"u")return{message:t};else if(typeof t==="function")return t(n);else return t};return this._refinement((n,o)=>{let i=e(n),s=()=>o.addIssue({code:R.custom,...r(n)});if(typeof Promise<"u"&&i instanceof Promise)return i.then((a)=>{if(!a)return s(),!1;else return!0});if(!i)return s(),!1;else return!0})}refinement(e,t){return this._refinement((r,n)=>{if(!e(r))return n.addIssue(typeof t==="function"?t(r,n):t),!1;else return!0})}_refinement(e){return new vn({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(t)=>this["~validate"](t)}}optional(){return xn.create(this,this._def)}nullable(){return Io.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bn.create(this)}promise(){return Es.create(this,this._def)}or(e){return Ac.create([this,e],this._def)}and(e){return dc.create(this,e,this._def)}transform(e){return new vn({...Ae(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e==="function"?e:()=>e;return new hc({...Ae(this._def),innerType:this,defaultValue:t,typeName:te.ZodDefault})}brand(){return new kg({typeName:te.ZodBranded,type:this,...Ae(this._def)})}catch(e){let t=typeof e==="function"?e:()=>e;return new mc({...Ae(this._def),innerType:this,catchValue:t,typeName:te.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return _A.create(this,e)}readonly(){return Ec.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var _re=/^c[^\s-]{8,}$/i,vre=/^[0-9a-z]+$/,Qre=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wre=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Sre=/^[a-z0-9_-]{21}$/i,kre=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Dre=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Rre=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Tre="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",DB,Nre=/^(?:(?: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])$/,Lre=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,Ure=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ore=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fre=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Mre=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,BP="((\\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])))",Pre=new RegExp(`^${BP}$`);function bP(e){let t="[0-5]\\d";if(e.precision)t=`${t}\\.\\d{${e.precision}}`;else if(e.precision==null)t=`${t}(\\.\\d+)?`;let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function $re(e){return new RegExp(`^${bP(e)}$`)}function xP(e){let t=`${BP}T${bP(e)}`,r=[];if(r.push(e.local?"Z?":"Z"),e.offset)r.push("([+-]\\d{2}:?\\d{2})");return t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Hre(e,t){if((t==="v4"||!t)&&Nre.test(e))return!0;if((t==="v6"||!t)&&Ure.test(e))return!0;return!1}function Gre(e,t){if(!kre.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));if(typeof o!=="object"||o===null)return!1;if("typ"in o&&o?.typ!=="JWT")return!1;if(!o.alg)return!1;if(t&&o.alg!==t)return!1;return!0}catch{return!1}}function zre(e,t){if((t==="v4"||!t)&&Lre.test(e))return!0;if((t==="v6"||!t)&&Ore.test(e))return!0;return!1}class Bn extends ge{_parse(e){if(this._def.coerce)e.data=String(e.data);if(this._getType(e)!==F.string){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_type,expected:F.string,received:o.parsedType}),K}let r=new Ht,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.length<o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="max"){if(e.data.length>o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="length"){let i=e.data.length>o.value,s=e.data.length<o.value;if(i||s){if(n=this._getOrReturnCtx(e,n),i)G(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});else if(s)G(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});r.dirty()}}else if(o.kind==="email"){if(!Rre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"email",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="emoji"){if(!DB)DB=new RegExp(Tre,"u");if(!DB.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"emoji",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="uuid"){if(!wre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"uuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="nanoid"){if(!Sre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"nanoid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid"){if(!_re.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"cuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid2"){if(!vre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"cuid2",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ulid"){if(!Qre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"ulid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),G(n,{validation:"url",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="regex"){if(o.regex.lastIndex=0,!o.regex.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"regex",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="trim")e.data=e.data.trim();else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()}else if(o.kind==="toLowerCase")e.data=e.data.toLowerCase();else if(o.kind==="toUpperCase")e.data=e.data.toUpperCase();else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="datetime"){if(!xP(o).test(e.data))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:"datetime",message:o.message}),r.dirty()}else if(o.kind==="date"){if(!Pre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:"date",message:o.message}),r.dirty()}else if(o.kind==="time"){if(!$re(o).test(e.data))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:"time",message:o.message}),r.dirty()}else if(o.kind==="duration"){if(!Dre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"duration",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ip"){if(!Hre(e.data,o.version))n=this._getOrReturnCtx(e,n),G(n,{validation:"ip",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="jwt"){if(!Gre(e.data,o.alg))n=this._getOrReturnCtx(e,n),G(n,{validation:"jwt",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cidr"){if(!zre(e.data,o.version))n=this._getOrReturnCtx(e,n),G(n,{validation:"cidr",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64"){if(!Fre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"base64",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64url"){if(!Mre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"base64url",code:R.invalid_string,message:o.message}),r.dirty()}else Ce.assertNever(o);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement((n)=>e.test(n),{validation:t,code:R.invalid_string,...V.errToObj(r)})}_addCheck(e){return new Bn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...V.errToObj(e)})}url(e){return this._addCheck({kind:"url",...V.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...V.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...V.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...V.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...V.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...V.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...V.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...V.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...V.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...V.errToObj(e)})}datetime(e){if(typeof e==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e});return this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...V.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){if(typeof e==="string")return this._addCheck({kind:"time",precision:null,message:e});return this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...V.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...V.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e)=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find((e)=>e.kind==="date")}get isTime(){return!!this._def.checks.find((e)=>e.kind==="time")}get isDuration(){return!!this._def.checks.find((e)=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find((e)=>e.kind==="email")}get isURL(){return!!this._def.checks.find((e)=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find((e)=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find((e)=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((e)=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((e)=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((e)=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find((e)=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find((e)=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find((e)=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find((e)=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find((e)=>e.kind==="base64url")}get minLength(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxLength(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}Bn.create=(e)=>new Bn({checks:[],typeName:te.ZodString,coerce:e?.coerce??!1,...Ae(e)});function Yre(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}class Ai extends ge{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce)e.data=Number(e.data);if(this._getType(e)!==F.number){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_type,expected:F.number,received:o.parsedType}),K}let r=void 0,n=new Ht;for(let o of this._def.checks)if(o.kind==="int"){if(!Ce.isInteger(e.data))r=this._getOrReturnCtx(e,r),G(r,{code:R.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()}else if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(Yre(e.data,o.value)!==0)r=this._getOrReturnCtx(e,r),G(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else if(o.kind==="finite"){if(!Number.isFinite(e.data))r=this._getOrReturnCtx(e,r),G(r,{code:R.not_finite,message:o.message}),n.dirty()}else Ce.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,r,n){return new Ai({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:V.toString(n)}]})}_addCheck(e){return new Ai({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:V.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:V.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}get isInt(){return!!this._def.checks.find((e)=>e.kind==="int"||e.kind==="multipleOf"&&Ce.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;else if(r.kind==="min"){if(t===null||r.value>t)t=r.value}else if(r.kind==="max"){if(e===null||r.value<e)e=r.value}return Number.isFinite(t)&&Number.isFinite(e)}}Ai.create=(e)=>new Ai({checks:[],typeName:te.ZodNumber,coerce:e?.coerce||!1,...Ae(e)});class di extends ge{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==F.bigint)return this._getInvalidInput(e);let r=void 0,n=new Ht;for(let o of this._def.checks)if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0))r=this._getOrReturnCtx(e,r),G(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else Ce.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return G(t,{code:R.invalid_type,expected:F.bigint,received:t.parsedType}),K}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,r,n){return new di({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:V.toString(n)}]})}_addCheck(e){return new di({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}di.create=(e)=>new di({checks:[],typeName:te.ZodBigInt,coerce:e?.coerce??!1,...Ae(e)});class cc extends ge{_parse(e){if(this._def.coerce)e.data=Boolean(e.data);if(this._getType(e)!==F.boolean){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.boolean,received:r.parsedType}),K}return Wt(e.data)}}cc.create=(e)=>new cc({typeName:te.ZodBoolean,coerce:e?.coerce||!1,...Ae(e)});class gs extends ge{_parse(e){if(this._def.coerce)e.data=new Date(e.data);if(this._getType(e)!==F.date){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_type,expected:F.date,received:o.parsedType}),K}if(Number.isNaN(e.data.getTime())){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_date}),K}let r=new Ht,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.getTime()<o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()}else if(o.kind==="max"){if(e.data.getTime()>o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()}else Ce.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new gs({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:V.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e!=null?new Date(e):null}}gs.create=(e)=>new gs({checks:[],coerce:e?.coerce||!1,typeName:te.ZodDate,...Ae(e)});class IA extends ge{_parse(e){if(this._getType(e)!==F.symbol){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.symbol,received:r.parsedType}),K}return Wt(e.data)}}IA.create=(e)=>new IA({typeName:te.ZodSymbol,...Ae(e)});class uc extends ge{_parse(e){if(this._getType(e)!==F.undefined){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.undefined,received:r.parsedType}),K}return Wt(e.data)}}uc.create=(e)=>new uc({typeName:te.ZodUndefined,...Ae(e)});class lc extends ge{_parse(e){if(this._getType(e)!==F.null){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.null,received:r.parsedType}),K}return Wt(e.data)}}lc.create=(e)=>new lc({typeName:te.ZodNull,...Ae(e)});class hs extends ge{constructor(){super(...arguments);this._any=!0}_parse(e){return Wt(e.data)}}hs.create=(e)=>new hs({typeName:te.ZodAny,...Ae(e)});class li extends ge{constructor(){super(...arguments);this._unknown=!0}_parse(e){return Wt(e.data)}}li.create=(e)=>new li({typeName:te.ZodUnknown,...Ae(e)});class Hn extends ge{_parse(e){let t=this._getOrReturnCtx(e);return G(t,{code:R.invalid_type,expected:F.never,received:t.parsedType}),K}}Hn.create=(e)=>new Hn({typeName:te.ZodNever,...Ae(e)});class yA extends ge{_parse(e){if(this._getType(e)!==F.undefined){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.void,received:r.parsedType}),K}return Wt(e.data)}}yA.create=(e)=>new yA({typeName:te.ZodVoid,...Ae(e)});class bn extends ge{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==F.array)return G(t,{code:R.invalid_type,expected:F.array,received:t.parsedType}),K;if(n.exactLength!==null){let i=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;if(i||s)G(t,{code:i?R.too_big:R.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty()}if(n.minLength!==null){if(t.data.length<n.minLength.value)G(t,{code:R.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()}if(n.maxLength!==null){if(t.data.length>n.maxLength.value)G(t,{code:R.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()}if(t.common.async)return Promise.all([...t.data].map((i,s)=>n.type._parseAsync(new _n(t,i,t.path,s)))).then((i)=>Ht.mergeArray(r,i));let o=[...t.data].map((i,s)=>n.type._parseSync(new _n(t,i,t.path,s)));return Ht.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new bn({...this._def,minLength:{value:e,message:V.toString(t)}})}max(e,t){return new bn({...this._def,maxLength:{value:e,message:V.toString(t)}})}length(e,t){return new bn({...this._def,exactLength:{value:e,message:V.toString(t)}})}nonempty(e){return this.min(1,e)}}bn.create=(e,t)=>new bn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...Ae(t)});function sc(e){if(e instanceof st){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=xn.create(sc(n))}return new st({...e._def,shape:()=>t})}else if(e instanceof bn)return new bn({...e._def,type:sc(e.element)});else if(e instanceof xn)return xn.create(sc(e.unwrap()));else if(e instanceof Io)return Io.create(sc(e.unwrap()));else if(e instanceof Gn)return Gn.create(e.items.map((t)=>sc(t)));else return e}class st extends ge{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=Ce.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==F.object){let c=this._getOrReturnCtx(e);return G(c,{code:R.invalid_type,expected:F.object,received:c.parsedType}),K}let{status:r,ctx:n}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Hn&&this._def.unknownKeys==="strip")){for(let c in n.data)if(!i.includes(c))s.push(c)}let a=[];for(let c of i){let u=o[c],A=n.data[c];a.push({key:{status:"valid",value:c},value:u._parse(new _n(n,A,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Hn){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of s)a.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict"){if(s.length>0)G(n,{code:R.unrecognized_keys,keys:s}),r.dirty()}else if(c==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of s){let A=n.data[u];a.push({key:{status:"valid",value:u},value:c._parse(new _n(n,A,n.path,u)),alwaysSet:u in n.data})}}if(n.common.async)return Promise.resolve().then(async()=>{let c=[];for(let u of a){let A=await u.key,p=await u.value;c.push({key:A,value:p,alwaysSet:u.alwaysSet})}return c}).then((c)=>Ht.mergeObjectSync(r,c));else return Ht.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(e){return V.errToObj,new st({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;if(t.code==="unrecognized_keys")return{message:V.errToObj(e).message??n};return{message:n}}}:{}})}strip(){return new st({...this._def,unknownKeys:"strip"})}passthrough(){return new st({...this._def,unknownKeys:"passthrough"})}extend(e){return new st({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new st({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new st({...this._def,catchall:e})}pick(e){let t={};for(let r of Ce.objectKeys(e))if(e[r]&&this.shape[r])t[r]=this.shape[r];return new st({...this._def,shape:()=>t})}omit(e){let t={};for(let r of Ce.objectKeys(this.shape))if(!e[r])t[r]=this.shape[r];return new st({...this._def,shape:()=>t})}deepPartial(){return sc(this)}partial(e){let t={};for(let r of Ce.objectKeys(this.shape)){let n=this.shape[r];if(e&&!e[r])t[r]=n;else t[r]=n.optional()}return new st({...this._def,shape:()=>t})}required(e){let t={};for(let r of Ce.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let o=this.shape[r];while(o instanceof xn)o=o._def.innerType;t[r]=o}return new st({...this._def,shape:()=>t})}keyof(){return _P(Ce.objectKeys(this.shape))}}st.create=(e,t)=>new st({shape:()=>e,unknownKeys:"strip",catchall:Hn.create(),typeName:te.ZodObject,...Ae(t)});st.strictCreate=(e,t)=>new st({shape:()=>e,unknownKeys:"strict",catchall:Hn.create(),typeName:te.ZodObject,...Ae(t)});st.lazycreate=(e,t)=>new st({shape:e,unknownKeys:"strip",catchall:Hn.create(),typeName:te.ZodObject,...Ae(t)});class Ac extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map((s)=>new fr(s.ctx.common.issues));return G(t,{code:R.invalid_union,unionErrors:i}),K}if(t.common.async)return Promise.all(r.map(async(o)=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);else{let o=void 0,i=[];for(let a of r){let c={...t,common:{...t.common,issues:[]},parent:null},u=a._parseSync({data:t.data,path:t.path,parent:c});if(u.status==="valid")return u;else if(u.status==="dirty"&&!o)o={result:u,ctx:c};if(c.common.issues.length)i.push(c.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map((a)=>new fr(a));return G(t,{code:R.invalid_union,unionErrors:s}),K}}get options(){return this._def.options}}Ac.create=(e,t)=>new Ac({options:e,typeName:te.ZodUnion,...Ae(t)});var Co=(e)=>{if(e instanceof pc)return Co(e.schema);else if(e instanceof vn)return Co(e.innerType());else if(e instanceof fc)return[e.value];else if(e instanceof pi)return e.options;else if(e instanceof gc)return Ce.objectValues(e.enum);else if(e instanceof hc)return Co(e._def.innerType);else if(e instanceof uc)return[void 0];else if(e instanceof lc)return[null];else if(e instanceof xn)return[void 0,...Co(e.unwrap())];else if(e instanceof Io)return[null,...Co(e.unwrap())];else if(e instanceof kg)return Co(e.unwrap());else if(e instanceof Ec)return Co(e.unwrap());else if(e instanceof mc)return Co(e._def.innerType);else return[]};class Sg extends ge{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==F.object)return G(t,{code:R.invalid_type,expected:F.object,received:t.parsedType}),K;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);if(!o)return G(t,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),K;if(t.common.async)return o._parseAsync({data:t.data,path:t.path,parent:t});else return o._parseSync({data:t.data,path:t.path,parent:t})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let o of t){let i=Co(o.shape[e]);if(!i.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of i){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,o)}}return new Sg({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...Ae(r)})}}function RB(e,t){let r=$n(e),n=$n(t);if(e===t)return{valid:!0,data:e};else if(r===F.object&&n===F.object){let o=Ce.objectKeys(t),i=Ce.objectKeys(e).filter((a)=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let c=RB(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===F.array&&n===F.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],c=RB(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else if(r===F.date&&n===F.date&&+e===+t)return{valid:!0,data:e};else return{valid:!1}}class dc extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(o,i)=>{if(Qg(o)||Qg(i))return K;let s=RB(o.value,i.value);if(!s.valid)return G(r,{code:R.invalid_intersection_types}),K;if(wg(o)||wg(i))t.dirty();return{status:t.value,value:s.data}};if(r.common.async)return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>n(o,i));else return n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}dc.create=(e,t,r)=>new dc({left:e,right:t,typeName:te.ZodIntersection,...Ae(r)});class Gn extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.array)return G(r,{code:R.invalid_type,expected:F.array,received:r.parsedType}),K;if(r.data.length<this._def.items.length)return G(r,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),K;if(!this._def.rest&&r.data.length>this._def.items.length)G(r,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty();let o=[...r.data].map((i,s)=>{let a=this._def.items[s]||this._def.rest;if(!a)return null;return a._parse(new _n(r,i,r.path,s))}).filter((i)=>!!i);if(r.common.async)return Promise.all(o).then((i)=>Ht.mergeArray(t,i));else return Ht.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new Gn({...this._def,rest:e})}}Gn.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Gn({items:e,typeName:te.ZodTuple,rest:null,...Ae(t)})};class BA extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.object)return G(r,{code:R.invalid_type,expected:F.object,received:r.parsedType}),K;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in r.data)n.push({key:o._parse(new _n(r,s,r.path,s)),value:i._parse(new _n(r,r.data[s],r.path,s)),alwaysSet:s in r.data});if(r.common.async)return Ht.mergeObjectAsync(t,n);else return Ht.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){if(t instanceof ge)return new BA({keyType:e,valueType:t,typeName:te.ZodRecord,...Ae(r)});return new BA({keyType:Bn.create(),valueType:e,typeName:te.ZodRecord,...Ae(t)})}}class bA extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.map)return G(r,{code:R.invalid_type,expected:F.map,received:r.parsedType}),K;let n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([s,a],c)=>({key:n._parse(new _n(r,s,r.path,[c,"key"])),value:o._parse(new _n(r,a,r.path,[c,"value"]))}));if(r.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let a of i){let c=await a.key,u=await a.value;if(c.status==="aborted"||u.status==="aborted")return K;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}})}else{let s=new Map;for(let a of i){let{key:c,value:u}=a;if(c.status==="aborted"||u.status==="aborted")return K;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}}}}bA.create=(e,t,r)=>new bA({valueType:t,keyType:e,typeName:te.ZodMap,...Ae(r)});class ms extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.set)return G(r,{code:R.invalid_type,expected:F.set,received:r.parsedType}),K;let n=this._def;if(n.minSize!==null){if(r.data.size<n.minSize.value)G(r,{code:R.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()}if(n.maxSize!==null){if(r.data.size>n.maxSize.value)G(r,{code:R.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty()}let o=this._def.valueType;function i(a){let c=new Set;for(let u of a){if(u.status==="aborted")return K;if(u.status==="dirty")t.dirty();c.add(u.value)}return{status:t.value,value:c}}let s=[...r.data.values()].map((a,c)=>o._parse(new _n(r,a,r.path,c)));if(r.common.async)return Promise.all(s).then((a)=>i(a));else return i(s)}min(e,t){return new ms({...this._def,minSize:{value:e,message:V.toString(t)}})}max(e,t){return new ms({...this._def,maxSize:{value:e,message:V.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ms.create=(e,t)=>new ms({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...Ae(t)});class ac extends ge{constructor(){super(...arguments);this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==F.function)return G(t,{code:R.invalid_type,expected:F.function,received:t.parsedType}),K;function r(s,a){return CA({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,oc(),Eo].filter((c)=>!!c),issueData:{code:R.invalid_arguments,argumentsError:a}})}function n(s,a){return CA({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,oc(),Eo].filter((c)=>!!c),issueData:{code:R.invalid_return_type,returnTypeError:a}})}let o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Es){let s=this;return Wt(async function(...a){let c=new fr([]),u=await s._def.args.parseAsync(a,o).catch((d)=>{throw c.addIssue(r(a,d)),c}),A=await Reflect.apply(i,this,u);return await s._def.returns._def.type.parseAsync(A,o).catch((d)=>{throw c.addIssue(n(A,d)),c})})}else{let s=this;return Wt(function(...a){let c=s._def.args.safeParse(a,o);if(!c.success)throw new fr([r(a,c.error)]);let u=Reflect.apply(i,this,c.data),A=s._def.returns.safeParse(u,o);if(!A.success)throw new fr([n(u,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ac({...this._def,args:Gn.create(e).rest(li.create())})}returns(e){return new ac({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ac({args:e?e:Gn.create([]).rest(li.create()),returns:t||li.create(),typeName:te.ZodFunction,...Ae(r)})}}class pc extends ge{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}pc.create=(e,t)=>new pc({getter:e,typeName:te.ZodLazy,...Ae(t)});class fc extends ge{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:R.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}}fc.create=(e,t)=>new fc({value:e,typeName:te.ZodLiteral,...Ae(t)});function _P(e,t){return new pi({values:e,typeName:te.ZodEnum,...Ae(t)})}class pi extends ge{_parse(e){if(typeof e.data!=="string"){let t=this._getOrReturnCtx(e),r=this._def.values;return G(t,{expected:Ce.joinValues(r),received:t.parsedType,code:R.invalid_type}),K}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return G(t,{received:t.data,code:R.invalid_enum_value,options:r}),K}return Wt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return pi.create(e,{...this._def,...t})}exclude(e,t=this._def){return pi.create(this.options.filter((r)=>!e.includes(r)),{...this._def,...t})}}pi.create=_P;class gc extends ge{_parse(e){let t=Ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==F.string&&r.parsedType!==F.number){let n=Ce.objectValues(t);return G(r,{expected:Ce.joinValues(n),received:r.parsedType,code:R.invalid_type}),K}if(!this._cache)this._cache=new Set(Ce.getValidEnumValues(this._def.values));if(!this._cache.has(e.data)){let n=Ce.objectValues(t);return G(r,{received:r.data,code:R.invalid_enum_value,options:n}),K}return Wt(e.data)}get enum(){return this._def.values}}gc.create=(e,t)=>new gc({values:e,typeName:te.ZodNativeEnum,...Ae(t)});class Es extends ge{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==F.promise&&t.common.async===!1)return G(t,{code:R.invalid_type,expected:F.promise,received:t.parsedType}),K;let r=t.parsedType===F.promise?t.data:Promise.resolve(t.data);return Wt(r.then((n)=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Es.create=(e,t)=>new Es({type:e,typeName:te.ZodPromise,...Ae(t)});class vn extends ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:(i)=>{if(G(r,i),i.fatal)t.abort();else t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async(s)=>{if(t.value==="aborted")return K;let a=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});if(a.status==="aborted")return K;if(a.status==="dirty")return fs(a.value);if(t.value==="dirty")return fs(a.value);return a});else{if(t.value==="aborted")return K;let s=this._def.schema._parseSync({data:i,path:r.path,parent:r});if(s.status==="aborted")return K;if(s.status==="dirty")return fs(s.value);if(t.value==="dirty")return fs(s.value);return s}}if(n.type==="refinement"){let i=(s)=>{let a=n.refinement(s,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(s.status==="aborted")return K;if(s.status==="dirty")t.dirty();return i(s.value),{status:t.value,value:s.value}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((s)=>{if(s.status==="aborted")return K;if(s.status==="dirty")t.dirty();return i(s.value).then(()=>({status:t.value,value:s.value}))})}if(n.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ui(i))return K;let s=n.transform(i.value,o);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((i)=>{if(!ui(i))return K;return Promise.resolve(n.transform(i.value,o)).then((s)=>({status:t.value,value:s}))});Ce.assertNever(n)}}vn.create=(e,t,r)=>new vn({schema:e,typeName:te.ZodEffects,effect:t,...Ae(r)});vn.createWithPreprocess=(e,t,r)=>new vn({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...Ae(r)});class xn extends ge{_parse(e){if(this._getType(e)===F.undefined)return Wt(void 0);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}xn.create=(e,t)=>new xn({innerType:e,typeName:te.ZodOptional,...Ae(t)});class Io extends ge{_parse(e){if(this._getType(e)===F.null)return Wt(null);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Io.create=(e,t)=>new Io({innerType:e,typeName:te.ZodNullable,...Ae(t)});class hc extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;if(t.parsedType===F.undefined)r=this._def.defaultValue();return this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}hc.create=(e,t)=>new hc({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default==="function"?t.default:()=>t.default,...Ae(t)});class mc extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});if(ic(n))return n.then((o)=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})}));else return{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}mc.create=(e,t)=>new mc({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:()=>t.catch,...Ae(t)});class xA extends ge{_parse(e){if(this._getType(e)!==F.nan){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.nan,received:r.parsedType}),K}return{status:"valid",value:e.data}}}xA.create=(e)=>new xA({typeName:te.ZodNaN,...Ae(e)});var jre=Symbol("zod_brand");class kg extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class _A extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});if(o.status==="aborted")return K;if(o.status==="dirty")return t.dirty(),fs(o.value);else return this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();else{let n=this._def.in._parseSync({data:r.data,path:r.path,parent:r});if(n.status==="aborted")return K;if(n.status==="dirty")return t.dirty(),{status:"dirty",value:n.value};else return this._def.out._parseSync({data:n.value,path:r.path,parent:r})}}static create(e,t){return new _A({in:e,out:t,typeName:te.ZodPipeline})}}class Ec extends ge{_parse(e){let t=this._def.innerType._parse(e),r=(n)=>{if(ui(n))n.value=Object.freeze(n.value);return n};return ic(t)?t.then((n)=>r(n)):r(t)}unwrap(){return this._def.innerType}}Ec.create=(e,t)=>new Ec({innerType:e,typeName:te.ZodReadonly,...Ae(t)});function yP(e,t){let r=typeof e==="function"?e(t):typeof e==="string"?{message:e}:e;return typeof r==="string"?{message:r}:r}function vP(e,t={},r){if(e)return hs.create().superRefine((n,o)=>{let i=e(n);if(i instanceof Promise)return i.then((s)=>{if(!s){let a=yP(t,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=yP(t,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}return});return hs.create()}var Vre={object:st.lazycreate},te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(te||(te={}));var Jre=(e,t={message:`Input not instance of ${e.name}`})=>vP((r)=>r instanceof e,t),QP=Bn.create,wP=Ai.create,qre=xA.create,Wre=di.create,SP=cc.create,Zre=gs.create,Kre=IA.create,Xre=uc.create,ene=lc.create,tne=hs.create,rne=li.create,nne=Hn.create,one=yA.create,ine=bn.create,sne=st.create,ane=st.strictCreate,cne=Ac.create,une=Sg.create,lne=dc.create,Ane=Gn.create,dne=BA.create,pne=bA.create,fne=ms.create,gne=ac.create,hne=pc.create,mne=fc.create,Ene=pi.create,Cne=gc.create,Ine=Es.create,yne=vn.create,Bne=xn.create,bne=Io.create,xne=vn.createWithPreprocess,_ne=_A.create,vne=()=>QP().optional(),Qne=()=>wP().optional(),wne=()=>SP().optional(),Sne={string:(e)=>Bn.create({...e,coerce:!0}),number:(e)=>Ai.create({...e,coerce:!0}),boolean:(e)=>cc.create({...e,coerce:!0}),bigint:(e)=>di.create({...e,coerce:!0}),date:(e)=>gs.create({...e,coerce:!0})};var kne=K;ur();function Cs(e){let t;return()=>t??=e()}function Dne(e){let t=e?.trim();return t?t:void 0}function vA(e){return e===void 0?void 0:String(e)}var Rne=Cs(()=>Nr.preprocess(vA,Nr.string().optional().transform(Dne))),Tne=Cs(()=>Nr.preprocess(vA,Nr.string().optional().transform((e)=>fe(e)))),Nne=Cs(()=>Nr.preprocess(vA,Nr.string().optional().transform((e)=>{if(fe(e))return!0;if(ya(e))return!1;return}))),Lne=Cs(()=>DP());function kP(e){if(typeof e==="boolean")return e?"1":"0";return String(e)}var l={str:()=>Rne(),bool:()=>Tne(),triBool:()=>Nne(),int:(e)=>e?DP(e):Lne(),enum:(e)=>Nr.preprocess(vA,Nr.string().optional().transform((t)=>t!==void 0&&e.includes(t.trim())?t.trim():void 0))};function DP(e){return Nr.preprocess(vA,Nr.string().optional().transform((t)=>{if(t===void 0)return;let r=parseInt(t.trim(),10);if(Number.isNaN(r))return;if(e?.min!==void 0&&r<e.min)return;if(e?.max!==void 0&&r>e.max)return;return r}))}var Une=l.str(),One=l.str(),Fne=l.str(),Mne=l.str(),Pne=l.str(),$ne=l.str(),Hne=l.str(),Gne=l.str(),zne=l.str(),Yne=l.str(),jne=l.str(),Vne=l.str(),Jne=l.str(),qne=l.str(),Wne=l.str(),Zne=l.str(),Kne=l.str(),Xne=l.str(),eoe=l.str(),toe=l.str(),roe=l.str(),noe=l.bool(),ooe=l.str(),ioe=l.str(),soe=l.str(),aoe=l.str(),coe=l.bool(),uoe=l.bool(),loe=l.str(),Aoe=l.str(),doe=l.str(),poe=l.int({min:0}),foe=l.int({min:0}),goe=l.int(),hoe=l.bool(),moe=l.int(),Eoe=l.bool(),Coe=l.bool(),Ioe=l.bool(),yoe=l.bool(),Boe=l.bool(),boe=l.str(),xoe=l.str(),_oe=l.str(),voe=l.str(),Qoe=l.str(),woe=l.str(),Soe=l.str(),koe=l.str(),Doe=l.str();var NB={};ft(NB,{OTEL_TRACES_EXPORT_INTERVAL:()=>Bie,OTEL_TRACES_EXPORTER:()=>uie,OTEL_RESOURCE_ATTRIBUTES:()=>bie,OTEL_METRIC_EXPORT_INTERVAL:()=>Iie,OTEL_METRICS_EXPORTER:()=>aie,OTEL_LOG_USER_PROMPTS:()=>xie,OTEL_LOG_TOOL_DETAILS:()=>Qie,OTEL_LOG_TOOL_CONTENT:()=>vie,OTEL_LOG_RAW_API_BODIES:()=>wie,OTEL_LOG_ASSISTANT_RESPONSES:()=>_ie,OTEL_LOGS_EXPORT_INTERVAL:()=>yie,OTEL_LOGS_EXPORTER:()=>cie,OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:()=>Cie,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:()=>Eie,OTEL_EXPORTER_OTLP_PROTOCOL:()=>die,OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:()=>mie,OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:()=>hie,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:()=>gie,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:()=>fie,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:()=>pie,OTEL_EXPORTER_OTLP_HEADERS:()=>Aie,OTEL_EXPORTER_OTLP_ENDPOINT:()=>lie,DEBUG_SDK:()=>Foe,DEBUG_CLAUDE_AGENT_SDK:()=>Ooe,CLAUDE_PTY_RECORD:()=>Joe,CLAUDE_DEBUG:()=>Roe,CLAUDE_CODE_TERMINAL_RECORDING:()=>qoe,CLAUDE_CODE_TEE_SDK_STDOUT:()=>Woe,CLAUDE_CODE_SESSION_LOG:()=>joe,CLAUDE_CODE_PROFILE_STARTUP:()=>Moe,CLAUDE_CODE_PROFILE_QUERY:()=>Poe,CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_S:()=>Hoe,CLAUDE_CODE_PERFETTO_TRACE:()=>$oe,CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS:()=>tie,CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS:()=>rie,CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS:()=>eie,CLAUDE_CODE_OTEL_DIAG_STDERR:()=>sie,CLAUDE_CODE_JSONL_TRANSCRIPT:()=>Voe,CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY:()=>zoe,CLAUDE_CODE_FRAME_TIMING_LOG:()=>Goe,CLAUDE_CODE_ENHANCED_TELEMETRY_BETA:()=>Xoe,CLAUDE_CODE_ENABLE_TELEMETRY:()=>Koe,CLAUDE_CODE_DIAGNOSTICS_FILE:()=>Uoe,CLAUDE_CODE_DEBUG_REPAINTS:()=>Loe,CLAUDE_CODE_DEBUG_LOG_LEVEL:()=>Toe,CLAUDE_CODE_DEBUG_LOGS_DIR:()=>Noe,CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS:()=>oie,CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS:()=>nie,CLAUDE_CODE_COMMIT_LOG:()=>Yoe,CLAUDE_CODE_BYOC_ENABLE_DATADOG:()=>iie,CLAUDE_CODE_BENCH_LIVE_COUNTS:()=>Zoe,BETA_TRACING_ENDPOINT:()=>Oie,ANT_OTEL_TRACES_EXPORTER:()=>Nie,ANT_OTEL_RESOURCE_ATTRIBUTES:()=>Lie,ANT_OTEL_METRICS_EXPORTER:()=>Tie,ANT_OTEL_LOGS_EXPORTER:()=>Rie,ANT_OTEL_EXPORTER_OTLP_PROTOCOL:()=>Die,ANT_OTEL_EXPORTER_OTLP_HEADERS:()=>kie,ANT_OTEL_EXPORTER_OTLP_ENDPOINT:()=>Sie,ANT_CLAUDE_CODE_METRICS_ENDPOINT:()=>Uie});var Roe=l.bool(),Toe=l.str(),Noe=l.str(),Loe=l.bool(),Uoe=l.str(),Ooe=l.bool(),Foe=l.bool(),Moe=l.bool(),Poe=l.bool(),$oe=l.str(),Hoe=l.int(),Goe=l.str(),zoe=l.int(),Yoe=l.str(),joe=l.str(),Voe=l.str(),Joe=l.str(),qoe=l.str(),Woe=l.bool(),Zoe=l.bool(),Koe=l.bool(),Xoe=l.bool(),eie=l.int(),tie=l.int(),rie=l.int(),nie=l.int(),oie=l.int(),iie=l.bool(),sie=l.bool(),aie=l.str(),cie=l.str(),uie=l.str(),lie=l.str(),Aie=l.str(),die=l.str(),pie=l.str(),fie=l.str(),gie=l.str(),hie=l.str(),mie=l.str(),Eie=l.str(),Cie=l.str(),Iie=l.int(),yie=l.int(),Bie=l.int(),bie=l.str(),xie=l.bool(),_ie=l.triBool(),vie=l.bool(),Qie=l.bool(),wie=l.bool(),Sie=l.str(),kie=l.str(),Die=l.str(),Rie=l.str(),Tie=l.str(),Nie=l.str(),Lie=l.str(),Uie=l.str(),Oie=l.str();cr();import{constants as qie}from"fs";import{access as Wie,readdir as Zie,readFile as x9e,readlink as Kie}from"fs/promises";import{homedir as Xie}from"os";import{delimiter as ese,join as wA}from"path";ur();function Fie(){return"prod"}function RP(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(Fie()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}var Mie="user:inference",TP="user:profile",Pie="org:create_api_key";var $ie=[Pie,TP],Hie=[TP,Mie,"user:sessions:claude_code","user:mcp_servers","user:file_upload",...[]],qZe=nc([...$ie,...Hie]),Gie=["user:design:read","user:design:write"],WZe=[...Gie,"user:projects:read","user:projects:write"];function NP(){return process.versions.bun!==void 0}ur();qt();cr();tt();qt();lA();import{readdir as n9e,readFile as zie}from"fs/promises";import{release as LP}from"os";cr();qt();var LB=ie(()=>{try{return we().readFileSync("/proc/version",{encoding:"utf8"}).toLowerCase()}catch{return}});var UP;var QA=ie(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){if(process.env.WSL_DISTRO_NAME||process.env.WSL_INTEROP)return"wsl";let e=UP??LB();if(e!==void 0&&(e.includes("microsoft")||e.includes("wsl")))return"wsl";return"linux"}return"unknown"}catch(e){return ii(e),"unknown"}});var l9e=ie(()=>{if(process.platform!=="linux")return;let e=UP??LB();if(e===void 0)return;let t=e.match(/wsl(\d+)/);if(t&&t[1])return t[1];if(e.includes("microsoft"))return"1";return}),A9e=ie(async()=>{if(process.platform!=="linux")return;let e={linuxKernel:LP()};try{let t=await zie("/etc/os-release","utf8");for(let r of t.split(`
129
+ ${o}`;break;case"retry":if(TJ(o))t[n]=o;break;case"id":if(NJ(o))t[n]=o;break;case"event":if(o.length>0)t[n]=o;break}}processEvent(e){if(e.retry&&TJ(e.retry))this.state.reconnectionTime=parseInt(e.retry,10);if(e.id&&NJ(e.id))this.state.lastEventId=e.id;if(e.data!==void 0)this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}UJ.exports={EventSourceStream:LJ}});var YJ=y((r8e,zJ)=>{var{pipeline:jSe}=v("node:stream"),{fetching:VSe}=fd(),{makeRequest:JSe}=ou(),{webidl:Lo}=Gt(),{EventSourceStream:qSe}=OJ(),{parseMIMEType:WSe}=gr(),{createFastMessageEvent:ZSe}=lu(),{isNetworkError:FJ}=dd(),{delay:KSe}=l_(),{kEnumerableProperty:$s}=me(),{environmentSettingsObject:MJ}=Lr(),PJ=!1,$J=3000,wd=0,HJ=1,Sd=2,XSe="anonymous",eke="use-credentials";class gu extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=wd;#o=null;#a=null;#i;#l;constructor(e,t={}){super();Lo.util.markAsUncloneable(this);let r="EventSource constructor";if(Lo.argumentLengthCheck(arguments,1,r),!PJ)PJ=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"});e=Lo.converters.USVString(e,r,"url"),t=Lo.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#l={lastEventId:"",reconnectionTime:$J};let n=MJ,o;try{o=new URL(e,n.settingsObject.baseUrl),this.#l.origin=o.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=o.href;let i=XSe;if(t.withCredentials)i=eke,this.#r=!0;let s={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};s.client=MJ.settingsObject,s.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],s.cache="no-store",s.initiator="other",s.urlList=[new URL(this.#t)],this.#o=JSe(s),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Sd)return;this.#n=wd;let e={request:this.#o,dispatcher:this.#i},t=(r)=>{if(FJ(r))this.dispatchEvent(new Event("error")),this.close();this.#c()};e.processResponseEndOfBody=t,e.processResponse=(r)=>{if(FJ(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=r.headersList.get("content-type",!0),o=n!==null?WSe(n):"failure",i=o!=="failure"&&o.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=HJ,this.dispatchEvent(new Event("open")),this.#l.origin=r.urlList[r.urlList.length-1].origin;let s=new qSe({eventSourceSettings:this.#l,push:(a)=>{this.dispatchEvent(ZSe(a.type,a.options))}});jSe(r.body.stream,s,(a)=>{if(a?.aborted===!1)this.close(),this.dispatchEvent(new Event("error"))})},this.#a=VSe(e)}async#c(){if(this.#n===Sd)return;if(this.#n=wd,this.dispatchEvent(new Event("error")),await KSe(this.#l.reconnectionTime),this.#n!==wd)return;if(this.#l.lastEventId.length)this.#o.headersList.set("last-event-id",this.#l.lastEventId,!0);this.#A()}close(){if(Lo.brandCheck(this,gu),this.#n===Sd)return;this.#n=Sd,this.#a.abort(),this.#o=null}get onopen(){return this.#e.open}set onopen(e){if(this.#e.open)this.removeEventListener("open",this.#e.open);if(typeof e==="function")this.#e.open=e,this.addEventListener("open",e);else this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){if(this.#e.message)this.removeEventListener("message",this.#e.message);if(typeof e==="function")this.#e.message=e,this.addEventListener("message",e);else this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){if(this.#e.error)this.removeEventListener("error",this.#e.error);if(typeof e==="function")this.#e.error=e,this.addEventListener("error",e);else this.#e.error=null}}var GJ={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:wd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:HJ,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Sd,writable:!1}};Object.defineProperties(gu,GJ);Object.defineProperties(gu.prototype,GJ);Object.defineProperties(gu.prototype,{close:$s,onerror:$s,onmessage:$s,onopen:$s,readyState:$s,url:$s,withCredentials:$s});Lo.converters.EventSourceInitDict=Lo.dictionaryConverter([{key:"withCredentials",converter:Lo.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Lo.converters.any}]);zJ.exports={EventSource:gu,defaultReconnectionTime:$J}});var qJ=y((Tke,re)=>{var tke=zc(),jJ=RA(),rke=Yc(),nke=mG(),oke=jc(),ike=ox(),ske=YG(),ake=KG(),VJ=ve(),Am=me(),{InvalidArgumentError:lm}=VJ,hu=Yz(),cke=NA(),uke=Sx(),lke=DY(),Ake=Dx(),dke=Ex(),pke=yh(),{getGlobalDispatcher:JJ,setGlobalDispatcher:fke}=kh(),gke=Dh(),hke=Ah(),mke=dh();Object.assign(jJ.prototype,hu);Tke.Dispatcher=jJ;Tke.Client=tke;Tke.Pool=rke;Tke.BalancedPool=nke;Tke.Agent=oke;Tke.ProxyAgent=ike;Tke.EnvHttpProxyAgent=ske;Tke.RetryAgent=ake;Tke.RetryHandler=pke;Tke.DecoratorHandler=gke;Tke.RedirectHandler=hke;Tke.createRedirectInterceptor=mke;Tke.interceptors={redirect:FY(),retry:PY(),dump:GY(),dns:JY()};Tke.buildConnector=cke;Tke.errors=VJ;Tke.util={parseHeaders:Am.parseHeaders,headerNameToString:Am.headerNameToString};function kd(e){return(t,r,n)=>{if(typeof r==="function")n=r,r=null;if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL))throw new lm("invalid url");if(r!=null&&typeof r!=="object")throw new lm("invalid opts");if(r&&r.path!=null){if(typeof r.path!=="string")throw new lm("invalid opts.path");let s=r.path;if(!r.path.startsWith("/"))s=`/${s}`;t=new URL(Am.parseOrigin(t).origin+s)}else{if(!r)r=typeof t==="object"?t:{};t=Am.parseURL(t)}let{agent:o,dispatcher:i=JJ()}=r;if(o)throw new lm("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}Tke.setGlobalDispatcher=fke;Tke.getGlobalDispatcher=JJ;var Eke=fd().fetch;Tke.fetch=async function(t,r=void 0){try{return await Eke(t,r)}catch(n){if(n&&typeof n==="object")Error.captureStackTrace(n);throw n}};Tke.Headers=Ls().Headers;Tke.Response=dd().Response;Tke.Request=ou().Request;Tke.FormData=PA().FormData;Tke.File=globalThis.File??v("node:buffer").File;Tke.FileReader=dV().FileReader;var{setGlobalOrigin:Cke,getGlobalOrigin:Ike}=hb();Tke.setGlobalOrigin=Cke;Tke.getGlobalOrigin=Ike;var{CacheStorage:yke}=yV(),{kConstruct:Bke}=Zh();Tke.caches=new yke(Bke);var{deleteCookie:bke,getCookies:xke,getSetCookies:_ke,setCookie:vke}=TV();Tke.deleteCookie=bke;Tke.getCookies=xke;Tke.getSetCookies=_ke;Tke.setCookie=vke;var{parseMIMEType:Qke,serializeAMimeType:wke}=gr();Tke.parseMIMEType=Qke;Tke.serializeAMimeType=wke;var{CloseEvent:Ske,ErrorEvent:kke,MessageEvent:Dke}=lu();Tke.WebSocket=DJ().WebSocket;Tke.CloseEvent=Ske;Tke.ErrorEvent=kke;Tke.MessageEvent=Dke;Tke.request=kd(hu.request);Tke.stream=kd(hu.stream);Tke.pipeline=kd(hu.pipeline);Tke.connect=kd(hu.connect);Tke.upgrade=kd(hu.upgrade);Tke.MockClient=uke;Tke.MockPool=Ake;Tke.MockAgent=lke;Tke.mockErrors=dke;var{EventSource:Rke}=YJ();Tke.EventSource=Rke});ga();lo();tt();St();Jt();function ni(){return"claude-code/0.3.201"}function Ga(){switch(process.env.CLAUDE_CODE_ENTRYPOINT){case"claude-vscode":return"claude_code_vscode";case"remote":case"remote_baku":case"remote_cowork":case"remote_desktop":case"remote_mobile":return"claude_code_remote";case"claude-in-teams":return"claude_code_remote";case"sdk-cli":case"sdk-ts":case"sdk-py":return"claude_code_sdk";case"mcp":return"claude_code_mcp";case"claude-code-github-action":return"claude_code_github_action";case"local-agent":return"claude_code_local_agent";case"claude_in_slack":return"claude_in_slack";case"claude-in-slack":return"claude-in-slack";case"cli":default:return"claude_code_cli"}}cs();tt();St();Jt();var c5=["session_ingress_token","environment_secret","access_token","secret","token"],qje=new RegExp(`"(${c5.join("|")})"\\s*:\\s*"([^"]*)"`,"g");function Cy(e){if(!e||typeof e!=="object")return;if("message"in e&&typeof e.message==="string")return e.message;if("error"in e&&e.error!==null&&typeof e.error==="object"&&"message"in e.error&&typeof e.error.message==="string")return e.error.message;return}var Hte="2023-06-01";function qM(e){return{Authorization:`Bearer ${e}`,"Content-Type":"application/json","anthropic-version":Hte,"User-Agent":ni()}}async function Gte(e,t,r,n,o,i,s,a){let c=`${e}/v1/code/sessions`,u={cwd:s??It(),...a&&{model:a}};if(i){let{buildGitSessionContext:d}=await Promise.resolve().then(() => (JM(),VM)),{sources:f,outcomes:g}=await d(i.gitRepoUrl,i.branch,i.defaultBranch);if(f.length>0||g.length>0)u.sources=f,u.outcomes=g,u.reuse_outcome_branches=!0}let A;try{A=await jt.post(c,{title:r,bridge:{},...o?.length&&{tags:o},config:u},{headers:qM(t),timeout:n,validateStatus:(d)=>d<500})}catch(d){return Q(`[code-session] Session create request failed: ${Be(d)}`),null}if(A.status!==200&&A.status!==201){let d=Cy(A.data);return Q(`[code-session] Session create failed ${A.status}${d?`: ${d}`:""}`),null}let p=A.data;if(!p||typeof p!=="object"||!("session"in p)||!p.session||typeof p.session!=="object"||!("id"in p.session)||typeof p.session.id!=="string"||!p.session.id.startsWith("cse_"))return Q(`[code-session] No session.id (cse_*) in response: ${Bt(p).slice(0,200)}`),null;return p.session.id}function zte(e){return e!==null&&"terminal"in e}function Yte(e,t){if(e!==null&&typeof e==="object"&&"error"in e&&e.error!==null&&typeof e.error==="object"&&"resource"in e.error){let r=e.error.resource;if(r==="untrusted_device"||r==="session_stale_relogin")return r;return}if(t?.includes("trusted device"))return"untrusted_device";return}async function jte(e,t,r,n,o){let i=`${t}/v1/code/sessions/${e}/bridge`,s=qM(r);if(o)s["X-Trusted-Device-Token"]=o;let a;try{a=await jt.post(i,{},{headers:s,timeout:n,validateStatus:(p)=>p<500})}catch(p){return Q(`[code-session] /bridge request failed: ${Be(p)}`),null}if(a.status!==200){let p=Cy(a.data);if(Q(`[code-session] /bridge failed ${a.status}${p?`: ${p}`:""}`),a.status===403){let d=Yte(a.data,p);if(d)return{terminal:!0,reason:d}}return null}let c=a.data;if(c===null||typeof c!=="object"||!("worker_jwt"in c)||typeof c.worker_jwt!=="string"||!("expires_in"in c)||typeof c.expires_in!=="number"||!("api_base_url"in c)||typeof c.api_base_url!=="string"||!("worker_epoch"in c))return Q(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${Bt(c).slice(0,200)}`),null;let u=c.worker_epoch,A=typeof u==="string"?Number(u):u;if(typeof A!=="number"||!Number.isFinite(A)||!Number.isSafeInteger(A))return Q(`[code-session] /bridge worker_epoch invalid: ${Bt(u)}`),null;return{worker_jwt:c.worker_jwt,api_base_url:c.api_base_url,expires_in:c.expires_in,worker_epoch:A}}tt();St();import{randomUUID as Jte}from"crypto";Ja();cs();var WM={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"};var Vte=["acceptEdits","auto","bypassPermissions","default","dontAsk","plan"],D4e=[...Vte,"bubble"];function ZM(e){return e==="manual"?"default":e}function KM(e){if(e===null||typeof e!=="object")return e;let t=e;if("requestId"in t&&!("request_id"in t))t.request_id=t.requestId,delete t.requestId;if("response"in t&&t.response!==null&&typeof t.response==="object"){let r=t.response;if("requestId"in r&&!("request_id"in r))r.request_id=r.requestId,delete r.requestId}return e}tt();function XM(e){if(!Array.isArray(e))return[];return e.filter((t)=>typeof t==="string"&&t.length>0&&t.length<=64).slice(0,32)}oB();St();cs();Jt();function qte(e){return e!==null&&typeof e==="object"&&"type"in e&&typeof e.type==="string"}function Wte(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_response"&&"response"in e}function Zte(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_request"&&"request_id"in e&&"request"in e}function eP(e,t,r,n,o,i){try{let s=KM(ri(e));if(Wte(s)){Q("[bridge:repl] Ingress message type=control_response"),o?.(s);return}if(Zte(s)){Q(`[bridge:repl] Inbound control_request subtype=${s.request.subtype}`),i?.(s);return}if(!qte(s))return;let a="uuid"in s&&typeof s.uuid==="string"?s.uuid:void 0;if(a&&t.has(a)){Q(`[bridge:repl] Ignoring echo: type=${s.type} uuid=${a}`);return}if(a&&r.has(a)){Q(`[bridge:repl] Ignoring re-delivered inbound: type=${s.type} uuid=${a}`);return}if(Q(`[bridge:repl] Ingress message type=${s.type}${a?` uuid=${a}`:""}`),s.type==="user"){if(a)r.add(a);mn("tengu_bridge_message_received",{is_repl:!0}),En("bridge_message_receive"),n?.(s)}else Q(`[bridge:repl] Ignoring non-user inbound message: type=${s.type}`)}catch(s){Q(`[bridge:repl] Failed to parse ingress message: ${Be(s)}`),dA("bridge_message_receive","bridge_message_receive_parse_failed")}}var Kte="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function tP(e,t){let{transport:r,sessionId:n,outboundOnly:o,getInitializeState:i,onInterrupt:s,onDialogKindsDeclared:a,onSetModel:c,onSetMaxThinkingTokens:u,onSetPermissionMode:A,onRenameSession:p,onSetColor:d,onFileSuggestions:f,onReadFile:g,onGetContextUsage:m,onGetUsage:h,onMcpAuthenticate:E,onMcpOauthCallbackUrl:w,onMcpReconnect:b,onMcpStatus:_}=t;if(!r){Q("[bridge:repl] Cannot respond to control_request: transport not configured");return}let L;if(o&&e.request.subtype!=="initialize"){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Kte}};let S={...L,session_id:n};r.write(S),Q(`[bridge:repl] Rejected ${e.request.subtype} (outbound-only) request_id=${e.request_id}`);return}switch(e.request.subtype){case"initialize":{try{let S=XM(e.request.supportedDialogKinds);if(S.length>0)a?.(S)}catch(S){Q(`[bridge:repl] dialog-kind capture failed; acking initialize anyway: ${Be(S)}`)}L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{commands:[],agents:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid,...i?.()}}};break}case"set_model":{let S=c?.(e.request.model);if(S&&!S.ok)L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};else L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break}case"set_max_thinking_tokens":u?.(e.request.max_thinking_tokens,e.request.thinking_display),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;case"set_permission_mode":{let S=A?.(ZM(e.request.mode))??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"rename_session":{let S=p?.(e.request.title)??{ok:!1,error:"rename_session is not supported in this context (onRenameSession callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"set_color":{let S=d?.(e.request.color)??{ok:!1,error:"set_color is not supported in this context (onSetColor callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"file_suggestions":{if(!f){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"file_suggestions is not supported in this context (onFileSuggestions callback not registered)"}};break}f(e.request.query).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{suggestions:S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for file_suggestions request_id=${e.request_id} result=${S.response.subtype}`)});return}case"read_file":{if(!g){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"read_file is not supported in this context (onReadFile callback not registered)"}};break}g(e.request.path,e.request.max_bytes,e.request.encoding).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:S}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for read_file request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_context_usage":{if(!m){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_context_usage is not supported in this context (onGetContextUsage callback not registered)"}};break}m().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for get_context_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_usage":{if(!h){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_usage is not supported in this context (onGetUsage callback not registered)"}};break}h().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let le={...S,session_id:n};r.write(le),Q(`[bridge:repl] Sent control_response for get_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"mcp_status":L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{mcpServers:_?.()??[]}}};break;case"mcp_authenticate":case"mcp_oauth_callback_url":case"mcp_reconnect":{let S=e.request,{subtype:le,serverName:pe}=S,Ft=S.subtype==="mcp_authenticate"?E&&((et)=>E(et,S.redirectUri)):S.subtype==="mcp_oauth_callback_url"?w&&((et)=>w(et,S.callbackUrl)):b;if(!Ft){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`${le} is not supported in this context (callback not registered)`}};break}Ft(pe).then((et)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:et??{}}})).catch((et)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(et)}})).then((et)=>{let He={...et,session_id:n};r.write(He),Q(`[bridge:repl] Sent control_response for ${le} request_id=${e.request_id} result=${et.response.subtype}`)});return}case"interrupt":s?.(),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;default:L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`REPL bridge does not handle control_request subtype: ${e.request.subtype}`}}}let T={...L,session_id:n};r.write(T),Q(`[bridge:repl] Sent control_response for ${e.request.subtype} request_id=${e.request_id} result=${L.response.subtype}`)}function rP(e){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...WM},modelUsage:{},permission_denials:[],session_id:e,uuid:Jte()}}class xg{capacity;ring;set=new Set;writeIdx=0;constructor(e){this.capacity=e,this.ring=Array(e)}add(e){if(this.set.has(e))return;let t=this.ring[this.writeIdx];if(t!==void 0)this.set.delete(t);this.ring[this.writeIdx]=e,this.set.add(e),this.writeIdx=(this.writeIdx+1)%this.capacity}has(e){return this.set.has(e)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}import{randomUUID as cq}from"crypto";cs();tt();qa();St();Jt();function Xte(e){let r=(e.startsWith("sk-ant-si-")?e.slice(10):e).split(".");if(r.length!==3||!r[1])return null;try{return ri(Buffer.from(r[1],"base64url").toString("utf8"))}catch{return null}}function nP(e){let t=Xte(e);if(t!==null&&typeof t==="object"&&"exp"in t&&typeof t.exp==="number")return t.exp;return null}Ja();cs();tt();qa();St();cr();pn();var wDe=Su(EP(),1);import{isIP as WJ}from"net";cr();function nc(e){return[...new Set(e)]}tt();var TB={};ft(TB,{USE_STAGING_OAUTH:()=>uoe,USE_LOCAL_OAUTH:()=>coe,MCP_XAA_IDP_CLIENT_SECRET:()=>Vne,MCP_CLIENT_SECRET:()=>jne,ENVIRONMENT_SERVICE_KEY:()=>Yne,CLAUDE_TRUSTED_DEVICE_TOKEN:()=>aoe,CLAUDE_SESSION_INGRESS_TOKEN_FILE:()=>Zne,CLAUDE_LOCAL_OAUTH_CONSOLE_BASE:()=>doe,CLAUDE_LOCAL_OAUTH_APPS_BASE:()=>Aoe,CLAUDE_LOCAL_OAUTH_API_BASE:()=>loe,CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR:()=>Wne,CLAUDE_CODE_USER_EMAIL:()=>Soe,CLAUDE_CODE_SUBSCRIPTION_TYPE:()=>koe,CLAUDE_CODE_SKIP_VERTEX_AUTH:()=>Coe,CLAUDE_CODE_SKIP_MANTLE_AUTH:()=>Boe,CLAUDE_CODE_SKIP_FOUNDRY_AUTH:()=>Ioe,CLAUDE_CODE_SKIP_BEDROCK_AUTH:()=>Eoe,CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH:()=>yoe,CLAUDE_CODE_SESSION_ACCESS_TOKEN:()=>soe,CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH:()=>noe,CLAUDE_CODE_RATE_LIMIT_TIER:()=>Doe,CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS:()=>moe,CLAUDE_CODE_ORGANIZATION_UUID:()=>woe,CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR:()=>qne,CLAUDE_CODE_OAUTH_TOKEN:()=>Fne,CLAUDE_CODE_OAUTH_SCOPES:()=>toe,CLAUDE_CODE_OAUTH_REFRESH_TOKEN:()=>Kne,CLAUDE_CODE_OAUTH_CLIENT_ID:()=>Xne,CLAUDE_CODE_OAUTH_401_WAIT_MS:()=>poe,CLAUDE_CODE_HOST_CREDS_FILE:()=>ioe,CLAUDE_CODE_HOST_AUTH_ENV_VAR:()=>ooe,CLAUDE_CODE_HFI_BEARER_TOKEN:()=>Hne,CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER:()=>hoe,CLAUDE_CODE_DESIGN_OAUTH_CLIENT_ID:()=>eoe,CLAUDE_CODE_CUSTOM_OAUTH_URL:()=>roe,CLAUDE_CODE_AUTH_FAIL_EXIT_MS:()=>foe,CLAUDE_CODE_API_KEY_HELPER_TTL_MS:()=>goe,CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR:()=>Jne,CLAUDE_CODE_ACCOUNT_UUID:()=>voe,CLAUDE_CODE_ACCOUNT_TAGGED_ID:()=>Qoe,AWS_BEARER_TOKEN_BEDROCK:()=>Mne,API_TOKEN:()=>zne,ANTHROPIC_PROFILE:()=>_oe,ANTHROPIC_ORGANIZATION_ID:()=>xoe,ANTHROPIC_FOUNDRY_API_KEY:()=>$ne,ANTHROPIC_FEDERATION_RULE_ID:()=>boe,ANTHROPIC_AWS_API_KEY:()=>Pne,ANTHROPIC_AUTH_TOKEN:()=>One,ANTHROPIC_API_KEY:()=>Une,AGENT_PROXY_AUTH_TOKEN:()=>Gne});var Nr={};ft(Nr,{void:()=>one,util:()=>Ce,unknown:()=>rne,union:()=>cne,undefined:()=>Xre,tuple:()=>Ane,transformer:()=>yne,symbol:()=>Kre,string:()=>QP,strictObject:()=>ane,setErrorMap:()=>bre,set:()=>fne,record:()=>dne,quotelessJson:()=>yre,promise:()=>Ine,preprocess:()=>xne,pipeline:()=>_ne,ostring:()=>vne,optional:()=>Bne,onumber:()=>Qne,oboolean:()=>wne,objectUtil:()=>kB,object:()=>sne,number:()=>wP,nullable:()=>bne,null:()=>ene,never:()=>nne,nativeEnum:()=>Cne,nan:()=>qre,map:()=>pne,makeIssue:()=>CA,literal:()=>mne,lazy:()=>hne,late:()=>Vre,isValid:()=>ui,isDirty:()=>wg,isAsync:()=>ic,isAborted:()=>Qg,intersection:()=>lne,instanceof:()=>Jre,getParsedType:()=>$n,getErrorMap:()=>oc,function:()=>gne,enum:()=>Ene,effect:()=>yne,discriminatedUnion:()=>une,defaultErrorMap:()=>Eo,datetimeRegex:()=>xP,date:()=>Zre,custom:()=>vP,coerce:()=>Sne,boolean:()=>SP,bigint:()=>Wre,array:()=>ine,any:()=>tne,addIssueToContext:()=>G,ZodVoid:()=>yA,ZodUnknown:()=>li,ZodUnion:()=>Ac,ZodUndefined:()=>uc,ZodType:()=>ge,ZodTuple:()=>Gn,ZodTransformer:()=>vn,ZodSymbol:()=>IA,ZodString:()=>Bn,ZodSet:()=>ms,ZodSchema:()=>ge,ZodRecord:()=>BA,ZodReadonly:()=>Ec,ZodPromise:()=>Es,ZodPipeline:()=>_A,ZodParsedType:()=>F,ZodOptional:()=>xn,ZodObject:()=>st,ZodNumber:()=>Ai,ZodNullable:()=>Io,ZodNull:()=>lc,ZodNever:()=>Hn,ZodNativeEnum:()=>gc,ZodNaN:()=>xA,ZodMap:()=>bA,ZodLiteral:()=>fc,ZodLazy:()=>pc,ZodIssueCode:()=>R,ZodIntersection:()=>dc,ZodFunction:()=>ac,ZodFirstPartyTypeKind:()=>te,ZodError:()=>fr,ZodEnum:()=>pi,ZodEffects:()=>vn,ZodDiscriminatedUnion:()=>Sg,ZodDefault:()=>hc,ZodDate:()=>gs,ZodCatch:()=>mc,ZodBranded:()=>kg,ZodBoolean:()=>cc,ZodBigInt:()=>di,ZodArray:()=>bn,ZodAny:()=>hs,Schema:()=>ge,ParseStatus:()=>Ht,OK:()=>Wt,NEVER:()=>kne,INVALID:()=>K,EMPTY_PATH:()=>xre,DIRTY:()=>fs,BRAND:()=>jre});var Ce;(function(e){e.assertEqual=(o)=>{};function t(o){}e.assertIs=t;function r(o){throw Error()}e.assertNever=r,e.arrayToEnum=(o)=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=(o)=>{let i=e.objectKeys(o).filter((a)=>typeof o[o[a]]!=="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=(o)=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys==="function"?(o)=>Object.keys(o):(o)=>{let i=[];for(let s in o)if(Object.prototype.hasOwnProperty.call(o,s))i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s;return},e.isInteger=typeof Number.isInteger==="function"?(o)=>Number.isInteger(o):(o)=>typeof o==="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map((s)=>typeof s==="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>{if(typeof i==="bigint")return i.toString();return i}})(Ce||(Ce={}));var kB;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(kB||(kB={}));var F=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$n=(e)=>{switch(typeof e){case"undefined":return F.undefined;case"string":return F.string;case"number":return Number.isNaN(e)?F.nan:F.number;case"boolean":return F.boolean;case"function":return F.function;case"bigint":return F.bigint;case"symbol":return F.symbol;case"object":if(Array.isArray(e))return F.array;if(e===null)return F.null;if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return F.promise;if(typeof Map<"u"&&e instanceof Map)return F.map;if(typeof Set<"u"&&e instanceof Set)return F.set;if(typeof Date<"u"&&e instanceof Date)return F.date;return F.object;default:return F.unknown}};var R=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),yre=(e)=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class fr extends Error{get errors(){return this.issues}constructor(e){super();this.issues=[],this.addIssue=(r)=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let t=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,t);else this.__proto__=t;this.name="ZodError",this.issues=e}format(e){let t=e||function(o){return o.message},r={_errors:[]},n=(o)=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;while(a<i.path.length){let c=i.path[a];if(a!==i.path.length-1)s[c]=s[c]||{_errors:[]};else s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i));s=s[c],a++}}};return n(this),r}static assert(e){if(!(e instanceof fr))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=(t)=>t.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];t[o]=t[o]||[],t[o].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}fr.create=(e)=>new fr(e);var Bre=(e,t)=>{let r;switch(e.code){case R.invalid_type:if(e.received===F.undefined)r="Required";else r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ce.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ce.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ce.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${Ce.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:if(typeof e.validation==="object")if("includes"in e.validation){if(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==="number")r=`${r} at one or more positions greater than or equal to ${e.validation.position}`}else if("startsWith"in e.validation)r=`Invalid input: must start with "${e.validation.startsWith}"`;else if("endsWith"in e.validation)r=`Invalid input: must end with "${e.validation.endsWith}"`;else Ce.assertNever(e.validation);else if(e.validation!=="regex")r=`Invalid ${e.validation}`;else r="Invalid";break;case R.too_small:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="bigint")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`;else r="Invalid input";break;case R.too_big:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="bigint")r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`;else r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ce.assertNever(e)}return{message:r}},Eo=Bre;var CP=Eo;function bre(e){CP=e}function oc(){return CP}var CA=(e)=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",c=n.filter((u)=>!!u).slice().reverse();for(let u of c)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},xre=[];function G(e,t){let r=oc(),n=CA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Eo?void 0:Eo].filter((o)=>!!o)});e.common.issues.push(n)}class Ht{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(e,t){let r=[];for(let n of t){if(n.status==="aborted")return K;if(n.status==="dirty")e.dirty();r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let n of t){let o=await n.key,i=await n.value;r.push({key:o,value:i})}return Ht.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:o,value:i}=n;if(o.status==="aborted")return K;if(i.status==="aborted")return K;if(o.status==="dirty")e.dirty();if(i.status==="dirty")e.dirty();if(o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet))r[o.value]=i.value}return{status:e.value,value:r}}}var K=Object.freeze({status:"aborted"}),fs=(e)=>({status:"dirty",value:e}),Wt=(e)=>({status:"valid",value:e}),Qg=(e)=>e.status==="aborted",wg=(e)=>e.status==="dirty",ui=(e)=>e.status==="valid",ic=(e)=>typeof Promise<"u"&&e instanceof Promise;var V;(function(e){e.errToObj=(t)=>typeof t==="string"?{message:t}:t||{},e.toString=(t)=>typeof t==="string"?t:t?.message})(V||(V={}));class _n{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var IP=(e,t)=>{if(ui(t))return{success:!0,data:t.value};else{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new fr(e.common.issues);return this._error=r,this._error}}}};function Ae(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(t)return{errorMap:t,description:o};return{errorMap:(s,a)=>{let{message:c}=e;if(s.code==="invalid_enum_value")return{message:c??a.defaultError};if(typeof a.data>"u")return{message:c??n??a.defaultError};if(s.code!=="invalid_type")return{message:a.defaultError};return{message:c??r??a.defaultError}},description:o}}class ge{get description(){return this._def.description}_getType(e){return $n(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:$n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ht,ctx:{common:e.parent.common,data:e.data,parsedType:$n(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ic(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$n(e)},n=this._parseSync({data:e,path:r.path,parent:r});return IP(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$n(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return ui(r)?{value:r.value}:{issues:t.common.issues}}catch(r){if(r?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then((r)=>ui(r)?{value:r.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$n(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(ic(n)?n:Promise.resolve(n));return IP(r,o)}refine(e,t){let r=(n)=>{if(typeof t==="string"||typeof t>"u")return{message:t};else if(typeof t==="function")return t(n);else return t};return this._refinement((n,o)=>{let i=e(n),s=()=>o.addIssue({code:R.custom,...r(n)});if(typeof Promise<"u"&&i instanceof Promise)return i.then((a)=>{if(!a)return s(),!1;else return!0});if(!i)return s(),!1;else return!0})}refinement(e,t){return this._refinement((r,n)=>{if(!e(r))return n.addIssue(typeof t==="function"?t(r,n):t),!1;else return!0})}_refinement(e){return new vn({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(t)=>this["~validate"](t)}}optional(){return xn.create(this,this._def)}nullable(){return Io.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bn.create(this)}promise(){return Es.create(this,this._def)}or(e){return Ac.create([this,e],this._def)}and(e){return dc.create(this,e,this._def)}transform(e){return new vn({...Ae(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e==="function"?e:()=>e;return new hc({...Ae(this._def),innerType:this,defaultValue:t,typeName:te.ZodDefault})}brand(){return new kg({typeName:te.ZodBranded,type:this,...Ae(this._def)})}catch(e){let t=typeof e==="function"?e:()=>e;return new mc({...Ae(this._def),innerType:this,catchValue:t,typeName:te.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return _A.create(this,e)}readonly(){return Ec.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var _re=/^c[^\s-]{8,}$/i,vre=/^[0-9a-z]+$/,Qre=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wre=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Sre=/^[a-z0-9_-]{21}$/i,kre=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Dre=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Rre=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Tre="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",DB,Nre=/^(?:(?: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])$/,Lre=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,Ure=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ore=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fre=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Mre=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,BP="((\\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])))",Pre=new RegExp(`^${BP}$`);function bP(e){let t="[0-5]\\d";if(e.precision)t=`${t}\\.\\d{${e.precision}}`;else if(e.precision==null)t=`${t}(\\.\\d+)?`;let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function $re(e){return new RegExp(`^${bP(e)}$`)}function xP(e){let t=`${BP}T${bP(e)}`,r=[];if(r.push(e.local?"Z?":"Z"),e.offset)r.push("([+-]\\d{2}:?\\d{2})");return t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Hre(e,t){if((t==="v4"||!t)&&Nre.test(e))return!0;if((t==="v6"||!t)&&Ure.test(e))return!0;return!1}function Gre(e,t){if(!kre.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));if(typeof o!=="object"||o===null)return!1;if("typ"in o&&o?.typ!=="JWT")return!1;if(!o.alg)return!1;if(t&&o.alg!==t)return!1;return!0}catch{return!1}}function zre(e,t){if((t==="v4"||!t)&&Lre.test(e))return!0;if((t==="v6"||!t)&&Ore.test(e))return!0;return!1}class Bn extends ge{_parse(e){if(this._def.coerce)e.data=String(e.data);if(this._getType(e)!==F.string){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_type,expected:F.string,received:o.parsedType}),K}let r=new Ht,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.length<o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="max"){if(e.data.length>o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="length"){let i=e.data.length>o.value,s=e.data.length<o.value;if(i||s){if(n=this._getOrReturnCtx(e,n),i)G(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});else if(s)G(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});r.dirty()}}else if(o.kind==="email"){if(!Rre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"email",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="emoji"){if(!DB)DB=new RegExp(Tre,"u");if(!DB.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"emoji",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="uuid"){if(!wre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"uuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="nanoid"){if(!Sre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"nanoid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid"){if(!_re.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"cuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid2"){if(!vre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"cuid2",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ulid"){if(!Qre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"ulid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),G(n,{validation:"url",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="regex"){if(o.regex.lastIndex=0,!o.regex.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"regex",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="trim")e.data=e.data.trim();else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()}else if(o.kind==="toLowerCase")e.data=e.data.toLowerCase();else if(o.kind==="toUpperCase")e.data=e.data.toUpperCase();else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="datetime"){if(!xP(o).test(e.data))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:"datetime",message:o.message}),r.dirty()}else if(o.kind==="date"){if(!Pre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:"date",message:o.message}),r.dirty()}else if(o.kind==="time"){if(!$re(o).test(e.data))n=this._getOrReturnCtx(e,n),G(n,{code:R.invalid_string,validation:"time",message:o.message}),r.dirty()}else if(o.kind==="duration"){if(!Dre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"duration",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ip"){if(!Hre(e.data,o.version))n=this._getOrReturnCtx(e,n),G(n,{validation:"ip",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="jwt"){if(!Gre(e.data,o.alg))n=this._getOrReturnCtx(e,n),G(n,{validation:"jwt",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cidr"){if(!zre(e.data,o.version))n=this._getOrReturnCtx(e,n),G(n,{validation:"cidr",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64"){if(!Fre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"base64",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64url"){if(!Mre.test(e.data))n=this._getOrReturnCtx(e,n),G(n,{validation:"base64url",code:R.invalid_string,message:o.message}),r.dirty()}else Ce.assertNever(o);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement((n)=>e.test(n),{validation:t,code:R.invalid_string,...V.errToObj(r)})}_addCheck(e){return new Bn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...V.errToObj(e)})}url(e){return this._addCheck({kind:"url",...V.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...V.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...V.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...V.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...V.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...V.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...V.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...V.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...V.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...V.errToObj(e)})}datetime(e){if(typeof e==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e});return this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...V.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){if(typeof e==="string")return this._addCheck({kind:"time",precision:null,message:e});return this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...V.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...V.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e)=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find((e)=>e.kind==="date")}get isTime(){return!!this._def.checks.find((e)=>e.kind==="time")}get isDuration(){return!!this._def.checks.find((e)=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find((e)=>e.kind==="email")}get isURL(){return!!this._def.checks.find((e)=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find((e)=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find((e)=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((e)=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((e)=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((e)=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find((e)=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find((e)=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find((e)=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find((e)=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find((e)=>e.kind==="base64url")}get minLength(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxLength(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}Bn.create=(e)=>new Bn({checks:[],typeName:te.ZodString,coerce:e?.coerce??!1,...Ae(e)});function Yre(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}class Ai extends ge{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce)e.data=Number(e.data);if(this._getType(e)!==F.number){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_type,expected:F.number,received:o.parsedType}),K}let r=void 0,n=new Ht;for(let o of this._def.checks)if(o.kind==="int"){if(!Ce.isInteger(e.data))r=this._getOrReturnCtx(e,r),G(r,{code:R.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()}else if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(Yre(e.data,o.value)!==0)r=this._getOrReturnCtx(e,r),G(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else if(o.kind==="finite"){if(!Number.isFinite(e.data))r=this._getOrReturnCtx(e,r),G(r,{code:R.not_finite,message:o.message}),n.dirty()}else Ce.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,r,n){return new Ai({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:V.toString(n)}]})}_addCheck(e){return new Ai({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:V.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:V.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}get isInt(){return!!this._def.checks.find((e)=>e.kind==="int"||e.kind==="multipleOf"&&Ce.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;else if(r.kind==="min"){if(t===null||r.value>t)t=r.value}else if(r.kind==="max"){if(e===null||r.value<e)e=r.value}return Number.isFinite(t)&&Number.isFinite(e)}}Ai.create=(e)=>new Ai({checks:[],typeName:te.ZodNumber,coerce:e?.coerce||!1,...Ae(e)});class di extends ge{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==F.bigint)return this._getInvalidInput(e);let r=void 0,n=new Ht;for(let o of this._def.checks)if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),G(r,{code:R.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0))r=this._getOrReturnCtx(e,r),G(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else Ce.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return G(t,{code:R.invalid_type,expected:F.bigint,received:t.parsedType}),K}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,r,n){return new di({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:V.toString(n)}]})}_addCheck(e){return new di({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}di.create=(e)=>new di({checks:[],typeName:te.ZodBigInt,coerce:e?.coerce??!1,...Ae(e)});class cc extends ge{_parse(e){if(this._def.coerce)e.data=Boolean(e.data);if(this._getType(e)!==F.boolean){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.boolean,received:r.parsedType}),K}return Wt(e.data)}}cc.create=(e)=>new cc({typeName:te.ZodBoolean,coerce:e?.coerce||!1,...Ae(e)});class gs extends ge{_parse(e){if(this._def.coerce)e.data=new Date(e.data);if(this._getType(e)!==F.date){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_type,expected:F.date,received:o.parsedType}),K}if(Number.isNaN(e.data.getTime())){let o=this._getOrReturnCtx(e);return G(o,{code:R.invalid_date}),K}let r=new Ht,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.getTime()<o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()}else if(o.kind==="max"){if(e.data.getTime()>o.value)n=this._getOrReturnCtx(e,n),G(n,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()}else Ce.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new gs({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:V.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e!=null?new Date(e):null}}gs.create=(e)=>new gs({checks:[],coerce:e?.coerce||!1,typeName:te.ZodDate,...Ae(e)});class IA extends ge{_parse(e){if(this._getType(e)!==F.symbol){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.symbol,received:r.parsedType}),K}return Wt(e.data)}}IA.create=(e)=>new IA({typeName:te.ZodSymbol,...Ae(e)});class uc extends ge{_parse(e){if(this._getType(e)!==F.undefined){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.undefined,received:r.parsedType}),K}return Wt(e.data)}}uc.create=(e)=>new uc({typeName:te.ZodUndefined,...Ae(e)});class lc extends ge{_parse(e){if(this._getType(e)!==F.null){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.null,received:r.parsedType}),K}return Wt(e.data)}}lc.create=(e)=>new lc({typeName:te.ZodNull,...Ae(e)});class hs extends ge{constructor(){super(...arguments);this._any=!0}_parse(e){return Wt(e.data)}}hs.create=(e)=>new hs({typeName:te.ZodAny,...Ae(e)});class li extends ge{constructor(){super(...arguments);this._unknown=!0}_parse(e){return Wt(e.data)}}li.create=(e)=>new li({typeName:te.ZodUnknown,...Ae(e)});class Hn extends ge{_parse(e){let t=this._getOrReturnCtx(e);return G(t,{code:R.invalid_type,expected:F.never,received:t.parsedType}),K}}Hn.create=(e)=>new Hn({typeName:te.ZodNever,...Ae(e)});class yA extends ge{_parse(e){if(this._getType(e)!==F.undefined){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.void,received:r.parsedType}),K}return Wt(e.data)}}yA.create=(e)=>new yA({typeName:te.ZodVoid,...Ae(e)});class bn extends ge{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==F.array)return G(t,{code:R.invalid_type,expected:F.array,received:t.parsedType}),K;if(n.exactLength!==null){let i=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;if(i||s)G(t,{code:i?R.too_big:R.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty()}if(n.minLength!==null){if(t.data.length<n.minLength.value)G(t,{code:R.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()}if(n.maxLength!==null){if(t.data.length>n.maxLength.value)G(t,{code:R.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()}if(t.common.async)return Promise.all([...t.data].map((i,s)=>n.type._parseAsync(new _n(t,i,t.path,s)))).then((i)=>Ht.mergeArray(r,i));let o=[...t.data].map((i,s)=>n.type._parseSync(new _n(t,i,t.path,s)));return Ht.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new bn({...this._def,minLength:{value:e,message:V.toString(t)}})}max(e,t){return new bn({...this._def,maxLength:{value:e,message:V.toString(t)}})}length(e,t){return new bn({...this._def,exactLength:{value:e,message:V.toString(t)}})}nonempty(e){return this.min(1,e)}}bn.create=(e,t)=>new bn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...Ae(t)});function sc(e){if(e instanceof st){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=xn.create(sc(n))}return new st({...e._def,shape:()=>t})}else if(e instanceof bn)return new bn({...e._def,type:sc(e.element)});else if(e instanceof xn)return xn.create(sc(e.unwrap()));else if(e instanceof Io)return Io.create(sc(e.unwrap()));else if(e instanceof Gn)return Gn.create(e.items.map((t)=>sc(t)));else return e}class st extends ge{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=Ce.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==F.object){let c=this._getOrReturnCtx(e);return G(c,{code:R.invalid_type,expected:F.object,received:c.parsedType}),K}let{status:r,ctx:n}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Hn&&this._def.unknownKeys==="strip")){for(let c in n.data)if(!i.includes(c))s.push(c)}let a=[];for(let c of i){let u=o[c],A=n.data[c];a.push({key:{status:"valid",value:c},value:u._parse(new _n(n,A,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Hn){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of s)a.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict"){if(s.length>0)G(n,{code:R.unrecognized_keys,keys:s}),r.dirty()}else if(c==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of s){let A=n.data[u];a.push({key:{status:"valid",value:u},value:c._parse(new _n(n,A,n.path,u)),alwaysSet:u in n.data})}}if(n.common.async)return Promise.resolve().then(async()=>{let c=[];for(let u of a){let A=await u.key,p=await u.value;c.push({key:A,value:p,alwaysSet:u.alwaysSet})}return c}).then((c)=>Ht.mergeObjectSync(r,c));else return Ht.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(e){return V.errToObj,new st({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;if(t.code==="unrecognized_keys")return{message:V.errToObj(e).message??n};return{message:n}}}:{}})}strip(){return new st({...this._def,unknownKeys:"strip"})}passthrough(){return new st({...this._def,unknownKeys:"passthrough"})}extend(e){return new st({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new st({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new st({...this._def,catchall:e})}pick(e){let t={};for(let r of Ce.objectKeys(e))if(e[r]&&this.shape[r])t[r]=this.shape[r];return new st({...this._def,shape:()=>t})}omit(e){let t={};for(let r of Ce.objectKeys(this.shape))if(!e[r])t[r]=this.shape[r];return new st({...this._def,shape:()=>t})}deepPartial(){return sc(this)}partial(e){let t={};for(let r of Ce.objectKeys(this.shape)){let n=this.shape[r];if(e&&!e[r])t[r]=n;else t[r]=n.optional()}return new st({...this._def,shape:()=>t})}required(e){let t={};for(let r of Ce.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let o=this.shape[r];while(o instanceof xn)o=o._def.innerType;t[r]=o}return new st({...this._def,shape:()=>t})}keyof(){return _P(Ce.objectKeys(this.shape))}}st.create=(e,t)=>new st({shape:()=>e,unknownKeys:"strip",catchall:Hn.create(),typeName:te.ZodObject,...Ae(t)});st.strictCreate=(e,t)=>new st({shape:()=>e,unknownKeys:"strict",catchall:Hn.create(),typeName:te.ZodObject,...Ae(t)});st.lazycreate=(e,t)=>new st({shape:e,unknownKeys:"strip",catchall:Hn.create(),typeName:te.ZodObject,...Ae(t)});class Ac extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map((s)=>new fr(s.ctx.common.issues));return G(t,{code:R.invalid_union,unionErrors:i}),K}if(t.common.async)return Promise.all(r.map(async(o)=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);else{let o=void 0,i=[];for(let a of r){let c={...t,common:{...t.common,issues:[]},parent:null},u=a._parseSync({data:t.data,path:t.path,parent:c});if(u.status==="valid")return u;else if(u.status==="dirty"&&!o)o={result:u,ctx:c};if(c.common.issues.length)i.push(c.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map((a)=>new fr(a));return G(t,{code:R.invalid_union,unionErrors:s}),K}}get options(){return this._def.options}}Ac.create=(e,t)=>new Ac({options:e,typeName:te.ZodUnion,...Ae(t)});var Co=(e)=>{if(e instanceof pc)return Co(e.schema);else if(e instanceof vn)return Co(e.innerType());else if(e instanceof fc)return[e.value];else if(e instanceof pi)return e.options;else if(e instanceof gc)return Ce.objectValues(e.enum);else if(e instanceof hc)return Co(e._def.innerType);else if(e instanceof uc)return[void 0];else if(e instanceof lc)return[null];else if(e instanceof xn)return[void 0,...Co(e.unwrap())];else if(e instanceof Io)return[null,...Co(e.unwrap())];else if(e instanceof kg)return Co(e.unwrap());else if(e instanceof Ec)return Co(e.unwrap());else if(e instanceof mc)return Co(e._def.innerType);else return[]};class Sg extends ge{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==F.object)return G(t,{code:R.invalid_type,expected:F.object,received:t.parsedType}),K;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);if(!o)return G(t,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),K;if(t.common.async)return o._parseAsync({data:t.data,path:t.path,parent:t});else return o._parseSync({data:t.data,path:t.path,parent:t})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let o of t){let i=Co(o.shape[e]);if(!i.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of i){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,o)}}return new Sg({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...Ae(r)})}}function RB(e,t){let r=$n(e),n=$n(t);if(e===t)return{valid:!0,data:e};else if(r===F.object&&n===F.object){let o=Ce.objectKeys(t),i=Ce.objectKeys(e).filter((a)=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let c=RB(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===F.array&&n===F.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],c=RB(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else if(r===F.date&&n===F.date&&+e===+t)return{valid:!0,data:e};else return{valid:!1}}class dc extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(o,i)=>{if(Qg(o)||Qg(i))return K;let s=RB(o.value,i.value);if(!s.valid)return G(r,{code:R.invalid_intersection_types}),K;if(wg(o)||wg(i))t.dirty();return{status:t.value,value:s.data}};if(r.common.async)return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>n(o,i));else return n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}dc.create=(e,t,r)=>new dc({left:e,right:t,typeName:te.ZodIntersection,...Ae(r)});class Gn extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.array)return G(r,{code:R.invalid_type,expected:F.array,received:r.parsedType}),K;if(r.data.length<this._def.items.length)return G(r,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),K;if(!this._def.rest&&r.data.length>this._def.items.length)G(r,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty();let o=[...r.data].map((i,s)=>{let a=this._def.items[s]||this._def.rest;if(!a)return null;return a._parse(new _n(r,i,r.path,s))}).filter((i)=>!!i);if(r.common.async)return Promise.all(o).then((i)=>Ht.mergeArray(t,i));else return Ht.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new Gn({...this._def,rest:e})}}Gn.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Gn({items:e,typeName:te.ZodTuple,rest:null,...Ae(t)})};class BA extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.object)return G(r,{code:R.invalid_type,expected:F.object,received:r.parsedType}),K;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in r.data)n.push({key:o._parse(new _n(r,s,r.path,s)),value:i._parse(new _n(r,r.data[s],r.path,s)),alwaysSet:s in r.data});if(r.common.async)return Ht.mergeObjectAsync(t,n);else return Ht.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){if(t instanceof ge)return new BA({keyType:e,valueType:t,typeName:te.ZodRecord,...Ae(r)});return new BA({keyType:Bn.create(),valueType:e,typeName:te.ZodRecord,...Ae(t)})}}class bA extends ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.map)return G(r,{code:R.invalid_type,expected:F.map,received:r.parsedType}),K;let n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([s,a],c)=>({key:n._parse(new _n(r,s,r.path,[c,"key"])),value:o._parse(new _n(r,a,r.path,[c,"value"]))}));if(r.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let a of i){let c=await a.key,u=await a.value;if(c.status==="aborted"||u.status==="aborted")return K;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}})}else{let s=new Map;for(let a of i){let{key:c,value:u}=a;if(c.status==="aborted"||u.status==="aborted")return K;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}}}}bA.create=(e,t,r)=>new bA({valueType:t,keyType:e,typeName:te.ZodMap,...Ae(r)});class ms extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.set)return G(r,{code:R.invalid_type,expected:F.set,received:r.parsedType}),K;let n=this._def;if(n.minSize!==null){if(r.data.size<n.minSize.value)G(r,{code:R.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()}if(n.maxSize!==null){if(r.data.size>n.maxSize.value)G(r,{code:R.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty()}let o=this._def.valueType;function i(a){let c=new Set;for(let u of a){if(u.status==="aborted")return K;if(u.status==="dirty")t.dirty();c.add(u.value)}return{status:t.value,value:c}}let s=[...r.data.values()].map((a,c)=>o._parse(new _n(r,a,r.path,c)));if(r.common.async)return Promise.all(s).then((a)=>i(a));else return i(s)}min(e,t){return new ms({...this._def,minSize:{value:e,message:V.toString(t)}})}max(e,t){return new ms({...this._def,maxSize:{value:e,message:V.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ms.create=(e,t)=>new ms({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...Ae(t)});class ac extends ge{constructor(){super(...arguments);this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==F.function)return G(t,{code:R.invalid_type,expected:F.function,received:t.parsedType}),K;function r(s,a){return CA({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,oc(),Eo].filter((c)=>!!c),issueData:{code:R.invalid_arguments,argumentsError:a}})}function n(s,a){return CA({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,oc(),Eo].filter((c)=>!!c),issueData:{code:R.invalid_return_type,returnTypeError:a}})}let o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Es){let s=this;return Wt(async function(...a){let c=new fr([]),u=await s._def.args.parseAsync(a,o).catch((d)=>{throw c.addIssue(r(a,d)),c}),A=await Reflect.apply(i,this,u);return await s._def.returns._def.type.parseAsync(A,o).catch((d)=>{throw c.addIssue(n(A,d)),c})})}else{let s=this;return Wt(function(...a){let c=s._def.args.safeParse(a,o);if(!c.success)throw new fr([r(a,c.error)]);let u=Reflect.apply(i,this,c.data),A=s._def.returns.safeParse(u,o);if(!A.success)throw new fr([n(u,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ac({...this._def,args:Gn.create(e).rest(li.create())})}returns(e){return new ac({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ac({args:e?e:Gn.create([]).rest(li.create()),returns:t||li.create(),typeName:te.ZodFunction,...Ae(r)})}}class pc extends ge{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}pc.create=(e,t)=>new pc({getter:e,typeName:te.ZodLazy,...Ae(t)});class fc extends ge{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:R.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}}fc.create=(e,t)=>new fc({value:e,typeName:te.ZodLiteral,...Ae(t)});function _P(e,t){return new pi({values:e,typeName:te.ZodEnum,...Ae(t)})}class pi extends ge{_parse(e){if(typeof e.data!=="string"){let t=this._getOrReturnCtx(e),r=this._def.values;return G(t,{expected:Ce.joinValues(r),received:t.parsedType,code:R.invalid_type}),K}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return G(t,{received:t.data,code:R.invalid_enum_value,options:r}),K}return Wt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return pi.create(e,{...this._def,...t})}exclude(e,t=this._def){return pi.create(this.options.filter((r)=>!e.includes(r)),{...this._def,...t})}}pi.create=_P;class gc extends ge{_parse(e){let t=Ce.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==F.string&&r.parsedType!==F.number){let n=Ce.objectValues(t);return G(r,{expected:Ce.joinValues(n),received:r.parsedType,code:R.invalid_type}),K}if(!this._cache)this._cache=new Set(Ce.getValidEnumValues(this._def.values));if(!this._cache.has(e.data)){let n=Ce.objectValues(t);return G(r,{received:r.data,code:R.invalid_enum_value,options:n}),K}return Wt(e.data)}get enum(){return this._def.values}}gc.create=(e,t)=>new gc({values:e,typeName:te.ZodNativeEnum,...Ae(t)});class Es extends ge{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==F.promise&&t.common.async===!1)return G(t,{code:R.invalid_type,expected:F.promise,received:t.parsedType}),K;let r=t.parsedType===F.promise?t.data:Promise.resolve(t.data);return Wt(r.then((n)=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Es.create=(e,t)=>new Es({type:e,typeName:te.ZodPromise,...Ae(t)});class vn extends ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:(i)=>{if(G(r,i),i.fatal)t.abort();else t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async(s)=>{if(t.value==="aborted")return K;let a=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});if(a.status==="aborted")return K;if(a.status==="dirty")return fs(a.value);if(t.value==="dirty")return fs(a.value);return a});else{if(t.value==="aborted")return K;let s=this._def.schema._parseSync({data:i,path:r.path,parent:r});if(s.status==="aborted")return K;if(s.status==="dirty")return fs(s.value);if(t.value==="dirty")return fs(s.value);return s}}if(n.type==="refinement"){let i=(s)=>{let a=n.refinement(s,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(s.status==="aborted")return K;if(s.status==="dirty")t.dirty();return i(s.value),{status:t.value,value:s.value}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((s)=>{if(s.status==="aborted")return K;if(s.status==="dirty")t.dirty();return i(s.value).then(()=>({status:t.value,value:s.value}))})}if(n.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ui(i))return K;let s=n.transform(i.value,o);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((i)=>{if(!ui(i))return K;return Promise.resolve(n.transform(i.value,o)).then((s)=>({status:t.value,value:s}))});Ce.assertNever(n)}}vn.create=(e,t,r)=>new vn({schema:e,typeName:te.ZodEffects,effect:t,...Ae(r)});vn.createWithPreprocess=(e,t,r)=>new vn({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...Ae(r)});class xn extends ge{_parse(e){if(this._getType(e)===F.undefined)return Wt(void 0);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}xn.create=(e,t)=>new xn({innerType:e,typeName:te.ZodOptional,...Ae(t)});class Io extends ge{_parse(e){if(this._getType(e)===F.null)return Wt(null);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Io.create=(e,t)=>new Io({innerType:e,typeName:te.ZodNullable,...Ae(t)});class hc extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;if(t.parsedType===F.undefined)r=this._def.defaultValue();return this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}hc.create=(e,t)=>new hc({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default==="function"?t.default:()=>t.default,...Ae(t)});class mc extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});if(ic(n))return n.then((o)=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})}));else return{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new fr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}mc.create=(e,t)=>new mc({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:()=>t.catch,...Ae(t)});class xA extends ge{_parse(e){if(this._getType(e)!==F.nan){let r=this._getOrReturnCtx(e);return G(r,{code:R.invalid_type,expected:F.nan,received:r.parsedType}),K}return{status:"valid",value:e.data}}}xA.create=(e)=>new xA({typeName:te.ZodNaN,...Ae(e)});var jre=Symbol("zod_brand");class kg extends ge{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class _A extends ge{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});if(o.status==="aborted")return K;if(o.status==="dirty")return t.dirty(),fs(o.value);else return this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();else{let n=this._def.in._parseSync({data:r.data,path:r.path,parent:r});if(n.status==="aborted")return K;if(n.status==="dirty")return t.dirty(),{status:"dirty",value:n.value};else return this._def.out._parseSync({data:n.value,path:r.path,parent:r})}}static create(e,t){return new _A({in:e,out:t,typeName:te.ZodPipeline})}}class Ec extends ge{_parse(e){let t=this._def.innerType._parse(e),r=(n)=>{if(ui(n))n.value=Object.freeze(n.value);return n};return ic(t)?t.then((n)=>r(n)):r(t)}unwrap(){return this._def.innerType}}Ec.create=(e,t)=>new Ec({innerType:e,typeName:te.ZodReadonly,...Ae(t)});function yP(e,t){let r=typeof e==="function"?e(t):typeof e==="string"?{message:e}:e;return typeof r==="string"?{message:r}:r}function vP(e,t={},r){if(e)return hs.create().superRefine((n,o)=>{let i=e(n);if(i instanceof Promise)return i.then((s)=>{if(!s){let a=yP(t,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=yP(t,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}return});return hs.create()}var Vre={object:st.lazycreate},te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(te||(te={}));var Jre=(e,t={message:`Input not instance of ${e.name}`})=>vP((r)=>r instanceof e,t),QP=Bn.create,wP=Ai.create,qre=xA.create,Wre=di.create,SP=cc.create,Zre=gs.create,Kre=IA.create,Xre=uc.create,ene=lc.create,tne=hs.create,rne=li.create,nne=Hn.create,one=yA.create,ine=bn.create,sne=st.create,ane=st.strictCreate,cne=Ac.create,une=Sg.create,lne=dc.create,Ane=Gn.create,dne=BA.create,pne=bA.create,fne=ms.create,gne=ac.create,hne=pc.create,mne=fc.create,Ene=pi.create,Cne=gc.create,Ine=Es.create,yne=vn.create,Bne=xn.create,bne=Io.create,xne=vn.createWithPreprocess,_ne=_A.create,vne=()=>QP().optional(),Qne=()=>wP().optional(),wne=()=>SP().optional(),Sne={string:(e)=>Bn.create({...e,coerce:!0}),number:(e)=>Ai.create({...e,coerce:!0}),boolean:(e)=>cc.create({...e,coerce:!0}),bigint:(e)=>di.create({...e,coerce:!0}),date:(e)=>gs.create({...e,coerce:!0})};var kne=K;ur();function Cs(e){let t;return()=>t??=e()}function Dne(e){let t=e?.trim();return t?t:void 0}function vA(e){return e===void 0?void 0:String(e)}var Rne=Cs(()=>Nr.preprocess(vA,Nr.string().optional().transform(Dne))),Tne=Cs(()=>Nr.preprocess(vA,Nr.string().optional().transform((e)=>fe(e)))),Nne=Cs(()=>Nr.preprocess(vA,Nr.string().optional().transform((e)=>{if(fe(e))return!0;if(ya(e))return!1;return}))),Lne=Cs(()=>DP());function kP(e){if(typeof e==="boolean")return e?"1":"0";return String(e)}var l={str:()=>Rne(),bool:()=>Tne(),triBool:()=>Nne(),int:(e)=>e?DP(e):Lne(),enum:(e)=>Nr.preprocess(vA,Nr.string().optional().transform((t)=>t!==void 0&&e.includes(t.trim())?t.trim():void 0))};function DP(e){return Nr.preprocess(vA,Nr.string().optional().transform((t)=>{if(t===void 0)return;let r=parseInt(t.trim(),10);if(Number.isNaN(r))return;if(e?.min!==void 0&&r<e.min)return;if(e?.max!==void 0&&r>e.max)return;return r}))}var Une=l.str(),One=l.str(),Fne=l.str(),Mne=l.str(),Pne=l.str(),$ne=l.str(),Hne=l.str(),Gne=l.str(),zne=l.str(),Yne=l.str(),jne=l.str(),Vne=l.str(),Jne=l.str(),qne=l.str(),Wne=l.str(),Zne=l.str(),Kne=l.str(),Xne=l.str(),eoe=l.str(),toe=l.str(),roe=l.str(),noe=l.bool(),ooe=l.str(),ioe=l.str(),soe=l.str(),aoe=l.str(),coe=l.bool(),uoe=l.bool(),loe=l.str(),Aoe=l.str(),doe=l.str(),poe=l.int({min:0}),foe=l.int({min:0}),goe=l.int(),hoe=l.bool(),moe=l.int(),Eoe=l.bool(),Coe=l.bool(),Ioe=l.bool(),yoe=l.bool(),Boe=l.bool(),boe=l.str(),xoe=l.str(),_oe=l.str(),voe=l.str(),Qoe=l.str(),woe=l.str(),Soe=l.str(),koe=l.str(),Doe=l.str();var NB={};ft(NB,{OTEL_TRACES_EXPORT_INTERVAL:()=>Bie,OTEL_TRACES_EXPORTER:()=>uie,OTEL_RESOURCE_ATTRIBUTES:()=>bie,OTEL_METRIC_EXPORT_INTERVAL:()=>Iie,OTEL_METRICS_EXPORTER:()=>aie,OTEL_LOG_USER_PROMPTS:()=>xie,OTEL_LOG_TOOL_DETAILS:()=>Qie,OTEL_LOG_TOOL_CONTENT:()=>vie,OTEL_LOG_RAW_API_BODIES:()=>wie,OTEL_LOG_ASSISTANT_RESPONSES:()=>_ie,OTEL_LOGS_EXPORT_INTERVAL:()=>yie,OTEL_LOGS_EXPORTER:()=>cie,OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:()=>Cie,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:()=>Eie,OTEL_EXPORTER_OTLP_PROTOCOL:()=>die,OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:()=>mie,OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:()=>hie,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:()=>gie,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:()=>fie,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:()=>pie,OTEL_EXPORTER_OTLP_HEADERS:()=>Aie,OTEL_EXPORTER_OTLP_ENDPOINT:()=>lie,DEBUG_SDK:()=>Foe,DEBUG_CLAUDE_AGENT_SDK:()=>Ooe,CLAUDE_PTY_RECORD:()=>Joe,CLAUDE_DEBUG:()=>Roe,CLAUDE_CODE_TERMINAL_RECORDING:()=>qoe,CLAUDE_CODE_TEE_SDK_STDOUT:()=>Woe,CLAUDE_CODE_SESSION_LOG:()=>joe,CLAUDE_CODE_PROFILE_STARTUP:()=>Moe,CLAUDE_CODE_PROFILE_QUERY:()=>Poe,CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_S:()=>Hoe,CLAUDE_CODE_PERFETTO_TRACE:()=>$oe,CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS:()=>tie,CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS:()=>rie,CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS:()=>eie,CLAUDE_CODE_OTEL_DIAG_STDERR:()=>sie,CLAUDE_CODE_JSONL_TRANSCRIPT:()=>Voe,CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY:()=>zoe,CLAUDE_CODE_FRAME_TIMING_LOG:()=>Goe,CLAUDE_CODE_ENHANCED_TELEMETRY_BETA:()=>Xoe,CLAUDE_CODE_ENABLE_TELEMETRY:()=>Koe,CLAUDE_CODE_DIAGNOSTICS_FILE:()=>Uoe,CLAUDE_CODE_DEBUG_REPAINTS:()=>Loe,CLAUDE_CODE_DEBUG_LOG_LEVEL:()=>Toe,CLAUDE_CODE_DEBUG_LOGS_DIR:()=>Noe,CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS:()=>oie,CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS:()=>nie,CLAUDE_CODE_COMMIT_LOG:()=>Yoe,CLAUDE_CODE_BYOC_ENABLE_DATADOG:()=>iie,CLAUDE_CODE_BENCH_LIVE_COUNTS:()=>Zoe,BETA_TRACING_ENDPOINT:()=>Oie,ANT_OTEL_TRACES_EXPORTER:()=>Nie,ANT_OTEL_RESOURCE_ATTRIBUTES:()=>Lie,ANT_OTEL_METRICS_EXPORTER:()=>Tie,ANT_OTEL_LOGS_EXPORTER:()=>Rie,ANT_OTEL_EXPORTER_OTLP_PROTOCOL:()=>Die,ANT_OTEL_EXPORTER_OTLP_HEADERS:()=>kie,ANT_OTEL_EXPORTER_OTLP_ENDPOINT:()=>Sie,ANT_CLAUDE_CODE_METRICS_ENDPOINT:()=>Uie});var Roe=l.bool(),Toe=l.str(),Noe=l.str(),Loe=l.bool(),Uoe=l.str(),Ooe=l.bool(),Foe=l.bool(),Moe=l.bool(),Poe=l.bool(),$oe=l.str(),Hoe=l.int(),Goe=l.str(),zoe=l.int(),Yoe=l.str(),joe=l.str(),Voe=l.str(),Joe=l.str(),qoe=l.str(),Woe=l.bool(),Zoe=l.bool(),Koe=l.bool(),Xoe=l.bool(),eie=l.int(),tie=l.int(),rie=l.int(),nie=l.int(),oie=l.int(),iie=l.bool(),sie=l.bool(),aie=l.str(),cie=l.str(),uie=l.str(),lie=l.str(),Aie=l.str(),die=l.str(),pie=l.str(),fie=l.str(),gie=l.str(),hie=l.str(),mie=l.str(),Eie=l.str(),Cie=l.str(),Iie=l.int(),yie=l.int(),Bie=l.int(),bie=l.str(),xie=l.bool(),_ie=l.triBool(),vie=l.bool(),Qie=l.bool(),wie=l.bool(),Sie=l.str(),kie=l.str(),Die=l.str(),Rie=l.str(),Tie=l.str(),Nie=l.str(),Lie=l.str(),Uie=l.str(),Oie=l.str();cr();import{constants as qie}from"fs";import{access as Wie,readdir as Zie,readFile as x9e,readlink as Kie}from"fs/promises";import{homedir as Xie}from"os";import{delimiter as ese,join as wA}from"path";ur();function Fie(){return"prod"}function RP(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(Fie()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}var Mie="user:inference",TP="user:profile",Pie="org:create_api_key";var $ie=[Pie,TP],Hie=[TP,Mie,"user:sessions:claude_code","user:mcp_servers","user:file_upload",...[]],qZe=nc([...$ie,...Hie]),Gie=["user:design:read","user:design:write"],WZe=[...Gie,"user:projects:read","user:projects:write"];function NP(){return process.versions.bun!==void 0}ur();qt();cr();tt();qt();lA();import{readdir as n9e,readFile as zie}from"fs/promises";import{release as LP}from"os";cr();qt();var LB=ie(()=>{try{return we().readFileSync("/proc/version",{encoding:"utf8"}).toLowerCase()}catch{return}});var UP;var QA=ie(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){if(process.env.WSL_DISTRO_NAME||process.env.WSL_INTEROP)return"wsl";let e=UP??LB();if(e!==void 0&&(e.includes("microsoft")||e.includes("wsl")))return"wsl";return"linux"}return"unknown"}catch(e){return ii(e),"unknown"}});var l9e=ie(()=>{if(process.platform!=="linux")return;let e=UP??LB();if(e===void 0)return;let t=e.match(/wsl(\d+)/);if(t&&t[1])return t[1];if(e.includes("microsoft"))return"1";return}),A9e=ie(async()=>{if(process.platform!=="linux")return;let e={linuxKernel:LP()};try{let t=await zie("/etc/os-release","utf8");for(let r of t.split(`
130
130
  `)){let n=r.match(/^(ID|VERSION_ID)=(.*)$/);if(n&&n[1]&&n[2]){let o=n[2].replace(/^"|"$/g,"");if(n[1]==="ID")e.linuxDistroId=o;else e.linuxDistroVersion=o}}}catch{}return e});var d9e=ie(()=>{if(process.platform!=="darwin")return;let t=LP().match(/^(\d+)\./);if(!t||!t[1])return;return parseInt(t[1],10)-9});function zn(e,t,r){return new Promise((n,o)=>{if(t?.aborted){if(r?.throwOnAbort||r?.abortError)o(r.abortError?.()??Error("aborted"));else n();return}let i=setTimeout((a,c,u)=>{a?.removeEventListener("abort",c),u()},e,t,s,n);function s(){if(clearTimeout(i),r?.throwOnAbort||r?.abortError)o(r.abortError?.()??Error("aborted"));else n()}if(t?.addEventListener("abort",s,{once:!0}),r?.unref)i.unref()})}function Yie(e,t){e(Error(t))}function OP(e,t,r){let n,o=new Promise((i,s)=>{n=setTimeout(Yie,t,s,r)});return Promise.race([e,o]).finally(()=>{if(n!==void 0)clearTimeout(n)})}BB();cr();qt();var FP=ie(()=>{if(process.platform!=="linux")return!1;return we().existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")}),MP=ie(()=>{if(process.platform!=="linux")return;try{return we().readFileSync("/sys/hypervisor/uuid",{encoding:"utf8"}).trim().toLowerCase()}catch{return}}),PP=ie(()=>{if(process.platform!=="linux")return!1;return we().existsSync("/.dockerenv")});var tse=ie(()=>{if(we().existsSync(wA(xa(),".config.json")))return wA(xa(),".config.json");let e=`.claude${RP()}.json`;return wA(process.env.CLAUDE_CONFIG_DIR||Xie(),e)}),rse=ie(async()=>{try{let{externalHttp:e}=await Promise.resolve().then(() => (zP(),GP));return await e.head("http://1.1.1.1",{signal:AbortSignal.timeout(1000)}),!0}catch{return!1}});async function nse(){return null}async function Ic(e){try{return!!await xM(e)}catch{return!1}}var ose=ie(async()=>{let e=[];if(await Ic("npm"))e.push("npm");if(await Ic("yarn"))e.push("yarn");if(await Ic("pnpm"))e.push("pnpm");return e}),ise=ie(async()=>{let e=[];if(await Ic("bun"))e.push("bun");if(await Ic("deno"))e.push("deno");if(await Ic("node"))e.push("node");return e}),YP=["git","node","npm","npx","yarn","pnpm","bun","deno","tsc","python","python3","py","pip","uv","poetry","ruby","gem","bundle","rake","dotnet","msbuild","nuget","cl","nmake","cmake","ninja","make","gcc","g++","clang","cargo","rustc","go","java","javac","mvn","gradle","docker"],sse=1000;async function ase(e){try{return/appinstaller/i.test(await Kie(e))}catch{return!1}}async function cse(e){let t=QA()==="windows",r=new Set(YP),n=t?(process.env.PATHEXT??".COM;.EXE;.BAT;.CMD").toLowerCase().split(";").filter(Boolean):[],o=nc((process.env.PATH??"").split(ese).map((i)=>i.replace(/^"|"$/g,"")).filter(Boolean));await Promise.all(o.map(async(i)=>{let s;try{s=await Zie(i,{withFileTypes:!0})}catch{return}let a=t&&/[\\/]microsoft[\\/]windowsapps[\\/]?$/i.test(i);for(let c of s){if(c.isDirectory())continue;let u=c.name;if(t){let A=u.toLowerCase(),p=A.lastIndexOf(".");if(p<=0||!n.includes(A.slice(p)))continue;u=A.slice(0,p)}if(!r.has(u)||e.has(u))continue;if(t){if(a&&await ase(wA(i,c.name)))continue}else try{await Wie(wA(i,c.name),qie.X_OK)}catch{continue}e.add(u)}}))}var O9e=ie(async()=>{let e=new Set;try{await OP(cse(e),sse,"build tool PATH scan timed out")}catch{}return YP.filter((t)=>e.has(t))}),jP=ie(()=>pse??(process.platform==="linux"?FP():!1)),use=ie(()=>{try{if(!jP())return!1;let e=mg("npm");if(e===null)return!1;return e.startsWith("/mnt/c/")}catch(e){return!1}});function lse(){return process.env.__CFBundleIdentifier==="com.conductor.app"}var VP=["pycharm","intellij","webstorm","phpstorm","rubymine","clion","goland","rider","datagrip","appcode","dataspell","aqua","gateway","fleet","jetbrains","androidstudio"];function Ase(e){let t=e.toLowerCase();return t.includes("windsurf")||t.includes("devin.app")||t.includes("devin desktop")||t.includes("devin-desktop")||/appdata[\\/]local[\\/](programs[\\/])?devin[\\/]/.test(t)}function dse(){if(process.env.CURSOR_TRACE_ID)return"cursor";let e=process.env.VSCODE_GIT_ASKPASS_MAIN?.toLowerCase()??"";if(e.includes("cursor"))return"cursor";if(Ase(e))return"windsurf";if(e.includes("antigravity"))return"antigravity";let t=process.env.__CFBundleIdentifier?.toLowerCase();if(t?.includes("vscodium"))return"codium";if(t?.includes("windsurf")||t?.includes("devin"))return"windsurf";if(t?.includes("com.google.android.studio"))return"androidstudio";if(t){for(let r of VP)if(t.includes(r))return r}if(process.env.VisualStudioVersion)return"visualstudio";if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(process.platform==="darwin")return"pycharm";return"pycharm"}if(process.env.TERM==="xterm-ghostty")return"ghostty";if(process.env.TERM?.includes("kitty"))return"kitty";if(process.env.TERM_PROGRAM){if(/^devin([ -]desktop)?$/i.test(process.env.TERM_PROGRAM))return"windsurf";return process.env.TERM_PROGRAM}if(process.env.TMUX)return"tmux";if(process.env.STY)return"screen";if(process.env.KONSOLE_VERSION)return"konsole";if(process.env.GNOME_TERMINAL_SERVICE)return"gnome-terminal";if(process.env.XTERM_VERSION)return"xterm";if(process.env.VTE_VERSION)return"vte-based";if(process.env.TERMINATOR_UUID)return"terminator";if(process.env.KITTY_WINDOW_ID)return"kitty";if(process.env.ALACRITTY_LOG)return"alacritty";if(process.env.TILIX_ID)return"tilix";if(process.env.WT_SESSION)return"windows-terminal";if(process.env.SESSIONNAME&&process.env.TERM==="cygwin")return"cygwin";if(process.env.MSYSTEM)return process.env.MSYSTEM.toLowerCase();if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return"conemu";if(process.env.WSL_DISTRO_NAME)return`wsl-${process.env.WSL_DISTRO_NAME}`;if(qP())return"ssh-session";if(process.env.TERM){let r=process.env.TERM;if(r.includes("alacritty"))return"alacritty";if(r.includes("rxvt"))return"rxvt";if(r.includes("termite"))return"termite";return process.env.TERM}if(!process.stdout.isTTY)return"non-interactive";return null}var pse,fse,gse;var JP=ie(()=>{if(fe(process.env.CODESPACES))return"codespaces";if(process.env.GITPOD_WORKSPACE_ID)return"gitpod";if(fe(process.env.CODER)||process.env.CODER_WORKSPACE_NAME)return"coder";if(fe(process.env.DEVPOD)||process.env.DEVPOD_WORKSPACE_UID)return"devpod";if(process.env.DAYTONA_WS_ID)return"daytona";if(fe(process.env.GOOGLE_CLOUD_WORKSTATIONS))return"gcp-cloud-workstations";if(process.env.C9_PID||process.env.C9_USER)return"aws-cloud9";if(process.env.REPL_ID||process.env.REPL_SLUG)return"replit";if(process.env.PROJECT_DOMAIN)return"glitch";if(fe(process.env.VERCEL))return"vercel";if(process.env.RAILWAY_ENVIRONMENT_NAME||process.env.RAILWAY_SERVICE_NAME)return"railway";if(fe(process.env.RENDER))return"render";if(fe(process.env.NETLIFY))return"netlify";if(process.env.DYNO)return"heroku";if(process.env.FLY_APP_NAME||process.env.FLY_MACHINE_ID)return"fly.io";if(fe(process.env.CF_PAGES))return"cloudflare-pages";if(process.env.DENO_DEPLOYMENT_ID)return"deno-deploy";if(process.env.AWS_LAMBDA_FUNCTION_NAME)return"aws-lambda";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_FARGATE")return"aws-fargate";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_EC2")return"aws-ecs";if((fse??MP())?.startsWith("ec2"))return"aws-ec2";if(process.env.K_SERVICE)return"gcp-cloud-run";if(process.env.GOOGLE_CLOUD_PROJECT)return"gcp";if(process.env.WEBSITE_SITE_NAME||process.env.WEBSITE_SKU)return"azure-app-service";if(process.env.AZURE_FUNCTIONS_ENVIRONMENT)return"azure-functions";if(process.env.APP_URL?.includes("ondigitalocean.app"))return"digitalocean-app-platform";if(process.env.SPACE_CREATOR_USER_ID)return"huggingface-spaces";if(fe(process.env.GITHUB_ACTIONS))return"github-actions";if(fe(process.env.GITLAB_CI))return"gitlab-ci";if(process.env.CIRCLECI)return"circleci";if(process.env.BUILDKITE)return"buildkite";if(fe(process.env.CI))return"ci";if(process.env.KUBERNETES_SERVICE_HOST)return"kubernetes";if(gse??PP())return"docker";if(SA.platform==="darwin")return"unknown-darwin";if(SA.platform==="linux")return"unknown-linux";if(SA.platform==="win32")return"unknown-win32";return"unknown"});function qP(){return!!(process.env.SSH_CONNECTION||process.env.SSH_CLIENT||process.env.SSH_TTY)}var SA={hasInternetAccess:rse,probeInternalNetworkAccess:nse,isCI:fe(process.env.CI),platform:["win32","darwin"].includes(process.platform)?process.platform:"linux",arch:process.arch,nodeVersion:process.version,terminal:dse(),isSSH:qP,getPackageManagers:ose,getRuntimes:ise,isRunningWithBun:ie(NP),isWslEnvironment:jP,isNpmFromWindowsPath:use,isConductor:lse,detectDeploymentEnvironment:JP};var UB={};ft(UB,{USE_API_CONTEXT_MANAGEMENT:()=>uue,USE_API_CLEAR_TOOL_USES:()=>cue,USE_API_CLEAR_TOOL_RESULTS:()=>aue,FORCE_VCR:()=>iue,FORCE_PROMPT_CACHING_5M:()=>oue,FORCE_CODE_TERMINAL:()=>nue,FORCE_AUTOUPDATE_PLUGINS:()=>rue,ENABLE_TOOL_SEARCH:()=>tue,ENABLE_SESSION_PERSISTENCE:()=>eue,ENABLE_SESSION_BACKGROUNDING:()=>Xce,ENABLE_PROMPT_CACHING_1H_BEDROCK:()=>Kce,ENABLE_PROMPT_CACHING_1H:()=>Zce,ENABLE_PID_BASED_VERSION_LOCKING:()=>Wce,ENABLE_MCP_LARGE_OUTPUT_FILES:()=>qce,ENABLE_LSP_TOOL:()=>Jce,ENABLE_LOCKLESS_UPDATES:()=>Vce,ENABLE_ENHANCED_TELEMETRY_BETA:()=>jce,ENABLE_CLAUDEAI_MCP_SERVERS:()=>Yce,ENABLE_BETA_TRACING_DETAILED:()=>zce,EMBEDDED_SEARCH_TOOLS:()=>sue,DISABLE_UPGRADE_COMMAND:()=>Gce,DISABLE_UPDATES:()=>Hce,DISABLE_TELEMETRY:()=>$ce,DISABLE_PROMPT_CACHING_SONNET:()=>Fce,DISABLE_PROMPT_CACHING_OPUS:()=>Oce,DISABLE_PROMPT_CACHING_MYTHOS:()=>Pce,DISABLE_PROMPT_CACHING_HAIKU:()=>Uce,DISABLE_PROMPT_CACHING_FABLE:()=>Mce,DISABLE_PROMPT_CACHING:()=>Lce,DISABLE_LOGOUT_COMMAND:()=>Nce,DISABLE_LOGIN_COMMAND:()=>Tce,DISABLE_INTERLEAVED_THINKING:()=>Rce,DISABLE_INSTALL_GITHUB_APP_COMMAND:()=>kce,DISABLE_INSTALLATION_CHECKS:()=>Dce,DISABLE_GROWTHBOOK:()=>Sce,DISABLE_FEEDBACK_COMMAND:()=>wce,DISABLE_EXTRA_USAGE_COMMAND:()=>Qce,DISABLE_ERROR_REPORTING:()=>vce,DISABLE_DOCTOR_COMMAND:()=>_ce,DISABLE_COST_WARNINGS:()=>xce,DISABLE_COMPACT:()=>bce,DISABLE_BUG_COMMAND:()=>Bce,DISABLE_BRIEF_MODE_STOP_HOOK:()=>yce,DISABLE_AUTO_COMPACT:()=>Cce,DISABLE_AUTOUPDATER:()=>Ice,CLAUDE_WORKFLOW_NAME_ONLY:()=>Ece,CLAUDE_RUNNER_DISABLE_AWAITING_ACTION_OVERRIDE:()=>mce,CLAUDE_PREVIEW_CLASSIFIER_FLOOR:()=>Ese,CLAUDE_DISABLE_ADOPT:()=>hce,CLAUDE_CODE_WEBSEARCH_USE_CCR_PROXY:()=>uce,CLAUDE_CODE_WEBFETCH_USE_CCR_PROXY:()=>cce,CLAUDE_CODE_VERIFY_PROMPT:()=>gce,CLAUDE_CODE_USE_POWERSHELL_TOOL:()=>ace,CLAUDE_CODE_USE_NATIVE_FILE_SEARCH:()=>sce,CLAUDE_CODE_USE_COWORK_PLUGINS:()=>ice,CLAUDE_CODE_TWO_STAGE_CLASSIFIER:()=>oce,CLAUDE_CODE_TOTAL_TOKENS_REMINDER_BUDGET:()=>Iae,CLAUDE_CODE_TOTAL_TOKENS_REMINDER:()=>Cae,CLAUDE_CODE_TODO_REMINDER_MODE:()=>Eae,CLAUDE_CODE_TAG_ISMETA_MESSAGES:()=>nce,CLAUDE_CODE_SYNC_PLUGIN_INSTALL:()=>rce,CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION:()=>tce,CLAUDE_CODE_SUBAGENT_CACHE_EVICT:()=>ece,CLAUDE_CODE_SKIP_REPO_UPLOAD:()=>Xae,CLAUDE_CODE_SKIP_PROMPT_HISTORY:()=>Kae,CLAUDE_CODE_SKIP_PROJECT_BACKFILL:()=>Zae,CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS_EXCEPT:()=>Wae,CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS:()=>qae,CLAUDE_CODE_SKILL_DESC_REFRAME:()=>Jae,CLAUDE_CODE_PROACTIVE:()=>Vae,CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE:()=>dce,CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE:()=>lce,CLAUDE_CODE_PLUGIN_BINARY_ASSETS:()=>Ace,CLAUDE_CODE_PLAN_MODE_REQUIRED:()=>jae,CLAUDE_CODE_PEWTER_OWL_TOOL:()=>fce,CLAUDE_CODE_PEWTER_OWL:()=>pce,CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE:()=>Yae,CLAUDE_CODE_OWNERSHIP_FRAME:()=>zae,CLAUDE_CODE_NO_FLICKER:()=>Gae,CLAUDE_CODE_NEW_INIT:()=>Hae,CLAUDE_CODE_NATIVE_CURSOR:()=>$ae,CLAUDE_CODE_KB_COHESION_FIXES:()=>yae,CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES:()=>Pae,CLAUDE_CODE_IDE_SKIP_VALID_CHECK:()=>Mae,CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL:()=>Fae,CLAUDE_CODE_HIDE_CWD:()=>Lae,CLAUDE_CODE_GLOB_NO_IGNORE:()=>Nae,CLAUDE_CODE_GLOB_HIDDEN:()=>Tae,CLAUDE_CODE_FORK_SUBAGENT:()=>Rae,CLAUDE_CODE_FORCE_STRIKETHROUGH:()=>Oae,CLAUDE_CODE_FORCE_SESSION_PERSISTENCE:()=>Uae,CLAUDE_CODE_EXPERIMENTAL_OBSERVER_AGENTS:()=>Dae,CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS:()=>kae,CLAUDE_CODE_ENABLE_XAA:()=>mae,CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT:()=>hae,CLAUDE_CODE_ENABLE_TASKS:()=>gae,CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING:()=>fae,CLAUDE_CODE_ENABLE_REMOTE_RECAP:()=>pae,CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION:()=>dae,CLAUDE_CODE_ENABLE_MENU_KIND_LANES:()=>Aae,CLAUDE_CODE_ENABLE_LAUNCH_COMPOSER:()=>lae,CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING:()=>uae,CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL:()=>cae,CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL:()=>aae,CLAUDE_CODE_ENABLE_DESIGN_SYNC:()=>sae,CLAUDE_CODE_ENABLE_DESIGN_MCP:()=>iae,CLAUDE_CODE_ENABLE_CFC:()=>oae,CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH:()=>nae,CLAUDE_CODE_ENABLE_AWAY_SUMMARY:()=>rae,CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT:()=>tae,CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL:()=>eae,CLAUDE_CODE_DISABLE_THINKING:()=>Xse,CLAUDE_CODE_DISABLE_TERMINAL_TITLE:()=>Kse,CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK:()=>Zse,CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP:()=>Wse,CLAUDE_CODE_DISABLE_POLICY_SKILLS:()=>qse,CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL:()=>Jse,CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK:()=>Vse,CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK:()=>jse,CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:()=>Yse,CLAUDE_CODE_DISABLE_NESTED_CHAIN_IDLE:()=>zse,CLAUDE_CODE_DISABLE_MOUSE_CLICKS:()=>Gse,CLAUDE_CODE_DISABLE_MOUSE:()=>Hse,CLAUDE_CODE_DISABLE_MEMORY_PERIODIC_RESYNC:()=>$se,CLAUDE_CODE_DISABLE_MEMORY_BULK_INFLATE:()=>Pse,CLAUDE_CODE_DISABLE_LAUNCH_COMPOSER:()=>Mse,CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS:()=>Fse,CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING:()=>Ose,CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY:()=>Use,CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS:()=>Lse,CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS:()=>Nse,CLAUDE_CODE_DISABLE_CRON:()=>Tse,CLAUDE_CODE_DISABLE_CLAUDE_MDS:()=>Rse,CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL:()=>Dse,CLAUDE_CODE_DISABLE_BUNDLED_SKILLS:()=>kse,CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF:()=>Sse,CLAUDE_CODE_DISABLE_BACKGROUND_TASKS:()=>wse,CLAUDE_CODE_DISABLE_AUTO_MEMORY:()=>Qse,CLAUDE_CODE_DISABLE_ATTACHMENTS:()=>vse,CLAUDE_CODE_DISABLE_ARTIFACT:()=>_se,CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN:()=>xse,CLAUDE_CODE_DISABLE_AGENT_VIEW:()=>bse,CLAUDE_CODE_DISABLE_ADVISOR_TOOL:()=>Bse,CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING:()=>yse,CLAUDE_CODE_COLD_COMPACT:()=>Sae,CLAUDE_CODE_CHILD_SESSION:()=>wae,CLAUDE_CODE_BUBBLEWRAP:()=>Qae,CLAUDE_CODE_BG_TASKS_REPORT_RUNNING:()=>Ise,CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR:()=>vae,CLAUDE_CODE_AUTO_CONNECT_IDE:()=>_ae,CLAUDE_CODE_ARTIFACT_DIRECT_UPLOAD:()=>xae,CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT:()=>Cse,CLAUDE_CODE_ACT_DONT_REDERIVE:()=>bae,CLAUDE_CODE_ACCESSIBILITY:()=>Bae,CLAUDE_CHROME_CLASSIFIER_FLOOR:()=>mse,CLAUDE_AX_SCREEN_READER:()=>hse});var hse=l.triBool(),mse=l.triBool(),Ese=l.triBool(),Cse=l.bool(),Ise=l.bool(),yse=l.bool(),Bse=l.bool(),bse=l.bool(),xse=l.bool(),_se=l.bool(),vse=l.bool(),Qse=l.bool(),wse=l.bool(),Sse=l.bool(),kse=l.bool(),Dse=l.bool(),Rse=l.bool(),Tse=l.bool(),Nse=l.bool(),Lse=l.bool(),Use=l.bool(),Ose=l.bool(),Fse=l.bool(),Mse=l.bool(),Pse=l.bool(),$se=l.bool(),Hse=l.triBool(),Gse=l.triBool(),zse=l.bool(),Yse=l.bool(),jse=l.bool(),Vse=l.bool(),Jse=l.bool(),qse=l.bool(),Wse=l.bool(),Zse=l.bool(),Kse=l.bool(),Xse=l.bool(),eae=l.bool(),tae=l.bool(),rae=l.bool(),nae=l.bool(),oae=l.triBool(),iae=l.triBool(),sae=l.bool(),aae=l.bool(),cae=l.bool(),uae=l.bool(),lae=l.bool(),Aae=l.bool(),dae=l.triBool(),pae=l.triBool(),fae=l.bool(),gae=l.bool(),hae=l.bool(),mae=l.bool(),Eae=l.enum(["baseline","off"]),Cae=l.str(),Iae=l.int(),yae=l.bool(),Bae=l.bool(),bae=l.triBool(),xae=l.bool(),_ae=l.triBool(),vae=l.bool(),Qae=l.bool(),wae=l.bool(),Sae=l.bool(),kae=l.bool(),Dae=l.bool(),Rae=l.bool(),Tae=l.bool(),Nae=l.bool(),Lae=l.bool(),Uae=l.bool(),Oae=l.bool(),Fae=l.bool(),Mae=l.bool(),Pae=l.bool(),$ae=l.bool(),Hae=l.bool(),Gae=l.triBool(),zae=l.bool(),Yae=l.bool(),jae=l.bool(),Vae=l.bool(),Jae=l.bool(),qae=l.bool(),Wae=l.str(),Zae=l.bool(),Kae=l.bool(),Xae=l.bool(),ece=l.bool(),tce=l.bool(),rce=l.bool(),nce=l.bool(),oce=l.bool(),ice=l.bool(),sce=l.bool(),ace=l.bool(),cce=l.bool(),uce=l.bool(),lce=l.bool(),Ace=l.bool(),dce=l.bool(),pce=l.triBool(),fce=l.triBool(),gce=l.bool(),hce=l.bool(),mce=l.bool(),Ece=l.bool(),Cce=l.bool(),Ice=l.bool(),yce=l.bool(),Bce=l.bool(),bce=l.bool(),xce=l.bool(),_ce=l.bool(),vce=l.bool(),Qce=l.bool(),wce=l.bool(),Sce=l.bool(),kce=l.bool(),Dce=l.bool(),Rce=l.bool(),Tce=l.bool(),Nce=l.bool(),Lce=l.bool(),Uce=l.bool(),Oce=l.bool(),Fce=l.bool(),Mce=l.bool(),Pce=l.bool(),$ce=l.bool(),Hce=l.bool(),Gce=l.bool(),zce=l.bool(),Yce=l.bool(),jce=l.bool(),Vce=l.bool(),Jce=l.bool(),qce=l.bool(),Wce=l.bool(),Zce=l.bool(),Kce=l.bool(),Xce=l.bool(),eue=l.bool(),tue=l.bool(),rue=l.bool(),nue=l.bool(),oue=l.bool(),iue=l.bool(),sue=l.bool(),aue=l.bool(),cue=l.bool(),uue=l.bool();var OB={};ft(OB,{ZELLIJ:()=>lle,ZED_TERM:()=>Ale,XTERM_VERSION:()=>tle,XDG_RUNTIME_DIR:()=>Rue,WT_SESSION:()=>ile,WSL_DISTRO_NAME:()=>dle,WEBSITE_SKU:()=>cAe,WEBSITE_SITE_NAME:()=>aAe,WAYLAND_DISPLAY:()=>xue,VTE_VERSION:()=>nle,VSCODE_GIT_ASKPASS_MAIN:()=>fle,VISUAL:()=>yue,VERCEL:()=>Jle,UV_THREADPOOL_SIZE:()=>Uue,USE_BUILTIN_RIPGREP:()=>hAe,USERPROFILE:()=>wue,USERNAME:()=>Que,USER:()=>vue,TRACESTATE:()=>yAe,TRACEPARENT:()=>IAe,TMUX_PANE:()=>ule,TMUX:()=>cle,TMPDIR:()=>fue,TMP:()=>gue,TILIX_ID:()=>Zue,TERM_PROGRAM_VERSION:()=>Yue,TERM_PROGRAM:()=>zue,TERMUX_VERSION:()=>Wue,TERMINATOR_UUID:()=>que,TERMINAL_EMULATOR:()=>Jue,TERMINAL:()=>Vue,TERM:()=>Gue,TEMP:()=>hue,SYSTEMROOT:()=>Cue,STY:()=>ale,SSL_CERT_FILE:()=>Lue,SSH_TTY:()=>Ele,SSH_CONNECTION:()=>mle,SSH_CLIENT:()=>hle,SSH_AUTH_SOCK:()=>Cle,SPACE_CREATOR_USER_ID:()=>AAe,SHELL:()=>mue,SESSIONNAME:()=>sle,SAFEUSER:()=>Due,RUNNER_OS:()=>Ole,RUNNER_ENVIRONMENT:()=>Fle,REPL_SLUG:()=>jle,REPL_ID:()=>Yle,RENDER:()=>qle,PWD:()=>due,PROJECT_DOMAIN:()=>Vle,PREFIX:()=>pue,PLAYWRIGHT_BROWSERS_PATH:()=>gAe,PATH:()=>Aue,NO_COLOR:()=>Mue,NODE_OPTIONS:()=>Tue,NODE_EXTRA_CA_CERTS:()=>Nue,NETLIFY:()=>Wle,MSYSTEM:()=>ple,LOCALAPPDATA:()=>kue,LC_TERMINAL:()=>jue,LANG:()=>_ue,K_SERVICE:()=>rAe,KUBERNETES_SERVICE_HOST:()=>dAe,KONSOLE_VERSION:()=>ele,KITTY_WINDOW_ID:()=>Xue,JAVA_TOOL_OPTIONS:()=>Fue,JAVA_HOME:()=>Oue,ITERM_SESSION_ID:()=>Kue,IS_SANDBOX:()=>mAe,IS_DEMO:()=>EAe,HOME:()=>lue,GOOGLE_CLOUD_WORKSTATIONS:()=>Gle,GOOGLE_CLOUD_PROJECT:()=>nAe,GOOGLE_APPLICATION_CREDENTIALS:()=>iAe,GNOME_TERMINAL_SERVICE:()=>rle,GIT_TERMINAL_PROMPT:()=>yle,GIT_SSH_COMMAND:()=>Ile,GIT_CONFIG_COUNT:()=>xle,GIT_ASKPASS:()=>Ble,GITPOD_WORKSPACE_ID:()=>Hle,GITLAB_CI:()=>Ule,GITHUB_WORKSPACE:()=>Dle,GITHUB_TOKEN:()=>wle,GITHUB_ENV:()=>kle,GITHUB_ENTERPRISE_TOKEN:()=>Sle,GITHUB_ACTIONS:()=>Rle,GH_TOKEN:()=>_le,GH_HOST:()=>vle,GH_ENTERPRISE_TOKEN:()=>Qle,GCM_INTERACTIVE:()=>ble,GCLOUD_PROJECT:()=>oAe,FORCE_COLOR:()=>Pue,EDITOR:()=>Iue,DYNO:()=>Zle,DO_NOT_TRACK:()=>Hue,DISPLAY:()=>bue,DENO_DEPLOYMENT_ID:()=>Xle,DEMO_VERSION:()=>CAe,DAYTONA_WS_ID:()=>zle,DATABASE_URL:()=>fAe,CURSOR_TRACE_ID:()=>gle,COMSPEC:()=>Eue,COLORTERM:()=>$ue,CODESPACES:()=>Mle,CODER_WORKSPACE_NAME:()=>$le,CODER:()=>Ple,CLOUDSDK_CONFIG:()=>sAe,CIRCLECI:()=>Nle,CI:()=>Tle,CF_PAGES:()=>Kle,BUN_INSTALL:()=>pAe,BUILDKITE:()=>Lle,BROWSER:()=>Bue,AZURE_FUNCTIONS_ENVIRONMENT:()=>uAe,AWS_LAMBDA_FUNCTION_NAME:()=>eAe,AWS_EXECUTION_ENV:()=>tAe,APP_URL:()=>lAe,APPDATA:()=>Sue,ALACRITTY_LOG:()=>ole});var lue=l.str(),Aue=l.str(),due=l.str(),pue=l.str(),fue=l.str(),gue=l.str(),hue=l.str(),mue=l.str(),Eue=l.str(),Cue=l.str(),Iue=l.str(),yue=l.str(),Bue=l.str(),bue=l.str(),xue=l.str(),_ue=l.str(),vue=l.str(),Que=l.str(),wue=l.str(),Sue=l.str(),kue=l.str(),Due=l.str(),Rue=l.str(),Tue=l.str(),Nue=l.str(),Lue=l.str(),Uue=l.str(),Oue=l.str(),Fue=l.str(),Mue=l.str(),Pue=l.str(),$ue=l.str(),Hue=l.str(),Gue=l.str(),zue=l.str(),Yue=l.str(),jue=l.str(),Vue=l.str(),Jue=l.str(),que=l.str(),Wue=l.str(),Zue=l.str(),Kue=l.str(),Xue=l.str(),ele=l.str(),tle=l.str(),rle=l.str(),nle=l.str(),ole=l.str(),ile=l.str(),sle=l.str(),ale=l.str(),cle=l.str(),ule=l.str(),lle=l.str(),Ale=l.str(),dle=l.str(),ple=l.str(),fle=l.str(),gle=l.str(),hle=l.str(),mle=l.str(),Ele=l.str(),Cle=l.str(),Ile=l.str(),yle=l.str(),Ble=l.str(),ble=l.str(),xle=l.str(),_le=l.str(),vle=l.str(),Qle=l.str(),wle=l.str(),Sle=l.str(),kle=l.str(),Dle=l.str(),Rle=l.str(),Tle=l.str(),Nle=l.str(),Lle=l.str(),Ule=l.str(),Ole=l.str(),Fle=l.str(),Mle=l.str(),Ple=l.str(),$le=l.str(),Hle=l.str(),Gle=l.str(),zle=l.str(),Yle=l.str(),jle=l.str(),Vle=l.str(),Jle=l.str(),qle=l.str(),Wle=l.str(),Zle=l.str(),Kle=l.str(),Xle=l.str(),eAe=l.str(),tAe=l.str(),rAe=l.str(),nAe=l.str(),oAe=l.str(),iAe=l.str(),sAe=l.str(),aAe=l.str(),cAe=l.str(),uAe=l.str(),lAe=l.str(),AAe=l.str(),dAe=l.str(),pAe=l.str(),fAe=l.str(),gAe=l.str(),hAe=l.str(),mAe=l.str(),EAe=l.str(),CAe=l.str(),IAe=l.str(),yAe=l.str();var FB={};ft(FB,{VOICE_STREAM_BASE_URL:()=>mpe,VCR_RECORD:()=>Efe,ULTRAPLAN_PROMPT_FILE:()=>hpe,TEST_ENABLE_SESSION_PERSISTENCE:()=>mfe,TEAM_MEMORY_SYNC_URL:()=>gpe,TASK_MAX_OUTPUT_LENGTH:()=>rge,SLASH_COMMAND_TOOL_CHAR_BUDGET:()=>tge,SESSION_INGRESS_URL:()=>fpe,MCP_TRUNCATION_PROMPT_OVERRIDE:()=>ppe,MCP_TOOL_TIMEOUT:()=>Kfe,MCP_TIMEOUT:()=>Zfe,MCP_SERVER_CONNECTION_BATCH_SIZE:()=>Wfe,MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE:()=>qfe,MCP_OAUTH_CLIENT_METADATA_URL:()=>dpe,MCP_OAUTH_CALLBACK_PORT:()=>Jfe,MCP_CONNECT_TIMEOUT_MS:()=>Vfe,MCP_CONNECTION_NONBLOCKING:()=>hfe,LOCAL_BRIDGE:()=>gfe,CLAUDE_TMPDIR:()=>Ape,CLAUDE_SUBAGENT_BG_SHELL_MAX_MS:()=>jfe,CLAUDE_STAGE_FILE_ROOT:()=>lpe,CLAUDE_SSH_VERSION:()=>upe,CLAUDE_SSH_LOCAL_BINARY:()=>cpe,CLAUDE_SNIP:()=>ape,CLAUDE_SERVE_DRAIN_TIMEOUT_MS:()=>Yfe,CLAUDE_RUNNER_FETCH_DEPTH:()=>spe,CLAUDE_REPL_VARIANT:()=>ipe,CLAUDE_REMOTE_WORKFLOW_SCRIPT:()=>ope,CLAUDE_REMOTE_WORKFLOW_ARGS:()=>npe,CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX:()=>rpe,CLAUDE_JOB_DIR:()=>tpe,CLAUDE_INTERNAL_WARM_RESUME_QA:()=>ffe,CLAUDE_INTERNAL_FC_OVERRIDES:()=>epe,CLAUDE_INTERNAL_ASSISTANT_TEAM_NAME:()=>Xde,CLAUDE_FORCE_DISPLAY_SURVEY:()=>pfe,CLAUDE_ENV_FILE:()=>Kde,CLAUDE_COWORK_MEMORY_PATH_OVERRIDE:()=>Zde,CLAUDE_COWORK_MEMORY_INDEX_CONTENT:()=>Wde,CLAUDE_COWORK_MEMORY_GUIDELINES:()=>qde,CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES:()=>Jde,CLAUDE_CONFIG_DIR:()=>Vde,CLAUDE_CODE_WORKSPACE_HOST_PATHS:()=>jde,CLAUDE_CODE_WORKER_EPOCH:()=>zfe,CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS:()=>Gfe,CLAUDE_CODE_ULTRAREVIEW_PREFLIGHT_FIXTURE:()=>Yde,CLAUDE_CODE_TUI_JUST_SWITCHED:()=>dfe,CLAUDE_CODE_TMUX_TRUECOLOR:()=>Afe,CLAUDE_CODE_TMUX_SESSION:()=>zde,CLAUDE_CODE_TMUX_PREFIX_CONFLICTS:()=>lfe,CLAUDE_CODE_TMUX_PREFIX:()=>Gde,CLAUDE_CODE_TMPDIR:()=>Hde,CLAUDE_CODE_TEST_NO_PWSH:()=>ufe,CLAUDE_CODE_TEST_NO_GIT_BASH:()=>cfe,CLAUDE_CODE_TEST_FORCE_DENY:()=>afe,CLAUDE_CODE_TEST_FIXTURES_ROOT:()=>$de,CLAUDE_CODE_TASK_LIST_ID:()=>Pde,CLAUDE_CODE_TAGS:()=>Mde,CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE:()=>Fde,CLAUDE_CODE_SYNTAX_HIGHLIGHT:()=>sfe,CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS:()=>Hfe,CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS:()=>$fe,CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS:()=>Pfe,CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_STALL_MS:()=>ofe,CLAUDE_CODE_SYNC_PLUGINS_BUFFERED_DOWNLOAD:()=>nfe,CLAUDE_CODE_SUPERVISED:()=>rfe,CLAUDE_CODE_SUBPROCESS_ENV_SCRUB:()=>tfe,CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING:()=>Ode,CLAUDE_CODE_SSE_PORT:()=>Mfe,CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT:()=>Ude,CLAUDE_CODE_SIMPLE:()=>efe,CLAUDE_CODE_SHELL_PREFIX:()=>Lde,CLAUDE_CODE_SHELL:()=>Nde,CLAUDE_CODE_SESSION_NAME:()=>Tde,CLAUDE_CODE_SESSION_KIND:()=>Rde,CLAUDE_CODE_SESSION_ID:()=>Dde,CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS:()=>Ffe,CLAUDE_CODE_SCROLL_SPEED:()=>kde,CLAUDE_CODE_SCRIPT_CAPS:()=>Ofe,CLAUDE_CODE_SANDBOXED:()=>Xpe,CLAUDE_CODE_RESUME_TOKEN_THRESHOLD:()=>Ufe,CLAUDE_CODE_RESUME_THRESHOLD_MINUTES:()=>Lfe,CLAUDE_CODE_RESUME_PROMPT:()=>Sde,CLAUDE_CODE_RESUME_INTERRUPTED_TURN:()=>Kpe,CLAUDE_CODE_RESUME_FROM_SESSION:()=>wde,CLAUDE_CODE_REPO_CHECKOUTS:()=>Qde,CLAUDE_CODE_REPL:()=>Zpe,CLAUDE_CODE_REMOTE_SETTINGS_POLL_MS:()=>Nfe,CLAUDE_CODE_REMOTE_SETTINGS_PATH:()=>vde,CLAUDE_CODE_REMOTE_SESSION_ID:()=>_de,CLAUDE_CODE_REMOTE_SEND_KEEPALIVES:()=>Wpe,CLAUDE_CODE_REMOTE_RAW_EVENTS_FILE:()=>xde,CLAUDE_CODE_REMOTE_MEMORY_DIR:()=>bde,CLAUDE_CODE_REMOTE_HERMETIC_MODE:()=>qpe,CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE:()=>Bde,CLAUDE_CODE_REMOTE:()=>Jpe,CLAUDE_CODE_QUESTION_PREVIEW_FORMAT:()=>yde,CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS:()=>Tfe,CLAUDE_CODE_POWERUP_ONBOARDING:()=>Ide,CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2:()=>Vpe,CLAUDE_CODE_PLUGIN_SEED_DIR:()=>Cde,CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS:()=>Rfe,CLAUDE_CODE_PLUGIN_CACHE_DIR:()=>Ede,CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNT:()=>Dfe,CLAUDE_CODE_PLAN_V2_AGENT_COUNT:()=>kfe,CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE:()=>mde,CLAUDE_CODE_PERFORCE_MODE:()=>hde,CLAUDE_CODE_PARKED_PERMISSION_WAIT_MS:()=>ife,CLAUDE_CODE_OVERRIDE_DATE:()=>gde,CLAUDE_CODE_MOCK_TRIAL:()=>jpe,CLAUDE_CODE_MOCK_REMOTE_SETTINGS:()=>Ype,CLAUDE_CODE_MID_CONVERSATION_SYSTEM:()=>fde,CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT:()=>Xfe,CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS:()=>ege,CLAUDE_CODE_MCP_ALLOWLIST_ENV:()=>pde,CLAUDE_CODE_MANAGED_SETTINGS_PATH:()=>dde,CLAUDE_CODE_LOOP_PERSISTENT:()=>zpe,CLAUDE_CODE_IS_COWORK:()=>Gpe,CLAUDE_CODE_INVESTIGATE_FIRST:()=>Hpe,CLAUDE_CODE_IDLE_TOKEN_THRESHOLD:()=>Sfe,CLAUDE_CODE_IDLE_THRESHOLD_MINUTES:()=>wfe,CLAUDE_CODE_IDE_HOST_OVERRIDE:()=>Ade,CLAUDE_CODE_HOST_PLATFORM:()=>lde,CLAUDE_CODE_HIDE_SETTINGS_HINT:()=>ude,CLAUDE_CODE_GLOB_TIMEOUT_SECONDS:()=>Qfe,CLAUDE_CODE_GIT_BASH_PATH:()=>cde,CLAUDE_CODE_FORCE_TIP_ID:()=>ade,CLAUDE_CODE_FORCE_MEMORY_SURVEY:()=>$pe,CLAUDE_CODE_FORCE_FULL_LOGO:()=>Ppe,CLAUDE_CODE_FORCE_FULLSCREEN_UPSELL:()=>Mpe,CLAUDE_CODE_FORCE_EVALUATE_MEMORY:()=>Fpe,CLAUDE_CODE_FORCE_BRIDGE:()=>Ope,CLAUDE_CODE_FABLE_BRIDGE_DIALOG_TIMEOUT_MS:()=>vfe,CLAUDE_CODE_EXIT_AFTER_STOP_DELAY:()=>_fe,CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER:()=>Upe,CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION:()=>sde,CLAUDE_CODE_ENVIRONMENT_KIND:()=>ide,CLAUDE_CODE_ENTRYPOINT:()=>ode,CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES:()=>Lpe,CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS:()=>Npe,CLAUDE_CODE_DONT_INHERIT_ENV:()=>Tpe,CLAUDE_CODE_DISABLE_WORKING_SYNC:()=>nde,CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP:()=>Rpe,CLAUDE_CODE_DEV_RAW_CHANGELOG_URL:()=>rde,CLAUDE_CODE_DECSTBM:()=>tde,CLAUDE_CODE_DAEMON_COLD_START:()=>Dpe,CLAUDE_CODE_CONTAINER_ID:()=>ede,CLAUDE_CODE_CLASSIFIER_SUMMARY:()=>XAe,CLAUDE_CODE_BRIEF_UPLOAD:()=>kpe,CLAUDE_CODE_BRIEF:()=>Spe,CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE:()=>KAe,CLAUDE_CODE_BASE_REFS:()=>ZAe,CLAUDE_CODE_BASE_REF:()=>WAe,CLAUDE_CODE_AUTO_MODE_EXTERNAL_PERMISSIONS:()=>wpe,CLAUDE_CODE_AUTO_COMPACT_WINDOW:()=>qAe,CLAUDE_CODE_ARTIFACT_AUTO_OPEN:()=>VAe,CLAUDE_CODE_ARTIFACTS_API_BASE_URL:()=>JAe,CLAUDE_CODE_ARTIFACT:()=>jAe,CLAUDE_CODE_AGENT:()=>YAe,CLAUDE_CODE_ADDITIONAL_PROTECTION:()=>Qpe,CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD:()=>zAe,CLAUDE_CODE_ACTION:()=>GAe,CLAUDE_CLIENT_PRESENCE_FILE:()=>HAe,CLAUDE_CHROME_PERMISSION_MODE:()=>$Ae,CLAUDE_BRIDGE_USE_CCR_V2:()=>vpe,CLAUDE_BRIDGE_SESSION_INGRESS_URL:()=>PAe,CLAUDE_BRIDGE_REATTACH_SESSION:()=>MAe,CLAUDE_BRIDGE_REATTACH_SEQ:()=>xfe,CLAUDE_BRIDGE_OAUTH_TOKEN:()=>FAe,CLAUDE_BRIDGE_BASE_URL:()=>OAe,CLAUDE_BG_STARTUP_WEDGE_MS:()=>bfe,CLAUDE_BG_SOURCE:()=>UAe,CLAUDE_BG_SOCKET_TOKENS_PATH:()=>LAe,CLAUDE_BG_RV_AUTH:()=>NAe,CLAUDE_BG_RENDEZVOUS_SOCK:()=>TAe,CLAUDE_BG_PTY_AUTH:()=>RAe,CLAUDE_BG_POST_CLEAR_RESPAWN:()=>DAe,CLAUDE_BG_ISOLATION:()=>kAe,CLAUDE_BG_CLAIM_AUTH:()=>SAe,CLAUDE_BG_BACKEND:()=>wAe,CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR:()=>_pe,CLAUDE_AUTO_BACKGROUND_TASKS:()=>xpe,CLAUDE_AUTOCOMPACT_PCT_OVERRIDE:()=>QAe,CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS:()=>Bfe,CLAUDE_AGENT_SDK_VERSION:()=>vAe,CLAUDE_AGENT_SDK_MCP_NO_PREFIX:()=>bpe,CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS:()=>Bpe,CLAUDE_AGENT_SDK_CLIENT_APP:()=>_Ae,CLAUDE_AGENTS_SELECT:()=>xAe,CLAUDE_AFTER_LAST_COMPACT:()=>bAe,CLAUDE_AFK_TIMEOUT_MS:()=>yfe,CLAUDE_AFK_COUNTDOWN_MS:()=>Ife,CLAUDECODE:()=>ype,CLAUBBIT:()=>Ipe,BASH_MAX_OUTPUT_LENGTH:()=>Cfe,ANTHROPIC_CONFIG_DIR:()=>BAe,ALLOW_ANT_COMPUTER_USE_MCP:()=>Cpe,AI_AGENT:()=>Epe});var BAe=l.str(),bAe=l.str(),xAe=l.str(),_Ae=l.str(),vAe=l.str(),QAe=l.str(),wAe=l.str(),SAe=l.str(),kAe=l.str(),DAe=l.bool(),RAe=l.str(),TAe=l.str(),NAe=l.str(),LAe=l.str(),UAe=l.str(),OAe=l.str(),FAe=l.str(),MAe=l.str(),PAe=l.str(),$Ae=l.str(),HAe=l.str(),GAe=l.str(),zAe=l.str(),YAe=l.str(),jAe=l.str(),VAe=l.str(),JAe=l.str(),qAe=l.str(),WAe=l.str(),ZAe=l.str(),KAe=l.str(),XAe=l.str(),ede=l.str(),tde=l.str(),rde=l.str(),nde=l.bool(),ode=l.str(),ide=l.str(),sde=l.str(),ade=l.str(),cde=l.str(),ude=l.str(),lde=l.str(),Ade=l.str(),dde=l.str(),pde=l.str(),fde=l.str(),gde=l.str(),hde=l.str(),mde=l.str(),Ede=l.str(),Cde=l.str(),Ide=l.str(),yde=l.str(),Bde=l.str(),bde=l.str(),xde=l.str(),_de=l.str(),vde=l.str(),Qde=l.str(),wde=l.str(),Sde=l.str(),kde=l.str(),Dde=l.str(),Rde=l.str(),Tde=l.str(),Nde=l.str(),Lde=l.str(),Ude=l.str(),Ode=l.str(),Fde=l.str(),Mde=l.str(),Pde=l.str(),$de=l.str(),Hde=l.str(),Gde=l.str(),zde=l.str(),Yde=l.str(),jde=l.str(),Vde=l.str(),Jde=l.str(),qde=l.str(),Wde=l.str(),Zde=l.str(),Kde=l.str(),Xde=l.str(),epe=l.str(),tpe=l.str(),rpe=l.str(),npe=l.str(),ope=l.str(),ipe=l.str(),spe=l.str(),ape=l.str(),cpe=l.str(),upe=l.str(),lpe=l.str(),Ape=l.str(),dpe=l.str(),ppe=l.str(),fpe=l.str(),gpe=l.str(),hpe=l.str(),mpe=l.str(),Epe=l.bool(),Cpe=l.bool(),Ipe=l.bool(),ype=l.bool(),Bpe=l.bool(),bpe=l.bool(),xpe=l.bool(),_pe=l.bool(),vpe=l.bool(),Qpe=l.bool(),wpe=l.bool(),Spe=l.bool(),kpe=l.bool(),Dpe=l.bool(),Rpe=l.bool(),Tpe=l.bool(),Npe=l.bool(),Lpe=l.bool(),Upe=l.bool(),Ope=l.bool(),Fpe=l.bool(),Mpe=l.bool(),Ppe=l.bool(),$pe=l.bool(),Hpe=l.bool(),Gpe=l.bool(),zpe=l.bool(),Ype=l.bool(),jpe=l.bool(),Vpe=l.bool(),Jpe=l.bool(),qpe=l.bool(),Wpe=l.bool(),Zpe=l.bool(),Kpe=l.bool(),Xpe=l.bool(),efe=l.bool(),tfe=l.bool(),rfe=l.bool(),nfe=l.bool(),ofe=l.int({min:1}),ife=l.int({min:0}),sfe=l.bool(),afe=l.bool(),cfe=l.bool(),ufe=l.bool(),lfe=l.bool(),Afe=l.bool(),dfe=l.str(),pfe=l.bool(),ffe=l.bool(),gfe=l.bool(),hfe=l.bool(),mfe=l.bool(),Efe=l.bool(),Cfe=l.int(),Ife=l.int(),yfe=l.int(),Bfe=l.int(),bfe=l.int(),xfe=l.int(),_fe=l.int(),vfe=l.int(),Qfe=l.int(),wfe=l.int(),Sfe=l.int(),kfe=l.int(),Dfe=l.int(),Rfe=l.int(),Tfe=l.int(),Nfe=l.int(),Lfe=l.int(),Ufe=l.int(),Ofe=l.int(),Ffe=l.int(),Mfe=l.int(),Pfe=l.int(),$fe=l.int(),Hfe=l.int(),Gfe=l.int(),zfe=l.int(),Yfe=l.int(),jfe=l.int(),Vfe=l.int(),Jfe=l.int(),qfe=l.int(),Wfe=l.int(),Zfe=l.int(),Kfe=l.int(),Xfe=l.int(),ege=l.int(),tge=l.int(),rge=l.int();var MB={};ft(MB,{FALLBACK_FOR_ALL_PRIMARY_MODELS:()=>_ge,CLAUDE_CONTEXT_COLLAPSE_MODEL:()=>bge,CLAUDE_CONTEXT_COLLAPSE:()=>xge,CLAUDE_CODE_SUBAGENT_MODEL:()=>Ige,CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK:()=>Tge,CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS:()=>Rge,CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE:()=>Dge,CLAUDE_CODE_ENABLE_OPUS_4_7_FAST_MODE:()=>kge,CLAUDE_CODE_EFFORT_LEVEL:()=>Qge,CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP:()=>vge,CLAUDE_CODE_DISABLE_FAST_MODE:()=>Sge,CLAUDE_CODE_DISABLE_1M_CONTEXT:()=>Nge,CLAUDE_CODE_BG_CLASSIFIER_MODEL:()=>Bge,CLAUDE_CODE_AUTO_MODE_MODEL:()=>yge,CLAUDE_CODE_ALWAYS_ENABLE_EFFORT:()=>wge,ANTHROPIC_SMALL_FAST_MODEL:()=>oge,ANTHROPIC_MODEL:()=>nge,ANTHROPIC_DEFAULT_SONNET_MODEL_NAME:()=>dge,ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION:()=>pge,ANTHROPIC_DEFAULT_SONNET_MODEL:()=>Age,ANTHROPIC_DEFAULT_OPUS_MODEL_NAME:()=>uge,ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION:()=>lge,ANTHROPIC_DEFAULT_OPUS_MODEL:()=>cge,ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME:()=>gge,ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION:()=>hge,ANTHROPIC_DEFAULT_HAIKU_MODEL:()=>fge,ANTHROPIC_DEFAULT_FABLE_MODEL_NAME:()=>sge,ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION:()=>age,ANTHROPIC_DEFAULT_FABLE_MODEL:()=>ige,ANTHROPIC_CUSTOM_MODEL_OPTION_NAME:()=>Ege,ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION:()=>Cge,ANTHROPIC_CUSTOM_MODEL_OPTION:()=>mge});var nge=l.str(),oge=l.str(),ige=l.str(),sge=l.str(),age=l.str(),cge=l.str(),uge=l.str(),lge=l.str(),Age=l.str(),dge=l.str(),pge=l.str(),fge=l.str(),gge=l.str(),hge=l.str(),mge=l.str(),Ege=l.str(),Cge=l.str(),Ige=l.str(),yge=l.str(),Bge=l.str(),bge=l.str(),xge=l.bool(),_ge=l.str(),vge=l.bool(),Qge=l.str(),wge=l.bool(),Sge=l.bool(),kge=l.bool(),Dge=l.str(),Rge=l.bool(),Tge=l.bool(),Nge=l.bool();var PB={};ft(PB,{NO_PROXY:()=>Oge,MAX_THINKING_TOKENS:()=>Xge,MAX_STRUCTURED_OUTPUT_RETRIES:()=>ehe,MAX_MCP_OUTPUT_TOKENS:()=>the,HTTP_PROXY:()=>Lge,HTTPS_PROXY:()=>Uge,CLAUDE_STREAM_IDLE_TIMEOUT_MS:()=>uhe,CLAUDE_SLOW_FIRST_BYTE_MS:()=>lhe,CLAUDE_MOCK_HEADERLESS_429:()=>fhe,CLAUDE_ENABLE_STREAM_WATCHDOG:()=>ahe,CLAUDE_ENABLE_BYTE_WATCHDOG:()=>she,CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS:()=>ghe,CLAUDE_CODE_RETRY_WATCHDOG:()=>Ahe,CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS:()=>hhe,CLAUDE_CODE_MAX_TURNS:()=>Kge,CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY:()=>Zge,CLAUDE_CODE_MAX_RETRIES:()=>Vge,CLAUDE_CODE_MAX_OUTPUT_TOKENS:()=>Jge,CLAUDE_CODE_MAX_CONTEXT_TOKENS:()=>qge,CLAUDE_CODE_GZIP_REQUEST_BODIES:()=>che,CLAUDE_CODE_FORCE_SYNC_OUTPUT:()=>phe,CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS:()=>Wge,CLAUDE_CODE_EXTRA_METADATA:()=>Yge,CLAUDE_CODE_EXTRA_BODY:()=>zge,CLAUDE_CODE_EAGER_FLUSH:()=>dhe,CLAUDE_CODE_CLIENT_KEY_PASSPHRASE:()=>Pge,CLAUDE_CODE_CLIENT_KEY:()=>Mge,CLAUDE_CODE_CLIENT_CERT:()=>Fge,CLAUDE_CODE_CERT_STORE:()=>$ge,CLAUDE_CODE_ATTRIBUTION_HEADER:()=>jge,API_TIMEOUT_MS:()=>rhe,API_TARGET_INPUT_TOKENS:()=>ihe,API_MAX_INPUT_TOKENS:()=>ohe,API_FORCE_IDLE_TIMEOUT:()=>nhe,ANTHROPIC_CUSTOM_HEADERS:()=>Gge,ANTHROPIC_BETAS:()=>Hge});var Lge=l.str(),Uge=l.str(),Oge=l.str(),Fge=l.str(),Mge=l.str(),Pge=l.str(),$ge=l.str(),Hge=l.str(),Gge=l.str(),zge=l.str(),Yge=l.str(),jge=l.str(),Vge=l.int(),Jge=l.int(),qge=l.int(),Wge=l.int(),Zge=l.int(),Kge=l.str(),Xge=l.int(),ehe=l.int(),the=l.int(),rhe=l.int(),nhe=l.int(),ohe=l.int(),ihe=l.int(),she=l.bool(),ahe=l.triBool(),che=l.triBool(),uhe=l.int(),lhe=l.int(),Ahe=l.bool(),dhe=l.bool(),phe=l.bool(),fhe=l.bool(),ghe=l.int(),hhe=l.int({min:0});var $B={};ft($B,{_CLAUDE_CODE_ASSUME_FIRST_PARTY_BASE_URL:()=>xhe,CLOUD_ML_REGION:()=>The,CLAUDE_GATEWAY_LOG_LEVEL:()=>Vhe,CLAUDE_GATEWAY_ALLOW_LOOPBACK:()=>jhe,CLAUDE_CODE_USE_VERTEX:()=>Ehe,CLAUDE_CODE_USE_MANTLE:()=>yhe,CLAUDE_CODE_USE_FOUNDRY:()=>Che,CLAUDE_CODE_USE_CCR_V2:()=>Bhe,CLAUDE_CODE_USE_BEDROCK:()=>mhe,CLAUDE_CODE_USE_ANTHROPIC_AWS:()=>Ihe,CLAUDE_CODE_SKIP_HFI_VERSION_CHECK:()=>tme,CLAUDE_CODE_SIMULATE_PROXY_USAGE:()=>zhe,CLAUDE_CODE_PROXY_RESOLVES_HOSTS:()=>Yhe,CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST:()=>Ghe,CLAUDE_CODE_GB_REFRESH_INTERVAL_MS:()=>Whe,CLAUDE_CODE_GB_BASE_URL:()=>qhe,CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY:()=>Jhe,CLAUDE_CODE_API_BASE_URL:()=>_he,CCR_FORCE_BUNDLE:()=>Xhe,CCR_ENABLE_BUNDLE:()=>Khe,CCR_AGENT_PROXY_ENABLED:()=>Zhe,AWS_SHARED_CREDENTIALS_FILE:()=>Phe,AWS_REGION:()=>Uhe,AWS_PROFILE:()=>Fhe,AWS_DEFAULT_REGION:()=>Ohe,AWS_CONFIG_FILE:()=>Mhe,ANTHROPIC_VERTEX_PROJECT_ID:()=>Rhe,ANTHROPIC_VERTEX_BASE_URL:()=>Dhe,ANTHROPIC_UNIX_SOCKET:()=>Hhe,ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION:()=>$he,ANTHROPIC_FOUNDRY_RESOURCE:()=>Lhe,ANTHROPIC_FOUNDRY_BASE_URL:()=>Nhe,ANTHROPIC_BEDROCK_SERVICE_TIER:()=>Qhe,ANTHROPIC_BEDROCK_MANTLE_BASE_URL:()=>whe,ANTHROPIC_BEDROCK_BASE_URL:()=>vhe,ANTHROPIC_BASE_URL:()=>bhe,ANTHROPIC_AWS_WORKSPACE_ID:()=>khe,ANTHROPIC_AWS_BASE_URL:()=>She,AGENT_PROXY_URL:()=>eme});var mhe=l.bool(),Ehe=l.bool(),Che=l.bool(),Ihe=l.bool(),yhe=l.bool(),Bhe=l.bool(),bhe=l.str(),xhe=l.bool(),_he=l.str(),vhe=l.str(),Qhe=l.str(),whe=l.str(),She=l.str(),khe=l.str(),Dhe=l.str(),Rhe=l.str(),The=l.str(),Nhe=l.str(),Lhe=l.str(),Uhe=l.str(),Ohe=l.str(),Fhe=l.str(),Mhe=l.str(),Phe=l.str(),$he=l.str(),Hhe=l.str(),Ghe=l.bool(),zhe=l.bool(),Yhe=l.bool(),jhe=l.bool(),Vhe=l.str(),Jhe=l.bool(),qhe=l.str(),Whe=l.int(),Zhe=l.bool(),Khe=l.bool(),Xhe=l.bool(),eme=l.str(),tme=l.bool();var rme={...TB,...$B,...MB,...UB,...PB,...OB,...NB,...FB};function WP(e,t){let r=Object.create(t);for(let[n,o]of Object.entries(e)){let i=r,s;Object.defineProperty(r,n,{get:()=>{let a=process.env[n];if(a!==i)s=o.parse(a),i=a;return s},enumerable:!0,configurable:!0})}return Object.defineProperties(r,{set:{value:(n,o)=>{process.env[n]=kP(o)}},unset:{value:(n)=>{delete process.env[n]}}}),r}var Yn=WP(rme,SA),nme={},W9e=WP(nme,null);ur();qt();function Dg(e){let t=Promise.resolve();return()=>{let r=t.then(e);return t=r.catch(()=>{}),r}}var ZP=["bundled","system"],Qn=null,a6e=Dg(async()=>{let e=Yn.NODE_EXTRA_CA_CERTS;if(!e){if(Qn!==null)return Qn=null,KP(),!0;return!1}try{let t=await we().readFile(e,{encoding:"utf8"});if(Qn?.path===e&&Qn.content===t)return!1;Qn={path:e,content:t}}catch(t){if(Q(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${e}): ${t}`,{level:"error"}),Qn===null)return!1;Qn=null}return KP(),!0});function ome(){let e=Yn.CLAUDE_CODE_CERT_STORE;if(e){let t=[];for(let r of e.split(",")){let n=r.trim().toLowerCase();if(n==="bundled"||n==="system"){if(!t.includes(n))t.push(n)}else if(n)Q(`CA certs: unrecognized CLAUDE_CODE_CERT_STORE source '${n}', ignoring`,{level:"warn"})}return t.length>0?t:ZP}if(jC("--use-system-ca")||jC("--use-openssl-ca"))return["system"];return ZP}function ime(e){let{X509Certificate:t}=v("node:crypto"),r=Date.now(),n=0,o=e.filter((i)=>{try{let s=new t(i),a=new Date(s.validTo).getTime();if(Number.isNaN(a)||a>r)return!0;return n++,!1}catch{return!0}});if(n>0)Q(`CA certs: Dropped ${n} expired certificate(s) from system store`);return o}var kA=ie(()=>{let e=ome(),t=Yn.NODE_EXTRA_CA_CERTS,r=e.includes("bundled"),n=e.includes("system");Q(`CA certs: stores=${e.join(",")}, extraCertsPath=${t}`);let o=v("tls"),i=o.getCACertificates;if(!r&&n&&!i){Q("CA certs: stores=system but system CA API unavailable, deferring to runtime");return}let s=[];if(r)s.push(...o.rootCertificates),Q(`CA certs: Loaded ${o.rootCertificates.length} bundled root certificates`);if(n)try{let a=i?.("system");if(a&&a.length>0){let c=ime(a);s.push(...c),Q(`CA certs: Loaded ${c.length} system CA certificates`)}else if(Q(`CA certs: system store ${i?"returned empty":"unavailable"}`),!r)s.push(...o.rootCertificates)}catch(a){if(Q(`CA certs: Failed to load system CA certificates: ${a}`,{level:"error"}),!r)s.push(...o.rootCertificates)}if(t){if(Qn?.path!==t)try{let a=we().readFileSync(t,{encoding:"utf8"});Qn={path:t,content:a}}catch(a){Q(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${t}): ${a}`,{level:"error"})}if(Qn?.path===t)s.push(Qn.content),Q(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${t})`)}return s.length>0?nc(s):void 0});function KP(){kA.cache?.clear?.(),Q("Cleared CA certificates cache")}function HB(e,t){let r=t.lastIndexOf("/");if(r<0)return!1;let n=t.slice(0,r),o=t.slice(r+1);if(!/^\d+$/.test(o))return!1;let i=parseInt(o,10),s=XP(n);if(!s)return!1;if(s.zone)return!1;let a=XP(e);if(!a)return!1;let c=ame(a.bytes),u=s.bytes;if(c.length!==u.length)return!1;let A=u.length*8;if(i<0||i>A)return!1;return sme(c,u,i)}function sme(e,t,r){let n=r>>3;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;let o=r&7;if(o===0)return!0;let i=255<<8-o&255;return((e[n]??0)&i)===((t[n]??0)&i)}function ame(e){if(e.length!==16)return e;for(let t=0;t<10;t++)if(e[t]!==0)return e;if(e[10]!==255||e[11]!==255)return e;return e.slice(12)}function XP(e){if(e==="")return null;let t="",r=e,n=e.indexOf("%");if(n>=0)t=e.slice(n+1),r=e.slice(0,n);if(r.includes(":")){let i=cme(r);return i?{bytes:i,zone:t}:null}if(t)return null;let o=e$(r);return o?{bytes:o,zone:""}:null}function e$(e){let t=e.split(".");if(t.length!==4)return null;let r=new Uint8Array(4);for(let n=0;n<4;n++){let o=t[n];if(o===void 0||o===""||!/^\d{1,3}$/.test(o))return null;if(o.length>1&&o.startsWith("0"))return null;let i=parseInt(o,10);if(i>255)return null;r[n]=i}return r}function cme(e){let t=null,r=e,n=e.lastIndexOf(":");if(n>=0&&e.slice(n+1).includes(".")){if(t=e$(e.slice(n+1)),!t)return null;r=e.slice(0,n+1)}let o=r.split("::");if(o.length>2)return null;let i=[],s=(c,u)=>{if(c==="")return[];let A=c.split(":"),p=[];for(let d=0;d<A.length;d++){let f=A[d];if(f===""&&u&&d===A.length-1)continue;if(f===void 0||f===""||!/^[0-9a-fA-F]{1,4}$/.test(f))return null;p.push(parseInt(f,16))}return p};if(o.length===1){let c=o[0]??"",u=s(c,t!==null);if(!u)return null;i.push(...u);let A=t?6:8;if(i.length!==A)return null}else{let c=o[0]??"",u=o[1]??"",A=s(c,!1),p=s(u,t!==null);if(!A||!p)return null;let d=t?2:0,f=8-A.length-p.length-d;if(f<1)return null;i.push(...A);for(let g=0;g<f;g++)i.push(0);if(i.push(...p),i.length+d!==8)return null}let a=new Uint8Array(16);for(let c=0;c<i.length;c++){let u=i[c];if(u===void 0)return null;a[c*2]=u>>8&255,a[c*2+1]=u&255}if(t)a[12]=t[0]??0,a[13]=t[1]??0,a[14]=t[2]??0,a[15]=t[3]??0;return a}tt();ur();cr();tt();qt();var yo=null,Bo=null;function t$(e,t){try{let r=we().readFileSync(e,{encoding:"utf8"});return Q(`mTLS: Loaded ${t}`),{path:e,content:r}}catch(r){return Q(`mTLS: Failed to load ${t}: ${r}`,{level:"error"}),null}}async function r$(e,t){try{let r=await we().readFile(e,{encoding:"utf8"});return Q(`mTLS: Loaded ${t}`),{path:e,content:r}}catch(r){return Q(`mTLS: Failed to load ${t}: ${r}`,{level:"error"}),null}}var h6e=Dg(async()=>{let e=Yn.CLAUDE_CODE_CLIENT_CERT,t=Yn.CLAUDE_CODE_CLIENT_KEY,r=!1;if(!e)r||=yo!==null,yo=null;else{let n=await r$(e,"client certificate from CLAUDE_CODE_CLIENT_CERT");r||=yo?.path!==n?.path||yo?.content!==n?.content,yo=n}if(!t)r||=Bo!==null,Bo=null;else{let n=await r$(t,"client key from CLAUDE_CODE_CLIENT_KEY");r||=Bo?.path!==n?.path||Bo?.content!==n?.content,Bo=n}if(r)lme();return r}),Rg=ie(()=>{let e={},t=Yn.CLAUDE_CODE_CLIENT_CERT;if(t){if(yo?.path!==t)yo=t$(t,"client certificate from CLAUDE_CODE_CLIENT_CERT");if(yo?.path===t)e.cert=yo.content}let r=Yn.CLAUDE_CODE_CLIENT_KEY;if(r){if(Bo?.path!==r)Bo=t$(r,"client key from CLAUDE_CODE_CLIENT_KEY");if(Bo?.path===r)e.key=Bo.content}let n=Yn.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE;if(n)e.passphrase=n,Q("mTLS: Using client key passphrase");if(Object.keys(e).length===0)return;return e}),ume=null;function yc(){let e=Rg(),t=kA();if(!e&&!t)return{};return{tls:{...e,...t&&{ca:t}}}}function lme(){Rg.cache.clear?.(),ume=null,Q("Cleared mTLS configuration cache")}aB();var SDe=!1;function kDe(e=process.env){return e.https_proxy||e.HTTPS_PROXY||e.http_proxy||e.HTTP_PROXY}function KJ(e=process.env){return e.no_proxy||e.NO_PROXY}function XJ(e,t=KJ()){if(!t)return!1;if(t==="*")return!0;try{let r=new URL(e),n=r.hostname.toLowerCase(),o=r.port||(r.protocol==="https:"?"443":"80"),i=`${n}:${o}`;return t.split(/[,\s]+/).filter(Boolean).some((a)=>{if(a=a.toLowerCase().trim(),a.includes(":"))return i===a;if(a.startsWith(".")){let c=a;return n===a.substring(1)||n.endsWith(c)}return n===a})}catch{return!1}}function ZJ(e,t){if(XJ(e,t))return!0;if(!t)return!1;let r;try{r=new URL(e).hostname.replace(/^\[|\]$/g,"")}catch{return!1}if(WJ(r)===0)return!1;return t.split(/[,\s]+/).filter(Boolean).some((n)=>{if(n.includes("/"))return HB(r,n);let o=WJ(n);if(o===0)return!1;return HB(r,`${n}/${o===4?32:128}`)})}var g8e=ie((e)=>{let t=qJ(),r=Rg(),n=kA(),o={httpProxy:e,httpsProxy:e,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(r||n){let i={...r&&{cert:r.cert,key:r.key,passphrase:r.passphrase},...n&&{ca:n}};o.connect=i,o.requestTls=i}return new t.EnvHttpProxyAgent(o)});var DDe=null;function RDe(){return DDe?.value??null}function A_(e){let t=process.env.API_FORCE_IDLE_TIMEOUT,r=e.forAnthropicAPI&&!fe(t)&&(e.hasBodyIdleWatchdog||ya(t)),n={...SDe&&{keepalive:!1},...r&&{timeout:!1}};if(e.forAnthropicAPI){let i=process.env.ANTHROPIC_UNIX_SOCKET;if(i)return{...n,unix:i}}let o=kDe();if(o){if(e.url&&XJ(e.url))return{...n,...yc()};let i=RDe();return{...n,proxy:i?{url:o,headers:{"Proxy-Authorization":i}}:o,...yc()}}if(e.fallbackProxy){if(e.url&&(ZJ(e.url,e.fallbackProxy.noProxy)||ZJ(e.url,KJ())))return{...n,...yc()};let i=yc();return{...n,proxy:e.fallbackProxy.url,...e.fallbackProxy.ca?{tls:{...i.tls,ca:e.fallbackProxy.ca}}:i}}return{...n,...yc()}}ol();qa();ur();var TDe=30000;function NDe(){return{activityCallback:null,refcount:0,mainLoopRefcount:0,activeReasons:new Map,oldestActivityStartedAt:null,heartbeatTimer:null,idleTimer:null,cleanupHandle:null}}var LDe="cli",eq=()=>LDe;var d_=new Map;function UDe(){let e=eq(),t=d_.get(e);if(!t)t=NDe(),d_.set(e,t);return t}function ODe(){return d_.get(eq())??null}function FDe(e){tq(e),e.heartbeatTimer=setInterval((t)=>{if(se("debug","session_keepalive_heartbeat",{refcount:t.refcount}),fe(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))t.activityCallback?.()},TDe,e)}function tq(e){if(e.idleTimer!==null)clearTimeout(e.idleTimer),e.idleTimer=null}function rq(e){let t=UDe();if(t.activityCallback=e,t.refcount>0&&t.heartbeatTimer===null)FDe(t)}function nq(){let e=ODe();if(!e)return;if(e.activityCallback=null,e.heartbeatTimer!==null)clearInterval(e.heartbeatTimer),e.heartbeatTimer=null;tq(e)}pn();import{mkdirSync as VDe,writeFileSync as JDe}from"fs";pn();tt();ur();St();import{closeSync as zDe,fchmodSync as E3e,constants as C3e,fstatSync as I3e,writeFileSync as y3e,fsyncSync as B3e,openSync as YDe,readSync as jDe}from"fs";Ja();lo();St();var b8e=new Int32Array(new SharedArrayBuffer(4));tt();ur();St();tt();qt();qt();lA();fn();lo();qt();cr();tt();qt();yB();import*as Dd from"path/win32";AA();var N8e=ie(()=>{let{existsSync:e}=we();if(process.env.CLAUDE_CODE_GIT_BASH_PATH){if(e(process.env.CLAUDE_CODE_GIT_BASH_PATH))return process.env.CLAUDE_CODE_GIT_BASH_PATH;console.error(`Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "${process.env.CLAUDE_CODE_GIT_BASH_PATH}"`),process.exit(1)}let t=["C:\\Program Files\\Git\\bin\\bash.exe","C:\\Program Files (x86)\\Git\\bin\\bash.exe"];for(let n of t)if(e(n))return n;let r=sB("git");if(r){let n=Dd.join(r,"..","..","bin","bash.exe");if(e(n))return n}return null});var L8e=ds((e)=>{if(e.startsWith("\\\\"))return e.replaceAll("\\","/");let t=e.match(/^([A-Za-z]):[/\\]/);if(t)return"/"+t[1].toLowerCase()+e.slice(2).replaceAll("\\","/");return e.replaceAll("\\","/")},(e)=>e,500),PDe=ds((e)=>{if(e.startsWith("//"))return e.replaceAll("/","\\");let t=e.match(/^\/cygdrive\/([A-Za-z])(\/|$)/);if(t){let n=t[1].toUpperCase(),o=e.slice(("/cygdrive/"+t[1]).length);return n+":"+(o||"\\").replaceAll("/","\\")}let r=e.match(/^\/([A-Za-z])(\/|$)/);if(r){let n=r[1].toUpperCase(),o=e.slice(2);return n+":"+(o||"\\").replaceAll("/","\\")}return e.replaceAll("/","\\")},(e)=>e,500);fn();ur();fn();AA();import{execFile as $De}from"child_process";import{promisify as HDe}from"util";var H8e=HDe($De);var Z8e=Buffer.from('{"type":"attribution-snapshot"'),K8e=Buffer.from('{"type":"system"'),GDe=10,X8e=Buffer.from([GDe]);Jt();function p_(e,{maxBytes:t}){let o=[];try{const r=Ge(o,Ke`fs.readBoundedSync(${e}, max ${t} bytes)`,0);let n=YDe(e,"r");try{let c=[],u=0,A=Buffer.alloc(8192);while(!0){let p=jDe(n,A,0,A.length,null);if(p===0)return Buffer.concat(c).toString("utf8");if(u+=p,u>t)throw new Hf(`refusing to read ${e}: content exceeds ${t} byte limit`,"readBoundedSync: content exceeds byte limit");c.push(Buffer.from(A.subarray(0,p)))}}finally{zDe(n)}}catch(i){var s=i,a=1}finally{ze(o,s,a)}}qt();var dm="/home/claude/.claude/remote",q3e=`${dm}/.oauth_token`,W3e=`${dm}/.api_key`,pm=`${dm}/.session_ingress_token`,oq=65536;function iq(e,t,r){if(!fe(process.env.CLAUDE_CODE_REMOTE))return;try{VDe(dm,{recursive:!0,mode:448}),JDe(e,t,{encoding:"utf8",mode:384}),Q(`Persisted ${r} to ${e} for subprocess access`)}catch(n){Q(`Failed to persist ${r} to disk (non-fatal): ${Be(n)}`,{level:"error"})}}function f_(e,t){try{let n=we().readFileSync(e,{encoding:"utf8"}).trim();if(!n)return null;return Q(`Read ${t} from well-known file ${e}`),n}catch(r){if(!tA(r))Q(`Failed to read ${t} from ${e}: ${Be(r)}`,{level:"debug"});return null}}tt();St();function qDe(){let e=UN();if(e!==void 0)return e;let t=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!t){let n=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??pm,o=f_(n,"session ingress token");return ba(o),o}let r=parseInt(t,10);if(Number.isNaN(r))return Q(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${t}`,{level:"error"}),ba(null),null;try{let n=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${r}`:`/proc/self/fd/${r}`,o=p_(n,{maxBytes:oq}).trim();if(!o)return Q("File descriptor contained empty token",{level:"error"}),ba(null),null;return Q(`Successfully read token from file descriptor ${r}`),ba(o),iq(pm,o,"session ingress token"),o}catch(n){Q(`Failed to read token from file descriptor ${r}: ${Be(n)}`,{level:"error"});let o=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??pm,i=f_(o,"session ingress token");return ba(i),i}}function g_(){let e=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(e)return e;return qDe()}function fm(){let e=g_();if(!e)return{};if(e.startsWith("sk-ant-sid")){let t={Cookie:`sessionKey=${e}`},r=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(r)t["X-Organization-Uuid"]=r;return t}return{Authorization:`Bearer ${e}`}}function sq(e){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=e}Jt();Jt();class Hs extends Error{retryAfterMs;constructor(e,t){super(e);this.retryAfterMs=t}}class Rd{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(e){this.config=e}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(e){if(this.closed)return;let t=Array.isArray(e)?e:[e];if(t.length===0)return;while(this.pending.length+t.length>this.config.maxQueueSize&&!this.closed)await new Promise((r)=>{this.backpressureResolvers.push(r)});if(this.closed)return;this.pending.push(...t),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((e)=>{this.flushResolvers.push(e)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let e of this.backpressureResolvers)e();this.backpressureResolvers=[];for(let e of this.flushResolvers)e();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let e=0;try{while(this.pending.length>0&&!this.closed){let t=this.takeBatch();if(t.length===0)continue;try{await this.config.send(t),e=0}catch(r){if(e++,this.config.maxConsecutiveFailures!==void 0&&e>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(t.length,e),e=0,this.releaseBackpressure();continue}this.pending=t.concat(this.pending);let n=r instanceof Hs?r.retryAfterMs:void 0;await this.sleep(this.retryDelay(e,n));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let t of this.flushResolvers)t();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:e,maxBatchBytes:t}=this.config;if(t===void 0)return this.pending.splice(0,e);let r=0,n=0;while(n<this.pending.length&&n<e){let o;try{o=Buffer.byteLength(Bt(this.pending[n]))}catch{this.pending.splice(n,1);continue}if(n>0&&r+o>t)break;r+=o,n++}return this.pending.splice(0,n)}retryDelay(e,t){let r=Math.random()*this.config.jitterMs;if(t!==void 0)return Math.max(this.config.baseDelayMs,Math.min(t,this.config.maxDelayMs))+r;return Math.min(this.config.baseDelayMs*2**(e-1),this.config.maxDelayMs)+r}releaseBackpressure(){let e=this.backpressureResolvers;this.backpressureResolvers=[];for(let t of e)t()}sleep(e){return new Promise((t)=>{this.sleepResolve=t,setTimeout((r,n)=>{r.sleepResolve=null,n()},e,this,t)})}}class h_{inflight=null;pending=null;closed=!1;config;constructor(e){this.config=e}enqueue(e){if(this.closed)return;this.pending=this.pending?aq(this.pending,e):e,this.drain()}close(){this.closed=!0,this.pending=null}async flush(){while(!this.closed)if(this.inflight)await this.inflight;else if(this.pending)await this.drain();else return}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let e=this.pending;this.pending=null,this.inflight=this.sendWithRetry(e).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(e){let t=e,r=0;while(!this.closed){if(await this.config.send(t))return;if(r++,await zn(this.retryDelay(r)),this.pending&&!this.closed)t=aq(t,this.pending),this.pending=null}}retryDelay(e){let t=Math.min(this.config.baseDelayMs*2**(e-1),this.config.maxDelayMs),r=Math.random()*this.config.jitterMs;return t+r}}function aq(e,t){let r={...e};for(let[n,o]of Object.entries(t))if((n==="external_metadata"||n==="internal_metadata")&&r[n]&&typeof r[n]==="object"&&typeof o==="object"&&o!==null)r[n]={...r[n],...o};else r[n]=o;return r}var WDe=20000,ZDe=100,uq=61440,m_=1536;function Gs(e){return e===400||e===413||e===422}function lq(e){let t=dr(e);if(t)return t;if(e&&typeof e==="object"&&"name"in e&&typeof e.name==="string")return e.name;return}class gm extends Error{reason;httpStatus;constructor(e,t){super(`CCRClient init failed: ${e}`);this.reason=e;this.httpStatus=t}}var KDe=10,XDe=3,eRe=1e4;class E_{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;consecutiveNotFound=0;currentState=null;sessionBaseUrl;sessionId;streamEventBuffer=[];streamEventTimer=null;streamedEphemeralSinceLastAssistant=!1;workerState;eventUploader;internalEventUploader;onInternalBatchAcked;deliveryUploader;pendingProcessingAcks=[];onEpochMismatch;getAuthHeaders;onDiagnostic;constructor(e,t,r){if(this.onEpochMismatch=r?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=r?.heartbeatIntervalMs??WDe,this.heartbeatJitterFraction=r?.heartbeatJitterFraction??0,this.getAuthHeaders=r?.getAuthHeaders??fm,this.onDiagnostic=r?.onDiagnostic,t.protocol!=="http:"&&t.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${t.protocol}`);let n=t.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${t.protocol}//${t.host}${n}`,this.sessionId=n.split("/").pop()||"",this.workerState=new h_({send:async(o)=>{let i=await this.request("put","/worker",{worker_epoch:this.workerEpoch,...o},"PUT worker");if(i.ok)return!0;if(Gs(i.status))return se("warn","cli_worker_state_4xx_dropped",{status:i.status}),!0;return!1},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new Rd({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(o)=>{let i=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:o},"client events");if(i.ok)return;if(Gs(i.status)){let s=o.filter((c)=>!c.ephemeral),a=o.length-s.length;if(a>0){if(Q(`CCRClient: client event POST rejected (${i.status}) — dropping ${a} ephemeral event(s), retrying ${s.length} durable event(s)`,{level:"warn"}),Cn("ccr_partial_messages","ephemeral_dropped_on_4xx"),o.splice(0,o.length,...s),s.length===0)return;let c=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:s},"client events (durable retry)");if(c.ok)return;if(!Gs(c.status))throw new Hs("client event POST failed",c.retryAfterMs)}if(s.length>0)this.droppedDurableEventBatches++;se("warn","cli_worker_events_4xx_dropped",{status:i.status,count:s.length});return}throw new Hs("client event POST failed",i.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new Rd({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(o)=>{let i=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:o},"internal events");if(i.ok){Promise.resolve().then(()=>this.onInternalBatchAcked?.(o)).catch(()=>{});return}if(Gs(i.status)){se("warn","cli_worker_internal_events_4xx_dropped",{status:i.status,count:o.length});return}throw new Hs("internal event POST failed",i.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new Rd({maxBatchSize:64,maxQueueSize:64,send:async(o)=>{let i=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:o.map((s)=>({event_id:s.eventId,status:s.status}))},"delivery batch");if(i.ok)return;if(Gs(i.status)){se("warn","cli_worker_delivery_4xx_dropped",{status:i.status,count:o.length});return}throw new Hs("delivery POST failed",i.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),e.setOnEvent((o)=>{this.reportDelivery(o.event_id,"received")})}async initialize(e){let t=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new gm("no_auth_headers");if(e===void 0){let u=process.env.CLAUDE_CODE_WORKER_EPOCH;e=u?parseInt(u,10):NaN}if(isNaN(e))throw new gm("missing_epoch");this.workerEpoch=e;let r=this.getWorkerState();await Promise.race([r.catch(()=>null),zn(eRe)]);let n={ok:!1},o=new Set,i=10,s=0;for(let u=1;u<=i;u++){if(s=u,n=await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)"),n.ok||this.closed)break;if(n.reason)o.add(n.reason);if(this.onDiagnostic?.(`PUT /worker failed (${n.reason??"unknown"}) attempt=${u}/${i}, ${Math.round((Date.now()-t)/1000)}s elapsed`),Gs(n.status))break;if(u<i){let A=Math.min(500*2**(u-1),30000)+Math.random()*500;await zn(A)}}if(!n.ok){if(!this.closed)se("error","cli_worker_init_put_retries_exhausted"),this.onDiagnostic?.(`PUT /worker retries exhausted: ${s} attempts over ${Math.round((Date.now()-t)/1000)}s, errors=[${[...o].join(",")||"unknown"}]`);throw new gm("worker_register_failed",n.status)}this.currentState="idle",this.startHeartbeat(),rq(()=>{this.writeEvent({type:"keep_alive"})}),Q(`CCRClient: initialized, epoch=${this.workerEpoch}`),se("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-t});let{metadata:a,durationMs:c}=await r;if(!this.closed)se("info","cli_worker_state_restored",{duration_ms:c,had_state:a.external!==null||a.internal!==null});return a}async getWorkerState(){let e=Date.now(),t=this.getAuthHeaders();if(Object.keys(t).length===0)return{metadata:{external:null,internal:null},durationMs:0};let r=await this.getWithRetry(`${this.sessionBaseUrl}/worker`,t,"worker_state");return{metadata:{external:r?.worker?.external_metadata??null,internal:r?.worker?.internal_metadata??null},durationMs:Date.now()-e}}async request(e,t,r,n,{timeout:o=1e4}={}){let i=this.getAuthHeaders();if(Object.keys(i).length===0)return{ok:!1,reason:"no_auth_headers"};let s=`${this.sessionBaseUrl}${t}`;try{let a=await fetch(s,{method:e.toUpperCase(),headers:{...i,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-client-platform":Ga(),"User-Agent":ni()},body:Bt(r),signal:AbortSignal.timeout(o),...A_({url:s})});if(a.body?.cancel(),a.ok)return this.consecutiveAuthFailures=0,this.consecutiveNotFound=0,{ok:!0};if(a.status===409)this.handleEpochMismatch();if(a.status===404){if(this.consecutiveNotFound++,this.consecutiveNotFound>=XDe)Q(`CCRClient: ${this.consecutiveNotFound} consecutive 404s — session gone, exiting`,{level:"error"}),se("error","cli_worker_session_not_found"),this.onDiagnostic?.(`${this.consecutiveNotFound} consecutive 404s on ${t} — session gone, exiting`),this.onEpochMismatch()}if(a.status===401||a.status===403){let c=g_(),u=c?nP(c):null;if(u!==null&&u*1000<Date.now())Q(`CCRClient: session_token expired (exp=${new Date(u*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),se("error","cli_worker_token_expired_no_refresh"),this.onDiagnostic?.(`session_token expired (exp=${new Date(u*1000).toISOString()}) — no refresh delivered, exiting`),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=KDe)Q(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),se("error","cli_worker_auth_failures_exhausted"),this.onDiagnostic?.(`${this.consecutiveAuthFailures} consecutive auth failures (HTTP ${a.status}) with valid-looking token — exiting`),this.onEpochMismatch()}if(Q(`CCRClient: ${n} returned ${a.status}`,{level:"warn"}),se("warn","cli_worker_request_failed",{method:e,path:t,status:a.status}),a.status===429){let c=a.headers.get("retry-after"),u=c?parseInt(c,10):NaN;if(!isNaN(u)&&u>=0)return{ok:!1,retryAfterMs:u*1000,status:a.status,reason:`http_${a.status}`}}return{ok:!1,status:a.status,reason:`http_${a.status}`}}catch(a){return Q(`CCRClient: ${n} failed: ${Be(a)}`,{level:"warn"}),se("warn","cli_worker_request_error",{method:e,path:t,error_code:lq(a)}),{ok:!1,reason:`fetch_failed:${lq(a)}`}}}reportState(e,t){if(e===this.currentState&&!t)return;this.currentState=e,this.workerState.enqueue({worker_status:e,requires_action_details:t?{tool_name:t.tool_name,display_tool_name:t.display_tool_name,action_description:t.action_description,raw_command:t.raw_command,request_id:t.request_id,tool_use_id:t.tool_use_id}:null})}reportMetadata(e){this.workerState.enqueue({external_metadata:tRe(e)})}reportInternalMetadata(e){this.workerState.enqueue({internal_metadata:e})}handleEpochMismatch(){Q("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),se("error","cli_worker_epoch_mismatch"),this.onDiagnostic?.(`worker epoch mismatch (409), epoch=${this.workerEpoch} — superseded by a newer worker, exiting`),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let e=()=>{let r=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(t,this.heartbeatIntervalMs+r)},t=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;e()};e()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)Q("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(e){if(e.type==="stream_event"){if(this.streamEventBuffer.push(e),this.streamedEphemeralSinceLastAssistant=!0,!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),ZDe);return}if(await this.flushStreamEventBuffer(),e.type==="assistant"&&this.streamedEphemeralSinceLastAssistant)En("ccr_partial_messages"),this.streamedEphemeralSinceLastAssistant=!1;await this.eventUploader.enqueue(this.toClientEvent(e))}toClientEvent(e){let t=e,r=t.historical===!0,n=e.type==="system"&&t.subtype==="thinking_tokens";return{payload:{...t,uuid:typeof t.uuid==="string"?t.uuid:cq()},...r&&{historical:!0},...n&&{ephemeral:!0}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let e=this.streamEventBuffer;this.streamEventBuffer=[];let t=e.filter((r)=>{if(Buffer.byteLength(Bt(r))<=uq)return!0;return Q(`CCRClient: dropping oversize ephemeral stream_event (>${uq} bytes)`,{level:"warn"}),Cn("ccr_partial_messages","oversize_ephemeral_skipped"),!1});await this.eventUploader.enqueue(t.map((r)=>({payload:r,ephemeral:!0})))}async writeInternalEvent(e,t,{isCompaction:r=!1,agentId:n,preservedEventIds:o}={}){let i=o;if(i&&i.length>m_)mn("tengu_ccr_preserved_event_ids_clamped",{originalCount:i.length,cap:m_}),i=i.slice(-m_);let s={payload:{type:e,...t,uuid:typeof t.uuid==="string"?t.uuid:cq()},...r&&{is_compaction:!0},...n&&{session_agent_id:n},...i?.length&&{preserved_event_ids:i}};await this.internalEventUploader.enqueue(s)}flushInternalEvents(){return this.internalEventUploader.flush()}flushDeliveryAcks(){return this.deliveryUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}droppedDurableEventBatches=0;get droppedDurableBatches(){return this.droppedDurableEventBatches}async flushWorkerState(){return this.workerState.flush()}async readInternalEvents(e){return this.paginatedGet("/worker/internal-events",{limit:"1000",...e&&{after_event_id:e}},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true",limit:"1000"},"subagent_events")}async paginatedGet(e,t,r){let n=this.getAuthHeaders();if(Object.keys(n).length===0)return null;let o=[],i,s=0,a=0,c=null;do{let u=new URL(`${this.sessionBaseUrl}${e}`);for(let[f,g]of Object.entries(t))u.searchParams.set(f,g);if(i)u.searchParams.set("cursor",i),u.searchParams.delete("after_event_id");let A=!i&&t.after_event_id!==void 0,p,d=await this.getWithRetry(u.toString(),n,r,(f)=>{s++,c??=f.headers.get("content-encoding");let g=f.headers.get("content-length");if(g!==null&&a!==null)a+=Number(g);else a=null},(f,g)=>{if(!A)return;if(f===400)p="rejected";else if(g==="after_event_id_not_found")p="not-found"});if(!d){if(p){Q(`CCRClient: after_event_id ${p==="rejected"?"rejected by server (gate off)":"not found (stale anchor)"} — refetching without anchor`,{level:"warn"}),se("warn",p==="rejected"?"cli_worker_after_event_id_rejected":"cli_worker_after_event_id_not_found",{context:r});let{after_event_id:f,...g}=t,m=await this.paginatedGet(e,g,r);if(!m)return null;return{...m,anchorFallback:p}}return null}o.push(...d.data??[]),i=d.next_cursor}while(i);return Q(`CCRClient: Read ${o.length} internal events from ${e}${t.subagents?" (subagents)":""}`),{events:o,stats:{pageCount:s,bytesReceived:a,contentEncoding:c??"none"}}}async getWithRetry(e,t,r,n,o){for(let i=1;i<=10;i++){let s;try{if(s=await fetch(e,{headers:{...t,"anthropic-version":"2023-06-01","anthropic-client-platform":Ga(),"User-Agent":ni()},signal:AbortSignal.timeout(30000),...A_({url:e})}),s.ok){let c=await s.json();return n?.(s),c}}catch(c){if(Q(`CCRClient: GET ${e} failed (attempt ${i}/10): ${Be(c)}`,{level:"warn"}),i<10){let u=Math.min(500*2**(i-1),30000)+Math.random()*500;await zn(u)}continue}let a;if(s.status===404&&o)try{let c=await s.json();if(typeof c?.error?.type==="string")a=c.error.type}catch{}else s.body?.cancel();if(s.status===409)this.handleEpochMismatch();if(Gs(s.status)||a==="after_event_id_not_found")return Q(`CCRClient: GET ${e} returned ${s.status} — permanent, not retrying`,{level:"warn"}),o?.(s.status,a),null;if(Q(`CCRClient: GET ${e} returned ${s.status} (attempt ${i}/10)`,{level:"warn"}),i<10){let c=Math.min(500*2**(i-1),30000)+Math.random()*500;await zn(c)}}return Q("CCRClient: GET retries exhausted",{level:"error"}),se("error","cli_worker_get_retries_exhausted",{context:r}),null}reportDelivery(e,t){if(t==="processing"){if(this.closed)return;if(this.pendingProcessingAcks.push(e)===1)queueMicrotask(()=>{let r=this.pendingProcessingAcks;if(this.pendingProcessingAcks=[],this.closed||r.length===0)return;this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:r.map((n)=>({event_id:n,status:"processing"}))},"processing ack")});return}this.deliveryUploader.enqueue({eventId:e,status:t})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),nq(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.pendingProcessingAcks=[],this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}function tRe(e){let t=e.post_turn_summary;if(!rRe(t)||t.status_category!=="blocked")return e;return{...e,post_turn_summary:{...t,status_category:"need_input"}}}function rRe(e){return e!==null&&typeof e==="object"&&"status_category"in e&&typeof e.status_category==="string"}ga();var nRe={stream:!0};function Aq(e,t){let r=e.charCodeAt(t);if(r===10)return 1;if(r===13){if(t+1>=e.length)return-1;return e.charCodeAt(t+1)===10?2:1}return 0}function oRe(e,t){let r=t;while(r<e.length){let n=Aq(e,r);if(n===0){r++;continue}if(n===-1)return null;let o=r+n;if(o>=e.length)return null;let i=Aq(e,o);if(i===-1)return null;if(i>0)return{contentEnd:r,afterDelim:o+i};r=o}return null}function dq(e){if(!/\S/.test(e))return null;let t={},r=!1;for(let n of e.split(/\r\n|\r|\n/)){if(n.startsWith(":")){r=!0;continue}let o=n.indexOf(":");if(o===-1)continue;let i=n.slice(0,o),s=n[o+1]===" "?n.slice(o+2):n.slice(o+1);switch(i){case"event":t.event=s;break;case"id":t.id=s;break;case"data":t.data=t.data?t.data+`
131
131
  `+s:s;break}}return t.data||r?t:null}class C_{decoder=new TextDecoder;pending=[];pendingLength=0;push(e){let t=typeof e==="string"?e:this.decoder.decode(e,nRe);if(!t)return[];return this.drain(t)}flush(){let e=this.decoder.decode();if(e)this.pending.push(e),this.pendingLength+=e.length;let t=this.joinPending();this.pending=[],this.pendingLength=0;let r=dq(t);return r?[r]:[]}buffered(){return this.joinPending()}drain(e){let t=[],r=this.pendingLength,n=Math.min(3,r),o=this.tail(n)+e,i=r-n,s=0,a=-1;for(;;){let c=oRe(o,s);if(!c)break;let u=i+c.contentEnd,A;if(a===-1){let d=this.joinPending();A=u<=r?d.slice(0,u):d+e.slice(0,u-r)}else A=e.slice(a-r,u-r);let p=dq(A);if(p)t.push(p);a=i+c.afterDelim,s=c.afterDelim}if(a===-1)this.pending.push(e),this.pendingLength=r+e.length;else{let c=e.slice(a-r);this.pending=c?[c]:[],this.pendingLength=c.length}return t}tail(e){if(e<=0)return"";let t=e,r="";for(let n=this.pending.length-1;n>=0&&t>0;n--){let o=this.pending[n];if(o.length<=t)r=o+r,t-=o.length;else r=o.slice(o.length-t)+r,t=0}return r}joinPending(){return this.pending.length===1?this.pending[0]:this.pending.join("")}}tt();qa();St();Jt();ur();var pq={},iRe={};var sRe=!1;function fq(e,t,r){if(sRe)return;if(e==="skills_load_ms"&&pq[e]!==void 0)return;if(pq[e]=Math.round(t),r!==void 0)iRe[e]=Math.round(r)}var aRe=1000,cRe=30000,gq=45000,uRe=new Set([401,403,404]),Td=10,lRe=500,ARe=8000;function dRe(){return!0}class I_{url;state="idle";onData;onCloseCallback;onEventCallback;eventFilter;onDiagnostic;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;connectErrorsSeen=new Set;livenessTimer=null;postUrl;constructor(e,t={},r,n,o,i){this.url=e;if(this.headers=t,this.sessionId=r,this.refreshHeaders=n,this.getAuthHeaders=i??fm,this.postUrl=pRe(e),o!==void 0&&o>0)this.lastSequenceNum=o;Q(`SSETransport: SSE URL = ${e.href}`),Q(`SSETransport: POST URL = ${this.postUrl}`),se("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Q(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),se("error","cli_sse_connect_failed");return}this.state="reconnecting";let e=Date.now(),t=new URL(this.url.href);if(this.lastSequenceNum>0)t.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let r=this.getAuthHeaders(),n={...this.headers,...r,Accept:"text/event-stream","anthropic-version":"2023-06-01","anthropic-client-platform":Ga(),"User-Agent":ni()};if(r.Cookie)delete n.Authorization;if(this.lastSequenceNum>0)n["Last-Event-ID"]=String(this.lastSequenceNum);Q(`SSETransport: Opening ${t.href}`),se("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let o=await fetch(t.href,{headers:n,signal:this.abortController.signal});if(!o.ok){let s=uRe.has(o.status);if(Q(`SSETransport: HTTP ${o.status}${s?" (permanent)":""}`,{level:"error"}),se("error","cli_sse_connect_http_error",{status:o.status}),this.connectErrorsSeen.add(`http_${o.status}`),this.diagConnectFailure(`HTTP ${o.status}${s?" (permanent)":""}`,e),s){this.state="closed",this.onCloseCallback?.(o.status);return}this.handleConnectionError();return}if(!o.body){Q("SSETransport: No response body"),this.connectErrorsSeen.add("no_response_body"),this.diagConnectFailure("no response body",e),this.handleConnectionError();return}let i=Date.now()-e;if(Q("SSETransport: Connected"),se("info","cli_sse_connect_connected",{duration_ms:i}),this.reconnectAttempts===0)fq("sse_connect_ms",i,e-performance.timeOrigin);if(this.reconnectAttempts>0){let s=this.reconnectStartTime?Math.round((Date.now()-this.reconnectStartTime)/1000):0;this.onDiagnostic?.(`SSE reconnected after ${this.reconnectAttempts} attempt(s), ${s}s downtime`+(this.connectErrorsSeen.size>0?`, errors=[${[...this.connectErrorsSeen].join(",")}]`:""))}else this.onDiagnostic?.(`SSE connected in ${i}ms`);this.connectErrorsSeen.clear(),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(o.body)}catch(o){if(this.abortController?.signal.aborted)return;Q(`SSETransport: Connection error: ${Be(o)}`,{level:"error"}),se("error","cli_sse_connect_error"),this.connectErrorsSeen.add("fetch_failed"),this.diagConnectFailure(Be(o),e),this.handleConnectionError()}}diagConnectFailure(e,t){if(!this.onDiagnostic)return;let r=this.reconnectAttempts+1;if(r>3&&r%10!==0)return;let n=Date.now()-t,o=this.reconnectStartTime?`, ${Math.round((Date.now()-this.reconnectStartTime)/1000)}s reconnecting`:"",i=this.connectErrorsSeen.size>1?`, errors=[${[...this.connectErrorsSeen].join(",")}]`:"";this.onDiagnostic(`SSE connect failed (${e}) attempt=${r} took=${n}ms${o}${i}`)}async readStream(e){let t=e.getReader(),r=new C_;try{while(!0){let{done:n,value:o}=await t.read();if(n)break;for(let i of r.push(o)){if(this.resetLivenessTimer(),i.id){let s=parseInt(i.id,10);if(!isNaN(s)){if(this.seenSequenceNums.has(s))Q(`SSETransport: DUPLICATE frame seq=${s} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),se("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(s),this.seenSequenceNums.size>1000){let a=this.lastSequenceNum-200;for(let c of this.seenSequenceNums)if(c<a)this.seenSequenceNums.delete(c)}if(s>this.lastSequenceNum)this.lastSequenceNum=s}}if(i.event&&i.data)this.handleSSEFrame(i.event,i.data);else if(i.data)Q("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),se("warn","cli_sse_frame_missing_event_field")}}}catch(n){if(this.abortController?.signal.aborted)return;Q(`SSETransport: Stream read error: ${Be(n)}`,{level:"error"}),se("error","cli_sse_stream_read_error")}finally{t.releaseLock()}if(this.state!=="closing"&&this.state!=="closed"){if(Q("SSETransport: Stream ended, reconnecting"),this.state==="connected")this.connectErrorsSeen.add("stream_ended"),this.onDiagnostic?.("SSE stream ended by server, reconnecting");this.handleConnectionError()}}handleSSEFrame(e,t){if(e!=="client_event"){Q(`SSETransport: Unexpected SSE event type '${e}' on worker stream`,{level:"warn"}),se("warn","cli_sse_unexpected_event_type",{event_type:e});return}let r;try{r=ri(t)}catch(o){Q(`SSETransport: Failed to parse client_event data: ${Be(o)}`,{level:"error"});return}let n=r.payload;if(n&&typeof n==="object"&&"type"in n){let o=this.sessionId?` session=${this.sessionId}`:"",i=r.device_attestation_status?` attestation=${r.device_attestation_status}`:"";if(Q(`SSETransport: Event seq=${r.sequence_num} event_id=${r.event_id} event_type=${r.event_type} payload_type=${String(n.type)}${i}${o}`),se("info","cli_sse_message_received"),this.eventFilter?.(r))se("warn","cli_sse_event_filtered");else this.onData?.(Bt(n)+`
132
132
  `)}else Q(`SSETransport: Ignoring client_event with no type in payload: event_id=${r.event_id}`);this.onEventCallback?.(r)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let e=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=e;let t=e-this.reconnectStartTime;if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let o=this.refreshHeaders();Object.assign(this.headers,o),Q("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let r=Math.min(aRe*Math.pow(2,this.reconnectAttempts-1),cRe),n=Math.max(0,r+r*0.25*(2*Math.random()-1));Q(`SSETransport: Reconnecting in ${Math.round(n)}ms (attempt ${this.reconnectAttempts}, ${Math.round(t/1000)}s elapsed)`),se("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}onLivenessTimeout=()=>{this.livenessTimer=null,Q("SSETransport: Liveness timeout, reconnecting",{level:"error"}),se("error","cli_sse_liveness_timeout"),this.connectErrorsSeen.add("liveness_timeout"),this.onDiagnostic?.(`SSE liveness timeout — no frame in ${gq/1000}s, reconnecting`),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,gq)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(e){let t=this.getAuthHeaders();if(Object.keys(t).length===0){Q("SSETransport: No session token available for POST"),se("warn","cli_sse_post_no_token");return}let r={...t,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-client-platform":Ga(),"User-Agent":ni()};Q(`SSETransport: POST body keys=${Object.keys(e).join(",")}`);for(let n=1;n<=Td;n++){try{let i=await jt.post(this.postUrl,e,{headers:r,validateStatus:dRe});if(i.status===200||i.status===201){Q(`SSETransport: POST success type=${e.type}`);return}if(Q(`SSETransport: POST ${i.status} body=${Bt(i.data).slice(0,200)}`),i.status>=400&&i.status<500&&i.status!==429){Q(`SSETransport: POST returned ${i.status} (client error), not retrying`),se("warn","cli_sse_post_client_error",{status:i.status});return}Q(`SSETransport: POST returned ${i.status}, attempt ${n}/${Td}`),se("warn","cli_sse_post_retryable_error",{status:i.status,attempt:n})}catch(i){Q(`SSETransport: POST error: ${Be(i)}, attempt ${n}/${Td}`),se("warn","cli_sse_post_network_error",{attempt:n})}if(n===Td){Q(`SSETransport: POST failed after ${Td} attempts, continuing`),se("warn","cli_sse_post_retries_exhausted");return}let o=Math.min(lRe*Math.pow(2,n-1),ARe);await zn(o)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(e){this.onData=e}setOnClose(e){this.onCloseCallback=e}setOnEvent(e){this.onEventCallback=e}setOnDiagnostic(e){this.onDiagnostic=e}setEventFilter(e){this.eventFilter=e}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}[Symbol.dispose](){this.close()}}function pRe(e){let t=e.pathname;if(t.endsWith("/stream"))t=t.slice(0,-7);return`${e.protocol}//${e.host}${t}`}tt();St();var Ks={};ft(Ks,{xid:()=>pTe,void:()=>NTe,uuidv7:()=>sTe,uuidv6:()=>iTe,uuidv4:()=>oTe,uuid:()=>nTe,url:()=>aTe,uppercase:()=>rp,unknown:()=>aE,union:()=>fE,undefined:()=>RTe,ulid:()=>dTe,uint64:()=>kTe,uint32:()=>QTe,tuple:()=>$Te,trim:()=>cp,treeifyError:()=>T_,transform:()=>HS,toUpperCase:()=>lp,toLowerCase:()=>up,toJSONSchema:()=>cS,templateLiteral:()=>WTe,symbol:()=>DTe,superRefine:()=>kW,success:()=>JTe,stringbool:()=>eNe,stringFormat:()=>bTe,string:()=>mS,strictObject:()=>FTe,startsWith:()=>op,size:()=>Xd,setErrorMap:()=>oNe,set:()=>zTe,safeParseAsync:()=>hS,safeParse:()=>gS,registry:()=>Rm,regexes:()=>Vs,regex:()=>ep,refine:()=>SW,record:()=>iW,readonly:()=>bW,property:()=>Xw,promise:()=>ZTe,prettifyError:()=>N_,preprocess:()=>rNe,prefault:()=>hW,positive:()=>qw,pipe:()=>lE,partialRecord:()=>HTe,parseAsync:()=>fS,parse:()=>pS,overwrite:()=>Po,optional:()=>cE,object:()=>OTe,number:()=>zq,nullish:()=>VTe,nullable:()=>uE,null:()=>qq,normalize:()=>ap,nonpositive:()=>Zw,nonoptional:()=>mW,nonnegative:()=>Kw,never:()=>AE,negative:()=>Ww,nativeEnum:()=>YTe,nanoid:()=>uTe,nan:()=>qTe,multipleOf:()=>Ws,minSize:()=>Zs,minLength:()=>Ni,mime:()=>sp,maxSize:()=>bu,maxLength:()=>xu,map:()=>GTe,lte:()=>sn,lt:()=>Fo,lowercase:()=>tp,looseObject:()=>MTe,locales:()=>Wd,literal:()=>lW,length:()=>_u,lazy:()=>vW,ksuid:()=>fTe,keyof:()=>UTe,jwt:()=>BTe,json:()=>tNe,iso:()=>iE,ipv6:()=>hTe,ipv4:()=>gTe,intersection:()=>nW,int64:()=>STe,int32:()=>vTe,int:()=>ES,instanceof:()=>XTe,includes:()=>np,guid:()=>rTe,gte:()=>Br,gt:()=>Mo,globalRegistry:()=>so,getErrorMap:()=>iNe,function:()=>aS,formatError:()=>zd,float64:()=>_Te,float32:()=>xTe,flattenError:()=>Gd,file:()=>jTe,enum:()=>cW,endsWith:()=>ip,emoji:()=>cTe,email:()=>tTe,e164:()=>yTe,discriminatedUnion:()=>PTe,date:()=>LTe,custom:()=>KTe,cuid2:()=>ATe,cuid:()=>lTe,core:()=>$o,config:()=>vt,coerce:()=>jS,clone:()=>zr,cidrv6:()=>ETe,cidrv4:()=>mTe,check:()=>wW,catch:()=>IW,boolean:()=>Yq,bigint:()=>wTe,base64url:()=>ITe,base64:()=>CTe,array:()=>FS,any:()=>TTe,_default:()=>fW,_ZodString:()=>CS,ZodXID:()=>QS,ZodVoid:()=>Xq,ZodUnknown:()=>Zq,ZodUnion:()=>MS,ZodUndefined:()=>Vq,ZodUUID:()=>Ho,ZodURL:()=>yS,ZodULID:()=>vS,ZodType:()=>he,ZodTuple:()=>oW,ZodTransform:()=>$S,ZodTemplateLiteral:()=>xW,ZodSymbol:()=>jq,ZodSuccess:()=>EW,ZodStringFormat:()=>Je,ZodString:()=>pp,ZodSet:()=>aW,ZodRecord:()=>PS,ZodRealError:()=>vu,ZodReadonly:()=>BW,ZodPromise:()=>QW,ZodPrefault:()=>gW,ZodPipe:()=>YS,ZodOptional:()=>GS,ZodObject:()=>pE,ZodNumberFormat:()=>Qu,ZodNumber:()=>fp,ZodNullable:()=>dW,ZodNull:()=>Jq,ZodNonOptional:()=>zS,ZodNever:()=>Kq,ZodNanoID:()=>bS,ZodNaN:()=>yW,ZodMap:()=>sW,ZodLiteral:()=>uW,ZodLazy:()=>_W,ZodKSUID:()=>wS,ZodJWT:()=>US,ZodIssueCode:()=>nNe,ZodIntersection:()=>rW,ZodISOTime:()=>nE,ZodISODuration:()=>oE,ZodISODateTime:()=>tE,ZodISODate:()=>rE,ZodIPv6:()=>kS,ZodIPv4:()=>SS,ZodGUID:()=>sE,ZodFile:()=>AW,ZodError:()=>X0e,ZodEnum:()=>dp,ZodEmoji:()=>BS,ZodEmail:()=>IS,ZodE164:()=>LS,ZodDiscriminatedUnion:()=>tW,ZodDefault:()=>pW,ZodDate:()=>dE,ZodCustomStringFormat:()=>Gq,ZodCustom:()=>gE,ZodCatch:()=>CW,ZodCUID2:()=>_S,ZodCUID:()=>xS,ZodCIDRv6:()=>RS,ZodCIDRv4:()=>DS,ZodBoolean:()=>gp,ZodBigIntFormat:()=>OS,ZodBigInt:()=>hp,ZodBase64URL:()=>NS,ZodBase64:()=>TS,ZodArray:()=>eW,ZodAny:()=>Wq,TimePrecision:()=>Bw,NEVER:()=>y_,$output:()=>Ew,$input:()=>Cw,$brand:()=>B_});var $o={};ft($o,{version:()=>kv,util:()=>P,treeifyError:()=>T_,toJSONSchema:()=>cS,toDotPath:()=>Eq,safeParseAsync:()=>U_,safeParse:()=>L_,registry:()=>Rm,regexes:()=>Vs,prettifyError:()=>N_,parseAsync:()=>Im,parse:()=>Em,locales:()=>Wd,isValidJWT:()=>Uq,isValidBase64URL:()=>Lq,isValidBase64:()=>Zv,globalRegistry:()=>so,globalConfig:()=>Nd,function:()=>aS,formatError:()=>zd,flattenError:()=>Gd,config:()=>vt,clone:()=>zr,_xid:()=>zm,_void:()=>Yw,_uuidv7:()=>Om,_uuidv6:()=>Um,_uuidv4:()=>Lm,_uuid:()=>Nm,_url:()=>Fm,_uppercase:()=>rp,_unknown:()=>Bu,_union:()=>D0e,_undefined:()=>$w,_ulid:()=>Gm,_uint64:()=>Mw,_uint32:()=>Tw,_tuple:()=>eS,_trim:()=>cp,_transform:()=>P0e,_toUpperCase:()=>lp,_toLowerCase:()=>up,_templateLiteral:()=>q0e,_symbol:()=>Pw,_success:()=>Y0e,_stringbool:()=>oS,_stringFormat:()=>iS,_string:()=>Iw,_startsWith:()=>op,_size:()=>Xd,_set:()=>U0e,_safeParseAsync:()=>Bm,_safeParse:()=>ym,_regex:()=>ep,_refine:()=>nS,_record:()=>N0e,_readonly:()=>J0e,_property:()=>Xw,_promise:()=>Z0e,_positive:()=>qw,_pipe:()=>V0e,_parseAsync:()=>Cm,_parse:()=>mm,_overwrite:()=>Po,_optional:()=>$0e,_number:()=>Qw,_nullable:()=>H0e,_null:()=>Hw,_normalize:()=>ap,_nonpositive:()=>Zw,_nonoptional:()=>z0e,_nonnegative:()=>Kw,_never:()=>zw,_negative:()=>Ww,_nativeEnum:()=>F0e,_nanoid:()=>Pm,_nan:()=>Jw,_multipleOf:()=>Ws,_minSize:()=>Zs,_minLength:()=>Ni,_min:()=>Br,_mime:()=>sp,_maxSize:()=>bu,_maxLength:()=>xu,_max:()=>sn,_map:()=>L0e,_lte:()=>sn,_lt:()=>Fo,_lowercase:()=>tp,_literal:()=>M0e,_length:()=>_u,_lazy:()=>W0e,_ksuid:()=>Ym,_jwt:()=>Xm,_isoTime:()=>_w,_isoDuration:()=>vw,_isoDateTime:()=>bw,_isoDate:()=>xw,_ipv6:()=>Vm,_ipv4:()=>jm,_intersection:()=>T0e,_int64:()=>Fw,_int32:()=>Rw,_int:()=>Sw,_includes:()=>np,_guid:()=>Kd,_gte:()=>Br,_gt:()=>Mo,_float64:()=>Dw,_float32:()=>kw,_file:()=>tS,_enum:()=>O0e,_endsWith:()=>ip,_emoji:()=>Mm,_email:()=>Tm,_e164:()=>Km,_discriminatedUnion:()=>R0e,_default:()=>G0e,_date:()=>jw,_custom:()=>rS,_cuid2:()=>Hm,_cuid:()=>$m,_coercedString:()=>yw,_coercedNumber:()=>ww,_coercedDate:()=>Vw,_coercedBoolean:()=>Lw,_coercedBigint:()=>Ow,_cidrv6:()=>qm,_cidrv4:()=>Jm,_catch:()=>j0e,_boolean:()=>Nw,_bigint:()=>Uw,_base64url:()=>Zm,_base64:()=>Wm,_array:()=>Ap,_any:()=>Gw,TimePrecision:()=>Bw,NEVER:()=>y_,JSONSchemaGenerator:()=>eE,JSONSchema:()=>Pq,Doc:()=>vm,$output:()=>Ew,$input:()=>Cw,$constructor:()=>B,$brand:()=>B_,$ZodXID:()=>$v,$ZodVoid:()=>lQ,$ZodUnknown:()=>yu,$ZodUnion:()=>Dm,$ZodUndefined:()=>sQ,$ZodUUID:()=>Tv,$ZodURL:()=>Lv,$ZodULID:()=>Pv,$ZodType:()=>ae,$ZodTuple:()=>qs,$ZodTransform:()=>Vd,$ZodTemplateLiteral:()=>kQ,$ZodSymbol:()=>iQ,$ZodSuccess:()=>vQ,$ZodStringFormat:()=>$e,$ZodString:()=>Js,$ZodSet:()=>mQ,$ZodRegistry:()=>Zd,$ZodRecord:()=>gQ,$ZodRealError:()=>Cu,$ZodReadonly:()=>SQ,$ZodPromise:()=>DQ,$ZodPrefault:()=>xQ,$ZodPipe:()=>Jd,$ZodOptional:()=>yQ,$ZodObject:()=>dQ,$ZodNumberFormat:()=>nQ,$ZodNumber:()=>Sm,$ZodNullable:()=>BQ,$ZodNull:()=>aQ,$ZodNonOptional:()=>_Q,$ZodNever:()=>uQ,$ZodNanoID:()=>Ov,$ZodNaN:()=>wQ,$ZodMap:()=>hQ,$ZodLiteral:()=>CQ,$ZodLazy:()=>RQ,$ZodKSUID:()=>Hv,$ZodJWT:()=>tQ,$ZodIntersection:()=>fQ,$ZodISOTime:()=>Yv,$ZodISODuration:()=>jv,$ZodISODateTime:()=>Gv,$ZodISODate:()=>zv,$ZodIPv6:()=>Jv,$ZodIPv4:()=>Vv,$ZodGUID:()=>Rv,$ZodFunction:()=>sS,$ZodFile:()=>IQ,$ZodError:()=>Hd,$ZodEnum:()=>EQ,$ZodEmoji:()=>Uv,$ZodEmail:()=>Nv,$ZodE164:()=>eQ,$ZodDiscriminatedUnion:()=>pQ,$ZodDefault:()=>bQ,$ZodDate:()=>AQ,$ZodCustomStringFormat:()=>rQ,$ZodCustom:()=>TQ,$ZodCheckUpperCase:()=>bv,$ZodCheckStringFormat:()=>Iu,$ZodCheckStartsWith:()=>_v,$ZodCheckSizeEquals:()=>mv,$ZodCheckRegex:()=>yv,$ZodCheckProperty:()=>Qv,$ZodCheckOverwrite:()=>Sv,$ZodCheckNumberFormat:()=>pv,$ZodCheckMultipleOf:()=>dv,$ZodCheckMinSize:()=>hv,$ZodCheckMinLength:()=>Cv,$ZodCheckMimeType:()=>wv,$ZodCheckMaxSize:()=>gv,$ZodCheckMaxLength:()=>Ev,$ZodCheckLowerCase:()=>Bv,$ZodCheckLessThan:()=>xm,$ZodCheckLengthEquals:()=>Iv,$ZodCheckIncludes:()=>xv,$ZodCheckGreaterThan:()=>_m,$ZodCheckEndsWith:()=>vv,$ZodCheckBigIntFormat:()=>fv,$ZodCheck:()=>ct,$ZodCatch:()=>QQ,$ZodCUID2:()=>Mv,$ZodCUID:()=>Fv,$ZodCIDRv6:()=>Wv,$ZodCIDRv4:()=>qv,$ZodBoolean:()=>Yd,$ZodBigIntFormat:()=>oQ,$ZodBigInt:()=>km,$ZodBase64URL:()=>Xv,$ZodBase64:()=>Kv,$ZodAsyncError:()=>Uo,$ZodArray:()=>jd,$ZodAny:()=>cQ});var y_=Object.freeze({status:"aborted"});function B(e,t,r){function n(a,c){var u;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(u=a._zod).traits??(u.traits=new Set),a._zod.traits.add(e),t(a,c);for(let A in s.prototype)if(!(A in a))Object.defineProperty(a,A,{value:s.prototype[A].bind(a)});a._zod.constr=s,a._zod.def=c}let o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var c;let u=r?.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let A of u._zod.deferred)A();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:(a)=>{if(r?.Parent&&a instanceof r.Parent)return!0;return a?._zod?.traits?.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}var B_=Symbol("zod_brand");class Uo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var Nd={};function vt(e){if(e)Object.assign(Nd,e);return Nd}var P={};ft(P,{unwrapMessage:()=>Ld,stringifyPrimitive:()=>$,required:()=>kRe,randomString:()=>yRe,propertyKeyTypes:()=>Md,promiseAllObject:()=>IRe,primitiveTypes:()=>w_,prefixIssues:()=>yr,pick:()=>_Re,partial:()=>SRe,optionalKeys:()=>S_,omit:()=>vRe,numKeys:()=>BRe,nullish:()=>Ti,normalizeParams:()=>O,merge:()=>wRe,jsonStringifyReplacer:()=>x_,joinValues:()=>D,issue:()=>R_,isPlainObject:()=>Eu,isObject:()=>mu,getSizableOrigin:()=>Pd,getParsedType:()=>bRe,getLengthableOrigin:()=>$d,getEnumValues:()=>Ud,getElementAtPath:()=>CRe,floatSafeRemainder:()=>__,finalizeIssue:()=>Yr,extend:()=>QRe,escapeRegex:()=>Oo,esc:()=>zs,defineLazy:()=>ke,createTransparentProxy:()=>xRe,clone:()=>zr,cleanRegex:()=>Fd,cleanEnum:()=>DRe,captureStackTrace:()=>hm,cached:()=>Od,assignProp:()=>v_,assertNotEqual:()=>gRe,assertNever:()=>mRe,assertIs:()=>hRe,assertEqual:()=>fRe,assert:()=>ERe,allowsEval:()=>Q_,aborted:()=>Ys,NUMBER_FORMAT_RANGES:()=>k_,Class:()=>hq,BIGINT_FORMAT_RANGES:()=>D_});function fRe(e){return e}function gRe(e){return e}function hRe(e){}function mRe(e){throw Error()}function ERe(e){}function Ud(e){let t=Object.values(e).filter((n)=>typeof n==="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function D(e,t="|"){return e.map((r)=>$(r)).join(t)}function x_(e,t){if(typeof t==="bigint")return t.toString();return t}function Od(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw Error("cached value already set")}}}function Ti(e){return e===null||e===void 0}function Fd(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function __(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}function ke(e,t,r){Object.defineProperty(e,t,{get(){{let o=r();return e[t]=o,o}throw Error("cached value already set")},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function v_(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function CRe(e,t){if(!t)return e;return t.reduce((r,n)=>r?.[n],e)}function IRe(e){let t=Object.keys(e),r=t.map((n)=>e[n]);return Promise.all(r).then((n)=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=n[i];return o})}function yRe(e=10){let r="";for(let n=0;n<e;n++)r+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return r}function zs(e){return JSON.stringify(e)}var hm=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function mu(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var Q_=Od(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Eu(e){if(mu(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;if(mu(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function BRe(e){let t=0;for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r))t++;return t}var bRe=(e)=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(e===null)return"null";if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return"promise";if(typeof Map<"u"&&e instanceof Map)return"map";if(typeof Set<"u"&&e instanceof Set)return"set";if(typeof Date<"u"&&e instanceof Date)return"date";if(typeof File<"u"&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},Md=new Set(["string","number","symbol"]),w_=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Oo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zr(e,t,r){let n=new e._zod.constr(t??e._zod.def);if(!t||r?.parent)n._zod.parent=e;return n}function O(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function xRe(e){let t;return new Proxy({},{get(r,n,o){return t??(t=e()),Reflect.get(t,n,o)},set(r,n,o,i){return t??(t=e()),Reflect.set(t,n,o,i)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,o){return t??(t=e()),Reflect.defineProperty(t,n,o)}})}function $(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function S_(e){return Object.keys(e).filter((t)=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var k_={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},D_={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function _Re(e,t){let r={},n=e._zod.def;for(let o in t){if(!(o in n.shape))throw Error(`Unrecognized key: "${o}"`);if(!t[o])continue;r[o]=n.shape[o]}return zr(e,{...e._zod.def,shape:r,checks:[]})}function vRe(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let o in t){if(!(o in n.shape))throw Error(`Unrecognized key: "${o}"`);if(!t[o])continue;delete r[o]}return zr(e,{...e._zod.def,shape:r,checks:[]})}function QRe(e,t){if(!Eu(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return v_(this,"shape",n),n},checks:[]};return zr(e,r)}function wRe(e,t){return zr(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return v_(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function SRe(e,t,r){let n=t._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in n))throw Error(`Unrecognized key: "${i}"`);if(!r[i])continue;o[i]=e?new e({type:"optional",innerType:n[i]}):n[i]}else for(let i in n)o[i]=e?new e({type:"optional",innerType:n[i]}):n[i];return zr(t,{...t._zod.def,shape:o,checks:[]})}function kRe(e,t,r){let n=t._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in o))throw Error(`Unrecognized key: "${i}"`);if(!r[i])continue;o[i]=new e({type:"nonoptional",innerType:n[i]})}else for(let i in n)o[i]=new e({type:"nonoptional",innerType:n[i]});return zr(t,{...t._zod.def,shape:o,checks:[]})}function Ys(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function yr(e,t){return t.map((r)=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Ld(e){return typeof e==="string"?e:e?.message}function Yr(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=Ld(e.inst?._zod.def?.error?.(e))??Ld(t?.error?.(e))??Ld(r.customError?.(e))??Ld(r.localeError?.(e))??"Invalid input";n.message=o}if(delete n.inst,delete n.continue,!t?.reportInput)delete n.input;return n}function Pd(e){if(e instanceof Set)return"set";if(e instanceof Map)return"map";if(e instanceof File)return"file";return"unknown"}function $d(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function R_(...e){let[t,r,n]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:n};return{...t}}function DRe(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map((t)=>t[1])}class hq{constructor(...e){}}var mq=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,x_,2)},enumerable:!0})},Hd=B("$ZodError",mq),Cu=B("$ZodError",mq,{Parent:Error});function Gd(e,t=(r)=>r.message){let r={},n=[];for(let o of e.issues)if(o.path.length>0)r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o));else n.push(t(o));return{formErrors:n,fieldErrors:r}}function zd(e,t){let r=t||function(i){return i.message},n={_errors:[]},o=(i)=>{for(let s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map((a)=>o({issues:a}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)n._errors.push(r(s));else{let a=n,c=0;while(c<s.path.length){let u=s.path[c];if(c!==s.path.length-1)a[u]=a[u]||{_errors:[]};else a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(s));a=a[u],c++}}};return o(e),n}function T_(e,t){let r=t||function(i){return i.message},n={errors:[]},o=(i,s=[])=>{var a,c;for(let u of i.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map((A)=>o({issues:A},u.path));else if(u.code==="invalid_key")o({issues:u.issues},u.path);else if(u.code==="invalid_element")o({issues:u.issues},u.path);else{let A=[...s,...u.path];if(A.length===0){n.errors.push(r(u));continue}let p=n,d=0;while(d<A.length){let f=A[d],g=d===A.length-1;if(typeof f==="string")p.properties??(p.properties={}),(a=p.properties)[f]??(a[f]={errors:[]}),p=p.properties[f];else p.items??(p.items=[]),(c=p.items)[f]??(c[f]={errors:[]}),p=p.items[f];if(g)p.errors.push(r(u));d++}}};return o(e),n}function Eq(e){let t=[];for(let r of e)if(typeof r==="number")t.push(`[${r}]`);else if(typeof r==="symbol")t.push(`[${JSON.stringify(String(r))}]`);else if(/[^\w$]/.test(r))t.push(`[${JSON.stringify(r)}]`);else{if(t.length)t.push(".");t.push(r)}return t.join("")}function N_(e){let t=[],r=[...e.issues].sort((n,o)=>n.path.length-o.path.length);for(let n of r)if(t.push(`✖ ${n.message}`),n.path?.length)t.push(` → at ${Eq(n.path)}`);return t.join(`