@anthropic-ai/claude-agent-sdk 0.2.128 → 0.2.131
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/assistant.mjs +81 -81
- package/bridge.mjs +3 -3
- package/browser-sdk.js +37 -37
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +0 -1
- package/sdk.mjs +41 -41
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.2.
|
|
3
|
+
// Version: 0.2.131
|
|
4
4
|
import{createRequire as NS}from"node:module";var CS=Object.create;var{getPrototypeOf:ES,defineProperty:nG,getOwnPropertyNames:gS}=Object;var YS=Object.prototype.hasOwnProperty;function JS(A){return this[A]}var FS,US,dC=(A,Q,B)=>{var I=A!=null&&typeof A==="object";if(I){var C=Q?FS??=new WeakMap:US??=new WeakMap,E=C.get(A);if(E)return E}B=A!=null?CS(ES(A)):{};let g=Q||!A||!A.__esModule?nG(B,"default",{value:A,enumerable:!0}):B;for(let Y of gS(A))if(!YS.call(g,Y))nG(g,Y,{get:JS.bind(A,Y),enumerable:!0});if(I)C.set(A,g);return g};var Z=(A,Q)=>()=>(Q||A((Q={exports:{}}).exports,Q),Q.exports);var GS=(A)=>A;function DS(A,Q){this[A]=GS.bind(null,Q)}var GJ=(A,Q)=>{for(var B in Q)nG(A,B,{get:Q[B],enumerable:!0,configurable:!0,set:DS.bind(Q,B)})};var L=(A,Q)=>()=>(A&&(Q=A(A=0)),Q);var z=NS(import.meta.url),wS=Symbol.dispose||Symbol.for("Symbol.dispose"),MS=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),xA=(A,Q,B)=>{if(Q!=null){if(typeof Q!=="object"&&typeof Q!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var I;if(B)I=Q[MS];if(I===void 0)I=Q[wS];if(typeof I!=="function")throw TypeError("Object not disposable");A.push([B,I,Q])}else if(B)A.push([B]);return Q},WA=(A,Q,B)=>{var I=typeof SuppressedError==="function"?SuppressedError:function(g,Y,J,U){return U=Error(J),U.name="SuppressedError",U.error=g,U.suppressed=Y,U},C=(g)=>Q=B?new I(g,Q,"An error was suppressed during disposal"):(B=!0,g),E=(g)=>{while(g=A.pop())try{var Y=g[1]&&g[1].call(g[2]);if(g[0])return Promise.resolve(Y).then(E,(J)=>(C(J),E()))}catch(J){C(J)}if(B)throw Q};return E()};var ZW=Z((fQA,VW)=>{var WW=z("stream").Stream,C_=z("util");VW.exports=FB;function FB(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}C_.inherits(FB,WW);FB.create=function(A,Q){var B=new this;Q=Q||{};for(var I in Q)B[I]=Q[I];B.source=A;var C=A.emit;if(A.emit=function(){return B._handleEmit(arguments),C.apply(A,arguments)},A.on("error",function(){}),B.pauseStream)A.pause();return B};Object.defineProperty(FB.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});FB.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};FB.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};FB.prototype.pause=function(){this.source.pause()};FB.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(A){this.emit.apply(this,A)}.bind(this)),this._bufferedEvents=[]};FB.prototype.pipe=function(){var A=WW.prototype.pipe.apply(this,arguments);return this.resume(),A};FB.prototype._handleEmit=function(A){if(this._released){this.emit.apply(this,A);return}if(A[0]==="data")this.dataSize+=A[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(A)};FB.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var A="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(A))}});var zW=Z((bQA,LW)=>{var E_=z("util"),KW=z("stream").Stream,XW=ZW();LW.exports=OA;function OA(){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}E_.inherits(OA,KW);OA.create=function(A){var Q=new this;A=A||{};for(var B in A)Q[B]=A[B];return Q};OA.isStreamLike=function(A){return typeof A!=="function"&&typeof A!=="string"&&typeof A!=="boolean"&&typeof A!=="number"&&!Buffer.isBuffer(A)};OA.prototype.append=function(A){var Q=OA.isStreamLike(A);if(Q){if(!(A instanceof XW)){var B=XW.create(A,{maxDataSize:1/0,pauseStream:this.pauseStreams});A.on("data",this._checkDataSize.bind(this)),A=B}if(this._handleErrors(A),this.pauseStreams)A.pause()}return this._streams.push(A),this};OA.prototype.pipe=function(A,Q){return KW.prototype.pipe.call(this,A,Q),this.resume(),A};OA.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}};OA.prototype._realGetNext=function(){var A=this._streams.shift();if(typeof A>"u"){this.end();return}if(typeof A!=="function"){this._pipeNext(A);return}var Q=A;Q(function(B){var I=OA.isStreamLike(B);if(I)B.on("data",this._checkDataSize.bind(this)),this._handleErrors(B);this._pipeNext(B)}.bind(this))};OA.prototype._pipeNext=function(A){this._currentStream=A;var Q=OA.isStreamLike(A);if(Q){A.on("end",this._getNext.bind(this)),A.pipe(this,{end:!1});return}var B=A;this.write(B),this._getNext()};OA.prototype._handleErrors=function(A){var Q=this;A.on("error",function(B){Q._emitError(B)})};OA.prototype.write=function(A){this.emit("data",A)};OA.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};OA.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")};OA.prototype.end=function(){this._reset(),this.emit("end")};OA.prototype.destroy=function(){this._reset(),this.emit("close")};OA.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};OA.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var A="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(A))};OA.prototype._updateDataSize=function(){this.dataSize=0;var A=this;if(this._streams.forEach(function(Q){if(!Q.dataSize)return;A.dataSize+=Q.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};OA.prototype._emitError=function(A){this._reset(),this.emit("error",A)}});var HW=Z((hQA,g_)=>{g_.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 SW=Z((N_)=>{/*!
|
|
5
5
|
* mime-types
|
|
6
6
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -11,7 +11,7 @@ import{createRequire as NS}from"node:module";var CS=Object.create;var{getPrototy
|
|
|
11
11
|
`).join(`
|
|
12
12
|
`+E),A.push(C+"m+"+cJ.exports.humanize(this.diff)+"\x1B[0m")}else A[0]=uP()+Q+" "+A[0]}function uP(){if(dZ.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function dP(...A){return process.stderr.write(TJ.formatWithOptions(dZ.inspectOpts,...A)+`
|
|
13
13
|
`)}function lP(A){if(A)process.env.DEBUG=A;else delete process.env.DEBUG}function nP(){return process.env.DEBUG}function aP(A){A.inspectOpts={};let Q=Object.keys(dZ.inspectOpts);for(let B=0;B<Q.length;B++)A.inspectOpts[Q[B]]=dZ.inspectOpts[Q[B]]}cJ.exports=_2()(dZ);var{formatters:uZ}=cJ.exports;uZ.o=function(A){return this.inspectOpts.colors=this.useColors,TJ.inspect(A,this.inspectOpts).split(`
|
|
14
|
-
`).map((Q)=>Q.trim()).join(" ")};uZ.O=function(A){return this.inspectOpts.colors=this.useColors,TJ.inspect(A,this.inspectOpts)}});var vJ=Z((iIA,P2)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)P2.exports=fZ();else P2.exports=nZ()});var oZ=Z((uIA,aZ)=>{var d0;aZ.exports=function(){if(!d0){try{d0=vJ()("follow-redirects")}catch(A){}if(typeof d0!=="function")d0=function(){}}d0.apply(null,arguments)}});var A1=Z((dIA,u2)=>{var n0=z("url"),l0=n0.URL,BT=z("http"),IT=z("https"),y2=z("stream").Writable,f2=z("assert"),sZ=oZ();(function(){var Q=typeof process<"u",B=typeof window<"u"&&typeof document<"u",I=gC(Error.captureStackTrace);if(!Q&&(B||!I))console.warn("The follow-redirects package should be excluded from browser builds.")})();var b2=!1;try{f2(new l0(""))}catch(A){b2=A.code==="ERR_INVALID_URL"}var CT=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h2=["abort","aborted","connect","error","socket","timeout"],p2=Object.create(null);h2.forEach(function(A){p2[A]=function(Q,B,I){this._redirectable.emit(A,Q,B,I)}});var c2=a0("ERR_INVALID_URL","Invalid URL",TypeError),v2=a0("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ET=a0("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",v2),gT=a0("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),YT=a0("ERR_STREAM_WRITE_AFTER_END","write after end"),JT=y2.prototype.destroy||tZ;function ZQ(A,Q){if(y2.call(this),this._sanitizeOptions(A),this._options=A,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Q)this.on("response",Q);var B=this;this._onNativeResponse=function(I){try{B._processResponse(I)}catch(C){B.emit("error",C instanceof v2?C:new v2({cause:C}))}},this._performRequest()}ZQ.prototype=Object.create(y2.prototype);ZQ.prototype.abort=function(){i2(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ZQ.prototype.destroy=function(A){return i2(this._currentRequest,A),JT.call(this,A),this};ZQ.prototype.write=function(A,Q,B){if(this._ending)throw new YT;if(!EC(A)&&!GT(A))throw TypeError("data should be a string, Buffer or Uint8Array");if(gC(Q))B=Q,Q=null;if(A.length===0){if(B)B();return}if(this._requestBodyLength+A.length<=this._options.maxBodyLength)this._requestBodyLength+=A.length,this._requestBodyBuffers.push({data:A,encoding:Q}),this._currentRequest.write(A,Q,B);else this.emit("error",new gT),this.abort()};ZQ.prototype.end=function(A,Q,B){if(gC(A))B=A,A=Q=null;else if(gC(Q))B=Q,Q=null;if(!A)this._ended=this._ending=!0,this._currentRequest.end(null,null,B);else{var I=this,C=this._currentRequest;this.write(A,Q,function(){I._ended=!0,C.end(null,null,B)}),this._ending=!0}};ZQ.prototype.setHeader=function(A,Q){this._options.headers[A]=Q,this._currentRequest.setHeader(A,Q)};ZQ.prototype.removeHeader=function(A){delete this._options.headers[A],this._currentRequest.removeHeader(A)};ZQ.prototype.setTimeout=function(A,Q){var B=this;function I(g){g.setTimeout(A),g.removeListener("timeout",g.destroy),g.addListener("timeout",g.destroy)}function C(g){if(B._timeout)clearTimeout(B._timeout);B._timeout=setTimeout(function(){B.emit("timeout"),E()},A),I(g)}function E(){if(B._timeout)clearTimeout(B._timeout),B._timeout=null;if(B.removeListener("abort",E),B.removeListener("error",E),B.removeListener("response",E),B.removeListener("close",E),Q)B.removeListener("timeout",Q);if(!B.socket)B._currentRequest.removeListener("socket",C)}if(Q)this.on("timeout",Q);if(this.socket)C(this.socket);else this._currentRequest.once("socket",C);return this.on("socket",I),this.on("abort",E),this.on("error",E),this.on("response",E),this.on("close",E),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(A){ZQ.prototype[A]=function(Q,B){return this._currentRequest[A](Q,B)}});["aborted","connection","socket"].forEach(function(A){Object.defineProperty(ZQ.prototype,A,{get:function(){return this._currentRequest[A]}})});ZQ.prototype._sanitizeOptions=function(A){if(!A.headers)A.headers={};if(A.host){if(!A.hostname)A.hostname=A.host;delete A.host}if(!A.pathname&&A.path){var Q=A.path.indexOf("?");if(Q<0)A.pathname=A.path;else A.pathname=A.path.substring(0,Q),A.search=A.path.substring(Q)}};ZQ.prototype._performRequest=function(){var A=this._options.protocol,Q=this._options.nativeProtocols[A];if(!Q)throw TypeError("Unsupported protocol "+A);if(this._options.agents){var B=A.slice(0,-1);this._options.agent=this._options.agents[B]}var I=this._currentRequest=Q.request(this._options,this._onNativeResponse);I._redirectable=this;for(var C of h2)I.on(C,p2[C]);if(this._currentUrl=/^\//.test(this._options.path)?n0.format(this._options):this._options.path,this._isRedirect){var E=0,g=this,Y=this._requestBodyBuffers;(function J(U){if(I===g._currentRequest){if(U)g.emit("error",U);else if(E<Y.length){var F=Y[E++];if(!I.finished)I.write(F.data,F.encoding,J)}else if(g._ended)I.end()}})()}};ZQ.prototype._processResponse=function(A){var Q=A.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:A.headers,statusCode:Q});var B=A.headers.location;if(!B||this._options.followRedirects===!1||Q<300||Q>=400){A.responseUrl=this._currentUrl,A.redirects=this._redirects,this.emit("response",A),this._requestBodyBuffers=[];return}if(i2(this._currentRequest),A.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ET;var I,C=this._options.beforeRedirect;if(C)I=Object.assign({Host:A.req.getHeader("host")},this._options.headers);var E=this._options.method;if((Q===301||Q===302)&&this._options.method==="POST"||Q===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],T2(/^content-/i,this._options.headers);var g=T2(/^host$/i,this._options.headers),Y=m2(this._currentUrl),J=g||Y.host,U=/^\w+:/.test(B)?this._currentUrl:n0.format(Object.assign(Y,{host:J})),F=FT(B,U);if(sZ("redirecting to",F.href),this._isRedirect=!0,k2(F,this._options),F.protocol!==Y.protocol&&F.protocol!=="https:"||F.host!==J&&!UT(F.host,J))T2(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers);if(gC(C)){var G={headers:A.headers,statusCode:Q},D={url:U,method:E,headers:I};C(this._options,G,D),this._sanitizeOptions(this._options)}this._performRequest()};function rZ(A){var Q={maxRedirects:21,maxBodyLength:10485760},B={};return Object.keys(A).forEach(function(I){var C=I+":",E=B[C]=A[I],g=Q[I]=Object.create(E);function Y(U,F,G){if(DT(U))U=k2(U);else if(EC(U))U=k2(m2(U));else G=F,F=eZ(U),U={protocol:C};if(gC(F))G=F,F=null;if(F=Object.assign({maxRedirects:Q.maxRedirects,maxBodyLength:Q.maxBodyLength},U,F),F.nativeProtocols=B,!EC(F.host)&&!EC(F.hostname))F.hostname="::1";return f2.equal(F.protocol,C,"protocol mismatch"),sZ("options",F),new ZQ(F,G)}function J(U,F,G){var D=g.request(U,F,G);return D.end(),D}Object.defineProperties(g,{request:{value:Y,configurable:!0,enumerable:!0,writable:!0},get:{value:J,configurable:!0,enumerable:!0,writable:!0}})}),Q}function tZ(){}function m2(A){var Q;if(b2)Q=new l0(A);else if(Q=eZ(n0.parse(A)),!EC(Q.protocol))throw new c2({input:A});return Q}function FT(A,Q){return b2?new l0(A,Q):m2(n0.resolve(Q,A))}function eZ(A){if(/^\[/.test(A.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(A.hostname))throw new c2({input:A.href||A});if(/^\[/.test(A.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(A.host))throw new c2({input:A.href||A});return A}function k2(A,Q){var B=Q||{};for(var I of CT)B[I]=A[I];if(B.hostname.startsWith("["))B.hostname=B.hostname.slice(1,-1);if(B.port!=="")B.port=Number(B.port);return B.path=B.search?B.pathname+B.search:B.pathname,B}function T2(A,Q){var B;for(var I in Q)if(A.test(I))B=Q[I],delete Q[I];return B===null||typeof B>"u"?void 0:String(B).trim()}function a0(A,Q,B){function I(C){if(gC(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,C||{}),this.code=A,this.message=this.cause?Q+": "+this.cause.message:Q}return I.prototype=Object.create((B||Error).prototype),Object.defineProperties(I.prototype,{constructor:{value:I,enumerable:!1},name:{value:"Error ["+A+"]",enumerable:!1}}),I}function i2(A,Q){for(var B of h2)A.removeListener(B,p2[B]);A.on("error",tZ),A.destroy(Q)}function UT(A,Q){f2(EC(A)&&EC(Q));var B=A.length-Q.length-1;return B>0&&A[B]==="."&&A.endsWith(Q)}function EC(A){return typeof A==="string"||A instanceof String}function gC(A){return typeof A==="function"}function GT(A){return typeof A==="object"&&"length"in A}function DT(A){return l0&&A instanceof l0}u2.exports=rZ({http:BT,https:IT});u2.exports.wrap=rZ});function rT(){this.__data__=[],this.size=0}var k1;var y1=L(()=>{k1=rT});function tT(A,Q){return A===Q||A!==A&&Q!==Q}var f1;var b1=L(()=>{f1=tT});function eT(A,Q){var B=A.length;while(B--)if(f1(A[B][0],Q))return B;return-1}var WI;var Ag=L(()=>{b1();WI=eT});function Bc(A){var Q=this.__data__,B=WI(Q,A);if(B<0)return!1;var I=Q.length-1;if(B==I)Q.pop();else Qc.call(Q,B,1);return--this.size,!0}var Ac,Qc,h1;var p1=L(()=>{Ag();Ac=Array.prototype,Qc=Ac.splice;h1=Bc});function Ic(A){var Q=this.__data__,B=WI(Q,A);return B<0?void 0:Q[B][1]}var m1;var i1=L(()=>{Ag();m1=Ic});function Cc(A){return WI(this.__data__,A)>-1}var u1;var d1=L(()=>{Ag();u1=Cc});function Ec(A,Q){var B=this.__data__,I=WI(B,A);if(I<0)++this.size,B.push([A,Q]);else B[I][1]=Q;return this}var l1;var n1=L(()=>{Ag();l1=Ec});function EE(A){var Q=-1,B=A==null?0:A.length;this.clear();while(++Q<B){var I=A[Q];this.set(I[0],I[1])}}var a1;var o1=L(()=>{y1();p1();i1();d1();n1();EE.prototype.clear=k1;EE.prototype.delete=h1;EE.prototype.get=m1;EE.prototype.has=u1;EE.prototype.set=l1;a1=EE});var gc,s1;var r1=L(()=>{gc=typeof global=="object"&&global&&global.Object===Object&&global,s1=gc});var Yc,Jc,gE;var mJ=L(()=>{r1();Yc=typeof self=="object"&&self&&self.Object===Object&&self,Jc=s1||Yc||Function("return this")(),gE=Jc});var Fc,YE;var ID=L(()=>{mJ();Fc=gE.Symbol,YE=Fc});function Dc(A){var Q=Uc.call(A,Qg),B=A[Qg];try{A[Qg]=void 0;var I=!0}catch(E){}var C=Gc.call(A);if(I)if(Q)A[Qg]=B;else delete A[Qg];return C}var t1,Uc,Gc,Qg,e1;var A9=L(()=>{ID();t1=Object.prototype,Uc=t1.hasOwnProperty,Gc=t1.toString,Qg=YE?YE.toStringTag:void 0;e1=Dc});function Mc(A){return wc.call(A)}var Nc,wc,Q9;var B9=L(()=>{Nc=Object.prototype,wc=Nc.toString;Q9=Mc});function Vc(A){if(A==null)return A===void 0?Wc:xc;return I9&&I9 in Object(A)?e1(A):Q9(A)}var xc="[object Null]",Wc="[object Undefined]",I9,C9;var E9=L(()=>{ID();A9();B9();I9=YE?YE.toStringTag:void 0;C9=Vc});function Zc(A){var Q=typeof A;return A!=null&&(Q=="object"||Q=="function")}var iJ;var CD=L(()=>{iJ=Zc});function Hc(A){if(!iJ(A))return!1;var Q=C9(A);return Q==Kc||Q==Lc||Q==Xc||Q==zc}var Xc="[object AsyncFunction]",Kc="[object Function]",Lc="[object GeneratorFunction]",zc="[object Proxy]",g9;var Y9=L(()=>{E9();CD();g9=Hc});var Rc,uJ;var J9=L(()=>{mJ();Rc=gE["__core-js_shared__"],uJ=Rc});function $c(A){return!!F9&&F9 in A}var F9,U9;var G9=L(()=>{J9();F9=function(){var A=/[^.]+$/.exec(uJ&&uJ.keys&&uJ.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();U9=$c});function Sc(A){if(A!=null){try{return qc.call(A)}catch(Q){}try{return A+""}catch(Q){}}return""}var jc,qc,D9;var N9=L(()=>{jc=Function.prototype,qc=jc.toString;D9=Sc});function yc(A){if(!iJ(A)||U9(A))return!1;var Q=g9(A)?kc:Oc;return Q.test(D9(A))}var _c,Oc,Pc,Tc,cc,vc,kc,w9;var M9=L(()=>{Y9();G9();CD();N9();_c=/[\\^$.*+?()[\]{}|]/g,Oc=/^\[object .+?Constructor\]$/,Pc=Function.prototype,Tc=Object.prototype,cc=Pc.toString,vc=Tc.hasOwnProperty,kc=RegExp("^"+cc.call(vc).replace(_c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w9=yc});function fc(A,Q){return A==null?void 0:A[Q]}var x9;var W9=L(()=>{x9=fc});function bc(A,Q){var B=x9(A,Q);return w9(B)?B:void 0}var dJ;var ED=L(()=>{M9();W9();dJ=bc});var hc,V9;var Z9=L(()=>{ED();mJ();hc=dJ(gE,"Map"),V9=hc});var pc,mB;var Bg=L(()=>{ED();pc=dJ(Object,"create"),mB=pc});function mc(){this.__data__=mB?mB(null):{},this.size=0}var X9;var K9=L(()=>{Bg();X9=mc});function ic(A){var Q=this.has(A)&&delete this.__data__[A];return this.size-=Q?1:0,Q}var L9;var z9=L(()=>{L9=ic});function nc(A){var Q=this.__data__;if(mB){var B=Q[A];return B===uc?void 0:B}return lc.call(Q,A)?Q[A]:void 0}var uc="__lodash_hash_undefined__",dc,lc,H9;var R9=L(()=>{Bg();dc=Object.prototype,lc=dc.hasOwnProperty;H9=nc});function sc(A){var Q=this.__data__;return mB?Q[A]!==void 0:oc.call(Q,A)}var ac,oc,$9;var j9=L(()=>{Bg();ac=Object.prototype,oc=ac.hasOwnProperty;$9=sc});function tc(A,Q){var B=this.__data__;return this.size+=this.has(A)?0:1,B[A]=mB&&Q===void 0?rc:Q,this}var rc="__lodash_hash_undefined__",q9;var S9=L(()=>{Bg();q9=tc});function JE(A){var Q=-1,B=A==null?0:A.length;this.clear();while(++Q<B){var I=A[Q];this.set(I[0],I[1])}}var gD;var _9=L(()=>{K9();z9();R9();j9();S9();JE.prototype.clear=X9;JE.prototype.delete=L9;JE.prototype.get=H9;JE.prototype.has=$9;JE.prototype.set=q9;gD=JE});function ec(){this.size=0,this.__data__={hash:new gD,map:new(V9||a1),string:new gD}}var O9;var P9=L(()=>{_9();o1();Z9();O9=ec});function Av(A){var Q=typeof A;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?A!=="__proto__":A===null}var T9;var c9=L(()=>{T9=Av});function Qv(A,Q){var B=A.__data__;return T9(Q)?B[typeof Q=="string"?"string":"hash"]:B.map}var VI;var Ig=L(()=>{c9();VI=Qv});function Bv(A){var Q=VI(this,A).delete(A);return this.size-=Q?1:0,Q}var v9;var k9=L(()=>{Ig();v9=Bv});function Iv(A){return VI(this,A).get(A)}var y9;var f9=L(()=>{Ig();y9=Iv});function Cv(A){return VI(this,A).has(A)}var b9;var h9=L(()=>{Ig();b9=Cv});function Ev(A,Q){var B=VI(this,A),I=B.size;return B.set(A,Q),this.size+=B.size==I?0:1,this}var p9;var m9=L(()=>{Ig();p9=Ev});function FE(A){var Q=-1,B=A==null?0:A.length;this.clear();while(++Q<B){var I=A[Q];this.set(I[0],I[1])}}var YD;var i9=L(()=>{P9();k9();f9();h9();m9();FE.prototype.clear=O9;FE.prototype.delete=v9;FE.prototype.get=y9;FE.prototype.has=b9;FE.prototype.set=p9;YD=FE});function JD(A,Q){if(typeof A!="function"||Q!=null&&typeof Q!="function")throw TypeError(gv);var B=function(){var I=arguments,C=Q?Q.apply(this,I):I[0],E=B.cache;if(E.has(C))return E.get(C);var g=A.apply(this,I);return B.cache=E.set(C,g)||E,g};return B.cache=new(JD.Cache||YD),B}var gv="Expected a function",$A;var iB=L(()=>{i9();JD.Cache=YD;$A=JD});import{randomUUID as u9}from"crypto";var d9=()=>{};var l9=()=>{};function fA(A){if(!A)return!1;if(typeof A==="boolean")return A;let Q=String(A).toLowerCase().trim();return["1","true","yes","on"].includes(Q)}function UE(A){if(!A||A.startsWith("-")||A.startsWith("/"))return!1;if(A.includes(".."))return!1;if(A.split("/").some((Q)=>Q==="."||Q===""))return!1;return/^[a-zA-Z0-9/._+@-]+$/.test(A)}function FC(){let A=new Set;return{subscribe(Q){return A.add(Q),()=>{A.delete(Q)}},emit(...Q){let B;for(let I of A)try{I(...Q)}catch(C){(B??=[]).push(C)}if(B)throw B.length===1?B[0]:AggregateError(B,"Signal listener(s) threw")},clear(){A.clear()}}}var n9=()=>{};var Cg=L(()=>{n9()});var a9=L(()=>{Cg()});function o9(){return{sent:new Set,rejected:new Set}}import{realpathSync as s9}from"fs";import{cwd as Jv}from"process";function Uv(){let A="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof s9==="function"){let B=Jv();try{A=s9(B).normalize("NFC")}catch{A=B.normalize("NFC")}}return{originalCwd:A,projectRoot:A,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:A,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,attacherCaps:null,hasStreamingInput:!1,fridayFundayDisabledForSession:!1,kairosActive:!1,strictToolResultPairing:!1,memoryToggledOff:!1,teamMemoryServerStatus:void 0,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,sessionStartType:"fresh",questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,parentManagedSettings:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u9(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionPrResolved:!1,sessionCronTasks:[],loopChainStartedAt:Object.create(null),sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,sdkOAuthTokenRefreshCallback:null,mainThreadAgentType:void 0,mainThreadAgentHooks:void 0,sessionSkillAllowlist:void 0,caps:Fv,replBridgeActive:!1,directConnectServerUrl:void 0,activeRoutine:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],activeInputs:new Map,hasDevChannels:!1,sessionProjectDir:null,promptCache1hAllowlist:null,stickyBetas:o9(),thinkingTypeOverrides:new Map,inferenceProfileBackingModels:new Map,promptId:null,promptIndex:0,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function FD(){return GE.sessionId}function r9(){return GE.originalCwd}function t9(){return GE.cwd}async function e9(){while(Mv)await new Promise((A)=>setTimeout(A,xv).unref?.())}function AX(){return GE.sessionIngressToken}function DE(A){GE.sessionIngressToken=A}function lJ(){return GE.caps.workspace==="remote"}var Fv,GE,Gv,yYA,Dv,fYA,Nv,bYA,wv,hYA,Mv=!1,xv=150;var zB=L(()=>{d9();l9();a9();Fv={renderTarget:"ink",workspace:"local",canDrive:!0,transcriptSource:"local-jsonl",remote:null};GE=Uv();Gv=FC(),yYA=Gv.subscribe;Dv=FC(),fYA=Dv.subscribe;Nv=FC(),bYA=Nv.subscribe,wv=FC(),hYA=wv.subscribe});import{AsyncLocalStorage as Wv}from"async_hooks";function Zv(){return Vv.getStore()?.cwd??t9()}function UQ(){try{return Zv()}catch{return r9()}}var Vv;var UC=L(()=>{zB();Vv=new Wv});function QX({writeFn:A,flushIntervalMs:Q=1000,maxBufferSize:B=100,maxBufferBytes:I=1/0,immediateMode:C=!1}){let E=[],g=0,Y=null,J=null;function U(){if(Y)clearTimeout(Y),Y=null}function F(){if(J)A(J.join("")),J=null;if(E.length===0)return;A(E.join("")),E=[],g=0,U()}function G(){if(!Y)Y=setTimeout(F,Q)}function D(){if(J){J.push(...E),E=[],g=0,U();return}let M=E;E=[],g=0,U(),J=M,setImmediate(()=>{let N=J;if(J=null,N)A(N.join(""))})}return{write(M){if(C){A(M);return}if(E.push(M),g+=M.length,G(),E.length>=B||g>=I)D()},flush:F,dispose(){F()}}}function Xv(A){if(typeof A==="function")return A;if(Symbol.asyncDispose in A)return()=>A[Symbol.asyncDispose]();return()=>A[Symbol.dispose]()}function Eg(A){let Q=Xv(A);BX.add(Q);let B=()=>{BX.delete(Q)};return Object.assign(B,{[Symbol.dispose]:B})}var BX;var nJ=L(()=>{BX=new Set});function Kv(A){let Q=[],B=A.match(/^MCP server ["']([^"']+)["']/);if(B&&B[1])Q.push("mcp"),Q.push(B[1].toLowerCase());else{let E=A.match(/^([^:[]+):/);if(E&&E[1])Q.push(E[1].trim().toLowerCase())}let I=A.match(/^\[([^\]]+)]/);if(I&&I[1])Q.push(I[1].trim().toLowerCase());if(A.toLowerCase().includes("1p event:"))Q.push("1p");let C=A.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(C&&C[1]){let E=C[1].trim().toLowerCase();if(E.length<30&&!E.includes(" "))Q.push(E)}return Array.from(new Set(Q))}function Lv(A,Q){if(!Q)return!0;if(A.length===0)return!1;if(Q.isExclusive)return!A.some((B)=>Q.exclude.includes(B));else return A.some((B)=>Q.include.includes(B))}function CX(A,Q){if(!Q)return!0;let B=Kv(A);return Lv(B,Q)}var IX;var EX=L(()=>{iB();IX=$A((A)=>{if(!A||A.trim()==="")return null;let Q=A.split(",").map((E)=>E.trim()).filter(Boolean);if(Q.length===0)return null;let B=Q.some((E)=>E.startsWith("!")),I=Q.some((E)=>!E.startsWith("!"));if(B&&I)return null;let C=Q.map((E)=>E.replace(/^!/,"").toLowerCase());return{include:B?[]:C,exclude:B?C:[],isExclusive:B}})});import{homedir as zv}from"os";import{join as Hv}from"path";function UD(A){let Q=process.env.NODE_OPTIONS;if(!Q)return!1;return Q.split(/\s+/).includes(A)}var gX;var ZI=L(()=>{Cg();iB();Cg();gX=$A(()=>{return(process.env.CLAUDE_CONFIG_DIR??Hv(zv(),".claude")).normalize("NFC")},()=>process.env.CLAUDE_CONFIG_DIR)});function O(A,Q,B,I,C){if(I==="m")throw TypeError("Private method is not writable");if(I==="a"&&!C)throw TypeError("Private accessor was defined without a setter");if(typeof Q==="function"?A!==Q||!C:!Q.has(A))throw TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?C.call(A,B):C?C.value=B:Q.set(A,B),B}function K(A,Q,B,I){if(B==="a"&&!I)throw TypeError("Private accessor was defined without a getter");if(typeof Q==="function"?A!==Q||!I:!Q.has(A))throw TypeError("Cannot read private member from an object whose class did not declare it");return B==="m"?I:B==="a"?I.call(A):I?I.value:Q.get(A)}var uB=()=>{};var GD=function(){let{crypto:A}=globalThis;if(A?.randomUUID)return GD=A.randomUUID.bind(A),A.randomUUID();let Q=new Uint8Array(1),B=A?()=>A.getRandomValues(Q)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(I)=>(+I^B()&15>>+I/4).toString(16))};function dB(A){return typeof A==="object"&&A!==null&&(("name"in A)&&A.name==="AbortError"||("message"in A)&&String(A.message).includes("FetchRequestCanceledException"))}var gg=(A)=>{if(A instanceof Error)return A;if(typeof A==="object"&&A!==null){try{if(Object.prototype.toString.call(A)==="[object Error]"){let Q=Error(A.message,A.cause?{cause:A.cause}:{});if(A.stack)Q.stack=A.stack;if(A.cause&&!Q.cause)Q.cause=A.cause;if(A.name)Q.name=A.name;return Q}}catch{}try{return Error(JSON.stringify(A))}catch{}}return Error(A)};var P,pA,AQ,GC,Yg,Jg,Fg,Ug,Gg,Dg,Ng,wg,Mg;var XQ=L(()=>{P=class P extends Error{};pA=class pA extends P{constructor(A,Q,B,I,C){super(`${pA.makeMessage(A,Q,B)}`);this.status=A,this.headers=I,this.requestID=I?.get("request-id"),this.error=Q,this.type=C??null}static makeMessage(A,Q,B){let I=Q?.message?typeof Q.message==="string"?Q.message:JSON.stringify(Q.message):Q?JSON.stringify(Q):B;if(A&&I)return`${A} ${I}`;if(A)return`${A} status code (no body)`;if(I)return I;return"(no status code or body)"}static generate(A,Q,B,I){if(!A||!I)return new GC({message:B,cause:gg(Q)});let C=Q,E=C?.error?.type;if(A===400)return new Jg(A,C,B,I,E);if(A===401)return new Fg(A,C,B,I,E);if(A===403)return new Ug(A,C,B,I,E);if(A===404)return new Gg(A,C,B,I,E);if(A===409)return new Dg(A,C,B,I,E);if(A===422)return new Ng(A,C,B,I,E);if(A===429)return new wg(A,C,B,I,E);if(A>=500)return new Mg(A,C,B,I,E);return new pA(A,C,B,I,E)}};AQ=class AQ extends pA{constructor({message:A}={}){super(void 0,void 0,A||"Request was aborted.",void 0)}};GC=class GC extends pA{constructor({message:A,cause:Q}){super(void 0,void 0,A||"Connection error.",void 0);if(Q)this.cause=Q}};Yg=class Yg extends GC{constructor({message:A}={}){super({message:A??"Request timed out."})}};Jg=class Jg extends pA{};Fg=class Fg extends pA{};Ug=class Ug extends pA{};Gg=class Gg extends pA{};Dg=class Dg extends pA{};Ng=class Ng extends pA{};wg=class wg extends pA{};Mg=class Mg extends pA{}});function aJ(A){if(typeof A!=="object")return{};return A??{}}function wD(A){if(!A)return!0;for(let Q in A)return!1;return!0}function JX(A,Q){return Object.prototype.hasOwnProperty.call(A,Q)}var $v,YX=(A)=>{return $v.test(A)},DD=(A)=>(DD=Array.isArray,DD(A)),ND,FX=(A,Q)=>{if(typeof Q!=="number"||!Number.isInteger(Q))throw new P(`${A} must be an integer`);if(Q<0)throw new P(`${A} must be a positive integer`);return Q},oJ=(A)=>{try{return JSON.parse(A)}catch(Q){return}};var DC=L(()=>{XQ();$v=/^[a-z][a-z0-9+.-]*:/i,ND=DD});var UX=(A)=>new Promise((Q)=>setTimeout(Q,A));var XI="0.81.0";function jv(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}function Sv(){if(typeof navigator>"u"||!navigator)return null;let A=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:Q,pattern:B}of A){let I=B.exec(navigator.userAgent);if(I){let C=I[1]||0,E=I[2]||0,g=I[3]||0;return{browser:Q,version:`${C}.${E}.${g}`}}}return null}var wX=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"},qv=()=>{let A=jv();if(A==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":DX(Deno.build.os),"X-Stainless-Arch":GX(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(A==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":DX(globalThis.process.platform??"unknown"),"X-Stainless-Arch":GX(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let Q=Sv();if(Q)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${Q.browser}`,"X-Stainless-Runtime-Version":Q.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},GX=(A)=>{if(A==="x32")return"x32";if(A==="x86_64"||A==="x64")return"x64";if(A==="arm")return"arm";if(A==="aarch64"||A==="arm64")return"arm64";if(A)return`other:${A}`;return"unknown"},DX=(A)=>{if(A=A.toLowerCase(),A.includes("ios"))return"iOS";if(A==="android")return"Android";if(A==="darwin")return"MacOS";if(A==="win32")return"Windows";if(A==="freebsd")return"FreeBSD";if(A==="openbsd")return"OpenBSD";if(A==="linux")return"Linux";if(A)return`Other:${A}`;return"Unknown"},NX,MX=()=>{return NX??(NX=qv())};var MD=()=>{};function xX(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function xD(...A){let Q=globalThis.ReadableStream;if(typeof Q>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new Q(...A)}function sJ(A){let Q=Symbol.asyncIterator in A?A[Symbol.asyncIterator]():A[Symbol.iterator]();return xD({start(){},async pull(B){let{done:I,value:C}=await Q.next();if(I)B.close();else B.enqueue(C)},async cancel(){await Q.return?.()}})}function xg(A){if(A[Symbol.asyncIterator])return A;let Q=A.getReader();return{async next(){try{let B=await Q.read();if(B?.done)Q.releaseLock();return B}catch(B){throw Q.releaseLock(),B}},async return(){let B=Q.cancel();return Q.releaseLock(),await B,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function WX(A){if(A===null||typeof A!=="object")return;if(A[Symbol.asyncIterator]){await A[Symbol.asyncIterator]().return?.();return}let Q=A.getReader(),B=Q.cancel();Q.releaseLock(),await B}var VX=({headers:A,body:Q})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(Q)}};function ZX(A){return Object.entries(A).filter(([Q,B])=>typeof B<"u").map(([Q,B])=>{if(typeof B==="string"||typeof B==="number"||typeof B==="boolean")return`${encodeURIComponent(Q)}=${encodeURIComponent(B)}`;if(B===null)return`${encodeURIComponent(Q)}=`;throw new P(`Cannot stringify type ${typeof B}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}var XX=L(()=>{XQ()});function zX(A){let Q=0;for(let C of A)Q+=C.length;let B=new Uint8Array(Q),I=0;for(let C of A)B.set(C,I),I+=C.length;return B}function Wg(A){let Q;return(KX??(Q=new globalThis.TextEncoder,KX=Q.encode.bind(Q)))(A)}function WD(A){let Q;return(LX??(Q=new globalThis.TextDecoder,LX=Q.decode.bind(Q)))(A)}var KX,LX;class KI{constructor(){PQ.set(this,void 0),TQ.set(this,void 0),O(this,PQ,new Uint8Array,"f"),O(this,TQ,null,"f")}decode(A){if(A==null)return[];let Q=A instanceof ArrayBuffer?new Uint8Array(A):typeof A==="string"?Wg(A):A;O(this,PQ,zX([K(this,PQ,"f"),Q]),"f");let B=[],I;while((I=Pv(K(this,PQ,"f"),K(this,TQ,"f")))!=null){if(I.carriage&&K(this,TQ,"f")==null){O(this,TQ,I.index,"f");continue}if(K(this,TQ,"f")!=null&&(I.index!==K(this,TQ,"f")+1||I.carriage)){B.push(WD(K(this,PQ,"f").subarray(0,K(this,TQ,"f")-1))),O(this,PQ,K(this,PQ,"f").subarray(K(this,TQ,"f")),"f"),O(this,TQ,null,"f");continue}let C=K(this,TQ,"f")!==null?I.preceding-1:I.preceding,E=WD(K(this,PQ,"f").subarray(0,C));B.push(E),O(this,PQ,K(this,PQ,"f").subarray(I.index),"f"),O(this,TQ,null,"f")}return B}flush(){if(!K(this,PQ,"f").length)return[];return this.decode(`
|
|
14
|
+
`).map((Q)=>Q.trim()).join(" ")};uZ.O=function(A){return this.inspectOpts.colors=this.useColors,TJ.inspect(A,this.inspectOpts)}});var vJ=Z((iIA,P2)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)P2.exports=fZ();else P2.exports=nZ()});var oZ=Z((uIA,aZ)=>{var d0;aZ.exports=function(){if(!d0){try{d0=vJ()("follow-redirects")}catch(A){}if(typeof d0!=="function")d0=function(){}}d0.apply(null,arguments)}});var A1=Z((dIA,u2)=>{var n0=z("url"),l0=n0.URL,BT=z("http"),IT=z("https"),y2=z("stream").Writable,f2=z("assert"),sZ=oZ();(function(){var Q=typeof process<"u",B=typeof window<"u"&&typeof document<"u",I=gC(Error.captureStackTrace);if(!Q&&(B||!I))console.warn("The follow-redirects package should be excluded from browser builds.")})();var b2=!1;try{f2(new l0(""))}catch(A){b2=A.code==="ERR_INVALID_URL"}var CT=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h2=["abort","aborted","connect","error","socket","timeout"],p2=Object.create(null);h2.forEach(function(A){p2[A]=function(Q,B,I){this._redirectable.emit(A,Q,B,I)}});var c2=a0("ERR_INVALID_URL","Invalid URL",TypeError),v2=a0("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ET=a0("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",v2),gT=a0("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),YT=a0("ERR_STREAM_WRITE_AFTER_END","write after end"),JT=y2.prototype.destroy||tZ;function ZQ(A,Q){if(y2.call(this),this._sanitizeOptions(A),this._options=A,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Q)this.on("response",Q);var B=this;this._onNativeResponse=function(I){try{B._processResponse(I)}catch(C){B.emit("error",C instanceof v2?C:new v2({cause:C}))}},this._performRequest()}ZQ.prototype=Object.create(y2.prototype);ZQ.prototype.abort=function(){i2(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ZQ.prototype.destroy=function(A){return i2(this._currentRequest,A),JT.call(this,A),this};ZQ.prototype.write=function(A,Q,B){if(this._ending)throw new YT;if(!EC(A)&&!GT(A))throw TypeError("data should be a string, Buffer or Uint8Array");if(gC(Q))B=Q,Q=null;if(A.length===0){if(B)B();return}if(this._requestBodyLength+A.length<=this._options.maxBodyLength)this._requestBodyLength+=A.length,this._requestBodyBuffers.push({data:A,encoding:Q}),this._currentRequest.write(A,Q,B);else this.emit("error",new gT),this.abort()};ZQ.prototype.end=function(A,Q,B){if(gC(A))B=A,A=Q=null;else if(gC(Q))B=Q,Q=null;if(!A)this._ended=this._ending=!0,this._currentRequest.end(null,null,B);else{var I=this,C=this._currentRequest;this.write(A,Q,function(){I._ended=!0,C.end(null,null,B)}),this._ending=!0}};ZQ.prototype.setHeader=function(A,Q){this._options.headers[A]=Q,this._currentRequest.setHeader(A,Q)};ZQ.prototype.removeHeader=function(A){delete this._options.headers[A],this._currentRequest.removeHeader(A)};ZQ.prototype.setTimeout=function(A,Q){var B=this;function I(g){g.setTimeout(A),g.removeListener("timeout",g.destroy),g.addListener("timeout",g.destroy)}function C(g){if(B._timeout)clearTimeout(B._timeout);B._timeout=setTimeout(function(){B.emit("timeout"),E()},A),I(g)}function E(){if(B._timeout)clearTimeout(B._timeout),B._timeout=null;if(B.removeListener("abort",E),B.removeListener("error",E),B.removeListener("response",E),B.removeListener("close",E),Q)B.removeListener("timeout",Q);if(!B.socket)B._currentRequest.removeListener("socket",C)}if(Q)this.on("timeout",Q);if(this.socket)C(this.socket);else this._currentRequest.once("socket",C);return this.on("socket",I),this.on("abort",E),this.on("error",E),this.on("response",E),this.on("close",E),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(A){ZQ.prototype[A]=function(Q,B){return this._currentRequest[A](Q,B)}});["aborted","connection","socket"].forEach(function(A){Object.defineProperty(ZQ.prototype,A,{get:function(){return this._currentRequest[A]}})});ZQ.prototype._sanitizeOptions=function(A){if(!A.headers)A.headers={};if(A.host){if(!A.hostname)A.hostname=A.host;delete A.host}if(!A.pathname&&A.path){var Q=A.path.indexOf("?");if(Q<0)A.pathname=A.path;else A.pathname=A.path.substring(0,Q),A.search=A.path.substring(Q)}};ZQ.prototype._performRequest=function(){var A=this._options.protocol,Q=this._options.nativeProtocols[A];if(!Q)throw TypeError("Unsupported protocol "+A);if(this._options.agents){var B=A.slice(0,-1);this._options.agent=this._options.agents[B]}var I=this._currentRequest=Q.request(this._options,this._onNativeResponse);I._redirectable=this;for(var C of h2)I.on(C,p2[C]);if(this._currentUrl=/^\//.test(this._options.path)?n0.format(this._options):this._options.path,this._isRedirect){var E=0,g=this,Y=this._requestBodyBuffers;(function J(U){if(I===g._currentRequest){if(U)g.emit("error",U);else if(E<Y.length){var F=Y[E++];if(!I.finished)I.write(F.data,F.encoding,J)}else if(g._ended)I.end()}})()}};ZQ.prototype._processResponse=function(A){var Q=A.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:A.headers,statusCode:Q});var B=A.headers.location;if(!B||this._options.followRedirects===!1||Q<300||Q>=400){A.responseUrl=this._currentUrl,A.redirects=this._redirects,this.emit("response",A),this._requestBodyBuffers=[];return}if(i2(this._currentRequest),A.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ET;var I,C=this._options.beforeRedirect;if(C)I=Object.assign({Host:A.req.getHeader("host")},this._options.headers);var E=this._options.method;if((Q===301||Q===302)&&this._options.method==="POST"||Q===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],T2(/^content-/i,this._options.headers);var g=T2(/^host$/i,this._options.headers),Y=m2(this._currentUrl),J=g||Y.host,U=/^\w+:/.test(B)?this._currentUrl:n0.format(Object.assign(Y,{host:J})),F=FT(B,U);if(sZ("redirecting to",F.href),this._isRedirect=!0,k2(F,this._options),F.protocol!==Y.protocol&&F.protocol!=="https:"||F.host!==J&&!UT(F.host,J))T2(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers);if(gC(C)){var G={headers:A.headers,statusCode:Q},D={url:U,method:E,headers:I};C(this._options,G,D),this._sanitizeOptions(this._options)}this._performRequest()};function rZ(A){var Q={maxRedirects:21,maxBodyLength:10485760},B={};return Object.keys(A).forEach(function(I){var C=I+":",E=B[C]=A[I],g=Q[I]=Object.create(E);function Y(U,F,G){if(DT(U))U=k2(U);else if(EC(U))U=k2(m2(U));else G=F,F=eZ(U),U={protocol:C};if(gC(F))G=F,F=null;if(F=Object.assign({maxRedirects:Q.maxRedirects,maxBodyLength:Q.maxBodyLength},U,F),F.nativeProtocols=B,!EC(F.host)&&!EC(F.hostname))F.hostname="::1";return f2.equal(F.protocol,C,"protocol mismatch"),sZ("options",F),new ZQ(F,G)}function J(U,F,G){var D=g.request(U,F,G);return D.end(),D}Object.defineProperties(g,{request:{value:Y,configurable:!0,enumerable:!0,writable:!0},get:{value:J,configurable:!0,enumerable:!0,writable:!0}})}),Q}function tZ(){}function m2(A){var Q;if(b2)Q=new l0(A);else if(Q=eZ(n0.parse(A)),!EC(Q.protocol))throw new c2({input:A});return Q}function FT(A,Q){return b2?new l0(A,Q):m2(n0.resolve(Q,A))}function eZ(A){if(/^\[/.test(A.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(A.hostname))throw new c2({input:A.href||A});if(/^\[/.test(A.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(A.host))throw new c2({input:A.href||A});return A}function k2(A,Q){var B=Q||{};for(var I of CT)B[I]=A[I];if(B.hostname.startsWith("["))B.hostname=B.hostname.slice(1,-1);if(B.port!=="")B.port=Number(B.port);return B.path=B.search?B.pathname+B.search:B.pathname,B}function T2(A,Q){var B;for(var I in Q)if(A.test(I))B=Q[I],delete Q[I];return B===null||typeof B>"u"?void 0:String(B).trim()}function a0(A,Q,B){function I(C){if(gC(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,C||{}),this.code=A,this.message=this.cause?Q+": "+this.cause.message:Q}return I.prototype=Object.create((B||Error).prototype),Object.defineProperties(I.prototype,{constructor:{value:I,enumerable:!1},name:{value:"Error ["+A+"]",enumerable:!1}}),I}function i2(A,Q){for(var B of h2)A.removeListener(B,p2[B]);A.on("error",tZ),A.destroy(Q)}function UT(A,Q){f2(EC(A)&&EC(Q));var B=A.length-Q.length-1;return B>0&&A[B]==="."&&A.endsWith(Q)}function EC(A){return typeof A==="string"||A instanceof String}function gC(A){return typeof A==="function"}function GT(A){return typeof A==="object"&&"length"in A}function DT(A){return l0&&A instanceof l0}u2.exports=rZ({http:BT,https:IT});u2.exports.wrap=rZ});function rT(){this.__data__=[],this.size=0}var k1;var y1=L(()=>{k1=rT});function tT(A,Q){return A===Q||A!==A&&Q!==Q}var f1;var b1=L(()=>{f1=tT});function eT(A,Q){var B=A.length;while(B--)if(f1(A[B][0],Q))return B;return-1}var WI;var Ag=L(()=>{b1();WI=eT});function Bc(A){var Q=this.__data__,B=WI(Q,A);if(B<0)return!1;var I=Q.length-1;if(B==I)Q.pop();else Qc.call(Q,B,1);return--this.size,!0}var Ac,Qc,h1;var p1=L(()=>{Ag();Ac=Array.prototype,Qc=Ac.splice;h1=Bc});function Ic(A){var Q=this.__data__,B=WI(Q,A);return B<0?void 0:Q[B][1]}var m1;var i1=L(()=>{Ag();m1=Ic});function Cc(A){return WI(this.__data__,A)>-1}var u1;var d1=L(()=>{Ag();u1=Cc});function Ec(A,Q){var B=this.__data__,I=WI(B,A);if(I<0)++this.size,B.push([A,Q]);else B[I][1]=Q;return this}var l1;var n1=L(()=>{Ag();l1=Ec});function EE(A){var Q=-1,B=A==null?0:A.length;this.clear();while(++Q<B){var I=A[Q];this.set(I[0],I[1])}}var a1;var o1=L(()=>{y1();p1();i1();d1();n1();EE.prototype.clear=k1;EE.prototype.delete=h1;EE.prototype.get=m1;EE.prototype.has=u1;EE.prototype.set=l1;a1=EE});var gc,s1;var r1=L(()=>{gc=typeof global=="object"&&global&&global.Object===Object&&global,s1=gc});var Yc,Jc,gE;var mJ=L(()=>{r1();Yc=typeof self=="object"&&self&&self.Object===Object&&self,Jc=s1||Yc||Function("return this")(),gE=Jc});var Fc,YE;var ID=L(()=>{mJ();Fc=gE.Symbol,YE=Fc});function Dc(A){var Q=Uc.call(A,Qg),B=A[Qg];try{A[Qg]=void 0;var I=!0}catch(E){}var C=Gc.call(A);if(I)if(Q)A[Qg]=B;else delete A[Qg];return C}var t1,Uc,Gc,Qg,e1;var A9=L(()=>{ID();t1=Object.prototype,Uc=t1.hasOwnProperty,Gc=t1.toString,Qg=YE?YE.toStringTag:void 0;e1=Dc});function Mc(A){return wc.call(A)}var Nc,wc,Q9;var B9=L(()=>{Nc=Object.prototype,wc=Nc.toString;Q9=Mc});function Vc(A){if(A==null)return A===void 0?Wc:xc;return I9&&I9 in Object(A)?e1(A):Q9(A)}var xc="[object Null]",Wc="[object Undefined]",I9,C9;var E9=L(()=>{ID();A9();B9();I9=YE?YE.toStringTag:void 0;C9=Vc});function Zc(A){var Q=typeof A;return A!=null&&(Q=="object"||Q=="function")}var iJ;var CD=L(()=>{iJ=Zc});function Hc(A){if(!iJ(A))return!1;var Q=C9(A);return Q==Kc||Q==Lc||Q==Xc||Q==zc}var Xc="[object AsyncFunction]",Kc="[object Function]",Lc="[object GeneratorFunction]",zc="[object Proxy]",g9;var Y9=L(()=>{E9();CD();g9=Hc});var Rc,uJ;var J9=L(()=>{mJ();Rc=gE["__core-js_shared__"],uJ=Rc});function $c(A){return!!F9&&F9 in A}var F9,U9;var G9=L(()=>{J9();F9=function(){var A=/[^.]+$/.exec(uJ&&uJ.keys&&uJ.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();U9=$c});function Sc(A){if(A!=null){try{return qc.call(A)}catch(Q){}try{return A+""}catch(Q){}}return""}var jc,qc,D9;var N9=L(()=>{jc=Function.prototype,qc=jc.toString;D9=Sc});function yc(A){if(!iJ(A)||U9(A))return!1;var Q=g9(A)?kc:Oc;return Q.test(D9(A))}var _c,Oc,Pc,Tc,cc,vc,kc,w9;var M9=L(()=>{Y9();G9();CD();N9();_c=/[\\^$.*+?()[\]{}|]/g,Oc=/^\[object .+?Constructor\]$/,Pc=Function.prototype,Tc=Object.prototype,cc=Pc.toString,vc=Tc.hasOwnProperty,kc=RegExp("^"+cc.call(vc).replace(_c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w9=yc});function fc(A,Q){return A==null?void 0:A[Q]}var x9;var W9=L(()=>{x9=fc});function bc(A,Q){var B=x9(A,Q);return w9(B)?B:void 0}var dJ;var ED=L(()=>{M9();W9();dJ=bc});var hc,V9;var Z9=L(()=>{ED();mJ();hc=dJ(gE,"Map"),V9=hc});var pc,mB;var Bg=L(()=>{ED();pc=dJ(Object,"create"),mB=pc});function mc(){this.__data__=mB?mB(null):{},this.size=0}var X9;var K9=L(()=>{Bg();X9=mc});function ic(A){var Q=this.has(A)&&delete this.__data__[A];return this.size-=Q?1:0,Q}var L9;var z9=L(()=>{L9=ic});function nc(A){var Q=this.__data__;if(mB){var B=Q[A];return B===uc?void 0:B}return lc.call(Q,A)?Q[A]:void 0}var uc="__lodash_hash_undefined__",dc,lc,H9;var R9=L(()=>{Bg();dc=Object.prototype,lc=dc.hasOwnProperty;H9=nc});function sc(A){var Q=this.__data__;return mB?Q[A]!==void 0:oc.call(Q,A)}var ac,oc,$9;var j9=L(()=>{Bg();ac=Object.prototype,oc=ac.hasOwnProperty;$9=sc});function tc(A,Q){var B=this.__data__;return this.size+=this.has(A)?0:1,B[A]=mB&&Q===void 0?rc:Q,this}var rc="__lodash_hash_undefined__",q9;var S9=L(()=>{Bg();q9=tc});function JE(A){var Q=-1,B=A==null?0:A.length;this.clear();while(++Q<B){var I=A[Q];this.set(I[0],I[1])}}var gD;var _9=L(()=>{K9();z9();R9();j9();S9();JE.prototype.clear=X9;JE.prototype.delete=L9;JE.prototype.get=H9;JE.prototype.has=$9;JE.prototype.set=q9;gD=JE});function ec(){this.size=0,this.__data__={hash:new gD,map:new(V9||a1),string:new gD}}var O9;var P9=L(()=>{_9();o1();Z9();O9=ec});function Av(A){var Q=typeof A;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?A!=="__proto__":A===null}var T9;var c9=L(()=>{T9=Av});function Qv(A,Q){var B=A.__data__;return T9(Q)?B[typeof Q=="string"?"string":"hash"]:B.map}var VI;var Ig=L(()=>{c9();VI=Qv});function Bv(A){var Q=VI(this,A).delete(A);return this.size-=Q?1:0,Q}var v9;var k9=L(()=>{Ig();v9=Bv});function Iv(A){return VI(this,A).get(A)}var y9;var f9=L(()=>{Ig();y9=Iv});function Cv(A){return VI(this,A).has(A)}var b9;var h9=L(()=>{Ig();b9=Cv});function Ev(A,Q){var B=VI(this,A),I=B.size;return B.set(A,Q),this.size+=B.size==I?0:1,this}var p9;var m9=L(()=>{Ig();p9=Ev});function FE(A){var Q=-1,B=A==null?0:A.length;this.clear();while(++Q<B){var I=A[Q];this.set(I[0],I[1])}}var YD;var i9=L(()=>{P9();k9();f9();h9();m9();FE.prototype.clear=O9;FE.prototype.delete=v9;FE.prototype.get=y9;FE.prototype.has=b9;FE.prototype.set=p9;YD=FE});function JD(A,Q){if(typeof A!="function"||Q!=null&&typeof Q!="function")throw TypeError(gv);var B=function(){var I=arguments,C=Q?Q.apply(this,I):I[0],E=B.cache;if(E.has(C))return E.get(C);var g=A.apply(this,I);return B.cache=E.set(C,g)||E,g};return B.cache=new(JD.Cache||YD),B}var gv="Expected a function",$A;var iB=L(()=>{i9();JD.Cache=YD;$A=JD});import{randomUUID as u9}from"crypto";var d9=()=>{};var l9=()=>{};function fA(A){if(!A)return!1;if(typeof A==="boolean")return A;let Q=String(A).toLowerCase().trim();return["1","true","yes","on"].includes(Q)}function UE(A){if(!A||A.startsWith("-")||A.startsWith("/"))return!1;if(A.includes(".."))return!1;if(A.split("/").some((Q)=>Q==="."||Q===""))return!1;return/^[a-zA-Z0-9/._+@-]+$/.test(A)}function FC(){let A=new Set;return{subscribe(Q){return A.add(Q),()=>{A.delete(Q)}},emit(...Q){let B;for(let I of A)try{I(...Q)}catch(C){(B??=[]).push(C)}if(B)throw B.length===1?B[0]:AggregateError(B,"Signal listener(s) threw")},clear(){A.clear()}}}var n9=()=>{};var Cg=L(()=>{n9()});var a9=L(()=>{Cg()});function o9(){return{sent:new Set,rejected:new Set}}import{realpathSync as s9}from"fs";import{cwd as Jv}from"process";function Uv(){let A="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof s9==="function"){let B=Jv();try{A=s9(B).normalize("NFC")}catch{A=B.normalize("NFC")}}return{originalCwd:A,projectRoot:A,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:A,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,attacherCaps:null,hasStreamingInput:!1,fridayFundayDisabledForSession:!1,kairosActive:!1,strictToolResultPairing:!1,memoryToggledOff:!1,teamMemoryServerStatus:void 0,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,sessionStartType:"fresh",questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,parentManagedSettings:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u9(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],inlinePluginUrls:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionPrResolved:!1,sessionCronTasks:[],loopChainStartedAt:Object.create(null),sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,sdkOAuthTokenRefreshCallback:null,mainThreadAgentType:void 0,mainThreadAgentHooks:void 0,sessionSkillAllowlist:void 0,caps:Fv,replBridgeActive:!1,directConnectServerUrl:void 0,activeRoutine:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],activeInputs:new Map,hasDevChannels:!1,sessionProjectDir:null,promptCache1hAllowlist:null,stickyBetas:o9(),thinkingTypeOverrides:new Map,inferenceProfileBackingModels:new Map,promptId:null,promptIndex:0,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function FD(){return GE.sessionId}function r9(){return GE.originalCwd}function t9(){return GE.cwd}async function e9(){while(Mv)await new Promise((A)=>setTimeout(A,xv).unref?.())}function AX(){return GE.sessionIngressToken}function DE(A){GE.sessionIngressToken=A}function lJ(){return GE.caps.workspace==="remote"}var Fv,GE,Gv,yYA,Dv,fYA,Nv,bYA,wv,hYA,Mv=!1,xv=150;var zB=L(()=>{d9();l9();a9();Fv={renderTarget:"ink",workspace:"local",canDrive:!0,transcriptSource:"local-jsonl",remote:null};GE=Uv();Gv=FC(),yYA=Gv.subscribe;Dv=FC(),fYA=Dv.subscribe;Nv=FC(),bYA=Nv.subscribe,wv=FC(),hYA=wv.subscribe});import{AsyncLocalStorage as Wv}from"async_hooks";function Zv(){return Vv.getStore()?.cwd??t9()}function UQ(){try{return Zv()}catch{return r9()}}var Vv;var UC=L(()=>{zB();Vv=new Wv});function QX({writeFn:A,flushIntervalMs:Q=1000,maxBufferSize:B=100,maxBufferBytes:I=1/0,immediateMode:C=!1}){let E=[],g=0,Y=null,J=null;function U(){if(Y)clearTimeout(Y),Y=null}function F(){if(J)A(J.join("")),J=null;if(E.length===0)return;A(E.join("")),E=[],g=0,U()}function G(){if(!Y)Y=setTimeout(F,Q)}function D(){if(J){J.push(...E),E=[],g=0,U();return}let M=E;E=[],g=0,U(),J=M,setImmediate(()=>{let N=J;if(J=null,N)A(N.join(""))})}return{write(M){if(C){A(M);return}if(E.push(M),g+=M.length,G(),E.length>=B||g>=I)D()},flush:F,dispose(){F()}}}function Xv(A){if(typeof A==="function")return A;if(Symbol.asyncDispose in A)return()=>A[Symbol.asyncDispose]();return()=>A[Symbol.dispose]()}function Eg(A){let Q=Xv(A);BX.add(Q);let B=()=>{BX.delete(Q)};return Object.assign(B,{[Symbol.dispose]:B})}var BX;var nJ=L(()=>{BX=new Set});function Kv(A){let Q=[],B=A.match(/^MCP server ["']([^"']+)["']/);if(B&&B[1])Q.push("mcp"),Q.push(B[1].toLowerCase());else{let E=A.match(/^([^:[]+):/);if(E&&E[1])Q.push(E[1].trim().toLowerCase())}let I=A.match(/^\[([^\]]+)]/);if(I&&I[1])Q.push(I[1].trim().toLowerCase());if(A.toLowerCase().includes("1p event:"))Q.push("1p");let C=A.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(C&&C[1]){let E=C[1].trim().toLowerCase();if(E.length<30&&!E.includes(" "))Q.push(E)}return Array.from(new Set(Q))}function Lv(A,Q){if(!Q)return!0;if(A.length===0)return!1;if(Q.isExclusive)return!A.some((B)=>Q.exclude.includes(B));else return A.some((B)=>Q.include.includes(B))}function CX(A,Q){if(!Q)return!0;let B=Kv(A);return Lv(B,Q)}var IX;var EX=L(()=>{iB();IX=$A((A)=>{if(!A||A.trim()==="")return null;let Q=A.split(",").map((E)=>E.trim()).filter(Boolean);if(Q.length===0)return null;let B=Q.some((E)=>E.startsWith("!")),I=Q.some((E)=>!E.startsWith("!"));if(B&&I)return null;let C=Q.map((E)=>E.replace(/^!/,"").toLowerCase());return{include:B?[]:C,exclude:B?C:[],isExclusive:B}})});import{homedir as zv}from"os";import{join as Hv}from"path";function UD(A){let Q=process.env.NODE_OPTIONS;if(!Q)return!1;return Q.split(/\s+/).includes(A)}var gX;var ZI=L(()=>{Cg();iB();Cg();gX=$A(()=>{return(process.env.CLAUDE_CONFIG_DIR??Hv(zv(),".claude")).normalize("NFC")},()=>process.env.CLAUDE_CONFIG_DIR)});function O(A,Q,B,I,C){if(I==="m")throw TypeError("Private method is not writable");if(I==="a"&&!C)throw TypeError("Private accessor was defined without a setter");if(typeof Q==="function"?A!==Q||!C:!Q.has(A))throw TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?C.call(A,B):C?C.value=B:Q.set(A,B),B}function K(A,Q,B,I){if(B==="a"&&!I)throw TypeError("Private accessor was defined without a getter");if(typeof Q==="function"?A!==Q||!I:!Q.has(A))throw TypeError("Cannot read private member from an object whose class did not declare it");return B==="m"?I:B==="a"?I.call(A):I?I.value:Q.get(A)}var uB=()=>{};var GD=function(){let{crypto:A}=globalThis;if(A?.randomUUID)return GD=A.randomUUID.bind(A),A.randomUUID();let Q=new Uint8Array(1),B=A?()=>A.getRandomValues(Q)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(I)=>(+I^B()&15>>+I/4).toString(16))};function dB(A){return typeof A==="object"&&A!==null&&(("name"in A)&&A.name==="AbortError"||("message"in A)&&String(A.message).includes("FetchRequestCanceledException"))}var gg=(A)=>{if(A instanceof Error)return A;if(typeof A==="object"&&A!==null){try{if(Object.prototype.toString.call(A)==="[object Error]"){let Q=Error(A.message,A.cause?{cause:A.cause}:{});if(A.stack)Q.stack=A.stack;if(A.cause&&!Q.cause)Q.cause=A.cause;if(A.name)Q.name=A.name;return Q}}catch{}try{return Error(JSON.stringify(A))}catch{}}return Error(A)};var P,pA,AQ,GC,Yg,Jg,Fg,Ug,Gg,Dg,Ng,wg,Mg;var XQ=L(()=>{P=class P extends Error{};pA=class pA extends P{constructor(A,Q,B,I,C){super(`${pA.makeMessage(A,Q,B)}`);this.status=A,this.headers=I,this.requestID=I?.get("request-id"),this.error=Q,this.type=C??null}static makeMessage(A,Q,B){let I=Q?.message?typeof Q.message==="string"?Q.message:JSON.stringify(Q.message):Q?JSON.stringify(Q):B;if(A&&I)return`${A} ${I}`;if(A)return`${A} status code (no body)`;if(I)return I;return"(no status code or body)"}static generate(A,Q,B,I){if(!A||!I)return new GC({message:B,cause:gg(Q)});let C=Q,E=C?.error?.type;if(A===400)return new Jg(A,C,B,I,E);if(A===401)return new Fg(A,C,B,I,E);if(A===403)return new Ug(A,C,B,I,E);if(A===404)return new Gg(A,C,B,I,E);if(A===409)return new Dg(A,C,B,I,E);if(A===422)return new Ng(A,C,B,I,E);if(A===429)return new wg(A,C,B,I,E);if(A>=500)return new Mg(A,C,B,I,E);return new pA(A,C,B,I,E)}};AQ=class AQ extends pA{constructor({message:A}={}){super(void 0,void 0,A||"Request was aborted.",void 0)}};GC=class GC extends pA{constructor({message:A,cause:Q}){super(void 0,void 0,A||"Connection error.",void 0);if(Q)this.cause=Q}};Yg=class Yg extends GC{constructor({message:A}={}){super({message:A??"Request timed out."})}};Jg=class Jg extends pA{};Fg=class Fg extends pA{};Ug=class Ug extends pA{};Gg=class Gg extends pA{};Dg=class Dg extends pA{};Ng=class Ng extends pA{};wg=class wg extends pA{};Mg=class Mg extends pA{}});function aJ(A){if(typeof A!=="object")return{};return A??{}}function wD(A){if(!A)return!0;for(let Q in A)return!1;return!0}function JX(A,Q){return Object.prototype.hasOwnProperty.call(A,Q)}var $v,YX=(A)=>{return $v.test(A)},DD=(A)=>(DD=Array.isArray,DD(A)),ND,FX=(A,Q)=>{if(typeof Q!=="number"||!Number.isInteger(Q))throw new P(`${A} must be an integer`);if(Q<0)throw new P(`${A} must be a positive integer`);return Q},oJ=(A)=>{try{return JSON.parse(A)}catch(Q){return}};var DC=L(()=>{XQ();$v=/^[a-z][a-z0-9+.-]*:/i,ND=DD});var UX=(A)=>new Promise((Q)=>setTimeout(Q,A));var XI="0.81.0";function jv(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}function Sv(){if(typeof navigator>"u"||!navigator)return null;let A=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:Q,pattern:B}of A){let I=B.exec(navigator.userAgent);if(I){let C=I[1]||0,E=I[2]||0,g=I[3]||0;return{browser:Q,version:`${C}.${E}.${g}`}}}return null}var wX=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"},qv=()=>{let A=jv();if(A==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":DX(Deno.build.os),"X-Stainless-Arch":GX(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(A==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":DX(globalThis.process.platform??"unknown"),"X-Stainless-Arch":GX(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let Q=Sv();if(Q)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${Q.browser}`,"X-Stainless-Runtime-Version":Q.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":XI,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},GX=(A)=>{if(A==="x32")return"x32";if(A==="x86_64"||A==="x64")return"x64";if(A==="arm")return"arm";if(A==="aarch64"||A==="arm64")return"arm64";if(A)return`other:${A}`;return"unknown"},DX=(A)=>{if(A=A.toLowerCase(),A.includes("ios"))return"iOS";if(A==="android")return"Android";if(A==="darwin")return"MacOS";if(A==="win32")return"Windows";if(A==="freebsd")return"FreeBSD";if(A==="openbsd")return"OpenBSD";if(A==="linux")return"Linux";if(A)return`Other:${A}`;return"Unknown"},NX,MX=()=>{return NX??(NX=qv())};var MD=()=>{};function xX(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function xD(...A){let Q=globalThis.ReadableStream;if(typeof Q>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new Q(...A)}function sJ(A){let Q=Symbol.asyncIterator in A?A[Symbol.asyncIterator]():A[Symbol.iterator]();return xD({start(){},async pull(B){let{done:I,value:C}=await Q.next();if(I)B.close();else B.enqueue(C)},async cancel(){await Q.return?.()}})}function xg(A){if(A[Symbol.asyncIterator])return A;let Q=A.getReader();return{async next(){try{let B=await Q.read();if(B?.done)Q.releaseLock();return B}catch(B){throw Q.releaseLock(),B}},async return(){let B=Q.cancel();return Q.releaseLock(),await B,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function WX(A){if(A===null||typeof A!=="object")return;if(A[Symbol.asyncIterator]){await A[Symbol.asyncIterator]().return?.();return}let Q=A.getReader(),B=Q.cancel();Q.releaseLock(),await B}var VX=({headers:A,body:Q})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(Q)}};function ZX(A){return Object.entries(A).filter(([Q,B])=>typeof B<"u").map(([Q,B])=>{if(typeof B==="string"||typeof B==="number"||typeof B==="boolean")return`${encodeURIComponent(Q)}=${encodeURIComponent(B)}`;if(B===null)return`${encodeURIComponent(Q)}=`;throw new P(`Cannot stringify type ${typeof B}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}var XX=L(()=>{XQ()});function zX(A){let Q=0;for(let C of A)Q+=C.length;let B=new Uint8Array(Q),I=0;for(let C of A)B.set(C,I),I+=C.length;return B}function Wg(A){let Q;return(KX??(Q=new globalThis.TextEncoder,KX=Q.encode.bind(Q)))(A)}function WD(A){let Q;return(LX??(Q=new globalThis.TextDecoder,LX=Q.decode.bind(Q)))(A)}var KX,LX;class KI{constructor(){PQ.set(this,void 0),TQ.set(this,void 0),O(this,PQ,new Uint8Array,"f"),O(this,TQ,null,"f")}decode(A){if(A==null)return[];let Q=A instanceof ArrayBuffer?new Uint8Array(A):typeof A==="string"?Wg(A):A;O(this,PQ,zX([K(this,PQ,"f"),Q]),"f");let B=[],I;while((I=Pv(K(this,PQ,"f"),K(this,TQ,"f")))!=null){if(I.carriage&&K(this,TQ,"f")==null){O(this,TQ,I.index,"f");continue}if(K(this,TQ,"f")!=null&&(I.index!==K(this,TQ,"f")+1||I.carriage)){B.push(WD(K(this,PQ,"f").subarray(0,K(this,TQ,"f")-1))),O(this,PQ,K(this,PQ,"f").subarray(K(this,TQ,"f")),"f"),O(this,TQ,null,"f");continue}let C=K(this,TQ,"f")!==null?I.preceding-1:I.preceding,E=WD(K(this,PQ,"f").subarray(0,C));B.push(E),O(this,PQ,K(this,PQ,"f").subarray(I.index),"f"),O(this,TQ,null,"f")}return B}flush(){if(!K(this,PQ,"f").length)return[];return this.decode(`
|
|
15
15
|
`)}}function Pv(A,Q){for(let C=Q??0;C<A.length;C++){if(A[C]===10)return{preceding:C,index:C+1,carriage:!1};if(A[C]===13)return{preceding:C,index:C+1,carriage:!0}}return null}function HX(A){for(let I=0;I<A.length-1;I++){if(A[I]===10&&A[I+1]===10)return I+2;if(A[I]===13&&A[I+1]===13)return I+2;if(A[I]===13&&A[I+1]===10&&I+3<A.length&&A[I+2]===13&&A[I+3]===10)return I+4}return-1}var PQ,TQ;var VD=L(()=>{uB();PQ=new WeakMap,TQ=new WeakMap;KI.NEWLINE_CHARS=new Set([`
|
|
16
16
|
`,"\r"]);KI.NEWLINE_REGEXP=/\r\n|[\n\r]/g});function Vg(){}function rJ(A,Q,B){if(!Q||tJ[A]>tJ[B])return Vg;else return Q[A].bind(Q)}function aA(A){let Q=A.logger,B=A.logLevel??"off";if(!Q)return Tv;let I=RX.get(Q);if(I&&I[0]===B)return I[1];let C={error:rJ("error",Q,B),warn:rJ("warn",Q,B),info:rJ("info",Q,B),debug:rJ("debug",Q,B)};return RX.set(Q,[B,C]),C}var tJ,ZD=(A,Q,B)=>{if(!A)return;if(JX(tJ,A))return A;aA(B).warn(`${Q} was set to ${JSON.stringify(A)}, expected one of ${JSON.stringify(Object.keys(tJ))}`);return},Tv,RX,lB=(A)=>{if(A.options)A.options={...A.options},delete A.options.headers;if(A.headers)A.headers=Object.fromEntries((A.headers instanceof Headers?[...A.headers]:Object.entries(A.headers)).map(([Q,B])=>[Q,Q.toLowerCase()==="x-api-key"||Q.toLowerCase()==="authorization"||Q.toLowerCase()==="cookie"||Q.toLowerCase()==="set-cookie"?"***":B]));if("retryOfRequestLogID"in A){if(A.retryOfRequestLogID)A.retryOf=A.retryOfRequestLogID;delete A.retryOfRequestLogID}return A};var eJ=L(()=>{DC();tJ={off:0,error:200,warn:300,info:400,debug:500};Tv={error:Vg,warn:Vg,info:Vg,debug:Vg},RX=new WeakMap});async function*cv(A,Q){if(!A.body){if(Q.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new P("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new P("Attempted to iterate over a response with no body")}let B=new $X,I=new KI,C=xg(A.body);for await(let E of vv(C))for(let g of I.decode(E)){let Y=B.decode(g);if(Y)yield Y}for(let E of I.flush()){let g=B.decode(E);if(g)yield g}}async function*vv(A){let Q=new Uint8Array;for await(let B of A){if(B==null)continue;let I=B instanceof ArrayBuffer?new Uint8Array(B):typeof B==="string"?Wg(B):B,C=new Uint8Array(Q.length+I.length);C.set(Q),C.set(I,Q.length),Q=C;let E;while((E=HX(Q))!==-1)yield Q.slice(0,E),Q=Q.slice(E)}if(Q.length>0)yield Q}class $X{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(A){if(A.endsWith("\r"))A=A.substring(0,A.length-1);if(!A){if(!this.event&&!this.data.length)return null;let C={event:this.event,data:this.data.join(`
|
|
17
17
|
`),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],C}if(this.chunks.push(A),A.startsWith(":"))return null;let[Q,B,I]=kv(A,":");if(I.startsWith(" "))I=I.substring(1);if(Q==="event")this.event=I;else if(Q==="data")this.data.push(I);return null}}function kv(A,Q){let B=A.indexOf(Q);if(B!==-1)return[A.substring(0,B),Q,A.substring(B+Q.length)];return[A,"",""]}var Zg,cQ;var XD=L(()=>{uB();XQ();VD();DC();eJ();XQ();cQ=class cQ{constructor(A,Q,B){this.iterator=A,Zg.set(this,void 0),this.controller=Q,O(this,Zg,B,"f")}static fromSSEResponse(A,Q,B){let I=!1,C=B?aA(B):console;async function*E(){if(I)throw new P("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");I=!0;let g=!1;try{for await(let Y of cv(A,Q)){if(Y.event==="completion")try{yield JSON.parse(Y.data)}catch(J){throw C.error("Could not parse message into JSON:",Y.data),C.error("From chunk:",Y.raw),J}if(Y.event==="message_start"||Y.event==="message_delta"||Y.event==="message_stop"||Y.event==="content_block_start"||Y.event==="content_block_delta"||Y.event==="content_block_stop")try{yield JSON.parse(Y.data)}catch(J){throw C.error("Could not parse message into JSON:",Y.data),C.error("From chunk:",Y.raw),J}if(Y.event==="ping")continue;if(Y.event==="error"){let J=oJ(Y.data)??Y.data,U=J?.error?.type;throw new pA(void 0,J,void 0,A.headers,U)}}g=!0}catch(Y){if(dB(Y))return;throw Y}finally{if(!g)Q.abort()}}return new cQ(E,Q,B)}static fromReadableStream(A,Q,B){let I=!1;async function*C(){let g=new KI,Y=xg(A);for await(let J of Y)for(let U of g.decode(J))yield U;for(let J of g.flush())yield J}async function*E(){if(I)throw new P("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");I=!0;let g=!1;try{for await(let Y of C()){if(g)continue;if(Y)yield JSON.parse(Y)}g=!0}catch(Y){if(dB(Y))return;throw Y}finally{if(!g)Q.abort()}}return new cQ(E,Q,B)}[(Zg=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let A=[],Q=[],B=this.iterator(),I=(C)=>{return{next:()=>{if(C.length===0){let E=B.next();A.push(E),Q.push(E)}return C.shift()}}};return[new cQ(()=>I(A),this.controller,K(this,Zg,"f")),new cQ(()=>I(Q),this.controller,K(this,Zg,"f"))]}toReadableStream(){let A=this,Q;return xD({async start(){Q=A[Symbol.asyncIterator]()},async pull(B){try{let{value:I,done:C}=await Q.next();if(C)return B.close();let E=Wg(JSON.stringify(I)+`
|
|
@@ -122,7 +122,7 @@ ${C}`;break;case"retry":if(Oq(C))Q[I]=C;break;case"id":if(Pq(C))Q[I]=C;break;cas
|
|
|
122
122
|
`,ZT=s0.encode(JC),XT=2;class I1{constructor(A,Q){let{escapeName:B}=this.constructor,I=V.isString(Q),C=`Content-Disposition: form-data; name="${B(A)}"${!I&&Q.name?`; filename="${B(Q.name)}"`:""}${JC}`;if(I)Q=s0.encode(String(Q).replace(/\r?\n|\r\n?/g,JC));else C+=`Content-Type: ${Q.type||"application/octet-stream"}${JC}`;this.headers=s0.encode(C+JC),this.contentLength=I?Q.byteLength:Q.size,this.size=this.headers.byteLength+this.contentLength+XT,this.name=A,this.value=Q}async*encode(){yield this.headers;let{value:A}=this;if(V.isTypedArray(A))yield A;else yield*kJ(A);yield ZT}static escapeName(A){return String(A).replace(/[\r\n"]/g,(Q)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Q])}}var KT=(A,Q,B)=>{let{tag:I="form-data-boundary",size:C=25,boundary:E=I+"-"+BA.generateString(C,VT)}=B||{};if(!V.isFormData(A))throw TypeError("FormData instance required");if(E.length<1||E.length>70)throw Error("boundary must be 10-70 characters long");let g=s0.encode("--"+E+JC),Y=s0.encode("--"+E+"--"+JC),J=Y.byteLength,U=Array.from(A.entries()).map(([G,D])=>{let M=new I1(G,D);return J+=M.size,M});J+=g.byteLength*U.length,J=V.toFiniteNumber(J);let F={"Content-Type":`multipart/form-data; boundary=${E}`};if(Number.isFinite(J))F["Content-Length"]=J;return Q&&Q(F),WT.from(async function*(){for(let G of U)yield g,yield*G.encode();yield Y}())},C1=KT;import LT from"stream";class E1 extends LT.Transform{__transform(A,Q,B){this.push(A),B()}_transform(A,Q,B){if(A.length!==0){if(this._transform=this.__transform,A[0]!==120){let I=Buffer.alloc(2);I[0]=120,I[1]=156,this.push(I,Q)}}this.__transform(A,Q,B)}}var g1=E1;var zT=(A,Q)=>{return V.isAsyncFn(A)?function(...B){let I=B.pop();A.apply(this,B).then((C)=>{try{Q?I(null,...Q(C)):I(null,C)}catch(E){I(E)}},I)}:A},Y1=zT;function HT(A,Q){A=A||10;let B=Array(A),I=Array(A),C=0,E=0,g;return Q=Q!==void 0?Q:1000,function(J){let U=Date.now(),F=I[E];if(!g)g=U;B[C]=J,I[C]=U;let G=E,D=0;while(G!==C)D+=B[G++],G=G%A;if(C=(C+1)%A,C===E)E=(E+1)%A;if(U-g<Q)return;let M=F&&U-F;return M?Math.round(D*1000/M):void 0}}var J1=HT;function RT(A,Q){let B=0,I=1000/Q,C,E,g=(U,F=Date.now())=>{if(B=F,C=null,E)clearTimeout(E),E=null;A(...U)};return[(...U)=>{let F=Date.now(),G=F-B;if(G>=I)g(U,F);else if(C=U,!E)E=setTimeout(()=>{E=null,g(C)},I-G)},()=>C&&g(C)]}var F1=RT;var pB=(A,Q,B=3)=>{let I=0,C=J1(50,250);return F1((E)=>{let g=E.loaded,Y=E.lengthComputable?E.total:void 0,J=g-I,U=C(J),F=g<=Y;I=g;let G={loaded:g,total:Y,progress:Y?g/Y:void 0,bytes:J,rate:U?U:void 0,estimated:U&&Y&&F?(Y-g)/U:void 0,event:E,lengthComputable:Y!=null,[Q?"download":"upload"]:!0};A(G)},B)},IE=(A,Q)=>{let B=A!=null;return[(I)=>Q[0]({lengthComputable:B,total:A,loaded:I}),Q[1]]},CE=(A)=>(...Q)=>V.asap(()=>A(...Q));function a2(A){if(!A||typeof A!=="string")return 0;if(!A.startsWith("data:"))return 0;let Q=A.indexOf(",");if(Q<0)return 0;let B=A.slice(5,Q),I=A.slice(Q+1);if(/;base64/i.test(B)){let{length:E,length:g}=I;for(let D=0;D<g;D++)if(I.charCodeAt(D)===37&&D+2<g){let M=I.charCodeAt(D+1),N=I.charCodeAt(D+2);if((M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102)&&(N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102))E-=2,D+=2}let Y=0,J=g-1,U=(D)=>D>=2&&I.charCodeAt(D-2)===37&&I.charCodeAt(D-1)===51&&(I.charCodeAt(D)===68||I.charCodeAt(D)===100);if(J>=0){if(I.charCodeAt(J)===61)Y++,J--;else if(U(J))Y++,J-=3}if(Y===1&&J>=0){if(I.charCodeAt(J)===61)Y++;else if(U(J))Y++}let G=Math.floor(E/4)*3-(Y||0);return G>0?G:0}return Buffer.byteLength(I,"utf8")}var U1={flush:MI.constants.Z_SYNC_FLUSH,finishFlush:MI.constants.Z_SYNC_FLUSH},ST={flush:MI.constants.BROTLI_OPERATION_FLUSH,finishFlush:MI.constants.BROTLI_OPERATION_FLUSH},G1=V.isFunction(MI.createBrotliDecompress),{http:_T,https:OT}=V1.default,PT=/https:?/,D1=BA.protocols.map((A)=>{return A+":"}),N1=(A,[Q,B])=>{return A.on("end",B).on("error",B),Q};class Z1{constructor(){this.sessions=Object.create(null)}getSession(A,Q){Q=Object.assign({sessionTimeout:1000},Q);let B=this.sessions[A];if(B){let U=B.length;for(let F=0;F<U;F++){let[G,D]=B[F];if(!G.destroyed&&!G.closed&&W1.isDeepStrictEqual(D,Q))return G}}let I=x1.connect(A,Q),C,E=()=>{if(C)return;C=!0;let U=B,F=U.length,G=F;while(G--)if(U[G][0]===I){if(F===1)delete this.sessions[A];else U.splice(G,1);return}},g=I.request,{sessionTimeout:Y}=Q;if(Y!=null){let U,F=0;I.request=function(){let G=g.apply(this,arguments);if(F++,U)clearTimeout(U),U=null;return G.once("close",()=>{if(!--F)U=setTimeout(()=>{U=null,E()},Y)}),G}}I.once("close",E);let J=[I,Q];return B?B.push(J):B=this.sessions[A]=[J],I}}var TT=new Z1;function cT(A,Q){if(A.beforeRedirects.proxy)A.beforeRedirects.proxy(A);if(A.beforeRedirects.config)A.beforeRedirects.config(A,Q)}function X1(A,Q,B){let I=Q;if(!I&&I!==!1){let C=M1.default.getProxyForUrl(B);if(C)I=new URL(C)}if(I){if(I.username)I.auth=(I.username||"")+":"+(I.password||"");if(I.auth){if(Boolean(I.auth.username||I.auth.password))I.auth=(I.auth.username||"")+":"+(I.auth.password||"");else if(typeof I.auth==="object")throw new S("Invalid proxy authorization",S.ERR_BAD_OPTION,{proxy:I});let g=Buffer.from(I.auth,"utf8").toString("base64");A.headers["Proxy-Authorization"]="Basic "+g}A.headers.host=A.hostname+(A.port?":"+A.port:"");let C=I.hostname||I.host;if(A.hostname=C,A.host=C,A.port=I.port,A.path=B,I.protocol)A.protocol=I.protocol.includes(":")?I.protocol:`${I.protocol}:`}A.beforeRedirects.proxy=function(E){X1(E,Q,E.href)}}var vT=typeof process<"u"&&V.kindOf(process)==="process",kT=(A)=>{return new Promise((Q,B)=>{let I,C,E=(J,U)=>{if(C)return;C=!0,I&&I(J,U)},g=(J)=>{E(J),Q(J)},Y=(J)=>{E(J,!0),B(J)};A(g,Y,(J)=>I=J).catch(Y)})},yT=({address:A,family:Q})=>{if(!V.isString(A))throw TypeError("address must be a string");return{address:A,family:Q||(A.indexOf(".")<0?6:4)}},w1=(A,Q)=>yT(V.isObject(A)?A:{address:A,family:Q}),fT={request(A,Q){let B=A.protocol+"//"+A.hostname+":"+(A.port||(A.protocol==="https:"?443:80)),{http2Options:I,headers:C}=A,E=TT.getSession(B,I),{HTTP2_HEADER_SCHEME:g,HTTP2_HEADER_METHOD:Y,HTTP2_HEADER_PATH:J,HTTP2_HEADER_STATUS:U}=x1.constants,F={[g]:A.protocol.replace(":",""),[Y]:A.method,[J]:A.path};V.forEach(C,(D,M)=>{M.charAt(0)!==":"&&(F[M]=D)});let G=E.request(F);return G.once("response",(D)=>{let M=G;D=Object.assign({},D);let N=D[U];delete D[U],M.headers=D,M.statusCode=+N,Q(M)}),G}},K1=vT&&function(Q){return kT(async function(I,C,E){let{data:g,lookup:Y,family:J,httpVersion:U=1,http2Options:F}=Q,{responseType:G,responseEncoding:D}=Q,M=Q.method.toUpperCase(),N,x=!1,w;if(U=+U,Number.isNaN(U))throw TypeError(`Invalid protocol version: '${Q.httpVersion}' is not a number`);if(U!==1&&U!==2)throw TypeError(`Unsupported protocol version '${U}'`);let W=U===2;if(Y){let l=Y1(Y,(c)=>V.isArray(c)?c:[c]);Y=(c,FA,_Q)=>{l(c,FA,(cA,YB,UI)=>{if(cA)return _Q(cA);let WQ=V.isArray(YB)?YB.map((UJ)=>w1(UJ)):[w1(YB,UI)];FA.all?_Q(cA,WQ):_Q(cA,WQ[0].address,WQ[0].family)})}}let j=new qT;function X(l){try{j.emit("abort",!l||l.type?new OQ(null,Q,w):l)}catch(c){console.warn("emit error",c)}}j.once("abort",C);let H=()=>{if(Q.cancelToken)Q.cancelToken.unsubscribe(X);if(Q.signal)Q.signal.removeEventListener("abort",X);j.removeAllListeners()};if(Q.cancelToken||Q.signal){if(Q.cancelToken&&Q.cancelToken.subscribe(X),Q.signal)Q.signal.aborted?X():Q.signal.addEventListener("abort",X)}E((l,c)=>{if(N=!0,c){x=!0,H();return}let{data:FA}=l;if(FA instanceof wI.Readable||FA instanceof wI.Duplex){let _Q=wI.finished(FA,()=>{_Q(),H()})}else H()});let T=BC(Q.baseURL,Q.url,Q.allowAbsoluteUrls),$=new URL(T,BA.hasBrowserEnv?BA.origin:void 0),_=$.protocol||D1[0];if(_==="data:"){if(Q.maxContentLength>-1){let c=String(Q.url||T||"");if(a2(c)>Q.maxContentLength)return C(new S("maxContentLength size of "+Q.maxContentLength+" exceeded",S.ERR_BAD_RESPONSE,Q))}let l;if(M!=="GET")return LB(I,C,{status:405,statusText:"method not allowed",headers:{},config:Q});try{l=d2(Q.url,G==="blob",{Blob:Q.env&&Q.env.Blob})}catch(c){throw S.from(c,S.ERR_BAD_REQUEST,Q)}if(G==="text"){if(l=l.toString(D),!D||D==="utf8")l=V.stripBOM(l)}else if(G==="stream")l=wI.Readable.from(l);return LB(I,C,{data:l,status:200,statusText:"OK",headers:new RA,config:Q})}if(D1.indexOf(_)===-1)return C(new S("Unsupported protocol "+_,S.ERR_BAD_REQUEST,Q));let s=RA.from(Q.headers).normalize();s.set("User-Agent","axios/"+YC,!1);let{onUploadProgress:MA,onDownloadProgress:wQ}=Q,MQ=Q.maxRate,XA=void 0,YQ=void 0;if(V.isSpecCompliantForm(g)){let l=s.getContentType(/boundary=([-_\w\d]{10,70})/i);g=C1(g,(c)=>{s.set(c)},{tag:`axios-${YC}-boundary`,boundary:l&&l[1]||void 0})}else if(V.isFormData(g)&&V.isFunction(g.getHeaders)){if(s.set(g.getHeaders()),!s.hasContentLength())try{let l=await W1.promisify(g.getLength).call(g);Number.isFinite(l)&&l>=0&&s.setContentLength(l)}catch(l){}}else if(V.isBlob(g)||V.isFile(g))g.size&&s.setContentType(g.type||"application/octet-stream"),s.setContentLength(g.size||0),g=wI.Readable.from(kJ(g));else if(g&&!V.isStream(g)){if(Buffer.isBuffer(g));else if(V.isArrayBuffer(g))g=Buffer.from(new Uint8Array(g));else if(V.isString(g))g=Buffer.from(g,"utf-8");else return C(new S("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",S.ERR_BAD_REQUEST,Q));if(s.setContentLength(g.length,!1),Q.maxBodyLength>-1&&g.length>Q.maxBodyLength)return C(new S("Request body larger than maxBodyLength limit",S.ERR_BAD_REQUEST,Q))}let KB=V.toFiniteNumber(s.getContentLength());if(V.isArray(MQ))XA=MQ[0],YQ=MQ[1];else XA=YQ=MQ;if(g&&(MA||XA)){if(!V.isStream(g))g=wI.Readable.from(g,{objectMode:!1});g=wI.pipeline([g,new n2({maxRate:V.toFiniteNumber(XA)})],V.noop),MA&&g.on("progress",N1(g,IE(KB,pB(CE(MA),!1,3))))}let nQ=void 0;if(Q.auth){let l=Q.auth.username||"",c=Q.auth.password||"";nQ=l+":"+c}if(!nQ&&$.username){let{username:l,password:c}=$;nQ=l+":"+c}nQ&&s.delete("authorization");let _A;try{_A=QC($.pathname+$.search,Q.params,Q.paramsSerializer).replace(/^\?/,"")}catch(l){let c=Error(l.message);return c.config=Q,c.url=Q.url,c.exists=!0,C(c)}s.set("Accept-Encoding","gzip, compress, deflate"+(G1?", br":""),!1);let eA={path:_A,method:M,headers:s.toJSON(),agents:{http:Q.httpAgent,https:Q.httpsAgent},auth:nQ,protocol:_,family:J,beforeRedirect:cT,beforeRedirects:{},http2Options:F};if(!V.isUndefined(Y)&&(eA.lookup=Y),Q.socketPath)eA.socketPath=Q.socketPath;else eA.hostname=$.hostname.startsWith("[")?$.hostname.slice(1,-1):$.hostname,eA.port=$.port,X1(eA,Q.proxy,_+"//"+$.hostname+($.port?":"+$.port:"")+eA.path);let xQ,uC=PT.test(eA.protocol);if(eA.agent=uC?Q.httpsAgent:Q.httpAgent,W)xQ=fT;else if(Q.transport)xQ=Q.transport;else if(Q.maxRedirects===0)xQ=uC?jT:$T;else{if(Q.maxRedirects)eA.maxRedirects=Q.maxRedirects;if(Q.beforeRedirect)eA.beforeRedirects.config=Q.beforeRedirect;xQ=uC?OT:_T}if(Q.maxBodyLength>-1)eA.maxBodyLength=Q.maxBodyLength;else eA.maxBodyLength=1/0;if(Q.insecureHTTPParser)eA.insecureHTTPParser=Q.insecureHTTPParser;if(w=xQ.request(eA,function(c){if(w.destroyed)return;let FA=[c],_Q=V.toFiniteNumber(c.headers["content-length"]);if(wQ||YQ){let WQ=new n2({maxRate:V.toFiniteNumber(YQ)});wQ&&WQ.on("progress",N1(WQ,IE(_Q,pB(CE(wQ),!0,3)))),FA.push(WQ)}let cA=c,YB=c.req||w;if(Q.decompress!==!1&&c.headers["content-encoding"]){if(M==="HEAD"||c.statusCode===204)delete c.headers["content-encoding"];switch((c.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":FA.push(MI.createUnzip(U1)),delete c.headers["content-encoding"];break;case"deflate":FA.push(new g1),FA.push(MI.createUnzip(U1)),delete c.headers["content-encoding"];break;case"br":if(G1)FA.push(MI.createBrotliDecompress(ST)),delete c.headers["content-encoding"]}}cA=FA.length>1?wI.pipeline(FA,V.noop):FA[0];let UI={status:c.statusCode,statusText:c.statusMessage,headers:new RA(c.headers),config:Q,request:YB};if(G==="stream")UI.data=cA,LB(I,C,UI);else{let WQ=[],UJ=0;cA.on("data",function(JQ){if(WQ.push(JQ),UJ+=JQ.length,Q.maxContentLength>-1&&UJ>Q.maxContentLength)x=!0,cA.destroy(),X(new S("maxContentLength size of "+Q.maxContentLength+" exceeded",S.ERR_BAD_RESPONSE,Q,YB))}),cA.on("aborted",function(){if(x)return;let JQ=new S("stream has been aborted",S.ERR_BAD_RESPONSE,Q,YB);cA.destroy(JQ),C(JQ)}),cA.on("error",function(JQ){if(w.destroyed)return;C(S.from(JQ,null,Q,YB))}),cA.on("end",function(){try{let JQ=WQ.length===1?WQ[0]:Buffer.concat(WQ);if(G!=="arraybuffer"){if(JQ=JQ.toString(D),!D||D==="utf8")JQ=V.stripBOM(JQ)}UI.data=JQ}catch(JQ){return C(S.from(JQ,null,Q,UI.request,UI))}LB(I,C,UI)})}j.once("abort",(WQ)=>{if(!cA.destroyed)cA.emit("error",WQ),cA.destroy()})}),j.once("abort",(l)=>{if(w.close)w.close();else w.destroy(l)}),w.on("error",function(c){C(S.from(c,null,Q,w))}),w.on("socket",function(c){c.setKeepAlive(!0,60000)}),Q.timeout){let l=parseInt(Q.timeout,10);if(Number.isNaN(l)){X(new S("error trying to parse `config.timeout` to int",S.ERR_BAD_OPTION_VALUE,Q,w));return}w.setTimeout(l,function(){if(N)return;let FA=Q.timeout?"timeout of "+Q.timeout+"ms exceeded":"timeout exceeded",_Q=Q.transitional||NI;if(Q.timeoutErrorMessage)FA=Q.timeoutErrorMessage;X(new S(FA,_Q.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,Q,w))})}else w.setTimeout(0);if(V.isStream(g)){let l=!1,c=!1;g.on("end",()=>{l=!0}),g.once("error",(FA)=>{c=!0,w.destroy(FA)}),g.on("close",()=>{if(!l&&!c)X(new OQ("Request stream has been aborted",Q,w))}),g.pipe(w)}else g&&w.write(g),w.end()})};var L1=BA.hasStandardBrowserEnv?((A,Q)=>(B)=>{return B=new URL(B,BA.origin),A.protocol===B.protocol&&A.host===B.host&&(Q||A.port===B.port)})(new URL(BA.origin),BA.navigator&&/(msie|trident)/i.test(BA.navigator.userAgent)):()=>!0;var z1=BA.hasStandardBrowserEnv?{write(A,Q,B,I,C,E,g){if(typeof document>"u")return;let Y=[`${A}=${encodeURIComponent(Q)}`];if(V.isNumber(B))Y.push(`expires=${new Date(B).toUTCString()}`);if(V.isString(I))Y.push(`path=${I}`);if(V.isString(C))Y.push(`domain=${C}`);if(E===!0)Y.push("secure");if(V.isString(g))Y.push(`SameSite=${g}`);document.cookie=Y.join("; ")},read(A){if(typeof document>"u")return null;let Q=document.cookie.match(new RegExp("(?:^|; )"+A+"=([^;]*)"));return Q?decodeURIComponent(Q[1]):null},remove(A){this.write(A,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};var H1=(A)=>A instanceof RA?{...A}:A;function UB(A,Q){Q=Q||{};let B={};function I(U,F,G,D){if(V.isPlainObject(U)&&V.isPlainObject(F))return V.merge.call({caseless:D},U,F);else if(V.isPlainObject(F))return V.merge({},F);else if(V.isArray(F))return F.slice();return F}function C(U,F,G,D){if(!V.isUndefined(F))return I(U,F,G,D);else if(!V.isUndefined(U))return I(void 0,U,G,D)}function E(U,F){if(!V.isUndefined(F))return I(void 0,F)}function g(U,F){if(!V.isUndefined(F))return I(void 0,F);else if(!V.isUndefined(U))return I(void 0,U)}function Y(U,F,G){if(G in Q)return I(U,F);else if(G in A)return I(void 0,U)}let J={url:E,method:E,data:E,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:Y,headers:(U,F,G)=>C(H1(U),H1(F),G,!0)};return V.forEach(Object.keys({...A,...Q}),function(F){if(F==="__proto__"||F==="constructor"||F==="prototype")return;let G=V.hasOwnProp(J,F)?J[F]:C,D=G(A[F],Q[F],F);V.isUndefined(D)&&G!==Y||(B[F]=D)}),B}var yJ=(A)=>{let Q=UB({},A),{data:B,withXSRFToken:I,xsrfHeaderName:C,xsrfCookieName:E,headers:g,auth:Y}=Q;if(Q.headers=g=RA.from(g),Q.url=QC(BC(Q.baseURL,Q.url,Q.allowAbsoluteUrls),A.params,A.paramsSerializer),Y)g.set("Authorization","Basic "+btoa((Y.username||"")+":"+(Y.password?unescape(encodeURIComponent(Y.password)):"")));if(V.isFormData(B)){if(BA.hasStandardBrowserEnv||BA.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(V.isFunction(B.getHeaders)){let J=B.getHeaders(),U=["content-type","content-length"];Object.entries(J).forEach(([F,G])=>{if(U.includes(F.toLowerCase()))g.set(F,G)})}}if(BA.hasStandardBrowserEnv){if(I&&V.isFunction(I)&&(I=I(Q)),I||I!==!1&&L1(Q.url)){let J=C&&E&&z1.read(E);if(J)g.set(C,J)}}return Q};var bT=typeof XMLHttpRequest<"u",R1=bT&&function(A){return new Promise(function(B,I){let C=yJ(A),E=C.data,g=RA.from(C.headers).normalize(),{responseType:Y,onUploadProgress:J,onDownloadProgress:U}=C,F,G,D,M,N;function x(){M&&M(),N&&N(),C.cancelToken&&C.cancelToken.unsubscribe(F),C.signal&&C.signal.removeEventListener("abort",F)}let w=new XMLHttpRequest;w.open(C.method.toUpperCase(),C.url,!0),w.timeout=C.timeout;function W(){if(!w)return;let X=RA.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),T={data:!Y||Y==="text"||Y==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:X,config:A,request:w};LB(function(_){B(_),x()},function(_){I(_),x()},T),w=null}if("onloadend"in w)w.onloadend=W;else w.onreadystatechange=function(){if(!w||w.readyState!==4)return;if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0))return;setTimeout(W)};if(w.onabort=function(){if(!w)return;I(new S("Request aborted",S.ECONNABORTED,A,w)),w=null},w.onerror=function(H){let T=H&&H.message?H.message:"Network Error",$=new S(T,S.ERR_NETWORK,A,w);$.event=H||null,I($),w=null},w.ontimeout=function(){let H=C.timeout?"timeout of "+C.timeout+"ms exceeded":"timeout exceeded",T=C.transitional||NI;if(C.timeoutErrorMessage)H=C.timeoutErrorMessage;I(new S(H,T.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,A,w)),w=null},E===void 0&&g.setContentType(null),"setRequestHeader"in w)V.forEach(g.toJSON(),function(H,T){w.setRequestHeader(T,H)});if(!V.isUndefined(C.withCredentials))w.withCredentials=!!C.withCredentials;if(Y&&Y!=="json")w.responseType=C.responseType;if(U)[D,N]=pB(U,!0),w.addEventListener("progress",D);if(J&&w.upload)[G,M]=pB(J),w.upload.addEventListener("progress",G),w.upload.addEventListener("loadend",M);if(C.cancelToken||C.signal){if(F=(X)=>{if(!w)return;I(!X||X.type?new OQ(null,A,w):X),w.abort(),w=null},C.cancelToken&&C.cancelToken.subscribe(F),C.signal)C.signal.aborted?F():C.signal.addEventListener("abort",F)}let j=o0(C.url);if(j&&BA.protocols.indexOf(j)===-1){I(new S("Unsupported protocol "+j+":",S.ERR_BAD_REQUEST,A));return}w.send(E||null)})};var hT=(A,Q)=>{let{length:B}=A=A?A.filter(Boolean):[];if(Q||B){let I=new AbortController,C,E=function(U){if(!C){C=!0,Y();let F=U instanceof Error?U:this.reason;I.abort(F instanceof S?F:new OQ(F instanceof Error?F.message:F))}},g=Q&&setTimeout(()=>{g=null,E(new S(`timeout of ${Q}ms exceeded`,S.ETIMEDOUT))},Q),Y=()=>{if(A)g&&clearTimeout(g),g=null,A.forEach((U)=>{U.unsubscribe?U.unsubscribe(E):U.removeEventListener("abort",E)}),A=null};A.forEach((U)=>U.addEventListener("abort",E));let{signal:J}=I;return J.unsubscribe=()=>V.asap(Y),J}},$1=hT;var pT=function*(A,Q){let B=A.byteLength;if(!Q||B<Q){yield A;return}let I=0,C;while(I<B)C=I+Q,yield A.slice(I,C),I=C},mT=async function*(A,Q){for await(let B of iT(A))yield*pT(B,Q)},iT=async function*(A){if(A[Symbol.asyncIterator]){yield*A;return}let Q=A.getReader();try{for(;;){let{done:B,value:I}=await Q.read();if(B)break;yield I}}finally{await Q.cancel()}},o2=(A,Q,B,I)=>{let C=mT(A,Q),E=0,g,Y=(J)=>{if(!g)g=!0,I&&I(J)};return new ReadableStream({async pull(J){try{let{done:U,value:F}=await C.next();if(U){Y(),J.close();return}let G=F.byteLength;if(B){let D=E+=G;B(D)}J.enqueue(new Uint8Array(F))}catch(U){throw Y(U),U}},cancel(J){return Y(J),C.return()}},{highWaterMark:2})};var j1=65536,{isFunction:fJ}=V,uT=(({Request:A,Response:Q})=>({Request:A,Response:Q}))(V.global),{ReadableStream:q1,TextEncoder:S1}=V.global,_1=(A,...Q)=>{try{return!!A(...Q)}catch(B){return!1}},dT=(A)=>{A=V.merge.call({skipUndefined:!0},uT,A);let{fetch:Q,Request:B,Response:I}=A,C=Q?fJ(Q):typeof fetch==="function",E=fJ(B),g=fJ(I);if(!C)return!1;let Y=C&&fJ(q1),J=C&&(typeof S1==="function"?((N)=>(x)=>N.encode(x))(new S1):async(N)=>new Uint8Array(await new B(N).arrayBuffer())),U=E&&Y&&_1(()=>{let N=!1,x=new B(BA.origin,{body:new q1,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!x}),F=g&&Y&&_1(()=>V.isReadableStream(new I("").body)),G={stream:F&&((N)=>N.body)};C&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((N)=>{!G[N]&&(G[N]=(x,w)=>{let W=x&&x[N];if(W)return W.call(x);throw new S(`Response type '${N}' is not supported`,S.ERR_NOT_SUPPORT,w)})})})();let D=async(N)=>{if(N==null)return 0;if(V.isBlob(N))return N.size;if(V.isSpecCompliantForm(N))return(await new B(BA.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(V.isArrayBufferView(N)||V.isArrayBuffer(N))return N.byteLength;if(V.isURLSearchParams(N))N=N+"";if(V.isString(N))return(await J(N)).byteLength},M=async(N,x)=>{let w=V.toFiniteNumber(N.getContentLength());return w==null?D(x):w};return async(N)=>{let{url:x,method:w,data:W,signal:j,cancelToken:X,timeout:H,onDownloadProgress:T,onUploadProgress:$,responseType:_,headers:s,withCredentials:MA="same-origin",fetchOptions:wQ}=yJ(N),MQ=Q||fetch;_=_?(_+"").toLowerCase():"text";let XA=$1([j,X&&X.toAbortSignal()],H),YQ=null,KB=XA&&XA.unsubscribe&&(()=>{XA.unsubscribe()}),nQ;try{if($&&U&&w!=="get"&&w!=="head"&&(nQ=await M(s,W))!==0){let c=new B(x,{method:"POST",body:W,duplex:"half"}),FA;if(V.isFormData(W)&&(FA=c.headers.get("content-type")))s.setContentType(FA);if(c.body){let[_Q,cA]=IE(nQ,pB(CE($)));W=o2(c.body,j1,_Q,cA)}}if(!V.isString(MA))MA=MA?"include":"omit";let _A=E&&"credentials"in B.prototype,eA={...wQ,signal:XA,method:w.toUpperCase(),headers:s.normalize().toJSON(),body:W,duplex:"half",credentials:_A?MA:void 0};YQ=E&&new B(x,eA);let xQ=await(E?MQ(YQ,wQ):MQ(x,eA)),uC=F&&(_==="stream"||_==="response");if(F&&(T||uC&&KB)){let c={};["status","statusText","headers"].forEach((YB)=>{c[YB]=xQ[YB]});let FA=V.toFiniteNumber(xQ.headers.get("content-length")),[_Q,cA]=T&&IE(FA,pB(CE(T),!0))||[];xQ=new I(o2(xQ.body,j1,_Q,()=>{cA&&cA(),KB&&KB()}),c)}_=_||"text";let l=await G[V.findKey(G,_)||"text"](xQ,N);return!uC&&KB&&KB(),await new Promise((c,FA)=>{LB(c,FA,{data:l,headers:RA.from(xQ.headers),status:xQ.status,statusText:xQ.statusText,config:N,request:YQ})})}catch(_A){if(KB&&KB(),_A&&_A.name==="TypeError"&&/Load failed|fetch/i.test(_A.message))throw Object.assign(new S("Network Error",S.ERR_NETWORK,N,YQ,_A&&_A.response),{cause:_A.cause||_A});throw S.from(_A,_A&&_A.code,N,YQ,_A&&_A.response)}}},lT=new Map,s2=(A)=>{let Q=A&&A.env||{},{fetch:B,Request:I,Response:C}=Q,E=[I,C,B],g=E.length,Y=g,J,U,F=lT;while(Y--)J=E[Y],U=F.get(J),U===void 0&&F.set(J,U=Y?new Map:dT(Q)),F=U;return U},TEA=s2();var r2={http:K1,xhr:R1,fetch:{get:s2}};V.forEach(r2,(A,Q)=>{if(A){try{Object.defineProperty(A,"name",{value:Q})}catch(B){}Object.defineProperty(A,"adapterName",{value:Q})}});var O1=(A)=>`- ${A}`,aT=(A)=>V.isFunction(A)||A===null||A===!1;function oT(A,Q){A=V.isArray(A)?A:[A];let{length:B}=A,I,C,E={};for(let g=0;g<B;g++){I=A[g];let Y;if(C=I,!aT(I)){if(C=r2[(Y=String(I)).toLowerCase()],C===void 0)throw new S(`Unknown adapter '${Y}'`)}if(C&&(V.isFunction(C)||(C=C.get(Q))))break;E[Y||"#"+g]=C}if(!C){let g=Object.entries(E).map(([J,U])=>`adapter ${J} `+(U===!1?"is not supported by the environment":"is not available in the build")),Y=B?g.length>1?`since :
|
|
123
123
|
`+g.map(O1).join(`
|
|
124
124
|
`):" "+O1(g[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+Y,"ERR_NOT_SUPPORT")}return C}var bJ={getAdapter:oT,adapters:r2};function t2(A){if(A.cancelToken)A.cancelToken.throwIfRequested();if(A.signal&&A.signal.aborted)throw new OQ(null,A)}function hJ(A){if(t2(A),A.headers=RA.from(A.headers),A.data=i0.call(A,A.transformRequest),["post","put","patch"].indexOf(A.method)!==-1)A.headers.setContentType("application/x-www-form-urlencoded",!1);return bJ.getAdapter(A.adapter||tC.adapter,A)(A).then(function(I){return t2(A),I.data=i0.call(A,A.transformResponse,I),I.headers=RA.from(I.headers),I},function(I){if(!u0(I)){if(t2(A),I&&I.response)I.response.data=i0.call(A,A.transformResponse,I.response),I.response.headers=RA.from(I.response.headers)}return Promise.reject(I)})}var pJ={};["object","boolean","number","function","string","symbol"].forEach((A,Q)=>{pJ[A]=function(I){return typeof I===A||"a"+(Q<1?"n ":" ")+A}});var P1={};pJ.transitional=function(Q,B,I){function C(E,g){return"[Axios v"+YC+"] Transitional option '"+E+"'"+g+(I?". "+I:"")}return(E,g,Y)=>{if(Q===!1)throw new S(C(g," has been removed"+(B?" in "+B:"")),S.ERR_DEPRECATED);if(B&&!P1[g])P1[g]=!0,console.warn(C(g," has been deprecated since v"+B+" and will be removed in the near future"));return Q?Q(E,g,Y):!0}};pJ.spelling=function(Q){return(B,I)=>{return console.warn(`${I} is likely a misspelling of ${Q}`),!0}};function sT(A,Q,B){if(typeof A!=="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);let I=Object.keys(A),C=I.length;while(C-- >0){let E=I[C],g=Q[E];if(g){let Y=A[E],J=Y===void 0||g(Y,E,A);if(J!==!0)throw new S("option "+E+" must be "+J,S.ERR_BAD_OPTION_VALUE);continue}if(B!==!0)throw new S("Unknown option "+E,S.ERR_BAD_OPTION)}}var r0={assertOptions:sT,validators:pJ};var oQ=r0.validators;class t0{constructor(A){this.defaults=A||{},this.interceptors={request:new X2,response:new X2}}async request(A,Q){try{return await this._request(A,Q)}catch(B){if(B instanceof Error){let I={};Error.captureStackTrace?Error.captureStackTrace(I):I=Error();let C=I.stack?I.stack.replace(/^.+\n/,""):"";try{if(!B.stack)B.stack=C;else if(C&&!String(B.stack).endsWith(C.replace(/^.+\n.+\n/,"")))B.stack+=`
|
|
125
|
-
`+C}catch(E){}}throw B}}_request(A,Q){if(typeof A==="string")Q=Q||{},Q.url=A;else Q=A||{};Q=UB(this.defaults,Q);let{transitional:B,paramsSerializer:I,headers:C}=Q;if(B!==void 0)r0.assertOptions(B,{silentJSONParsing:oQ.transitional(oQ.boolean),forcedJSONParsing:oQ.transitional(oQ.boolean),clarifyTimeoutError:oQ.transitional(oQ.boolean),legacyInterceptorReqResOrdering:oQ.transitional(oQ.boolean)},!1);if(I!=null)if(V.isFunction(I))Q.paramsSerializer={serialize:I};else r0.assertOptions(I,{encode:oQ.function,serialize:oQ.function},!0);if(Q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Q.allowAbsoluteUrls=!0;r0.assertOptions(Q,{baseUrl:oQ.spelling("baseURL"),withXsrfToken:oQ.spelling("withXSRFToken")},!0),Q.method=(Q.method||this.defaults.method||"get").toLowerCase();let E=C&&V.merge(C.common,C[Q.method]);C&&V.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete C[M]}),Q.headers=RA.concat(E,C);let g=[],Y=!0;this.interceptors.request.forEach(function(N){if(typeof N.runWhen==="function"&&N.runWhen(Q)===!1)return;Y=Y&&N.synchronous;let x=Q.transitional||NI;if(x&&x.legacyInterceptorReqResOrdering)g.unshift(N.fulfilled,N.rejected);else g.push(N.fulfilled,N.rejected)});let J=[];this.interceptors.response.forEach(function(N){J.push(N.fulfilled,N.rejected)});let U,F=0,G;if(!Y){let M=[hJ.bind(this),void 0];M.unshift(...g),M.push(...J),G=M.length,U=Promise.resolve(Q);while(F<G)U=U.then(M[F++],M[F++]);return U}G=g.length;let D=Q;while(F<G){let M=g[F++],N=g[F++];try{D=M(D)}catch(x){N.call(this,x);break}}try{U=hJ.call(this,D)}catch(M){return Promise.reject(M)}F=0,G=J.length;while(F<G)U=U.then(J[F++],J[F++]);return U}getUri(A){A=UB(this.defaults,A);let Q=BC(A.baseURL,A.url,A.allowAbsoluteUrls);return QC(Q,A.params,A.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(Q){t0.prototype[Q]=function(B,I){return this.request(UB(I||{},{method:Q,url:B,data:(I||{}).data}))}});V.forEach(["post","put","patch"],function(Q){function B(I){return function(E,g,Y){return this.request(UB(Y||{},{method:Q,headers:I?{"Content-Type":"multipart/form-data"}:{},url:E,data:g}))}}t0.prototype[Q]=B(),t0.prototype[Q+"Form"]=B(!0)});var e0=t0;class e2{constructor(A){if(typeof A!=="function")throw TypeError("executor must be a function.");let Q;this.promise=new Promise(function(C){Q=C});let B=this;this.promise.then((I)=>{if(!B._listeners)return;let C=B._listeners.length;while(C-- >0)B._listeners[C](I);B._listeners=null}),this.promise.then=(I)=>{let C,E=new Promise((g)=>{B.subscribe(g),C=g}).then(I);return E.cancel=function(){B.unsubscribe(C)},E},A(function(C,E,g){if(B.reason)return;B.reason=new OQ(C,E,g),Q(B.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(A){if(this.reason){A(this.reason);return}if(this._listeners)this._listeners.push(A);else this._listeners=[A]}unsubscribe(A){if(!this._listeners)return;let Q=this._listeners.indexOf(A);if(Q!==-1)this._listeners.splice(Q,1)}toAbortSignal(){let A=new AbortController,Q=(B)=>{A.abort(B)};return this.subscribe(Q),A.signal.unsubscribe=()=>this.unsubscribe(Q),A.signal}static source(){let A;return{token:new e2(function(I){A=I}),cancel:A}}}var T1=e2;function AD(A){return function(B){return A.apply(null,B)}}function QD(A){return V.isObject(A)&&A.isAxiosError===!0}var BD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(BD).forEach(([A,Q])=>{BD[Q]=A});var c1=BD;function v1(A){let Q=new e0(A),B=T0(e0.prototype.request,Q);return V.extend(B,e0.prototype,Q,{allOwnKeys:!0}),V.extend(B,Q,null,{allOwnKeys:!0}),B.create=function(C){return v1(UB(A,C))},B}var yA=v1(tC);yA.Axios=e0;yA.CanceledError=OQ;yA.CancelToken=T1;yA.isCancel=u0;yA.VERSION=YC;yA.toFormData=DI;yA.AxiosError=S;yA.Cancel=yA.CanceledError;yA.all=function(Q){return Promise.all(Q)};yA.spread=AD;yA.isAxiosError=QD;yA.mergeConfig=UB;yA.AxiosHeaders=RA;yA.formToJSON=(A)=>jJ(V.isHTMLForm(A)?new FormData(A):A);yA.getAdapter=bJ.getAdapter;yA.HttpStatusCode=c1;yA.default=yA;var xI=yA;UC();oA();KQ();GQ();sg();oA();KQ();GQ();var bk=["session_ingress_token","environment_secret","access_token","secret","token"],M2A=new RegExp(`"(${bk.join("|")})"\\s*:\\s*"([^"]*)"`,"g");function XN(A){if(!A||typeof A!=="object")return;if("message"in A&&typeof A.message==="string")return A.message;if("error"in A&&A.error!==null&&typeof A.error==="object"&&"message"in A.error&&typeof A.error.message==="string")return A.error.message;return}var tb="2023-06-01";function O5(A){return{Authorization:`Bearer ${A}`,"Content-Type":"application/json","anthropic-version":tb}}async function eb(A,Q,B,I,C,E,g,Y){let J=`${A}/v1/code/sessions`,U={cwd:g??UQ(),...Y&&{model:Y}};if(E){let{buildGitSessionContext:D}=await Promise.resolve().then(() => _5),{sources:M,outcomes:N}=await D(E.gitRepoUrl,E.branch,E.defaultBranch);if(M.length>0||N.length>0)U.sources=M,U.outcomes=N,U.reuse_outcome_branches=!0}let F;try{F=await xI.post(J,{title:B,bridge:{},...C?.length&&{tags:C},config:U},{headers:O5(Q),timeout:I,validateStatus:(D)=>D<500})}catch(D){return R(`[code-session] Session create request failed: ${UA(D)}`),null}if(F.status!==200&&F.status!==201){let D=XN(F.data);return R(`[code-session] Session create failed ${F.status}${D?`: ${D}`:""}`),null}let G=F.data;if(!G||typeof G!=="object"||!("session"in G)||!G.session||typeof G.session!=="object"||!("id"in G.session)||typeof G.session.id!=="string"||!G.session.id.startsWith("cse_"))return R(`[code-session] No session.id (cse_*) in response: ${iA(G).slice(0,200)}`),null;return G.session.id}function Ah(A){return A!==null&&"terminal"in A}function Qh(A,Q){if(A!==null&&typeof A==="object"&&"error"in A&&A.error!==null&&typeof A.error==="object"&&"resource"in A.error){let B=A.error.resource;if(B==="untrusted_device"||B==="session_stale_relogin")return B;return}if(Q?.includes("trusted device"))return"untrusted_device";return}async function Bh(A,Q,B,I,C){let E=`${Q}/v1/code/sessions/${A}/bridge`,g=O5(B);if(C)g["X-Trusted-Device-Token"]=C;let Y;try{Y=await xI.post(E,{},{headers:g,timeout:I,validateStatus:(G)=>G<500})}catch(G){return R(`[code-session] /bridge request failed: ${UA(G)}`),null}if(Y.status!==200){let G=XN(Y.data);if(R(`[code-session] /bridge failed ${Y.status}${G?`: ${G}`:""}`),Y.status===403){let D=Qh(Y.data,G);if(D)return{terminal:!0,reason:D}}return null}let J=Y.data;if(J===null||typeof J!=="object"||!("worker_jwt"in J)||typeof J.worker_jwt!=="string"||!("expires_in"in J)||typeof J.expires_in!=="number"||!("api_base_url"in J)||typeof J.api_base_url!=="string"||!("worker_epoch"in J))return R(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${iA(J).slice(0,200)}`),null;let U=J.worker_epoch,F=typeof U==="string"?Number(U):U;if(typeof F!=="number"||!Number.isFinite(F)||!Number.isSafeInteger(F))return R(`[code-session] /bridge worker_epoch invalid: ${iA(U)}`),null;return{worker_jwt:J.worker_jwt,api_base_url:J.api_base_url,expires_in:J.expires_in,worker_epoch:F}}oA();KQ();import{randomUUID as Ih}from"crypto";xw();sg();var P5={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"};function T5(A){if(A===null||typeof A!=="object")return A;let Q=A;if("requestId"in Q&&!("request_id"in Q))Q.request_id=Q.requestId,delete Q.requestId;if("response"in Q&&Q.response!==null&&typeof Q.response==="object"){let B=Q.response;if("requestId"in B&&!("request_id"in B))B.request_id=B.requestId,delete B.requestId}return A}oA();Ew();KQ();GQ();function Ch(A){return A!==null&&typeof A==="object"&&"type"in A&&typeof A.type==="string"}function Eh(A){return A!==null&&typeof A==="object"&&"type"in A&&A.type==="control_response"&&"response"in A}function gh(A){return A!==null&&typeof A==="object"&&"type"in A&&A.type==="control_request"&&"request_id"in A&&"request"in A}function c5(A,Q,B,I,C,E){try{let g=T5(qI(A));if(Eh(g)){R("[bridge:repl] Ingress message type=control_response"),C?.(g);return}if(gh(g)){R(`[bridge:repl] Inbound control_request subtype=${g.request.subtype}`),E?.(g);return}if(!Ch(g))return;let Y="uuid"in g&&typeof g.uuid==="string"?g.uuid:void 0;if(Y&&Q.has(Y)){R(`[bridge:repl] Ignoring echo: type=${g.type} uuid=${Y}`);return}if(Y&&B.has(Y)){R(`[bridge:repl] Ignoring re-delivered inbound: type=${g.type} uuid=${Y}`);return}if(R(`[bridge:repl] Ingress message type=${g.type}${Y?` uuid=${Y}`:""}`),g.type==="user"){if(Y)B.add(Y);SI("tengu_bridge_message_received",{is_repl:!0}),uF("bridge_message_receive"),I?.(g)}else R(`[bridge:repl] Ignoring non-user inbound message: type=${g.type}`)}catch(g){R(`[bridge:repl] Failed to parse ingress message: ${UA(g)}`),pK("bridge_message_receive","bridge_message_receive_parse_failed")}}var Yh="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function v5(A,Q){let{transport:B,sessionId:I,outboundOnly:C,onInterrupt:E,onSetModel:g,onSetMaxThinkingTokens:Y,onSetPermissionMode:J,onRenameSession:U,onSetColor:F,onFileSuggestions:G,onReadFile:D,onMcpAuthenticate:M,onMcpOauthCallbackUrl:N,onMcpReconnect:x,onMcpStatus:w}=Q;if(!B){R("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if(C&&A.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:Yh}};let X={...W,session_id:I};B.write(X),R(`[bridge:repl] Rejected ${A.request.subtype} (outbound-only) request_id=${A.request_id}`);return}switch(A.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:A.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":g?.(A.request.model),W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};break;case"set_max_thinking_tokens":Y?.(A.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};break;case"set_permission_mode":{let X=J?.(A.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(X.ok)W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:X.error}};break}case"rename_session":{let X=U?.(A.request.title)??{ok:!1,error:"rename_session is not supported in this context (onRenameSession callback not registered)"};if(X.ok)W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:X.error}};break}case"set_color":{let X=F?.(A.request.color)??{ok:!1,error:"set_color is not supported in this context (onSetColor callback not registered)"};if(X.ok)W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:X.error}};break}case"file_suggestions":{if(!G){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:"file_suggestions is not supported in this context (onFileSuggestions callback not registered)"}};break}G(A.request.query).then((X)=>({type:"control_response",response:{subtype:"success",request_id:A.request_id,response:{suggestions:X}}})).catch((X)=>({type:"control_response",response:{subtype:"error",request_id:A.request_id,error:UA(X)}})).then((X)=>{let H={...X,session_id:I};B.write(H),R(`[bridge:repl] Sent control_response for file_suggestions request_id=${A.request_id} result=${X.response.subtype}`)});return}case"read_file":{if(!D){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:"read_file is not supported in this context (onReadFile callback not registered)"}};break}D(A.request.path,A.request.max_bytes,A.request.encoding).then((X)=>({type:"control_response",response:{subtype:"success",request_id:A.request_id,response:X}})).catch((X)=>({type:"control_response",response:{subtype:"error",request_id:A.request_id,error:UA(X)}})).then((X)=>{let H={...X,session_id:I};B.write(H),R(`[bridge:repl] Sent control_response for read_file request_id=${A.request_id} result=${X.response.subtype}`)});return}case"mcp_status":W={type:"control_response",response:{subtype:"success",request_id:A.request_id,response:{mcpServers:w?.()??[]}}};break;case"mcp_authenticate":case"mcp_oauth_callback_url":case"mcp_reconnect":{let X=A.request,{subtype:H,serverName:T}=X,$=X.subtype==="mcp_authenticate"?M&&((_)=>M(_,X.redirectUri)):X.subtype==="mcp_oauth_callback_url"?N&&((_)=>N(_,X.callbackUrl)):x;if(!$){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:`${H} is not supported in this context (callback not registered)`}};break}$(T).then((_)=>({type:"control_response",response:{subtype:"success",request_id:A.request_id,response:_??{}}})).catch((_)=>({type:"control_response",response:{subtype:"error",request_id:A.request_id,error:UA(_)}})).then((_)=>{let s={..._,session_id:I};B.write(s),R(`[bridge:repl] Sent control_response for ${H} request_id=${A.request_id} result=${_.response.subtype}`)});return}case"interrupt":E?.(),W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:`REPL bridge does not handle control_request subtype: ${A.request.subtype}`}}}let j={...W,session_id:I};B.write(j),R(`[bridge:repl] Sent control_response for ${A.request.subtype} request_id=${A.request_id} result=${W.response.subtype}`)}function k5(A){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:{...P5},modelUsage:{},permission_denials:[],session_id:A,uuid:Ih()}}class IU{capacity;ring;set=new Set;writeIdx=0;constructor(A){this.capacity=A,this.ring=Array(A)}add(A){if(this.set.has(A))return;let Q=this.ring[this.writeIdx];if(Q!==void 0)this.set.delete(Q);this.ring[this.writeIdx]=A,this.set.add(A),this.writeIdx=(this.writeIdx+1)%this.capacity}has(A){return this.set.has(A)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}import{randomUUID as QS}from"crypto";sg();oA();qE();KQ();GQ();function Jh(A){let B=(A.startsWith("sk-ant-si-")?A.slice(10):A).split(".");if(B.length!==3||!B[1])return null;try{return qI(Buffer.from(B[1],"base64url").toString("utf8"))}catch{return null}}function y5(A){let Q=Jh(A);if(Q!==null&&typeof Q==="object"&&"exp"in Q&&typeof Q.exp==="number")return Q.exp;return null}oA();qE();KQ();iB();zB();var tAA=dC(t5(),1);iB();function e5(A){return[...new Set(A)]}oA();ZI();sB();var AL=["bundled","system"];function _h(){let A=process.env.CLAUDE_CODE_CERT_STORE;if(A){let Q=[];for(let B of A.split(",")){let I=B.trim().toLowerCase();if(I==="bundled"||I==="system"){if(!Q.includes(I))Q.push(I)}else if(I)R(`CA certs: unrecognized CLAUDE_CODE_CERT_STORE source '${I}', ignoring`,{level:"warn"})}return Q.length>0?Q:AL}if(UD("--use-system-ca")||UD("--use-openssl-ca"))return["system"];return AL}var gY=$A(()=>{let A=_h(),Q=process.env.NODE_EXTRA_CA_CERTS,B=A.includes("bundled"),I=A.includes("system");R(`CA certs: stores=${A.join(",")}, extraCertsPath=${Q}`);let C=z("tls"),E=C.getCACertificates;if(!B&&I&&!E){R("CA certs: stores=system but system CA API unavailable, deferring to runtime");return}let g=[];if(B)g.push(...C.rootCertificates),R(`CA certs: Loaded ${C.rootCertificates.length} bundled root certificates`);if(I)try{let Y=E?.("system");if(Y&&Y.length>0)g.push(...Y),R(`CA certs: Loaded ${Y.length} system CA certificates`);else if(R(`CA certs: system store ${E?"returned empty":"unavailable"}`),!B)g.push(...C.rootCertificates)}catch(Y){if(R(`CA certs: Failed to load system CA certificates: ${Y}`,{level:"error"}),!B)g.push(...C.rootCertificates)}if(Q)try{let Y=sA().readFileSync(Q,{encoding:"utf8"});g.push(Y),R(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${Q})`)}catch(Y){R(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${Q}): ${Y}`,{level:"error"})}return g.length>0?e5(g):void 0});oA();ZI();iB();import{Agent as Oh}from"https";oA();sB();var gU=$A(()=>{let A={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{A.cert=sA().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),R("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(Q){R(`mTLS: Failed to load client certificate: ${Q}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{A.key=sA().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),R("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(Q){R(`mTLS: Failed to load client key: ${Q}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)A.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,R("mTLS: Using client key passphrase");if(Object.keys(A).length===0)return;return A}),Ph=$A(()=>{let A=gU(),Q=gY();if(!A&&!Q)return;let B={...A,...Q&&{ca:Q},keepAlive:!0};return R("mTLS: Creating HTTPS agent with custom certificates"),new Oh(B)});function YU(){let A=gU(),Q=gY();if(!A&&!Q)return{};return{tls:{...A,...Q&&{ca:Q}}}}Dw();var eAA=!1;function AQA(A=process.env){return A.https_proxy||A.HTTPS_PROXY||A.http_proxy||A.HTTP_PROXY}function QQA(A=process.env){return A.no_proxy||A.NO_PROXY}function BQA(A,Q=QQA()){if(!Q)return!1;if(Q==="*")return!0;try{let B=new URL(A),I=B.hostname.toLowerCase(),C=B.port||(B.protocol==="https:"?"443":"80"),E=`${I}:${C}`;return Q.split(/[,\s]+/).filter(Boolean).some((Y)=>{if(Y=Y.toLowerCase().trim(),Y.includes(":"))return E===Y;if(Y.startsWith(".")){let J=Y;return I===Y.substring(1)||I.endsWith(J)}return I===Y})}catch{return!1}}var BVA=$A((A)=>{let Q=nq(),B=gU(),I=gY(),C={httpProxy:A,httpsProxy:A,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(B||I){let E={...B&&{cert:B.cert,key:B.key,passphrase:B.passphrase},...I&&{ca:I}};C.connect=E,C.requestTls=E}return new Q.EnvHttpProxyAgent(C)});var IQA=null;function CQA(){return IQA?.value??null}function rx(A){let Q={...eAA&&{keepalive:!1},...A.forAnthropicAPI&&!fA(process.env.API_FORCE_IDLE_TIMEOUT)&&{timeout:!1}};if(A.forAnthropicAPI){let I=process.env.ANTHROPIC_UNIX_SOCKET;if(I)return{...Q,unix:I}}let B=AQA();if(B){if(A.url&&BQA(A.url))return{...Q,...YU()};let I=CQA();return{...Q,proxy:I?{url:B,headers:{"Proxy-Authorization":I}}:B,...YU()}}return{...Q,...YU()}}nJ();qE();ZI();var EQA=30000,ex=null,aq=0;var YJ=null,tx=null;function gQA(){oq(),YJ=setInterval(()=>{if(a("debug","session_keepalive_heartbeat",{refcount:aq}),fA(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))ex?.()},EQA)}function oq(){if(tx!==null)clearTimeout(tx),tx=null}function sq(A){if(ex=A,aq>0&&YJ===null)gQA()}function rq(){if(ex=null,YJ!==null)clearInterval(YJ),YJ=null;oq()}zB();zB();oA();ZI();KQ();sB();import{mkdirSync as YQA,writeFileSync as JQA}from"fs";var pG="/home/claude/.claude/remote",VVA=`${pG}/.oauth_token`,ZVA=`${pG}/.api_key`,mG=`${pG}/.session_ingress_token`;function tq(A,Q,B){if(!fA(process.env.CLAUDE_CODE_REMOTE))return;try{YQA(pG,{recursive:!0,mode:448}),JQA(A,Q,{encoding:"utf8",mode:384}),R(`Persisted ${B} to ${A} for subprocess access`)}catch(I){R(`Failed to persist ${B} to disk (non-fatal): ${UA(I)}`,{level:"error"})}}function AW(A,Q){try{let I=sA().readFileSync(A,{encoding:"utf8"}).trim();if(!I)return null;return R(`Read ${Q} from well-known file ${A}`),I}catch(B){if(!HF(B))R(`Failed to read ${Q} from ${A}: ${UA(B)}`,{level:"debug"});return null}}oA();KQ();sB();function FQA(){let A=AX();if(A!==void 0)return A;let Q=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!Q){let I=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??mG,C=AW(I,"session ingress token");return DE(C),C}let B=parseInt(Q,10);if(Number.isNaN(B))return R(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${Q}`,{level:"error"}),DE(null),null;try{let I=sA(),C=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${B}`:`/proc/self/fd/${B}`,E=I.readFileSync(C,{encoding:"utf8"}).trim();if(!E)return R("File descriptor contained empty token",{level:"error"}),DE(null),null;return R(`Successfully read token from file descriptor ${B}`),DE(E),tq(mG,E,"session ingress token"),E}catch(I){R(`Failed to read token from file descriptor ${B}: ${UA(I)}`,{level:"error"});let C=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??mG,E=AW(C,"session ingress token");return DE(E),E}}function QW(){let A=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(A)return A;return FQA()}function iG(){let A=QW();if(!A)return{};if(A.startsWith("sk-ant-sid")){let Q={Cookie:`sessionKey=${A}`},B=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(B)Q["X-Organization-Uuid"]=B;return Q}return{Authorization:`Bearer ${A}`}}function eq(A){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=A}function tI(A,Q,B){return new Promise((I,C)=>{if(Q?.aborted){if(B?.throwOnAbort||B?.abortError)C(B.abortError?.()??Error("aborted"));else I();return}let E=setTimeout((Y,J,U)=>{Y?.removeEventListener("abort",J),U()},A,Q,g,I);function g(){if(clearTimeout(E),B?.throwOnAbort||B?.abortError)C(B.abortError?.()??Error("aborted"));else I()}if(Q?.addEventListener("abort",g,{once:!0}),B?.unref)E.unref()})}GQ();function O0(){return"claude-code/0.2.128"}GQ();class P0 extends Error{retryAfterMs;constructor(A,Q){super(A);this.retryAfterMs=Q}}class JJ{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(A){this.config=A}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(A){if(this.closed)return;let Q=Array.isArray(A)?A:[A];if(Q.length===0)return;while(this.pending.length+Q.length>this.config.maxQueueSize&&!this.closed)await new Promise((B)=>{this.backpressureResolvers.push(B)});if(this.closed)return;this.pending.push(...Q),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((A)=>{this.flushResolvers.push(A)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let A of this.backpressureResolvers)A();this.backpressureResolvers=[];for(let A of this.flushResolvers)A();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let A=0;try{while(this.pending.length>0&&!this.closed){let Q=this.takeBatch();if(Q.length===0)continue;try{await this.config.send(Q),A=0}catch(B){if(A++,this.config.maxConsecutiveFailures!==void 0&&A>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(Q.length,A),A=0,this.releaseBackpressure();continue}this.pending=Q.concat(this.pending);let I=B instanceof P0?B.retryAfterMs:void 0;await this.sleep(this.retryDelay(A,I));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:A,maxBatchBytes:Q}=this.config;if(Q===void 0)return this.pending.splice(0,A);let B=0,I=0;while(I<this.pending.length&&I<A){let C;try{C=Buffer.byteLength(iA(this.pending[I]))}catch{this.pending.splice(I,1);continue}if(I>0&&B+C>Q)break;B+=C,I++}return this.pending.splice(0,I)}retryDelay(A,Q){let B=Math.random()*this.config.jitterMs;if(Q!==void 0)return Math.max(this.config.baseDelayMs,Math.min(Q,this.config.maxDelayMs))+B;return Math.min(this.config.baseDelayMs*2**(A-1),this.config.maxDelayMs)+B}releaseBackpressure(){let A=this.backpressureResolvers;this.backpressureResolvers=[];for(let Q of A)Q()}sleep(A){return new Promise((Q)=>{this.sleepResolve=Q,setTimeout((B,I)=>{B.sleepResolve=null,I()},A,this,Q)})}}class BW{inflight=null;pending=null;closed=!1;config;constructor(A){this.config=A}enqueue(A){if(this.closed)return;this.pending=this.pending?AS(this.pending,A):A,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let A=this.pending;this.pending=null,this.inflight=this.sendWithRetry(A).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(A){let Q=A,B=0;while(!this.closed){if(await this.config.send(Q))return;if(B++,await tI(this.retryDelay(B)),this.pending&&!this.closed)Q=AS(Q,this.pending),this.pending=null}}retryDelay(A){let Q=Math.min(this.config.baseDelayMs*2**(A-1),this.config.maxDelayMs),B=Math.random()*this.config.jitterMs;return Q+B}}function AS(A,Q){let B={...A};for(let[I,C]of Object.entries(Q))if((I==="external_metadata"||I==="internal_metadata")&&B[I]&&typeof B[I]==="object"&&typeof C==="object"&&C!==null)B[I]={...B[I],...C};else B[I]=C;return B}var UQA=20000,GQA=100;function DQA(A){let Q=jI(A);if(Q)return Q;if(A&&typeof A==="object"&&"name"in A&&typeof A.name==="string")return A.name;return}class uG extends Error{reason;constructor(A){super(`CCRClient init failed: ${A}`);this.reason=A}}var NQA=10;function wQA(){return{byMessage:new Map,scopeToMessage:new Map}}function dG(A){return`${A.session_id}:${A.parent_tool_use_id??""}`}function MQA(A,Q){let B=[],I=new Map;for(let C of A)switch(C.event.type){case"message_start":{let E=C.event.message.id,g=Q.scopeToMessage.get(dG(C));if(g)Q.byMessage.delete(g);Q.scopeToMessage.set(dG(C),E),Q.byMessage.set(E,[]),B.push(C);break}case"content_block_delta":{if(C.event.delta.type!=="text_delta"){B.push(C);break}let E=Q.scopeToMessage.get(dG(C)),g=E?Q.byMessage.get(E):void 0;if(!g){B.push(C);break}let Y=g[C.event.index]??=[];if(Y.push(C.event.delta.text),I.has(Y))break;let J={type:"stream_event",uuid:C.uuid,session_id:C.session_id,parent_tool_use_id:C.parent_tool_use_id,event:{type:"content_block_delta",index:C.event.index,delta:{type:"text_delta",text:""}}};I.set(Y,J),B.push(J);break}default:B.push(C)}for(let[C,E]of I)E.event.delta.text=C.join("");return B}function xQA(A,Q){A.byMessage.delete(Q.message.id);let B=dG(Q);if(A.scopeToMessage.get(B)===Q.message.id)A.scopeToMessage.delete(B)}class IW{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=wQA();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(A,Q,B){if(this.onEpochMismatch=B?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=B?.heartbeatIntervalMs??UQA,this.heartbeatJitterFraction=B?.heartbeatJitterFraction??0,this.getAuthHeaders=B?.getAuthHeaders??iG,Q.protocol!=="http:"&&Q.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${Q.protocol}`);let I=Q.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${Q.protocol}//${Q.host}${I}`,this.sessionId=I.split("/").pop()||"",this.workerState=new BW({send:(C)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...C},"PUT worker").then((E)=>E.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new JJ({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(C)=>{let E=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:C},"client events");if(!E.ok)throw new P0("client event POST failed",E.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new JJ({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(C)=>{let E=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:C},"internal events");if(!E.ok)throw new P0("internal event POST failed",E.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new JJ({maxBatchSize:64,maxQueueSize:64,send:async(C)=>{let E=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:C.map((g)=>({event_id:g.eventId,status:g.status}))},"delivery batch");if(!E.ok)throw new P0("delivery POST failed",E.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),A.setOnEvent((C)=>{this.reportDelivery(C.event_id,"received")})}async initialize(A){let Q=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new uG("no_auth_headers");if(A===void 0){let g=process.env.CLAUDE_CODE_WORKER_EPOCH;A=g?parseInt(g,10):NaN}if(isNaN(A))throw new uG("missing_epoch");this.workerEpoch=A;let B=this.getWorkerState(),I={ok:!1};for(let g=1;g<=3;g++){if(I=await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)"),I.ok||this.closed)break;if(g<3){let Y=Math.min(500*2**(g-1),30000)+Math.random()*500;await tI(Y)}}if(!I.ok){if(!this.closed)a("error","cli_worker_init_put_retries_exhausted");throw new uG("worker_register_failed")}this.currentState="idle",this.startHeartbeat(),sq(()=>{this.writeEvent({type:"keep_alive"})}),R(`CCRClient: initialized, epoch=${this.workerEpoch}`),a("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-Q});let{metadata:C,durationMs:E}=await B;if(!this.closed)a("info","cli_worker_state_restored",{duration_ms:E,had_state:C.external!==null||C.internal!==null});return C}async getWorkerState(){let A=Date.now(),Q=this.getAuthHeaders();if(Object.keys(Q).length===0)return{metadata:{external:null,internal:null},durationMs:0};let B=await this.getWithRetry(`${this.sessionBaseUrl}/worker`,Q,"worker_state");return{metadata:{external:B?.worker?.external_metadata??null,internal:B?.worker?.internal_metadata??null},durationMs:Date.now()-A}}async request(A,Q,B,I,{timeout:C=1e4}={}){let E=this.getAuthHeaders();if(Object.keys(E).length===0)return{ok:!1};let g=`${this.sessionBaseUrl}${Q}`;try{let Y=await fetch(g,{method:A.toUpperCase(),headers:{...E,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O0()},body:iA(B),signal:AbortSignal.timeout(C),...rx({url:g})});if(Y.body?.cancel(),Y.ok)return this.consecutiveAuthFailures=0,{ok:!0};if(Y.status===409)this.handleEpochMismatch();if(Y.status===401||Y.status===403){let J=QW(),U=J?y5(J):null;if(U!==null&&U*1000<Date.now())R(`CCRClient: session_token expired (exp=${new Date(U*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),a("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=NQA)R(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),a("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(R(`CCRClient: ${I} returned ${Y.status}`,{level:"warn"}),a("warn","cli_worker_request_failed",{method:A,path:Q,status:Y.status}),Y.status===429){let J=Y.headers.get("retry-after"),U=J?parseInt(J,10):NaN;if(!isNaN(U)&&U>=0)return{ok:!1,retryAfterMs:U*1000}}return{ok:!1}}catch(Y){return R(`CCRClient: ${I} failed: ${UA(Y)}`,{level:"warn"}),a("warn","cli_worker_request_error",{method:A,path:Q,error_code:DQA(Y)}),{ok:!1}}}reportState(A,Q){if(A===this.currentState&&!Q)return;this.currentState=A,this.workerState.enqueue({worker_status:A,requires_action_details:Q?{tool_name:Q.tool_name,display_tool_name:Q.display_tool_name,action_description:Q.action_description,raw_command:Q.raw_command,request_id:Q.request_id,tool_use_id:Q.tool_use_id}:null})}reportMetadata(A){this.workerState.enqueue({external_metadata:WQA(A)})}reportInternalMetadata(A){this.workerState.enqueue({internal_metadata:A})}handleEpochMismatch(){R("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),a("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let A=()=>{let B=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(Q,this.heartbeatIntervalMs+B)},Q=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;A()};A()}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)R("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(A){if(A.type==="stream_event"){if(this.streamEventBuffer.push(A),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),GQA);return}if(await this.flushStreamEventBuffer(),A.type==="assistant")xQA(this.streamTextAccumulator,A);await this.eventUploader.enqueue(this.toClientEvent(A))}toClientEvent(A){let Q=A,B=Q.historical===!0;return{payload:{...Q,uuid:typeof Q.uuid==="string"?Q.uuid:QS()},...B&&{historical:!0}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let A=this.streamEventBuffer;this.streamEventBuffer=[];let Q=MQA(A,this.streamTextAccumulator);await this.eventUploader.enqueue(Q.map((B)=>({payload:B,ephemeral:!0})))}async writeInternalEvent(A,Q,{isCompaction:B=!1,agentId:I}={}){let C={payload:{type:A,...Q,uuid:typeof Q.uuid==="string"?Q.uuid:QS()},...B&&{is_compaction:!0},...I&&{agent_id:I}};await this.internalEventUploader.enqueue(C)}flushInternalEvents(){return this.internalEventUploader.flush()}flushDeliveryAcks(){return this.deliveryUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(A,Q,B){let I=this.getAuthHeaders();if(Object.keys(I).length===0)return null;let C=[],E;do{let g=new URL(`${this.sessionBaseUrl}${A}`);for(let[J,U]of Object.entries(Q))g.searchParams.set(J,U);if(E)g.searchParams.set("cursor",E);let Y=await this.getWithRetry(g.toString(),I,B);if(!Y)return null;C.push(...Y.data??[]),E=Y.next_cursor}while(E);return R(`CCRClient: Read ${C.length} internal events from ${A}${Q.subagents?" (subagents)":""}`),C}async getWithRetry(A,Q,B){for(let I=1;I<=10;I++){let C;try{if(C=await fetch(A,{headers:{...Q,"anthropic-version":"2023-06-01","User-Agent":O0()},signal:AbortSignal.timeout(30000),...rx({url:A})}),C.ok)return await C.json()}catch(E){if(R(`CCRClient: GET ${A} failed (attempt ${I}/10): ${UA(E)}`,{level:"warn"}),I<10){let g=Math.min(500*2**(I-1),30000)+Math.random()*500;await tI(g)}continue}if(C.body?.cancel(),C.status===409)this.handleEpochMismatch();if(R(`CCRClient: GET ${A} returned ${C.status} (attempt ${I}/10)`,{level:"warn"}),I<10){let E=Math.min(500*2**(I-1),30000)+Math.random()*500;await tI(E)}}return R("CCRClient: GET retries exhausted",{level:"error"}),a("error","cli_worker_get_retries_exhausted",{context:B}),null}reportDelivery(A,Q){this.deliveryUploader.enqueue({eventId:A,status:Q})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),rq(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}function WQA(A){let Q=A.post_turn_summary;if(!VQA(Q)||Q.status_category!=="blocked")return A;return{...A,post_turn_summary:{...Q,status_category:"need_input"}}}function VQA(A){return A!==null&&typeof A==="object"&&"status_category"in A&&typeof A.status_category==="string"}oA();qE();KQ();GQ();var ZQA=1000,XQA=30000,KQA=600000,LQA=45000,zQA=new Set([401,403,404]),FJ=10,HQA=500,RQA=8000,$QA={stream:!0};function jQA(){return!0}function qQA(A){let Q=[],B=0,I;while((I=A.indexOf(`
|
|
125
|
+
`+C}catch(E){}}throw B}}_request(A,Q){if(typeof A==="string")Q=Q||{},Q.url=A;else Q=A||{};Q=UB(this.defaults,Q);let{transitional:B,paramsSerializer:I,headers:C}=Q;if(B!==void 0)r0.assertOptions(B,{silentJSONParsing:oQ.transitional(oQ.boolean),forcedJSONParsing:oQ.transitional(oQ.boolean),clarifyTimeoutError:oQ.transitional(oQ.boolean),legacyInterceptorReqResOrdering:oQ.transitional(oQ.boolean)},!1);if(I!=null)if(V.isFunction(I))Q.paramsSerializer={serialize:I};else r0.assertOptions(I,{encode:oQ.function,serialize:oQ.function},!0);if(Q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Q.allowAbsoluteUrls=!0;r0.assertOptions(Q,{baseUrl:oQ.spelling("baseURL"),withXsrfToken:oQ.spelling("withXSRFToken")},!0),Q.method=(Q.method||this.defaults.method||"get").toLowerCase();let E=C&&V.merge(C.common,C[Q.method]);C&&V.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete C[M]}),Q.headers=RA.concat(E,C);let g=[],Y=!0;this.interceptors.request.forEach(function(N){if(typeof N.runWhen==="function"&&N.runWhen(Q)===!1)return;Y=Y&&N.synchronous;let x=Q.transitional||NI;if(x&&x.legacyInterceptorReqResOrdering)g.unshift(N.fulfilled,N.rejected);else g.push(N.fulfilled,N.rejected)});let J=[];this.interceptors.response.forEach(function(N){J.push(N.fulfilled,N.rejected)});let U,F=0,G;if(!Y){let M=[hJ.bind(this),void 0];M.unshift(...g),M.push(...J),G=M.length,U=Promise.resolve(Q);while(F<G)U=U.then(M[F++],M[F++]);return U}G=g.length;let D=Q;while(F<G){let M=g[F++],N=g[F++];try{D=M(D)}catch(x){N.call(this,x);break}}try{U=hJ.call(this,D)}catch(M){return Promise.reject(M)}F=0,G=J.length;while(F<G)U=U.then(J[F++],J[F++]);return U}getUri(A){A=UB(this.defaults,A);let Q=BC(A.baseURL,A.url,A.allowAbsoluteUrls);return QC(Q,A.params,A.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(Q){t0.prototype[Q]=function(B,I){return this.request(UB(I||{},{method:Q,url:B,data:(I||{}).data}))}});V.forEach(["post","put","patch"],function(Q){function B(I){return function(E,g,Y){return this.request(UB(Y||{},{method:Q,headers:I?{"Content-Type":"multipart/form-data"}:{},url:E,data:g}))}}t0.prototype[Q]=B(),t0.prototype[Q+"Form"]=B(!0)});var e0=t0;class e2{constructor(A){if(typeof A!=="function")throw TypeError("executor must be a function.");let Q;this.promise=new Promise(function(C){Q=C});let B=this;this.promise.then((I)=>{if(!B._listeners)return;let C=B._listeners.length;while(C-- >0)B._listeners[C](I);B._listeners=null}),this.promise.then=(I)=>{let C,E=new Promise((g)=>{B.subscribe(g),C=g}).then(I);return E.cancel=function(){B.unsubscribe(C)},E},A(function(C,E,g){if(B.reason)return;B.reason=new OQ(C,E,g),Q(B.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(A){if(this.reason){A(this.reason);return}if(this._listeners)this._listeners.push(A);else this._listeners=[A]}unsubscribe(A){if(!this._listeners)return;let Q=this._listeners.indexOf(A);if(Q!==-1)this._listeners.splice(Q,1)}toAbortSignal(){let A=new AbortController,Q=(B)=>{A.abort(B)};return this.subscribe(Q),A.signal.unsubscribe=()=>this.unsubscribe(Q),A.signal}static source(){let A;return{token:new e2(function(I){A=I}),cancel:A}}}var T1=e2;function AD(A){return function(B){return A.apply(null,B)}}function QD(A){return V.isObject(A)&&A.isAxiosError===!0}var BD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(BD).forEach(([A,Q])=>{BD[Q]=A});var c1=BD;function v1(A){let Q=new e0(A),B=T0(e0.prototype.request,Q);return V.extend(B,e0.prototype,Q,{allOwnKeys:!0}),V.extend(B,Q,null,{allOwnKeys:!0}),B.create=function(C){return v1(UB(A,C))},B}var yA=v1(tC);yA.Axios=e0;yA.CanceledError=OQ;yA.CancelToken=T1;yA.isCancel=u0;yA.VERSION=YC;yA.toFormData=DI;yA.AxiosError=S;yA.Cancel=yA.CanceledError;yA.all=function(Q){return Promise.all(Q)};yA.spread=AD;yA.isAxiosError=QD;yA.mergeConfig=UB;yA.AxiosHeaders=RA;yA.formToJSON=(A)=>jJ(V.isHTMLForm(A)?new FormData(A):A);yA.getAdapter=bJ.getAdapter;yA.HttpStatusCode=c1;yA.default=yA;var xI=yA;UC();oA();KQ();GQ();sg();oA();KQ();GQ();var bk=["session_ingress_token","environment_secret","access_token","secret","token"],M2A=new RegExp(`"(${bk.join("|")})"\\s*:\\s*"([^"]*)"`,"g");function XN(A){if(!A||typeof A!=="object")return;if("message"in A&&typeof A.message==="string")return A.message;if("error"in A&&A.error!==null&&typeof A.error==="object"&&"message"in A.error&&typeof A.error.message==="string")return A.error.message;return}var tb="2023-06-01";function O5(A){return{Authorization:`Bearer ${A}`,"Content-Type":"application/json","anthropic-version":tb}}async function eb(A,Q,B,I,C,E,g,Y){let J=`${A}/v1/code/sessions`,U={cwd:g??UQ(),...Y&&{model:Y}};if(E){let{buildGitSessionContext:D}=await Promise.resolve().then(() => _5),{sources:M,outcomes:N}=await D(E.gitRepoUrl,E.branch,E.defaultBranch);if(M.length>0||N.length>0)U.sources=M,U.outcomes=N,U.reuse_outcome_branches=!0}let F;try{F=await xI.post(J,{title:B,bridge:{},...C?.length&&{tags:C},config:U},{headers:O5(Q),timeout:I,validateStatus:(D)=>D<500})}catch(D){return R(`[code-session] Session create request failed: ${UA(D)}`),null}if(F.status!==200&&F.status!==201){let D=XN(F.data);return R(`[code-session] Session create failed ${F.status}${D?`: ${D}`:""}`),null}let G=F.data;if(!G||typeof G!=="object"||!("session"in G)||!G.session||typeof G.session!=="object"||!("id"in G.session)||typeof G.session.id!=="string"||!G.session.id.startsWith("cse_"))return R(`[code-session] No session.id (cse_*) in response: ${iA(G).slice(0,200)}`),null;return G.session.id}function Ah(A){return A!==null&&"terminal"in A}function Qh(A,Q){if(A!==null&&typeof A==="object"&&"error"in A&&A.error!==null&&typeof A.error==="object"&&"resource"in A.error){let B=A.error.resource;if(B==="untrusted_device"||B==="session_stale_relogin")return B;return}if(Q?.includes("trusted device"))return"untrusted_device";return}async function Bh(A,Q,B,I,C){let E=`${Q}/v1/code/sessions/${A}/bridge`,g=O5(B);if(C)g["X-Trusted-Device-Token"]=C;let Y;try{Y=await xI.post(E,{},{headers:g,timeout:I,validateStatus:(G)=>G<500})}catch(G){return R(`[code-session] /bridge request failed: ${UA(G)}`),null}if(Y.status!==200){let G=XN(Y.data);if(R(`[code-session] /bridge failed ${Y.status}${G?`: ${G}`:""}`),Y.status===403){let D=Qh(Y.data,G);if(D)return{terminal:!0,reason:D}}return null}let J=Y.data;if(J===null||typeof J!=="object"||!("worker_jwt"in J)||typeof J.worker_jwt!=="string"||!("expires_in"in J)||typeof J.expires_in!=="number"||!("api_base_url"in J)||typeof J.api_base_url!=="string"||!("worker_epoch"in J))return R(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${iA(J).slice(0,200)}`),null;let U=J.worker_epoch,F=typeof U==="string"?Number(U):U;if(typeof F!=="number"||!Number.isFinite(F)||!Number.isSafeInteger(F))return R(`[code-session] /bridge worker_epoch invalid: ${iA(U)}`),null;return{worker_jwt:J.worker_jwt,api_base_url:J.api_base_url,expires_in:J.expires_in,worker_epoch:F}}oA();KQ();import{randomUUID as Ih}from"crypto";xw();sg();var P5={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"};function T5(A){if(A===null||typeof A!=="object")return A;let Q=A;if("requestId"in Q&&!("request_id"in Q))Q.request_id=Q.requestId,delete Q.requestId;if("response"in Q&&Q.response!==null&&typeof Q.response==="object"){let B=Q.response;if("requestId"in B&&!("request_id"in B))B.request_id=B.requestId,delete B.requestId}return A}oA();Ew();KQ();GQ();function Ch(A){return A!==null&&typeof A==="object"&&"type"in A&&typeof A.type==="string"}function Eh(A){return A!==null&&typeof A==="object"&&"type"in A&&A.type==="control_response"&&"response"in A}function gh(A){return A!==null&&typeof A==="object"&&"type"in A&&A.type==="control_request"&&"request_id"in A&&"request"in A}function c5(A,Q,B,I,C,E){try{let g=T5(qI(A));if(Eh(g)){R("[bridge:repl] Ingress message type=control_response"),C?.(g);return}if(gh(g)){R(`[bridge:repl] Inbound control_request subtype=${g.request.subtype}`),E?.(g);return}if(!Ch(g))return;let Y="uuid"in g&&typeof g.uuid==="string"?g.uuid:void 0;if(Y&&Q.has(Y)){R(`[bridge:repl] Ignoring echo: type=${g.type} uuid=${Y}`);return}if(Y&&B.has(Y)){R(`[bridge:repl] Ignoring re-delivered inbound: type=${g.type} uuid=${Y}`);return}if(R(`[bridge:repl] Ingress message type=${g.type}${Y?` uuid=${Y}`:""}`),g.type==="user"){if(Y)B.add(Y);SI("tengu_bridge_message_received",{is_repl:!0}),uF("bridge_message_receive"),I?.(g)}else R(`[bridge:repl] Ignoring non-user inbound message: type=${g.type}`)}catch(g){R(`[bridge:repl] Failed to parse ingress message: ${UA(g)}`),pK("bridge_message_receive","bridge_message_receive_parse_failed")}}var Yh="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function v5(A,Q){let{transport:B,sessionId:I,outboundOnly:C,onInterrupt:E,onSetModel:g,onSetMaxThinkingTokens:Y,onSetPermissionMode:J,onRenameSession:U,onSetColor:F,onFileSuggestions:G,onReadFile:D,onMcpAuthenticate:M,onMcpOauthCallbackUrl:N,onMcpReconnect:x,onMcpStatus:w}=Q;if(!B){R("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if(C&&A.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:Yh}};let X={...W,session_id:I};B.write(X),R(`[bridge:repl] Rejected ${A.request.subtype} (outbound-only) request_id=${A.request_id}`);return}switch(A.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:A.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":g?.(A.request.model),W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};break;case"set_max_thinking_tokens":Y?.(A.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};break;case"set_permission_mode":{let X=J?.(A.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(X.ok)W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:X.error}};break}case"rename_session":{let X=U?.(A.request.title)??{ok:!1,error:"rename_session is not supported in this context (onRenameSession callback not registered)"};if(X.ok)W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:X.error}};break}case"set_color":{let X=F?.(A.request.color)??{ok:!1,error:"set_color is not supported in this context (onSetColor callback not registered)"};if(X.ok)W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:X.error}};break}case"file_suggestions":{if(!G){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:"file_suggestions is not supported in this context (onFileSuggestions callback not registered)"}};break}G(A.request.query).then((X)=>({type:"control_response",response:{subtype:"success",request_id:A.request_id,response:{suggestions:X}}})).catch((X)=>({type:"control_response",response:{subtype:"error",request_id:A.request_id,error:UA(X)}})).then((X)=>{let H={...X,session_id:I};B.write(H),R(`[bridge:repl] Sent control_response for file_suggestions request_id=${A.request_id} result=${X.response.subtype}`)});return}case"read_file":{if(!D){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:"read_file is not supported in this context (onReadFile callback not registered)"}};break}D(A.request.path,A.request.max_bytes,A.request.encoding).then((X)=>({type:"control_response",response:{subtype:"success",request_id:A.request_id,response:X}})).catch((X)=>({type:"control_response",response:{subtype:"error",request_id:A.request_id,error:UA(X)}})).then((X)=>{let H={...X,session_id:I};B.write(H),R(`[bridge:repl] Sent control_response for read_file request_id=${A.request_id} result=${X.response.subtype}`)});return}case"mcp_status":W={type:"control_response",response:{subtype:"success",request_id:A.request_id,response:{mcpServers:w?.()??[]}}};break;case"mcp_authenticate":case"mcp_oauth_callback_url":case"mcp_reconnect":{let X=A.request,{subtype:H,serverName:T}=X,$=X.subtype==="mcp_authenticate"?M&&((_)=>M(_,X.redirectUri)):X.subtype==="mcp_oauth_callback_url"?N&&((_)=>N(_,X.callbackUrl)):x;if(!$){W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:`${H} is not supported in this context (callback not registered)`}};break}$(T).then((_)=>({type:"control_response",response:{subtype:"success",request_id:A.request_id,response:_??{}}})).catch((_)=>({type:"control_response",response:{subtype:"error",request_id:A.request_id,error:UA(_)}})).then((_)=>{let s={..._,session_id:I};B.write(s),R(`[bridge:repl] Sent control_response for ${H} request_id=${A.request_id} result=${_.response.subtype}`)});return}case"interrupt":E?.(),W={type:"control_response",response:{subtype:"success",request_id:A.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:A.request_id,error:`REPL bridge does not handle control_request subtype: ${A.request.subtype}`}}}let j={...W,session_id:I};B.write(j),R(`[bridge:repl] Sent control_response for ${A.request.subtype} request_id=${A.request_id} result=${W.response.subtype}`)}function k5(A){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:{...P5},modelUsage:{},permission_denials:[],session_id:A,uuid:Ih()}}class IU{capacity;ring;set=new Set;writeIdx=0;constructor(A){this.capacity=A,this.ring=Array(A)}add(A){if(this.set.has(A))return;let Q=this.ring[this.writeIdx];if(Q!==void 0)this.set.delete(Q);this.ring[this.writeIdx]=A,this.set.add(A),this.writeIdx=(this.writeIdx+1)%this.capacity}has(A){return this.set.has(A)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}import{randomUUID as QS}from"crypto";sg();oA();qE();KQ();GQ();function Jh(A){let B=(A.startsWith("sk-ant-si-")?A.slice(10):A).split(".");if(B.length!==3||!B[1])return null;try{return qI(Buffer.from(B[1],"base64url").toString("utf8"))}catch{return null}}function y5(A){let Q=Jh(A);if(Q!==null&&typeof Q==="object"&&"exp"in Q&&typeof Q.exp==="number")return Q.exp;return null}oA();qE();KQ();iB();zB();var tAA=dC(t5(),1);iB();function e5(A){return[...new Set(A)]}oA();ZI();sB();var AL=["bundled","system"];function _h(){let A=process.env.CLAUDE_CODE_CERT_STORE;if(A){let Q=[];for(let B of A.split(",")){let I=B.trim().toLowerCase();if(I==="bundled"||I==="system"){if(!Q.includes(I))Q.push(I)}else if(I)R(`CA certs: unrecognized CLAUDE_CODE_CERT_STORE source '${I}', ignoring`,{level:"warn"})}return Q.length>0?Q:AL}if(UD("--use-system-ca")||UD("--use-openssl-ca"))return["system"];return AL}var gY=$A(()=>{let A=_h(),Q=process.env.NODE_EXTRA_CA_CERTS,B=A.includes("bundled"),I=A.includes("system");R(`CA certs: stores=${A.join(",")}, extraCertsPath=${Q}`);let C=z("tls"),E=C.getCACertificates;if(!B&&I&&!E){R("CA certs: stores=system but system CA API unavailable, deferring to runtime");return}let g=[];if(B)g.push(...C.rootCertificates),R(`CA certs: Loaded ${C.rootCertificates.length} bundled root certificates`);if(I)try{let Y=E?.("system");if(Y&&Y.length>0)g.push(...Y),R(`CA certs: Loaded ${Y.length} system CA certificates`);else if(R(`CA certs: system store ${E?"returned empty":"unavailable"}`),!B)g.push(...C.rootCertificates)}catch(Y){if(R(`CA certs: Failed to load system CA certificates: ${Y}`,{level:"error"}),!B)g.push(...C.rootCertificates)}if(Q)try{let Y=sA().readFileSync(Q,{encoding:"utf8"});g.push(Y),R(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${Q})`)}catch(Y){R(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${Q}): ${Y}`,{level:"error"})}return g.length>0?e5(g):void 0});oA();ZI();iB();import{Agent as Oh}from"https";oA();sB();var gU=$A(()=>{let A={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{A.cert=sA().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),R("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(Q){R(`mTLS: Failed to load client certificate: ${Q}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{A.key=sA().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),R("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(Q){R(`mTLS: Failed to load client key: ${Q}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)A.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,R("mTLS: Using client key passphrase");if(Object.keys(A).length===0)return;return A}),Ph=$A(()=>{let A=gU(),Q=gY();if(!A&&!Q)return;let B={...A,...Q&&{ca:Q},keepAlive:!0};return R("mTLS: Creating HTTPS agent with custom certificates"),new Oh(B)});function YU(){let A=gU(),Q=gY();if(!A&&!Q)return{};return{tls:{...A,...Q&&{ca:Q}}}}Dw();var eAA=!1;function AQA(A=process.env){return A.https_proxy||A.HTTPS_PROXY||A.http_proxy||A.HTTP_PROXY}function QQA(A=process.env){return A.no_proxy||A.NO_PROXY}function BQA(A,Q=QQA()){if(!Q)return!1;if(Q==="*")return!0;try{let B=new URL(A),I=B.hostname.toLowerCase(),C=B.port||(B.protocol==="https:"?"443":"80"),E=`${I}:${C}`;return Q.split(/[,\s]+/).filter(Boolean).some((Y)=>{if(Y=Y.toLowerCase().trim(),Y.includes(":"))return E===Y;if(Y.startsWith(".")){let J=Y;return I===Y.substring(1)||I.endsWith(J)}return I===Y})}catch{return!1}}var BVA=$A((A)=>{let Q=nq(),B=gU(),I=gY(),C={httpProxy:A,httpsProxy:A,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(B||I){let E={...B&&{cert:B.cert,key:B.key,passphrase:B.passphrase},...I&&{ca:I}};C.connect=E,C.requestTls=E}return new Q.EnvHttpProxyAgent(C)});var IQA=null;function CQA(){return IQA?.value??null}function rx(A){let Q={...eAA&&{keepalive:!1},...A.forAnthropicAPI&&!fA(process.env.API_FORCE_IDLE_TIMEOUT)&&{timeout:!1}};if(A.forAnthropicAPI){let I=process.env.ANTHROPIC_UNIX_SOCKET;if(I)return{...Q,unix:I}}let B=AQA();if(B){if(A.url&&BQA(A.url))return{...Q,...YU()};let I=CQA();return{...Q,proxy:I?{url:B,headers:{"Proxy-Authorization":I}}:B,...YU()}}return{...Q,...YU()}}nJ();qE();ZI();var EQA=30000,ex=null,aq=0;var YJ=null,tx=null;function gQA(){oq(),YJ=setInterval(()=>{if(a("debug","session_keepalive_heartbeat",{refcount:aq}),fA(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))ex?.()},EQA)}function oq(){if(tx!==null)clearTimeout(tx),tx=null}function sq(A){if(ex=A,aq>0&&YJ===null)gQA()}function rq(){if(ex=null,YJ!==null)clearInterval(YJ),YJ=null;oq()}zB();zB();oA();ZI();KQ();sB();import{mkdirSync as YQA,writeFileSync as JQA}from"fs";var pG="/home/claude/.claude/remote",VVA=`${pG}/.oauth_token`,ZVA=`${pG}/.api_key`,mG=`${pG}/.session_ingress_token`;function tq(A,Q,B){if(!fA(process.env.CLAUDE_CODE_REMOTE))return;try{YQA(pG,{recursive:!0,mode:448}),JQA(A,Q,{encoding:"utf8",mode:384}),R(`Persisted ${B} to ${A} for subprocess access`)}catch(I){R(`Failed to persist ${B} to disk (non-fatal): ${UA(I)}`,{level:"error"})}}function AW(A,Q){try{let I=sA().readFileSync(A,{encoding:"utf8"}).trim();if(!I)return null;return R(`Read ${Q} from well-known file ${A}`),I}catch(B){if(!HF(B))R(`Failed to read ${Q} from ${A}: ${UA(B)}`,{level:"debug"});return null}}oA();KQ();sB();function FQA(){let A=AX();if(A!==void 0)return A;let Q=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!Q){let I=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??mG,C=AW(I,"session ingress token");return DE(C),C}let B=parseInt(Q,10);if(Number.isNaN(B))return R(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${Q}`,{level:"error"}),DE(null),null;try{let I=sA(),C=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${B}`:`/proc/self/fd/${B}`,E=I.readFileSync(C,{encoding:"utf8"}).trim();if(!E)return R("File descriptor contained empty token",{level:"error"}),DE(null),null;return R(`Successfully read token from file descriptor ${B}`),DE(E),tq(mG,E,"session ingress token"),E}catch(I){R(`Failed to read token from file descriptor ${B}: ${UA(I)}`,{level:"error"});let C=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??mG,E=AW(C,"session ingress token");return DE(E),E}}function QW(){let A=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(A)return A;return FQA()}function iG(){let A=QW();if(!A)return{};if(A.startsWith("sk-ant-sid")){let Q={Cookie:`sessionKey=${A}`},B=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(B)Q["X-Organization-Uuid"]=B;return Q}return{Authorization:`Bearer ${A}`}}function eq(A){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=A}function tI(A,Q,B){return new Promise((I,C)=>{if(Q?.aborted){if(B?.throwOnAbort||B?.abortError)C(B.abortError?.()??Error("aborted"));else I();return}let E=setTimeout((Y,J,U)=>{Y?.removeEventListener("abort",J),U()},A,Q,g,I);function g(){if(clearTimeout(E),B?.throwOnAbort||B?.abortError)C(B.abortError?.()??Error("aborted"));else I()}if(Q?.addEventListener("abort",g,{once:!0}),B?.unref)E.unref()})}GQ();function O0(){return"claude-code/0.2.131"}GQ();class P0 extends Error{retryAfterMs;constructor(A,Q){super(A);this.retryAfterMs=Q}}class JJ{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(A){this.config=A}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(A){if(this.closed)return;let Q=Array.isArray(A)?A:[A];if(Q.length===0)return;while(this.pending.length+Q.length>this.config.maxQueueSize&&!this.closed)await new Promise((B)=>{this.backpressureResolvers.push(B)});if(this.closed)return;this.pending.push(...Q),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((A)=>{this.flushResolvers.push(A)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let A of this.backpressureResolvers)A();this.backpressureResolvers=[];for(let A of this.flushResolvers)A();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let A=0;try{while(this.pending.length>0&&!this.closed){let Q=this.takeBatch();if(Q.length===0)continue;try{await this.config.send(Q),A=0}catch(B){if(A++,this.config.maxConsecutiveFailures!==void 0&&A>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(Q.length,A),A=0,this.releaseBackpressure();continue}this.pending=Q.concat(this.pending);let I=B instanceof P0?B.retryAfterMs:void 0;await this.sleep(this.retryDelay(A,I));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:A,maxBatchBytes:Q}=this.config;if(Q===void 0)return this.pending.splice(0,A);let B=0,I=0;while(I<this.pending.length&&I<A){let C;try{C=Buffer.byteLength(iA(this.pending[I]))}catch{this.pending.splice(I,1);continue}if(I>0&&B+C>Q)break;B+=C,I++}return this.pending.splice(0,I)}retryDelay(A,Q){let B=Math.random()*this.config.jitterMs;if(Q!==void 0)return Math.max(this.config.baseDelayMs,Math.min(Q,this.config.maxDelayMs))+B;return Math.min(this.config.baseDelayMs*2**(A-1),this.config.maxDelayMs)+B}releaseBackpressure(){let A=this.backpressureResolvers;this.backpressureResolvers=[];for(let Q of A)Q()}sleep(A){return new Promise((Q)=>{this.sleepResolve=Q,setTimeout((B,I)=>{B.sleepResolve=null,I()},A,this,Q)})}}class BW{inflight=null;pending=null;closed=!1;config;constructor(A){this.config=A}enqueue(A){if(this.closed)return;this.pending=this.pending?AS(this.pending,A):A,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let A=this.pending;this.pending=null,this.inflight=this.sendWithRetry(A).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(A){let Q=A,B=0;while(!this.closed){if(await this.config.send(Q))return;if(B++,await tI(this.retryDelay(B)),this.pending&&!this.closed)Q=AS(Q,this.pending),this.pending=null}}retryDelay(A){let Q=Math.min(this.config.baseDelayMs*2**(A-1),this.config.maxDelayMs),B=Math.random()*this.config.jitterMs;return Q+B}}function AS(A,Q){let B={...A};for(let[I,C]of Object.entries(Q))if((I==="external_metadata"||I==="internal_metadata")&&B[I]&&typeof B[I]==="object"&&typeof C==="object"&&C!==null)B[I]={...B[I],...C};else B[I]=C;return B}var UQA=20000,GQA=100;function DQA(A){let Q=jI(A);if(Q)return Q;if(A&&typeof A==="object"&&"name"in A&&typeof A.name==="string")return A.name;return}class uG extends Error{reason;constructor(A){super(`CCRClient init failed: ${A}`);this.reason=A}}var NQA=10;function wQA(){return{byMessage:new Map,scopeToMessage:new Map}}function dG(A){return`${A.session_id}:${A.parent_tool_use_id??""}`}function MQA(A,Q){let B=[],I=new Map;for(let C of A)switch(C.event.type){case"message_start":{let E=C.event.message.id,g=Q.scopeToMessage.get(dG(C));if(g)Q.byMessage.delete(g);Q.scopeToMessage.set(dG(C),E),Q.byMessage.set(E,[]),B.push(C);break}case"content_block_delta":{if(C.event.delta.type!=="text_delta"){B.push(C);break}let E=Q.scopeToMessage.get(dG(C)),g=E?Q.byMessage.get(E):void 0;if(!g){B.push(C);break}let Y=g[C.event.index]??=[];if(Y.push(C.event.delta.text),I.has(Y))break;let J={type:"stream_event",uuid:C.uuid,session_id:C.session_id,parent_tool_use_id:C.parent_tool_use_id,event:{type:"content_block_delta",index:C.event.index,delta:{type:"text_delta",text:""}}};I.set(Y,J),B.push(J);break}default:B.push(C)}for(let[C,E]of I)E.event.delta.text=C.join("");return B}function xQA(A,Q){A.byMessage.delete(Q.message.id);let B=dG(Q);if(A.scopeToMessage.get(B)===Q.message.id)A.scopeToMessage.delete(B)}class IW{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=wQA();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(A,Q,B){if(this.onEpochMismatch=B?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=B?.heartbeatIntervalMs??UQA,this.heartbeatJitterFraction=B?.heartbeatJitterFraction??0,this.getAuthHeaders=B?.getAuthHeaders??iG,Q.protocol!=="http:"&&Q.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${Q.protocol}`);let I=Q.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${Q.protocol}//${Q.host}${I}`,this.sessionId=I.split("/").pop()||"",this.workerState=new BW({send:(C)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...C},"PUT worker").then((E)=>E.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new JJ({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(C)=>{let E=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:C},"client events");if(!E.ok)throw new P0("client event POST failed",E.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new JJ({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(C)=>{let E=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:C},"internal events");if(!E.ok)throw new P0("internal event POST failed",E.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new JJ({maxBatchSize:64,maxQueueSize:64,send:async(C)=>{let E=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:C.map((g)=>({event_id:g.eventId,status:g.status}))},"delivery batch");if(!E.ok)throw new P0("delivery POST failed",E.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),A.setOnEvent((C)=>{this.reportDelivery(C.event_id,"received")})}async initialize(A){let Q=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new uG("no_auth_headers");if(A===void 0){let g=process.env.CLAUDE_CODE_WORKER_EPOCH;A=g?parseInt(g,10):NaN}if(isNaN(A))throw new uG("missing_epoch");this.workerEpoch=A;let B=this.getWorkerState(),I={ok:!1};for(let g=1;g<=3;g++){if(I=await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)"),I.ok||this.closed)break;if(g<3){let Y=Math.min(500*2**(g-1),30000)+Math.random()*500;await tI(Y)}}if(!I.ok){if(!this.closed)a("error","cli_worker_init_put_retries_exhausted");throw new uG("worker_register_failed")}this.currentState="idle",this.startHeartbeat(),sq(()=>{this.writeEvent({type:"keep_alive"})}),R(`CCRClient: initialized, epoch=${this.workerEpoch}`),a("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-Q});let{metadata:C,durationMs:E}=await B;if(!this.closed)a("info","cli_worker_state_restored",{duration_ms:E,had_state:C.external!==null||C.internal!==null});return C}async getWorkerState(){let A=Date.now(),Q=this.getAuthHeaders();if(Object.keys(Q).length===0)return{metadata:{external:null,internal:null},durationMs:0};let B=await this.getWithRetry(`${this.sessionBaseUrl}/worker`,Q,"worker_state");return{metadata:{external:B?.worker?.external_metadata??null,internal:B?.worker?.internal_metadata??null},durationMs:Date.now()-A}}async request(A,Q,B,I,{timeout:C=1e4}={}){let E=this.getAuthHeaders();if(Object.keys(E).length===0)return{ok:!1};let g=`${this.sessionBaseUrl}${Q}`;try{let Y=await fetch(g,{method:A.toUpperCase(),headers:{...E,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O0()},body:iA(B),signal:AbortSignal.timeout(C),...rx({url:g})});if(Y.body?.cancel(),Y.ok)return this.consecutiveAuthFailures=0,{ok:!0};if(Y.status===409)this.handleEpochMismatch();if(Y.status===401||Y.status===403){let J=QW(),U=J?y5(J):null;if(U!==null&&U*1000<Date.now())R(`CCRClient: session_token expired (exp=${new Date(U*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),a("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=NQA)R(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),a("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(R(`CCRClient: ${I} returned ${Y.status}`,{level:"warn"}),a("warn","cli_worker_request_failed",{method:A,path:Q,status:Y.status}),Y.status===429){let J=Y.headers.get("retry-after"),U=J?parseInt(J,10):NaN;if(!isNaN(U)&&U>=0)return{ok:!1,retryAfterMs:U*1000}}return{ok:!1}}catch(Y){return R(`CCRClient: ${I} failed: ${UA(Y)}`,{level:"warn"}),a("warn","cli_worker_request_error",{method:A,path:Q,error_code:DQA(Y)}),{ok:!1}}}reportState(A,Q){if(A===this.currentState&&!Q)return;this.currentState=A,this.workerState.enqueue({worker_status:A,requires_action_details:Q?{tool_name:Q.tool_name,display_tool_name:Q.display_tool_name,action_description:Q.action_description,raw_command:Q.raw_command,request_id:Q.request_id,tool_use_id:Q.tool_use_id}:null})}reportMetadata(A){this.workerState.enqueue({external_metadata:WQA(A)})}reportInternalMetadata(A){this.workerState.enqueue({internal_metadata:A})}handleEpochMismatch(){R("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),a("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let A=()=>{let B=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(Q,this.heartbeatIntervalMs+B)},Q=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;A()};A()}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)R("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(A){if(A.type==="stream_event"){if(this.streamEventBuffer.push(A),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),GQA);return}if(await this.flushStreamEventBuffer(),A.type==="assistant")xQA(this.streamTextAccumulator,A);await this.eventUploader.enqueue(this.toClientEvent(A))}toClientEvent(A){let Q=A,B=Q.historical===!0;return{payload:{...Q,uuid:typeof Q.uuid==="string"?Q.uuid:QS()},...B&&{historical:!0}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let A=this.streamEventBuffer;this.streamEventBuffer=[];let Q=MQA(A,this.streamTextAccumulator);await this.eventUploader.enqueue(Q.map((B)=>({payload:B,ephemeral:!0})))}async writeInternalEvent(A,Q,{isCompaction:B=!1,agentId:I}={}){let C={payload:{type:A,...Q,uuid:typeof Q.uuid==="string"?Q.uuid:QS()},...B&&{is_compaction:!0},...I&&{agent_id:I}};await this.internalEventUploader.enqueue(C)}flushInternalEvents(){return this.internalEventUploader.flush()}flushDeliveryAcks(){return this.deliveryUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(A,Q,B){let I=this.getAuthHeaders();if(Object.keys(I).length===0)return null;let C=[],E;do{let g=new URL(`${this.sessionBaseUrl}${A}`);for(let[J,U]of Object.entries(Q))g.searchParams.set(J,U);if(E)g.searchParams.set("cursor",E);let Y=await this.getWithRetry(g.toString(),I,B);if(!Y)return null;C.push(...Y.data??[]),E=Y.next_cursor}while(E);return R(`CCRClient: Read ${C.length} internal events from ${A}${Q.subagents?" (subagents)":""}`),C}async getWithRetry(A,Q,B){for(let I=1;I<=10;I++){let C;try{if(C=await fetch(A,{headers:{...Q,"anthropic-version":"2023-06-01","User-Agent":O0()},signal:AbortSignal.timeout(30000),...rx({url:A})}),C.ok)return await C.json()}catch(E){if(R(`CCRClient: GET ${A} failed (attempt ${I}/10): ${UA(E)}`,{level:"warn"}),I<10){let g=Math.min(500*2**(I-1),30000)+Math.random()*500;await tI(g)}continue}if(C.body?.cancel(),C.status===409)this.handleEpochMismatch();if(R(`CCRClient: GET ${A} returned ${C.status} (attempt ${I}/10)`,{level:"warn"}),I<10){let E=Math.min(500*2**(I-1),30000)+Math.random()*500;await tI(E)}}return R("CCRClient: GET retries exhausted",{level:"error"}),a("error","cli_worker_get_retries_exhausted",{context:B}),null}reportDelivery(A,Q){this.deliveryUploader.enqueue({eventId:A,status:Q})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),rq(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}function WQA(A){let Q=A.post_turn_summary;if(!VQA(Q)||Q.status_category!=="blocked")return A;return{...A,post_turn_summary:{...Q,status_category:"need_input"}}}function VQA(A){return A!==null&&typeof A==="object"&&"status_category"in A&&typeof A.status_category==="string"}oA();qE();KQ();GQ();var ZQA=1000,XQA=30000,KQA=600000,LQA=45000,zQA=new Set([401,403,404]),FJ=10,HQA=500,RQA=8000,$QA={stream:!0};function jQA(){return!0}function qQA(A){let Q=[],B=0,I;while((I=A.indexOf(`
|
|
126
126
|
|
|
127
127
|
`,B))!==-1){let C=A.slice(B,I);if(B=I+2,!C.trim())continue;let E={},g=!1;for(let Y of C.split(`
|
|
128
128
|
`)){if(Y.startsWith(":")){g=!0;continue}let J=Y.indexOf(":");if(J===-1)continue;let U=Y.slice(0,J),F=Y[J+1]===" "?Y.slice(J+2):Y.slice(J+1);switch(U){case"event":E.event=F;break;case"id":E.id=F;break;case"data":E.data=E.data?E.data+`
|