gexinsofts-mcp 0.0.2 → 0.0.3
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/index.js +133 -0
- package/package.json +11 -37
- package/dist/index.js +0 -43591
package/index.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var pz=Object.create;var qu=Object.defineProperty;var dz=Object.getOwnPropertyDescriptor;var mz=Object.getOwnPropertyNames;var fz=Object.getPrototypeOf,hz=Object.prototype.hasOwnProperty;var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),la=(e,t)=>{for(var r in t)qu(e,r,{get:t[r],enumerable:!0})},gz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mz(t))!hz.call(e,n)&&n!==r&&qu(e,n,{get:()=>t[n],enumerable:!(o=dz(t,n))||o.enumerable});return e};var pt=(e,t,r)=>(r=e!=null?pz(fz(e)):{},gz(t||!e||!e.__esModule?qu(r,"default",{value:e,enumerable:!0}):r,e));var QS=ie((dD,XS)=>{"use strict";var YS=require("stream").Stream,$k=require("util");XS.exports=Kt;function Kt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}$k.inherits(Kt,YS);Kt.create=function(e,t){var r=new this;t=t||{};for(var o in t)r[o]=t[o];r.source=e;var n=e.emit;return e.emit=function(){return r._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(Kt.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Kt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Kt.prototype.resume=function(){this._released||this.release(),this.source.resume()};Kt.prototype.pause=function(){this.source.pause()};Kt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Kt.prototype.pipe=function(){var e=YS.prototype.pipe.apply(this,arguments);return this.resume(),e};Kt.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Kt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var ox=ie((mD,rx)=>{"use strict";var Pk=require("util"),tx=require("stream").Stream,ex=QS();rx.exports=Xe;function Xe(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Pk.inherits(Xe,tx);Xe.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};Xe.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};Xe.prototype.append=function(e){var t=Xe.isStreamLike(e);if(t){if(!(e instanceof ex)){var r=ex.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};Xe.prototype.pipe=function(e,t){return tx.prototype.pipe.call(this,e,t),this.resume(),e};Xe.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}};Xe.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var o=Xe.isStreamLike(r);o&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Xe.prototype._pipeNext=function(e){this._currentStream=e;var t=Xe.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};Xe.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};Xe.prototype.write=function(e){this.emit("data",e)};Xe.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Xe.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Xe.prototype.end=function(){this._reset(),this.emit("end")};Xe.prototype.destroy=function(){this._reset(),this.emit("close")};Xe.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Xe.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};Xe.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Xe.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var nx=ie((fD,Ok)=>{Ok.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 sx=ie((hD,ix)=>{"use strict";ix.exports=nx()});var lx=ie(Tt=>{"use strict";var lu=sx(),kk=require("path").extname,ax=/^\s*([^;\s]*)(?:;|\s|$)/,Ck=/^text\//i;Tt.charset=cx;Tt.charsets={lookup:cx};Tt.contentType=Ak;Tt.extension=Ik;Tt.extensions=Object.create(null);Tt.lookup=jk;Tt.types=Object.create(null);Nk(Tt.extensions,Tt.types);function cx(e){if(!e||typeof e!="string")return!1;var t=ax.exec(e),r=t&&lu[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Ck.test(t[1])?"UTF-8":!1}function Ak(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Tt.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Tt.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function Ik(e){if(!e||typeof e!="string")return!1;var t=ax.exec(e),r=t&&Tt.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function jk(e){if(!e||typeof e!="string")return!1;var t=kk("x."+e).toLowerCase().substr(1);return t&&Tt.types[t]||!1}function Nk(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(lu).forEach(function(n){var i=lu[n],s=i.extensions;if(!(!s||!s.length)){e[n]=s;for(var a=0;a<s.length;a++){var c=s[a];if(t[c]){var l=r.indexOf(lu[t[c]].source),u=r.indexOf(i.source);if(t[c]!=="application/octet-stream"&&(l>u||l===u&&t[c].substr(0,12)==="application/"))continue}t[c]=n}}})}});var px=ie((vD,ux)=>{"use strict";ux.exports=qk;function qk(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var Km=ie((yD,mx)=>{"use strict";var dx=px();mx.exports=Mk;function Mk(e){var t=!1;return dx(function(){t=!0}),function(o,n){t?e(o,n):dx(function(){e(o,n)})}}});var Gm=ie((bD,fx)=>{"use strict";fx.exports=Lk;function Lk(e){Object.keys(e.jobs).forEach(Dk.bind(e)),e.jobs={}}function Dk(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var Wm=ie((_D,gx)=>{"use strict";var hx=Km(),Uk=Gm();gx.exports=Fk;function Fk(e,t,r,o){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=Bk(t,n,e[n],function(i,s){n in r.jobs&&(delete r.jobs[n],i?Uk(r):r.results[n]=s,o(i,r.results))})}function Bk(e,t,r,o){var n;return e.length==2?n=e(r,hx(o)):n=e(r,t,hx(o)),n}});var Ym=ie((SD,vx)=>{"use strict";vx.exports=Vk;function Vk(e,t){var r=!Array.isArray(e),o={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&o.keyedList.sort(r?t:function(n,i){return t(e[n],e[i])}),o}});var Xm=ie((xD,yx)=>{"use strict";var Hk=Gm(),Zk=Km();yx.exports=Jk;function Jk(e){Object.keys(this.jobs).length&&(this.index=this.size,Hk(this),Zk(e)(null,this.results))}});var _x=ie((wD,bx)=>{"use strict";var Kk=Wm(),Gk=Ym(),Wk=Xm();bx.exports=Yk;function Yk(e,t,r){for(var o=Gk(e);o.index<(o.keyedList||e).length;)Kk(e,t,o,function(n,i){if(n){r(n,i);return}if(Object.keys(o.jobs).length===0){r(null,o.results);return}}),o.index++;return Wk.bind(o,r)}});var Qm=ie((RD,uu)=>{"use strict";var Sx=Wm(),Xk=Ym(),Qk=Xm();uu.exports=eC;uu.exports.ascending=xx;uu.exports.descending=tC;function eC(e,t,r,o){var n=Xk(e,r);return Sx(e,t,n,function i(s,a){if(s){o(s,a);return}if(n.index++,n.index<(n.keyedList||e).length){Sx(e,t,n,i);return}o(null,n.results)}),Qk.bind(n,o)}function xx(e,t){return e<t?-1:e>t?1:0}function tC(e,t){return-1*xx(e,t)}});var Rx=ie((zD,wx)=>{"use strict";var rC=Qm();wx.exports=oC;function oC(e,t,r){return rC(e,t,null,r)}});var Ex=ie((ED,zx)=>{"use strict";zx.exports={parallel:_x(),serial:Rx(),serialOrdered:Qm()}});var ef=ie((TD,Tx)=>{"use strict";Tx.exports=Object});var Px=ie(($D,$x)=>{"use strict";$x.exports=Error});var kx=ie((PD,Ox)=>{"use strict";Ox.exports=EvalError});var Ax=ie((OD,Cx)=>{"use strict";Cx.exports=RangeError});var jx=ie((kD,Ix)=>{"use strict";Ix.exports=ReferenceError});var qx=ie((CD,Nx)=>{"use strict";Nx.exports=SyntaxError});var pu=ie((AD,Mx)=>{"use strict";Mx.exports=TypeError});var Dx=ie((ID,Lx)=>{"use strict";Lx.exports=URIError});var Fx=ie((jD,Ux)=>{"use strict";Ux.exports=Math.abs});var Vx=ie((ND,Bx)=>{"use strict";Bx.exports=Math.floor});var Zx=ie((qD,Hx)=>{"use strict";Hx.exports=Math.max});var Kx=ie((MD,Jx)=>{"use strict";Jx.exports=Math.min});var Wx=ie((LD,Gx)=>{"use strict";Gx.exports=Math.pow});var Xx=ie((DD,Yx)=>{"use strict";Yx.exports=Math.round});var e0=ie((UD,Qx)=>{"use strict";Qx.exports=Number.isNaN||function(t){return t!==t}});var r0=ie((FD,t0)=>{"use strict";var nC=e0();t0.exports=function(t){return nC(t)||t===0?t:t<0?-1:1}});var n0=ie((BD,o0)=>{"use strict";o0.exports=Object.getOwnPropertyDescriptor});var tf=ie((VD,i0)=>{"use strict";var du=n0();if(du)try{du([],"length")}catch{du=null}i0.exports=du});var a0=ie((HD,s0)=>{"use strict";var mu=Object.defineProperty||!1;if(mu)try{mu({},"a",{value:1})}catch{mu=!1}s0.exports=mu});var rf=ie((ZD,c0)=>{"use strict";c0.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==n||a.enumerable!==!0)return!1}return!0}});var p0=ie((JD,u0)=>{"use strict";var l0=typeof Symbol<"u"&&Symbol,iC=rf();u0.exports=function(){return typeof l0!="function"||typeof Symbol!="function"||typeof l0("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:iC()}});var of=ie((KD,d0)=>{"use strict";d0.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var nf=ie((GD,m0)=>{"use strict";var sC=ef();m0.exports=sC.getPrototypeOf||null});var g0=ie((WD,h0)=>{"use strict";var aC="Function.prototype.bind called on incompatible ",cC=Object.prototype.toString,lC=Math.max,uC="[object Function]",f0=function(t,r){for(var o=[],n=0;n<t.length;n+=1)o[n]=t[n];for(var i=0;i<r.length;i+=1)o[i+t.length]=r[i];return o},pC=function(t,r){for(var o=[],n=r||0,i=0;n<t.length;n+=1,i+=1)o[i]=t[n];return o},dC=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};h0.exports=function(t){var r=this;if(typeof r!="function"||cC.apply(r)!==uC)throw new TypeError(aC+r);for(var o=pC(arguments,1),n,i=function(){if(this instanceof n){var u=r.apply(this,f0(o,arguments));return Object(u)===u?u:this}return r.apply(t,f0(o,arguments))},s=lC(0,r.length-o.length),a=[],c=0;c<s;c++)a[c]="$"+c;if(n=Function("binder","return function ("+dC(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,n.prototype=new l,l.prototype=null}return n}});var xs=ie((YD,v0)=>{"use strict";var mC=g0();v0.exports=Function.prototype.bind||mC});var fu=ie((XD,y0)=>{"use strict";y0.exports=Function.prototype.call});var sf=ie((QD,b0)=>{"use strict";b0.exports=Function.prototype.apply});var S0=ie((eU,_0)=>{"use strict";_0.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var w0=ie((tU,x0)=>{"use strict";var fC=xs(),hC=sf(),gC=fu(),vC=S0();x0.exports=vC||fC.call(gC,hC)});var z0=ie((rU,R0)=>{"use strict";var yC=xs(),bC=pu(),_C=fu(),SC=w0();R0.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new bC("a function is required");return SC(yC,_C,t)}});var k0=ie((oU,O0)=>{"use strict";var xC=z0(),E0=tf(),$0;try{$0=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var af=!!$0&&E0&&E0(Object.prototype,"__proto__"),P0=Object,T0=P0.getPrototypeOf;O0.exports=af&&typeof af.get=="function"?xC([af.get]):typeof T0=="function"?function(t){return T0(t==null?t:P0(t))}:!1});var N0=ie((nU,j0)=>{"use strict";var C0=of(),A0=nf(),I0=k0();j0.exports=C0?function(t){return C0(t)}:A0?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return A0(t)}:I0?function(t){return I0(t)}:null});var hu=ie((iU,q0)=>{"use strict";var wC=Function.prototype.call,RC=Object.prototype.hasOwnProperty,zC=xs();q0.exports=zC.call(wC,RC)});var V0=ie((sU,B0)=>{"use strict";var Oe,EC=ef(),TC=Px(),$C=kx(),PC=Ax(),OC=jx(),Sn=qx(),_n=pu(),kC=Dx(),CC=Fx(),AC=Vx(),IC=Zx(),jC=Kx(),NC=Wx(),qC=Xx(),MC=r0(),U0=Function,cf=function(e){try{return U0('"use strict"; return ('+e+").constructor;")()}catch{}},ws=tf(),LC=a0(),lf=function(){throw new _n},DC=ws?(function(){try{return arguments.callee,lf}catch{try{return ws(arguments,"callee").get}catch{return lf}}})():lf,yn=p0()(),ct=N0(),UC=nf(),FC=of(),F0=sf(),Rs=fu(),bn={},BC=typeof Uint8Array>"u"||!ct?Oe:ct(Uint8Array),uo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Oe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Oe:ArrayBuffer,"%ArrayIteratorPrototype%":yn&&ct?ct([][Symbol.iterator]()):Oe,"%AsyncFromSyncIteratorPrototype%":Oe,"%AsyncFunction%":bn,"%AsyncGenerator%":bn,"%AsyncGeneratorFunction%":bn,"%AsyncIteratorPrototype%":bn,"%Atomics%":typeof Atomics>"u"?Oe:Atomics,"%BigInt%":typeof BigInt>"u"?Oe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Oe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Oe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Oe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":TC,"%eval%":eval,"%EvalError%":$C,"%Float16Array%":typeof Float16Array>"u"?Oe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Oe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Oe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Oe:FinalizationRegistry,"%Function%":U0,"%GeneratorFunction%":bn,"%Int8Array%":typeof Int8Array>"u"?Oe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Oe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Oe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":yn&&ct?ct(ct([][Symbol.iterator]())):Oe,"%JSON%":typeof JSON=="object"?JSON:Oe,"%Map%":typeof Map>"u"?Oe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!yn||!ct?Oe:ct(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":EC,"%Object.getOwnPropertyDescriptor%":ws,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Oe:Promise,"%Proxy%":typeof Proxy>"u"?Oe:Proxy,"%RangeError%":PC,"%ReferenceError%":OC,"%Reflect%":typeof Reflect>"u"?Oe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Oe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!yn||!ct?Oe:ct(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Oe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":yn&&ct?ct(""[Symbol.iterator]()):Oe,"%Symbol%":yn?Symbol:Oe,"%SyntaxError%":Sn,"%ThrowTypeError%":DC,"%TypedArray%":BC,"%TypeError%":_n,"%Uint8Array%":typeof Uint8Array>"u"?Oe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Oe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Oe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Oe:Uint32Array,"%URIError%":kC,"%WeakMap%":typeof WeakMap>"u"?Oe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Oe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Oe:WeakSet,"%Function.prototype.call%":Rs,"%Function.prototype.apply%":F0,"%Object.defineProperty%":LC,"%Object.getPrototypeOf%":UC,"%Math.abs%":CC,"%Math.floor%":AC,"%Math.max%":IC,"%Math.min%":jC,"%Math.pow%":NC,"%Math.round%":qC,"%Math.sign%":MC,"%Reflect.getPrototypeOf%":FC};if(ct)try{null.error}catch(e){M0=ct(ct(e)),uo["%Error.prototype%"]=M0}var M0,VC=function e(t){var r;if(t==="%AsyncFunction%")r=cf("async function () {}");else if(t==="%GeneratorFunction%")r=cf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=cf("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&ct&&(r=ct(n.prototype))}return uo[t]=r,r},L0={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zs=xs(),gu=hu(),HC=zs.call(Rs,Array.prototype.concat),ZC=zs.call(F0,Array.prototype.splice),D0=zs.call(Rs,String.prototype.replace),vu=zs.call(Rs,String.prototype.slice),JC=zs.call(Rs,RegExp.prototype.exec),KC=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,GC=/\\(\\)?/g,WC=function(t){var r=vu(t,0,1),o=vu(t,-1);if(r==="%"&&o!=="%")throw new Sn("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Sn("invalid intrinsic syntax, expected opening `%`");var n=[];return D0(t,KC,function(i,s,a,c){n[n.length]=a?D0(c,GC,"$1"):s||i}),n},YC=function(t,r){var o=t,n;if(gu(L0,o)&&(n=L0[o],o="%"+n[0]+"%"),gu(uo,o)){var i=uo[o];if(i===bn&&(i=VC(o)),typeof i>"u"&&!r)throw new _n("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new Sn("intrinsic "+t+" does not exist!")};B0.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new _n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _n('"allowMissing" argument must be a boolean');if(JC(/^%?[^%]*%?$/,t)===null)throw new Sn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=WC(t),n=o.length>0?o[0]:"",i=YC("%"+n+"%",r),s=i.name,a=i.value,c=!1,l=i.alias;l&&(n=l[0],ZC(o,HC([0,1],l)));for(var u=1,p=!0;u<o.length;u+=1){var d=o[u],f=vu(d,0,1),g=vu(d,-1);if((f==='"'||f==="'"||f==="`"||g==='"'||g==="'"||g==="`")&&f!==g)throw new Sn("property names with quotes must have matching quotes");if((d==="constructor"||!p)&&(c=!0),n+="."+d,s="%"+n+"%",gu(uo,s))a=uo[s];else if(a!=null){if(!(d in a)){if(!r)throw new _n("base intrinsic for "+t+" exists, but the property is not available.");return}if(ws&&u+1>=o.length){var v=ws(a,d);p=!!v,p&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[d]}else p=gu(a,d),a=a[d];p&&!c&&(uo[s]=a)}}return a}});var Z0=ie((aU,H0)=>{"use strict";var XC=rf();H0.exports=function(){return XC()&&!!Symbol.toStringTag}});var G0=ie((cU,K0)=>{"use strict";var QC=V0(),J0=QC("%Object.defineProperty%",!0),eA=Z0()(),tA=hu(),rA=pu(),yu=eA?Symbol.toStringTag:null;K0.exports=function(t,r){var o=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof o<"u"&&typeof o!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new rA("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");yu&&(o||!tA(t,yu))&&(J0?J0(t,yu,{configurable:!n,enumerable:!1,value:r,writable:!1}):t[yu]=r)}});var Y0=ie((lU,W0)=>{"use strict";W0.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var ew=ie((uU,Q0)=>{"use strict";var mf=ox(),oA=require("util"),uf=require("path"),nA=require("http"),iA=require("https"),sA=require("url").parse,aA=require("fs"),cA=require("stream").Stream,lA=require("crypto"),pf=lx(),uA=Ex(),pA=G0(),qr=hu(),df=Y0();function X0(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function Ae(e){if(!(this instanceof Ae))return new Ae(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],mf.call(this),e=e||{};for(var t in e)this[t]=e[t]}oA.inherits(Ae,mf);Ae.LINE_BREAK=`\r
|
|
3
|
+
`;Ae.DEFAULT_CONTENT_TYPE="application/octet-stream";Ae.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var o=mf.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r),i=this._multiPartFooter();o(n),o(t),o(i),this._trackLength(n,t,r)};Ae.prototype._trackLength=function(e,t,r){var o=0;r.knownLength!=null?o+=Number(r.knownLength):Buffer.isBuffer(t)?o=t.length:typeof t=="string"&&(o=Buffer.byteLength(t)),this._valueLength+=o,this._overheadLength+=Buffer.byteLength(e)+Ae.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&qr(t,"httpVersion"))&&!(t instanceof cA))&&(r.knownLength||this._valuesToMeasure.push(t))};Ae.prototype._lengthRetriever=function(e,t){qr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):aA.stat(e.path,function(r,o){if(r){t(r);return}var n=o.size-(e.start?e.start:0);t(null,n)}):qr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):qr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};Ae.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var o=this._getContentDisposition(t,r),n=this._getContentType(t,r),i="",s={"Content-Disposition":["form-data",'name="'+X0(e)+'"'].concat(o||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&df(s,r.header);var a;for(var c in s)if(qr(s,c)){if(a=s[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(i+=c+": "+a.join("; ")+Ae.LINE_BREAK)}return"--"+this.getBoundary()+Ae.LINE_BREAK+i+Ae.LINE_BREAK};Ae.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=uf.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=uf.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&qr(e,"httpVersion")&&(r=uf.basename(e.client._httpMessage.path||"")),r)return'filename="'+X0(r)+'"'};Ae.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=pf.lookup(e.name)),!r&&e&&e.path&&(r=pf.lookup(e.path)),!r&&e&&e.readable&&qr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=pf.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=Ae.DEFAULT_CONTENT_TYPE),r};Ae.prototype._multiPartFooter=function(){return function(e){var t=Ae.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};Ae.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ae.LINE_BREAK};Ae.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)qr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};Ae.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};Ae.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ae.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,o=this._streams.length;r<o;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(Ae.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};Ae.prototype._generateBoundary=function(){this._boundary="--------------------------"+lA.randomBytes(12).toString("hex")};Ae.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};Ae.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};Ae.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}uA.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,o){if(r){e(r);return}o.forEach(function(n){t+=n}),e(null,t)})};Ae.prototype.submit=function(e,t){var r,o,n={method:"post"};return typeof e=="string"?(e=sA(e),o=df({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(o=df(e,n),o.port||(o.port=o.protocol==="https:"?443:80)),o.headers=this.getHeaders(e.headers),o.protocol==="https:"?r=iA.request(o):r=nA.request(o),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var a,c=function(l,u){return r.removeListener("error",c),r.removeListener("response",a),t.call(this,l,u)};a=c.bind(this,null),r.on("error",c),r.on("response",a)}}.bind(this)),r};Ae.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};Ae.prototype.toString=function(){return"[object FormData]"};pA(Ae.prototype,"FormData");Q0.exports=Ae});var _w=ie((f4,bw)=>{"use strict";var Rn=1e3,zn=Rn*60,En=zn*60,fo=En*24,CA=fo*7,AA=fo*365.25;bw.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return IA(e);if(r==="number"&&isFinite(e))return t.long?NA(e):jA(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function IA(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*AA;case"weeks":case"week":case"w":return r*CA;case"days":case"day":case"d":return r*fo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*En;case"minutes":case"minute":case"mins":case"min":case"m":return r*zn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function jA(e){var t=Math.abs(e);return t>=fo?Math.round(e/fo)+"d":t>=En?Math.round(e/En)+"h":t>=zn?Math.round(e/zn)+"m":t>=Rn?Math.round(e/Rn)+"s":e+"ms"}function NA(e){var t=Math.abs(e);return t>=fo?wu(e,t,fo,"day"):t>=En?wu(e,t,En,"hour"):t>=zn?wu(e,t,zn,"minute"):t>=Rn?wu(e,t,Rn,"second"):e+" ms"}function wu(e,t,r,o){var n=t>=r*1.5;return Math.round(e/r)+" "+o+(n?"s":"")}});var Pf=ie((h4,Sw)=>{"use strict";function qA(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=n,r.enabled=a,r.humanize=_w(),r.destroy=l,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let p=0;for(let d=0;d<u.length;d++)p=(p<<5)-p+u.charCodeAt(d),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(u){let p,d=null,f,g;function v(...y){if(!v.enabled)return;let m=v,b=Number(new Date),_=b-(p||b);m.diff=_,m.prev=p,m.curr=b,p=b,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let w=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(S,x)=>{if(S==="%%")return"%";w++;let T=r.formatters[x];if(typeof T=="function"){let j=y[w];S=T.call(m,j),y.splice(w,1),w--}return S}),r.formatArgs.call(m,y),(m.log||r.log).apply(m,y)}return v.namespace=u,v.useColors=r.useColors(),v.color=r.selectColor(u),v.extend=o,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(f!==r.namespaces&&(f=r.namespaces,g=r.enabled(u)),g),set:y=>{d=y}}),typeof r.init=="function"&&r.init(v),v}function o(u,p){let d=r(this.namespace+(typeof p>"u"?":":p)+u);return d.log=this.log,d}function n(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let p=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function i(u,p){let d=0,f=0,g=-1,v=0;for(;d<u.length;)if(f<p.length&&(p[f]===u[d]||p[f]==="*"))p[f]==="*"?(g=f,v=d,f++):(d++,f++);else if(g!==-1)f=g+1,v++,d=v;else return!1;for(;f<p.length&&p[f]==="*";)f++;return f===p.length}function s(){let u=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),u}function a(u){for(let p of r.skips)if(i(u,p))return!1;for(let p of r.names)if(i(u,p))return!0;return!1}function c(u){return u instanceof Error?u.stack||u.message:u}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Sw.exports=qA});var xw=ie(($t,Ru)=>{"use strict";$t.formatArgs=LA;$t.save=DA;$t.load=UA;$t.useColors=MA;$t.storage=FA();$t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();$t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function MA(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function LA(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Ru.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),e.splice(o,0,t)}$t.log=console.debug||console.log||(()=>{});function DA(e){try{e?$t.storage.setItem("debug",e):$t.storage.removeItem("debug")}catch{}}function UA(){let e;try{e=$t.storage.getItem("debug")||$t.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function FA(){try{return localStorage}catch{}}Ru.exports=Pf()($t);var{formatters:BA}=Ru.exports;BA.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Rw=ie((g4,ww)=>{"use strict";ww.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",o=t.indexOf(r+e),n=t.indexOf("--");return o!==-1&&(n===-1||o<n)}});var Tw=ie((v4,Ew)=>{"use strict";var VA=require("os"),zw=require("tty"),Dt=Rw(),{env:lt}=process,Dr;Dt("no-color")||Dt("no-colors")||Dt("color=false")||Dt("color=never")?Dr=0:(Dt("color")||Dt("colors")||Dt("color=true")||Dt("color=always"))&&(Dr=1);"FORCE_COLOR"in lt&&(lt.FORCE_COLOR==="true"?Dr=1:lt.FORCE_COLOR==="false"?Dr=0:Dr=lt.FORCE_COLOR.length===0?1:Math.min(parseInt(lt.FORCE_COLOR,10),3));function Of(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kf(e,t){if(Dr===0)return 0;if(Dt("color=16m")||Dt("color=full")||Dt("color=truecolor"))return 3;if(Dt("color=256"))return 2;if(e&&!t&&Dr===void 0)return 0;let r=Dr||0;if(lt.TERM==="dumb")return r;if(process.platform==="win32"){let o=VA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in lt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in lt)||lt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in lt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(lt.TEAMCITY_VERSION)?1:0;if(lt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in lt){let o=parseInt((lt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(lt.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(lt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(lt.TERM)||"COLORTERM"in lt?1:r}function HA(e){let t=kf(e,e&&e.isTTY);return Of(t)}Ew.exports={supportsColor:HA,stdout:Of(kf(!0,zw.isatty(1))),stderr:Of(kf(!0,zw.isatty(2)))}});var Pw=ie((ut,Eu)=>{"use strict";var ZA=require("tty"),zu=require("util");ut.init=QA;ut.log=WA;ut.formatArgs=KA;ut.save=YA;ut.load=XA;ut.useColors=JA;ut.destroy=zu.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ut.colors=[6,2,3,4,5,1];try{let e=Tw();e&&(e.stderr||e).level>=2&&(ut.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ut.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),o=process.env[t];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),e[r]=o,e},{});function JA(){return"colors"in ut.inspectOpts?!!ut.inspectOpts.colors:ZA.isatty(process.stderr.fd)}function KA(e){let{namespace:t,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),i=` ${n};1m${t} \x1B[0m`;e[0]=i+e[0].split(`
|
|
4
|
+
`).join(`
|
|
5
|
+
`+i),e.push(n+"m+"+Eu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=GA()+t+" "+e[0]}function GA(){return ut.inspectOpts.hideDate?"":new Date().toISOString()+" "}function WA(...e){return process.stderr.write(zu.formatWithOptions(ut.inspectOpts,...e)+`
|
|
6
|
+
`)}function YA(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function XA(){return process.env.DEBUG}function QA(e){e.inspectOpts={};let t=Object.keys(ut.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ut.inspectOpts[t[r]]}Eu.exports=Pf()(ut);var{formatters:$w}=Eu.exports;$w.o=function(e){return this.inspectOpts.colors=this.useColors,zu.inspect(e,this.inspectOpts).split(`
|
|
7
|
+
`).map(t=>t.trim()).join(" ")};$w.O=function(e){return this.inspectOpts.colors=this.useColors,zu.inspect(e,this.inspectOpts)}});var ks=ie((y4,Cf)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Cf.exports=xw():Cf.exports=Pw()});var Ow=ie(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});function eI(e){return function(t,r){return new Promise((o,n)=>{e.call(this,t,r,(i,s)=>{i?n(i):o(s)})})}}Af.default=eI});var Aw=ie((jf,Cw)=>{"use strict";var kw=jf&&jf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},tI=require("events"),rI=kw(ks()),oI=kw(Ow()),Cs=rI.default("agent-base");function nI(e){return!!e&&typeof e.addRequest=="function"}function If(){let{stack:e}=new Error;return typeof e!="string"?!1:e.split(`
|
|
8
|
+
`).some(t=>t.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1)}function Tu(e,t){return new Tu.Agent(e,t)}(function(e){class t extends tI.EventEmitter{constructor(o,n){super();let i=n;typeof o=="function"?this.callback=o:o&&(i=o),this.timeout=null,i&&typeof i.timeout=="number"&&(this.timeout=i.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:If()?443:80}set defaultPort(o){this.explicitDefaultPort=o}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:If()?"https:":"http:"}set protocol(o){this.explicitProtocol=o}callback(o,n,i){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(o,n){let i=Object.assign({},n);typeof i.secureEndpoint!="boolean"&&(i.secureEndpoint=If()),i.host==null&&(i.host="localhost"),i.port==null&&(i.port=i.secureEndpoint?443:80),i.protocol==null&&(i.protocol=i.secureEndpoint?"https:":"http:"),i.host&&i.path&&delete i.path,delete i.agent,delete i.hostname,delete i._defaultAgent,delete i.defaultPort,delete i.createConnection,o._last=!0,o.shouldKeepAlive=!1;let s=!1,a=null,c=i.timeout||this.timeout,l=f=>{o._hadError||(o.emit("error",f),o._hadError=!0)},u=()=>{a=null,s=!0;let f=new Error(`A "socket" was not created for HTTP request before ${c}ms`);f.code="ETIMEOUT",l(f)},p=f=>{s||(a!==null&&(clearTimeout(a),a=null),l(f))},d=f=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),nI(f)){Cs("Callback returned another Agent instance %o",f.constructor.name),f.addRequest(o,i);return}if(f){f.once("free",()=>{this.freeSocket(f,i)}),o.onSocket(f);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${o.method} ${o.path}\``);l(g)};if(typeof this.callback!="function"){l(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Cs("Converting legacy callback function to promise"),this.promisifiedCallback=oI.default(this.callback)):this.promisifiedCallback=this.callback),typeof c=="number"&&c>0&&(a=setTimeout(u,c)),"port"in i&&typeof i.port!="number"&&(i.port=Number(i.port));try{Cs("Resolving socket for %o request: %o",i.protocol,`${o.method} ${o.path}`),Promise.resolve(this.promisifiedCallback(o,i)).then(d,p)}catch(f){Promise.reject(f).catch(p)}}freeSocket(o,n){Cs("Freeing socket %o %o",o.constructor.name,n),o.destroy()}destroy(){Cs("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(Tu||(Tu={}));Cw.exports=Tu});var Iw=ie(Is=>{"use strict";var iI=Is&&Is.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Is,"__esModule",{value:!0});var sI=iI(ks()),As=sI.default("https-proxy-agent:parse-proxy-response");function aI(e){return new Promise((t,r)=>{let o=0,n=[];function i(){let p=e.read();p?u(p):e.once("readable",i)}function s(){e.removeListener("end",c),e.removeListener("error",l),e.removeListener("close",a),e.removeListener("readable",i)}function a(p){As("onclose had error %o",p)}function c(){As("onend")}function l(p){s(),As("onerror %o",p),r(p)}function u(p){n.push(p),o+=p.length;let d=Buffer.concat(n,o);if(d.indexOf(`\r
|
|
9
|
+
\r
|
|
10
|
+
`)===-1){As("have not received end of HTTP headers yet..."),i();return}let g=d.toString("ascii",0,d.indexOf(`\r
|
|
11
|
+
`)),v=+g.split(" ")[1];As("got proxy server response: %o",g),t({statusCode:v,buffered:d})}e.on("error",l),e.on("close",a),e.on("end",c),i()})}Is.default=aI});var qw=ie(ho=>{"use strict";var cI=ho&&ho.__awaiter||function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{l(o.next(u))}catch(p){s(p)}}function c(u){try{l(o.throw(u))}catch(p){s(p)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((o=o.apply(e,t||[])).next())})},Tn=ho&&ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ho,"__esModule",{value:!0});var jw=Tn(require("net")),Nw=Tn(require("tls")),lI=Tn(require("url")),uI=Tn(require("assert")),pI=Tn(ks()),dI=Aw(),mI=Tn(Iw()),js=pI.default("https-proxy-agent:agent"),Nf=class extends dI.Agent{constructor(t){let r;if(typeof t=="string"?r=lI.default.parse(t):r=t,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");js("creating new HttpsProxyAgent instance: %o",r),super(r);let o=Object.assign({},r);this.secureProxy=r.secureProxy||gI(o.protocol),o.host=o.hostname||o.host,typeof o.port=="string"&&(o.port=parseInt(o.port,10)),!o.port&&o.host&&(o.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in o)&&(o.ALPNProtocols=["http 1.1"]),o.host&&o.path&&(delete o.path,delete o.pathname),this.proxy=o}callback(t,r){return cI(this,void 0,void 0,function*(){let{proxy:o,secureProxy:n}=this,i;n?(js("Creating `tls.Socket`: %o",o),i=Nw.default.connect(o)):(js("Creating `net.Socket`: %o",o),i=jw.default.connect(o));let s=Object.assign({},o.headers),c=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
|
|
12
|
+
`;o.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(o.auth).toString("base64")}`);let{host:l,port:u,secureEndpoint:p}=r;hI(u,p)||(l+=`:${u}`),s.Host=l,s.Connection="close";for(let y of Object.keys(s))c+=`${y}: ${s[y]}\r
|
|
13
|
+
`;let d=mI.default(i);i.write(`${c}\r
|
|
14
|
+
`);let{statusCode:f,buffered:g}=yield d;if(f===200){if(t.once("socket",fI),r.secureEndpoint){js("Upgrading socket connection to TLS");let y=r.servername||r.host;return Nw.default.connect(Object.assign(Object.assign({},vI(r,"host","hostname","path","port")),{socket:i,servername:y}))}return i}i.destroy();let v=new jw.default.Socket({writable:!1});return v.readable=!0,t.once("socket",y=>{js("replaying proxy buffer for failed request"),uI.default(y.listenerCount("data")>0),y.push(g),y.push(null)}),v})}};ho.default=Nf;function fI(e){e.resume()}function hI(e,t){return!!(!t&&e===80||t&&e===443)}function gI(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function vI(e,...t){let r={},o;for(o in e)t.includes(o)||(r[o]=e[o]);return r}});var Lw=ie((Lf,Mw)=>{"use strict";var yI=Lf&&Lf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qf=yI(qw());function Mf(e){return new qf.default(e)}(function(e){e.HttpsProxyAgent=qf.default,e.prototype=qf.default.prototype})(Mf||(Mf={}));Mw.exports=Mf});var Uw=ie((x4,Dw)=>{"use strict";var Ns;Dw.exports=function(){if(!Ns){try{Ns=ks()("follow-redirects")}catch{}typeof Ns!="function"&&(Ns=function(){})}Ns.apply(null,arguments)}});var Zw=ie((w4,Yf)=>{"use strict";var Ms=require("url"),qs=Ms.URL,bI=require("http"),_I=require("https"),Vf=require("stream").Writable,Hf=require("assert"),Fw=Uw();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",o=vo(Error.captureStackTrace);!t&&(r||!o)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Zf=!1;try{Hf(new qs(""))}catch(e){Zf=e.code==="ERR_INVALID_URL"}var SI=["Authorization","Proxy-Authorization","Cookie"],xI=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Jf=["abort","aborted","connect","error","socket","timeout"],Kf=Object.create(null);Jf.forEach(function(e){Kf[e]=function(t,r,o){this._redirectable.emit(e,t,r,o)}});var Uf=Ls("ERR_INVALID_URL","Invalid URL",TypeError),Ff=Ls("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),wI=Ls("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Ff),RI=Ls("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),zI=Ls("ERR_STREAM_WRITE_AFTER_END","write after end"),EI=Vf.prototype.destroy||Vw;function Pt(e,t){Vf.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(o){try{r._processResponse(o)}catch(n){r.emit("error",n instanceof Ff?n:new Ff({cause:n}))}},this._headerFilter=new RegExp("^(?:"+SI.concat(e.sensitiveHeaders).map(CI).join("|")+")$","i"),this._performRequest()}Pt.prototype=Object.create(Vf.prototype);Pt.prototype.abort=function(){Wf(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Pt.prototype.destroy=function(e){return Wf(this._currentRequest,e),EI.call(this,e),this};Pt.prototype.write=function(e,t,r){if(this._ending)throw new zI;if(!go(e)&&!OI(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(vo(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new RI),this.abort())};Pt.prototype.end=function(e,t,r){if(vo(e)?(r=e,e=t=null):vo(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var o=this,n=this._currentRequest;this.write(e,t,function(){o._ended=!0,n.end(null,null,r)}),this._ending=!0}};Pt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Pt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Pt.prototype.setTimeout=function(e,t){var r=this;function o(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function n(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),i()},e),o(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),r.removeListener("close",i),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",o),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Pt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Pt.prototype,e,{get:function(){return this._currentRequest[e]}})});Pt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),PI(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};Pt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);o._redirectable=this;for(var n of Jf)o.on(n,Kf[n]);if(this._currentUrl=/^\//.test(this._options.path)?Ms.format(this._options):this._options.path,this._isRedirect){var i=0,s=this,a=this._requestBodyBuffers;(function c(l){if(o===s._currentRequest)if(l)s.emit("error",l);else if(i<a.length){var u=a[i++];o.finished||o.write(u.data,u.encoding,c)}else s._ended&&o.end()})()}};Pt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Wf(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new wI;var o,n=this._options.beforeRedirect;n&&(o=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Df(/^content-/i,this._options.headers));var s=Df(/^host$/i,this._options.headers),a=Gf(this._currentUrl),c=s||a.host,l=/^\w+:/.test(r)?this._currentUrl:Ms.format(Object.assign(a,{host:c})),u=TI(r,l);if(Fw("redirecting to",u.href),this._isRedirect=!0,Bf(u,this._options),(u.protocol!==a.protocol&&u.protocol!=="https:"||u.host!==c&&!$I(u.host,c))&&Df(this._headerFilter,this._options.headers),vo(n)){var p={headers:e.headers,statusCode:t},d={url:l,method:i,headers:o};n(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function Bw(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(o){var n=o+":",i=r[n]=e[o],s=t[o]=Object.create(i);function a(l,u,p){return kI(l)?l=Bf(l):go(l)?l=Bf(Gf(l)):(p=u,u=Hw(l),l={protocol:n}),vo(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=r,!go(u.host)&&!go(u.hostname)&&(u.hostname="::1"),Hf.equal(u.protocol,n,"protocol mismatch"),Fw("options",u),new Pt(u,p)}function c(l,u,p){var d=s.request(l,u,p);return d.end(),d}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Vw(){}function Gf(e){var t;if(Zf)t=new qs(e);else if(t=Hw(Ms.parse(e)),!go(t.protocol))throw new Uf({input:e});return t}function TI(e,t){return Zf?new qs(e,t):Gf(Ms.resolve(t,e))}function Hw(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Uf({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Uf({input:e.href||e});return e}function Bf(e,t){var r=t||{};for(var o of xI)r[o]=e[o];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function Df(e,t){var r;for(var o in t)e.test(o)&&(r=t[o],delete t[o]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Ls(e,t,r){function o(n){vo(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return o.prototype=new(r||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),o}function Wf(e,t){for(var r of Jf)e.removeListener(r,Kf[r]);e.on("error",Vw),e.destroy(t)}function $I(e,t){Hf(go(e)&&go(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function PI(e){return e instanceof Array}function go(e){return typeof e=="string"||e instanceof String}function vo(e){return typeof e=="function"}function OI(e){return typeof e=="object"&&"length"in e}function kI(e){return qs&&e instanceof qs}function CI(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}Yf.exports=Bw({http:bI,https:_I});Yf.exports.wrap=Bw});var vz=Object.create,ua=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,bz=Object.getOwnPropertyNames,_z=Object.getPrototypeOf,Sz=Object.prototype.hasOwnProperty,Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Eh=(e,t)=>{let r={};for(var o in e)ua(r,o,{get:e[o],enumerable:!0});return t&&ua(r,Symbol.toStringTag,{value:"Module"}),r},xz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=bz(t),i=0,s=n.length,a;i<s;i++)a=n[i],!Sz.call(e,a)&&a!==r&&ua(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(o=yz(t,a))||o.enumerable});return e},pa=(e,t,r)=>(r=e!=null?vz(_z(e)):{},xz(t||!e||!e.__esModule?ua(r,"default",{value:e,enumerable:!0}):r,e));var wz=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),Th=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),Rz=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),zz=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]);function $h(e){return typeof e=="string"&&Th.has(e.replace(/#$/,""))}function Ph(e,t){if(!("$schema"in e)||typeof e.$schema!="string")return"2020-12";let r=e.$schema.replace(/#$/,"");if(wz.has(r))return"2020-12";if(Th.has(r))return"2019-09";if(Rz.has(r)||zz.has(r))return"draft-7";throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}var Re={};la(Re,{BIGINT_FORMAT_RANGES:()=>Ih,CONSTANT_CATCH:()=>Mh,Class:()=>Lu,NUMBER_FORMAT_RANGES:()=>Ku,aborted:()=>_r,allowsEval:()=>Hu,assert:()=>Oz,assertEqual:()=>Ez,assertIs:()=>$z,assertNever:()=>Pz,assertNotEqual:()=>Tz,assignProp:()=>tt,attachSchema:()=>ha,base64ToUint8Array:()=>Nh,base64urlToUint8Array:()=>Kz,cached:()=>Io,captureStackTrace:()=>ma,cleanEnum:()=>Jz,cleanRegex:()=>ci,clone:()=>qt,cloneDef:()=>Cz,codePointLength:()=>li,constantCatch:()=>Lh,createTransparentProxy:()=>Mz,defineLazy:()=>Fu,defineLazyInternal:()=>ke,esc:()=>Bu,escapeRegex:()=>rr,explicitlyAborted:()=>Gu,extend:()=>Uz,finalizeIssue:()=>Bt,floatSafeRemainder:()=>Uu,getElementAtPath:()=>Az,getEnumValues:()=>ai,getLengthableOrigin:()=>ui,getParsedType:()=>qz,getSizableOrigin:()=>jh,hexToUint8Array:()=>Wz,hide:()=>Xu,installLazyProp:()=>tE,isObject:()=>Gr,isPlainObject:()=>br,issue:()=>jo,joinValues:()=>da,jsonStringifyReplacer:()=>Ao,members:()=>Yu,merge:()=>Bz,mergeDefs:()=>tr,normalizeParams:()=>me,nullish:()=>Du,numKeys:()=>Nz,objectClone:()=>kz,omit:()=>Dz,optionalKeys:()=>Ju,own:()=>Co,parsedType:()=>Wu,partial:()=>Vz,pick:()=>Lz,prefixIssues:()=>or,primitiveTypes:()=>Ah,promiseAllObject:()=>Iz,propertyKeyTypes:()=>Zu,randomString:()=>jz,required:()=>Hz,safeExtend:()=>Fz,shallowClone:()=>Ch,slugify:()=>Vu,stringifyPrimitive:()=>fa,toZod:()=>kh,uint8ArrayToBase64:()=>qh,uint8ArrayToBase64url:()=>Gz,uint8ArrayToHex:()=>Yz,unwrapMessage:()=>ko});function Ez(e){return e}function Tz(e){return e}function kh(){return e=>e}function $z(e){}function Pz(e){throw new Error("Unexpected value in exhaustive check")}function Oz(e){}function ai(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function da(e,t="|"){return e.map(r=>fa(r)).join(t)}function Ao(e,t){return typeof t=="bigint"?t.toString():t}function Io(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Du(e){return e==null}function ci(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Uu(e,t){let r=e/t,o=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var Oh=Symbol("evaluating");function Fu(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Oh)return o===void 0&&(o=Oh,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function kz(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function tt(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function tr(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function Cz(e){return tr(e._zod.def)}function Az(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function Iz(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function jz(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Bu(e){return JSON.stringify(e)}function Vu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ma="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Hu=Io(()=>{if(Rt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function br(e){if(Gr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Gr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Ch(e){return br(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Nz(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var qz=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Zu=new Set(["string","number","symbol"]),Ah=new Set(["string","number","bigint","boolean","symbol","undefined"]);function rr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function me(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Mz(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function fa(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ju(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Ku={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ih={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Lz(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=tr(e._zod.def,{get shape(){let s={};for(let a of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(r.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);t[a]&&tt(s,a,r.shape[a])}return tt(this,"shape",s),s},checks:[]});return qt(e,i)}function Dz(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=tr(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(r.shape,a))throw new Error(`Unrecognized key: "${String(a)}"`);t[a]&&delete s[a]}return tt(this,"shape",s),s},checks:[]});return qt(e,i)}function Uz(e,t){if(!br(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=tr(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return tt(this,"shape",i),i}});return qt(e,n)}function Fz(e,t){if(!br(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=tr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return tt(this,"shape",o),o}});return qt(e,r)}function Bz(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=tr(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return tt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return qt(e,r)}function Vz(e,t,r,o="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${o}() cannot be used on object schemas containing refinements`);let a=tr(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(r)for(let u of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(c,u))throw new Error(`Unrecognized key: "${String(u)}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:c[u]}):c[u])}else for(let u of Reflect.ownKeys(c))l[u]=e?new e({type:"optional",innerType:c[u]}):c[u];return tt(this,"shape",l),l},checks:[]});return qt(t,a)}function Hz(e,t,r){let o=tr(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let s of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(i,s))throw new Error(`Unrecognized key: "${String(s)}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:n[s]}))}else for(let s of Reflect.ownKeys(n))i[s]=new e({type:"nonoptional",innerType:n[s]});return tt(this,"shape",i),i}});return qt(t,o)}function _r(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Gu(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function or(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function ko(e){return typeof e=="string"?e:e?.message}function ha(e,t,r){var o;for(let n=t;n<e.length;n++)(o=e[n]).schema??(o.schema=r)}function Bt(e,t,r){var o;let n=e.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?(o=e).schema??(o.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:ko(e.inst?._zod.def?.error?.(e))??ko(i?.(e))??ko(t?.error?.(e))??ko(r.customError?.(e))??ko(r.localeError?.(e))??"Invalid input",{inst:a,schema:c,continue:l,input:u,...p}=e;return p.path??(p.path=[]),p.message=s,t?.reportInput&&(p.input=u),p}function jh(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Zz=/[\uD800-\uDBFF]/;function li(e){let t=e.length;if(!Zz.test(e))return t;let r=t;for(let o=0;o<t-1;o++)(e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320&&(r--,o++);return r}function ui(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Wu(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function jo(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function Jz(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Nh(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function qh(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Kz(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Nh(t+r)}function Gz(e){return qh(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Wz(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function Yz(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Lu=class{constructor(...t){}};function Yu(e,t){for(let r in t){let o=Object.getOwnPropertyDescriptor(t,r);o.get?Object.defineProperty(e,r,{...o,enumerable:!1}):Xz(e,r,o.value)}}function Co(e,t,r,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:r}),r}function Xu(e,t,r){return Co(e,t,r,!1)}function Xz(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:Co(this,t,r.bind(this))},set(o){Co(this,t,o)}})}function Qz(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var Mu,yr=!1,eE={configurable:!0,get(){yr=!0}};function ke(e,t,r){let o=Object.getPrototypeOf(e._zod);if(t in o&&Mu!==e._zod){Mu=void 0;return}Mu=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,eE);let n=yr;yr=!1;try{let i=r(this);return yr?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),yr=yr||n,i}catch(i){throw delete this[t],yr=yr||n,i}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function tE(e,t,r,o){let n=Qz(e,t);n&&Object.defineProperty(n,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,i),i.value=r(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:i})}})}var Mh="~constantCatch";function Lh(e){let t=()=>e;return t[Mh]=!0,t}var Dh,ep=Object.freeze({status:"aborted"}),Qu={value:void 0,enumerable:!1},Uh="captureStackTrace"in Error?Error:null;function rE(e){let t=Uh;if(t){let r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return Uh=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function L(e,t,r,o){let n={};function i(d){this.def=d,this.constr=p,this.traits=new Set}i.prototype=n;let s=r,a=s&&new WeakSet;function c(d,f){if(!d._zod){Qu.value=new i(f);try{Object.defineProperty(d,"_zod",Qu)}finally{Qu.value=void 0}}if(d._zod.traits.has(e))return;if(d._zod.traits.add(e),t(d,f),a){let v=Object.getPrototypeOf(d),y=d._zod.constr.prototype,m=v;for(;m&&m!==y;)m=Object.getPrototypeOf(m);let b=m??v;a.has(b)||(a.add(b),Yu(b,s))}let g=p.prototype;for(let v in g)Object.prototype.hasOwnProperty.call(g,v)&&(v in d||(d[v]=g[v].bind(d)))}let l=o?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function p(d){let f=o?.Parent?rE(u):this;c(f,d);let g=f._zod.deferred;if(g){for(let y of g)y();f._zod.deferred=void 0}let v=globalThis.__zod_globalConfig?.postProcessor;return v&&v(f),f}return Object.defineProperty(p,"init",{value:c}),Object.defineProperty(p,Symbol.hasInstance,{value:d=>o?.Parent&&d instanceof o.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(p,"name",{value:e}),p}var Yt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},No=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Dh=globalThis).__zod_globalConfig??(Dh.__zod_globalConfig={});var Rt=globalThis.__zod_globalConfig;function zt(e){return e&&Object.assign(Rt,e),Rt}function oE(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Ao,2)),e.message}function nE(e){this._zod.message=e}var iE={get:oE,set:nE,enumerable:!0,configurable:!0},rp={value:void 0,enumerable:!1},op={value:void 0,enumerable:!1},Fh=new WeakSet([Object.prototype,Error.prototype]),Bh=(e,t)=>{e.name="$ZodError",rp.value=e._zod,Object.defineProperty(e,"_zod",rp),op.value=t,Object.defineProperty(e,"issues",op),rp.value=void 0,op.value=void 0,Object.defineProperty(e,"message",iE);let r=Object.getPrototypeOf(e);Fh.has(r)||(Fh.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}}))},ga=L("$ZodError",Bh),np=L("$ZodError",Bh,void 0,{Parent:Error});function sE(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[t]=r()),e[t]}function ip(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?sE(r,n.path[0],()=>[]).push(t(n)):o.push(t(n));return{formErrors:o,fieldErrors:r}}function sp(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)r._errors.push(t(s));else{let c=r,l=0;for(;l<a.length;){let u=a[l],p=l===a.length-1;if(u==="_errors"){p&&c._errors.push(t(s)),l++;continue}Object.prototype.hasOwnProperty.call(c,u)||Object.defineProperty(c,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let d=c[u];p&&d._errors.push(t(s)),c=d,l++}}}};return o(e),r}function va(e,t){return{callee:t?.callee??e,Err:t?.Err}}var ya=e=>{let t=(r,o,n,i)=>{let s=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},s);if(a instanceof Promise)throw new Yt;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(l=>Bt(l,s,zt())));throw ma(c,i?.callee??t),c}return a.value};return t};var ba=e=>{let t=async(r,o,n,i)=>{let s=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:o,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(l=>Bt(l,s,zt())));throw ma(c,i?.callee??t),c}return a.value};return t};var pi=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Yt;return i.issues.length?{success:!1,error:new(e??ga)(i.issues.map(s=>Bt(s,n,zt())))}:{success:!0,data:i.value}},Vh=pi(np),di=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Bt(s,n,zt())))}:{success:!0,data:i.value}},Hh=di(np);var Zh=e=>{let t=ya(e),r=(o,n,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,n,a,va(r,s))};return r};var Jh=e=>{let t=ya(e),r=(o,n,i,s)=>t(o,n,i,va(r,s));return r};var Kh=e=>{let t=ba(e),r=async(o,n,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,n,a,va(r,s))};return r};var Gh=e=>{let t=ba(e),r=async(o,n,i,s)=>await t(o,n,i,va(r,s));return r};var Wh=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return pi(e)(t,r,n)};var Yh=e=>(t,r,o)=>pi(e)(t,r,o);var Xh=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return di(e)(t,r,n)};var Qh=e=>async(t,r,o)=>di(e)(t,r,o);var eg=/^[cC][0-9a-z]{6,}$/,tg=/^[0-9a-z]+$/,rg=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,og=/^[0-9a-vA-V]{20}$/,ng=/^[A-Za-z0-9]{27}$/,ig=/^[a-zA-Z0-9_-]{21}$/;function sg(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var ag=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var cg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,cp=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var lg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var cE="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function ug(){return new RegExp(cE,"u")}var pg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var mg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,fg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lp=/^[A-Za-z0-9_-]*$/;var gg=/^https?$/,vg=/^\+[1-9]\d{6,14}$/;var yg="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function lE(e){return new RegExp(`^${e}$`)}var bg=lE(yg);function ap(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _g(e){return new RegExp(`^${ap(e)}$`)}function Sg(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${ap({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${r}|${ap({precision:e.precision})}`:r;return new RegExp(`^${yg}T(?:${o})$`)}var xg=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},wg=/^-?\d+n?$/,_a=/^-?\d+$/,mi=/^-?\d+(?:\.\d+)?$/,Rg=/^(?:true|false)$/i,zg=/^null$/i;var Eg=/^[^A-Z]*$/,Tg=/^[^a-z]*$/;var dt=L("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var up=e=>{let t=e.value;return!Du(t)&&t.length!==void 0},Sa={number:"number",bigint:"bigint",object:"date"},pp=L("$ZodCheckLessThan",(e,t)=>{dt.init(e,t);let r=Sa[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:Sa[typeof o.value]??r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),dp=L("$ZodCheckGreaterThan",(e,t)=>{dt.init(e,t);let r=Sa[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:Sa[typeof o.value]??r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$g=L("$ZodCheckMultipleOf",(e,t)=>{dt.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):Uu(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Pg=L("$ZodCheckNumberFormat",(e,t)=>{dt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Ku[t.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=t.format,a.minimum=n,a.maximum=i,r&&(a.pattern=_a)}),e._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}});var Og=L("$ZodCheckMaxLength",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=up),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value,i=n.length;if((typeof n=="string"&&i>t.maximum?li(n):i)<=t.maximum)return;let a=ui(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),kg=L("$ZodCheckMinLength",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=up),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value,i=n.length;if((typeof n=="string"&&i>=t.minimum&&i<t.minimum*2?li(n):i)>=t.minimum)return;let a=ui(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Cg=L("$ZodCheckLengthEquals",(e,t)=>{var r;dt.init(e,t),(r=e._zod.def).when??(r.when=up),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length,s=typeof n=="string"&&i>=t.length&&i<=t.length*2?li(n):i;if(s===t.length)return;let a=ui(n),c=s>t.length;o.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),fi=L("$ZodCheckStringFormat",(e,t)=>{var r,o;dt.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ag=L("$ZodCheckRegex",(e,t)=>{fi.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ig=L("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Eg),fi.init(e,t)}),jg=L("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Tg),fi.init(e,t)}),Ng=L("$ZodCheckIncludes",(e,t)=>{dt.init(e,t);let r=rr(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position},}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),qg=L("$ZodCheckStartsWith",(e,t)=>{dt.init(e,t);let r=new RegExp(`^${rr(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Mg=L("$ZodCheckEndsWith",(e,t)=>{dt.init(e,t);let r=new RegExp(`.*${rr(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});var Lg=L("$ZodCheckOverwrite",(e,t)=>{dt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var xa=class{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
15
|
+
`).filter(s=>s),n=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let t=Function,r=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
16
|
+
${r.join(`
|
|
17
|
+
`)}
|
|
18
|
+
};`)(...Object.values(this.closed))}};var Ug={major:4,minor:5,patch:4};var qe=L("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ug;let o=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let i of n)for(let s of i._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,l)=>{if(a.memo)return a;let u=_r(a),p;for(let d of c){if(d._zod.def.when){if(Gu(a)||!d._zod.def.when(a))continue}else if(u)continue;let f=a.issues.length,g=d._zod.check(a);if(g instanceof Promise&&l?.async===!1)throw new Yt;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(ha(a.issues,f,e),u||(u=_r(a,f)))});else{if(a.issues.length===f)continue;ha(a.issues,f,e),u||(u=_r(a,f))}}return p?p.then(()=>a):a},s=(a,c,l)=>{if(_r(a))return a.aborted=!0,a;let u=i(c,n,l);if(u instanceof Promise){if(l.async===!1)throw new Yt;return u.then(p=>e._zod.parse(p,l))}return e._zod.parse(u,l)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return u instanceof Promise?u.then(p=>s(p,a,c)):s(u,a,c)}let l=e._zod.parse(a,c);if(l instanceof Promise){if(c.async===!1)throw new Yt;return l.then(u=>i(u,n,c))}return i(l,n,c)}}},{get"~standard"(){return Xu(this,"~standard",hp(this))},set"~standard"(e){Co(this,"~standard",e)}}),Fg=e=>e.success?{value:e.data}:{issues:e.error?.issues};function hp(e){return{validate:t=>{try{return Fg(Vh(e,t))}catch{return Hh(e,t).then(Fg)}},vendor:"zod",version:1}}var za=L("$ZodString",(e,t)=>{qe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xg(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),He=L("$ZodStringFormat",(e,t)=>{fi.init(e,t),za.init(e,t)}),Xg=L("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=cg),He.init(e,t)}),Qg=L("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=cp(o))}else t.pattern??(t.pattern=cp());He.init(e,t)}),ev=L("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=lg),He.init(e,t)}),tv=1,rv=2;function uE(e,t){if(!t.normalize&&t.protocol?.source===gg.source&&!/^https?:\/\//i.test(e))return tv;try{return new URL(e)}catch{return rv}}var pE=/[\t\n\r]/g;function dE(e){return e.replace(pE,"")}function mE(e,t){return t.lastIndex=0,t.test(e.hostname)}function fE(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var ov=L("$ZodURL",(e,t)=>{He.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=uE(o,t);if(n===tv){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===rv){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}t.hostname&&!mE(n,t.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort}),t.protocol&&!fE(n,t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort}),r.value=t.normalize?n.href:dE(o);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),nv=L("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ug()),He.init(e,t)}),iv=L("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?ig:sg(t.length)),He.init(e,t)}),sv=L("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=eg),He.init(e,t)}),av=L("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=tg),He.init(e,t)}),cv=L("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rg),He.init(e,t)}),lv=L("$ZodXID",(e,t)=>{t.pattern??(t.pattern=og),He.init(e,t)}),uv=L("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ng),He.init(e,t)}),pv=L("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Sg(t)),He.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(r=>{r._zod.bag.laxFormat=!0}))}),dv=L("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bg),He.init(e,t)}),mv=L("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_g(t)),He.init(e,t)}),fv=L("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ag),He.init(e,t)}),hv=L("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=pg),He.init(e,t),e._zod.bag.format="ipv4"}),hE=/^[0-9a-fA-F:.]+$/;function gv(e){if(!hE.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var vv=L("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=dg),He.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{gv(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}});var yv=L("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=mg),He.init(e,t)});function gE(e){let t=e.split("/");if(t.length!==2)return!1;let[r,o]=t;if(!o)return!1;let n=Number(o);return`${n}`!==o||n<0||n>128?!1:gv(r)}var bv=L("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=fg),He.init(e,t),e._zod.check=r=>{gE(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function _v(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Sv=L("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=hg),He.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{_v(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function vE(e){if(!lp.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return _v(r)}var xv=L("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lp),He.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{vE(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),wv=L("$ZodE164",(e,t)=>{t.pattern??(t.pattern=vg),He.init(e,t)});function yE(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Rv=L("$ZodJWT",(e,t)=>{He.init(e,t),e._zod.check=r=>{yE(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}});var gp=L("$ZodNumber",(e,t)=>{qe.init(e,t),e._zod.pattern=e._zod.bag.pattern??mi,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:String(n):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),zv=L("$ZodNumberFormat",(e,t)=>{Pg.init(e,t),gp.init(e,t)}),Ev=L("$ZodBoolean",(e,t)=>{qe.init(e,t),e._zod.pattern=Rg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Tv=L("$ZodBigInt",(e,t)=>{qe.init(e,t),e._zod.pattern=wg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var $v=L("$ZodNull",(e,t)=>{qe.init(e,t),e._zod.pattern=zg,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Pv=L("$ZodAny",(e,t)=>{qe.init(e,t),e._zod.parse=r=>r}),Ov=L("$ZodUnknown",(e,t)=>{qe.init(e,t),e._zod.parse=r=>r}),kv=L("$ZodNever",(e,t)=>{qe.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});var Cv=L("$ZodDate",(e,t)=>{qe.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Bg(e,t,r){e.issues.length&&t.issues.push(...or(r,e.issues)),t.value[r]=e.value}var Av=L("$ZodArray",(e,t)=>{qe.init(e,t);let r=Rt.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=r?r.alloc(e,o,Array(i.length),n):Array(i.length);let s=[];for(let a=0;a<i.length;a++){let c=i[a],l=t.element._zod.run({value:c,issues:[]},n);l instanceof Promise?s.push(l.then(u=>Bg(u,o,a))):Bg(l,o,a)}return s.length?Promise.all(s).then(()=>o):o}});function Ra(e,t,r,o,n,i){let s=r in o,a=i==="optional";if(!(!s&&a&&n==="optional")){if(e.issues.length){if(n!==void 0&&a&&!s)return;t.issues.push(...or(r,e.issues))}if(!s&&n===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?s&&(t.value[r]=void 0):t.value[r]=e.value}}var bE=[];function Iv(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),o=r.length?r:bE,n=o.length?[...t,...o]:t;for(let s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=Ju(e.shape);return{...e,allKeys:n,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function jv(e,t,r,o,n,i){let s=[],a=n.keySet,c=n.catchall._zod,l=c.def.type,u=c.optin,p=c.optout;for(let d in t){if(a.has(d))continue;if(d==="__proto__"){l==="never"&&s.push(d);continue}if(l==="never"){s.push(d);continue}let f=c.run({value:t[d],issues:[]},o);f instanceof Promise?e.push(f.then(g=>Ra(g,r,d,t,u,p))):Ra(f,r,d,t,u,p)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var mp=new WeakMap,_E=L("$ZodObject",(e,t)=>{if(qe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;mp.set(t,c),Object.defineProperty(t,"shape",{get:()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),mp.set(t,l),l}})}let o=Io(()=>Iv(t));ke(e,"propValues",c=>{let l=c.def.shape,u={};for(let p in l){let d=l[p]._zod;if(d.values){Object.prototype.hasOwnProperty.call(u,p)||tt(u,p,new Set);for(let f of d.values)u[p].add(f);d.optin!==void 0&&u[p].add(void 0)}}return u});let n=Gr,i=t.catchall,s,a=Rt.memoizer;a?.attach(e),e._zod.parse=(c,l)=>{s??(s=o.value);let u=c.value;if(!n(u))return c.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),c;c.value=a?a.alloc(e,c,{},l):{};let p=[],d=s.shape;for(let f of s.allKeys){if(f==="__proto__")continue;let g=d[f],v=g._zod.optin,y=g._zod.optout,m=g._zod.run({value:u[f],issues:[]},l);m instanceof Promise?p.push(m.then(b=>Ra(b,c,f,u,v,y))):Ra(m,c,f,u,v,y)}return i?jv(p,u,c,l,o.value,e):p.length?Promise.all(p).then(()=>c):c}}),Nv=L("$ZodObjectJIT",(e,t)=>{_E.init(e,t);let r=e._zod.parse,o=Io(()=>Iv(t)),n=Rt.memoizer,i=f=>{let g=o.value,v=g.symbolKeys,y=new xa(["payload","ctx"],{shape:f,inst:e,memo:n,syms:v}),m=z=>`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`,b=(z,S)=>`
|
|
19
|
+
for (let i = 0; i < ${z}.issues.length; i++) {
|
|
20
|
+
const iss = ${z}.issues[i];
|
|
21
|
+
iss.path = iss.path ? [${S}, ...iss.path] : [${S}];
|
|
22
|
+
payload.issues.push(iss);
|
|
23
|
+
}`;y.write("const input = payload.value;");let _=Object.create(null),w=0;for(let z of g.allKeys)_[z]=`key_${w++}`;y.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let z of g.allKeys){if(z==="__proto__")continue;let S=_[z],x=typeof z=="symbol"?`syms[${v.indexOf(z)}]`:Bu(z),T=`${x} in input`,j=f[z],V=j?._zod?.optin,C=V!==void 0,B=j?._zod?.optout==="optional";if(y.write(`const ${S} = ${m(x)};`),C&&B){let Y=V==="optional"?`${S}_present`:`${S}.value !== undefined || ${S}_present`;y.write(`
|
|
24
|
+
const ${S}_present = ${T};
|
|
25
|
+
if (!${S}.issues.length || ${S}_present) {
|
|
26
|
+
if (${S}.issues.length) {${b(S,x)}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (${Y}) {
|
|
30
|
+
newResult[${x}] = ${S}.value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
`)}else C?y.write(`
|
|
35
|
+
if (${S}.issues.length) {${b(S,x)}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (${S}.value === undefined) {
|
|
39
|
+
if (${T}) {
|
|
40
|
+
newResult[${x}] = undefined;
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
newResult[${x}] = ${S}.value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
`):y.write(`
|
|
47
|
+
const ${S}_present = ${T};
|
|
48
|
+
if (${S}.issues.length) {${b(S,x)}
|
|
49
|
+
}
|
|
50
|
+
if (!${S}_present && !${S}.issues.length) {
|
|
51
|
+
payload.issues.push({
|
|
52
|
+
code: "invalid_type",
|
|
53
|
+
expected: "nonoptional",
|
|
54
|
+
input: undefined,
|
|
55
|
+
path: [${x}]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (${S}_present) {
|
|
60
|
+
newResult[${x}] = ${S}.value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
`)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},s,a=Gr,c=!Rt.jitless,u=c&&Hu.value,p=t.catchall,d;e._zod.parse=(f,g)=>{d??(d=o.value);let v=f.value;return a(v)?c&&u&&g?.async===!1&&g.jitless!==!0?(s||(s=i(t.shape)),f=s(f,g),p?jv([],v,f,g,d,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function Vg(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!_r(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>Bt(s,o,zt())))}),t)}var vp=L("$ZodUnion",(e,t)=>{qe.init(e,t),ke(e,"optin",o=>o.def.options.some(n=>n._zod.optin==="defaulted")?"defaulted":o.def.options.some(n=>n._zod.optin!==void 0)?"optional":void 0),ke(e,"optout",o=>o.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ke(e,"values",o=>{if(o.def.options.every(n=>n._zod.values))return new Set(o.def.options.flatMap(n=>Array.from(n._zod.values)))}),ke(e,"pattern",o=>{if(o.def.options.every(n=>n._zod.pattern)){let n=o.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>ci(i.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:o.value,issues:[]},n);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>Vg(a,o,e,n)):Vg(s,o,e,n)}});var qv=L("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,vp.init(e,t);let r=e._zod.parse;ke(e,"propValues",n=>{let i={};for(let s of n.def.options){let a=s._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(s)}"`);for(let[c,l]of Object.entries(a)){Object.prototype.hasOwnProperty.call(i,c)||tt(i,c,new Set);for(let u of l)i[c].add(u)}}return i}),t.options.forEach((n,i)=>{let s=mp.get(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let o=Io(()=>{let n=t.options,i=new Map;for(let s of n){let a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let c of a){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});e._zod.parse=(n,i)=>{let s=n.value;if(!Gr(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let a=o.value.get(s?.[t.discriminator]);return a?a._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:s,path:[t.discriminator],inst:e}),n)}}),Mv=L("$ZodIntersection",(e,t)=>{qe.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),s=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,l])=>Hg(r,c,l)):Hg(r,i,s)}});function fp(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(br(e)&&br(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(let i of o){if(i==="__proto__")continue;let s=fp(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],s=fp(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Hg(e,t,r){let o=new Map,n,i=new Map,s=(l,u)=>{let p;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),p=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let d=String(l.path[0]);i.has(d)||i.set(d,l),p=[d]}else return!1;for(let d of p)o.has(d)||o.set(d,{}),o.get(d)[u]=!0;return!0};for(let l of t.issues)s(l,"l")||e.issues.push(l);for(let l of r.issues)s(l,"r")||e.issues.push(l);let a=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length){let l=n?a.filter(u=>n.keys.includes(u)):[];l.length&&e.issues.push({...n,keys:l});for(let u of a)!l.includes(u)&&i.has(u)&&e.issues.push(i.get(u))}let c=fp(t.value,r.value);if(!c.valid){if(_r(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Lv=L("$ZodRecord",(e,t)=>{qe.init(e,t);let r=Rt.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!br(i))return o.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),o;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){o.value=r?r.alloc(e,o,{},n):{};let c=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(c.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let p=t.keyType._zod.run({value:u,issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(g=>Bt(g,n,zt())),input:u,path:[u],inst:e});continue}let d=p.value;if(d==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},n);f instanceof Promise?s.push(f.then(g=>{g.issues.length&&o.issues.push(...or(u,g.issues)),o.value[d]=g.value})):(f.issues.length&&o.issues.push(...or(u,f.issues)),o.value[d]=f.value)}let l;for(let u in i)if(!c.has(u))if(t.mode==="loose"){if(u==="__proto__")continue;o.value[u]=i[u]}else l=l??[],l.push(u);l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}else{o.value=r?r.alloc(e,o,{},n):{};let c;for(let l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let u=t.keyType._zod.run({value:l,issues:[]},n);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&mi.test(l)&&u.issues.length){let g=t.keyType._zod.run({value:Number(l),issues:[]},n);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(u=g)}if(u.issues.length){t.mode==="loose"?o.value[l]=i[l]:a?(c=c??[],c.push(l)):o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(g=>Bt(g,n,zt())),input:l,path:[l],inst:e});continue}let d=u.value;if(d==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},n);f instanceof Promise?s.push(f.then(g=>{g.issues.length&&o.issues.push(...or(l,g.issues)),o.value[d]=g.value})):(f.issues.length&&o.issues.push(...or(l,f.issues)),o.value[d]=f.value)}c&&c.length>0&&o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>o):o}});var Dv=L("$ZodEnum",(e,t)=>{qe.init(e,t);let r=ai(t.entries),o=new Set(r);e._zod.values=o;let n=r.filter(i=>Zu.has(typeof i));e._zod.pattern=new RegExp(n.length?`^(${n.map(i=>rr(i.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(i,s)=>{let a=i.value;return o.has(a)||i.issues.push({code:"invalid_value",values:r,input:a,inst:e}),i}}),Uv=L("$ZodLiteral",(e,t)=>{qe.init(e,t);let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(t.values.length?`^(${t.values.map(o=>typeof o=="string"?rr(o):o?rr(o.toString()):String(o)).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}});var Fv=L("$ZodTransform",(e,t)=>{qe.init(e,t),e._zod.optin="optional",Rt.memoizer?.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new No(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Yt;return r.value=n,r}});function Zg(e,t){return e.value=t.issues.length?void 0:t.value,e}var yp=L("$ZodOptional",(e,t)=>{qe.init(e,t),ke(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",ke(e,"values",r=>{let o=r.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),ke(e,"pattern",r=>{let o=r.def.innerType._zod.pattern;return o?new RegExp(`^(${ci(o.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let n=t.innerType._zod.run({value:r.value,issues:[]},o);return n instanceof Promise?n.then(i=>Zg(r,i)):Zg(r,n)}return t.innerType._zod.run(r,o)}}),Bv=L("$ZodExactOptional",(e,t)=>{yp.init(e,t),ke(e,"values",r=>r.def.innerType._zod.values),ke(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Vv=L("$ZodNullable",(e,t)=>{qe.init(e,t),ke(e,"optin",r=>r.def.innerType._zod.optin),ke(e,"optout",r=>r.def.innerType._zod.optout),ke(e,"pattern",r=>{let o=r.def.innerType._zod.pattern;return o?new RegExp(`^(${ci(o.source)}|null)$`):void 0}),ke(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),Hv=L("$ZodDefault",(e,t)=>{qe.init(e,t),e._zod.optin="defaulted",ke(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Jg(i,t)):Jg(n,t)}});function Jg(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Zv=L("$ZodPrefault",(e,t)=>{qe.init(e,t),e._zod.optin="defaulted",ke(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),Jv=L("$ZodNonOptional",(e,t)=>{qe.init(e,t),ke(e,"values",r=>{let o=r.def.innerType._zod.values;return o?new Set([...o].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Kg(i,e)):Kg(n,e)}});function Kg(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function Gg(e,t,r,o){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(n=>Bt(n,o,zt()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Kv=L("$ZodCatch",(e,t)=>{qe.init(e,t),ke(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),ke(e,"optout",r=>r.def.innerType._zod.optout),ke(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run({value:r.value,issues:[]},o);return n instanceof Promise?n.then(i=>Gg(r,i,t,o)):Gg(r,n,t,o)}});var bp=L("$ZodPipe",(e,t)=>{qe.init(e,t),ke(e,"values",r=>r.def.in._zod.values),ke(e,"optin",r=>r.def.in._zod.optin),ke(e,"optout",r=>r.def.out._zod.optout),ke(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(s=>wa(s,t.in,o)):wa(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>wa(i,t.out,o)):wa(n,t.out,o)}});function wa(e,t,r){return e.issues.some(o=>o.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Gv=L("$ZodPreprocess",(e,t)=>{bp.init(e,t)}),Wv=L("$ZodReadonly",(e,t)=>{qe.init(e,t),ke(e,"propValues",r=>r.def.innerType._zod.propValues),ke(e,"values",r=>r.def.innerType._zod.values),ke(e,"optin",r=>r.def.innerType?._zod?.optin),ke(e,"optout",r=>r.def.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(Wg):Wg(n)}});function Wg(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Yv=L("$ZodLazy",(e,t)=>{qe.init(e,t),Fu(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ke(e,"pattern",r=>r.innerType?._zod?.pattern),ke(e,"propValues",r=>r.innerType?._zod?.propValues),ke(e,"optin",r=>r.innerType?._zod?.optin??void 0),ke(e,"optout",r=>r.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Xv=L("$ZodCustom",(e,t)=>{dt.init(e,t),qe.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>Yg(i,r,o,e));Yg(n,r,o,e)}});function Yg(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(jo(n))}}var Sp=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},xp="~memo",Qv=[];function _p(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var ey=new WeakMap;function ty(e,t){let r=ey.get(e);if(r!==void 0)return r;if(t.has(e))return!0;t.add(e);let o=!1,n=a=>{!o&&a?._zod&&ty(a,t)&&(o=!0)},i=e._zod.def,s=i.type;switch(s){case"object":{for(let a of Reflect.ownKeys(i.shape))n(i.shape[a]);n(i.catchall);break}case"array":n(i.element);break;case"tuple":for(let a of i.items)n(a);n(i.rest);break;case"record":case"map":n(i.keyType),n(i.valueType);break;case"set":n(i.valueType);break;case"union":for(let a of i.options)n(a);break;case"intersection":n(i.left),n(i.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":n(i.innerType);break;case"pipe":n(i.in),n(i.out);break;case"function":n(i.input),n(i.output);break;case"lazy":n(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let a in i){let c=Object.getOwnPropertyDescriptor(i,a);if(!c||c.get)continue;let l=c.value;if(!(!l||typeof l!="object")){if(l._zod)n(l);else if(Array.isArray(l))for(let u of l)n(u)}}}return t.delete(e),ey.set(e,o),o}function SE(e,t){let r=e.buckets.get(t);return r||(r=new Map,e.buckets.set(t,r)),r}var Ea,Ta=[],xE={alloc(e,t,r){let o=Ea;if(!o)return r;Ea=void 0;let n={value:r,issues:null};return o.set(t.value,n),Ta.push(n),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,o=(n,i)=>{if(i.direction!=="backward"&&wE(i,n.value))throw new Sp;return r(n,i)};e._zod.parse=o,e._zod.run===r&&(e._zod.run=o)})},attach(e){var t;let r,o,n;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let i=e._zod.parse,s=(a,c)=>{if(r===void 0&&(r=ty(e,new Set),!r))return e._zod.parse=i,e._zod.run===s&&(e._zod.run=i),i(a,c);let l=a.value;if(l===null||typeof l!="object")return i(a,c);let u=c[xp];u||(u={buckets:new Map,backEdges:void 0},c[xp]=u);let p;o===c?p=n:(p=SE(u,e),o=c,n=p);let d=p.get(l);if(d)return a.value=d.value,d.issues?d.issues.length&&a.issues.push(..._p(d.issues)):(a.memo=!0,u.backEdges??(u.backEdges=new Set),u.backEdges.add(d.value)),a;Ea=p;let f=Ta.length,g=i(a,c);Ea=void 0;let v=Ta.length>f?Ta.pop():void 0;return g instanceof Promise?g.then(y=>(v&&(v.issues=y.issues.length?_p(y.issues):Qv),y)):(v&&(v.issues=g.issues.length?_p(g.issues):Qv),g)};e._zod.parse=s,e._zod.run===i&&(e._zod.run=s)})}};function wp(){return xE}function wE(e,t){let r=e[xp]?.backEdges;return r!==void 0&&t!==null&&typeof t=="object"&&r.has(t)}var RE=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};function n(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):o[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=n(i.expected),a=Wu(i.input),c=n(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${fa(i.values[0])}`:`Invalid option: expected one of ${da(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${da(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function ry(){return{localeError:RE()}}var oy;var Rp=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ny(){return new Rp}(oy=globalThis).__zod_globalRegistry??(oy.__zod_globalRegistry=ny());var Sr=globalThis.__zod_globalRegistry;function iy(e,t){return new e({type:"string",...me(t)})}function sy(e,t){return new e({type:"string",coerce:!0,...me(t)})}function zp(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...me(t)})}function ay(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...me(t)})}function cy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...me(t)})}function ly(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...me(t)})}function uy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...me(t)})}function py(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...me(t)})}function Ep(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...me(t)})}function dy(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...me(t)})}function my(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...me(t)})}function fy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...me(t)})}function hy(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...me(t)})}function gy(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...me(t)})}function vy(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...me(t)})}function yy(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...me(t)})}function by(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...me(t)})}function _y(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...me(t)})}function Sy(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...me(t)})}function xy(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...me(t)})}function wy(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...me(t)})}function Ry(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...me(t)})}function zy(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...me(t)})}function Ey(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...me(t)})}function $a(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...me(t)})}function Pa(e,t){return new e({type:"string",format:"date",check:"string_format",...me(t)})}function Oa(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...me(t)})}function ka(e,t){return new e({type:"string",format:"duration",check:"string_format",...me(t)})}function Ty(e,t){return new e({type:"number",checks:[],...me(t)})}function $y(e,t){return new e({type:"number",coerce:!0,checks:[],...me(t)})}function Py(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...me(t)})}function Oy(e,t){return new e({type:"boolean",...me(t)})}function ky(e,t){return new e({type:"boolean",coerce:!0,...me(t)})}function Cy(e,t){return new e({type:"bigint",coerce:!0,...me(t)})}function Ay(e,t){return new e({type:"null",...me(t)})}function Iy(e){return new e({type:"any"})}function jy(e){return new e({type:"unknown"})}function Ny(e,t){return new e({type:"never",...me(t)})}function qy(e,t){return new e({type:"date",coerce:!0,...me(t)})}function Mo(e,t){return new pp({check:"less_than",...me(t),value:e,inclusive:!1})}function nr(e,t){return new pp({check:"less_than",...me(t),value:e,inclusive:!0})}function Lo(e,t){return new dp({check:"greater_than",...me(t),value:e,inclusive:!1})}function ir(e,t){return new dp({check:"greater_than",...me(t),value:e,inclusive:!0})}function hi(e,t){return new $g({check:"multiple_of",...me(t),value:e})}function Ca(e,t){return new Og({check:"max_length",...me(t),maximum:e})}function Do(e,t){return new kg({check:"min_length",...me(t),minimum:e})}function Aa(e,t){return new Cg({check:"length_equals",...me(t),length:e})}function Tp(e,t){return new Ag({check:"string_format",format:"regex",...me(t),pattern:e})}function $p(e){return new Ig({check:"string_format",format:"lowercase",...me(e)})}function Pp(e){return new jg({check:"string_format",format:"uppercase",...me(e)})}function Op(e,t){return new Ng({check:"string_format",format:"includes",...me(t),includes:e})}function kp(e,t){return new qg({check:"string_format",format:"starts_with",...me(t),prefix:e})}function Cp(e,t){return new Mg({check:"string_format",format:"ends_with",...me(t),suffix:e})}function xr(e){return new Lg({check:"overwrite",tx:e})}function Ap(e){return xr(t=>t.normalize(e))}function Ip(){return xr(e=>e.trim())}function jp(){return xr(e=>e.toLowerCase())}function Np(){return xr(e=>e.toUpperCase())}function qp(){return xr(e=>Vu(e))}function My(e,t,r){return new e({type:"array",element:t,...me(r)})}function Ly(e,t,r){return new e({type:"custom",check:"custom",fn:t,...me(r)})}function Dy(e,t){let r=zE(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(jo(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(jo(i))}},e(o.value,o)),t);return r}function zE(e,t){let r=new dt({check:"custom",...me(t)});return r._zod.check=e,r}function gi(e,...t){for(let r of t)for(let o of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,o)&&tt(e,o,r[o]);return e}function yi(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Sr,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function nt(e,t,r,o,n){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:o.path,message:n}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(n);return Object.assign(r,i),!0}function Ue(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{let d=s.schema,f=t.processors[n.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);f(e,t,d,u)}let p=e._zod.parent;p&&(s.ref||(s.ref=p),Ue(p,t,u),t.seen.get(p).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&gi(s.schema,c),t.io==="input"&&bt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Uy(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function bi(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let o=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=o.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(a,s[0])}}let n=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(s[0])?.id,d=e.external.uri??(g=>g);if(p)return{ref:d(p)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${d("__shared")}#/${a}/${Uy(f)}`}}let c="#",l=`${c}/${a}/`;if(s[1]===r&&!s[1].schema.id)return{ref:c};let u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+Uy(u)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:l}=n(s);a.def={...a.schema},l&&(a.defId=l);let u=a.schema;for(let p in u)delete u[p];u.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
64
|
+
|
|
65
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Vy(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let o of t){if(!o||typeof o!="object")return;Vy(o);let n=Object.keys(o);if(n.length!==1||n[0]!=="type")return;let i=o.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;r.includes(s)||r.push(s)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var Hy=new Set(["type","properties","required","additionalProperties"]),Fy=["oneOf","anyOf"];function By(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Mp(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!Hy.has(s))return null;t.push(i)}let r={},o=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let a=[];for(let l of t){let u=l.properties?.[s]??By(l);u!=null&&(a.some(p=>JSON.stringify(p)===JSON.stringify(u))||a.push(u))}let c=a.length===1?a[0]:Mp(a)??{allOf:a};tt(r,s,c)}for(let s of i.required??[])o.add(s)}let n={type:"object",properties:r};if(o.size&&(n.required=[...o]),t.every(i=>i.additionalProperties===!1))n.additionalProperties=!1;else{let i=[];for(let s of t){let a=By(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?n.additionalProperties=i[0]:i.length>1&&(n.additionalProperties={allOf:i})}return n}function EE(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of Hy)if(n in e)return;let r=t.filter(n=>Fy.some(i=>Array.isArray(n[i]))),o=null;if(!r.length)o=Mp(t);else{let n=r[0],i=Fy.find(c=>Array.isArray(n[c]));if(Object.keys(n).length!==1)return;let s=t.filter(c=>c!==n),a=n[i].map(c=>Mp([...s,c]));if(a.some(c=>!c))return;o={[i]:a}}o&&(delete e.allOf,gi(e,o))}function _i(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let c=e.seen.get(a);if(c.ref===null)return;let l=c.def??c.schema,u={...l},p=c.ref;if(c.ref=null,p){o(p);let f=e.seen.get(p),g=f.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(g)):gi(l,g),gi(l,u),a._zod.parent===p)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(g.$ref&&f.def)for(let y in l)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(l[y])===JSON.stringify(f.def[y])&&delete l[y]}let d=a._zod.parent;if(d&&d!==p){o(d);let f=e.seen.get(d);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let g in l)g==="$ref"||g==="allOf"||g in f.def&&JSON.stringify(l[g])===JSON.stringify(f.def[g])&&delete l[g]}e.override({zodSchema:a,jsonSchema:l,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())o(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())Vy(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let l of[c.schema,c.def]){let u=l?.allOf;if(!Array.isArray(u))continue;let p=a.get(u);p?p.push(l):a.set(u,[l])}for(let c of e.intersections)for(let l of a.get(c)??[])EE(l)}}let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}gi(n,r.defId?r.schema:r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,tt(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:vi(t,"input",e.processors),output:vi(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function bt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return bt(o.element,r);if(o.type==="set")return bt(o.valueType,r);if(o.type==="lazy")return bt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault"||o.type==="catch")return bt(o.innerType,r);if(o.type==="intersection")return bt(o.left,r)||bt(o.right,r);if(o.type==="record"||o.type==="map")return bt(o.keyType,r)||bt(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:bt(o.in,r)||bt(o.out,r);if(o.type==="object"){for(let n in o.shape)if(bt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(bt(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(bt(n,r))return!0;return!!(o.rest&&bt(o.rest,r))}return!1}var Zy=(e,t={})=>r=>{let o=yi({...r,processors:t});return Ue(e,o),bi(o,e),_i(o,e)},vi=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},s=yi({...n??{},target:i,io:t,processors:r});return Ue(e,s),bi(s,e),_i(s,e)};var TE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Up=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:l,laxFormat:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof s=="number"&&(n.maxLength=s),a&&(n.format=TE[a]??a,n.format===""&&delete n.format,(a==="time"||u)&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let p=[...c];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Fp=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,format:a,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof a=="string"&&a.includes("int")?n.type="integer":n.type="number";let p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";p?f?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:typeof i=="number"&&(n.minimum=i),d?f?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:typeof s=="number"&&(n.maximum=s),typeof c=="number"&&(Number.isFinite(c)&&c!==0?n.multipleOf=Math.abs(c):nt(e,t,n,o,`A multipleOf divisor of ${c} cannot be represented in JSON Schema`))},Bp=(e,t,r,o)=>{r.type="boolean"},Vp=(e,t,r,o)=>{nt(e,t,r,o,"BigInt cannot be represented in JSON Schema")},Ky=(e,t,r,o)=>{nt(e,t,r,o,"Symbols cannot be represented in JSON Schema")},Hp=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Gy=(e,t,r,o)=>{nt(e,t,r,o,"Undefined cannot be represented in JSON Schema")},Wy=(e,t,r,o)=>{nt(e,t,r,o,"Void cannot be represented in JSON Schema")},Zp=(e,t,r,o)=>{r.not={}},Jp=(e,t,r,o)=>{},Kp=(e,t,r,o)=>{},Gp=(e,t,r,o)=>{nt(e,t,r,o,"Date cannot be represented in JSON Schema")},Wp=(e,t,r,o)=>{let n=e._zod.def,i=ai(n.entries);if(i.length===0){r.not={};return}i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),r.enum=i},Yp=(e,t,r,o)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let i=[];for(let s of n.values)if(s===void 0){if(nt(e,t,r,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(nt(e,t,r,o,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else i.every(s=>typeof s=="number")&&(r.type="number"),i.every(s=>typeof s=="string")&&(r.type="string"),i.every(s=>typeof s=="boolean")&&(r.type="boolean"),i.every(s=>s===null)&&(r.type="null"),r.enum=i},Yy=(e,t,r,o)=>{nt(e,t,r,o,"NaN cannot be represented in JSON Schema")},Xy=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},Qy=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=e._zod.bag;s!==void 0&&(i.minLength=s),a!==void 0&&(i.maxLength=a),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(n,i)},eb=(e,t,r,o)=>{r.type="boolean"},Xp=(e,t,r,o)=>{nt(e,t,r,o,"Custom types cannot be represented in JSON Schema")},tb=(e,t,r,o)=>{nt(e,t,r,o,"Function types cannot be represented in JSON Schema")},Qp=(e,t,r,o)=>{nt(e,t,r,o,"Transforms cannot be represented in JSON Schema")},rb=(e,t,r,o)=>{nt(e,t,r,o,"Map cannot be represented in JSON Schema")},ob=(e,t,r,o)=>{nt(e,t,r,o,"Set cannot be represented in JSON Schema")},ed=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=Ue(i.element,t,{...o,path:[...o.path,"items"]})};function Si(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Si(t.out):t.type==="catch"?Si(t.innerType):e._zod.optin}var td=(e,t,r,o)=>{let n=r,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&nt(e,t,n,o,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let u in s)tt(n.properties,u,Ue(s[u],t,{...o,path:[...o.path,"properties",u]}));let c=new Set(Object.keys(s)),l=new Set([...c].filter(u=>{let p=i.shape[u];return t.io==="input"?Si(p)===void 0:p._zod.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ue(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},rd=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((a,c)=>Ue(a,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=s:r.anyOf=s},od=(e,t,r,o)=>{let n=e._zod.def,i=Ue(n.left,t,{...o,path:[...o.path,"allOf",0]}),s=Ue(n.right,t,{...o,path:[...o.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];r.allOf=c,t.intersections.push(c)},nb=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((v,y)=>Ue(v,t,{...o,path:[...o.path,s,y]})),l=i.rest?Ue(i.rest,t,{...o,path:[...o.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,u=i.items.length;for(;u>0;){let v=i.items[u-1];if(!(t.io==="input"?Si(v)!==void 0:v._zod.optout==="optional"))break;u--}let p=i.items.length,d=!i.rest;t.target==="draft-2020-12"?(n.prefixItems=c,d?n.items=!1:l&&(n.items=l),u>0&&(n.minItems=u),d&&(n.maxItems=p)):t.target==="openapi-3.0"?(n.items={anyOf:c},l&&n.items.anyOf.push(l),u>0&&(n.minItems=u),d&&(n.maxItems=p)):(n.items=c,d?n.additionalItems=!1:l&&(n.additionalItems=l),u>0&&(n.minItems=u),d&&(n.maxItems=p));let{minimum:f,maximum:g}=e._zod.bag;typeof f=="number"&&(n.minItems=f),typeof g=="number"&&(n.maxItems=g)};function Lp(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let g=e.get(t)?.def;if(!g)return t;let v=Lp(e,g,r);return v===g?t:v}for(let g of["anyOf","oneOf"]){let v=t[g];if(!Array.isArray(v))continue;let y=v.map(m=>Lp(e,m,r));y.some((m,b)=>m!==v[b])&&(t={...t,[g]:y})}let o=Array.isArray(t.type)?t.type:[t.type],n=!o.includes("string")&&o.some(g=>g==="number"||g==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!i?.some(g=>typeof g=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:p,id:d,...f}=t;return f.enum?f.enum=f.enum.map(g=>typeof g=="number"?String(g):g):typeof f.const=="number"&&(f.const=String(f.const)),n&&(f.type="string",i||(f.pattern=(o.includes("number")?mi:_a).source)),f}var Dp=new WeakMap;function $E(e){let t=new Map;for(let o of e.seen.values())o.def&&!t.has(o.schema)&&t.set(o.schema,o);let r=new Map;for(let o of Dp.get(e)??[]){let n=e.seen.get(o),i=(n?.def??n?.schema)?.propertyNames;if(!i||i===!0||r.has(i))continue;let s=Lp(t,i,new Set);s!==i&&r.set(i,s)}if(r.size)for(let o of e.seen.values())for(let n of[o.schema,o.def]){let i=n&&r.get(n.propertyNames);i&&(n.propertyNames=i)}}var nd=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=s._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=Ue(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)tt(n.patternProperties,d.source,p)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=Ue(i.keyType,t,{...o,path:[...o.path,"propertyNames"]});let p=Dp.get(t);p||(p=[],Dp.set(t,p),t.deferred.push(()=>$E(t))),p.push(e)}n.additionalProperties=Ue(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let l=s._zod.values,u=t.io==="input"&&Si(i.valueType)!==void 0;if(l&&!i.partial&&!u){let p=[...l].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(n.required=p.map(String))}},id=(e,t,r,o)=>{let n=e._zod.def,i=Ue(n.innerType,t,o),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},sd=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ad=Symbol();function ib(e,t,r,o,n){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(nt(t,r,o,n,"BigInt defaults cannot be represented in JSON Schema"),ad):JSON.parse(s)}var cd=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s=ib(n.defaultValue,e,t,r,o);s!==ad&&(r.default=s)},ld=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);if(i.ref=n.innerType,t.io!=="input")return;let s=ib(n.defaultValue,e,t,r,o);s!==ad&&(r._prefault=s)},ud=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{nt(e,t,r,o,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},pd=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?n.out:n.in:n.out;Ue(s,t,o);let a=t.seen.get(e);a.ref=s},dd=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},sb=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Ia=(e,t,r,o)=>{let n=e._zod.def;Ue(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},md=(e,t,r,o)=>{let n=e._zod.innerType;Ue(n,t,o);let i=t.seen.get(e);i.ref=n},Jy={string:Up,number:Fp,boolean:Bp,bigint:Vp,symbol:Ky,null:Hp,undefined:Gy,void:Wy,never:Zp,any:Jp,unknown:Kp,date:Gp,enum:Wp,literal:Yp,nan:Yy,template_literal:Xy,file:Qy,success:eb,custom:Xp,function:tb,transform:Qp,map:rb,set:ob,array:ed,object:td,union:rd,intersection:od,tuple:nb,record:nd,nullable:id,nonoptional:sd,default:cd,prefault:ld,catch:ud,pipe:pd,readonly:dd,promise:sb,optional:Ia,lazy:md};function ja(e,t){if("_idmap"in e){let o=e,n=yi({...t,processors:Jy}),i={};for(let c of o._idmap.entries()){let[l,u]=c;Ue(u,n)}let s={},a={registry:o,uri:t?.uri,defs:i};n.external=a;for(let c of o._idmap.entries()){let[l,u]=c;bi(n,u),tt(s,l,_i(n,u))}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let r=yi({...t,processors:Jy});return Ue(e,r),bi(r,e),_i(r,e)}var ab=new WeakSet([Object.prototype,Error.prototype]);function Na(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let o=r(this);return Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0})}})}var NE=(e,t)=>{ga.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);ab.has(r)||(ab.add(r),Na(r,"format",o=>n=>sp(o,n)),Na(r,"flatten",o=>n=>ip(o,n)),Na(r,"addIssue",o=>n=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Ao,2)}),Na(r,"addIssues",o=>n=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Ao,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))};var At=L("ZodError",NE,void 0,{Parent:Error});var cb=ya(At),lb=ba(At),qa=pi(At),ub=di(At),pb=Zh(At),db=Jh(At),mb=Kh(At),fb=Gh(At),hb=Wh(At),gb=Yh(At),vb=Xh(At),yb=Qh(At);function ME(){Rt.localeError||zt(ry())}function La(){Rt.memoizer||zt({memoizer:wp()})}var Le=L("ZodType",(e,t)=>(ME(),qe.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Re.mergeDefs(t,{checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return qt(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ET(e,t))},superRefine(e,t){return this.check(TT(e,t))},overwrite(e){return this.check(xr(e))},optional(){return ce(this)},exactOptional(){return dT(this)},nullable(){return Sb(this)},nullish(){return ce(Sb(this))},nonoptional(e){return yT(this,e)},array(){return q(this)},or(e){return oe([this,e])},and(e){return sr(this,e)},transform(e){return xb(this,Cb(e))},default(e){return hT(this,e)},prefault(e){return vT(this,e)},catch(e){return _T(this,e)},pipe(e){return xb(this,e)},readonly(){return wT(this)},describe(e){let t=this.clone();return Sr.add(t,{description:e}),t},meta(...e){if(e.length===0)return Sr.get(this);let t=this.clone();return Sr.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Re.hide(this,"~standard",{...hp(this),jsonSchema:{input:vi(this,"input"),output:vi(this,"output")}})},set"~standard"(e){Re.own(this,"~standard",e)},parse:function e(t,r){return cb(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await lb(this,t,r,{callee:e})},safeParse(e,t){return qa(this,e,t)},async safeParseAsync(e,t){return ub(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Re.own(this,"spa",e)},encode:function e(t,r){return pb(this,t,r,{callee:e})},decode:function e(t,r){return db(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await mb(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await fb(this,t,r,{callee:e})},safeEncode(e,t){return hb(this,e,t)},safeDecode(e,t){return gb(this,e,t)},async safeEncodeAsync(e,t){return vb(this,e,t)},async safeDecodeAsync(e,t){return yb(this,e,t)},toJSONSchema(e){return Zy(this,{})(e)},get description(){return Sr.get(this)?.description},get _def(){return this._zod.def}}),wb=L("_ZodString",(e,t)=>{za.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Up(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null},{regex(...e){return this.check(Tp(...e))},includes(...e){return this.check(Op(...e))},startsWith(...e){return this.check(kp(...e))},endsWith(...e){return this.check(Cp(...e))},min(...e){return this.check(Do(...e))},max(...e){return this.check(Ca(...e))},length(...e){return this.check(Aa(...e))},nonempty(...e){return this.check(Do(1,...e))},lowercase(e){return this.check($p(e))},uppercase(e){return this.check(Pp(e))},trim(){return this.check(Ip())},normalize(...e){return this.check(Ap(...e))},toLowerCase(){return this.check(jp())},toUpperCase(){return this.check(Np())},slugify(){return this.check(qp())}}),hd=L("ZodString",(e,t)=>{za.init(e,t),wb.init(e,t)},{email(e){return this.check(zp(Rb,e))},url(e){return this.check(Ep(Eb,e))},jwt(e){return this.check(Ey(eT,e))},emoji(e){return this.check(dy(DE,e))},guid(e){return this.check(ay(LE,e))},uuid(e){return this.check(cy(Ma,e))},uuidv4(e){return this.check(ly(Ma,e))},uuidv6(e){return this.check(uy(Ma,e))},uuidv7(e){return this.check(py(Ma,e))},nanoid(e){return this.check(my(UE,e))},cuid(e){return this.check(fy(FE,e))},cuid2(e){return this.check(hy(BE,e))},ulid(e){return this.check(gy(VE,e))},base64(e){return this.check(wy(YE,e))},base64url(e){return this.check(Ry(XE,e))},xid(e){return this.check(vy(HE,e))},ksuid(e){return this.check(yy(ZE,e))},ipv4(e){return this.check(by(JE,e))},ipv6(e){return this.check(_y(KE,e))},cidrv4(e){return this.check(Sy(GE,e))},cidrv6(e){return this.check(xy(WE,e))},e164(e){return this.check(zy(QE,e))},datetime(e){return this.check($a(xi,e))},date(e){return this.check(Pa(wi,e))},time(e){return this.check(Oa(Ri,e))},duration(e){return this.check(ka(zi,e))}});function h(e){return iy(hd,e)}var Ke=L("ZodStringFormat",(e,t)=>{He.init(e,t),wb.init(e,t)}),xi=L("ZodISODateTime",(e,t)=>{pv.init(e,t),Ke.init(e,t)}),wi=L("ZodISODate",(e,t)=>{dv.init(e,t),Ke.init(e,t)}),Ri=L("ZodISOTime",(e,t)=>{mv.init(e,t),Ke.init(e,t)}),zi=L("ZodISODuration",(e,t)=>{fv.init(e,t),Ke.init(e,t)}),Rb=L("ZodEmail",(e,t)=>{ev.init(e,t),Ke.init(e,t)});function zb(e){return zp(Rb,e)}var LE=L("ZodGUID",(e,t)=>{Xg.init(e,t),Ke.init(e,t)});var Ma=L("ZodUUID",(e,t)=>{Qg.init(e,t),Ke.init(e,t)});var Eb=L("ZodURL",(e,t)=>{ov.init(e,t),Ke.init(e,t)});function Da(e){return Ep(Eb,e)}var DE=L("ZodEmoji",(e,t)=>{nv.init(e,t),Ke.init(e,t)});var UE=L("ZodNanoID",(e,t)=>{iv.init(e,t),Ke.init(e,t)});var FE=L("ZodCUID",(e,t)=>{sv.init(e,t),Ke.init(e,t)});var BE=L("ZodCUID2",(e,t)=>{av.init(e,t),Ke.init(e,t)});var VE=L("ZodULID",(e,t)=>{cv.init(e,t),Ke.init(e,t)});var HE=L("ZodXID",(e,t)=>{lv.init(e,t),Ke.init(e,t)});var ZE=L("ZodKSUID",(e,t)=>{uv.init(e,t),Ke.init(e,t)});var JE=L("ZodIPv4",(e,t)=>{hv.init(e,t),Ke.init(e,t)});var KE=L("ZodIPv6",(e,t)=>{vv.init(e,t),Ke.init(e,t)});var GE=L("ZodCIDRv4",(e,t)=>{yv.init(e,t),Ke.init(e,t)});var WE=L("ZodCIDRv6",(e,t)=>{bv.init(e,t),Ke.init(e,t)});var YE=L("ZodBase64",(e,t)=>{Sv.init(e,t),Ke.init(e,t)});var XE=L("ZodBase64URL",(e,t)=>{xv.init(e,t),Ke.init(e,t)});var QE=L("ZodE164",(e,t)=>{wv.init(e,t),Ke.init(e,t)});var eT=L("ZodJWT",(e,t)=>{Rv.init(e,t),Ke.init(e,t)});var Ua=L("ZodNumber",(e,t)=>{gp.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Fp(e,o,n,i);let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null},{gt(e,t){return this.check(Lo(e,t))},gte(e,t){return this.check(ir(e,t))},min(e,t){return this.check(ir(e,t))},lt(e,t){return this.check(Mo(e,t))},lte(e,t){return this.check(nr(e,t))},max(e,t){return this.check(nr(e,t))},int(e){return this.check(bb(e))},safe(e){return this.check(bb(e))},positive(e){return this.check(Lo(0,e))},nonnegative(e){return this.check(ir(0,e))},negative(e){return this.check(Mo(0,e))},nonpositive(e){return this.check(nr(0,e))},multipleOf(e,t){return this.check(hi(e,t))},step(e,t){return this.check(hi(e,t))},finite(){return this}});function J(e){return Ty(Ua,e)}var tT=L("ZodNumberFormat",(e,t)=>{zv.init(e,t),Ua.init(e,t)});function bb(e){return Py(tT,e)}var gd=L("ZodBoolean",(e,t)=>{Ev.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bp(e,r,o,n)});function re(e){return Oy(gd,e)}var Tb=L("ZodBigInt",(e,t)=>{Tv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Vp(e,o,n,i);let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null},{gte(e,t){return this.check(ir(e,t))},min(e,t){return this.check(ir(e,t))},gt(e,t){return this.check(Lo(e,t))},lt(e,t){return this.check(Mo(e,t))},lte(e,t){return this.check(nr(e,t))},max(e,t){return this.check(nr(e,t))},positive(e){return this.check(Lo(BigInt(0),e))},negative(e){return this.check(Mo(BigInt(0),e))},nonpositive(e){return this.check(nr(BigInt(0),e))},nonnegative(e){return this.check(ir(BigInt(0),e))},multipleOf(e,t){return this.check(hi(e,t))}});var rT=L("ZodNull",(e,t)=>{$v.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hp(e,r,o,n)});function Wr(e){return Ay(rT,e)}var oT=L("ZodAny",(e,t)=>{Pv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jp(e,r,o,n)});function $b(){return Iy(oT)}var nT=L("ZodUnknown",(e,t)=>{Ov.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kp(e,r,o,n)});function pe(){return jy(nT)}var iT=L("ZodNever",(e,t)=>{kv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zp(e,r,o,n)});function sT(e){return Ny(iT,e)}var Pb=L("ZodDate",(e,t)=>{Cv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Gp(e,o,n,i),e.min=(o,n)=>e.check(ir(o,n)),e.max=(o,n)=>e.check(nr(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});var aT=L("ZodArray",(e,t)=>{La(),Av.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ed(e,r,o,n),e.element=t.element},{min(e,t){return this.check(Do(e,t))},nonempty(e){return this.check(Do(1,e))},max(e,t){return this.check(Ca(e,t))},length(e,t){return this.check(Aa(e,t))},unwrap(){return this.element}});function q(e,t){return My(aT,e,t)}var Ob=L("ZodObject",(e,t)=>{La(),Nv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>td(e,r,o,n),Re.installLazyProp(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return be(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:pe()})},loose(){return this.clone({...this._zod.def,catchall:pe()})},strict(){return this.clone({...this._zod.def,catchall:sT()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Re.extend(this,e)},safeExtend(e){return Re.safeExtend(this,e)},merge(e){return Re.merge(this,e)},pick(e){return Re.pick(this,e)},omit(e){return Re.omit(this,e)},partial(...e){return Re.partial(Ab,this,e[0])},exactPartial(...e){return Re.partial(Ib,this,e[0],"exactPartial")},required(...e){return Re.required(jb,this,e[0])}});function P(e,t){let r={type:"object",shape:e??{},...Re.normalizeParams(t)};return new Ob(r)}function fe(e,t){return new Ob({type:"object",shape:e,catchall:pe(),...Re.normalizeParams(t)})}var kb=L("ZodUnion",(e,t)=>{vp.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>rd(e,r,o,n),e.options=t.options});function oe(e,t){return new kb({type:"union",options:e,...Re.normalizeParams(t)})}var cT=L("ZodDiscriminatedUnion",(e,t)=>{kb.init(e,t),qv.init(e,t)});function Fo(e,t,r){return new cT({type:"union",options:t,discriminator:e,...Re.normalizeParams(r)})}var lT=L("ZodIntersection",(e,t)=>{Mv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>od(e,r,o,n)});function sr(e,t){return new lT({type:"intersection",left:e,right:t})}var _b=L("ZodRecord",(e,t)=>{La(),Lv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>nd(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function te(e,t,r){return!t||!t._zod?new _b({type:"record",keyType:h(),valueType:e,...Re.normalizeParams(t)}):new _b({type:"record",keyType:e,valueType:t,...Re.normalizeParams(r)})}var fd=L("ZodEnum",(e,t)=>{Dv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Wp(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new fd({...t,checks:[],...Re.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let s of o)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new fd({...t,checks:[],...Re.normalizeParams(n),entries:i})}});function be(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new fd({type:"enum",entries:r,...Re.normalizeParams(t)})}var uT=L("ZodLiteral",(e,t)=>{Uv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yp(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function M(e,t){return new uT({type:"literal",values:Array.isArray(e)?e:[e],...Re.normalizeParams(t)})}var pT=L("ZodTransform",(e,t)=>{La(),Fv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qp(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new No(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Re.issue(i,r.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=e),r.issues.push(Re.issue(s))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function Cb(e){return new pT({type:"transform",transform:e})}var Ab=L("ZodOptional",(e,t)=>{yp.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ia(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ce(e){return new Ab({type:"optional",innerType:e})}var Ib=L("ZodExactOptional",(e,t)=>{Bv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ia(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function dT(e){return new Ib({type:"optional",innerType:e})}var mT=L("ZodNullable",(e,t)=>{Vv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>id(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Sb(e){return new mT({type:"nullable",innerType:e})}var fT=L("ZodDefault",(e,t)=>{Hv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cd(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function hT(e,t){return new fT({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Re.shallowClone(t)}})}var gT=L("ZodPrefault",(e,t)=>{Zv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ld(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function vT(e,t){return new gT({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Re.shallowClone(t)}})}var jb=L("ZodNonOptional",(e,t)=>{Jv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sd(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function yT(e,t){return new jb({type:"nonoptional",innerType:e,...Re.normalizeParams(t)})}var bT=L("ZodCatch",(e,t)=>{Kv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ud(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _T(e,t){return new bT({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Re.constantCatch(t)})}var Nb=L("ZodPipe",(e,t)=>{bp.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pd(e,r,o,n),e.in=t.in,e.out=t.out});function xb(e,t){return new Nb({type:"pipe",in:e,out:t})}var ST=L("ZodPreprocess",(e,t)=>{Nb.init(e,t),Gv.init(e,t)}),xT=L("ZodReadonly",(e,t)=>{Wv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>dd(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function wT(e){return new xT({type:"readonly",innerType:e})}var RT=L("ZodLazy",(e,t)=>{Yv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>md(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Ei(e){return new RT({type:"lazy",getter:e})}var zT=L("ZodCustom",(e,t)=>{Xv.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xp(e,r,o,n)});function ET(e,t={}){return Ly(zT,e,t)}function TT(e,t){return Dy(e,t)}function Yr(e,t){return new ST({type:"pipe",in:Cb(e),out:t})}var Mb={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var qb;qb||(qb={});var ar={};la(ar,{ZodISODate:()=>wi,ZodISODateTime:()=>xi,ZodISODuration:()=>zi,ZodISOTime:()=>Ri,date:()=>OT,datetime:()=>PT,duration:()=>CT,time:()=>kT});function PT(e){return $a(xi,e)}function OT(e){return Pa(wi,e)}function kT(e){return Oa(Ri,e)}function CT(e){return ka(zi,e)}var Fa={};la(Fa,{bigint:()=>NT,boolean:()=>jT,date:()=>qT,number:()=>IT,string:()=>AT});function AT(e){return sy(hd,e)}function IT(e){return $y(Ua,e)}function jT(e){return ky(gd,e)}function NT(e){return Cy(Tb,e)}function qT(e){return qy(Pb,e)}var Qr="2025-11-25";var Ba=[Qr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Va="io.modelcontextprotocol/related-task",eo="io.modelcontextprotocol/protocolVersion",Bo="io.modelcontextprotocol/clientInfo",lr="io.modelcontextprotocol/serverInfo",ur="io.modelcontextprotocol/clientCapabilities",Ti="io.modelcontextprotocol/subscriptionId",Rr="io.modelcontextprotocol/logLevel";var to="2.0";var wr=Ei(()=>oe([h(),J(),re(),Wr(),te(h(),wr),q(wr)])),Ge=te(h(),wr),yd=q(wr),$i=oe([h(),J().int()]),Pi=h(),Ha=P({ttl:J().optional()}),Za=P({taskId:h()}),Oi=fe({progressToken:$i.optional(),[Va]:Za.optional()}),st=P({_meta:Oi.optional()}),ro=st.extend({task:Ha.optional()}),We=P({method:h(),params:st.loose().optional()}),gt=P({_meta:Oi.optional()}),vt=P({method:h(),params:gt.loose().optional()}),ki=fe({get[lr](){return Zo.optional().catch(void 0)}}),Ye=fe({_meta:ki.optional()}),zr=oe([h(),J().int()]),Ci=P({jsonrpc:M(to),id:zr,...We.shape}).strict(),Ai=P({jsonrpc:M(to),...vt.shape}).strict(),Vo=P({jsonrpc:M(to),id:zr,result:Ye}).strict(),Ho=P({jsonrpc:M(to),id:zr.optional(),error:P({code:J().int(),message:h(),data:pe().optional()})}).strict(),Ii=oe([Ci,Ai,Vo,Ho]),bd=oe([Vo,Ho]),ji=Ye.strict(),Ja=gt.extend({requestId:zr.optional(),reason:h().optional()}),Ni=vt.extend({method:M("notifications/cancelled"),params:Ja}),Ka=P({src:h(),mimeType:h().optional(),sizes:q(h()).optional(),theme:be(["light","dark"]).optional()}),Er=P({icons:q(Ka).optional()}),cr=P({name:h(),title:h().optional()}),Zo=cr.extend({...cr.shape,...Er.shape,version:h(),websiteUrl:h().optional(),description:h().optional()}),MT=sr(P({applyDefaults:re().optional()}),Ge),LT=Yr(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,sr(P({form:MT.optional(),url:Ge.optional()}),Ge.optional())),Ga=fe({list:Ge.optional(),cancel:Ge.optional(),requests:fe({sampling:fe({createMessage:Ge.optional()}).optional(),elicitation:fe({create:Ge.optional()}).optional()}).optional()}),Wa=fe({list:Ge.optional(),cancel:Ge.optional(),requests:fe({tools:fe({call:Ge.optional()}).optional()}).optional()}),Ya=P({experimental:te(h(),Ge).optional(),sampling:P({context:Ge.optional(),tools:Ge.optional()}).optional(),elicitation:LT.optional(),roots:P({listChanged:re().optional()}).optional(),tasks:Ga.optional(),extensions:te(h(),Ge).optional()}),Xa=st.extend({protocolVersion:h(),capabilities:Ya,clientInfo:Zo}),Qa=We.extend({method:M("initialize"),params:Xa}),qi=P({experimental:te(h(),Ge).optional(),logging:Ge.optional(),completions:Ge.optional(),prompts:P({listChanged:re().optional()}).optional(),resources:P({subscribe:re().optional(),listChanged:re().optional()}).optional(),tools:P({listChanged:re().optional()}).optional(),tasks:Wa.optional(),extensions:te(h(),Ge).optional()}),ec=Ye.extend({protocolVersion:h(),capabilities:qi,serverInfo:Zo,instructions:h().optional()}),tc=vt.extend({method:M("notifications/initialized"),params:gt.optional()}),rc=We.extend({method:M("server/discover"),params:st.optional()}),oc=Ye.extend({supportedVersions:q(h()),capabilities:qi,instructions:h().optional()}),Mi=We.extend({method:M("ping"),params:st.optional()}),nc=P({progress:J(),total:ce(J()),message:ce(h())}),ic=P({...gt.shape,...nc.shape,progressToken:$i}),Li=vt.extend({method:M("notifications/progress"),params:ic}),sc=st.extend({cursor:Pi.optional()}),Tr=We.extend({params:sc.optional()}),$r=Ye.extend({nextCursor:Pi.optional()}),Di=P({uri:h(),mimeType:ce(h()),_meta:te(h(),pe()).optional()}),Ui=Di.extend({text:h()}),_d=h().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Fi=Di.extend({blob:_d}),Pr=be(["user","assistant"]),pr=P({audience:q(Pr).optional(),priority:J().min(0).max(1).optional(),lastModified:ar.datetime({offset:!0}).optional()}),Bi=P({...cr.shape,...Er.shape,uri:h(),description:ce(h()),mimeType:ce(h()),size:ce(J()),annotations:pr.optional(),_meta:ce(fe({}))}),ac=P({...cr.shape,...Er.shape,uriTemplate:h(),description:ce(h()),mimeType:ce(h()),annotations:pr.optional(),_meta:ce(fe({}))}),cc=Tr.extend({method:M("resources/list")}),lc=$r.extend({resources:q(Bi)}),uc=Tr.extend({method:M("resources/templates/list")}),pc=$r.extend({resourceTemplates:q(ac)}),Jo=st.extend({uri:h()}),dc=Jo,mc=We.extend({method:M("resources/read"),params:dc}),fc=Ye.extend({contents:q(oe([Ui,Fi]))}),hc=vt.extend({method:M("notifications/resources/list_changed"),params:gt.optional()}),gc=Jo,vc=We.extend({method:M("resources/subscribe"),params:gc}),yc=Jo,bc=We.extend({method:M("resources/unsubscribe"),params:yc}),Vi=P({toolsListChanged:re().optional(),promptsListChanged:re().optional(),resourcesListChanged:re().optional(),resourceSubscriptions:q(h()).optional()}),_c=st.extend({notifications:Vi}),Sc=We.extend({method:M("subscriptions/listen"),params:_c}),xc=gt.extend({notifications:Vi}),wc=vt.extend({method:M("notifications/subscriptions/acknowledged"),params:xc}),Rc=ki.extend({[Ti]:zr}),zc=Ye.extend({_meta:Rc}),Ec=gt.extend({uri:h()}),Tc=vt.extend({method:M("notifications/resources/updated"),params:Ec}),$c=P({name:h(),description:ce(h()),required:ce(re())}),Pc=P({...cr.shape,...Er.shape,description:ce(h()),arguments:ce(q($c)),_meta:ce(fe({}))}),Oc=Tr.extend({method:M("prompts/list")}),kc=$r.extend({prompts:q(Pc)}),Cc=st.extend({name:h(),arguments:te(h(),h()).optional()}),Ac=We.extend({method:M("prompts/get"),params:Cc}),Ko=P({type:M("text"),text:h(),annotations:pr.optional(),_meta:te(h(),pe()).optional()}),Go=P({type:M("image"),data:_d,mimeType:h(),annotations:pr.optional(),_meta:te(h(),pe()).optional()}),Wo=P({type:M("audio"),data:_d,mimeType:h(),annotations:pr.optional(),_meta:te(h(),pe()).optional()}),Ic=P({type:M("tool_use"),name:h(),id:h(),input:te(h(),pe()),_meta:te(h(),pe()).optional()}),jc=P({type:M("resource"),resource:oe([Ui,Fi]),annotations:pr.optional(),_meta:te(h(),pe()).optional()}),Nc=Bi.extend({type:M("resource_link")}),Yo=oe([Ko,Go,Wo,Nc,jc]),qc=P({role:Pr,content:Yo}),Mc=Ye.extend({description:h().optional(),messages:q(qc)}),Lc=vt.extend({method:M("notifications/prompts/list_changed"),params:gt.optional()}),Dc=P({title:h().optional(),readOnlyHint:re().optional(),destructiveHint:re().optional(),idempotentHint:re().optional(),openWorldHint:re().optional()}),Uc=P({taskSupport:be(["required","optional","forbidden"]).optional()}),Hi=P({...cr.shape,...Er.shape,description:h().optional(),inputSchema:P({type:M("object"),properties:te(h(),wr).optional(),required:q(h()).optional()}).catchall(pe()),outputSchema:fe({$schema:h().optional()}).optional(),annotations:Dc.optional(),execution:Uc.optional(),_meta:te(h(),pe()).optional()}),Fc=Tr.extend({method:M("tools/list")}),Bc=$r.extend({tools:q(Hi)}),Zi=Ye.extend({content:q(Yo).default([]),structuredContent:pe().optional(),isError:re().optional()}),Sd=Zi.or(Ye.extend({toolResult:pe()})),Vc=ro.extend({name:h(),arguments:te(h(),pe()).optional()}),Hc=We.extend({method:M("tools/call"),params:Vc}),Zc=vt.extend({method:M("notifications/tools/list_changed"),params:gt.optional()}),xd=P({autoRefresh:re().default(!0),debounceMs:J().int().nonnegative().default(300)}),Or=be(["debug","info","notice","warning","error","critical","alert","emergency"]),Jc=st.extend({level:Or}),Kc=We.extend({method:M("logging/setLevel"),params:Jc}),Gc=gt.extend({level:Or,logger:h().optional(),data:pe()}),Wc=vt.extend({method:M("notifications/message"),params:Gc}),Yc=P({name:h().optional()}),Xc=P({hints:q(Yc).optional(),costPriority:J().min(0).max(1).optional(),speedPriority:J().min(0).max(1).optional(),intelligencePriority:J().min(0).max(1).optional()}),Qc=P({mode:be(["auto","required","none"]).optional()}),el=P({type:M("tool_result"),toolUseId:h().describe("The unique identifier for the corresponding tool call."),content:q(Yo),structuredContent:pe().optional(),isError:re().optional(),_meta:te(h(),pe()).optional()}),tl=Fo("type",[Ko,Go,Wo]),Xr=Fo("type",[Ko,Go,Wo,Ic,el]),rl=P({role:Pr,content:oe([Xr,q(Xr)]),_meta:te(h(),pe()).optional()}),ol=ro.extend({messages:q(rl),modelPreferences:Xc.optional(),systemPrompt:h().optional(),includeContext:be(["none","thisServer","allServers"]).optional(),temperature:J().optional(),maxTokens:J().int(),stopSequences:q(h()).optional(),metadata:Ge.optional(),tools:q(Hi).optional(),toolChoice:Qc.optional()}),nl=We.extend({method:M("sampling/createMessage"),params:ol}),il=Ye.extend({model:h(),stopReason:ce(be(["endTurn","stopSequence","maxTokens"]).or(h())),role:Pr,content:tl}),sl=Ye.extend({model:h(),stopReason:ce(be(["endTurn","stopSequence","maxTokens","toolUse"]).or(h())),role:Pr,content:oe([Xr,q(Xr)])}),Ji=P({type:M("boolean"),title:h().optional(),description:h().optional(),default:re().optional()}),Xo=P({type:M("string"),title:h().optional(),description:h().optional(),minLength:J().optional(),maxLength:J().optional(),format:be(["email","uri","date","date-time"]).optional(),default:h().optional()}),Qo=P({type:be(["number","integer"]),title:h().optional(),description:h().optional(),minimum:J().optional(),maximum:J().optional(),default:J().optional()}),Ki=P({type:M("string"),title:h().optional(),description:h().optional(),enum:q(h()),default:h().optional()}),Gi=P({type:M("string"),title:h().optional(),description:h().optional(),oneOf:q(P({const:h(),title:h()})),default:h().optional()}),Wi=P({type:M("string"),title:h().optional(),description:h().optional(),enum:q(h()),enumNames:q(h()).optional(),default:h().optional()}),al=oe([Ki,Gi]),Yi=P({type:M("array"),title:h().optional(),description:h().optional(),minItems:J().optional(),maxItems:J().optional(),items:P({type:M("string"),enum:q(h())}),default:q(h()).optional()}),Xi=P({type:M("array"),title:h().optional(),description:h().optional(),minItems:J().optional(),maxItems:J().optional(),items:P({anyOf:q(P({const:h(),title:h()}))}),default:q(h()).optional()}),cl=oe([Yi,Xi]),ll=oe([Wi,al,cl]),Qi=oe([ll,Ji,Xo,Qo]),en=ro.extend({mode:M("form").optional(),message:h(),requestedSchema:P({type:M("object"),properties:te(h(),Qi),required:q(h()).optional()}).catchall(pe())}),ul=ro.extend({mode:M("url"),message:h(),elicitationId:h(),url:h().url()}),pl=oe([en,ul]),dl=We.extend({method:M("elicitation/create"),params:pl}),ml=gt.extend({elicitationId:h()}),fl=vt.extend({method:M("notifications/elicitation/complete"),params:ml}),hl=Ye.extend({action:be(["accept","decline","cancel"]),content:Yr(e=>e===null?void 0:e,te(h(),oe([h(),J(),re(),q(h())])).optional())}),gl=P({type:M("ref/resource"),uri:h()}),vl=P({type:M("ref/prompt"),name:h()}),yl=st.extend({ref:oe([vl,gl]),argument:P({name:h(),value:h()}),context:P({arguments:te(h(),h()).optional()}).optional()}),bl=We.extend({method:M("completion/complete"),params:yl}),_l=Ye.extend({completion:fe({values:q(h()).max(100),total:ce(J().int()),hasMore:ce(re())})}),Sl=P({uri:h().startsWith("file://"),name:h().optional(),_meta:te(h(),pe()).optional()}),xl=We.extend({method:M("roots/list"),params:st.optional()}),wl=Ye.extend({roots:q(Sl)}),Rl=vt.extend({method:M("notifications/roots/list_changed"),params:gt.optional()}),wd=fe({ttl:J().optional(),pollInterval:J().optional()}),zl=be(["working","input_required","completed","failed","cancelled"]),kr=P({taskId:h(),status:zl,ttl:oe([J(),Wr()]),createdAt:h(),lastUpdatedAt:h(),pollInterval:ce(J()),statusMessage:ce(h())}),Rd=Ye.extend({task:kr}),El=gt.merge(kr),zd=vt.extend({method:M("notifications/tasks/status"),params:El}),Ed=We.extend({method:M("tasks/get"),params:st.extend({taskId:h()})}),Td=Ye.merge(kr),$d=We.extend({method:M("tasks/result"),params:st.extend({taskId:h()})}),Pd=Ye.loose(),Od=Tr.extend({method:M("tasks/list")}),kd=$r.extend({tasks:q(kr)}),Cd=We.extend({method:M("tasks/cancel"),params:st.extend({taskId:h()})}),Ad=Ye.merge(kr),Id=oe([Mi,Qa,rc,bl,Kc,Ac,Oc,cc,uc,mc,vc,bc,Sc,Hc,Fc]),jd=oe([Ni,Li,tc,Rl]),Nd=oe([ji,il,sl,hl,wl]),qd=oe([Mi,nl,dl,xl]),Md=oe([Ni,Li,Wc,Tc,hc,Zc,Lc,wc,fl]),Ld=oe([ji,ec,oc,_l,Mc,kc,lc,pc,fc,Zi,Bc,zc]),it=Da().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Mb.custom,message:"URL must be parseable",fatal:!0}),ep}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Dd=fe({resource:h().url(),authorization_servers:q(it).optional(),jwks_uri:h().url().optional(),scopes_supported:q(h()).optional(),bearer_methods_supported:q(h()).optional(),resource_signing_alg_values_supported:q(h()).optional(),resource_name:h().optional(),resource_documentation:h().optional(),resource_policy_uri:h().url().optional(),resource_tos_uri:h().url().optional(),tls_client_certificate_bound_access_tokens:re().optional(),authorization_details_types_supported:q(h()).optional(),dpop_signing_alg_values_supported:q(h()).optional(),dpop_bound_access_tokens_required:re().optional()}),Tl=fe({issuer:h(),authorization_endpoint:it,token_endpoint:it,registration_endpoint:it.optional(),scopes_supported:q(h()).optional(),response_types_supported:q(h()),response_modes_supported:q(h()).optional(),grant_types_supported:q(h()).optional(),token_endpoint_auth_methods_supported:q(h()).optional(),token_endpoint_auth_signing_alg_values_supported:q(h()).optional(),service_documentation:it.optional(),revocation_endpoint:it.optional(),revocation_endpoint_auth_methods_supported:q(h()).optional(),revocation_endpoint_auth_signing_alg_values_supported:q(h()).optional(),introspection_endpoint:h().optional(),introspection_endpoint_auth_methods_supported:q(h()).optional(),introspection_endpoint_auth_signing_alg_values_supported:q(h()).optional(),code_challenge_methods_supported:q(h()).optional(),client_id_metadata_document_supported:re().optional(),authorization_response_iss_parameter_supported:re().optional().catch(void 0)}),$l=fe({issuer:h(),authorization_endpoint:it,token_endpoint:it,userinfo_endpoint:it.optional(),jwks_uri:it,registration_endpoint:it.optional(),scopes_supported:q(h()).optional(),response_types_supported:q(h()),response_modes_supported:q(h()).optional(),grant_types_supported:q(h()).optional(),acr_values_supported:q(h()).optional(),subject_types_supported:q(h()),id_token_signing_alg_values_supported:q(h()),id_token_encryption_alg_values_supported:q(h()).optional(),id_token_encryption_enc_values_supported:q(h()).optional(),userinfo_signing_alg_values_supported:q(h()).optional(),userinfo_encryption_alg_values_supported:q(h()).optional(),userinfo_encryption_enc_values_supported:q(h()).optional(),request_object_signing_alg_values_supported:q(h()).optional(),request_object_encryption_alg_values_supported:q(h()).optional(),request_object_encryption_enc_values_supported:q(h()).optional(),token_endpoint_auth_methods_supported:q(h()).optional(),token_endpoint_auth_signing_alg_values_supported:q(h()).optional(),display_values_supported:q(h()).optional(),claim_types_supported:q(h()).optional(),claims_supported:q(h()).optional(),service_documentation:h().optional(),claims_locales_supported:q(h()).optional(),ui_locales_supported:q(h()).optional(),claims_parameter_supported:re().optional(),request_parameter_supported:re().optional(),request_uri_parameter_supported:re().optional(),require_request_uri_registration:re().optional(),op_policy_uri:it.optional(),op_tos_uri:it.optional(),client_id_metadata_document_supported:re().optional(),authorization_response_iss_parameter_supported:re().optional().catch(void 0)}),Ud=P({...$l.shape,...Tl.pick({code_challenge_methods_supported:!0}).shape}),Fd=P({access_token:h(),id_token:h().optional(),token_type:h(),expires_in:Fa.number().optional(),scope:h().optional(),refresh_token:h().optional()}).strip(),Bd=P({issued_token_type:M("urn:ietf:params:oauth:token-type:id-jag"),access_token:h(),token_type:h().optional(),expires_in:J().optional(),scope:h().optional()}).strip(),Vd=P({error:h(),error_description:h().optional(),error_uri:h().optional()}),vd=it.optional().or(M("").transform(()=>{})),Pl=P({redirect_uris:q(it),token_endpoint_auth_method:h().optional(),grant_types:q(h()).optional(),response_types:q(h()).optional(),application_type:h().optional(),client_name:h().optional(),client_uri:it.optional(),logo_uri:vd,scope:h().optional(),contacts:q(h()).optional(),tos_uri:vd,policy_uri:h().optional(),jwks_uri:it.optional(),jwks:$b().optional(),software_id:h().optional(),software_version:h().optional(),software_statement:h().optional()}).strip(),Ol=P({client_id:h(),client_secret:h().optional(),client_id_issued_at:J().optional(),client_secret_expires_at:J().optional()}).strip(),Hd=Pl.merge(Ol),Zd=P({error:h(),error_description:h().optional()}).strip(),Jd=P({token:h(),token_type_hint:h().optional()}).strip();var Yd=Symbol.for("mcp.sdk.errorBrands");function tm(e,t){let r=new Set,o=t;for(;typeof o=="function";){let n=o.mcpBrand;Object.prototype.hasOwnProperty.call(o,"mcpBrand")&&typeof n=="string"&&r.add(n),o=Object.getPrototypeOf(o)}r.size!==0&&Object.defineProperty(e,Yd,{value:r,enumerable:!1,configurable:!0})}function rn(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,Yd)){let r=t[Yd];if(r&&typeof r.has=="function"&&r.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var DT=class s_ extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return rn(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return rn(this,t)}constructor(t,r,o){super(r),this.code=t,this.errorUri=o,this.name="OAuthError",tm(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new s_(t.error,t.error_description??t.error,t.error_uri)}},Ee=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),_e=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return rn(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return rn(this,e)}constructor(e,t,r){super(t),this.code=e,this.data=r,this.name="SdkError",tm(this,new.target)}},UT=class extends _e{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,r){super(e,t,r),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};function Gb(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function FT(e,t,r){return e==="elicitation"&&t==="form"&&r.form===void 0&&r.url===void 0}function a_(e){switch(e.method){case"elicitation/create":return e.params?.mode==="url"?{elicitation:{url:{}}}:{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;return t!==void 0&&(t.tools!==void 0||t.toolChoice!==void 0)?{sampling:{tools:{}}}:{sampling:{}}}case"roots/list":return{roots:{}};default:return}}function Ml(e,t){let r={};for(let[o,n]of Object.entries(e)){if(n===void 0)continue;let i=t===void 0?void 0:t[o];if(i===void 0){r[o]=n;continue}if(Gb(n)&&Gb(i)){let s={};for(let[a,c]of Object.entries(n))c!==void 0&&i[a]===void 0&&!FT(o,a,i)&&(s[a]=c);Object.keys(s).length>0&&(r[o]=s)}}return Object.keys(r).length>0?r:void 0}var BT="2026-07-28";function is(e){return e>=BT}function c_(e){return e.filter(t=>!is(t))}function rm(e){return e.filter(t=>is(t))}function l_(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(r=>r.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var u_=["task","inputRequests","requestState"];function om(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||u_.some(t=>t in e)?e:{...e,content:[]}}function VT(){let e=Ei(()=>oe([h(),J(),re(),Wr(),te(h(),e),q(e)])),t=te(h(),e),r=oe([h(),J().int()]),o=h(),n=P({ttl:J().optional()}),i=P({taskId:h()}),s=fe({progressToken:r.optional(),"io.modelcontextprotocol/related-task":i.optional()}),a=P({_meta:s.optional()}),c=a.extend({task:n.optional()}),l=P({method:h(),params:a.loose().optional()}),u=P({_meta:s.optional()}),p=P({method:h(),params:u.loose().optional()}),d=fe({_meta:s.optional()}),f=oe([h(),J().int()]),g=d.strict(),v=u.extend({requestId:f.optional(),reason:h().optional()}),y=p.extend({method:M("notifications/cancelled"),params:v}),m=P({src:h(),mimeType:h().optional(),sizes:q(h()).optional(),theme:be(["light","dark"]).optional()}),b=P({icons:q(m).optional()}),_=P({name:h(),title:h().optional()}),w=_.extend({..._.shape,...b.shape,version:h(),websiteUrl:h().optional(),description:h().optional()}),z=sr(P({applyDefaults:re().optional()}),t),S=Yr(ht=>ht&&typeof ht=="object"&&!Array.isArray(ht)&&Object.keys(ht).length===0?{form:{}}:ht,sr(P({form:z.optional(),url:t.optional()}),t.optional())),x=fe({list:t.optional(),cancel:t.optional(),requests:fe({sampling:fe({createMessage:t.optional()}).optional(),elicitation:fe({create:t.optional()}).optional()}).optional()}),T=fe({list:t.optional(),cancel:t.optional(),requests:fe({tools:fe({call:t.optional()}).optional()}).optional()}),j=P({experimental:te(h(),t).optional(),sampling:P({context:t.optional(),tools:t.optional()}).optional(),elicitation:S.optional(),roots:P({listChanged:re().optional()}).optional(),tasks:x.optional(),extensions:te(h(),t).optional()}),V=a.extend({protocolVersion:h(),capabilities:j,clientInfo:w}),C=l.extend({method:M("initialize"),params:V}),B=P({experimental:te(h(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:P({listChanged:re().optional()}).optional(),resources:P({subscribe:re().optional(),listChanged:re().optional()}).optional(),tools:P({listChanged:re().optional()}).optional(),tasks:T.optional(),extensions:te(h(),t).optional()}),Y=d.extend({protocolVersion:h(),capabilities:B,serverInfo:w,instructions:h().optional()}),G=p.extend({method:M("notifications/initialized"),params:u.optional()}),he=l.extend({method:M("ping"),params:a.optional()}),je=P({progress:J(),total:ce(J()),message:ce(h())}),Ce=P({...u.shape,...je.shape,progressToken:r}),Me=p.extend({method:M("notifications/progress"),params:Ce}),we=a.extend({cursor:o.optional()}),k=l.extend({params:we.optional()}),I=d.extend({nextCursor:o.optional()}),U=P({uri:h(),mimeType:ce(h()),_meta:te(h(),pe()).optional()}),R=U.extend({text:h()}),O=h().refine(ht=>{try{return atob(ht),!0}catch{return!1}},{message:"Invalid Base64 string"}),N=U.extend({blob:O}),W=be(["user","assistant"]),K=P({audience:q(W).optional(),priority:J().min(0).max(1).optional(),lastModified:ar.datetime({offset:!0}).optional()}),le=P({..._.shape,...b.shape,uri:h(),description:ce(h()),mimeType:ce(h()),size:ce(J()),annotations:K.optional(),_meta:ce(fe({}))}),ue=P({..._.shape,...b.shape,uriTemplate:h(),description:ce(h()),mimeType:ce(h()),annotations:K.optional(),_meta:ce(fe({}))}),$e=k.extend({method:M("resources/list")}),Qe=I.extend({resources:q(le)}),$=k.extend({method:M("resources/templates/list")}),A=I.extend({resourceTemplates:q(ue)}),F=a.extend({uri:h()}),se=F,ae=l.extend({method:M("resources/read"),params:se}),de=d.extend({contents:q(oe([R,N]))}),ne=p.extend({method:M("notifications/resources/list_changed"),params:u.optional()}),ze=F,Q=l.extend({method:M("resources/subscribe"),params:ze}),X=F,ge=l.extend({method:M("resources/unsubscribe"),params:X}),Ne=u.extend({uri:h()}),ye=p.extend({method:M("notifications/resources/updated"),params:Ne}),Ze=P({name:h(),description:ce(h()),required:ce(re())}),Fe=P({..._.shape,...b.shape,description:ce(h()),arguments:ce(q(Ze)),_meta:ce(fe({}))}),De=k.extend({method:M("prompts/list")}),Ot=I.extend({prompts:q(Fe)}),St=a.extend({name:h(),arguments:te(h(),h()).optional()}),Be=l.extend({method:M("prompts/get"),params:St}),Wt=P({type:M("text"),text:h(),annotations:K.optional(),_meta:te(h(),pe()).optional()}),Ur=P({type:M("image"),data:O,mimeType:h(),annotations:K.optional(),_meta:te(h(),pe()).optional()}),Fr=P({type:M("audio"),data:O,mimeType:h(),annotations:K.optional(),_meta:te(h(),pe()).optional()}),In=P({type:M("tool_use"),name:h(),id:h(),input:te(h(),pe()),_meta:te(h(),pe()).optional()}),hr=P({type:M("resource"),resource:oe([R,N]),annotations:K.optional(),_meta:te(h(),pe()).optional()}),jn=le.extend({type:M("resource_link")}),Nt=oe([Wt,Ur,Fr,jn,hr]),_o=P({role:W,content:Nt}),So=d.extend({description:h().optional(),messages:q(_o)}),Br=p.extend({method:M("notifications/prompts/list_changed"),params:u.optional()}),Nn=P({title:h().optional(),readOnlyHint:re().optional(),destructiveHint:re().optional(),idempotentHint:re().optional(),openWorldHint:re().optional()}),xo=P({taskSupport:be(["required","optional","forbidden"]).optional()}),Vr=P({..._.shape,...b.shape,description:h().optional(),inputSchema:P({type:M("object"),properties:te(h(),e).optional(),required:q(h()).optional()}).catchall(pe()),outputSchema:P({type:M("object"),properties:te(h(),e).optional(),required:q(h()).optional()}).catchall(pe()).optional(),annotations:Nn.optional(),execution:xo.optional(),_meta:te(h(),pe()).optional()}),wo=k.extend({method:M("tools/list")}),Ro=I.extend({tools:q(Vr)}),zo=d.extend({content:q(Nt),structuredContent:te(h(),pe()).optional(),isError:re().optional()}),ft=c.extend({name:h(),arguments:te(h(),pe()).optional()}),qn=l.extend({method:M("tools/call"),params:ft}),Zs=p.extend({method:M("notifications/tools/list_changed"),params:u.optional()}),Eo=be(["debug","info","notice","warning","error","critical","alert","emergency"]),Mn=a.extend({level:Eo}),Ln=l.extend({method:M("logging/setLevel"),params:Mn}),Dn=u.extend({level:Eo,logger:h().optional(),data:pe()}),Un=p.extend({method:M("notifications/message"),params:Dn}),Fn=P({name:h().optional()}),Bn=P({hints:q(Fn).optional(),costPriority:J().min(0).max(1).optional(),speedPriority:J().min(0).max(1).optional(),intelligencePriority:J().min(0).max(1).optional()}),Vn=P({mode:be(["auto","required","none"]).optional()}),Js=P({type:M("tool_result"),toolUseId:h().describe("The unique identifier for the corresponding tool call."),content:q(Nt),structuredContent:P({}).loose().optional(),isError:re().optional(),_meta:te(h(),pe()).optional()}),Hn=Fo("type",[Wt,Ur,Fr]),gr=Fo("type",[Wt,Ur,Fr,In,Js]),Zn=P({role:W,content:oe([gr,q(gr)]),_meta:te(h(),pe()).optional()}),Jn=c.extend({messages:q(Zn),modelPreferences:Bn.optional(),systemPrompt:h().optional(),includeContext:be(["none","thisServer","allServers"]).optional(),temperature:J().optional(),maxTokens:J().int(),stopSequences:q(h()).optional(),metadata:t.optional(),tools:q(Vr).optional(),toolChoice:Vn.optional()}),Kn=l.extend({method:M("sampling/createMessage"),params:Jn}),Gn=d.extend({model:h(),stopReason:ce(be(["endTurn","stopSequence","maxTokens"]).or(h())),role:W,content:Hn}),Wn=d.extend({model:h(),stopReason:ce(be(["endTurn","stopSequence","maxTokens","toolUse"]).or(h())),role:W,content:oe([gr,q(gr)])}),Yn=P({type:M("boolean"),title:h().optional(),description:h().optional(),default:re().optional()}),Xn=P({type:M("string"),title:h().optional(),description:h().optional(),minLength:J().optional(),maxLength:J().optional(),format:be(["email","uri","date","date-time"]).optional(),default:h().optional()}),Qn=P({type:be(["number","integer"]),title:h().optional(),description:h().optional(),minimum:J().optional(),maximum:J().optional(),default:J().optional()}),ei=P({type:M("string"),title:h().optional(),description:h().optional(),enum:q(h()),default:h().optional()}),ti=P({type:M("string"),title:h().optional(),description:h().optional(),oneOf:q(P({const:h(),title:h()})),default:h().optional()}),ri=P({type:M("string"),title:h().optional(),description:h().optional(),enum:q(h()),enumNames:q(h()).optional(),default:h().optional()}),oi=oe([ei,ti]),Hr=P({type:M("array"),title:h().optional(),description:h().optional(),minItems:J().optional(),maxItems:J().optional(),items:P({type:M("string"),enum:q(h())}),default:q(h()).optional()}),Zr=P({type:M("array"),title:h().optional(),description:h().optional(),minItems:J().optional(),maxItems:J().optional(),items:P({anyOf:q(P({const:h(),title:h()}))}),default:q(h()).optional()}),Ks=oe([Hr,Zr]),Gs=oe([ri,oi,Ks]),kt=oe([Gs,Yn,Xn,Qn]),Ct=c.extend({mode:M("form").optional(),message:h(),requestedSchema:P({type:M("object"),properties:te(h(),kt),required:q(h()).optional()}).catchall(pe())}),ni=c.extend({mode:M("url"),message:h(),elicitationId:h(),url:h().url()}),Ft=oe([Ct,ni]),Ws=l.extend({method:M("elicitation/create"),params:Ft}),Ys=u.extend({elicitationId:h()}),Xs=p.extend({method:M("notifications/elicitation/complete"),params:Ys}),Qs=d.extend({action:be(["accept","decline","cancel"]),content:Yr(ht=>ht===null?void 0:ht,te(h(),oe([h(),J(),re(),q(h())])).optional())}),ea=P({type:M("ref/resource"),uri:h()}),ta=P({type:M("ref/prompt"),name:h()}),ra=a.extend({ref:oe([ta,ea]),argument:P({name:h(),value:h()}),context:P({arguments:te(h(),h()).optional()}).optional()}),ii=l.extend({method:M("completion/complete"),params:ra}),oa=d.extend({completion:fe({values:q(h()).max(100),total:ce(J().int()),hasMore:ce(re())})}),na=P({uri:h().startsWith("file://"),name:h().optional(),_meta:te(h(),pe()).optional()}),To=l.extend({method:M("roots/list"),params:a.optional()}),si=d.extend({roots:q(na)}),ia=p.extend({method:M("notifications/roots/list_changed"),params:u.optional()}),sa=fe({ttl:J().optional(),pollInterval:J().optional()}),aa=be(["working","input_required","completed","failed","cancelled"]),vr=P({taskId:h(),status:aa,ttl:oe([J(),Wr()]),createdAt:h(),lastUpdatedAt:h(),pollInterval:ce(J()),statusMessage:ce(h())}),xt=d.extend({task:vr}),ca=u.merge(vr),Jr=p.extend({method:M("notifications/tasks/status"),params:ca}),$o=l.extend({method:M("tasks/get"),params:a.extend({taskId:h()})}),Po=d.merge(vr),Oo=l.extend({method:M("tasks/result"),params:a.extend({taskId:h()})}),Nu=d.loose(),wt=k.extend({method:M("tasks/list")}),et=I.extend({tasks:q(vr)}),Kr=l.extend({method:M("tasks/cancel"),params:a.extend({taskId:h()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:r,CursorSchema:o,TaskMetadataSchema:n,RelatedTaskMetadataSchema:i,RequestMetaSchema:s,BaseRequestParamsSchema:a,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:p,ResultSchema:d,RequestIdSchema:f,EmptyResultSchema:g,CancelledNotificationParamsSchema:v,CancelledNotificationSchema:y,IconSchema:m,IconsSchema:b,BaseMetadataSchema:_,ImplementationSchema:w,ClientTasksCapabilitySchema:x,ServerTasksCapabilitySchema:T,ClientCapabilitiesSchema:j,InitializeRequestParamsSchema:V,InitializeRequestSchema:C,ServerCapabilitiesSchema:B,InitializeResultSchema:Y,InitializedNotificationSchema:G,PingRequestSchema:he,ProgressSchema:je,ProgressNotificationParamsSchema:Ce,ProgressNotificationSchema:Me,PaginatedRequestParamsSchema:we,PaginatedRequestSchema:k,PaginatedResultSchema:I,ResourceContentsSchema:U,TextResourceContentsSchema:R,BlobResourceContentsSchema:N,RoleSchema:W,AnnotationsSchema:K,ResourceSchema:le,ResourceTemplateSchema:ue,ListResourcesRequestSchema:$e,ListResourcesResultSchema:Qe,ListResourceTemplatesRequestSchema:$,ListResourceTemplatesResultSchema:A,ResourceRequestParamsSchema:F,ReadResourceRequestParamsSchema:se,ReadResourceRequestSchema:ae,ReadResourceResultSchema:de,ResourceListChangedNotificationSchema:ne,SubscribeRequestParamsSchema:ze,SubscribeRequestSchema:Q,UnsubscribeRequestParamsSchema:X,UnsubscribeRequestSchema:ge,ResourceUpdatedNotificationParamsSchema:Ne,ResourceUpdatedNotificationSchema:ye,PromptArgumentSchema:Ze,PromptSchema:Fe,ListPromptsRequestSchema:De,ListPromptsResultSchema:Ot,GetPromptRequestParamsSchema:St,GetPromptRequestSchema:Be,TextContentSchema:Wt,ImageContentSchema:Ur,AudioContentSchema:Fr,ToolUseContentSchema:In,EmbeddedResourceSchema:hr,ResourceLinkSchema:jn,ContentBlockSchema:Nt,PromptMessageSchema:_o,GetPromptResultSchema:So,PromptListChangedNotificationSchema:Br,ToolAnnotationsSchema:Nn,ToolExecutionSchema:xo,ToolSchema:Vr,ListToolsRequestSchema:wo,ListToolsResultSchema:Ro,CallToolResultSchema:zo,CallToolRequestParamsSchema:ft,CallToolRequestSchema:qn,ToolListChangedNotificationSchema:Zs,LoggingLevelSchema:Eo,SetLevelRequestParamsSchema:Mn,SetLevelRequestSchema:Ln,LoggingMessageNotificationParamsSchema:Dn,LoggingMessageNotificationSchema:Un,ModelHintSchema:Fn,ModelPreferencesSchema:Bn,ToolChoiceSchema:Vn,ToolResultContentSchema:Js,SamplingContentSchema:Hn,SamplingMessageContentBlockSchema:gr,SamplingMessageSchema:Zn,CreateMessageRequestParamsSchema:Jn,CreateMessageRequestSchema:Kn,CreateMessageResultSchema:Gn,CreateMessageResultWithToolsSchema:Wn,BooleanSchemaSchema:Yn,StringSchemaSchema:Xn,NumberSchemaSchema:Qn,UntitledSingleSelectEnumSchemaSchema:ei,TitledSingleSelectEnumSchemaSchema:ti,LegacyTitledEnumSchemaSchema:ri,SingleSelectEnumSchemaSchema:oi,UntitledMultiSelectEnumSchemaSchema:Hr,TitledMultiSelectEnumSchemaSchema:Zr,MultiSelectEnumSchemaSchema:Ks,EnumSchemaSchema:Gs,PrimitiveSchemaDefinitionSchema:kt,ElicitRequestFormParamsSchema:Ct,ElicitRequestURLParamsSchema:ni,ElicitRequestParamsSchema:Ft,ElicitRequestSchema:Ws,ElicitationCompleteNotificationParamsSchema:Ys,ElicitationCompleteNotificationSchema:Xs,ElicitResultSchema:Qs,ResourceTemplateReferenceSchema:ea,PromptReferenceSchema:ta,CompleteRequestParamsSchema:ra,CompleteRequestSchema:ii,CompleteResultSchema:oa,RootSchema:na,ListRootsRequestSchema:To,ListRootsResultSchema:si,RootsListChangedNotificationSchema:ia,TaskCreationParamsSchema:sa,TaskStatusSchema:aa,TaskSchema:vr,CreateTaskResultSchema:xt,TaskStatusNotificationParamsSchema:ca,TaskStatusNotificationSchema:Jr,GetTaskRequestSchema:$o,GetTaskResultSchema:Po,GetTaskPayloadRequestSchema:Oo,GetTaskPayloadResultSchema:Nu,ListTasksRequestSchema:wt,ListTasksResultSchema:et,CancelTaskRequestSchema:Kr,CancelTaskResultSchema:d.merge(vr),ClientRequestSchema:oe([he,C,ii,Ln,Be,De,$e,$,ae,Q,ge,qn,wo,$o,Oo,wt,Kr]),ClientNotificationSchema:oe([y,Me,G,ia,Jr]),ClientResultSchema:oe([g,Gn,Wn,Qs,si,Po,et,xt]),ServerRequestSchema:oe([he,Kn,Ws,To,$o,Oo,wt,Kr]),ServerNotificationSchema:oe([y,Me,Un,ye,ne,Zs,Br,Jr,Xs]),ServerResultSchema:oe([g,Y,oa,So,Ot,Qe,A,de,zo,Ro,Po,et,xt]),CallToolResultWireSchema:pe().superRefine((ht,uz)=>{if(!(typeof ht!="object"||ht===null||Array.isArray(ht)||ht.content!==void 0)){for(let zh of u_)if(zh in ht){uz.addIssue({code:"custom",message:`content is required when the body carries '${zh}' \u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(om).pipe(zo)}}var HT;function p_(){return HT??=VT()}function d_(e){return e.type!=="object"}var ZT=new Set(["const","enum","default","examples"]),JT=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function Wb(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function KT(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if(Wb(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let r=$h(e.$schema)&&e.$recursiveAnchor!==!0,o=(n,i)=>{if(Array.isArray(n))return n.map(c=>o(c,!1));if(n===null||typeof n!="object"||!i&&Wb(n.$id))return n;let s={},a=!1;for(let[c,l]of Object.entries(n))i?s[c]=o(l,!1):(c==="$ref"||c==="$dynamicRef")&&typeof l=="string"?s[c]=l==="#"?"#/properties/result":l.startsWith("#/")?`#/properties/result${l.slice(1)}`:l:c==="$recursiveRef"&&l==="#"&&r?a=!0:ZT.has(c)?s[c]=l:JT.has(c)?s[c]=o(l,!0):s[c]=o(l,!1);return a&&("$ref"in s?s.allOf=[...Array.isArray(s.allOf)?s.allOf:[],{$ref:"#/properties/result"}]:s.$ref="#/properties/result"),s};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:o(e,!1)},required:["result"]}}var m_={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},f_={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},GT={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},kl;function nm(){if(kl)return kl;let e=p_();return kl={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},kl}function h_(e){return Object.prototype.hasOwnProperty.call(m_,e)}function g_(e){return Object.prototype.hasOwnProperty.call(f_,e)}function WT(e){return Object.prototype.hasOwnProperty.call(GT,e)}function YT(e){return WT(e)?nm().resultSchemas[e]:void 0}function XT(e){return h_(e)?nm().requestSchemas[e]:void 0}function QT(e){return g_(e)?nm().notificationSchemas[e]:void 0}var p2=Object.keys(m_),d2=Object.keys(f_);function Xd(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Cl(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let r=e.safeParse(t);return r.success?{ok:!0,value:r.data}:{ok:!1,reason:"invalid",message:String(r.error)}}var Yb={ok:!1,reason:"not-in-era"};function Xb(e){return Xd(e)&&Xd(e.outputSchema)&&d_(e.outputSchema)}var im={era:"2025-11-25",hasRequestMethod:h_,hasNotificationMethod:g_,validateRequest:(e,t)=>Cl(XT(e),t),validateResult:(e,t)=>Cl(YT(e),t),validateNotification:(e,t)=>Cl(QT(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>Yb,validateInputResponse:()=>Yb,samplingResultVariant:((e,t)=>{let r=p_();return Cl(e?r.CreateMessageResultWithToolsSchema:r.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let r=l_(e),o=r.structuredContent;if(o===void 0)return r;let n=typeof o!="object"||o===null||Array.isArray(o),i=t!==void 0&&d_(t);return!n&&!i?r:{...r,structuredContent:{result:o}}},decodeResult(e,t){if(Xd(t)&&"resultType"in t){let r={...t};return delete r.resultType,{kind:"complete",result:r}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let r=t.tools;return!Array.isArray(r)||!r.some(o=>Xb(o))?t:{...t,tools:r.map(o=>Xb(o)?{...o,outputSchema:KT(o.outputSchema)}:o)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function e$(){let e=Ei(()=>oe([h(),J(),re(),Wr(),te(h(),e),q(e)])),t=te(h(),e),r=oe([h(),J().int()]),o=h(),n=oe([h(),J().int()]),i=be(["user","assistant"]),s=be(["debug","info","notice","warning","error","critical","alert","emergency"]),a=h().refine(et=>{try{return atob(et),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=P({ttl:J().optional()}),l=P({taskId:h()}),u=fe({progressToken:r.optional(),"io.modelcontextprotocol/related-task":l.optional()}),p=P({_meta:u.optional()}),d=p.extend({task:c.optional()}),f=P({_meta:u.optional()}),g=P({method:h(),params:f.loose().optional()}),v=P({src:h(),mimeType:h().optional(),sizes:q(h()).optional(),theme:be(["light","dark"]).optional()}),y=P({icons:q(v).optional()}),m=P({name:h(),title:h().optional()}),b=m.extend({...m.shape,...y.shape,version:h(),websiteUrl:h().optional(),description:h().optional()}),_=sr(P({applyDefaults:re().optional()}),t),w=Yr(et=>et&&typeof et=="object"&&!Array.isArray(et)&&Object.keys(et).length===0?{form:{}}:et,sr(P({form:_.optional(),url:t.optional()}),t.optional())),z=fe({list:t.optional(),cancel:t.optional(),requests:fe({sampling:fe({createMessage:t.optional()}).optional(),elicitation:fe({create:t.optional()}).optional()}).optional()}),S=fe({list:t.optional(),cancel:t.optional(),requests:fe({tools:fe({call:t.optional()}).optional()}).optional()}),x=P({experimental:te(h(),t).optional(),sampling:P({context:t.optional(),tools:t.optional()}).optional(),elicitation:w.optional(),roots:P({listChanged:re().optional()}).optional(),tasks:z.optional(),extensions:te(h(),t).optional()}),T=P({experimental:te(h(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:P({listChanged:re().optional()}).optional(),resources:P({subscribe:re().optional(),listChanged:re().optional()}).optional(),tools:P({listChanged:re().optional()}).optional(),tasks:S.optional(),extensions:te(h(),t).optional()}),j=P({progress:J(),total:ce(J()),message:ce(h())}),V=P({...f.shape,...j.shape,progressToken:r}),C=g.extend({method:M("notifications/progress"),params:V}),B=f.extend({level:s,logger:h().optional(),data:pe()}),Y=g.extend({method:M("notifications/message"),params:B}),G=P({uri:h(),mimeType:ce(h()),_meta:te(h(),pe()).optional()}),he=G.extend({text:h()}),je=G.extend({blob:a}),Ce=P({audience:q(i).optional(),priority:J().min(0).max(1).optional(),lastModified:ar.datetime({offset:!0}).optional()}),Me=P({...m.shape,...y.shape,uri:h(),description:ce(h()),mimeType:ce(h()),size:ce(J()),annotations:Ce.optional(),_meta:ce(fe({}))}),we=P({...m.shape,...y.shape,uriTemplate:h(),description:ce(h()),mimeType:ce(h()),annotations:Ce.optional(),_meta:ce(fe({}))}),k=g.extend({method:M("notifications/resources/list_changed"),params:f.optional()}),I=f.extend({uri:h()}),U=g.extend({method:M("notifications/resources/updated"),params:I}),R=P({name:h(),description:ce(h()),required:ce(re())}),O=P({...m.shape,...y.shape,description:ce(h()),arguments:ce(q(R)),_meta:ce(fe({}))}),N=g.extend({method:M("notifications/prompts/list_changed"),params:f.optional()}),W=P({type:M("text"),text:h(),annotations:Ce.optional(),_meta:te(h(),pe()).optional()}),K=P({type:M("image"),data:a,mimeType:h(),annotations:Ce.optional(),_meta:te(h(),pe()).optional()}),le=P({type:M("audio"),data:a,mimeType:h(),annotations:Ce.optional(),_meta:te(h(),pe()).optional()}),ue=P({type:M("tool_use"),name:h(),id:h(),input:te(h(),pe()),_meta:te(h(),pe()).optional()}),$e=P({type:M("resource"),resource:oe([he,je]),annotations:Ce.optional(),_meta:te(h(),pe()).optional()}),Qe=Me.extend({type:M("resource_link")}),$=oe([W,K,le,Qe,$e]),A=P({role:i,content:$}),F=P({title:h().optional(),readOnlyHint:re().optional(),destructiveHint:re().optional(),idempotentHint:re().optional(),openWorldHint:re().optional()}),se=g.extend({method:M("notifications/tools/list_changed"),params:f.optional()}),ae=P({name:h().optional()}),de=P({hints:q(ae).optional(),costPriority:J().min(0).max(1).optional(),speedPriority:J().min(0).max(1).optional(),intelligencePriority:J().min(0).max(1).optional()}),ne=P({mode:be(["auto","required","none"]).optional()}),ze=P({type:M("boolean"),title:h().optional(),description:h().optional(),default:re().optional()}),Q=P({type:M("string"),title:h().optional(),description:h().optional(),minLength:J().optional(),maxLength:J().optional(),format:be(["email","uri","date","date-time"]).optional(),default:h().optional()}),X=P({type:be(["number","integer"]),title:h().optional(),description:h().optional(),minimum:J().optional(),maximum:J().optional(),default:J().optional()}),ge=P({type:M("string"),title:h().optional(),description:h().optional(),enum:q(h()),default:h().optional()}),Ne=P({type:M("string"),title:h().optional(),description:h().optional(),oneOf:q(P({const:h(),title:h()})),default:h().optional()}),ye=P({type:M("string"),title:h().optional(),description:h().optional(),enum:q(h()),enumNames:q(h()).optional(),default:h().optional()}),Ze=oe([ge,Ne]),Fe=P({type:M("array"),title:h().optional(),description:h().optional(),minItems:J().optional(),maxItems:J().optional(),items:P({type:M("string"),enum:q(h())}),default:q(h()).optional()}),De=P({type:M("array"),title:h().optional(),description:h().optional(),minItems:J().optional(),maxItems:J().optional(),items:P({anyOf:q(P({const:h(),title:h()}))}),default:q(h()).optional()}),Ot=oe([Fe,De]),St=oe([ye,Ze,Ot]),Be=oe([St,ze,Q,X]),Wt=d.extend({mode:M("form").optional(),message:h(),requestedSchema:P({type:M("object"),properties:te(h(),Be),required:q(h()).optional()}).catchall(pe())}),Ur=P({type:M("ref/resource"),uri:h()}),Fr=P({type:M("ref/prompt"),name:h()}),In=P({uri:h().startsWith("file://"),name:h().optional(),_meta:te(h(),pe()).optional()}),hr=x.shape,jn=P({experimental:hr.experimental,sampling:hr.sampling,elicitation:hr.elicitation,roots:hr.roots,extensions:hr.extensions}),Nt=T.shape,_o=P({experimental:Nt.experimental,logging:Nt.logging,completions:Nt.completions,prompts:Nt.prompts,resources:Nt.resources,tools:Nt.tools,extensions:Nt.extensions}),So=fe({progressToken:r.optional(),[eo]:h(),[Bo]:b.optional(),[ur]:jn,[Rr]:s.optional()}),Br=P({...m.shape,...y.shape,description:h().optional(),inputSchema:fe({$schema:h().optional(),type:M("object")}),outputSchema:fe({$schema:h().optional()}).optional(),annotations:F.optional(),_meta:te(h(),pe()).optional()}),Nn=P({type:M("tool_result"),toolUseId:h(),content:q($),structuredContent:pe().optional(),isError:re().optional(),_meta:te(h(),pe()).optional()}),xo=oe([W,K,le,ue,Nn]),Vr=P({role:i,content:oe([xo,q(xo)]),_meta:te(h(),pe()).optional()}),wo=h(),Ro=fe({[lr]:b.optional().catch(void 0)}),zo=Ro.optional();function ft(et){return fe({_meta:zo,resultType:wo.default("complete"),...et})}let qn=ft({}),Zs=ft({nextCursor:o.optional()}),Eo=ft({content:q($),structuredContent:pe().optional(),isError:re().optional()}),Mn=ft({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),tools:q(Br),nextCursor:o.optional()}),Ln=ft({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),prompts:q(O),nextCursor:o.optional()}),Dn=ft({description:h().optional(),messages:q(A)}),Un=ft({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),resources:q(Me),nextCursor:o.optional()}),Fn=ft({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),resourceTemplates:q(we),nextCursor:o.optional()}),Bn=ft({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),contents:q(oe([he,je]))}),Vn=ft({completion:P({values:q(h()).max(100),total:J().int().optional(),hasMore:re().optional()}).loose()}),Js=ft({ttlMs:J().int().min(0),cacheScope:be(["public","private"])}),Hn=ft({ttlMs:J().int().min(0).catch(0),cacheScope:be(["public","private"]).catch("private"),supportedVersions:q(h()),capabilities:_o,instructions:h().optional()}),gr=P({messages:q(Vr),modelPreferences:de.optional(),systemPrompt:h().optional(),includeContext:be(["none","thisServer","allServers"]).optional(),temperature:J().optional(),maxTokens:J().int(),stopSequences:q(h()).optional(),metadata:t.optional(),tools:q(Br).optional(),toolChoice:ne.optional()}),Zn=P({method:M("sampling/createMessage"),params:gr}),Jn=P({method:M("roots/list"),params:P({_meta:te(h(),pe()).optional()}).optional()}),Kn=P({...Vr.shape,model:h(),stopReason:h().optional()}),Gn=P({roots:q(In)}),Wn=P({action:be(["accept","decline","cancel"]),content:te(h(),oe([h(),J(),re(),q(h())])).optional()}),Yn=P({mode:M("url"),message:h(),url:h().url()}),Xn=oe([Wt,Yn]),Qn=P({method:M("elicitation/create"),params:Xn}),ei=oe([Zn,Jn,Qn]),ti=oe([Kn,Gn,Wn]),ri=te(h(),ei),oi=te(h(),ti),Hr=ft({inputRequests:ri.optional(),requestState:h().optional()}),Zr={inputResponses:oi.optional(),requestState:h().optional()},Ks=P({_meta:So,...Zr}),Gs=fe({progressToken:r.optional()});function kt(et,Kr){return P({method:M(et),params:P({_meta:So,...Kr})})}function Ct(et,Kr){return P({method:M(et),params:P({_meta:Gs.optional(),...Kr}).optional()})}let ni={name:h(),arguments:te(h(),pe()).optional(),...Zr},Ft={cursor:o.optional()},Ws=kt("tools/call",ni),Ys=kt("tools/list",Ft),Xs=kt("prompts/list",Ft),Qs=kt("prompts/get",{name:h(),arguments:te(h(),h()).optional(),...Zr}),ea=kt("resources/list",Ft),ta=kt("resources/templates/list",Ft),ra=kt("resources/read",{uri:h(),...Zr}),ii={ref:oe([Fr,Ur]),argument:P({name:h(),value:h()}),context:P({arguments:te(h(),h()).optional()}).optional()},oa=kt("completion/complete",ii),na=kt("server/discover",{}),To=P({toolsListChanged:re().optional(),promptsListChanged:re().optional(),resourcesListChanged:re().optional(),resourceSubscriptions:q(h()).optional()}),si={notifications:To},ia=kt("subscriptions/listen",si),sa=Ro.extend({"io.modelcontextprotocol/subscriptionId":n}),aa=fe({_meta:sa,resultType:wo.default("complete")}),vr={"tools/call":Ct("tools/call",ni),"tools/list":Ct("tools/list",Ft),"prompts/get":Ct("prompts/get",{name:h(),arguments:te(h(),h()).optional()}),"prompts/list":Ct("prompts/list",Ft),"resources/list":Ct("resources/list",Ft),"resources/templates/list":Ct("resources/templates/list",Ft),"resources/read":Ct("resources/read",{uri:h()}),"completion/complete":Ct("completion/complete",ii),"server/discover":Ct("server/discover",{}),"subscriptions/listen":Ct("subscriptions/listen",si)};function xt(et){return fe({_meta:zo,...et})}let ca={"tools/call":xt({content:q($),structuredContent:pe().optional(),isError:re().optional()}),"tools/list":xt({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),tools:q(Br),nextCursor:o.optional()}),"prompts/get":xt({description:h().optional(),messages:q(A)}),"prompts/list":xt({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),prompts:q(O),nextCursor:o.optional()}),"resources/list":xt({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),resources:q(Me),nextCursor:o.optional()}),"resources/templates/list":xt({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),resourceTemplates:q(we),nextCursor:o.optional()}),"resources/read":xt({ttlMs:J().int().min(0),cacheScope:be(["public","private"]),contents:q(oe([he,je]))}),"completion/complete":xt({completion:P({values:q(h()).max(100),total:J().int().optional(),hasMore:re().optional()}).loose()}),"server/discover":xt({ttlMs:J().int().min(0).catch(0),cacheScope:be(["public","private"]).catch("private"),supportedVersions:q(h()),capabilities:_o,instructions:h().optional()}),"subscriptions/listen":xt({})},Jr=fe({"io.modelcontextprotocol/subscriptionId":n.optional()}),$o=P({method:M("notifications/subscriptions/acknowledged"),params:P({_meta:Jr.optional(),notifications:To})}),Po=P({_meta:Jr.optional(),requestId:n,reason:h().optional()}),Oo=P({method:M("notifications/cancelled"),params:Po}),Nu={"notifications/cancelled":Oo,"notifications/progress":C,"notifications/message":Y,"notifications/resources/updated":U,"notifications/resources/list_changed":k,"notifications/tools/list_changed":se,"notifications/prompts/list_changed":N,"notifications/subscriptions/acknowledged":$o},wt=et=>P({jsonrpc:M("2.0"),id:oe([h(),J().int()]),result:et}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:r,CursorSchema:o,RequestIdSchema:n,RoleSchema:i,LoggingLevelSchema:s,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:p,TaskAugmentedRequestParamsSchema:d,NotificationsParamsSchema:f,NotificationSchema:g,IconSchema:v,IconsSchema:y,BaseMetadataSchema:m,ImplementationSchema:b,ClientTasksCapabilitySchema:z,ServerTasksCapabilitySchema:S,ClientCapabilitiesSchema:x,ServerCapabilitiesSchema:T,ProgressSchema:j,ProgressNotificationParamsSchema:V,ProgressNotificationSchema:C,LoggingMessageNotificationParamsSchema:B,LoggingMessageNotificationSchema:Y,ResourceContentsSchema:G,TextResourceContentsSchema:he,BlobResourceContentsSchema:je,AnnotationsSchema:Ce,ResourceSchema:Me,ResourceTemplateSchema:we,ResourceListChangedNotificationSchema:k,ResourceUpdatedNotificationParamsSchema:I,ResourceUpdatedNotificationSchema:U,PromptArgumentSchema:R,PromptSchema:O,PromptListChangedNotificationSchema:N,TextContentSchema:W,ImageContentSchema:K,AudioContentSchema:le,ToolUseContentSchema:ue,EmbeddedResourceSchema:$e,ResourceLinkSchema:Qe,ContentBlockSchema:$,PromptMessageSchema:A,ToolAnnotationsSchema:F,ToolListChangedNotificationSchema:se,ModelHintSchema:ae,ModelPreferencesSchema:de,ToolChoiceSchema:ne,BooleanSchemaSchema:ze,StringSchemaSchema:Q,NumberSchemaSchema:X,UntitledSingleSelectEnumSchemaSchema:ge,TitledSingleSelectEnumSchemaSchema:Ne,LegacyTitledEnumSchemaSchema:ye,SingleSelectEnumSchemaSchema:Ze,UntitledMultiSelectEnumSchemaSchema:Fe,TitledMultiSelectEnumSchemaSchema:De,MultiSelectEnumSchemaSchema:Ot,EnumSchemaSchema:St,PrimitiveSchemaDefinitionSchema:Be,ElicitRequestFormParamsSchema:Wt,ResourceTemplateReferenceSchema:Ur,PromptReferenceSchema:Fr,RootSchema:In,ClientCapabilities2026Schema:jn,ServerCapabilities2026Schema:_o,RequestMetaEnvelopeSchema:So,ToolSchema:Br,ToolResultContentSchema:Nn,SamplingMessageContentBlockSchema:xo,SamplingMessageSchema:Vr,ResultTypeSchema:wo,ResultMetaSchema:Ro,ResultSchema:qn,PaginatedResultSchema:Zs,CallToolResultSchema:Eo,ListToolsResultSchema:Mn,ListPromptsResultSchema:Ln,GetPromptResultSchema:Dn,ListResourcesResultSchema:Un,ListResourceTemplatesResultSchema:Fn,ReadResourceResultSchema:Bn,CompleteResultSchema:Vn,CacheableResultSchema:Js,DiscoverResultSchema:Hn,CreateMessageRequestParamsSchema:gr,CreateMessageRequestSchema:Zn,ListRootsRequestSchema:Jn,CreateMessageResultSchema:Kn,ListRootsResultSchema:Gn,ElicitResultSchema:Wn,ElicitRequestURLParamsSchema:Yn,ElicitRequestParamsSchema:Xn,ElicitRequestSchema:Qn,InputRequestSchema:ei,InputResponseSchema:ti,InputRequestsSchema:ri,InputResponsesSchema:oi,InputRequiredResultSchema:Hr,InputResponseRequestParamsSchema:Ks,CallToolRequestSchema:Ws,ListToolsRequestSchema:Ys,ListPromptsRequestSchema:Xs,GetPromptRequestSchema:Qs,ListResourcesRequestSchema:ea,ListResourceTemplatesRequestSchema:ta,ReadResourceRequestSchema:ra,CompleteRequestSchema:oa,DiscoverRequestSchema:na,SubscriptionFilterSchema:To,SubscriptionsListenRequestSchema:ia,SubscriptionsListenResultMetaSchema:sa,SubscriptionsListenResultSchema:aa,dispatchRequestSchemas:vr,dispatchResultSchemas:ca,NotificationMetaSchema:Jr,SubscriptionsAcknowledgedNotificationSchema:$o,CancelledNotificationParamsSchema:Po,CancelledNotificationSchema:Oo,notificationSchemas2026:Nu,JSONRPCResultResponseSchema:wt(qn),CallToolResultResponseSchema:wt(oe([Eo,Hr])),ListToolsResultResponseSchema:wt(Mn),ListPromptsResultResponseSchema:wt(Ln),GetPromptResultResponseSchema:wt(oe([Dn,Hr])),ListResourcesResultResponseSchema:wt(Un),ListResourceTemplatesResultResponseSchema:wt(Fn),ReadResourceResultResponseSchema:wt(oe([Bn,Hr])),CompleteResultResponseSchema:wt(Vn),DiscoverResultResponseSchema:wt(Hn)}}var t$;function no(){return t$??=e$()}var r$=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function o$(e){return r$.includes(e)}var tn=Symbol("modelcontextprotocol.resultCacheHintFallback");function Ll(e,t){if(t===void 0)return e;let r=e[tn];if(r===void 0)return{...e,[tn]:t};let o={},n=r.ttlMs??t.ttlMs;n!==void 0&&(o.ttlMs=n);let i=r.cacheScope??t.cacheScope;return i!==void 0&&(o.cacheScope=i),{...e,[tn]:o}}function n$(e){return e[tn]}function sm(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function am(e){return e==="public"||e==="private"}function cm(e,t){if(e.ttlMs!==void 0&&!sm(e.ttlMs))throw new RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(e.cacheScope!==void 0&&!am(e.cacheScope))throw new RangeError(`Invalid cache hint for ${t}: cacheScope must be 'public' or 'private' (got ${String(e.cacheScope)})`)}var ee=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),ve=class v_ extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return rn(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return rn(this,t)}constructor(t,r,o){super(r),this.code=t,this.data=o,this.name="ProtocolError",tm(this,new.target)}static fromError(t,r,o){if(t===ee.UrlElicitationRequired&&o){let n=o;if(n.elicitations)return new y_(n.elicitations,r)}if(t===ee.UnsupportedProtocolVersion&&o){let n=o;if(Array.isArray(n.supported)&&typeof n.requested=="string")return new lm({supported:n.supported,requested:n.requested},r)}if(t===ee.InvalidParams||t===ee.ResourceNotFound){let n=o;if(typeof n?.uri=="string"&&(t===ee.ResourceNotFound||Object.keys(n).length===1))return new Dl(n.uri,r)}if(t===ee.MissingRequiredClientCapability&&o){let n=o;if(n.requiredCapabilities!==null&&typeof n.requiredCapabilities=="object"&&!Array.isArray(n.requiredCapabilities))return new Ul({requiredCapabilities:n.requiredCapabilities},r)}return new v_(t,r,o)}},Dl=class extends ve{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(ee.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},y_=class extends ve{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(ee.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},lm=class extends ve{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(ee.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Ul=class extends ve{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(ee.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},i$=0,s$="private",a$=["tools/call","prompts/get","resources/read"];function c$(e,t){let r=t.resultType;if(r===void 0)return{...t,resultType:"complete"};if(r==="complete"||a$.includes(e))return t;throw new ve(ee.InternalError,`Handler for ${e} returned resultType '${String(r)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function l$(e,t){let r=n$(t);if(t.resultType!=="complete"||!o$(e))return r===void 0?t:f$(t);let o=t,n=sm(o.ttlMs)?o.ttlMs:d$(r),i=am(o.cacheScope)?o.cacheScope:m$(r),s={...o,ttlMs:n,cacheScope:i};return delete s[tn],s}function u$(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function p$(e,t){if(t===void 0)return e;let r=e._meta;return r===void 0?{...e,_meta:{[lr]:t}}:!u$(r)||r[lr]!==void 0?e:{...e,_meta:{...r,[lr]:t}}}function d$(e){return e!==void 0&&sm(e.ttlMs)?e.ttlMs:i$}function m$(e){return e!==void 0&&am(e.cacheScope)?e.cacheScope:s$}function f$(e){let t={...e};return delete t[tn],t}var h$=["elicitation/create","sampling/createMessage","roots/list"],Al;function b_(){if(Al)return Al;let e=no();return Al={request:{"elicitation/create":P({method:M("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":P({method:M("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":P({method:M("roots/list"),params:fe({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},Al}function __(e){return h$.includes(e)}function Kd(e){return __(e)?b_().request[e]:void 0}function g$(e){return __(e)?b_().response[e]:void 0}var um={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},S_={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function x_(e){return Object.prototype.hasOwnProperty.call(um,e)}function w_(e){return Object.prototype.hasOwnProperty.call(S_,e)}function v$(e){return Object.prototype.hasOwnProperty.call(um,e)}function y$(e){return x_(e)?no().dispatchRequestSchemas[e]:void 0}function b$(e){return v$(e)?no().dispatchResultSchemas[e]:void 0}function _$(e){return w_(e)?no().notificationSchemas2026[e]:void 0}var m2=Object.keys(um),f2=Object.keys(S_);function rs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function es(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let r=e.safeParse(t);return r.success?{ok:!0,value:r.data}:{ok:!1,reason:"invalid",message:String(r.error)}}var S$={ok:!1,reason:"not-in-era"},x$=[eo,ur];function w$(e,t){let r=t,o=!1,n=()=>(o||(r={...r},o=!0),r),i=t.tools;e==="tools/list"&&Array.isArray(i)&&i.some(a=>rs(a)&&"execution"in a)&&(n().tools=i.map(a=>{if(!rs(a)||!("execution"in a))return a;let c={...a};return delete c.execution,c}));let s=t.capabilities;if(rs(s)&&"tasks"in s){let a={...s};delete a.tasks,n().capabilities=a}return r}var pm={era:"2026-07-28",hasRequestMethod:x_,hasNotificationMethod:w_,hasInputRequestMethod:e=>Kd(e)!==void 0,validateRequest:(e,t)=>es(y$(e),t),validateResult:(e,t)=>es(b$(e),t),validateNotification:(e,t)=>es(_$(e),t),validateInputRequest:(e,t)=>es(Kd(e),t),validateInputResponse:(e,t)=>es(g$(e),t),samplingResultVariant:()=>S$,outboundEnvelope(e){return{[eo]:e.protocolVersion,[Bo]:e.clientInfo,[ur]:e.clientCapabilities,...e.logLevel!==void 0&&{[Rr]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let o of x$)o in e||t.push({key:o,problem:"missing"});let r=no().RequestMetaEnvelopeSchema.safeParse(e);if(!r.success)for(let o of r.error.issues){let n=o.path.map(String),i=n.length>0?n.join("."):"_meta";n.length===1&&t.some(s=>s.key===i&&s.problem==="missing")||t.push({key:i,problem:o.message})}return t},projectCallToolResult:e=>l_(e),inputRequestSchema:Kd,decodeResult(e,t){if(!rs(t))return{kind:"invalid",error:new _e(Ee.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let r=t.resultType;if(r===void 0)return{kind:"invalid",error:new _e(Ee.InvalidResult,`Invalid result for ${e}: missing required resultType \u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof r!="string")return{kind:"invalid",error:new _e(Ee.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:r})};if(r==="input_required"){let s=t.inputRequests,a=rs(s)?s:{},c=t.requestState;return Object.keys(a).length===0&&typeof c!="string"?{kind:"invalid",error:new _e(Ee.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:a,...typeof c=="string"&&{requestState:c}}}if(r!=="complete")return{kind:"invalid",error:new _e(Ee.UnsupportedResultType,`Unsupported result type '${r}' for ${e}`,{resultType:r,method:e})};let o=R$(),n=Object.hasOwn(o,e)?o[e]:void 0;if(n!==void 0){let s=n.safeParse(t);if(!s.success)return{kind:"invalid",error:new _e(Ee.InvalidResult,`Invalid result for ${e}: ${s.error}`,{method:e})}}let i={...t};return delete i.resultType,{kind:"complete",result:i}},encodeResult(e,t,r){return p$(l$(e,c$(e,w$(e,t))),r)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=no().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(r=>r.message).join("; ")}`}},Il;function R$(){if(Il)return Il;let e=no();return Il={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},Il}var dm="2026-07-28";function on(e){return e!==void 0&&is(e)?pm:im}function Qb(e){return e.revision!==void 0?on(e.revision).era:e.era==="modern"?pm.era:im.era}function Gd(e){return R_.some(t=>t.hasRequestMethod(e))}function Wd(e){return R_.some(t=>t.hasNotificationMethod(e))}var R_=[im,pm];var z$=Eh({AnnotationsSchema:()=>pr,AudioContentSchema:()=>Wo,BaseMetadataSchema:()=>cr,BaseRequestParamsSchema:()=>st,BlobResourceContentsSchema:()=>Fi,BooleanSchemaSchema:()=>Ji,CallToolRequestParamsSchema:()=>Vc,CallToolRequestSchema:()=>Hc,CallToolResultSchema:()=>Zi,CancelTaskRequestSchema:()=>Cd,CancelTaskResultSchema:()=>Ad,CancelledNotificationParamsSchema:()=>Ja,CancelledNotificationSchema:()=>Ni,ClientCapabilitiesSchema:()=>Ya,ClientNotificationSchema:()=>jd,ClientRequestSchema:()=>Id,ClientResultSchema:()=>Nd,ClientTasksCapabilitySchema:()=>Ga,CompatibilityCallToolResultSchema:()=>Sd,CompleteRequestParamsSchema:()=>yl,CompleteRequestSchema:()=>bl,CompleteResultSchema:()=>_l,ContentBlockSchema:()=>Yo,CreateMessageRequestParamsSchema:()=>ol,CreateMessageRequestSchema:()=>nl,CreateMessageResultSchema:()=>il,CreateMessageResultWithToolsSchema:()=>sl,CreateTaskResultSchema:()=>Rd,CursorSchema:()=>Pi,DiscoverRequestSchema:()=>rc,DiscoverResultSchema:()=>oc,ElicitRequestFormParamsSchema:()=>en,ElicitRequestParamsSchema:()=>pl,ElicitRequestSchema:()=>dl,ElicitRequestURLParamsSchema:()=>ul,ElicitResultSchema:()=>hl,ElicitationCompleteNotificationParamsSchema:()=>ml,ElicitationCompleteNotificationSchema:()=>fl,EmbeddedResourceSchema:()=>jc,EmptyResultSchema:()=>ji,EnumSchemaSchema:()=>ll,GetPromptRequestParamsSchema:()=>Cc,GetPromptRequestSchema:()=>Ac,GetPromptResultSchema:()=>Mc,GetTaskPayloadRequestSchema:()=>$d,GetTaskPayloadResultSchema:()=>Pd,GetTaskRequestSchema:()=>Ed,GetTaskResultSchema:()=>Td,IconSchema:()=>Ka,IconsSchema:()=>Er,ImageContentSchema:()=>Go,ImplementationSchema:()=>Zo,InitializeRequestParamsSchema:()=>Xa,InitializeRequestSchema:()=>Qa,InitializeResultSchema:()=>ec,InitializedNotificationSchema:()=>tc,JSONArraySchema:()=>yd,JSONObjectSchema:()=>Ge,JSONRPCErrorResponseSchema:()=>Ho,JSONRPCMessageSchema:()=>Ii,JSONRPCNotificationSchema:()=>Ai,JSONRPCRequestSchema:()=>Ci,JSONRPCResponseSchema:()=>bd,JSONRPCResultResponseSchema:()=>Vo,JSONValueSchema:()=>wr,LegacyTitledEnumSchemaSchema:()=>Wi,ListChangedOptionsBaseSchema:()=>xd,ListPromptsRequestSchema:()=>Oc,ListPromptsResultSchema:()=>kc,ListResourceTemplatesRequestSchema:()=>uc,ListResourceTemplatesResultSchema:()=>pc,ListResourcesRequestSchema:()=>cc,ListResourcesResultSchema:()=>lc,ListRootsRequestSchema:()=>xl,ListRootsResultSchema:()=>wl,ListTasksRequestSchema:()=>Od,ListTasksResultSchema:()=>kd,ListToolsRequestSchema:()=>Fc,ListToolsResultSchema:()=>Bc,LoggingLevelSchema:()=>Or,LoggingMessageNotificationParamsSchema:()=>Gc,LoggingMessageNotificationSchema:()=>Wc,ModelHintSchema:()=>Yc,ModelPreferencesSchema:()=>Xc,MultiSelectEnumSchemaSchema:()=>cl,NotificationSchema:()=>vt,NotificationsParamsSchema:()=>gt,NumberSchemaSchema:()=>Qo,PaginatedRequestParamsSchema:()=>sc,PaginatedRequestSchema:()=>Tr,PaginatedResultSchema:()=>$r,PingRequestSchema:()=>Mi,PrimitiveSchemaDefinitionSchema:()=>Qi,ProgressNotificationParamsSchema:()=>ic,ProgressNotificationSchema:()=>Li,ProgressSchema:()=>nc,ProgressTokenSchema:()=>$i,PromptArgumentSchema:()=>$c,PromptListChangedNotificationSchema:()=>Lc,PromptMessageSchema:()=>qc,PromptReferenceSchema:()=>vl,PromptSchema:()=>Pc,ReadResourceRequestParamsSchema:()=>dc,ReadResourceRequestSchema:()=>mc,ReadResourceResultSchema:()=>fc,RelatedTaskMetadataSchema:()=>Za,RequestIdSchema:()=>zr,RequestMetaSchema:()=>Oi,RequestSchema:()=>We,ResourceContentsSchema:()=>Di,ResourceLinkSchema:()=>Nc,ResourceListChangedNotificationSchema:()=>hc,ResourceRequestParamsSchema:()=>Jo,ResourceSchema:()=>Bi,ResourceTemplateReferenceSchema:()=>gl,ResourceTemplateSchema:()=>ac,ResourceUpdatedNotificationParamsSchema:()=>Ec,ResourceUpdatedNotificationSchema:()=>Tc,ResultMetaObjectSchema:()=>ki,ResultSchema:()=>Ye,RoleSchema:()=>Pr,RootSchema:()=>Sl,RootsListChangedNotificationSchema:()=>Rl,SamplingContentSchema:()=>tl,SamplingMessageContentBlockSchema:()=>Xr,SamplingMessageSchema:()=>rl,ServerCapabilitiesSchema:()=>qi,ServerNotificationSchema:()=>Md,ServerRequestSchema:()=>qd,ServerResultSchema:()=>Ld,ServerTasksCapabilitySchema:()=>Wa,SetLevelRequestParamsSchema:()=>Jc,SetLevelRequestSchema:()=>Kc,SingleSelectEnumSchemaSchema:()=>al,StringSchemaSchema:()=>Xo,SubscribeRequestParamsSchema:()=>gc,SubscribeRequestSchema:()=>vc,SubscriptionFilterSchema:()=>Vi,SubscriptionsAcknowledgedNotificationParamsSchema:()=>xc,SubscriptionsAcknowledgedNotificationSchema:()=>wc,SubscriptionsListenRequestParamsSchema:()=>_c,SubscriptionsListenRequestSchema:()=>Sc,SubscriptionsListenResultMetaSchema:()=>Rc,SubscriptionsListenResultSchema:()=>zc,TaskAugmentedRequestParamsSchema:()=>ro,TaskCreationParamsSchema:()=>wd,TaskMetadataSchema:()=>Ha,TaskSchema:()=>kr,TaskStatusNotificationParamsSchema:()=>El,TaskStatusNotificationSchema:()=>zd,TaskStatusSchema:()=>zl,TextContentSchema:()=>Ko,TextResourceContentsSchema:()=>Ui,TitledMultiSelectEnumSchemaSchema:()=>Xi,TitledSingleSelectEnumSchemaSchema:()=>Gi,ToolAnnotationsSchema:()=>Dc,ToolChoiceSchema:()=>Qc,ToolExecutionSchema:()=>Uc,ToolListChangedNotificationSchema:()=>Zc,ToolResultContentSchema:()=>el,ToolSchema:()=>Hi,ToolUseContentSchema:()=>Ic,UnsubscribeRequestParamsSchema:()=>yc,UnsubscribeRequestSchema:()=>bc,UntitledMultiSelectEnumSchemaSchema:()=>Yi,UntitledSingleSelectEnumSchemaSchema:()=>Ki});var mm=e=>Ci.safeParse(e).success,fm=e=>Ai.safeParse(e).success,ql=e=>Vo.safeParse(e).success,hm=e=>Ho.safeParse(e).success;var dr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.resultType==="input_required";function gm(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function vm(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var e_="x-mcp-header",E$=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,T$=new Set(["string","integer","boolean","number"]);function ym(e){let t=[],r=new Map,o=(i,s,a)=>{if(i===null||typeof i!="object")return;let c=i;if(e_ in c){if(!a||s.length===0)return`${jl(s)}: x-mcp-header is only permitted on properties statically reachable via a chain of 'properties' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let u=c[e_];if(typeof u!="string"||u.length===0)return`${jl(s)}: x-mcp-header MUST be a non-empty string`;if(!E$.test(u))return`${jl(s)}: x-mcp-header '${u}' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let p=typeof c.type=="string"?c.type:void 0;if(p===void 0||!T$.has(p))return`${jl(s)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${p??"<none>"}`;let d=u.toLowerCase(),f=r.get(d);if(f!==void 0)return`x-mcp-header '${u}' is not case-insensitively unique (also declared as '${f}')`;r.set(d,u),t.push({path:s,headerName:u,type:p})}let l=c.properties;if(l!==null&&typeof l=="object")for(let[u,p]of Object.entries(l)){let d=o(p,[...s,u],a);if(d!==void 0)return d}for(let u of $$){let p=c[u];if(p===void 0)continue;let d=Array.isArray(p)?p:p!==null&&typeof p=="object"&&P$.has(u)?Object.values(p):[p];for(let f of d){let g=o(f,[...s,`<${u}>`],!1);if(g!==void 0)return g}}},n=o(e,[],!0);return n===void 0?{valid:!0,declarations:t}:{valid:!1,reason:n}}var $$=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],P$=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function jl(e){return e.length===0?"<root>":e.join(".")}var Nl=-32020,h2=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[ee.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[Nl,ee.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[ee.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \u2014 and a missing envelope on a request whose protocol-version header names a modern revision \u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[ee.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[ee.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[Nl],conformance:["http-header-validation"],rationale:"SEP-2243 standard `Mcp-Method` / `Mcp-Name` headers \u2014 presence, sentinel decoding, and `Mcp-Name` \u2194 body cross-check \u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The classifier\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[ee.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[Nl],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],O$={[ee.ParseError]:400,[ee.InvalidRequest]:400,[ee.MethodNotFound]:404,[ee.UnsupportedProtocolVersion]:400,[ee.MissingRequiredClientCapability]:400,[Nl]:400};function Fl(e,t){return qa(e,t)}function ts(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function nn(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var t_=!1,Qd="draft-2020-12";function Cr(e,t="input"){let r=e["~standard"],o;if(r.jsonSchema)o=r.jsonSchema[t]({target:Qd});else if(r.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");t_||(t_=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),o=ja(e,{target:Qd,io:t})}else throw new Error(`Schema library "${r.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return o.type!==void 0?o:z_(o)?{type:"object",...o}:o;if(o.type!==void 0&&o.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(o.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...o}}function z_(e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;for(let t of["oneOf","anyOf","allOf"]){let r=e[t];if(Array.isArray(r)&&r.length>0)return r.every(o=>o!==null&&typeof o=="object"&&(o.type==="object"||z_(o)))}return!1}function k$(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function oo(e,t){let r=await e["~standard"].validate(t);return r.issues&&r.issues.length>0?{success:!1,error:r.issues.map(o=>k$(o)).join(", ")}:{success:!0,data:r.value}}function C$(e){let t=ja(e,{target:Qd,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var A$=/\\\.\\d\{(\d+)\}/;function I$(e){let t=A$.exec(e),r=[void 0,-1,0];return t&&r.push(Number(t[1])),[!1,!0].flatMap(o=>[!1,!0].flatMap(n=>r.map(i=>ar.datetime({local:o,offset:n,precision:i}))))}function j$(e,t){let r;switch(e){case"email":r=[zb()];break;case"uri":r=[Da()];break;case"date":r=[ar.date()];break;case"date-time":r=I$(t);break}return new Set(r.map(o=>C$(o)).filter(o=>o!==void 0))}function N$(e,t,r){return r!=="zod"?!0:j$(e,t).has(t)}function E_(e){let t=Cr(e,"input"),r=t.properties||{},o=t.required||[];return Object.entries(r).map(([n,i])=>({name:n,description:i?.description,required:o.includes(n)}))}function ns(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function q$(e){try{return Cr(e,"input")}catch(t){let r=t instanceof Error?t.message:String(t);throw new ve(ee.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${r}`)}}var M$=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function bm(e){return M$.has(e)||e.startsWith("x-")}var L$=new Set(["$schema",...Object.keys(en.shape.requestedSchema.shape)]),r_={string:ts([Xo,Ki,Gi,Wi]),number:ts([Qo]),integer:ts([Qo]),boolean:ts([Ji]),array:ts([Yi,Xi])},D$=new Set(Xo.shape.format.unwrap().options);function U$(e,t,r,o){if(!ns(e))return e;let n=typeof e.type=="string"&&Object.hasOwn(r_,e.type)?r_[e.type]:void 0;if(n===void 0)return e;let i={};for(let[s,a]of Object.entries(e))n.has(s)||bm(s)?i[s]=a:s==="pattern"&&e.type==="string"&&typeof e.format=="string"?D$.has(e.format)?(typeof a!="string"||!N$(e.format,a,r))&&o.push(`${t}.${s}`):i[s]=a:o.push(`${t}.${s}`);return i}function F$(e,t){let r={},o=[];for(let[n,i]of Object.entries(e))n==="properties"&&ns(i)?r[n]=Object.fromEntries(Object.entries(i).map(([s,a])=>[s,U$(a,`properties.${s}`,t,o)])):L$.has(n)?r[n]=i:bm(n)||o.push(n);if(o.length>0)throw new ve(ee.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${o.join(", ")}`);return r}function B$(e,t){if(!ns(e.properties))return t;let r=Object.entries(e.properties).filter(([,o])=>!Fl(Qi,o).success).map(([o])=>`properties.${o}`);return r.length>0?r.join(", "):t}function em(e,t,r=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((o,n)=>em(o,t[n],`${r}[${n}]`)):!ns(e)||!ns(t)?[]:Object.entries(e).flatMap(([o,n])=>{let i=r?`${r}.${o}`:o;return Object.prototype.hasOwnProperty.call(t,o)?em(n,t[o],i):bm(o)?[]:[i]})}function V$(e){if(!nn(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,r=F$(q$(e.requestedSchema),t),o=Fl(en.shape.requestedSchema,r);if(!o.success)throw new ve(ee.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${B$(r,o.error.message)}`);let n=em(r,o.data);if(n.length>0)throw new ve(ee.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${n.join(", ")}`);let i=(o.data.required??[]).filter(s=>!Object.prototype.hasOwnProperty.call(o.data.properties,s));if(i.length>0)throw new ve(ee.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${i.join(", ")}`);return{...e,mode:"form",requestedSchema:o.data}}function H$(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,r=typeof e.requestState=="string";if(!t&&!r)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var Z$=Object.assign(H$,{elicit(e){try{return{method:"elicitation/create",params:V$(e)}}catch(t){throw t instanceof ve?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});var T_=250;function $_(e,t){return`Multi-round-trip request '${e}' still required input after ${t} rounds (inputRequired.maxRounds)`}function P_(e,t){return new Promise((r,o)=>{if(t?.aborted){o(t.reason instanceof _e?t.reason:new _e(Ee.RequestTimeout,String(t.reason)));return}let n=setTimeout(()=>{t?.removeEventListener("abort",i),r()},e),i=()=>{clearTimeout(n),o(t?.reason instanceof _e?t.reason:new _e(Ee.RequestTimeout,String(t?.reason)))};t?.addEventListener("abort",i,{once:!0})})}function O_(e){let t=new AbortController,r=()=>t.abort(e?.reason);return e?.addEventListener("abort",r,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:o=>t.abort(o),dispose:()=>e?.removeEventListener("abort",r)}}var J$=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],K$={IdJagTokenExchangeResponseSchema:Bd,OAuthClientInformationFullSchema:Hd,OAuthClientInformationSchema:Ol,OAuthClientMetadataSchema:Pl,OAuthClientRegistrationErrorSchema:Zd,OAuthErrorResponseSchema:Vd,OAuthMetadataSchema:Tl,OAuthProtectedResourceMetadataSchema:Dd,OAuthTokenRevocationRequestSchema:Jd,OAuthTokensSchema:Fd,OpenIdProviderDiscoveryMetadataSchema:Ud,OpenIdProviderMetadataSchema:$l},k_={},C_={};function A_(e,t){let r=e.slice(0,-6);k_[r]=t,C_[r]=o=>t.safeParse(o).success}for(let e of J$)A_(e,z$[e]);for(let[e,t]of Object.entries(K$))A_(e,t);var G$=Object.freeze(k_),W$=Object.freeze(C_);function Y$(e){switch(e){case"initialize":case"notifications/initialized":return on(void 0);case"server/discover":return on(dm);default:return}}var I_=6e4,X$=[eo,Bo,ur,Rr],Q$=["inputResponses","requestState"];function o_(e,t){let r=e.params;if(!os(r))return{message:e,lifted:{}};let o=r._meta,n=os(o)?X$.filter(c=>c in o):[],i=t==="request"?Q$.filter(c=>c in r):[];if(n.length===0&&i.length===0)return{message:e,lifted:{}};let s={},a={...r};if(n.length>0&&os(o)){let c={},l={...o};for(let u of n)c[u]=o[u],delete l[u];s.envelope=c,Object.keys(l).length>0?a._meta=l:delete a._meta}for(let c of i)c==="inputResponses"&&(s.inputResponses=a[c]),c==="requestState"&&(s.requestState=a[c]),delete a[c];return{message:{...e,params:a},lifted:s}}function n_(e,t){let r=e.validateResult(t,void 0);if(!(!r.ok&&r.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(o){let n=e.validateResult(t,o);return n.ok?{value:n.value}:{issues:[{message:n.reason==="invalid"?n.message:`not-in-era: ${t}`}]}}}}}function ss(e){return()=>e}var eP=ss(void 0);function _m(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:ss(t)}}}var tP;var Sm=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{tP=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??Ba,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let r=e.params??{};return{...e,params:{...r,_meta:{...t,...r._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new _e(Ee.UnsupportedResultType,`Unsupported result type '${e.kind}' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,r,o,n=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,t),startTime:Date.now(),timeout:t,maxTotalTimeout:r,resetTimeoutOnProgress:n,onTimeout:o})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let r=Date.now()-t.startTime;if(t.maxTotalTimeout&&r>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new _e(Ee.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:r});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let r=this.transport?.onerror;this._transport.onerror=n=>{r?.(n),this._onerror(n)};let o=this._transport?.onmessage;this._transport.onmessage=(n,i)=>{o?.(n,i),ql(n)||hm(n)?this._onresponse(n):mm(n)?this._onrequest(n,i):fm(n)?this._onnotification(n,i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(n)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let o of this._timeoutInfo.values())clearTimeout(o.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let r=new _e(Ee.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let o of e.values())o(r);for(let o of t.values())o.abort(r)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:r}=o_(e,"notification"),o=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let s=Qb(t.classification);if(s!==o.era){this._onerror(new Error(`Era mismatch on inbound notification '${r.method}': classified as ${s} but this instance serves ${o.era}`));return}}if(Wd(r.method)&&!o.hasNotificationMethod(r.method))return;let n=this._notificationHandlers.get(r.method),i=this.fallbackNotificationHandler;n===void 0&&i===void 0||Promise.resolve().then(()=>n===void 0?i(r):n(r,o)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(e,t){let{message:r,lifted:o}=o_(e,"request"),n=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request '${e.method}': not servable on this connection's protocol era`));return}let i=this._transport,s=(v,y,m)=>{let b={jsonrpc:"2.0",id:r.id,error:{code:v,message:y,...m!==void 0&&{data:m}}};i?.send(b).catch(_=>this._onerror(new Error(`Failed to send an error response: ${_}`)))};if(t?.classification!==void 0){let v=Qb(t.classification);if(v!==n.era){this._onerror(new Error(`Era mismatch on inbound request '${r.method}': classified as ${v} but this instance serves ${n.era}`));let y=t.classification.revision??v;s(ee.UnsupportedProtocolVersion,`Unsupported protocol version: ${y}`,{supported:this._supportedProtocolVersions,requested:y});return}}if(Gd(r.method)&&!n.hasRequestMethod(r.method)){s(ee.MethodNotFound,"Method not found");return}let a=this._requestHandlers.get(r.method)??this.fallbackRequestHandler;if(a===void 0){s(ee.MethodNotFound,"Method not found");return}let c=n.checkInboundEnvelope(o);if(c!==void 0){s(ee.InvalidParams,c);return}let l=(v,y)=>this._notificationViaCodec(this._resolveOutboundCodec(v.method),v,{...y,relatedRequestId:r.id}),u=(v,y,m)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(v.method),v,y,{...m,relatedRequestId:r.id}),p=new AbortController;this._requestHandlerAbortControllers.set(r.id,p);let d=o.inputResponses===void 0?void 0:rP(o.inputResponses),f={sessionId:i?.sessionId,mcpReq:{id:r.id,method:r.method,_meta:r.params?._meta,...o.envelope!==void 0&&{envelope:o.envelope},...d!==void 0&&{inputResponses:d.accepted},...d!==void 0&&d.droppedKeys.length>0&&{droppedInputResponseKeys:d.droppedKeys},requestState:o.requestState===void 0?eP:ss(o.requestState),signal:p.signal,send:((v,y,m)=>{let b=this._resolveOutboundCodec(v.method);if(this._assertOutboundRequestInEra(b,v.method),nn(y))return u(v,y,m);let _=n_(b,v.method);if(_===void 0)throw new TypeError(`'${v.method}' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(v,_,y)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},g=this.buildContext(f,t);Promise.resolve().then(()=>a(r,g)).then(async v=>{if(p.signal.aborted)return;let y;try{y=n.encodeResult(r.method,v,this._outboundServerInfo())}catch(b){this._onerror(new Error(`Failed to encode result for ${r.method}: ${b}`)),s(ee.InternalError,"Internal error");return}let m={result:y,jsonrpc:"2.0",id:r.id};await i?.send(m)},async v=>{if(p.signal.aborted)return;let y=Number.isSafeInteger(v.code)?v.code:ee.InternalError,m={jsonrpc:"2.0",id:r.id,error:{code:n.encodeErrorCode(y),message:v.message??"Internal error",...v.data!==void 0&&{data:v.data}}};await i?.send(m)}).catch(v=>this._onerror(new Error(`Failed to send response: ${v}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===p&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(e){let{progressToken:t,...r}=e.params,o=Number(t),n=this._progressHandlers.get(o);if(!n){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let i=this._responseHandlers.get(o),s=this._timeoutInfo.get(o);if(s&&i&&s.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(a){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),i(a);return}n(r)}_onresponse(e){let t=Number(e.id),r=this._responseHandlers.get(t);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),ql(e)?r(e):r(ve.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,r){let o=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(o,e.method),nn(t))return this._requestWithSchemaViaCodec(o,e,t,r);let n=n_(o,e.method);if(n===void 0)throw new TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(o,e,n,t)}_negotiatedWireCodec(){return on(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=Y$(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(Gd(t)&&!e.hasRequestMethod(t))throw new _e(Ee.MethodNotSupportedByProtocolVersion,`Method '${t}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,r){let o=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(o,e.method),this._requestWithSchemaViaCodec(o,e,t,r)}_requestWithSchemaViaCodec(e,t,r,o){let{relatedRequestId:n,resumptionToken:i,onresumptiontoken:s,headers:a}=o??{},c=Date.now(),l,u;return new Promise((p,d)=>{let f=S=>{d(S)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(S){f(S);return}if(o?.signal?.aborted){let S=o.signal.reason;throw S instanceof _e?S:new _e(Ee.RequestTimeout,String(S))}let g=e.era===dm&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,v=this._requestMessageId++;u=v;let y={...t,jsonrpc:"2.0",id:v};o?.onprogress&&(this._progressHandlers.set(v,o.onprogress),y.params={...t.params,_meta:{...t.params?._meta,progressToken:v}});let m=this._envelopeOutbound(y),b=!1,_=S=>{b||(this._progressHandlers.delete(v),g===void 0?this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:v,reason:String(S)}}),{relatedRequestId:n,resumptionToken:i,onresumptiontoken:s}).catch(x=>this._onerror(new Error(`Failed to send cancellation: ${x}`))):g.abort(),d(S instanceof _e?S:new _e(Ee.RequestTimeout,String(S))))};this._responseHandlers.set(v,S=>{if(o?.signal?.aborted)return;if(b=!0,S instanceof Error)return d(S);let x;try{x=e.decodeResult(t.method,S.result)}catch(j){return d(j instanceof Error?j:new Error(String(j)))}if(x.kind==="invalid")return d(x.error);if(x.kind==="input_required"){if(o?.allowInputRequired===!0)return p(oP(x));let j={codec:e,request:t,resultSchema:r,options:o,flowStartedAt:c,retry:(V,C)=>this._requestWithSchemaViaCodec(e,V===void 0?{method:t.method}:{method:t.method,params:V},r,C)};return p(this._resolveNonCompleteResult(x,j))}let T=x.result;oo(r,T).then(j=>{j.success?p(j.data):d(new _e(Ee.InvalidResult,`Invalid result for ${t.method}: ${j.error}`))},d)}),l=()=>_(o?.signal?.reason),o?.signal?.addEventListener("abort",l,{once:!0});let w=o?.timeout??I_,z=()=>_(new _e(Ee.RequestTimeout,"Request timed out",{timeout:w}));this._setupTimeout(v,w,o?.maxTotalTimeout,z,o?.resetTimeoutOnProgress??!1),this._transport.send(m,{relatedRequestId:n,resumptionToken:i,onresumptiontoken:s,headers:a,requestSignal:g?.signal}).catch(S=>{this._progressHandlers.delete(v),d(S)})}).finally(()=>{l&&o?.signal?.removeEventListener("abort",l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,r){if(!this._transport)throw new _e(Ee.NotConnected,"Not connected");if(Wd(t.method)&&!e.hasNotificationMethod(t.method))throw new _e(Ee.MethodNotSupportedByProtocolVersion,`Notification '${t.method}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let o=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(o,r).catch(n=>this._onerror(n))});return}await this._transport.send(o,r)}setRequestHandler(e,t,r){this.assertRequestHandlerCapability(e);let o;if(typeof t=="function"){if(!Gd(e))throw new TypeError(`'${e}' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);o=(n,i)=>{let s=this._negotiatedWireCodec(),a=s.validateRequest(e,n);if(!a.ok&&a.reason==="not-in-era"&&(a=s.validateInputRequest(e,n)),!a.ok)throw a.reason==="not-in-era"?new ve(ee.InternalError,`No wire schema for ${e} in the resolved era`):new Error(a.message);return Promise.resolve(t(a.value,i))}}else if(r)o=async(n,i)=>{let s=await oo(t.params,{...n.params});if(!s.success)throw new ve(ee.InvalidParams,`Invalid params for ${e}: ${s.error}`);return r(s.data,i)};else throw new TypeError("setRequestHandler: handler is required");this._requestHandlers.set(e,this._wrapHandler(e,o))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,r){if(typeof t=="function"){if(!Wd(e))throw new TypeError(`'${e}' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(o,n)=>{let i=n.validateNotification(e,o);if(!i.ok)throw i.reason==="not-in-era"?new ve(ee.InternalError,`No wire schema for ${e} in the resolved era`):new Error(i.message);return Promise.resolve(t(i.value))});return}if(!r)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async o=>{let n=await oo(t.params,{...o.params});if(!n.success)throw new ve(ee.InvalidParams,`Invalid params for notification ${e}: ${n.error}`);await r(n.data,o)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function os(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function xm(e,t){let r={...e};for(let o in t){let n=o,i=t[n];if(i===void 0)continue;let s=r[n];r[n]=os(s)&&os(i)?{...s,...i}:i}return r}function i_(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function rP(e){let t={},r=[];if(!i_(e))return{accepted:t,droppedKeys:r};for(let[o,n]of Object.entries(e)){if(!i_(n)||"method"in n||"result"in n){r.push(o);continue}t[o]=n}return{accepted:t,droppedKeys:r}}function oP(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState}}}var nP=Z((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,r=/\\([\u000b\u0020-\u00ff])/g,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=n;function n(a){if(!a)throw new TypeError("argument string is required");var c=typeof a=="object"?i(a):a;if(typeof c!="string")throw new TypeError("argument string is required to be a string");var l=c.indexOf(";"),u=l!==-1?c.slice(0,l).trim():c.trim();if(!o.test(u))throw new TypeError("invalid media type");var p=new s(u.toLowerCase());if(l!==-1){var d,f,g;for(t.lastIndex=l;f=t.exec(c);){if(f.index!==l)throw new TypeError("invalid parameter format");l+=f[0].length,d=f[1].toLowerCase(),g=f[2],g.charCodeAt(0)===34&&(g=g.slice(1,-1),g.indexOf("\\")!==-1&&(g=g.replace(r,"$1"))),p.parameters[d]=g}if(l!==c.length)throw new TypeError("invalid parameter format")}return p}function i(a){var c;if(typeof a.getHeader=="function"?c=a.getHeader("content-type"):typeof a.headers=="object"&&(c=a.headers&&a.headers["content-type"]),typeof c!="string")throw new TypeError("content-type header is missing from object");return c}function s(a){this.parameters=Object.create(null),this.type=a}})),g2=pa(nP(),1);var j_=10*1024*1024,wm=class{_buffer;_maxBufferSize;constructor(e){this._maxBufferSize=e?.maxBufferSize??j_}append(e){if((this._buffer?.length??0)+e.length>this._maxBufferSize)throw this.clear(),new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){for(;this._buffer;){let e=this._buffer.indexOf(`
|
|
66
|
+
`);if(e===-1)return null;let t=this._buffer.toString("utf8",0,e).replace(/\r$/,"");this._buffer=this._buffer.subarray(e+1);try{return N_(t)}catch(r){if(r instanceof SyntaxError)continue;throw r}}return null}clear(){this._buffer=void 0}};function N_(e){return Ii.parse(JSON.parse(e))}function Rm(e){return JSON.stringify(e)+`
|
|
67
|
+
`}var iP=/^[A-Za-z0-9._-]{1,128}$/;function sP(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!iP.test(e)){let r=[...e].filter(o=>!/[A-Za-z0-9._-]/.test(o)).filter((o,n,i)=>i.indexOf(o)===n);return t.push(`Tool name contains invalid characters: ${r.map(o=>`"${o}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function aP(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let r of t)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function zm(e){let t=sP(e);return aP(e,t.warnings),t.isValid}function cP(e){return typeof e=="object"&&e!==null&&"_zod"in e}function lP(e){return typeof e=="object"&&e!==null&&!("_zod"in e)&&"_def"in e&&typeof e._def?.typeName=="string"}function uP(e){if(typeof e!="object"||e===null||nn(e))return!1;let t=Object.getPrototypeOf(e);return t!==Object.prototype&&t!==null?!1:Object.values(e).every(r=>cP(r))}function Bl(e){if(e!==void 0){if(uP(e))return P(e);if(typeof e=="object"&&e!==null&&!nn(e)&&Object.values(e).some(t=>lP(t)))throw new TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!nn(e))throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}var Hl=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var r=class extends t{constructor(m){if(super(),!e.IDENTIFIER.test(m))throw new Error("CodeGen: name must be a valid identifier");this.str=m}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=r;var o=class extends t{constructor(m){super(),this._items=typeof m=="string"?[m]:m}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let m=this._items[0];return m===""||m==='""'}get str(){var m;return(m=this._str)!==null&&m!==void 0?m:this._str=this._items.reduce((b,_)=>`${b}${_}`,"")}get names(){var m;return(m=this._names)!==null&&m!==void 0?m:this._names=this._items.reduce((b,_)=>(_ instanceof r&&(b[_.str]=(b[_.str]||0)+1),b),{})}};e._Code=o,e.nil=new o("");function n(m,...b){let _=[m[0]],w=0;for(;w<b.length;)a(_,b[w]),_.push(m[++w]);return new o(_)}e._=n;let i=new o("+");function s(m,...b){let _=[f(m[0])],w=0;for(;w<b.length;)_.push(i),a(_,b[w]),_.push(i,f(m[++w]));return c(_),new o(_)}e.str=s;function a(m,b){b instanceof o?m.push(...b._items):b instanceof r?m.push(b):m.push(p(b))}e.addCodeArg=a;function c(m){let b=1;for(;b<m.length-1;){if(m[b]===i){let _=l(m[b-1],m[b+1]);if(_!==void 0){m.splice(b-1,3,_);continue}m[b++]="+"}b++}}function l(m,b){if(b==='""')return m;if(m==='""')return b;if(typeof m=="string")return b instanceof r||m[m.length-1]!=='"'?void 0:typeof b!="string"?`${m.slice(0,-1)}${b}"`:b[0]==='"'?m.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(m instanceof r))return`"${m}${b.slice(1)}`}function u(m,b){return b.emptyStr()?m:m.emptyStr()?b:s`${m}${b}`}e.strConcat=u;function p(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:f(Array.isArray(m)?m.join(","):m)}function d(m){return new o(f(m))}e.stringify=d;function f(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=f;function g(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new o(`.${m}`):n`[${m}]`}e.getProperty=g;function v(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new o(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=v;function y(m){return new o(m.toString())}e.regexpCode=y})),q_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=Hl();var r=class extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}},o;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};var n=class{constructor({prefixes:c,parent:l}={}){this._names={},this._prefixes=c,this._parent=l}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){let l=this._names[c]||this._nameGroup(c);return`${c}${l.index++}`}_nameGroup(c){var l,u;if(!((u=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||u===void 0)&&u.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}};e.Scope=n;var i=class extends t.Name{constructor(c,l){super(l),this.prefix=c}setValue(c,{property:l,itemIndex:u}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(l)}[${u}]`}};e.ValueScopeName=i;let s=(0,t._)`\n`;var a=class extends n{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?s:t.nil}}get(){return this._scope}name(c){return new i(c,this._newName(c))}value(c,l){var u;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let p=this.toName(c),{prefix:d}=p,f=(u=l.key)!==null&&u!==void 0?u:l.ref,g=this._values[d];if(g){let m=g.get(f);if(m)return m}else g=this._values[d]=new Map;g.set(f,p);let v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=l.ref,p.setValue(l,{property:d,itemIndex:y}),p}getValue(c,l){let u=this._values[c];if(u)return u.get(l)}scopeRefs(c,l=this._values){return this._reduceValues(l,u=>{if(u.scopePath===void 0)throw new Error(`CodeGen: name "${u}" has no value`);return(0,t._)`${c}${u.scopePath}`})}scopeCode(c=this._values,l,u){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},l,u)}_reduceValues(c,l,u={},p){let d=t.nil;for(let f in c){let g=c[f];if(!g)continue;let v=u[f]=u[f]||new Map;g.forEach(y=>{if(v.has(y))return;v.set(y,o.Started);let m=l(y);if(m){let b=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${b} ${y} = ${m};${this.opts._n}`}else if(m=p?.(y))d=(0,t._)`${d}${m}${this.opts._n}`;else throw new r(y);v.set(y,o.Completed)})}return d}};e.ValueScope=a})),Se=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=Hl(),r=q_();var o=Hl();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var n=q_();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};var i=class{optimizeNodes(){return this}optimizeNames(R,O){return this}},s=class extends i{constructor(R,O,N){super(),this.varKind=R,this.name=O,this.rhs=N}render({es5:R,_n:O}){let N=R?r.varKinds.var:this.varKind,W=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${W};`+O}optimizeNames(R,O){if(R[this.name.str])return this.rhs&&(this.rhs=G(this.rhs,R,O)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},a=class extends i{constructor(R,O,N){super(),this.lhs=R,this.rhs=O,this.sideEffects=N}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,O){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=G(this.rhs,R,O),this}get names(){return Y(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends a{constructor(R,O,N,W){super(R,N,W),this.op=O}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}},l=class extends i{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}},u=class extends i{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}},p=class extends i{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}},d=class extends i{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,O){return this.code=G(this.code,R,O),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},f=class extends i{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((O,N)=>O+N.render(R),"")}optimizeNodes(){let{nodes:R}=this,O=R.length;for(;O--;){let N=R[O].optimizeNodes();Array.isArray(N)?R.splice(O,1,...N):N?R[O]=N:R.splice(O,1)}return R.length>0?this:void 0}optimizeNames(R,O){let{nodes:N}=this,W=N.length;for(;W--;){let K=N[W];K.optimizeNames(R,O)||(he(R,K.names),N.splice(W,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((R,O)=>B(R,O.names),{})}},g=class extends f{render(R){return"{"+R._n+super.render(R)+"}"+R._n}},v=class extends f{},y=class extends g{};y.kind="else";var m=class Vl extends g{constructor(O,N){super(N),this.condition=O}render(O){let N=`if(${this.condition})`+super.render(O);return this.else&&(N+="else "+this.else.render(O)),N}optimizeNodes(){super.optimizeNodes();let O=this.condition;if(O===!0)return this.nodes;let N=this.else;if(N){let W=N.optimizeNodes();N=this.else=Array.isArray(W)?new y(W):W}if(N)return O===!1?N instanceof Vl?N:N.nodes:this.nodes.length?this:new Vl(je(O),N instanceof Vl?[N]:N.nodes);if(!(O===!1||!this.nodes.length))return this}optimizeNames(O,N){var W;if(this.else=(W=this.else)===null||W===void 0?void 0:W.optimizeNames(O,N),!!(super.optimizeNames(O,N)||this.else))return this.condition=G(this.condition,O,N),this}get names(){let O=super.names;return Y(O,this.condition),this.else&&B(O,this.else.names),O}};m.kind="if";var b=class extends g{};b.kind="for";var _=class extends b{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,O){if(super.optimizeNames(R,O))return this.iteration=G(this.iteration,R,O),this}get names(){return B(super.names,this.iteration.names)}},w=class extends b{constructor(R,O,N,W){super(),this.varKind=R,this.name=O,this.from=N,this.to=W}render(R){let O=R.es5?r.varKinds.var:this.varKind,{name:N,from:W,to:K}=this;return`for(${O} ${N}=${W}; ${N}<${K}; ${N}++)`+super.render(R)}get names(){return Y(Y(super.names,this.from),this.to)}},z=class extends b{constructor(R,O,N,W){super(),this.loop=R,this.varKind=O,this.name=N,this.iterable=W}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,O){if(super.optimizeNames(R,O))return this.iterable=G(this.iterable,R,O),this}get names(){return B(super.names,this.iterable.names)}},S=class extends g{constructor(R,O,N){super(),this.name=R,this.args=O,this.async=N}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}};S.kind="func";var x=class extends f{render(R){return"return "+super.render(R)}};x.kind="return";var T=class extends g{render(R){let O="try"+super.render(R);return this.catch&&(O+=this.catch.render(R)),this.finally&&(O+=this.finally.render(R)),O}optimizeNodes(){var R,O;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(O=this.finally)===null||O===void 0||O.optimizeNodes(),this}optimizeNames(R,O){var N,W;return super.optimizeNames(R,O),(N=this.catch)===null||N===void 0||N.optimizeNames(R,O),(W=this.finally)===null||W===void 0||W.optimizeNames(R,O),this}get names(){let R=super.names;return this.catch&&B(R,this.catch.names),this.finally&&B(R,this.finally.names),R}},j=class extends g{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}};j.kind="catch";var V=class extends g{render(R){return"finally"+super.render(R)}};V.kind="finally";var C=class{constructor(R,O={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...O,_n:O.lines?`
|
|
68
|
+
`:""},this._extScope=R,this._scope=new r.Scope({parent:R}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,O){let N=this._extScope.value(R,O);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(R,O){return this._extScope.getValue(R,O)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,O,N,W){let K=this._scope.toName(O);return N!==void 0&&W&&(this._constants[K.str]=N),this._leafNode(new s(R,K,N)),K}const(R,O,N){return this._def(r.varKinds.const,R,O,N)}let(R,O,N){return this._def(r.varKinds.let,R,O,N)}var(R,O,N){return this._def(r.varKinds.var,R,O,N)}assign(R,O,N){return this._leafNode(new a(R,O,N))}add(R,O){return this._leafNode(new c(R,e.operators.ADD,O))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new d(R)),this}object(...R){let O=["{"];for(let[N,W]of R)O.length>1&&O.push(","),O.push(N),(N!==W||this.opts.es5)&&(O.push(":"),(0,t.addCodeArg)(O,W));return O.push("}"),new t._Code(O)}if(R,O,N){if(this._blockNode(new m(R)),O&&N)this.code(O).else().code(N).endIf();else if(O)this.code(O).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new m(R))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(m,y)}_for(R,O){return this._blockNode(R),O&&this.code(O).endFor(),this}for(R,O){return this._for(new _(R),O)}forRange(R,O,N,W,K=this.opts.es5?r.varKinds.var:r.varKinds.let){let le=this._scope.toName(R);return this._for(new w(K,le,O,N),()=>W(le))}forOf(R,O,N,W=r.varKinds.const){let K=this._scope.toName(R);if(this.opts.es5){let le=O instanceof t.Name?O:this.var("_arr",O);return this.forRange("_i",0,(0,t._)`${le}.length`,ue=>{this.var(K,(0,t._)`${le}[${ue}]`),N(K)})}return this._for(new z("of",W,K,O),()=>N(K))}forIn(R,O,N,W=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${O})`,N);let K=this._scope.toName(R);return this._for(new z("in",W,K,O),()=>N(K))}endFor(){return this._endBlockNode(b)}label(R){return this._leafNode(new l(R))}break(R){return this._leafNode(new u(R))}return(R){let O=new x;if(this._blockNode(O),this.code(R),O.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(R,O,N){if(!O&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');let W=new T;if(this._blockNode(W),this.code(R),O){let K=this.name("e");this._currNode=W.catch=new j(K),O(K)}return N&&(this._currNode=W.finally=new V,this.code(N)),this._endBlockNode(j,V)}throw(R){return this._leafNode(new p(R))}block(R,O){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(O),this}endBlock(R){let O=this._blockStarts.pop();if(O===void 0)throw new Error("CodeGen: not in self-balancing block");let N=this._nodes.length-O;if(N<0||R!==void 0&&N!==R)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${R} expected`);return this._nodes.length=O,this}func(R,O=t.nil,N,W){return this._blockNode(new S(R,O,N)),W&&this.code(W).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,O){let N=this._currNode;if(N instanceof R||O&&N instanceof O)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${O?`${R.kind}/${O.kind}`:R.kind}"`)}_elseNode(R){let O=this._currNode;if(!(O instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=O.else=R,this}get _root(){return this._nodes[0]}get _currNode(){let R=this._nodes;return R[R.length-1]}set _currNode(R){let O=this._nodes;O[O.length-1]=R}};e.CodeGen=C;function B(R,O){for(let N in O)R[N]=(R[N]||0)+(O[N]||0);return R}function Y(R,O){return O instanceof t._CodeOrName?B(R,O.names):R}function G(R,O,N){if(R instanceof t.Name)return W(R);if(!K(R))return R;return new t._Code(R._items.reduce((le,ue)=>(ue instanceof t.Name&&(ue=W(ue)),ue instanceof t._Code?le.push(...ue._items):le.push(ue),le),[]));function W(le){let ue=N[le.str];return ue===void 0||O[le.str]!==1?le:(delete O[le.str],ue)}function K(le){return le instanceof t._Code&&le._items.some(ue=>ue instanceof t.Name&&O[ue.str]===1&&N[ue.str]!==void 0)}}function he(R,O){for(let N in O)R[N]=(R[N]||0)-(O[N]||0)}function je(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${U(R)}`}e.not=je;let Ce=I(e.operators.AND);function Me(...R){return R.reduce(Ce)}e.and=Me;let we=I(e.operators.OR);function k(...R){return R.reduce(we)}e.or=k;function I(R){return(O,N)=>O===t.nil?N:N===t.nil?O:(0,t._)`${U(O)} ${R} ${U(N)}`}function U(R){return R instanceof t.Name?R:(0,t._)`(${R})`}})),Pe=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let t=Se(),r=Hl();function o(S){let x={};for(let T of S)x[T]=!0;return x}e.toHash=o;function n(S,x){return typeof x=="boolean"?x:Object.keys(x).length===0?!0:(i(S,x),!s(x,S.self.RULES.all))}e.alwaysValidSchema=n;function i(S,x=S.schema){let{opts:T,self:j}=S;if(!T.strictSchema||typeof x=="boolean")return;let V=j.RULES.keywords;for(let C in x)V[C]||z(S,`unknown keyword: "${C}"`)}e.checkUnknownRules=i;function s(S,x){if(typeof S=="boolean")return!S;for(let T in S)if(x[T])return!0;return!1}e.schemaHasRules=s;function a(S,x){if(typeof S=="boolean")return!S;for(let T in S)if(T!=="$ref"&&x.all[T])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:S,schemaPath:x},T,j,V){if(!V){if(typeof T=="number"||typeof T=="boolean")return T;if(typeof T=="string")return(0,t._)`${T}`}return(0,t._)`${S}${x}${(0,t.getProperty)(j)}`}e.schemaRefOrVal=c;function l(S){return d(decodeURIComponent(S))}e.unescapeFragment=l;function u(S){return encodeURIComponent(p(S))}e.escapeFragment=u;function p(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=p;function d(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=d;function f(S,x){if(Array.isArray(S))for(let T of S)x(T);else x(S)}e.eachItem=f;function g({mergeNames:S,mergeToName:x,mergeValues:T,resultToName:j}){return(V,C,B,Y)=>{let G=B===void 0?C:B instanceof t.Name?(C instanceof t.Name?S(V,C,B):x(V,C,B),B):C instanceof t.Name?(x(V,B,C),C):T(C,B);return Y===t.Name&&!(G instanceof t.Name)?j(V,G):G}}e.mergeEvaluated={props:g({mergeNames:(S,x,T)=>S.if((0,t._)`${T} !== true && ${x} !== undefined`,()=>{S.if((0,t._)`${x} === true`,()=>S.assign(T,!0),()=>S.assign(T,(0,t._)`${T} || {}`).code((0,t._)`Object.assign(${T}, ${x})`))}),mergeToName:(S,x,T)=>S.if((0,t._)`${T} !== true`,()=>{x===!0?S.assign(T,!0):(S.assign(T,(0,t._)`${T} || {}`),y(S,T,x))}),mergeValues:(S,x)=>S===!0?!0:{...S,...x},resultToName:v}),items:g({mergeNames:(S,x,T)=>S.if((0,t._)`${T} !== true && ${x} !== undefined`,()=>S.assign(T,(0,t._)`${x} === true ? true : ${T} > ${x} ? ${T} : ${x}`)),mergeToName:(S,x,T)=>S.if((0,t._)`${T} !== true`,()=>S.assign(T,x===!0?!0:(0,t._)`${T} > ${x} ? ${T} : ${x}`)),mergeValues:(S,x)=>S===!0?!0:Math.max(S,x),resultToName:(S,x)=>S.var("items",x)})};function v(S,x){if(x===!0)return S.var("props",!0);let T=S.var("props",(0,t._)`{}`);return x!==void 0&&y(S,T,x),T}e.evaluatedPropsToName=v;function y(S,x,T){Object.keys(T).forEach(j=>S.assign((0,t._)`${x}${(0,t.getProperty)(j)}`,!0))}e.setEvaluated=y;let m={};function b(S,x){return S.scopeValue("func",{ref:x,code:m[x.code]||(m[x.code]=new r._Code(x.code))})}e.useFunc=b;var _;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(_||(e.Type=_={}));function w(S,x,T){if(S instanceof t.Name){let j=x===_.Num;return T?j?(0,t._)`"[" + ${S} + "]"`:(0,t._)`"['" + ${S} + "']"`:j?(0,t._)`"/" + ${S}`:(0,t._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return T?(0,t.getProperty)(S).toString():"/"+p(S)}e.getErrorPath=w;function z(S,x,T=S.opts.strictSchema){if(T){if(x=`strict mode: ${x}`,T===!0)throw new Error(x);S.self.logger.warn(x)}}e.checkStrictMode=z})),Vt=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};e.default=r})),Jl=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let t=Se(),r=Pe(),o=Vt();e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:m})=>m?(0,t.str)`"${y}" keyword must be ${m} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function n(y,m=e.keywordError,b,_){let{it:w}=y,{gen:z,compositeRule:S,allErrors:x}=w,T=p(y,m,b);_??(S||x)?c(z,T):l(w,(0,t._)`[${T}]`)}e.reportError=n;function i(y,m=e.keywordError,b){let{it:_}=y,{gen:w,compositeRule:z,allErrors:S}=_;c(w,p(y,m,b)),z||S||l(_,o.default.vErrors)}e.reportExtraError=i;function s(y,m){y.assign(o.default.errors,m),y.if((0,t._)`${o.default.vErrors} !== null`,()=>y.if(m,()=>y.assign((0,t._)`${o.default.vErrors}.length`,m),()=>y.assign(o.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:y,keyword:m,schemaValue:b,data:_,errsCount:w,it:z}){if(w===void 0)throw new Error("ajv implementation error");let S=y.name("err");y.forRange("i",w,o.default.errors,x=>{y.const(S,(0,t._)`${o.default.vErrors}[${x}]`),y.if((0,t._)`${S}.instancePath === undefined`,()=>y.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(o.default.instancePath,z.errorPath))),y.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${z.errSchemaPath}/${m}`),z.opts.verbose&&(y.assign((0,t._)`${S}.schema`,b),y.assign((0,t._)`${S}.data`,_))})}e.extendErrors=a;function c(y,m){let b=y.const("err",m);y.if((0,t._)`${o.default.vErrors} === null`,()=>y.assign(o.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${o.default.vErrors}.push(${b})`),y.code((0,t._)`${o.default.errors}++`)}function l(y,m){let{gen:b,validateName:_,schemaEnv:w}=y;w.$async?b.throw((0,t._)`new ${y.ValidationError}(${m})`):(b.assign((0,t._)`${_}.errors`,m),b.return(!1))}let u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(y,m,b){let{createErrors:_}=y.it;return _===!1?(0,t._)`{}`:d(y,m,b)}function d(y,m,b={}){let{gen:_,it:w}=y,z=[f(w,b),g(y,b)];return v(y,m,z),_.object(...z)}function f({errorPath:y},{instancePath:m}){let b=m?(0,t.str)`${y}${(0,r.getErrorPath)(m,r.Type.Str)}`:y;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,b)]}function g({keyword:y,it:{errSchemaPath:m}},{schemaPath:b,parentSchema:_}){let w=_?m:(0,t.str)`${m}/${y}`;return b&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,w]}function v(y,{params:m,message:b},_){let{keyword:w,data:z,schemaValue:S,it:x}=y,{opts:T,propertyName:j,topSchemaRef:V,schemaPath:C}=x;_.push([u.keyword,w],[u.params,typeof m=="function"?m(y):m||(0,t._)`{}`]),T.messages&&_.push([u.message,typeof b=="function"?b(y):b]),T.verbose&&_.push([u.schema,S],[u.parentSchema,(0,t._)`${V}${C}`],[o.default.data,z]),j&&_.push([u.propertyName,j])}})),pP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let t=Jl(),r=Se(),o=Vt(),n={message:"boolean schema is false"};function i(c){let{gen:l,schema:u,validateName:p}=c;u===!1?a(c,!1):typeof u=="object"&&u.$async===!0?l.return(o.default.data):(l.assign((0,r._)`${p}.errors`,null),l.return(!0))}e.topBoolOrEmptySchema=i;function s(c,l){let{gen:u,schema:p}=c;p===!1?(u.var(l,!1),a(c)):u.var(l,!0)}e.boolOrEmptySchema=s;function a(c,l){let{gen:u,data:p}=c,d={gen:u,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,t.reportError)(d,n,void 0,l)}})),M_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set(["string","number","integer","boolean","null","object","array"]);function r(n){return typeof n=="string"&&t.has(n)}e.isJSONType=r;function o(){let n={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...n,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},n.number,n.string,n.array,n.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=o})),L_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:n,self:i},s){let a=i.RULES.types[s];return a&&a!==!0&&r(n,a)}e.schemaHasRulesForType=t;function r(n,i){return i.rules.some(s=>o(n,s))}e.shouldUseGroup=r;function o(n,i){var s;return n[i.keyword]!==void 0||((s=i.definition.implements)===null||s===void 0?void 0:s.some(a=>n[a]!==void 0))}e.shouldUseRule=o})),Zl=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let t=M_(),r=L_(),o=Jl(),n=Se(),i=Pe();var s;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(s||(e.DataType=s={}));function a(_){let w=c(_.type);if(w.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&w.push("null")}return w}e.getSchemaTypes=a;function c(_){let w=Array.isArray(_)?_:_?[_]:[];if(w.every(t.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}e.getJSONTypes=c;function l(_,w){let{gen:z,data:S,opts:x}=_,T=p(w,x.coerceTypes),j=w.length>0&&!(T.length===0&&w.length===1&&(0,r.schemaHasRulesForType)(_,w[0]));if(j){let V=v(w,S,x.strictNumbers,s.Wrong);z.if(V,()=>{T.length?d(_,w,T):m(_)})}return j}e.coerceAndCheckDataType=l;let u=new Set(["string","number","integer","boolean","null"]);function p(_,w){return w?_.filter(z=>u.has(z)||w==="array"&&z==="array"):[]}function d(_,w,z){let{gen:S,data:x,opts:T}=_,j=S.let("dataType",(0,n._)`typeof ${x}`),V=S.let("coerced",(0,n._)`undefined`);T.coerceTypes==="array"&&S.if((0,n._)`${j} == 'object' && Array.isArray(${x}) && ${x}.length == 1`,()=>S.assign(x,(0,n._)`${x}[0]`).assign(j,(0,n._)`typeof ${x}`).if(v(w,x,T.strictNumbers),()=>S.assign(V,x))),S.if((0,n._)`${V} !== undefined`);for(let B of z)(u.has(B)||B==="array"&&T.coerceTypes==="array")&&C(B);S.else(),m(_),S.endIf(),S.if((0,n._)`${V} !== undefined`,()=>{S.assign(x,V),f(_,V)});function C(B){switch(B){case"string":S.elseIf((0,n._)`${j} == "number" || ${j} == "boolean"`).assign(V,(0,n._)`"" + ${x}`).elseIf((0,n._)`${x} === null`).assign(V,(0,n._)`""`);return;case"number":S.elseIf((0,n._)`${j} == "boolean" || ${x} === null
|
|
69
|
+
|| (${j} == "string" && ${x} && ${x} == +${x})`).assign(V,(0,n._)`+${x}`);return;case"integer":S.elseIf((0,n._)`${j} === "boolean" || ${x} === null
|
|
70
|
+
|| (${j} === "string" && ${x} && ${x} == +${x} && !(${x} % 1))`).assign(V,(0,n._)`+${x}`);return;case"boolean":S.elseIf((0,n._)`${x} === "false" || ${x} === 0 || ${x} === null`).assign(V,!1).elseIf((0,n._)`${x} === "true" || ${x} === 1`).assign(V,!0);return;case"null":S.elseIf((0,n._)`${x} === "" || ${x} === 0 || ${x} === false`),S.assign(V,null);return;case"array":S.elseIf((0,n._)`${j} === "string" || ${j} === "number"
|
|
71
|
+
|| ${j} === "boolean" || ${x} === null`).assign(V,(0,n._)`[${x}]`)}}}function f({gen:_,parentData:w,parentDataProperty:z},S){_.if((0,n._)`${w} !== undefined`,()=>_.assign((0,n._)`${w}[${z}]`,S))}function g(_,w,z,S=s.Correct){let x=S===s.Correct?n.operators.EQ:n.operators.NEQ,T;switch(_){case"null":return(0,n._)`${w} ${x} null`;case"array":T=(0,n._)`Array.isArray(${w})`;break;case"object":T=(0,n._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":T=j((0,n._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":T=j();break;default:return(0,n._)`typeof ${w} ${x} ${_}`}return S===s.Correct?T:(0,n.not)(T);function j(V=n.nil){return(0,n.and)((0,n._)`typeof ${w} == "number"`,V,z?(0,n._)`isFinite(${w})`:n.nil)}}e.checkDataType=g;function v(_,w,z,S){if(_.length===1)return g(_[0],w,z,S);let x,T=(0,i.toHash)(_);if(T.array&&T.object){let j=(0,n._)`typeof ${w} != "object"`;x=T.null?j:(0,n._)`!${w} || ${j}`,delete T.null,delete T.array,delete T.object}else x=n.nil;T.number&&delete T.integer;for(let j in T)x=(0,n.and)(x,g(j,w,z,S));return x}e.checkDataTypes=v;let y={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:w})=>typeof _=="string"?(0,n._)`{type: ${_}}`:(0,n._)`{type: ${w}}`};function m(_){let w=b(_);(0,o.reportError)(w,y)}e.reportTypeError=m;function b(_){let{gen:w,data:z,schema:S}=_,x=(0,i.schemaRefOrVal)(_,S,"type");return{gen:w,keyword:"type",data:z,schema:S.type,schemaCode:x,schemaValue:x,parentSchema:S,params:{},it:_}}})),dP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;let t=Se(),r=Pe();function o(i,s){let{properties:a,items:c}=i.schema;if(s==="object"&&a)for(let l in a)n(i,l,a[l].default);else s==="array"&&Array.isArray(c)&&c.forEach((l,u)=>n(i,u,l.default))}e.assignDefaults=o;function n(i,s,a){let{gen:c,compositeRule:l,data:u,opts:p}=i;if(a===void 0)return;let d=(0,t._)`${u}${(0,t.getProperty)(s)}`;if(l){(0,r.checkStrictMode)(i,`default is ignored for: ${d}`);return}let f=(0,t._)`${d} === undefined`;p.useDefaults==="empty"&&(f=(0,t._)`${f} || ${d} === null || ${d} === ""`),c.if(f,(0,t._)`${d} = ${(0,t.stringify)(a)}`)}})),Ht=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;let t=Se(),r=Pe(),o=Vt(),n=Pe();function i(_,w){let{gen:z,data:S,it:x}=_;z.if(p(z,S,w,x.opts.ownProperties),()=>{_.setParams({missingProperty:(0,t._)`${w}`},!0),_.error()})}e.checkReportMissingProp=i;function s({gen:_,data:w,it:{opts:z}},S,x){return(0,t.or)(...S.map(T=>(0,t.and)(p(_,w,T,z.ownProperties),(0,t._)`${x} = ${T}`)))}e.checkMissingProp=s;function a(_,w){_.setParams({missingProperty:w},!0),_.error()}e.reportMissingProp=a;function c(_){return _.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(_,w,z){return(0,t._)`${c(_)}.call(${w}, ${z})`}e.isOwnProperty=l;function u(_,w,z,S){let x=(0,t._)`${w}${(0,t.getProperty)(z)} !== undefined`;return S?(0,t._)`${x} && ${l(_,w,z)}`:x}e.propertyInData=u;function p(_,w,z,S){let x=(0,t._)`${w}${(0,t.getProperty)(z)} === undefined`;return S?(0,t.or)(x,(0,t.not)(l(_,w,z))):x}e.noPropertyInData=p;function d(_){return _?Object.keys(_).filter(w=>w!=="__proto__"):[]}e.allSchemaProperties=d;function f(_,w){return d(w).filter(z=>!(0,r.alwaysValidSchema)(_,w[z]))}e.schemaProperties=f;function g({schemaCode:_,data:w,it:{gen:z,topSchemaRef:S,schemaPath:x,errorPath:T},it:j},V,C,B){let Y=B?(0,t._)`${_}, ${w}, ${S}${x}`:w,G=[[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,T)],[o.default.parentData,j.parentData],[o.default.parentDataProperty,j.parentDataProperty],[o.default.rootData,o.default.rootData]];j.opts.dynamicRef&&G.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);let he=(0,t._)`${Y}, ${z.object(...G)}`;return C!==t.nil?(0,t._)`${V}.call(${C}, ${he})`:(0,t._)`${V}(${he})`}e.callValidateCode=g;let v=(0,t._)`new RegExp`;function y({gen:_,it:{opts:w}},z){let S=w.unicodeRegExp?"u":"",{regExp:x}=w.code,T=x(z,S);return _.scopeValue("pattern",{key:T.toString(),ref:T,code:(0,t._)`${x.code==="new RegExp"?v:(0,n.useFunc)(_,x)}(${z}, ${S})`})}e.usePattern=y;function m(_){let{gen:w,data:z,keyword:S,it:x}=_,T=w.name("valid");if(x.allErrors){let V=w.let("valid",!0);return j(()=>w.assign(V,!1)),V}return w.var(T,!0),j(()=>w.break()),T;function j(V){let C=w.const("len",(0,t._)`${z}.length`);w.forRange("i",0,C,B=>{_.subschema({keyword:S,dataProp:B,dataPropType:r.Type.Num},T),w.if((0,t.not)(T),V)})}}e.validateArray=m;function b(_){let{gen:w,schema:z,keyword:S,it:x}=_;if(!Array.isArray(z))throw new Error("ajv implementation error");if(z.some(V=>(0,r.alwaysValidSchema)(x,V))&&!x.opts.unevaluated)return;let T=w.let("valid",!1),j=w.name("_valid");w.block(()=>z.forEach((V,C)=>{let B=_.subschema({keyword:S,schemaProp:C,compositeRule:!0},j);w.assign(T,(0,t._)`${T} || ${j}`),_.mergeValidEvaluated(B,j)||w.if((0,t.not)(T))})),_.result(T,()=>_.reset(),()=>_.error(!0))}e.validateUnion=b})),mP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;let t=Se(),r=Vt(),o=Ht(),n=Jl();function i(f,g){let{gen:v,keyword:y,schema:m,parentSchema:b,it:_}=f,w=g.macro.call(_.self,m,b,_),z=u(v,y,w);_.opts.validateSchema!==!1&&_.self.validateSchema(w,!0);let S=v.name("valid");f.subschema({schema:w,schemaPath:t.nil,errSchemaPath:`${_.errSchemaPath}/${y}`,topSchemaRef:z,compositeRule:!0},S),f.pass(S,()=>f.error(!0))}e.macroKeywordCode=i;function s(f,g){var v;let{gen:y,keyword:m,schema:b,parentSchema:_,$data:w,it:z}=f;l(z,g);let S=u(y,m,!w&&g.compile?g.compile.call(z.self,b,_,z):g.validate),x=y.let("valid");f.block$data(x,T),f.ok((v=g.valid)!==null&&v!==void 0?v:x);function T(){if(g.errors===!1)C(),g.modifying&&a(f),B(()=>f.error());else{let Y=g.async?j():V();g.modifying&&a(f),B(()=>c(f,Y))}}function j(){let Y=y.let("ruleErrs",null);return y.try(()=>C((0,t._)`await `),G=>y.assign(x,!1).if((0,t._)`${G} instanceof ${z.ValidationError}`,()=>y.assign(Y,(0,t._)`${G}.errors`),()=>y.throw(G))),Y}function V(){let Y=(0,t._)`${S}.errors`;return y.assign(Y,null),C(t.nil),Y}function C(Y=g.async?(0,t._)`await `:t.nil){let G=z.opts.passContext?r.default.this:r.default.self,he=!("compile"in g&&!w||g.schema===!1);y.assign(x,(0,t._)`${Y}${(0,o.callValidateCode)(f,S,G,he)}`,g.modifying)}function B(Y){var G;y.if((0,t.not)((G=g.valid)!==null&&G!==void 0?G:x),Y)}}e.funcKeywordCode=s;function a(f){let{gen:g,data:v,it:y}=f;g.if(y.parentData,()=>g.assign(v,(0,t._)`${y.parentData}[${y.parentDataProperty}]`))}function c(f,g){let{gen:v}=f;v.if((0,t._)`Array.isArray(${g})`,()=>{v.assign(r.default.vErrors,(0,t._)`${r.default.vErrors} === null ? ${g} : ${r.default.vErrors}.concat(${g})`).assign(r.default.errors,(0,t._)`${r.default.vErrors}.length`),(0,n.extendErrors)(f)},()=>f.error())}function l({schemaEnv:f},g){if(g.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,g,v){if(v===void 0)throw new Error(`keyword "${g}" failed to compile`);return f.scopeValue("keyword",typeof v=="function"?{ref:v}:{ref:v,code:(0,t.stringify)(v)})}function p(f,g,v=!1){return!g.length||g.some(y=>y==="array"?Array.isArray(f):y==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==y||v&&typeof f>"u")}e.validSchemaType=p;function d({schema:f,opts:g,self:v,errSchemaPath:y},m,b){if(Array.isArray(m.keyword)?!m.keyword.includes(b):m.keyword!==b)throw new Error("ajv implementation error");let _=m.dependencies;if(_?.some(w=>!Object.prototype.hasOwnProperty.call(f,w)))throw new Error(`parent schema must have dependencies of ${b}: ${_.join(",")}`);if(m.validateSchema&&!m.validateSchema(f[b])){let w=`keyword "${b}" value is invalid at path "${y}": `+v.errorsText(m.validateSchema.errors);if(g.validateSchema==="log")v.logger.error(w);else throw new Error(w)}}e.validateKeywordUsage=d})),fP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;let t=Se(),r=Pe();function o(s,{keyword:a,schemaProp:c,schema:l,schemaPath:u,errSchemaPath:p,topSchemaRef:d}){if(a!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){let f=s.schema[a];return c===void 0?{schema:f,schemaPath:(0,t._)`${s.schemaPath}${(0,t.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${a}`}:{schema:f[c],schemaPath:(0,t._)`${s.schemaPath}${(0,t.getProperty)(a)}${(0,t.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${a}/${(0,r.escapeFragment)(c)}`}}if(l!==void 0){if(u===void 0||p===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:d,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}e.getSubschema=o;function n(s,a,{dataProp:c,dataPropType:l,data:u,dataTypes:p,propertyName:d}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:f}=a;if(c!==void 0){let{errorPath:v,dataPathArr:y,opts:m}=a;g(f.let("data",(0,t._)`${a.data}${(0,t.getProperty)(c)}`,!0)),s.errorPath=(0,t.str)`${v}${(0,r.getErrorPath)(c,l,m.jsPropertySyntax)}`,s.parentDataProperty=(0,t._)`${c}`,s.dataPathArr=[...y,s.parentDataProperty]}u!==void 0&&(g(u instanceof t.Name?u:f.let("data",u,!0)),d!==void 0&&(s.propertyName=d)),p&&(s.dataTypes=p);function g(v){s.data=v,s.dataLevel=a.dataLevel+1,s.dataTypes=[],a.definedProperties=new Set,s.parentData=a.data,s.dataNames=[...a.dataNames,v]}}e.extendSubschemaData=n;function i(s,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:l,createErrors:u,allErrors:p}){l!==void 0&&(s.compositeRule=l),u!==void 0&&(s.createErrors=u),p!==void 0&&(s.allErrors=p),s.jtdDiscriminator=a,s.jtdMetadata=c}e.extendSubschemaMode=i})),D_=Z(((e,t)=>{t.exports=function r(o,n){if(o===n)return!0;if(o&&n&&typeof o=="object"&&typeof n=="object"){if(o.constructor!==n.constructor)return!1;var i,s,a;if(Array.isArray(o)){if(i=o.length,i!=n.length)return!1;for(s=i;s--!==0;)if(!r(o[s],n[s]))return!1;return!0}if(o.constructor===RegExp)return o.source===n.source&&o.flags===n.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===n.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===n.toString();if(a=Object.keys(o),i=a.length,i!==Object.keys(n).length)return!1;for(s=i;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[s]))return!1;for(s=i;s--!==0;){var c=a[s];if(!r(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}})),hP=Z(((e,t)=>{var r=t.exports=function(i,s,a){typeof s=="function"&&(a=s,s={}),a=s.cb||a;var c=typeof a=="function"?a:a.pre||function(){},l=a.post||function(){};o(s,c,l,i,"",i)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function o(i,s,a,c,l,u,p,d,f,g){if(c&&typeof c=="object"&&!Array.isArray(c)){s(c,l,u,p,d,f,g);for(var v in c){var y=c[v];if(Array.isArray(y)){if(v in r.arrayKeywords)for(var m=0;m<y.length;m++)o(i,s,a,y[m],l+"/"+v+"/"+m,u,l,v,c,m)}else if(v in r.propsKeywords){if(y&&typeof y=="object")for(var b in y)o(i,s,a,y[b],l+"/"+v+"/"+n(b),u,l,v,c,b)}else(v in r.keywords||i.allKeys&&!(v in r.skipKeywords))&&o(i,s,a,y,l+"/"+v,u,l,v,c)}a(c,l,u,p,d,f,g)}}function n(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}})),Kl=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;let t=Pe(),r=D_(),o=hP(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(y,m=!0){return typeof y=="boolean"?!0:m===!0?!a(y):m?c(y)<=m:!1}e.inlineRef=i;let s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(y){for(let m in y){if(s.has(m))return!0;let b=y[m];if(Array.isArray(b)&&b.some(a)||typeof b=="object"&&a(b))return!0}return!1}function c(y){let m=0;for(let b in y){if(b==="$ref")return 1/0;if(m++,!n.has(b)&&(typeof y[b]=="object"&&(0,t.eachItem)(y[b],_=>m+=c(_)),m===1/0))return 1/0}return m}function l(y,m="",b){return b!==!1&&(m=d(m)),u(y,y.parse(m))}e.getFullPath=l;function u(y,m){return y.serialize(m).split("#")[0]+"#"}e._getFullPath=u;let p=/#\/?$/;function d(y){return y?y.replace(p,""):""}e.normalizeId=d;function f(y,m,b){return b=d(b),y.resolve(m,b)}e.resolveUrl=f;let g=/^[a-z_][-a-z0-9._]*$/i;function v(y,m){if(typeof y=="boolean")return{};let{schemaId:b,uriResolver:_}=this.opts,w=d(y[b]||m),z={"":w},S=l(_,w,!1),x={},T=new Set;return o(y,{allKeys:!0},(C,B,Y,G)=>{if(G===void 0)return;let he=S+B,je=z[G];typeof C[b]=="string"&&(je=Ce.call(this,C[b])),Me.call(this,C.$anchor),Me.call(this,C.$dynamicAnchor),z[B]=je;function Ce(we){let k=this.opts.uriResolver.resolve;if(we=d(je?k(je,we):we),T.has(we))throw V(we);T.add(we);let I=this.refs[we];return typeof I=="string"&&(I=this.refs[I]),typeof I=="object"?j(C,I.schema,we):we!==d(he)&&(we[0]==="#"?(j(C,x[we],we),x[we]=C):this.refs[we]=he),we}function Me(we){if(typeof we=="string"){if(!g.test(we))throw new Error(`invalid anchor "${we}"`);Ce.call(this,`#${we}`)}}}),x;function j(C,B,Y){if(B!==void 0&&!r(C,B))throw V(Y)}function V(C){return new Error(`reference "${C}" resolves to more than one schema`)}}e.getSchemaRefs=v})),sn=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;let t=pP(),r=Zl(),o=L_(),n=Zl(),i=dP(),s=mP(),a=fP(),c=Se(),l=Vt(),u=Kl(),p=Pe(),d=Jl();function f($){if(S($)&&(T($),z($))){m($);return}g($,()=>(0,t.topBoolOrEmptySchema)($))}e.validateFunctionCode=f;function g({gen:$,validateName:A,schema:F,schemaEnv:se,opts:ae},de){ae.code.es5?$.func(A,(0,c._)`${l.default.data}, ${l.default.valCxt}`,se.$async,()=>{$.code((0,c._)`"use strict"; ${_(F,ae)}`),y($,ae),$.code(de)}):$.func(A,(0,c._)`${l.default.data}, ${v(ae)}`,se.$async,()=>$.code(_(F,ae)).code(de))}function v($){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${$.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function y($,A){$.if(l.default.valCxt,()=>{$.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),$.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),$.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),$.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),A.dynamicRef&&$.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{$.var(l.default.instancePath,(0,c._)`""`),$.var(l.default.parentData,(0,c._)`undefined`),$.var(l.default.parentDataProperty,(0,c._)`undefined`),$.var(l.default.rootData,l.default.data),A.dynamicRef&&$.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function m($){let{schema:A,opts:F,gen:se}=$;g($,()=>{F.$comment&&A.$comment&&G($),C($),se.let(l.default.vErrors,null),se.let(l.default.errors,0),F.unevaluated&&b($),j($),he($)})}function b($){let{gen:A,validateName:F}=$;$.evaluated=A.const("evaluated",(0,c._)`${F}.evaluated`),A.if((0,c._)`${$.evaluated}.dynamicProps`,()=>A.assign((0,c._)`${$.evaluated}.props`,(0,c._)`undefined`)),A.if((0,c._)`${$.evaluated}.dynamicItems`,()=>A.assign((0,c._)`${$.evaluated}.items`,(0,c._)`undefined`))}function _($,A){let F=typeof $=="object"&&$[A.schemaId];return F&&(A.code.source||A.code.process)?(0,c._)`/*# sourceURL=${F} */`:c.nil}function w($,A){if(S($)&&(T($),z($))){x($,A);return}(0,t.boolOrEmptySchema)($,A)}function z({schema:$,self:A}){if(typeof $=="boolean")return!$;for(let F in $)if(A.RULES.all[F])return!0;return!1}function S($){return typeof $.schema!="boolean"}function x($,A){let{schema:F,gen:se,opts:ae}=$;ae.$comment&&F.$comment&&G($),B($),Y($);let de=se.const("_errs",l.default.errors);j($,de),se.var(A,(0,c._)`${de} === ${l.default.errors}`)}function T($){(0,p.checkUnknownRules)($),V($)}function j($,A){if($.opts.jtd)return Ce($,[],!1,A);let F=(0,r.getSchemaTypes)($.schema);Ce($,F,!(0,r.coerceAndCheckDataType)($,F),A)}function V($){let{schema:A,errSchemaPath:F,opts:se,self:ae}=$;A.$ref&&se.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(A,ae.RULES)&&ae.logger.warn(`$ref: keywords ignored in schema at path "${F}"`)}function C($){let{schema:A,opts:F}=$;A.default!==void 0&&F.useDefaults&&F.strictSchema&&(0,p.checkStrictMode)($,"default is ignored in the schema root")}function B($){let A=$.schema[$.opts.schemaId];A&&($.baseId=(0,u.resolveUrl)($.opts.uriResolver,$.baseId,A))}function Y($){if($.schema.$async&&!$.schemaEnv.$async)throw new Error("async schema in sync schema")}function G({gen:$,schemaEnv:A,schema:F,errSchemaPath:se,opts:ae}){let de=F.$comment;if(ae.$comment===!0)$.code((0,c._)`${l.default.self}.logger.log(${de})`);else if(typeof ae.$comment=="function"){let ne=(0,c.str)`${se}/$comment`,ze=$.scopeValue("root",{ref:A.root});$.code((0,c._)`${l.default.self}.opts.$comment(${de}, ${ne}, ${ze}.schema)`)}}function he($){let{gen:A,schemaEnv:F,validateName:se,ValidationError:ae,opts:de}=$;F.$async?A.if((0,c._)`${l.default.errors} === 0`,()=>A.return(l.default.data),()=>A.throw((0,c._)`new ${ae}(${l.default.vErrors})`)):(A.assign((0,c._)`${se}.errors`,l.default.vErrors),de.unevaluated&&je($),A.return((0,c._)`${l.default.errors} === 0`))}function je({gen:$,evaluated:A,props:F,items:se}){F instanceof c.Name&&$.assign((0,c._)`${A}.props`,F),se instanceof c.Name&&$.assign((0,c._)`${A}.items`,se)}function Ce($,A,F,se){let{gen:ae,schema:de,data:ne,allErrors:ze,opts:Q,self:X}=$,{RULES:ge}=X;if(de.$ref&&(Q.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(de,ge))){ae.block(()=>le($,"$ref",ge.all.$ref.definition));return}Q.jtd||we($,A),ae.block(()=>{for(let ye of ge.rules)Ne(ye);Ne(ge.post)});function Ne(ye){(0,o.shouldUseGroup)(de,ye)&&(ye.type?(ae.if((0,n.checkDataType)(ye.type,ne,Q.strictNumbers)),Me($,ye),A.length===1&&A[0]===ye.type&&F&&(ae.else(),(0,n.reportTypeError)($)),ae.endIf()):Me($,ye),ze||ae.if((0,c._)`${l.default.errors} === ${se||0}`))}}function Me($,A){let{gen:F,schema:se,opts:{useDefaults:ae}}=$;ae&&(0,i.assignDefaults)($,A.type),F.block(()=>{for(let de of A.rules)(0,o.shouldUseRule)(se,de)&&le($,de.keyword,de.definition,A.type)})}function we($,A){$.schemaEnv.meta||!$.opts.strictTypes||(k($,A),$.opts.allowUnionTypes||I($,A),U($,$.dataTypes))}function k($,A){if(A.length){if(!$.dataTypes.length){$.dataTypes=A;return}A.forEach(F=>{O($.dataTypes,F)||W($,`type "${F}" not allowed by context "${$.dataTypes.join(",")}"`)}),N($,A)}}function I($,A){A.length>1&&!(A.length===2&&A.includes("null"))&&W($,"use allowUnionTypes to allow union type keyword")}function U($,A){let F=$.self.RULES.all;for(let se in F){let ae=F[se];if(typeof ae=="object"&&(0,o.shouldUseRule)($.schema,ae)){let{type:de}=ae.definition;de.length&&!de.some(ne=>R(A,ne))&&W($,`missing type "${de.join(",")}" for keyword "${se}"`)}}}function R($,A){return $.includes(A)||A==="number"&&$.includes("integer")}function O($,A){return $.includes(A)||A==="integer"&&$.includes("number")}function N($,A){let F=[];for(let se of $.dataTypes)O(A,se)?F.push(se):A.includes("integer")&&se==="number"&&F.push("integer");$.dataTypes=F}function W($,A){let F=$.schemaEnv.baseId+$.errSchemaPath;A+=` at "${F}" (strictTypes)`,(0,p.checkStrictMode)($,A,$.opts.strictTypes)}var K=class{constructor($,A,F){if((0,s.validateKeywordUsage)($,A,F),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=F,this.data=$.data,this.schema=$.schema[F],this.$data=A.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)($,this.schema,F,this.$data),this.schemaType=A.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=A,this.$data)this.schemaCode=$.gen.const("vSchema",Qe(this.$data,$));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,A.schemaType,A.allowUndefined))throw new Error(`${F} value must be ${JSON.stringify(A.schemaType)}`);("code"in A?A.trackErrors:A.errors!==!1)&&(this.errsCount=$.gen.const("_errs",l.default.errors))}result($,A,F){this.failResult((0,c.not)($),A,F)}failResult($,A,F){this.gen.if($),F?F():this.error(),A?(this.gen.else(),A(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass($,A){this.failResult((0,c.not)($),void 0,A)}fail($){if($===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if($),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data($){if(!this.$data)return this.fail($);let{schemaCode:A}=this;this.fail((0,c._)`${A} !== undefined && (${(0,c.or)(this.invalid$data(),$)})`)}error($,A,F){if(A){this.setParams(A),this._error($,F),this.setParams({});return}this._error($,F)}_error($,A){($?d.reportExtraError:d.reportError)(this,this.def.error,A)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok($){this.allErrors||this.gen.if($)}setParams($,A){A?Object.assign(this.params,$):this.params=$}block$data($,A,F=c.nil){this.gen.block(()=>{this.check$data($,F),A()})}check$data($=c.nil,A=c.nil){if(!this.$data)return;let{gen:F,schemaCode:se,schemaType:ae,def:de}=this;F.if((0,c.or)((0,c._)`${se} === undefined`,A)),$!==c.nil&&F.assign($,!0),(ae.length||de.validateSchema)&&(F.elseIf(this.invalid$data()),this.$dataError(),$!==c.nil&&F.assign($,!1)),F.else()}invalid$data(){let{gen:$,schemaCode:A,schemaType:F,def:se,it:ae}=this;return(0,c.or)(de(),ne());function de(){if(F.length){if(!(A instanceof c.Name))throw new Error("ajv implementation error");let ze=Array.isArray(F)?F:[F];return(0,c._)`${(0,n.checkDataTypes)(ze,A,ae.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function ne(){if(se.validateSchema){let ze=$.scopeValue("validate$data",{ref:se.validateSchema});return(0,c._)`!${ze}(${A})`}return c.nil}}subschema($,A){let F=(0,a.getSubschema)(this.it,$);(0,a.extendSubschemaData)(F,this.it,$),(0,a.extendSubschemaMode)(F,$);let se={...this.it,...F,items:void 0,props:void 0};return w(se,A),se}mergeEvaluated($,A){let{it:F,gen:se}=this;F.opts.unevaluated&&(F.props!==!0&&$.props!==void 0&&(F.props=p.mergeEvaluated.props(se,$.props,F.props,A)),F.items!==!0&&$.items!==void 0&&(F.items=p.mergeEvaluated.items(se,$.items,F.items,A)))}mergeValidEvaluated($,A){let{it:F,gen:se}=this;if(F.opts.unevaluated&&(F.props!==!0||F.items!==!0))return se.if(A,()=>this.mergeEvaluated($,c.Name)),!0}};e.KeywordCxt=K;function le($,A,F,se){let ae=new K($,F,A);"code"in F?F.code(ae,se):ae.$data&&F.validate?(0,s.funcKeywordCode)(ae,F):"macro"in F?(0,s.macroKeywordCode)(ae,F):(F.compile||F.validate)&&(0,s.funcKeywordCode)(ae,F)}let ue=/^\/(?:[^~]|~0|~1)*$/,$e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Qe($,{dataLevel:A,dataNames:F,dataPathArr:se}){let ae,de;if($==="")return l.default.rootData;if($[0]==="/"){if(!ue.test($))throw new Error(`Invalid JSON-pointer: ${$}`);ae=$,de=l.default.rootData}else{let X=$e.exec($);if(!X)throw new Error(`Invalid JSON-pointer: ${$}`);let ge=+X[1];if(ae=X[2],ae==="#"){if(ge>=A)throw new Error(Q("property/index",ge));return se[A-ge]}if(ge>A)throw new Error(Q("data",ge));if(de=F[A-ge],!ae)return de}let ne=de,ze=ae.split("/");for(let X of ze)X&&(de=(0,c._)`${de}${(0,c.getProperty)((0,p.unescapeJsonPointer)(X))}`,ne=(0,c._)`${ne} && ${de}`);return ne;function Q(X,ge){return`Cannot access ${X} ${ge} levels up, current level is ${A}`}}e.getData=Qe})),as=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=class extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}};e.default=t})),an=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Kl();var r=class extends Error{constructor(o,n,i,s){super(s||`can't resolve reference ${i} from id ${n}`),this.missingRef=(0,t.resolveUrl)(o,n,i),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,this.missingRef))}};e.default=r})),Gl=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;let t=Se(),r=as(),o=Vt(),n=Kl(),i=Pe(),s=sn();var a=class{constructor(m){var b;this.refs={},this.dynamicAnchors={};let _;typeof m.schema=="object"&&(_=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(b=m.baseId)!==null&&b!==void 0?b:(0,n.normalizeId)(_?.[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=_?.$async,this.refs={}}};e.SchemaEnv=a;function c(m){let b=p.call(this,m);if(b)return b;let _=(0,n.getFullPath)(this.opts.uriResolver,m.root.baseId),{es5:w,lines:z}=this.opts.code,{ownProperties:S}=this.opts,x=new t.CodeGen(this.scope,{es5:w,lines:z,ownProperties:S}),T;m.$async&&(T=x.scopeValue("Error",{ref:r.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let j=x.scopeName("validate");m.validateName=j;let V={gen:x,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:x.scopeValue("schema",this.opts.code.source===!0?{ref:m.schema,code:(0,t.stringify)(m.schema)}:{ref:m.schema}),validateName:j,ValidationError:T,schema:m.schema,schemaEnv:m,rootId:_,baseId:m.baseId||_,schemaPath:t.nil,errSchemaPath:m.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this},C;try{this._compilations.add(m),(0,s.validateFunctionCode)(V),x.optimize(this.opts.code.optimize);let B=x.toString();C=`${x.scopeRefs(o.default.scope)}return ${B}`,this.opts.code.process&&(C=this.opts.code.process(C,m));let Y=new Function(`${o.default.self}`,`${o.default.scope}`,C)(this,this.scope.get());if(this.scope.value(j,{ref:Y}),Y.errors=null,Y.schema=m.schema,Y.schemaEnv=m,m.$async&&(Y.$async=!0),this.opts.code.source===!0&&(Y.source={validateName:j,validateCode:B,scopeValues:x._values}),this.opts.unevaluated){let{props:G,items:he}=V;Y.evaluated={props:G instanceof t.Name?void 0:G,items:he instanceof t.Name?void 0:he,dynamicProps:G instanceof t.Name,dynamicItems:he instanceof t.Name},Y.source&&(Y.source.evaluated=(0,t.stringify)(Y.evaluated))}return m.validate=Y,m}catch(B){throw delete m.validate,delete m.validateName,C&&this.logger.error("Error compiling schema, function code:",C),B}finally{this._compilations.delete(m)}}e.compileSchema=c;function l(m,b,_){var w;_=(0,n.resolveUrl)(this.opts.uriResolver,b,_);let z=m.refs[_];if(z)return z;let S=f.call(this,m,_);if(S===void 0){let x=(w=m.localRefs)===null||w===void 0?void 0:w[_],{schemaId:T}=this.opts;x&&(S=new a({schema:x,schemaId:T,root:m,baseId:b}))}if(S!==void 0)return m.refs[_]=u.call(this,S)}e.resolveRef=l;function u(m){return(0,n.inlineRef)(m.schema,this.opts.inlineRefs)?m.schema:m.validate?m:c.call(this,m)}function p(m){for(let b of this._compilations)if(d(b,m))return b}e.getCompilingSchema=p;function d(m,b){return m.schema===b.schema&&m.root===b.root&&m.baseId===b.baseId}function f(m,b){let _;for(;typeof(_=this.refs[b])=="string";)b=_;return _||this.schemas[b]||g.call(this,m,b)}function g(m,b){let _=this.opts.uriResolver.parse(b),w=(0,n._getFullPath)(this.opts.uriResolver,_),z=(0,n.getFullPath)(this.opts.uriResolver,m.baseId,void 0);if(Object.keys(m.schema).length>0&&w===z)return y.call(this,_,m);let S=(0,n.normalizeId)(w),x=this.refs[S]||this.schemas[S];if(typeof x=="string"){let T=g.call(this,m,x);return typeof T?.schema!="object"?void 0:y.call(this,_,T)}if(typeof x?.schema=="object"){if(x.validate||c.call(this,x),S===(0,n.normalizeId)(b)){let{schema:T}=x,{schemaId:j}=this.opts,V=T[j];return V&&(z=(0,n.resolveUrl)(this.opts.uriResolver,z,V)),new a({schema:T,schemaId:j,root:m,baseId:z})}return y.call(this,_,x)}}e.resolveSchema=g;let v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(m,{baseId:b,schema:_,root:w}){var z;if(((z=m.fragment)===null||z===void 0?void 0:z[0])!=="/")return;for(let T of m.fragment.slice(1).split("/")){if(typeof _=="boolean")return;let j=_[(0,i.unescapeFragment)(T)];if(j===void 0)return;_=j;let V=typeof _=="object"&&_[this.opts.schemaId];!v.has(T)&&V&&(b=(0,n.resolveUrl)(this.opts.uriResolver,b,V))}let S;if(typeof _!="boolean"&&_.$ref&&!(0,i.schemaHasRulesButRef)(_,this.RULES)){let T=(0,n.resolveUrl)(this.opts.uriResolver,b,_.$ref);S=g.call(this,w,T)}let{schemaId:x}=this.opts;if(S=S||new a({schema:_,schemaId:x,root:w,baseId:b}),S.schema!==S.root.schema)return S}})),gP=Z(((e,t)=>{t.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}})),U_=Z(((e,t)=>{let r=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),o=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(g){let v="",y=0,m=0;for(m=0;m<g.length;m++)if(y=g[m].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=g[m];break}for(m+=1;m<g.length;m++){if(y=g[m].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=g[m]}return v}let i=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(g){return g.length=0,!0}function a(g,v,y){if(g.length){let m=n(g);if(m!=="")v.push(m);else return y.error=!0,!1;g.length=0}return!0}function c(g){let v=0,y={error:!1,address:"",zone:""},m=[],b=[],_=!1,w=!1,z=a;for(let S=0;S<g.length;S++){let x=g[S];if(!(x==="["||x==="]"))if(x===":"){if(_===!0&&(w=!0),!z(b,m,y))break;if(++v>7){y.error=!0;break}S>0&&g[S-1]===":"&&(_=!0),m.push(":");continue}else if(x==="%"){if(!z(b,m,y))break;z=s}else{b.push(x);continue}}return b.length&&(z===s?y.zone=b.join(""):w?m.push(b.join("")):m.push(n(b))),y.address=m.join(""),y}function l(g){if(u(g,":")<2)return{host:g,isIPV6:!1};let v=c(g);if(v.error)return{host:g,isIPV6:!1};{let y=v.address,m=v.address;return v.zone&&(y+="%"+v.zone,m+="%25"+v.zone),{host:y,isIPV6:!0,escapedHost:m}}}function u(g,v){let y=0;for(let m=0;m<g.length;m++)g[m]===v&&y++;return y}function p(g){let v=g,y=[],m=-1,b=0;for(;b=v.length;){if(b===1){if(v===".")break;if(v==="/"){y.push("/");break}else{y.push(v);break}}else if(b===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){y.push("/");break}}else if(b===3&&v==="/.."){y.length!==0&&y.pop(),y.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),y.length!==0&&y.pop();continue}}if((m=v.indexOf("/",1))===-1){y.push(v);break}else y.push(v.slice(0,m)),v=v.slice(m)}return y.join("")}function d(g,v){let y=v!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=y(g.scheme)),g.userinfo!==void 0&&(g.userinfo=y(g.userinfo)),g.host!==void 0&&(g.host=y(g.host)),g.path!==void 0&&(g.path=y(g.path)),g.query!==void 0&&(g.query=y(g.query)),g.fragment!==void 0&&(g.fragment=y(g.fragment)),g}function f(g){let v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let y=unescape(g.host);if(!o(y)){let m=l(y);m.isIPV6===!0?y=`[${m.escapedHost}]`:y=g.host}v.push(y)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}t.exports={nonSimpleDomain:i,recomposeAuthority:f,normalizeComponentEncoding:d,removeDotSegments:p,isIPv4:o,isUUID:r,normalizeIPv6:l,stringArrayToHexStripped:n}})),vP=Z(((e,t)=>{let{isUUID:r}=U_(),o=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function i(x){return n.indexOf(x)!==-1}function s(x){return x.secure===!0?!0:x.secure===!1?!1:x.scheme?x.scheme.length===3&&(x.scheme[0]==="w"||x.scheme[0]==="W")&&(x.scheme[1]==="s"||x.scheme[1]==="S")&&(x.scheme[2]==="s"||x.scheme[2]==="S"):!1}function a(x){return x.host||(x.error=x.error||"HTTP URIs must have a host."),x}function c(x){let T=String(x.scheme).toLowerCase()==="https";return(x.port===(T?443:80)||x.port==="")&&(x.port=void 0),x.path||(x.path="/"),x}function l(x){return x.secure=s(x),x.resourceName=(x.path||"/")+(x.query?"?"+x.query:""),x.path=void 0,x.query=void 0,x}function u(x){if((x.port===(s(x)?443:80)||x.port==="")&&(x.port=void 0),typeof x.secure=="boolean"&&(x.scheme=x.secure?"wss":"ws",x.secure=void 0),x.resourceName){let[T,j]=x.resourceName.split("?");x.path=T&&T!=="/"?T:void 0,x.query=j,x.resourceName=void 0}return x.fragment=void 0,x}function p(x,T){if(!x.path)return x.error="URN can not be parsed",x;let j=x.path.match(o);if(j){let V=T.scheme||x.scheme||"urn";x.nid=j[1].toLowerCase(),x.nss=j[2];let C=S(`${V}:${T.nid||x.nid}`);x.path=void 0,C&&(x=C.parse(x,T))}else x.error=x.error||"URN can not be parsed.";return x}function d(x,T){if(x.nid===void 0)throw new Error("URN without nid cannot be serialized");let j=T.scheme||x.scheme||"urn",V=x.nid.toLowerCase(),C=S(`${j}:${T.nid||V}`);C&&(x=C.serialize(x,T));let B=x,Y=x.nss;return B.path=`${V||T.nid}:${Y}`,T.skipEscape=!0,B}function f(x,T){let j=x;return j.uuid=j.nss,j.nss=void 0,!T.tolerant&&(!j.uuid||!r(j.uuid))&&(j.error=j.error||"UUID is not valid."),j}function g(x){let T=x;return T.nss=(x.uuid||"").toLowerCase(),T}let v={scheme:"http",domainHost:!0,parse:a,serialize:c},y={scheme:"https",domainHost:v.domainHost,parse:a,serialize:c},m={scheme:"ws",domainHost:!0,parse:l,serialize:u},b={scheme:"wss",domainHost:m.domainHost,parse:m.parse,serialize:m.serialize},z={http:v,https:y,ws:m,wss:b,urn:{scheme:"urn",parse:p,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(z,null);function S(x){return x&&(z[x]||z[x.toLowerCase()])||void 0}t.exports={wsIsSecure:s,SCHEMES:z,isValidSchemeName:i,getSchemeHandler:S}})),yP=Z(((e,t)=>{let{normalizeIPv6:r,removeDotSegments:o,recomposeAuthority:n,normalizeComponentEncoding:i,isIPv4:s,nonSimpleDomain:a}=U_(),{SCHEMES:c,getSchemeHandler:l}=vP();function u(b,_){return typeof b=="string"?b=g(y(b,_),_):typeof b=="object"&&(b=y(g(b,_),_)),b}function p(b,_,w){let z=w?Object.assign({scheme:"null"},w):{scheme:"null"},S=d(y(b,z),y(_,z),z,!0);return z.skipEscape=!0,g(S,z)}function d(b,_,w,z){let S={};return z||(b=y(g(b,w),w),_=y(g(_,w),w)),w=w||{},!w.tolerant&&_.scheme?(S.scheme=_.scheme,S.userinfo=_.userinfo,S.host=_.host,S.port=_.port,S.path=o(_.path||""),S.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(S.userinfo=_.userinfo,S.host=_.host,S.port=_.port,S.path=o(_.path||""),S.query=_.query):(_.path?(_.path[0]==="/"?S.path=o(_.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?S.path="/"+_.path:b.path?S.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+_.path:S.path=_.path,S.path=o(S.path)),S.query=_.query):(S.path=b.path,_.query!==void 0?S.query=_.query:S.query=b.query),S.userinfo=b.userinfo,S.host=b.host,S.port=b.port),S.scheme=b.scheme),S.fragment=_.fragment,S}function f(b,_,w){return typeof b=="string"?(b=unescape(b),b=g(i(y(b,w),!0),{...w,skipEscape:!0})):typeof b=="object"&&(b=g(i(b,!0),{...w,skipEscape:!0})),typeof _=="string"?(_=unescape(_),_=g(i(y(_,w),!0),{...w,skipEscape:!0})):typeof _=="object"&&(_=g(i(_,!0),{...w,skipEscape:!0})),b.toLowerCase()===_.toLowerCase()}function g(b,_){let w={host:b.host,scheme:b.scheme,userinfo:b.userinfo,port:b.port,path:b.path,query:b.query,nid:b.nid,nss:b.nss,uuid:b.uuid,fragment:b.fragment,reference:b.reference,resourceName:b.resourceName,secure:b.secure,error:""},z=Object.assign({},_),S=[],x=l(z.scheme||w.scheme);x&&x.serialize&&x.serialize(w,z),w.path!==void 0&&(z.skipEscape?w.path=unescape(w.path):(w.path=escape(w.path),w.scheme!==void 0&&(w.path=w.path.split("%3A").join(":")))),z.reference!=="suffix"&&w.scheme&&S.push(w.scheme,":");let T=n(w);if(T!==void 0&&(z.reference!=="suffix"&&S.push("//"),S.push(T),w.path&&w.path[0]!=="/"&&S.push("/")),w.path!==void 0){let j=w.path;!z.absolutePath&&(!x||!x.absolutePath)&&(j=o(j)),T===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),S.push(j)}return w.query!==void 0&&S.push("?",w.query),w.fragment!==void 0&&S.push("#",w.fragment),S.join("")}let v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(b,_){let w=Object.assign({},_),z={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},S=!1;w.reference==="suffix"&&(w.scheme?b=w.scheme+":"+b:b="//"+b);let x=b.match(v);if(x){if(z.scheme=x[1],z.userinfo=x[3],z.host=x[4],z.port=parseInt(x[5],10),z.path=x[6]||"",z.query=x[7],z.fragment=x[8],isNaN(z.port)&&(z.port=x[5]),z.host)if(s(z.host)===!1){let j=r(z.host);z.host=j.host.toLowerCase(),S=j.isIPV6}else S=!0;z.scheme===void 0&&z.userinfo===void 0&&z.host===void 0&&z.port===void 0&&z.query===void 0&&!z.path?z.reference="same-document":z.scheme===void 0?z.reference="relative":z.fragment===void 0?z.reference="absolute":z.reference="uri",w.reference&&w.reference!=="suffix"&&w.reference!==z.reference&&(z.error=z.error||"URI is not a "+w.reference+" reference.");let T=l(w.scheme||z.scheme);if(!w.unicodeSupport&&(!T||!T.unicodeSupport)&&z.host&&(w.domainHost||T&&T.domainHost)&&S===!1&&a(z.host))try{z.host=URL.domainToASCII(z.host.toLowerCase())}catch(j){z.error=z.error||"Host's domain name can not be converted to ASCII: "+j}(!T||T&&!T.skipNormalize)&&(b.indexOf("%")!==-1&&(z.scheme!==void 0&&(z.scheme=unescape(z.scheme)),z.host!==void 0&&(z.host=unescape(z.host))),z.path&&(z.path=escape(unescape(z.path))),z.fragment&&(z.fragment=encodeURI(decodeURIComponent(z.fragment)))),T&&T.parse&&T.parse(z,w)}else z.error=z.error||"URI can not be parsed.";return z}let m={SCHEMES:c,normalize:u,resolve:p,resolveComponent:d,equal:f,serialize:g,parse:y};t.exports=m,t.exports.default=m,t.exports.fastUri=m})),bP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=yP();t.code='require("ajv/dist/runtime/uri").default',e.default=t})),Tm=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=sn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Se();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});let o=as(),n=an(),i=M_(),s=Gl(),a=Se(),c=Kl(),l=Zl(),u=Pe(),p=gP(),d=bP(),f=(k,I)=>new RegExp(k,I);f.code="new RegExp";let g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function _(k){var I,U,R,O,N,W,K,le,ue,$e,Qe,$,A,F,se,ae,de,ne,ze,Q,X,ge,Ne,ye,Ze;let Fe=k.strict,De=(I=k.code)===null||I===void 0?void 0:I.optimize,Ot=De===!0||De===void 0?1:De||0,St=(R=(U=k.code)===null||U===void 0?void 0:U.regExp)!==null&&R!==void 0?R:f,Be=(O=k.uriResolver)!==null&&O!==void 0?O:d.default;return{strictSchema:(W=(N=k.strictSchema)!==null&&N!==void 0?N:Fe)!==null&&W!==void 0?W:!0,strictNumbers:(le=(K=k.strictNumbers)!==null&&K!==void 0?K:Fe)!==null&&le!==void 0?le:!0,strictTypes:($e=(ue=k.strictTypes)!==null&&ue!==void 0?ue:Fe)!==null&&$e!==void 0?$e:"log",strictTuples:($=(Qe=k.strictTuples)!==null&&Qe!==void 0?Qe:Fe)!==null&&$!==void 0?$:"log",strictRequired:(F=(A=k.strictRequired)!==null&&A!==void 0?A:Fe)!==null&&F!==void 0?F:!1,code:k.code?{...k.code,optimize:Ot,regExp:St}:{optimize:Ot,regExp:St},loopRequired:(se=k.loopRequired)!==null&&se!==void 0?se:b,loopEnum:(ae=k.loopEnum)!==null&&ae!==void 0?ae:b,meta:(de=k.meta)!==null&&de!==void 0?de:!0,messages:(ne=k.messages)!==null&&ne!==void 0?ne:!0,inlineRefs:(ze=k.inlineRefs)!==null&&ze!==void 0?ze:!0,schemaId:(Q=k.schemaId)!==null&&Q!==void 0?Q:"$id",addUsedSchema:(X=k.addUsedSchema)!==null&&X!==void 0?X:!0,validateSchema:(ge=k.validateSchema)!==null&&ge!==void 0?ge:!0,validateFormats:(Ne=k.validateFormats)!==null&&Ne!==void 0?Ne:!0,unicodeRegExp:(ye=k.unicodeRegExp)!==null&&ye!==void 0?ye:!0,int32range:(Ze=k.int32range)!==null&&Ze!==void 0?Ze:!0,uriResolver:Be}}var w=class{constructor(k={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,..._(k)};let{es5:I,lines:U}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:v,es5:I,lines:U}),this.logger=B(k.logger);let R=k.validateFormats;k.validateFormats=!1,this.RULES=(0,i.getRules)(),z.call(this,y,k,"NOT SUPPORTED"),z.call(this,m,k,"DEPRECATED","warn"),this._metaOpts=V.call(this),k.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&j.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),x.call(this),k.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:k,meta:I,schemaId:U}=this.opts,R=p;U==="id"&&(R={...p},R.id=R.$id,delete R.$id),I&&k&&this.addMetaSchema(R,R[U],!1)}defaultMeta(){let{meta:k,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[I]||k:void 0}validate(k,I){let U;if(typeof k=="string"){if(U=this.getSchema(k),!U)throw new Error(`no schema with key or ref "${k}"`)}else U=this.compile(k);let R=U(I);return"$async"in U||(this.errors=U.errors),R}compile(k,I){let U=this._addSchema(k,I);return U.validate||this._compileSchemaEnv(U)}compileAsync(k,I){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:U}=this.opts;return R.call(this,k,I);async function R(ue,$e){await O.call(this,ue.$schema);let Qe=this._addSchema(ue,$e);return Qe.validate||N.call(this,Qe)}async function O(ue){ue&&!this.getSchema(ue)&&await R.call(this,{$ref:ue},!0)}async function N(ue){try{return this._compileSchemaEnv(ue)}catch($e){if(!($e instanceof n.default))throw $e;return W.call(this,$e),await K.call(this,$e.missingSchema),N.call(this,ue)}}function W({missingSchema:ue,missingRef:$e}){if(this.refs[ue])throw new Error(`AnySchema ${ue} is loaded but ${$e} cannot be resolved`)}async function K(ue){let $e=await le.call(this,ue);this.refs[ue]||await O.call(this,$e.$schema),this.refs[ue]||this.addSchema($e,ue,I)}async function le(ue){let $e=this._loading[ue];if($e)return $e;try{return await(this._loading[ue]=U(ue))}finally{delete this._loading[ue]}}}addSchema(k,I,U,R=this.opts.validateSchema){if(Array.isArray(k)){for(let N of k)this.addSchema(N,void 0,U,R);return this}let O;if(typeof k=="object"){let{schemaId:N}=this.opts;if(O=k[N],O!==void 0&&typeof O!="string")throw new Error(`schema ${N} must be string`)}return I=(0,c.normalizeId)(I||O),this._checkUnique(I),this.schemas[I]=this._addSchema(k,U,I,R,!0),this}addMetaSchema(k,I,U=this.opts.validateSchema){return this.addSchema(k,I,!0,U),this}validateSchema(k,I){if(typeof k=="boolean")return!0;let U;if(U=k.$schema,U!==void 0&&typeof U!="string")throw new Error("$schema must be a string");if(U=U||this.opts.defaultMeta||this.defaultMeta(),!U)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let R=this.validate(U,k);if(!R&&I){let O="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(O);else throw new Error(O)}return R}getSchema(k){let I;for(;typeof(I=S.call(this,k))=="string";)k=I;if(I===void 0){let{schemaId:U}=this.opts,R=new s.SchemaEnv({schema:{},schemaId:U});if(I=s.resolveSchema.call(this,R,k),!I)return;this.refs[k]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let I=S.call(this,k);return typeof I=="object"&&this._cache.delete(I.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{let I=k;this._cache.delete(I);let U=k[this.opts.schemaId];return U&&(U=(0,c.normalizeId)(U),delete this.schemas[U],delete this.refs[U]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(let I of k)this.addKeyword(I);return this}addKeyword(k,I){let U;if(typeof k=="string")U=k,typeof I=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=U);else if(typeof k=="object"&&I===void 0){if(I=k,U=I.keyword,Array.isArray(U)&&!U.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(G.call(this,U,I),!I)return(0,u.eachItem)(U,O=>he.call(this,O)),this;Ce.call(this,I);let R={...I,type:(0,l.getJSONTypes)(I.type),schemaType:(0,l.getJSONTypes)(I.schemaType)};return(0,u.eachItem)(U,R.type.length===0?O=>he.call(this,O,R):O=>R.type.forEach(N=>he.call(this,O,R,N))),this}getKeyword(k){let I=this.RULES.all[k];return typeof I=="object"?I.definition:!!I}removeKeyword(k){let{RULES:I}=this;delete I.keywords[k],delete I.all[k];for(let U of I.rules){let R=U.rules.findIndex(O=>O.keyword===k);R>=0&&U.rules.splice(R,1)}return this}addFormat(k,I){return typeof I=="string"&&(I=new RegExp(I)),this.formats[k]=I,this}errorsText(k=this.errors,{separator:I=", ",dataVar:U="data"}={}){return!k||k.length===0?"No errors":k.map(R=>`${U}${R.instancePath} ${R.message}`).reduce((R,O)=>R+I+O)}$dataMetaSchema(k,I){let U=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(let R of I){let O=R.split("/").slice(1),N=k;for(let W of O)N=N[W];for(let W in U){let K=U[W];if(typeof K!="object")continue;let{$data:le}=K.definition,ue=N[W];le&&ue&&(N[W]=we(ue))}}return k}_removeAllSchemas(k,I){for(let U in k){let R=k[U];(!I||I.test(U))&&(typeof R=="string"?delete k[U]:R&&!R.meta&&(this._cache.delete(R.schema),delete k[U]))}}_addSchema(k,I,U,R=this.opts.validateSchema,O=this.opts.addUsedSchema){let N,{schemaId:W}=this.opts;if(typeof k=="object")N=k[W];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(k);if(K!==void 0)return K;U=(0,c.normalizeId)(N||U);let le=c.getSchemaRefs.call(this,k,U);return K=new s.SchemaEnv({schema:k,schemaId:W,meta:I,baseId:U,localRefs:le}),this._cache.set(K.schema,K),O&&!U.startsWith("#")&&(U&&this._checkUnique(U),this.refs[U]=K),R&&this.validateSchema(k,!0),K}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):s.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){let I=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,k)}finally{this.opts=I}}};w.ValidationError=o.default,w.MissingRefError=n.default,e.default=w;function z(k,I,U,R="error"){for(let O in k){let N=O;N in I&&this.logger[R](`${U}: option ${O}. ${k[N]}`)}}function S(k){return k=(0,c.normalizeId)(k),this.schemas[k]||this.refs[k]}function x(){let k=this.opts.schemas;if(k)if(Array.isArray(k))this.addSchema(k);else for(let I in k)this.addSchema(k[I],I)}function T(){for(let k in this.opts.formats){let I=this.opts.formats[k];I&&this.addFormat(k,I)}}function j(k){if(Array.isArray(k)){this.addVocabulary(k);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let I in k){let U=k[I];U.keyword||(U.keyword=I),this.addKeyword(U)}}function V(){let k={...this.opts};for(let I of g)delete k[I];return k}let C={log(){},warn(){},error(){}};function B(k){if(k===!1)return C;if(k===void 0)return console;if(k.log&&k.warn&&k.error)return k;throw new Error("logger must implement log, warn and error methods")}let Y=/^[a-z_$][a-z0-9_$:-]*$/i;function G(k,I){let{RULES:U}=this;if((0,u.eachItem)(k,R=>{if(U.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!Y.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function he(k,I,U){var R;let O=I?.post;if(U&&O)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:N}=this,W=O?N.post:N.rules.find(({type:le})=>le===U);if(W||(W={type:U,rules:[]},N.rules.push(W)),N.keywords[k]=!0,!I)return;let K={keyword:k,definition:{...I,type:(0,l.getJSONTypes)(I.type),schemaType:(0,l.getJSONTypes)(I.schemaType)}};I.before?je.call(this,W,K,I.before):W.rules.push(K),N.all[k]=K,(R=I.implements)===null||R===void 0||R.forEach(le=>this.addKeyword(le))}function je(k,I,U){let R=k.rules.findIndex(O=>O.keyword===U);R>=0?k.rules.splice(R,0,I):(k.rules.push(I),this.logger.warn(`rule ${U} is not defined`))}function Ce(k){let{metaSchema:I}=k;I!==void 0&&(k.$data&&this.opts.$data&&(I=we(I)),k.validateSchema=this.compile(I,!0))}let Me={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function we(k){return{anyOf:[k,Me]}}})),_P=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};e.default=t})),$m=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;let t=an(),r=Ht(),o=Se(),n=Vt(),i=Gl(),s=Pe(),a={keyword:"$ref",schemaType:"string",code(u){let{gen:p,schema:d,it:f}=u,{baseId:g,schemaEnv:v,validateName:y,opts:m,self:b}=f,{root:_}=v;if((d==="#"||d==="#/")&&g===_.baseId)return z();let w=i.resolveRef.call(b,_,g,d);if(w===void 0)throw new t.default(f.opts.uriResolver,g,d);if(w instanceof i.SchemaEnv)return S(w);return x(w);function z(){if(v===_)return l(u,y,v,v.$async);let T=p.scopeValue("root",{ref:_});return l(u,(0,o._)`${T}.validate`,_,_.$async)}function S(T){l(u,c(u,T),T,T.$async)}function x(T){let j=p.scopeValue("schema",m.code.source===!0?{ref:T,code:(0,o.stringify)(T)}:{ref:T}),V=p.name("valid"),C=u.subschema({schema:T,dataTypes:[],schemaPath:o.nil,topSchemaRef:j,errSchemaPath:d},V);u.mergeEvaluated(C),u.ok(V)}}};function c(u,p){let{gen:d}=u;return p.validate?d.scopeValue("validate",{ref:p.validate}):(0,o._)`${d.scopeValue("wrapper",{ref:p})}.validate`}e.getValidate=c;function l(u,p,d,f){let{gen:g,it:v}=u,{allErrors:y,schemaEnv:m,opts:b}=v,_=b.passContext?n.default.this:o.nil;f?w():z();function w(){if(!m.$async)throw new Error("async schema referenced by sync schema");let T=g.let("valid");g.try(()=>{g.code((0,o._)`await ${(0,r.callValidateCode)(u,p,_)}`),x(p),y||g.assign(T,!0)},j=>{g.if((0,o._)`!(${j} instanceof ${v.ValidationError})`,()=>g.throw(j)),S(j),y||g.assign(T,!1)}),u.ok(T)}function z(){u.result((0,r.callValidateCode)(u,p,_),()=>x(p),()=>S(p))}function S(T){let j=(0,o._)`${T}.errors`;g.assign(n.default.vErrors,(0,o._)`${n.default.vErrors} === null ? ${j} : ${n.default.vErrors}.concat(${j})`),g.assign(n.default.errors,(0,o._)`${n.default.vErrors}.length`)}function x(T){var j;if(!v.opts.unevaluated)return;let V=(j=d?.validate)===null||j===void 0?void 0:j.evaluated;if(v.props!==!0)if(V&&!V.dynamicProps)V.props!==void 0&&(v.props=s.mergeEvaluated.props(g,V.props,v.props));else{let C=g.var("props",(0,o._)`${T}.evaluated.props`);v.props=s.mergeEvaluated.props(g,C,v.props,o.Name)}if(v.items!==!0)if(V&&!V.dynamicItems)V.items!==void 0&&(v.items=s.mergeEvaluated.items(g,V.items,v.items));else{let C=g.var("items",(0,o._)`${T}.evaluated.items`);v.items=s.mergeEvaluated.items(g,C,v.items,o.Name)}}}e.callRef=l,e.default=a})),F_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=_P(),r=$m(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,r.default];e.default=o})),SP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=t.operators,o={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},n={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:i,schemaCode:s})=>(0,t.str)`must be ${o[i].okStr} ${s}`,params:({keyword:i,schemaCode:s})=>(0,t._)`{comparison: ${o[i].okStr}, limit: ${s}}`},code(i){let{keyword:s,data:a,schemaCode:c}=i;i.fail$data((0,t._)`${a} ${o[s].fail} ${c} || isNaN(${a})`)}};e.default=n})),xP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,t._)`{multipleOf: ${o}}`},code(o){let{gen:n,data:i,schemaCode:s,it:a}=o,c=a.opts.multipleOfPrecision,l=n.let("res"),u=c?(0,t._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,t._)`${l} !== parseInt(${l})`;o.fail$data((0,t._)`(${s} === 0 || (${l} = ${i}/${s}, ${u}))`)}};e.default=r})),wP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(r){let o=r.length,n=0,i=0,s;for(;i<o;)n++,s=r.charCodeAt(i++),s>=55296&&s<=56319&&i<o&&(s=r.charCodeAt(i),(s&64512)===56320&&i++);return n}e.default=t,t.code='require("ajv/dist/runtime/ucs2length").default'})),RP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o=wP(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:s}){let a=i==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:i})=>(0,t._)`{limit: ${i}}`},code(i){let{keyword:s,data:a,schemaCode:c,it:l}=i,u=s==="maxLength"?t.operators.GT:t.operators.LT,p=l.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,r.useFunc)(i.gen,o.default)}(${a})`;i.fail$data((0,t._)`${p} ${u} ${c}`)}};e.default=n})),zP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ht(),r=Pe(),o=Se(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,o.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,o._)`{pattern: ${i}}`},code(i){let{gen:s,data:a,$data:c,schema:l,schemaCode:u,it:p}=i,d=p.opts.unicodeRegExp?"u":"";if(c){let{regExp:f}=p.opts.code,g=f.code==="new RegExp"?(0,o._)`new RegExp`:(0,r.useFunc)(s,f),v=s.let("valid");s.try(()=>s.assign(v,(0,o._)`${g}(${u}, ${d}).test(${a})`),()=>s.assign(v,!1)),i.fail$data((0,o._)`!${v}`)}else{let f=(0,t.usePattern)(i,l);i.fail$data((0,o._)`!${f}.test(${a})`)}}};e.default=n})),EP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){let i=o==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${n} properties`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){let{keyword:n,data:i,schemaCode:s}=o,a=n==="maxProperties"?t.operators.GT:t.operators.LT;o.fail$data((0,t._)`Object.keys(${i}).length ${a} ${s}`)}};e.default=r})),TP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ht(),r=Se(),o=Pe(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,r.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,r._)`{missingProperty: ${i}}`},code(i){let{gen:s,schema:a,schemaCode:c,data:l,$data:u,it:p}=i,{opts:d}=p;if(!u&&a.length===0)return;let f=a.length>=d.loopRequired;if(p.allErrors?g():v(),d.strictRequired){let b=i.parentSchema.properties,{definedProperties:_}=i.it;for(let w of a)if(b?.[w]===void 0&&!_.has(w)){let z=`required property "${w}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,z,p.opts.strictRequired)}}function g(){if(f||u)i.block$data(r.nil,y);else for(let b of a)(0,t.checkReportMissingProp)(i,b)}function v(){let b=s.let("missing");if(f||u){let _=s.let("valid",!0);i.block$data(_,()=>m(b,_)),i.ok(_)}else s.if((0,t.checkMissingProp)(i,a,b)),(0,t.reportMissingProp)(i,b),s.else()}function y(){s.forOf("prop",c,b=>{i.setParams({missingProperty:b}),s.if((0,t.noPropertyInData)(s,l,b,d.ownProperties),()=>i.error())})}function m(b,_){i.setParams({missingProperty:b}),s.forOf(b,c,()=>{s.assign(_,(0,t.propertyInData)(s,l,b,d.ownProperties)),s.if((0,r.not)(_),()=>{i.error(),s.break()})},r.nil)}}};e.default=n})),$P=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){let i=o==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${i} than ${n} items`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){let{keyword:n,data:i,schemaCode:s}=o,a=n==="maxItems"?t.operators.GT:t.operators.LT;o.fail$data((0,t._)`${i}.length ${a} ${s}`)}};e.default=r})),Pm=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=D_();t.code='require("ajv/dist/runtime/equal").default',e.default=t})),PP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Zl(),r=Se(),o=Pe(),n=Pm(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,r.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,r._)`{i: ${s}, j: ${a}}`},code(s){let{gen:a,data:c,$data:l,schema:u,parentSchema:p,schemaCode:d,it:f}=s;if(!l&&!u)return;let g=a.let("valid"),v=p.items?(0,t.getSchemaTypes)(p.items):[];s.block$data(g,y,(0,r._)`${d} === false`),s.ok(g);function y(){let w=a.let("i",(0,r._)`${c}.length`),z=a.let("j");s.setParams({i:w,j:z}),a.assign(g,!0),a.if((0,r._)`${w} > 1`,()=>(m()?b:_)(w,z))}function m(){return v.length>0&&!v.some(w=>w==="object"||w==="array")}function b(w,z){let S=a.name("item"),x=(0,t.checkDataTypes)(v,S,f.opts.strictNumbers,t.DataType.Wrong),T=a.const("indices",(0,r._)`{}`);a.for((0,r._)`;${w}--;`,()=>{a.let(S,(0,r._)`${c}[${w}]`),a.if(x,(0,r._)`continue`),v.length>1&&a.if((0,r._)`typeof ${S} == "string"`,(0,r._)`${S} += "_"`),a.if((0,r._)`typeof ${T}[${S}] == "number"`,()=>{a.assign(z,(0,r._)`${T}[${S}]`),s.error(),a.assign(g,!1).break()}).code((0,r._)`${T}[${S}] = ${w}`)})}function _(w,z){let S=(0,o.useFunc)(a,n.default),x=a.name("outer");a.label(x).for((0,r._)`;${w}--;`,()=>a.for((0,r._)`${z} = ${w}; ${z}--;`,()=>a.if((0,r._)`${S}(${c}[${w}], ${c}[${z}])`,()=>{s.error(),a.assign(g,!1).break(x)})))}}};e.default=i})),OP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o=Pm(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,t._)`{allowedValue: ${i}}`},code(i){let{gen:s,data:a,$data:c,schemaCode:l,schema:u}=i;c||u&&typeof u=="object"?i.fail$data((0,t._)`!${(0,r.useFunc)(s,o.default)}(${a}, ${l})`):i.fail((0,t._)`${u} !== ${a}`)}};e.default=n})),kP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o=Pm(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,t._)`{allowedValues: ${i}}`},code(i){let{gen:s,data:a,$data:c,schema:l,schemaCode:u,it:p}=i;if(!c&&l.length===0)throw new Error("enum must have non-empty array");let d=l.length>=p.opts.loopEnum,f,g=()=>f??(f=(0,r.useFunc)(s,o.default)),v;if(d||c)v=s.let("valid"),i.block$data(v,y);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let b=s.const("vSchema",u);v=(0,t.or)(...l.map((_,w)=>m(b,w)))}i.pass(v);function y(){s.assign(v,!1),s.forOf("v",u,b=>s.if((0,t._)`${g()}(${a}, ${b})`,()=>s.assign(v,!0).break()))}function m(b,_){let w=l[_];return typeof w=="object"&&w!==null?(0,t._)`${g()}(${a}, ${b}[${_}])`:(0,t._)`${a} === ${w}`}}};e.default=n})),B_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=SP(),r=xP(),o=RP(),n=zP(),i=EP(),s=TP(),a=$P(),c=PP(),l=OP(),u=kP(),p=[t.default,r.default,o.default,n.default,i.default,s.default,a.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];e.default=p})),V_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;let t=Se(),r=Pe(),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){let{parentSchema:s,it:a}=i,{items:c}=s;if(!Array.isArray(c)){(0,r.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(i,c)}};function n(i,s){let{gen:a,schema:c,data:l,keyword:u,it:p}=i;p.items=!0;let d=a.const("len",(0,t._)`${l}.length`);if(c===!1)i.setParams({len:s.length}),i.pass((0,t._)`${d} <= ${s.length}`);else if(typeof c=="object"&&!(0,r.alwaysValidSchema)(p,c)){let g=a.var("valid",(0,t._)`${d} <= ${s.length}`);a.if((0,t.not)(g),()=>f(g)),i.ok(g)}function f(g){a.forRange("i",s.length,d,v=>{i.subschema({keyword:u,dataProp:v,dataPropType:r.Type.Num},g),p.allErrors||a.if((0,t.not)(g),()=>a.break())})}}e.validateAdditionalItems=n,e.default=o})),H_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;let t=Se(),r=Pe(),o=Ht(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){let{schema:a,it:c}=s;if(Array.isArray(a))return i(s,"additionalItems",a);c.items=!0,!(0,r.alwaysValidSchema)(c,a)&&s.ok((0,o.validateArray)(s))}};function i(s,a,c=s.schema){let{gen:l,parentSchema:u,data:p,keyword:d,it:f}=s;y(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=r.mergeEvaluated.items(l,c.length,f.items));let g=l.name("valid"),v=l.const("len",(0,t._)`${p}.length`);c.forEach((m,b)=>{(0,r.alwaysValidSchema)(f,m)||(l.if((0,t._)`${v} > ${b}`,()=>s.subschema({keyword:d,schemaProp:b,dataProp:b},g)),s.ok(g))});function y(m){let{opts:b,errSchemaPath:_}=f,w=c.length,z=w===m.minItems&&(w===m.maxItems||m[a]===!1);if(b.strictTuples&&!z){let S=`"${d}" is ${w}-tuple, but minItems or maxItems/${a} are not specified or different at path "${_}"`;(0,r.checkStrictMode)(f,S,b.strictTuples)}}}e.validateTuple=i,e.default=n})),CP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=H_(),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,t.validateTuple)(o,"items")};e.default=r})),AP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o=Ht(),n=V_(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){let{schema:a,parentSchema:c,it:l}=s,{prefixItems:u}=c;l.items=!0,!(0,r.alwaysValidSchema)(l,a)&&(u?(0,n.validateAdditionalItems)(s,u):s.ok((0,o.validateArray)(s)))}};e.default=i})),IP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:i}})=>i===void 0?(0,t.str)`must contain at least ${n} valid item(s)`:(0,t.str)`must contain at least ${n} and no more than ${i} valid item(s)`,params:({params:{min:n,max:i}})=>i===void 0?(0,t._)`{minContains: ${n}}`:(0,t._)`{minContains: ${n}, maxContains: ${i}}`},code(n){let{gen:i,schema:s,parentSchema:a,data:c,it:l}=n,u,p,{minContains:d,maxContains:f}=a;l.opts.next?(u=d===void 0?1:d,p=f):u=1;let g=i.const("len",(0,t._)`${c}.length`);if(n.setParams({min:u,max:p}),p===void 0&&u===0){(0,r.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&u>p){(0,r.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,r.alwaysValidSchema)(l,s)){let _=(0,t._)`${g} >= ${u}`;p!==void 0&&(_=(0,t._)`${_} && ${g} <= ${p}`),n.pass(_);return}l.items=!0;let v=i.name("valid");p===void 0&&u===1?m(v,()=>i.if(v,()=>i.break())):u===0?(i.let(v,!0),p!==void 0&&i.if((0,t._)`${c}.length > 0`,y)):(i.let(v,!1),y()),n.result(v,()=>n.reset());function y(){let _=i.name("_valid"),w=i.let("count",0);m(_,()=>i.if(_,()=>b(w)))}function m(_,w){i.forRange("i",0,g,z=>{n.subschema({keyword:"contains",dataProp:z,dataPropType:r.Type.Num,compositeRule:!0},_),w()})}function b(_){i.code((0,t._)`${_}++`),p===void 0?i.if((0,t._)`${_} >= ${u}`,()=>i.assign(v,!0).break()):(i.if((0,t._)`${_} > ${p}`,()=>i.assign(v,!1).break()),u===1?i.assign(v,!0):i.if((0,t._)`${_} >= ${u}`,()=>i.assign(v,!0)))}}};e.default=o})),Om=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;let t=Se(),r=Pe(),o=Ht();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{let p=l===1?"property":"properties";return(0,t.str)`must have ${p} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:p}})=>(0,t._)`{property: ${c},
|
|
72
|
+
missingProperty: ${p},
|
|
73
|
+
depsCount: ${l},
|
|
74
|
+
deps: ${u}}`};let n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){let[l,u]=i(c);s(c,l),a(c,u)}};function i({schema:c}){let l={},u={};for(let p in c){if(p==="__proto__")continue;let d=Array.isArray(c[p])?l:u;d[p]=c[p]}return[l,u]}function s(c,l=c.schema){let{gen:u,data:p,it:d}=c;if(Object.keys(l).length===0)return;let f=u.let("missing");for(let g in l){let v=l[g];if(v.length===0)continue;let y=(0,o.propertyInData)(u,p,g,d.opts.ownProperties);c.setParams({property:g,depsCount:v.length,deps:v.join(", ")}),d.allErrors?u.if(y,()=>{for(let m of v)(0,o.checkReportMissingProp)(c,m)}):(u.if((0,t._)`${y} && (${(0,o.checkMissingProp)(c,v,f)})`),(0,o.reportMissingProp)(c,f),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){let{gen:u,data:p,keyword:d,it:f}=c,g=u.name("valid");for(let v in l)(0,r.alwaysValidSchema)(f,l[v])||(u.if((0,o.propertyInData)(u,p,v,f.opts.ownProperties),()=>{let y=c.subschema({keyword:d,schemaProp:v},g);c.mergeValidEvaluated(y,g)},()=>u.var(g,!0)),c.ok(g))}e.validateSchemaDeps=a,e.default=n})),jP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){let{gen:i,schema:s,data:a,it:c}=n;if((0,r.alwaysValidSchema)(c,s))return;let l=i.name("valid");i.forIn("key",a,u=>{n.setParams({propertyName:u}),n.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),i.if((0,t.not)(l),()=>{n.error(!0),c.allErrors||i.break()})}),n.ok(l)}};e.default=o})),Z_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ht(),r=Se(),o=Vt(),n=Pe(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,r._)`{additionalProperty: ${s.additionalProperty}}`},code(s){let{gen:a,schema:c,parentSchema:l,data:u,errsCount:p,it:d}=s;if(!p)throw new Error("ajv implementation error");let{allErrors:f,opts:g}=d;if(d.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(d,c))return;let v=(0,t.allSchemaProperties)(l.properties),y=(0,t.allSchemaProperties)(l.patternProperties);m(),s.ok((0,r._)`${p} === ${o.default.errors}`);function m(){a.forIn("key",u,S=>{!v.length&&!y.length?w(S):a.if(b(S),()=>w(S))})}function b(S){let x;if(v.length>8){let T=(0,n.schemaRefOrVal)(d,l.properties,"properties");x=(0,t.isOwnProperty)(a,T,S)}else v.length?x=(0,r.or)(...v.map(T=>(0,r._)`${S} === ${T}`)):x=r.nil;return y.length&&(x=(0,r.or)(x,...y.map(T=>(0,r._)`${(0,t.usePattern)(s,T)}.test(${S})`))),(0,r.not)(x)}function _(S){a.code((0,r._)`delete ${u}[${S}]`)}function w(S){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){_(S);return}if(c===!1){s.setParams({additionalProperty:S}),s.error(),f||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(d,c)){let x=a.name("valid");g.removeAdditional==="failing"?(z(S,x,!1),a.if((0,r.not)(x),()=>{s.reset(),_(S)})):(z(S,x),f||a.if((0,r.not)(x),()=>a.break()))}}function z(S,x,T){let j={keyword:"additionalProperties",dataProp:S,dataPropType:n.Type.Str};T===!1&&Object.assign(j,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(j,x)}}};e.default=i})),NP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=sn(),r=Ht(),o=Pe(),n=Z_(),i={keyword:"properties",type:"object",schemaType:"object",code(s){let{gen:a,schema:c,parentSchema:l,data:u,it:p}=s;p.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(p,n.default,"additionalProperties"));let d=(0,r.allSchemaProperties)(c);for(let m of d)p.definedProperties.add(m);p.opts.unevaluated&&d.length&&p.props!==!0&&(p.props=o.mergeEvaluated.props(a,(0,o.toHash)(d),p.props));let f=d.filter(m=>!(0,o.alwaysValidSchema)(p,c[m]));if(f.length===0)return;let g=a.name("valid");for(let m of f)v(m)?y(m):(a.if((0,r.propertyInData)(a,u,m,p.opts.ownProperties)),y(m),p.allErrors||a.else().var(g,!0),a.endIf()),s.it.definedProperties.add(m),s.ok(g);function v(m){return p.opts.useDefaults&&!p.compositeRule&&c[m].default!==void 0}function y(m){s.subschema({keyword:"properties",schemaProp:m,dataProp:m},g)}}};e.default=i})),qP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Ht(),r=Se(),o=Pe(),n=Pe(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(s){let{gen:a,schema:c,data:l,parentSchema:u,it:p}=s,{opts:d}=p,f=(0,t.allSchemaProperties)(c),g=f.filter(z=>(0,o.alwaysValidSchema)(p,c[z]));if(f.length===0||g.length===f.length&&(!p.opts.unevaluated||p.props===!0))return;let v=d.strictSchema&&!d.allowMatchingProperties&&u.properties,y=a.name("valid");p.props!==!0&&!(p.props instanceof r.Name)&&(p.props=(0,n.evaluatedPropsToName)(a,p.props));let{props:m}=p;b();function b(){for(let z of f)v&&_(z),p.allErrors?w(z):(a.var(y,!0),w(z),a.if(y))}function _(z){for(let S in v)new RegExp(z).test(S)&&(0,o.checkStrictMode)(p,`property ${S} matches pattern ${z} (use allowMatchingProperties)`)}function w(z){a.forIn("key",l,S=>{a.if((0,r._)`${(0,t.usePattern)(s,z)}.test(${S})`,()=>{let x=g.includes(z);x||s.subschema({keyword:"patternProperties",schemaProp:z,dataProp:S,dataPropType:n.Type.Str},y),p.opts.unevaluated&&m!==!0?a.assign((0,r._)`${m}[${S}]`,!0):!x&&!p.allErrors&&a.if((0,r.not)(y),()=>a.break())})})}}};e.default=i})),MP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Pe(),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){let{gen:n,schema:i,it:s}=o;if((0,t.alwaysValidSchema)(s,i)){o.fail();return}let a=n.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),o.failResult(a,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};e.default=r})),LP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ht().validateUnion,error:{message:"must match a schema in anyOf"}};e.default=t})),DP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){let{gen:i,schema:s,parentSchema:a,it:c}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;let l=s,u=i.let("valid",!1),p=i.let("passing",null),d=i.name("_valid");n.setParams({passing:p}),i.block(f),n.result(u,()=>n.reset(),()=>n.error(!0));function f(){l.forEach((g,v)=>{let y;(0,r.alwaysValidSchema)(c,g)?i.var(d,!0):y=n.subschema({keyword:"oneOf",schemaProp:v,compositeRule:!0},d),v>0&&i.if((0,t._)`${d} && ${u}`).assign(u,!1).assign(p,(0,t._)`[${p}, ${v}]`).else(),i.if(d,()=>{i.assign(u,!0),i.assign(p,v),y&&n.mergeEvaluated(y,t.Name)})})}}};e.default=o})),UP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Pe(),r={keyword:"allOf",schemaType:"array",code(o){let{gen:n,schema:i,it:s}=o;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=n.name("valid");i.forEach((c,l)=>{if((0,t.alwaysValidSchema)(s,c))return;let u=o.subschema({keyword:"allOf",schemaProp:l},a);o.ok(a),o.mergeEvaluated(u)})}};e.default=r})),FP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,t.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,t._)`{failingKeyword: ${i.ifClause}}`},code(i){let{gen:s,parentSchema:a,it:c}=i;a.then===void 0&&a.else===void 0&&(0,r.checkStrictMode)(c,'"if" without "then" and "else" is ignored');let l=n(c,"then"),u=n(c,"else");if(!l&&!u)return;let p=s.let("valid",!0),d=s.name("_valid");if(f(),i.reset(),l&&u){let v=s.let("ifClause");i.setParams({ifClause:v}),s.if(d,g("then",v),g("else",v))}else l?s.if(d,g("then")):s.if((0,t.not)(d),g("else"));i.pass(p,()=>i.error(!0));function f(){let v=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);i.mergeEvaluated(v)}function g(v,y){return()=>{let m=i.subschema({keyword:v},d);s.assign(p,d),i.mergeValidEvaluated(m,p),y?s.assign(y,(0,t._)`${v}`):i.setParams({ifClause:v})}}}};function n(i,s){let a=i.schema[s];return a!==void 0&&!(0,r.alwaysValidSchema)(i,a)}e.default=o})),BP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Pe(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:n,it:i}){n.if===void 0&&(0,t.checkStrictMode)(i,`"${o}" without "if" is ignored`)}};e.default=r})),J_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=V_(),r=CP(),o=H_(),n=AP(),i=IP(),s=Om(),a=jP(),c=Z_(),l=NP(),u=qP(),p=MP(),d=LP(),f=DP(),g=UP(),v=FP(),y=BP();function m(b=!1){let _=[p.default,d.default,f.default,g.default,v.default,y.default,a.default,c.default,s.default,l.default,u.default];return b?_.push(r.default,n.default):_.push(t.default,o.default),_.push(i.default),_}e.default=m})),VP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,t._)`{format: ${o}}`},code(o,n){let{gen:i,data:s,$data:a,schema:c,schemaCode:l,it:u}=o,{opts:p,errSchemaPath:d,schemaEnv:f,self:g}=u;if(!p.validateFormats)return;a?v():y();function v(){let m=i.scopeValue("formats",{ref:g.formats,code:p.code.formats}),b=i.const("fDef",(0,t._)`${m}[${l}]`),_=i.let("fType"),w=i.let("format");i.if((0,t._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>i.assign(_,(0,t._)`${b}.type || "string"`).assign(w,(0,t._)`${b}.validate`),()=>i.assign(_,(0,t._)`"string"`).assign(w,b)),o.fail$data((0,t.or)(z(),S()));function z(){return p.strictSchema===!1?t.nil:(0,t._)`${l} && !${w}`}function S(){let x=f.$async?(0,t._)`(${b}.async ? await ${w}(${s}) : ${w}(${s}))`:(0,t._)`${w}(${s})`,T=(0,t._)`(typeof ${w} == "function" ? ${x} : ${w}.test(${s}))`;return(0,t._)`${w} && ${w} !== true && ${_} === ${n} && !${T}`}}function y(){let m=g.formats[c];if(!m){z();return}if(m===!0)return;let[b,_,w]=S(m);b===n&&o.pass(x());function z(){if(p.strictSchema===!1){g.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${c}" ignored in schema at path "${d}"`}}function S(T){let j=T instanceof RegExp?(0,t.regexpCode)(T):p.code.formats?(0,t._)`${p.code.formats}${(0,t.getProperty)(c)}`:void 0,V=i.scopeValue("formats",{key:c,ref:T,code:j});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,t._)`${V}.validate`]:["string",T,V]}function x(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!f.$async)throw new Error("async format in sync schema");return(0,t._)`await ${w}(${s})`}return typeof _=="function"?(0,t._)`${w}(${s})`:(0,t._)`${w}.test(${s})`}}}};e.default=r})),K_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=[VP().default];e.default=t})),G_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]})),W_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=F_(),r=B_(),o=J_(),n=K_(),i=G_(),s=[t.default,r.default,(0,o.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];e.default=s})),HP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(r){r.Tag="tag",r.Mapping="mapping"})(t||(e.DiscrError=t={}))})),km=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=HP(),o=Gl(),n=an(),i=Pe(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===r.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:l}})=>(0,t._)`{error: ${a}, tag: ${l}, tagValue: ${c}}`},code(a){let{gen:c,data:l,schema:u,parentSchema:p,it:d}=a,{oneOf:f}=p;if(!d.opts.discriminator)throw new Error("discriminator: requires discriminator option");let g=u.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");let v=c.let("valid",!1),y=c.const("tag",(0,t._)`${l}${(0,t.getProperty)(g)}`);c.if((0,t._)`typeof ${y} == "string"`,()=>m(),()=>a.error(!1,{discrError:r.DiscrError.Tag,tag:y,tagName:g})),a.ok(v);function m(){let w=_();c.if(!1);for(let z in w)c.elseIf((0,t._)`${y} === ${z}`),c.assign(v,b(w[z]));c.else(),a.error(!1,{discrError:r.DiscrError.Mapping,tag:y,tagName:g}),c.endIf()}function b(w){let z=c.name("valid"),S=a.subschema({keyword:"oneOf",schemaProp:w},z);return a.mergeEvaluated(S,t.Name),z}function _(){var w;let z={},S=T(p),x=!0;for(let C=0;C<f.length;C++){let B=f[C];if(B?.$ref&&!(0,i.schemaHasRulesButRef)(B,d.self.RULES)){let G=B.$ref;if(B=o.resolveRef.call(d.self,d.schemaEnv.root,d.baseId,G),B instanceof o.SchemaEnv&&(B=B.schema),B===void 0)throw new n.default(d.opts.uriResolver,d.baseId,G)}let Y=(w=B?.properties)===null||w===void 0?void 0:w[g];if(typeof Y!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(S||T(B)),j(Y,C)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return z;function T({required:C}){return Array.isArray(C)&&C.includes(g)}function j(C,B){if(C.const)V(C.const,B);else if(C.enum)for(let Y of C.enum)V(Y,B);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function V(C,B){if(typeof C!="string"||C in z)throw new Error(`discriminator: "${g}" values must be unique strings`);z[C]=B}}}};e.default=s})),ZP=Z(((e,t)=>{t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}})),Y_=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;let r=Tm(),o=W_(),n=km(),i=ZP(),s=["/properties"],a="http://json-schema.org/draft-07/schema";var c=class extends r.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let f=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(f,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}};e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var l=sn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Se();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var p=as();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return p.default}});var d=an();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})),X_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicAnchor=void 0;let t=Se(),r=Vt(),o=Gl(),n=$m(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>s(c,c.schema)};function s(c,l){let{gen:u,it:p}=c;p.schemaEnv.root.dynamicAnchors[l]=!0;let d=(0,t._)`${r.default.dynamicAnchors}${(0,t.getProperty)(l)}`,f=p.errSchemaPath==="#"?p.validateName:a(c);u.if((0,t._)`!${d}`,()=>u.assign(d,f))}e.dynamicAnchor=s;function a(c){let{schemaEnv:l,schema:u,self:p}=c.it,{root:d,baseId:f,localRefs:g,meta:v}=l.root,{schemaId:y}=p.opts,m=new o.SchemaEnv({schema:u,schemaId:y,root:d,baseId:f,localRefs:g,meta:v});return o.compileSchema.call(p,m),(0,n.getValidate)(c,m)}e.default=i})),Q_=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicRef=void 0;let t=Se(),r=Vt(),o=$m(),n={keyword:"$dynamicRef",schemaType:"string",code:s=>i(s,s.schema)};function i(s,a){let{gen:c,keyword:l,it:u}=s;if(a[0]!=="#")throw new Error(`"${l}" only supports hash fragment reference`);let p=a.slice(1);if(u.allErrors)d();else{let g=c.let("valid",!1);d(g),s.ok(g)}function d(g){if(u.schemaEnv.root.dynamicAnchors[p]){let v=c.let("_v",(0,t._)`${r.default.dynamicAnchors}${(0,t.getProperty)(p)}`);c.if(v,f(v,g),f(u.validateName,g))}else f(u.validateName,g)()}function f(g,v){return v?()=>c.block(()=>{(0,o.callRef)(s,g),c.let(v,!0)}):()=>(0,o.callRef)(s,g)}}e.dynamicRef=i,e.default=n})),JP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=X_(),r=Pe(),o={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,t.dynamicAnchor)(n,""):(0,r.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};e.default=o})),KP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Q_(),r={keyword:"$recursiveRef",schemaType:"string",code:o=>(0,t.dynamicRef)(o,o.schema)};e.default=r})),eS=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=X_(),r=Q_(),o=JP(),n=KP(),i=[t.default,r.default,o.default,n.default];e.default=i})),GP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Om(),r={keyword:"dependentRequired",type:"object",schemaType:"object",error:t.error,code:o=>(0,t.validatePropertyDeps)(o)};e.default=r})),WP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Om(),r={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o=>(0,t.validateSchemaDeps)(o)};e.default=r})),YP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Pe(),r={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:o,parentSchema:n,it:i}){n.contains===void 0&&(0,t.checkStrictMode)(i,`"${o}" without "contains" is ignored`)}};e.default=r})),tS=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=GP(),r=WP(),o=YP(),n=[t.default,r.default,o.default];e.default=n})),XP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o=Vt(),n={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:i})=>(0,t._)`{unevaluatedProperty: ${i.unevaluatedProperty}}`},code(i){let{gen:s,schema:a,data:c,errsCount:l,it:u}=i;if(!l)throw new Error("ajv implementation error");let{allErrors:p,props:d}=u;d instanceof t.Name?s.if((0,t._)`${d} !== true`,()=>s.forIn("key",c,y=>s.if(g(d,y),()=>f(y)))):d!==!0&&s.forIn("key",c,y=>d===void 0?f(y):s.if(v(d,y),()=>f(y))),u.props=!0,i.ok((0,t._)`${l} === ${o.default.errors}`);function f(y){if(a===!1){i.setParams({unevaluatedProperty:y}),i.error(),p||s.break();return}if(!(0,r.alwaysValidSchema)(u,a)){let m=s.name("valid");i.subschema({keyword:"unevaluatedProperties",dataProp:y,dataPropType:r.Type.Str},m),p||s.if((0,t.not)(m),()=>s.break())}}function g(y,m){return(0,t._)`!${y} || !${y}[${m}]`}function v(y,m){let b=[];for(let _ in y)y[_]===!0&&b.push((0,t._)`${m} !== ${_}`);return(0,t.and)(...b)}}};e.default=n})),QP=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=Se(),r=Pe(),o={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:n}})=>(0,t.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,t._)`{limit: ${n}}`},code(n){let{gen:i,schema:s,data:a,it:c}=n,l=c.items||0;if(l===!0)return;let u=i.const("len",(0,t._)`${a}.length`);if(s===!1)n.setParams({len:l}),n.fail((0,t._)`${u} > ${l}`);else if(typeof s=="object"&&!(0,r.alwaysValidSchema)(c,s)){let d=i.var("valid",(0,t._)`${u} <= ${l}`);i.if((0,t.not)(d),()=>p(d,l)),n.ok(d)}c.items=!0;function p(d,f){i.forRange("i",f,u,g=>{n.subschema({keyword:"unevaluatedItems",dataProp:g,dataPropType:r.Type.Num},d),c.allErrors||i.if((0,t.not)(d),()=>i.break())})}}};e.default=o})),rS=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=XP(),r=QP(),o=[t.default,r.default];e.default=o})),e1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}})),t1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}})),r1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}})),o1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}})),n1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}})),i1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}})),s1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}})),a1=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=e1(),r=t1(),o=r1(),n=o1(),i=n1(),s=i1(),a=s1(),c=["/properties"];function l(u){return[t,r,o,n,p(this,i),s,p(this,a)].forEach(d=>this.addMetaSchema(d,void 0,!1)),this;function p(d,f){return u?d.$dataMetaSchema(f,c):f}}e.default=l})),c1=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2019=void 0;let r=Tm(),o=W_(),n=eS(),i=tS(),s=rS(),a=km(),c=a1(),l="https://json-schema.org/draft/2019-09/schema";var u=class extends r.default{constructor(v={}){super({...v,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(n.default),o.default.forEach(v=>this.addVocabulary(v)),this.addVocabulary(i.default),this.addVocabulary(s.default),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:v,meta:y}=this.opts;y&&(c.default.call(this,v),this.refs["http://json-schema.org/schema"]=l)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}};e.Ajv2019=u,t.exports=e=u,t.exports.Ajv2019=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var p=sn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var d=Se();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=as();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var g=an();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})),l1=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=F_(),r=B_(),o=J_(),n=eS(),i=tS(),s=rS(),a=K_(),c=G_(),l=[n.default,t.default,r.default,(0,o.default)(!0),a.default,c.metadataVocabulary,c.contentVocabulary,i.default,s.default];e.default=l})),u1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}})),p1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}})),d1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}})),m1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}})),f1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}})),h1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}})),g1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}})),v1=Z(((e,t)=>{t.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}})),y1=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=u1(),r=p1(),o=d1(),n=m1(),i=f1(),s=h1(),a=g1(),c=v1(),l=["/properties"];function u(p){return[t,r,o,n,i,d(this,s),a,d(this,c)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function d(f,g){return p?f.$dataMetaSchema(g,l):g}}e.default=u})),b1=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;let r=Tm(),o=l1(),n=km(),i=y1(),s="https://json-schema.org/draft/2020-12/schema";var a=class extends r.default{constructor(d={}){super({...d,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),o.default.forEach(d=>this.addVocabulary(d)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:d,meta:f}=this.opts;f&&(i.default.call(this,d),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv2020=a,t.exports=e=a,t.exports.Ajv2020=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var c=sn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Se();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=as();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var p=an();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})),_1=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(C,B){return{validate:C,compare:B}}e.fullFormats={date:t(i,s),time:t(c(!0),l),"date-time":t(d(!0),f),"iso-time":t(c(),u),"iso-date-time":t(d(),g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:V,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:S},int64:{type:"number",validate:x},float:{type:"number",validate:T},double:{type:"number",validate:T},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(C){return C%4===0&&(C%100!==0||C%400===0)}let o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(C){let B=o.exec(C);if(!B)return!1;let Y=+B[1],G=+B[2],he=+B[3];return G>=1&&G<=12&&he>=1&&he<=(G===2&&r(Y)?29:n[G])}function s(C,B){if(C&&B)return C>B?1:C<B?-1:0}let a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(C){return function(Y){let G=a.exec(Y);if(!G)return!1;let he=+G[1],je=+G[2],Ce=+G[3],Me=G[4],we=G[5]==="-"?-1:1,k=+(G[6]||0),I=+(G[7]||0);if(k>23||I>59||C&&!Me)return!1;if(he<=23&&je<=59&&Ce<60)return!0;let U=je-I*we,R=he-k*we-(U<0?1:0);return(R===23||R===-1)&&(U===59||U===-1)&&Ce<61}}function l(C,B){if(!(C&&B))return;let Y=new Date("2020-01-01T"+C).valueOf(),G=new Date("2020-01-01T"+B).valueOf();if(Y&&G)return Y-G}function u(C,B){if(!(C&&B))return;let Y=a.exec(C),G=a.exec(B);if(Y&&G)return C=Y[1]+Y[2]+Y[3],B=G[1]+G[2]+G[3],C>B?1:C<B?-1:0}let p=/t|\s/i;function d(C){let B=c(C);return function(G){let he=G.split(p);return he.length===2&&i(he[0])&&B(he[1])}}function f(C,B){if(!(C&&B))return;let Y=new Date(C).valueOf(),G=new Date(B).valueOf();if(Y&&G)return Y-G}function g(C,B){if(!(C&&B))return;let[Y,G]=C.split(p),[he,je]=B.split(p),Ce=s(Y,he);if(Ce!==void 0)return Ce||l(G,je)}let v=/\/|:/,y=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(C){return v.test(C)&&y.test(C)}let b=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(C){return b.lastIndex=0,b.test(C)}let w=-(2**31),z=2**31-1;function S(C){return Number.isInteger(C)&&C<=z&&C>=w}function x(C){return Number.isInteger(C)}function T(){return!0}let j=/[^\\]\\Z/;function V(C){if(j.test(C))return!1;try{return new RegExp(C),!0}catch{return!1}}})),S1=Z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;let t=Y_(),r=Se(),o=r.operators,n={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${n[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${n[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:i,code(a){let{gen:c,data:l,schemaCode:u,keyword:p,it:d}=a,{opts:f,self:g}=d;if(!f.validateFormats)return;let v=new t.KeywordCxt(d,g.RULES.all.format.definition,"format");v.$data?y():m();function y(){let _=c.scopeValue("formats",{ref:g.formats,code:f.code.formats}),w=c.const("fmt",(0,r._)`${_}[${v.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${w} != "object"`,(0,r._)`${w} instanceof RegExp`,(0,r._)`typeof ${w}.compare != "function"`,b(w)))}function m(){let _=v.schema,w=g.formats[_];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${p}": format "${_}" does not define "compare" function`);let z=c.scopeValue("formats",{key:_,ref:w,code:f.code.formats?(0,r._)`${f.code.formats}${(0,r.getProperty)(_)}`:void 0});a.fail$data(b(z))}function b(_){return(0,r._)`${_}.compare(${l}, ${u}) ${n[p].fail} 0`}},dependencies:["format"]};let s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})),x1=Z(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});let r=_1(),o=S1(),n=Se(),i=new n.Name("fullFormats"),s=new n.Name("fastFormats"),a=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,i),l;let[p,d]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,i];return c(l,u.formats||r.formatNames,p,d),u.keywords&&(0,o.default)(l),l};a.get=(l,u="full")=>{let p=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!p)throw new Error(`Unknown format "${l}"`);return p};function c(l,u,p,d){var f,g;(f=(g=l.opts.code).formats)!==null&&f!==void 0||(g.formats=(0,n._)`require("ajv-formats/dist/formats").${d}`);for(let v of u)l.addFormat(v,p[v])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a})),oS=Y_(),w1=c1(),R1=b1(),z1=pa(x1(),1),E1=z1.default;function Em(e){let t=new e({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return E1(t),t}var Wl=class{_ajv;_ajvDraft7;_ajv2019;_userAjv;constructor(e){this._userAjv=e!==void 0,this._ajv=e}get ajv(){return this._ajv??=Em(R1.Ajv2020)}_engineFor(e){if(this._userAjv)return this.ajv;let t=Ph(e,"pass a pre-configured Ajv instance to AjvJsonSchemaValidator(ajv) to validate other dialects.");return t==="2020-12"?this.ajv:t==="2019-09"?this._ajv2019??=Em(w1.Ajv2019):this._ajvDraft7??=Em(oS.Ajv)}getValidator(e){let t=this._engineFor(e),r="$id"in e&&typeof e.$id=="string"?t.getSchema(e.$id)??t.compile(e):t.compile(e);return o=>r(o)?{valid:!0,data:o,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:t.errorsText(r.errors)}}},$2=oS.Ajv;var Yl=pt(require("process"),1);var pS=Symbol.for("mcp.completable");function Am(e){return!!e&&typeof e=="object"&&pS in e}function $1(e){return e[pS]?.complete}var yM=2**31-1;var P1=8,O1=6e5;function k1(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw new RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw new RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??P1,roundTimeoutMs:e?.roundTimeoutMs??O1,legacyShim:e?.legacyShim??!0}}function dS(e,t,r){if(r===null||typeof r!="object"||typeof r.method!="string")throw new ve(ee.InternalError,`Handler for ${e} returned an invalid input request '${t}': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let o=r,n=a_(o);if(n===void 0)throw new ve(ee.InternalError,`Handler for ${e} returned an input request '${t}' of kind '${o.method}', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:o,required:n}}function C1(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=[...t].map(o=>o.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}function Cm(e,t){if(e==="tools/call")return{content:[{type:"text",text:t}],isError:!0};throw new ve(ee.InternalError,t)}var A1=class{constructor(e){this._host=e}async fulfill(e,t,r,o,n){let{maxRounds:i,roundTimeoutMs:s}=this._host,a=o.mcpReq.signal,c=n,l=0;for(;;){if(l+=1,l>i)return Cm(e,$_(e,i));let u=c.inputRequests,p=u!=null&&Object.keys(u).length>0,d=typeof c.requestState=="string"?c.requestState:void 0;if(!p&&d===void 0)throw new ve(ee.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);let f;if(p){let y=this._host.resolvedClientCapabilities(o),m=[];for(let[_,w]of Object.entries(u)){let{embedded:z,required:S}=dS(e,_,w);if(z.method!=="roots/list"&&z.params===void 0)throw new ve(ee.InternalError,`Handler for ${e} returned an input request '${_}' of kind '${z.method}' without params`);if(Ml(S,y)!==void 0)return Cm(e,`Cannot request input '${_}' (${z.method}): the client on this 2025-era connection did not declare the required capability${y===void 0?" (no client capabilities are available on this connection \u2014 per-request legacy serving cannot receive server-to-client requests)":""}`);m.push([_,z])}let b=O_(a);try{let _={relatedRequestId:o.mcpReq.id,timeout:s,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:b.signal},w=await Promise.all(m.map(async([z,S])=>{try{return[z,await this._dispatchLeg(S,_)]}catch(x){throw b.abort(x),x}}));f=Object.fromEntries(w)}catch(_){if(a.aborted)throw _;return Cm(e,`Fulfilling input required by '${e}' failed: ${_ instanceof Error?_.message:String(_)}`)}finally{b.dispose()}}else await P_(T_,a);let g={...o,mcpReq:{...o.mcpReq,inputResponses:f,droppedInputResponseKeys:void 0,requestState:ss(d)}};if(d!==void 0){let y=await this._host.verifyRequestState(d,g,e);y!==void 0&&(g=_m(g,y))}let v=await t(r,g);if(!dr(v))return v;c=v}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let r=e.params;return r.mode==="url"&&r.elicitationId===void 0&&(r={...r,elicitationId:C1()}),await this._host.sendElicitation(r,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}},I1=new Set(["tools/call","prompts/get","resources/read"]),j1,N1,q1;var mS=class extends Sm{_clientCapabilities;_clientVersion;static{j1=(e,t)=>{t.clientCapabilities!==void 0&&(e._clientCapabilities=t.clientCapabilities),t.clientInfo!==void 0&&(e._clientVersion=t.clientInfo)},N1=(e,t)=>{let r=t.filter(o=>!e._supportedProtocolVersions.includes(o));r.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...r]),e.setRequestHandler("server/discover",()=>e._ondiscover())},q1=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_legacyInputRequiredShim(){return this._legacyShim??=new A1({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,r)=>this._verifyRequestState(e,t,r),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new Wl,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=k1(t?.inputRequired),t?.cacheHints!==void 0){for(let[r,o]of Object.entries(t.cacheHints))o!==void 0&&cm(o,`cacheHints['${r}']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",r=>this._oninitialize(r)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),rm(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let r=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:o}=e.params,n=Fl(Or,o);return n.success&&this._loggingLevels.set(r,n.data),{}})}buildContext(e,t){let r=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(o,n,i)=>{if(!this._capabilities.logging)return Promise.resolve();let s;if(this._servedModernEra()){if(s=e.mcpReq.envelope?.[Rr],s===void 0)return Promise.resolve()}else s=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return s!==void 0&&this.LOG_LEVEL_SEVERITY.get(o)<this.LOG_LEVEL_SEVERITY.get(s)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:o,data:n,logger:i}})},elicitInput:(o,n)=>this.elicitInput(o,n),requestSampling:(o,n)=>this.createMessage(o,n)},http:r?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(Or.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let r=this._loggingLevels.get(t);return r?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(r):!1};registerCapabilities(e){if(this.transport)throw new _e(Ee.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=xm(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if(e!=="tools/call"){let r=this._cacheHints?.[e],o=I1.has(e);return r===void 0&&!o?async(n,i)=>{let s=await t(n,i);if(dr(s))throw new ve(ee.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return s}:async(n,i)=>{let s=o?await this._invokeInputRequiredCapableHandler(e,t,n,i):await t(n,i);if(dr(s)){if(!o)throw new ve(ee.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return s}return r===void 0?s:Ll(s,r)}}return async(r,o)=>{let n=on(this._negotiatedProtocolVersion),i=n.validateRequest("tools/call",r);if(!i.ok)throw new ve(i.reason==="not-in-era"?ee.InternalError:ee.InvalidParams,i.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${i.message}`);let s=await this._invokeInputRequiredCapableHandler("tools/call",t,r,o);if(dr(s))return s;let a=om(s),c=n.validateResult("tools/call",a);if(!c.ok)throw new ve(c.reason==="not-in-era"?ee.InternalError:ee.InvalidParams,c.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${c.message}`);return c.value}}_servedModernEra(){return this._negotiatedProtocolVersion!==void 0&&is(this._negotiatedProtocolVersion)}async _invokeInputRequiredCapableHandler(e,t,r,o){let n=this._servedModernEra(),i=o.mcpReq.requestState();if(i!==void 0&&typeof i!="string")throw new ve(ee.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let s=o;if(typeof i=="string"){let p=await this._verifyRequestState(i,o,e);p!==void 0&&(s=_m(o,p))}let a;try{a=await t(r,s)}catch(p){throw p instanceof ve&&p.code===ee.UrlElicitationRequired&&n?new ve(ee.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { \u2026: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`):p}if(!dr(a))return a;if(!n){if(!this._inputRequiredServing.legacyShim)throw new ve(ee.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??Qr}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,r,s,a)}let c=a.inputRequests,l=c!=null&&Object.keys(c).length>0,u=typeof a.requestState=="string";if(!l&&!u)throw new ve(ee.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let p=this._inputRequestCapabilityView(o);for(let[d,f]of Object.entries(c)){let{embedded:g,required:v}=dS(e,d,f),y=Ml(v,p);if(y!==void 0)throw new Ul({requiredCapabilities:y},`Cannot request input '${d}' (${g.method}): the request's client capabilities do not declare the required capability`)}}return a}async _verifyRequestState(e,t,r){if(this._requestStateVerify!==void 0)try{return await this._requestStateVerify(e,t)}catch(o){throw this.onerror?.(new Error(`requestState verification rejected ${r}: ${o instanceof Error?o.message:String(o)}`)),new ve(ee.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[ur]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new _e(Ee.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: '${e}' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead \u2014 the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new _e(Ee.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new _e(Ee.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new _e(Ee.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new _e(Ee.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new _e(Ee.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new _e(Ee.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new _e(Ee.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new _e(Ee.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new _e(Ee.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new _e(Ee.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new _e(Ee.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new _e(Ee.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new _e(Ee.CapabilityNotSupported,`Server does not support tools (required for ${e})`);break;case"ping":case"initialize":break}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let r=c_(this._supportedProtocolVersions),o=r.includes(t)?t:r[0]??Qr;return this._negotiatedProtocolVersion=o,this.transport?.setProtocolVersion?.(o),{protocolVersion:o,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:rm(this._supportedProtocolVersions),capabilities:M1(this.getCapabilities()),...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new _e(Ee.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages.at(-1),s=Array.isArray(i.content)?i.content:[i.content],a=s.some(p=>p.type==="tool_result"),c=e.messages.length>1?e.messages.at(-2):void 0,l=c?Array.isArray(c.content)?c.content:[c.content]:[],u=l.some(p=>p.type==="tool_use");if(a){if(s.some(p=>p.type!=="tool_result"))throw new ve(ee.InvalidParams,"The last message must contain only tool_result content if any is present");if(!u)throw new ve(ee.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(u){let p=new Set(l.filter(f=>f.type==="tool_use").map(f=>f.id)),d=new Set(s.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(p.size!==d.size||![...p].every(f=>d.has(f)))throw new ve(ee.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let r=!!(e.tools||e.toolChoice),o=await this.request({method:"sampling/createMessage",params:e},t),n=this._wireCodec().samplingResultVariant(r,o);if(!n.ok)throw new _e(Ee.InvalidResult,`Invalid sampling/createMessage result: ${n.reason==="invalid"?n.message:n.reason}`);return n.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new _e(Ee.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new _e(Ee.CapabilityNotSupported,"Client does not support form elicitation.");break}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,r){let o=e.mode??"form",n=r?.validateAcceptedContent??!0;switch(o){case"url":{let i=e;return this.request({method:"elicitation/create",params:i},t)}case"form":{let i=e.mode==="form"?e:{...e,mode:"form"},s=await this.request({method:"elicitation/create",params:i},t);if(n&&s.action==="accept"&&s.content&&i.requestedSchema)try{let a=this._jsonSchemaValidator.getValidator(i.requestedSchema)(s.content);if(!a.valid)throw new ve(ee.InvalidParams,`Elicitation response content does not match requested schema: ${a.errorMessage}`)}catch(a){throw a instanceof ve?a:new ve(ee.InternalError,`Error validating elicitation response: ${a instanceof Error?a.message:String(a)}`)}return s}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new _e(Ee.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};function M1(e){return{...e}}var Xl=class{server;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(!(t===void 0||!t.enabled)){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(t.inputSchema===void 0)return iS;try{let r=Cr(t.inputSchema,"input");return this._toolInputSchemaJson[e]=r,r}catch{return}}}constructor(e,t){this.server=new mS(e,t),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let r={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?Cr(t.inputSchema,"input"):iS,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(r.outputSchema=Cr(t.outputSchema,"output")),r})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let r=this._registeredTools[e.params.name];if(!r)throw new ve(ee.InvalidParams,`Tool ${e.params.name} not found`);if(!r.enabled)throw new ve(ee.InvalidParams,`Tool ${e.params.name} disabled`);try{let o=await this.validateToolInput(r,e.params.arguments,e.params.name),n=await this.executeToolHandler(r,o,t);return await this.validateToolOutput(r,n,e.params.name),dr(n)?n:this.server.projectCallToolResult(n,r.outputSchemaJson)}catch(o){if(o instanceof ve&&o.code===ee.UrlElicitationRequired)throw o;return this.createToolError(o instanceof Error?o.message:String(o))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,r){if(!e.inputSchema)return;let o=await oo(e.inputSchema,t??{});if(!o.success)throw new ve(ee.InvalidParams,`Input validation error: Invalid arguments for tool ${r}: ${o.error}`);return o.data}async validateToolOutput(e,t,r){if(!e.outputSchema||dr(t)||t.isError)return;if(t.structuredContent===void 0)throw new ve(ee.InvalidParams,`Output validation error: Tool ${r} has an output schema but no structured content was provided`);let o=await oo(e.outputSchema,t.structuredContent);if(!o.success)throw new ve(ee.InvalidParams,`Output validation error: Invalid structured content for tool ${r}: ${o.error}`)}async executeToolHandler(e,t,r){return e.executor(t,r)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":return gm(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return vm(e),this.handleResourceCompletion(e,e.params.ref);default:throw new ve(ee.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let r=this._registeredPrompts[t.name];if(!r)throw new ve(ee.InvalidParams,`Prompt ${t.name} not found`);if(!r.enabled)throw new ve(ee.InvalidParams,`Prompt ${t.name} disabled`);if(!r.argsSchema)return cs;let o=uS(lS(r.argsSchema)?.[e.params.argument.name]);if(!Am(o))return cs;let n=$1(o);return n?cS(await n(e.params.argument.value,e.params.context)):cs}async handleResourceCompletion(e,t){let r=Object.values(this._registeredResourceTemplates).find(n=>n.resourceTemplate.uriTemplate.toString()===t.uri);if(!r){if(this._registeredResources[t.uri])return cs;throw new ve(ee.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=r.resourceTemplate.completeCallback(e.params.argument.name);return o?cS(await o(e.params.argument.value,e.params.context)):cs}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let r=Object.entries(this._registeredResources).filter(([n,i])=>i.enabled).map(([n,i])=>({uri:n,name:i.name,...i.metadata})),o=[];for(let n of Object.values(this._registeredResourceTemplates)){if(!n.resourceTemplate.listCallback)continue;let i=await n.resourceTemplate.listCallback(t);for(let s of i.resources)o.push({...n.metadata,...s})}return{resources:[...r,...o]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let r;try{r=new URL(e.params.uri)}catch{throw new ve(ee.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let o=this._registeredResources[r.toString()];if(o){if(!o.enabled)throw new ve(ee.InvalidParams,`Resource ${r} disabled`);return Ll(await o.readCallback(r,t),o.cacheHint)}for(let n of Object.values(this._registeredResourceTemplates)){let i=n.resourceTemplate.uriTemplate.match(r.toString());if(i)return Ll(await n.readCallback(r,i,t),n.cacheHint)}throw new Dl(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?E_(t.argsSchema):void 0,icons:t.icons,_meta:t._meta}))})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let r=this._registeredPrompts[e.params.name];if(!r)throw new ve(ee.InvalidParams,`Prompt ${e.params.name} not found`);if(!r.enabled)throw new ve(ee.InvalidParams,`Prompt ${e.params.name} disabled`);return r.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,r,o){let n=r.cacheHint,i=r;if(n!==void 0){cm(n,`resource ${e}`);let s={...r};delete s.cacheHint,i=s}if(typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);let s=this._createRegisteredResource(e,r.title,t,i,o);return n!==void 0&&(s.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let s=this._createRegisteredResourceTemplate(e,r.title,t,i,o);return n!==void 0&&(s.cacheHint=n),this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}_createRegisteredResource(e,t,r,o,n){let i={name:e,title:t,metadata:o,readCallback:n,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({uri:null}),update:s=>{s.uri!==void 0&&s.uri!==r&&(delete this._registeredResources[r],s.uri&&(this._registeredResources[s.uri]=i)),s.name!==void 0&&(i.name=s.name),s.title!==void 0&&(i.title=s.title),s.metadata!==void 0&&(i.metadata=s.metadata),s.callback!==void 0&&(i.readCallback=s.callback),s.enabled!==void 0&&(i.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[r]=i,i}_createRegisteredResourceTemplate(e,t,r,o,n){let i={resourceTemplate:r,title:t,metadata:o,readCallback:n,enabled:!0,disable:()=>i.update({enabled:!1}),enable:()=>i.update({enabled:!0}),remove:()=>i.update({name:null}),update:a=>{a.name!==void 0&&a.name!==e&&(delete this._registeredResourceTemplates[e],a.name&&(this._registeredResourceTemplates[a.name]=i)),a.title!==void 0&&(i.title=a.title),a.template!==void 0&&(i.resourceTemplate=a.template),a.metadata!==void 0&&(i.metadata=a.metadata),a.callback!==void 0&&(i.readCallback=a.callback),a.enabled!==void 0&&(i.enabled=a.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=i;let s=r.uriTemplate.variableNames;return Array.isArray(s)&&s.some(a=>!!r.completeCallback(a))&&this.setCompletionRequestHandler(),i}_createRegisteredPrompt(e,t,r,o,n,i,s){let a=o,c=n,l={title:t,description:r,argsSchema:o,icons:i,_meta:s,handler:aS(e,o,n),enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:u=>{u.name!==void 0&&u.name!==e&&(delete this._registeredPrompts[e],u.name&&(this._registeredPrompts[u.name]=l)),u.title!==void 0&&(l.title=u.title),u.description!==void 0&&(l.description=u.description),u.icons!==void 0&&(l.icons=u.icons),u._meta!==void 0&&(l._meta=u._meta);let p=!1;u.argsSchema!==void 0&&(l.argsSchema=u.argsSchema,a=u.argsSchema,p=!0),u.callback!==void 0&&(c=u.callback,p=!0),p&&(l.handler=aS(e,a,c)),u.enabled!==void 0&&(l.enabled=u.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=l,o){let u=lS(o);u&&Object.values(u).some(p=>Am(uS(p)))&&this.setCompletionRequestHandler()}return l}_createRegisteredTool(e,t,r,o,n,i,s,a,c,l){if(zm(e),o!==void 0)try{let d=Cr(o,"input");this._toolInputSchemaJson[e]=d;let f=ym(d);f.valid||console.warn(`[mcp-sdk] tool '${e}' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${f.reason}`)}catch{}let u=l,p={title:t,description:r,inputSchema:o,outputSchema:n,outputSchemaJson:sS(n),annotations:i,icons:s,execution:a,_meta:c,handler:l,executor:nS(o,l),enabled:!0,disable:()=>p.update({enabled:!1}),enable:()=>p.update({enabled:!0}),remove:()=>p.update({name:null}),update:d=>{d.name!==void 0&&d.name!==e&&(typeof d.name=="string"&&zm(d.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],d.name&&(delete this._toolInputSchemaJson[d.name],this._registeredTools[d.name]=p,e=d.name)),d.title!==void 0&&(p.title=d.title),d.description!==void 0&&(p.description=d.description);let f=!1;d.paramsSchema!==void 0&&(p.inputSchema=d.paramsSchema,delete this._toolInputSchemaJson[e],f=!0),d.callback!==void 0&&(p.handler=d.callback,u=d.callback,f=!0),f&&(p.executor=nS(p.inputSchema,u)),d.outputSchema!==void 0&&(p.outputSchema=d.outputSchema,p.outputSchemaJson=sS(d.outputSchema)),d.annotations!==void 0&&(p.annotations=d.annotations),d.icons!==void 0&&(p.icons=d.icons),d._meta!==void 0&&(p._meta=d._meta),d.enabled!==void 0&&(p.enabled=d.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=p,this.setToolRequestHandlers(),this.sendToolListChanged(),p}registerTool(e,t,r){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:o,description:n,inputSchema:i,outputSchema:s,annotations:a,icons:c,_meta:l}=t;return this._createRegisteredTool(e,o,n,Bl(i),Bl(s),a,c,void 0,l,r)}registerPrompt(e,t,r){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:o,description:n,argsSchema:i,icons:s,_meta:a}=t,c=this._createRegisteredPrompt(e,o,n,Bl(i),r,s,a);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),c}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};function nS(e,t){if(e){let o=t;return async(n,i)=>o(n,i)}let r=t;return async(o,n)=>r(n)}var iS={type:"object",properties:{}};function sS(e){if(e!==void 0)try{return Cr(e,"output")}catch{return}}function aS(e,t,r){if(t){let o=r;return async(n,i)=>{let s=await oo(t,n);if(!s.success)throw new ve(ee.InvalidParams,`Invalid arguments for prompt ${e}: ${s.error}`);return o(s.data,i)}}else{let o=r;return async(n,i)=>o(i)}}function cS(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}var cs={completion:{values:[],hasMore:!1}};function lS(e){let t=e;if(t.shape&&typeof t.shape=="object")return t.shape}function L1(e){return e?.type==="optional"}function uS(e){return L1(e)?e.def?.innerType??e:e}var fS=class{_readBuffer;_started=!1;_closed=!1;constructor(e=Yl.default.stdin,t=Yl.default.stdout,r){this._stdin=e,this._stdout=t,this._readBuffer=new wm({maxBufferSize:r?.maxBufferSize})}onclose;onerror;onmessage;_ondata=e=>{try{this._readBuffer.append(e),this.processReadBuffer()}catch(t){this.onerror?.(t),this.close().catch(()=>{})}};_onerror=e=>{this.onerror?.(e)};_onstdouterror=e=>{this.onerror?.(e),this.close().catch(()=>{})};async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror),this._stdout.on("error",this._onstdouterror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._closed||(this._closed=!0,this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdout.off("error",this._onstdouterror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.())}send(e){return this._closed?Promise.reject(new Error("StdioServerTransport is closed")):new Promise((t,r)=>{let o=Rm(e),n=!1,i=a=>{n||(n=!0,this._stdout.off("error",i),this._stdout.off("drain",s),r(a))},s=()=>{n||(n=!0,this._stdout.off("error",i),this._stdout.off("drain",s),t())};if(this._stdout.once("error",i),this._stdout.write(o)){if(n)return;n=!0,this._stdout.off("error",i),t()}else n||this._stdout.once("drain",s)})}};function Ql(e){return e==null}var J1="0123456789abcdefghijklmnopqrstuvwxyz";function Zt(e){return J1.charAt(e)}function hS(e,t){return e&t}function ls(e,t){return e|t}function Im(e,t){return e^t}function jm(e,t){return e&~t}function gS(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function vS(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yS="=";function io(e){var t,r,o="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),o+=cn.charAt(r>>6)+cn.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),o+=cn.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),o+=cn.charAt(r>>2)+cn.charAt((r&3)<<4));(o.length&3)>0;)o+=yS;return o}function Nm(e){var t="",r,o=0,n=0;for(r=0;r<e.length&&e.charAt(r)!=yS;++r){var i=cn.indexOf(e.charAt(r));i<0||(o==0?(t+=Zt(i>>2),n=i&3,o=1):o==1?(t+=Zt(n<<2|i>>4),n=i&15,o=2):o==2?(t+=Zt(n),t+=Zt(i>>2),n=i&3,o=3):(t+=Zt(n<<2|i>>4),t+=Zt(i&15),o=0))}return o==1&&(t+=Zt(n<<2)),t}var ln,bS={decode:function(e){var t;if(ln===void 0){var r="0123456789ABCDEF",o=` \f
|
|
75
|
+
\r \xA0\u2028\u2029`;for(ln={},t=0;t<16;++t)ln[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)ln[r.charAt(t)]=t;for(t=0;t<o.length;++t)ln[o.charAt(t)]=-1}var n=[],i=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=ln[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++s>=2?(n[n.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var so,eu={decode:function(e){var t;if(so===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
|
|
76
|
+
\r \xA0\u2028\u2029`;for(so=Object.create(null),t=0;t<64;++t)so[r.charAt(t)]=t;for(so["-"]=62,so._=63,t=0;t<o.length;++t)so[o.charAt(t)]=-1}var n=[],i=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=so[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++s>=4?(n[n.length]=i>>16,n[n.length]=i>>8&255,n[n.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=i>>10;break;case 3:n[n.length]=i>>16,n[n.length]=i>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=eu.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return eu.decode(e)}};var un=1e13,pn=(function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var o=this.buf,n=o.length,i,s;for(i=0;i<n;++i)s=o[i]*t+r,s<un?r=0:(r=0|s/un,s-=r*un),o[i]=s;r>0&&(o[i]=r)},e.prototype.sub=function(t){var r=this.buf,o=r.length,n,i;for(n=0;n<o;++n)i=r[n]-t,i<0?(i+=un,t=1):t=0,r[n]=i;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,o=r[r.length-1].toString(),n=r.length-2;n>=0;--n)o+=(un+r[n]).toString().substring(1);return o},e.prototype.valueOf=function(){for(var t=this.buf,r=0,o=t.length-1;o>=0;--o)r=r*un+t[o];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e})();var SS="\u2026",K1=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,G1=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function dn(e,t){return e.length>t&&(e=e.substring(0,t)+SS),e}var qm=(function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,o){for(var n="",i=t;i<r;++i)if(n+=this.hexByte(this.get(i)),o!==!0)switch(i&15){case 7:n+=" ";break;case 15:n+=`
|
|
77
|
+
`;break;default:n+=" "}return n},e.prototype.isASCII=function(t,r){for(var o=t;o<r;++o){var n=this.get(o);if(n<32||n>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var o="",n=t;n<r;++n)o+=String.fromCharCode(this.get(n));return o},e.prototype.parseStringUTF=function(t,r){for(var o="",n=t;n<r;){var i=this.get(n++);i<128?o+=String.fromCharCode(i):i>191&&i<224?o+=String.fromCharCode((i&31)<<6|this.get(n++)&63):o+=String.fromCharCode((i&15)<<12|(this.get(n++)&63)<<6|this.get(n++)&63)}return o},e.prototype.parseStringBMP=function(t,r){for(var o="",n,i,s=t;s<r;)n=this.get(s++),i=this.get(s++),o+=String.fromCharCode(n<<8|i);return o},e.prototype.parseTime=function(t,r,o){var n=this.parseStringISO(t,r),i=(o?K1:G1).exec(n);return i?(o&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),n=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(n+=":"+i[5],i[6]&&(n+=":"+i[6],i[7]&&(n+="."+i[7]))),i[8]&&(n+=" UTC",i[8]!="Z"&&(n+=i[8],i[9]&&(n+=":"+i[9]))),n):"Unrecognized time: "+n},e.prototype.parseInteger=function(t,r){for(var o=this.get(t),n=o>127,i=n?255:0,s,a="";o==i&&++t<r;)o=this.get(t);if(s=r-t,s===0)return n?-1:0;if(s>4){for(a=o,s<<=3;((+a^i)&128)==0;)a=+a<<1,--s;a="("+s+` bit)
|
|
78
|
+
`}n&&(o=o-256);for(var c=new pn(o),l=t+1;l<r;++l)c.mulAdd(256,this.get(l));return a+c.toString()},e.prototype.parseBitString=function(t,r,o){for(var n=this.get(t),i=(r-t-1<<3)-n,s="("+i+` bit)
|
|
79
|
+
`,a="",c=t+1;c<r;++c){for(var l=this.get(c),u=c==r-1?n:0,p=7;p>=u;--p)a+=l>>p&1?"1":"0";if(a.length>o)return s+dn(a,o)}return s+a},e.prototype.parseOctetString=function(t,r,o){if(this.isASCII(t,r))return dn(this.parseStringISO(t,r),o);var n=r-t,i="("+n+` byte)
|
|
80
|
+
`;o/=2,n>o&&(r=t+o);for(var s=t;s<r;++s)i+=this.hexByte(this.get(s));return n>o&&(i+=SS),i},e.prototype.parseOID=function(t,r,o){for(var n="",i=new pn,s=0,a=t;a<r;++a){var c=this.get(a);if(i.mulAdd(128,c&127),s+=7,!(c&128)){if(n==="")if(i=i.simplify(),i instanceof pn)i.sub(80),n="2."+i.toString();else{var l=i<80?i<40?0:1:2;n=l+"."+(i-l*40)}else n+="."+i.toString();if(n.length>o)return dn(n,o);i=new pn,s=0}}return s>0&&(n+=".incomplete"),n},e})();var xS=(function(){function e(t,r,o,n,i){if(!(n instanceof _S))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=o,this.tag=n,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),o=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+o,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+o,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+o,t);case 6:return this.stream.parseOID(r,r+o,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return dn(this.stream.parseStringUTF(r,r+o),t);case 18:case 19:case 20:case 21:case 22:case 26:return dn(this.stream.parseStringISO(r,r+o),t);case 30:return dn(this.stream.parseStringBMP(r,r+o),t);case 23:case 24:return this.stream.parseTime(r,r+o,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
|
|
81
|
+
`,this.sub!==null){t+=" ";for(var o=0,n=this.sub.length;o<n;++o)r+=this.sub[o].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),o=r&127;if(o==r)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(o===0)return null;r=0;for(var n=0;n<o;++n)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,o=this.length*2;return t.substring(r,r+o)},e.decode=function(t){var r;t instanceof qm?r=t:r=new qm(t,0);var o=new qm(r),n=new _S(r),i=e.decodeLength(r),s=r.pos,a=s-o.pos,c=null,l=function(){var p=[];if(i!==null){for(var d=s+i;r.pos<d;)p[p.length]=e.decode(r);if(r.pos!=d)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var f=e.decode(r);if(f.tag.isEOC())break;p[p.length]=f}i=s-r.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return p};if(n.tagConstructed)c=l();else if(n.isUniversal()&&(n.tagNumber==3||n.tagNumber==4))try{if(n.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=l();for(var u=0;u<c.length;++u)if(c[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(i)}return new e(o,a,i,n,c)},e})();var _S=(function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var o=new pn;do r=t.get(),o.mulAdd(128,r&127);while(r&128);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e})();var Ir,W1=0xdeadbeefcafe,wS=(W1&16777215)==15715070,_t=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Y1=(1<<26)/_t[_t.length-1],xe=(function(){function e(t,r,o){t!=null&&(typeof t=="number"?this.fromNumber(t,r,o):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var o=(1<<r)-1,n,i=!1,s="",a=this.t,c=this.DB-a*this.DB%r;if(a-- >0)for(c<this.DB&&(n=this[a]>>c)>0&&(i=!0,s=Zt(n));a>=0;)c<r?(n=(this[a]&(1<<c)-1)<<r-c,n|=this[--a]>>(c+=this.DB-r)):(n=this[a]>>(c-=r)&o,c<=0&&(c+=this.DB,--a)),n>0&&(i=!0),i&&(s+=Zt(n));return i?s:"0"},e.prototype.negate=function(){var t=Te();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var o=this.t;if(r=o-t.t,r!=0)return this.s<0?-r:r;for(;--o>=0;)if((r=this[o]-t[o])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+tu(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Te();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var o;return t<256||r.isEven()?o=new RS(r):o=new zS(r),this.exp(t,o)},e.prototype.clone=function(){var t=Te();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var o=this.DB-t*this.DB%8,n,i=0;if(t-- >0)for(o<this.DB&&(n=this[t]>>o)!=(this.s&this.DM)>>o&&(r[i++]=n|this.s<<this.DB-o);t>=0;)o<8?(n=(this[t]&(1<<o)-1)<<8-o,n|=this[--t]>>(o+=this.DB-8)):(n=this[t]>>(o-=8)&255,o<=0&&(o+=this.DB,--t)),(n&128)!=0&&(n|=-256),i==0&&(this.s&128)!=(n&128)&&++i,(i>0||n!=this.s)&&(r[i++]=n);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Te();return this.bitwiseTo(t,hS,r),r},e.prototype.or=function(t){var r=Te();return this.bitwiseTo(t,ls,r),r},e.prototype.xor=function(t){var r=Te();return this.bitwiseTo(t,Im,r),r},e.prototype.andNot=function(t){var r=Te();return this.bitwiseTo(t,jm,r),r},e.prototype.not=function(){for(var t=Te(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Te();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Te();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+gS(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,o=0;o<this.t;++o)t+=vS(this[o]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,ls)},e.prototype.clearBit=function(t){return this.changeBit(t,jm)},e.prototype.flipBit=function(t){return this.changeBit(t,Im)},e.prototype.add=function(t){var r=Te();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Te();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Te();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Te();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Te();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Te(),o=Te();return this.divRemTo(t,r,o),[r,o]},e.prototype.modPow=function(t,r){var o=t.bitLength(),n,i=Ar(1),s;if(o<=0)return i;o<18?n=1:o<48?n=3:o<144?n=4:o<768?n=5:n=6,o<8?s=new RS(r):r.isEven()?s=new Q1(r):s=new zS(r);var a=[],c=3,l=n-1,u=(1<<n)-1;if(a[1]=s.convert(this),n>1){var p=Te();for(s.sqrTo(a[1],p);c<=u;)a[c]=Te(),s.mulTo(p,a[c-2],a[c]),c+=2}var d=t.t-1,f,g=!0,v=Te(),y;for(o=tu(t[d])-1;d>=0;){for(o>=l?f=t[d]>>o-l&u:(f=(t[d]&(1<<o+1)-1)<<l-o,d>0&&(f|=t[d-1]>>this.DB+o-l)),c=n;(f&1)==0;)f>>=1,--c;if((o-=c)<0&&(o+=this.DB,--d),g)a[f].copyTo(i),g=!1;else{for(;c>1;)s.sqrTo(i,v),s.sqrTo(v,i),c-=2;c>0?s.sqrTo(i,v):(y=i,i=v,v=y),s.mulTo(v,a[f],i)}for(;d>=0&&(t[d]&1<<o)==0;)s.sqrTo(i,v),y=i,i=v,v=y,--o<0&&(o=this.DB-1,--d)}return s.revert(i)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var o=t.clone(),n=this.clone(),i=Ar(1),s=Ar(0),a=Ar(0),c=Ar(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),r?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(t,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),r?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);o.compareTo(n)>=0?(o.subTo(n,o),r&&i.subTo(a,i),s.subTo(c,s)):(n.subTo(o,n),r&&a.subTo(i,a),c.subTo(s,c))}if(n.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new X1)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),o=t.s<0?t.negate():t.clone();if(r.compareTo(o)<0){var n=r;r=o,o=n}var i=r.getLowestSetBit(),s=o.getLowestSetBit();if(s<0)return r;for(i<s&&(s=i),s>0&&(r.rShiftTo(s,r),o.rShiftTo(s,o));r.signum()>0;)(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o));return s>0&&o.lShiftTo(s,o),o},e.prototype.isProbablePrime=function(t){var r,o=this.abs();if(o.t==1&&o[0]<=_t[_t.length-1]){for(r=0;r<_t.length;++r)if(o[0]==_t[r])return!0;return!1}if(o.isEven())return!1;for(r=1;r<_t.length;){for(var n=_t[r],i=r+1;i<_t.length&&n<Y1;)n*=_t[i++];for(n=o.modInt(n);r<i;)if(n%_t[r++]==0)return!1}return o.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var o;if(r==16)o=4;else if(r==8)o=3;else if(r==256)o=8;else if(r==2)o=1;else if(r==32)o=5;else if(r==4)o=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var n=t.length,i=!1,s=0;--n>=0;){var a=o==8?+t[n]&255:TS(t,n);if(a<0){t.charAt(n)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=a:s+o>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=o,s>=this.DB&&(s-=this.DB)}o==8&&(+t[0]&128)!=0&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var o;for(o=this.t-1;o>=0;--o)r[o+t]=this[o];for(o=t-1;o>=0;--o)r[o]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var o=t;o<this.t;++o)r[o-t]=this[o];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var o=t%this.DB,n=this.DB-o,i=(1<<n)-1,s=Math.floor(t/this.DB),a=this.s<<o&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>n|a,a=(this[c]&i)<<o;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=a,r.t=this.t+s+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var o=Math.floor(t/this.DB);if(o>=this.t){r.t=0;return}var n=t%this.DB,i=this.DB-n,s=(1<<n)-1;r[0]=this[o]>>n;for(var a=o+1;a<this.t;++a)r[a-o-1]|=(this[a]&s)<<i,r[a-o]=this[a]>>n;n>0&&(r[this.t-o-1]|=(this.s&s)<<i),r.t=this.t-o,r.clamp()},e.prototype.subTo=function(t,r){for(var o=0,n=0,i=Math.min(t.t,this.t);o<i;)n+=this[o]-t[o],r[o++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;o<this.t;)n+=this[o],r[o++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;o<t.t;)n-=t[o],r[o++]=n&this.DM,n>>=this.DB;n-=t.s}r.s=n<0?-1:0,n<-1?r[o++]=this.DV+n:n>0&&(r[o++]=n),r.t=o,r.clamp()},e.prototype.multiplyTo=function(t,r){var o=this.abs(),n=t.abs(),i=o.t;for(r.t=i+n.t;--i>=0;)r[i]=0;for(i=0;i<n.t;++i)r[i+o.t]=o.am(0,n[i],r,i,0,o.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),o=t.t=2*r.t;--o>=0;)t[o]=0;for(o=0;o<r.t-1;++o){var n=r.am(o,r[o],t,2*o,0,1);(t[o+r.t]+=r.am(o+1,2*r[o],t,2*o+1,n,r.t-o-1))>=r.DV&&(t[o+r.t]-=r.DV,t[o+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(o,r[o],t,2*o,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,o){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){r?.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=Te());var s=Te(),a=this.s,c=t.s,l=this.DB-tu(n[n.t-1]);l>0?(n.lShiftTo(l,s),i.lShiftTo(l,o)):(n.copyTo(s),i.copyTo(o));var u=s.t,p=s[u-1];if(p!=0){var d=p*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),f=this.FV/d,g=(1<<this.F1)/d,v=1<<this.F2,y=o.t,m=y-u,b=r??Te();for(s.dlShiftTo(m,b),o.compareTo(b)>=0&&(o[o.t++]=1,o.subTo(b,o)),e.ONE.dlShiftTo(u,b),b.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--m>=0;){var _=o[--y]==p?this.DM:Math.floor(o[y]*f+(o[y-1]+v)*g);if((o[y]+=s.am(0,_,o,m,0,u))<_)for(s.dlShiftTo(m,b),o.subTo(b,o);o[y]<--_;)o.subTo(b,o)}r!=null&&(o.drShiftTo(u,r),a!=c&&e.ZERO.subTo(r,r)),o.t=u,o.clamp(),l>0&&o.rShiftTo(l,o),a<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var o=Te(),n=Te(),i=r.convert(this),s=tu(t)-1;for(i.copyTo(o);--s>=0;)if(r.sqrTo(o,n),(t&1<<s)>0)r.mulTo(n,i,o);else{var a=o;o=n,n=a}return r.revert(o)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),o=Math.pow(t,r),n=Ar(o),i=Te(),s=Te(),a="";for(this.divRemTo(n,i,s);i.signum()>0;)a=(o+s.intValue()).toString(t).substring(1)+a,i.divRemTo(n,i,s);return s.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var o=this.chunkSize(r),n=Math.pow(r,o),i=!1,s=0,a=0,c=0;c<t.length;++c){var l=TS(t,c);if(l<0){t.charAt(c)=="-"&&this.signum()==0&&(i=!0);continue}a=r*a+l,++s>=o&&(this.dMultiply(n),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,o){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,o),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ls,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var n=[],i=t&7;n.length=(t>>3)+1,r.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},e.prototype.bitwiseTo=function(t,r,o){var n,i,s=Math.min(t.t,this.t);for(n=0;n<s;++n)o[n]=r(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=s;n<this.t;++n)o[n]=r(this[n],i);o.t=this.t}else{for(i=this.s&this.DM,n=s;n<t.t;++n)o[n]=r(i,t[n]);o.t=t.t}o.s=r(this.s,t.s),o.clamp()},e.prototype.changeBit=function(t,r){var o=e.ONE.shiftLeft(t);return this.bitwiseTo(o,r,o),o},e.prototype.addTo=function(t,r){for(var o=0,n=0,i=Math.min(t.t,this.t);o<i;)n+=this[o]+t[o],r[o++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;o<this.t;)n+=this[o],r[o++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;o<t.t;)n+=t[o],r[o++]=n&this.DM,n>>=this.DB;n+=t.s}r.s=n<0?-1:0,n>0?r[o++]=n:n<-1&&(r[o++]=this.DV+n),r.t=o,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,o){var n=Math.min(this.t+t.t,r);for(o.s=0,o.t=n;n>0;)o[--n]=0;for(var i=o.t-this.t;n<i;++n)o[n+this.t]=this.am(0,t[n],o,n,0,this.t);for(var i=Math.min(t.t,r);n<i;++n)this.am(0,t[n],o,n,0,r-n);o.clamp()},e.prototype.multiplyUpperTo=function(t,r,o){--r;var n=o.t=this.t+t.t-r;for(o.s=0;--n>=0;)o[n]=0;for(n=Math.max(r-this.t,0);n<t.t;++n)o[this.t+n-r]=this.am(r-n,t[n],o,0,0,this.t+n-r);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,o=this.s<0?t-1:0;if(this.t>0)if(r==0)o=this[0]%t;else for(var n=this.t-1;n>=0;--n)o=(r*o+this[n])%t;return o},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),o=r.getLowestSetBit();if(o<=0)return!1;var n=r.shiftRight(o);t=t+1>>1,t>_t.length&&(t=_t.length);for(var i=Te(),s=0;s<t;++s){i.fromInt(_t[Math.floor(Math.random()*_t.length)]);var a=i.modPow(n,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var c=1;c++<o&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Te();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var o=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(o.compareTo(n)<0){var i=o;o=n,n=i}var s=o.getLowestSetBit(),a=n.getLowestSetBit();if(a<0){r(o);return}s<a&&(a=s),a>0&&(o.rShiftTo(a,o),n.rShiftTo(a,n));var c=function(){(s=o.getLowestSetBit())>0&&o.rShiftTo(s,o),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),o.compareTo(n)>=0?(o.subTo(n,o),o.rShiftTo(1,o)):(n.subTo(o,n),n.rShiftTo(1,n)),o.signum()>0?setTimeout(c,0):(a>0&&n.lShiftTo(a,n),setTimeout(function(){r(n)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(t,r,o,n){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,o),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ls,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(r)?setTimeout(function(){n()},0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,r.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e})();var X1=(function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,o){t.multiplyTo(r,o)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e})(),RS=(function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,o){t.multiplyTo(r,o),this.reduce(o)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),zS=(function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Te();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(xe.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Te();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var o=t[r]&32767,n=o*this.mpl+((o*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(o=r+this.m.t,t[o]+=this.m.am(0,n,t,r,0,this.m.t);t[o]>=t.DV;)t[o]-=t.DV,t[++o]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,o){t.multiplyTo(r,o),this.reduce(o)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})(),Q1=(function(){function e(t){this.m=t,this.r2=Te(),this.q3=Te(),xe.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Te();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,o){t.multiplyTo(r,o),this.reduce(o)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e})();function Te(){return new xe(null)}function Je(e,t){return new xe(e,t)}var ES=typeof navigator<"u";ES&&wS&&navigator.appName=="Microsoft Internet Explorer"?(xe.prototype.am=function(t,r,o,n,i,s){for(var a=r&32767,c=r>>15;--s>=0;){var l=this[t]&32767,u=this[t++]>>15,p=c*l+u*a;l=a*l+((p&32767)<<15)+o[n]+(i&1073741823),i=(l>>>30)+(p>>>15)+c*u+(i>>>30),o[n++]=l&1073741823}return i},Ir=30):ES&&wS&&navigator.appName!="Netscape"?(xe.prototype.am=function(t,r,o,n,i,s){for(;--s>=0;){var a=r*this[t++]+o[n]+i;i=Math.floor(a/67108864),o[n++]=a&67108863}return i},Ir=26):(xe.prototype.am=function(t,r,o,n,i,s){for(var a=r&16383,c=r>>14;--s>=0;){var l=this[t]&16383,u=this[t++]>>14,p=c*l+u*a;l=a*l+((p&16383)<<14)+o[n]+i,i=(l>>28)+(p>>14)+c*u,o[n++]=l&268435455}return i},Ir=28);xe.prototype.DB=Ir;xe.prototype.DM=(1<<Ir)-1;xe.prototype.DV=1<<Ir;var Mm=52;xe.prototype.FV=Math.pow(2,Mm);xe.prototype.F1=Mm-Ir;xe.prototype.F2=2*Ir-Mm;var ru=[],mn,Mt;mn=48;for(Mt=0;Mt<=9;++Mt)ru[mn++]=Mt;mn=97;for(Mt=10;Mt<36;++Mt)ru[mn++]=Mt;mn=65;for(Mt=10;Mt<36;++Mt)ru[mn++]=Mt;function TS(e,t){var r=ru[e.charCodeAt(t)];return r??-1}function Ar(e){var t=Te();return t.fromInt(e),t}function tu(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}xe.ZERO=Ar(0);xe.ONE=Ar(1);var eO=(function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,o,n;for(r=0;r<256;++r)this.S[r]=r;for(o=0,r=0;r<256;++r)o=o+this.S[r]+t[r%t.length]&255,n=this.S[r],this.S[r]=this.S[o],this.S[o]=n;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e})();function $S(){return new eO}var Lm=256;var ou,jr=null,Jt;if(jr==null){if(jr=[],Jt=0,us=void 0,typeof window<"u"&&self.crypto&&self.crypto.getRandomValues)for(nu=new Uint32Array(256),self.crypto.getRandomValues(nu),us=0;us<nu.length;++us)jr[Jt++]=nu[us]&255;ps=0,ds=function(e){if(ps=ps||0,ps>=256||Jt>=Lm){self.removeEventListener?self.removeEventListener("mousemove",ds,!1):self.detachEvent&&self.detachEvent("onmousemove",ds);return}try{var t=e.x+e.y;jr[Jt++]=t&255,ps+=1}catch{}},typeof window<"u"&&(self.addEventListener?self.addEventListener("mousemove",ds,!1):self.attachEvent&&self.attachEvent("onmousemove",ds))}var us,nu,ps,ds;function tO(){if(ou==null){for(ou=$S();Jt<Lm;){var e=Math.floor(65536*Math.random());jr[Jt++]=e&255}for(ou.init(jr),Jt=0;Jt<jr.length;++Jt)jr[Jt]=0;Jt=0}return ou.next()}var ms=(function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=tO()},e})();function fs(e){return oO(pO(rO(e),e.length*8))}function Dm(e){for(var t="0123456789abcdef",r="",o=0;o<e.length;o++){var n=e.charCodeAt(o);r+=t.charAt(n>>>4&15)+t.charAt(n&15)}return r}function rO(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<e.length*8;r+=8)t[r>>5]|=(e.charCodeAt(r/8)&255)<<24-r%32;return t}function oO(e){for(var t="",r=0;r<e.length*32;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}function Xt(e,t){return e>>>t|e<<32-t}function PS(e,t){return e>>>t}function nO(e,t,r){return e&t^~e&r}function iO(e,t,r){return e&t^e&r^t&r}function sO(e){return Xt(e,2)^Xt(e,13)^Xt(e,22)}function aO(e){return Xt(e,6)^Xt(e,11)^Xt(e,25)}function cO(e){return Xt(e,7)^Xt(e,18)^PS(e,3)}function lO(e){return Xt(e,17)^Xt(e,19)^PS(e,10)}var uO=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function pO(e,t){var r=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),o=new Array(64),n,i,s,a,c,l,u,p,d,f,g,v;for(e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t,d=0;d<e.length;d+=16){for(n=r[0],i=r[1],s=r[2],a=r[3],c=r[4],l=r[5],u=r[6],p=r[7],f=0;f<64;f++)f<16?o[f]=e[f+d]:o[f]=at(at(at(lO(o[f-2]),o[f-7]),cO(o[f-15])),o[f-16]),g=at(at(at(at(p,aO(c)),nO(c,l,u)),uO[f]),o[f]),v=at(sO(n),iO(n,i,s)),p=u,u=l,l=c,c=at(a,g),a=s,s=i,i=n,n=at(g,v);r[0]=at(n,r[0]),r[1]=at(i,r[1]),r[2]=at(s,r[2]),r[3]=at(a,r[3]),r[4]=at(c,r[4]),r[5]=at(l,r[5]),r[6]=at(u,r[6]),r[7]=at(p,r[7])}return r}function at(e,t){var r=(e&65535)+(t&65535),o=(e>>16)+(t>>16)+(r>>16);return o<<16|r&65535}function dO(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,o="",n=0;n<r;n+=2)o+="ff";var i="0001"+o+"00"+e;return Je(i,16)}function mO(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],o=e.length-1;o>=0&&t>0;){var n=e.charCodeAt(o--);n<128?r[--t]=n:n>127&&n<2048?(r[--t]=n&63|128,r[--t]=n>>6|192):(r[--t]=n&63|128,r[--t]=n>>6&63|128,r[--t]=n>>12|224)}r[--t]=0;for(var i=new ms,s=[];t>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);r[--t]=s[0]}return r[--t]=2,r[--t]=0,new xe(r)}function OS(e,t,r){for(var o="",n=0;o.length<t;)o+=r(String.fromCharCode.apply(String,e.concat([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255]))),n+=1;return o}var fO=32;function kS(e,t){var r=fO,o=fs;if(e.length+2*r+2>t)throw"Message too long for RSA";var n="",i;for(i=0;i<t-e.length-2*r-2;i+=1)n+="\0";var s=o("")+n+""+e,a=new Array(r);new ms().nextBytes(a);var c=OS(a,s.length,o),l=[];for(i=0;i<s.length;i+=1)l[i]=s.charCodeAt(i)^c.charCodeAt(i);var u=OS(l,a.length,o),p=[0];for(i=0;i<a.length;i+=1)p[i+1]=a[i]^u.charCodeAt(i);return new xe(p.concat(l))}var CS=(function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),o=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(o)<0;)r=r.add(this.p);return r.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Je(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t,r){typeof r>"u"&&(r=mO);var o=this.n.bitLength()+7>>3,n=r(t,o);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),a=s.length,c=0;c<o*2-a;c++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,o){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Je(t,16),this.e=parseInt(r,16),this.d=Je(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,o,n,i,s,a,c){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Je(t,16),this.e=parseInt(r,16),this.d=Je(o,16),this.p=Je(n,16),this.q=Je(i,16),this.dmp1=Je(s,16),this.dmq1=Je(a,16),this.coeff=Je(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var o=new ms,n=t>>1;this.e=parseInt(r,16);for(var i=new xe(r,16);;){for(;this.p=new xe(t-n,1,o),!(this.p.subtract(xe.ONE).gcd(i).compareTo(xe.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new xe(n,1,o),!(this.q.subtract(xe.ONE).gcd(i).compareTo(xe.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var a=this.p.subtract(xe.ONE),c=this.q.subtract(xe.ONE),l=a.multiply(c);if(l.gcd(i).compareTo(xe.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=Je(t,16),o=this.doPrivate(r);return o==null?null:hO(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,o){var n=new ms,i=t>>1;this.e=parseInt(r,16);var s=new xe(r,16),a=this,c=function(){var l=function(){if(a.p.compareTo(a.q)<=0){var d=a.p;a.p=a.q,a.q=d}var f=a.p.subtract(xe.ONE),g=a.q.subtract(xe.ONE),v=f.multiply(g);v.gcd(s).compareTo(xe.ONE)==0?(a.n=a.p.multiply(a.q),a.d=s.modInverse(v),a.dmp1=a.d.mod(f),a.dmq1=a.d.mod(g),a.coeff=a.q.modInverse(a.p),setTimeout(function(){o()},0)):setTimeout(c,0)},u=function(){a.q=Te(),a.q.fromNumberAsync(i,1,n,function(){a.q.subtract(xe.ONE).gcda(s,function(d){d.compareTo(xe.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)})})},p=function(){a.p=Te(),a.p.fromNumberAsync(t-i,1,n,function(){a.p.subtract(xe.ONE).gcda(s,function(d){d.compareTo(xe.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,o){var n=gO(o),i=n+r(t).toString(),s=this.n.bitLength()/4,a=dO(i,s);if(a==null)return null;var c=this.doPrivate(a);if(c==null)return null;for(var l=c.toString(16),u=l.length,p=0;p<s-u;p++)l="0"+l;return l},e.prototype.verify=function(t,r,o){var n=Je(r,16),i=this.doPublic(n);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),a=vO(s);return a==o(t).toString()},e})();function hO(e,t){for(var r=e.toByteArray(),o=0;o<r.length&&r[o]==0;)++o;if(r.length-o!=t-1||r[o]!=2)return null;for(++o;r[o]!=0;)if(++o>=r.length)return null;for(var n="";++o<r.length;){var i=r[o]&255;i<128?n+=String.fromCharCode(i):i>191&&i<224?(n+=String.fromCharCode((i&31)<<6|r[o+1]&63),++o):(n+=String.fromCharCode((i&15)<<12|(r[o+1]&63)<<6|r[o+2]&63),o+=2)}return n}var iu={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function gO(e){return iu[e]||""}function vO(e){for(var t in iu)if(iu.hasOwnProperty(t)){var r=iu[t],o=r.length;if(e.substring(0,o)==r)return e.substring(o)}return e}function rt(e,t,r){if(!t||!e)throw new Error("extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=t.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var n;for(n in r)e.prototype[n]=r[n];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(a,c){for(n=0;n<s.length;n=n+1){var l=s[n],u=c[l];typeof u=="function"&&u!=Object.prototype[l]&&(a[l]=u)}})}catch{}i(e.prototype,r)}}var H={};(typeof H.asn1>"u"||!H.asn1)&&(H.asn1={});H.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substring(1),o=r.length;o%2==1?o+=1:t.match(/^[0-7]/)||(o+=2);for(var n="",i=0;i<o;i++)n+="f";var s=new xe(n,16),a=s.xor(e).add(xe.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=H,r=t.asn1,o=r.DERBoolean,n=r.DERInteger,i=r.DERBitString,s=r.DEROctetString,a=r.DERNull,c=r.DERObjectIdentifier,l=r.DEREnumerated,u=r.DERUTF8String,p=r.DERNumericString,d=r.DERPrintableString,f=r.DERTeletexString,g=r.DERIA5String,v=r.DERUTCTime,y=r.DERGeneralizedTime,m=r.DERSequence,b=r.DERSet,_=r.DERTaggedObject,w=r.ASN1Util.newObject,z=Object.keys(e);if(z.length!=1)throw"key of param shall be only one.";var S=z[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":")==-1)throw"undefined key: "+S;if(S=="bool")return new o(e[S]);if(S=="int")return new n(e[S]);if(S=="bitstr")return new i(e[S]);if(S=="octstr")return new s(e[S]);if(S=="null")return new a(e[S]);if(S=="oid")return new c(e[S]);if(S=="enum")return new l(e[S]);if(S=="utf8str")return new u(e[S]);if(S=="numstr")return new p(e[S]);if(S=="prnstr")return new d(e[S]);if(S=="telstr")return new f(e[S]);if(S=="ia5str")return new g(e[S]);if(S=="utctime")return new v(e[S]);if(S=="gentime")return new y(e[S]);if(S=="seq"){for(var x=e[S],T=[],j=0;j<x.length;j++){var V=w(x[j]);T.push(V)}return new m({array:T})}if(S=="set"){for(var x=e[S],T=[],j=0;j<x.length;j++){var V=w(x[j]);T.push(V)}return new b({array:T})}if(S=="tag"){var C=e[S];if(Object.prototype.toString.call(C)==="[object Array]"&&C.length==3){var B=w(C[2]);return new _({tag:C[0],explicit:C[1],obj:B})}else{var Y={};if(C.explicit!==void 0&&(Y.explicit=C.explicit),C.tag!==void 0&&(Y.tag=C.tag),C.obj===void 0)throw"obj shall be specified for 'tag'.";return Y.obj=w(C.obj),new _(Y)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};H.asn1.ASN1Util.oidHexToInt=function(e){for(var n="",t=parseInt(e.substring(0,2),16),r=Math.floor(t/40),o=t%40,n=r+"."+o,i="",s=2;s<e.length;s+=2){var a=parseInt(e.substring(s,s+2),16),c=("00000000"+a.toString(2)).slice(-8);if(i=i+c.substring(1,8),c.substring(0,1)=="0"){var l=new xe(i,2);n=n+"."+l.toString(10),i=""}}return n};H.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},r=function(a){var c="",l=new xe(a,10),u=l.toString(2),p=7-u.length%7;p==7&&(p=0);for(var d="",f=0;f<p;f++)d+="0";u=d+u;for(var f=0;f<u.length-1;f+=7){var g=u.substring(f,f+7);f!=u.length-7&&(g="1"+g),c+=t(parseInt(g,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",n=e.split("."),i=parseInt(n[0])*40+parseInt(n[1]);o+=t(i),n.splice(0,2);for(var s=0;s<n.length;s++)o+=r(n[s]);return o};H.asn1.ASN1Object=function(){var e=!0,t=null,r="00",o="00",n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var i=this.hV.length/2,s=i.toString(16);if(s.length%2==1&&(s="0"+s),i<128)return s;var a=s.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+i.toString(16);var c=128+a;return c.toString(16)+s},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};H.asn1.DERAbstractString=function(e){H.asn1.DERAbstractString.superclass.constructor.call(this);var t=null,r=null;this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))};rt(H.asn1.DERAbstractString,H.asn1.ASN1Object);H.asn1.DERAbstractTime=function(e){H.asn1.DERAbstractTime.superclass.constructor.call(this);var t=null,r=null;this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,i){var s=this.zeroPadding,a=this.localDateToUTC(o),c=String(a.getFullYear());n=="utc"&&(c=c.substring(2,4));var l=s(String(a.getMonth()+1),2),u=s(String(a.getDate()),2),p=s(String(a.getHours()),2),d=s(String(a.getMinutes()),2),f=s(String(a.getSeconds()),2),g=c+l+u+p+d+f;if(i===!0){var v=a.getMilliseconds();if(v!=0){var y=s(String(v),3);y=y.replace(/[0]+$/,""),g=g+"."+y}}return g+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,i,s,a,c){var l=new Date(Date.UTC(o,n-1,i,s,a,c,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}};rt(H.asn1.DERAbstractTime,H.asn1.ASN1Object);H.asn1.DERAbstractStructured=function(e){H.asn1.DERAbstractString.superclass.constructor.call(this);var t=null;this.setByASN1ObjectArray=function(r){this.hTLV=null,this.isModified=!0,this.asn1Array=r},this.appendASN1Object=function(r){this.hTLV=null,this.isModified=!0,this.asn1Array.push(r)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)};rt(H.asn1.DERAbstractStructured,H.asn1.ASN1Object);H.asn1.DERBoolean=function(){H.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};rt(H.asn1.DERBoolean,H.asn1.ASN1Object);H.asn1.DERInteger=function(e){H.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new xe(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};rt(H.asn1.DERInteger,H.asn1.ASN1Object);H.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=H.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}H.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,o){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var n="0"+r;this.hTLV=null,this.isModified=!0,this.hV=n+o},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var o=8-r.length%8;o==8&&(o=0);for(var n=0;n<=o;n++)r+="0";for(var i="",n=0;n<r.length-1;n+=8){var s=r.substring(n,n+8),a=parseInt(s,2).toString(16);a.length==1&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(r){for(var o="",n=0;n<r.length;n++)r[n]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(r){for(var o=new Array(r),n=0;n<r;n++)o[n]=!1;return o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))};rt(H.asn1.DERBitString,H.asn1.ASN1Object);H.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=H.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}H.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};rt(H.asn1.DEROctetString,H.asn1.DERAbstractString);H.asn1.DERNull=function(){H.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};rt(H.asn1.DERNull,H.asn1.ASN1Object);H.asn1.DERObjectIdentifier=function(e){var t=function(o){var n=o.toString(16);return n.length==1&&(n="0"+n),n},r=function(o){var n="",i=new xe(o,10),s=i.toString(2),a=7-s.length%7;a==7&&(a=0);for(var c="",l=0;l<a;l++)c+="0";s=c+s;for(var l=0;l<s.length-1;l+=7){var u=s.substring(l,l+7);l!=s.length-7&&(u="1"+u),n+=t(parseInt(u,2))}return n};H.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueOidString=function(o){if(!o.match(/^[0-9.]+$/))throw"malformed oid string: "+o;var n="",i=o.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(o){var n=H.asn1.x509.OID.name2oid(o);if(n!=="")this.setValueOidString(n);else throw"DERObjectIdentifier oidName undefined: "+o},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))};rt(H.asn1.DERObjectIdentifier,H.asn1.ASN1Object);H.asn1.DEREnumerated=function(e){H.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new xe(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};rt(H.asn1.DEREnumerated,H.asn1.ASN1Object);H.asn1.DERUTF8String=function(e){H.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};rt(H.asn1.DERUTF8String,H.asn1.DERAbstractString);H.asn1.DERNumericString=function(e){H.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};rt(H.asn1.DERNumericString,H.asn1.DERAbstractString);H.asn1.DERPrintableString=function(e){H.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};rt(H.asn1.DERPrintableString,H.asn1.DERAbstractString);H.asn1.DERTeletexString=function(e){H.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};rt(H.asn1.DERTeletexString,H.asn1.DERAbstractString);H.asn1.DERIA5String=function(e){H.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};rt(H.asn1.DERIA5String,H.asn1.DERAbstractString);H.asn1.DERUTCTime=function(e){H.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))};rt(H.asn1.DERUTCTime,H.asn1.DERAbstractTime);H.asn1.DERGeneralizedTime=function(e){H.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))};rt(H.asn1.DERGeneralizedTime,H.asn1.DERAbstractTime);H.asn1.DERSequence=function(e){H.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var o=this.asn1Array[r];t+=o.getEncodedHex()}return this.hV=t,this.hV}};rt(H.asn1.DERSequence,H.asn1.DERAbstractStructured);H.asn1.DERSet=function(e){H.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var o=this.asn1Array[r];t.push(o.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)};rt(H.asn1.DERSet,H.asn1.DERAbstractStructured);H.asn1.DERTaggedObject=function(e){H.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,o){this.hT=r,this.isExplicit=t,this.asn1Object=o,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=o.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};rt(H.asn1.DERTaggedObject,H.asn1.ASN1Object);var yO=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),Um=(function(e){yO(t,e);function t(r){var o=e.call(this)||this;return r&&(typeof r=="string"?o.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&o.parsePropertiesFrom(r)),o}return t.prototype.parseKey=function(r){try{var o=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(r)?bS.decode(r):eu.unarmor(r),a=xS.decode(s);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){o=a.sub[1].getHexStringValue(),this.n=Je(o,16),n=a.sub[2].getHexStringValue(),this.e=parseInt(n,16);var c=a.sub[3].getHexStringValue();this.d=Je(c,16);var l=a.sub[4].getHexStringValue();this.p=Je(l,16);var u=a.sub[5].getHexStringValue();this.q=Je(u,16);var p=a.sub[6].getHexStringValue();this.dmp1=Je(p,16);var d=a.sub[7].getHexStringValue();this.dmq1=Je(d,16);var f=a.sub[8].getHexStringValue();this.coeff=Je(f,16)}else if(a.sub.length===2)if(a.sub[0].sub){var g=a.sub[1],v=g.sub[0];o=v.sub[0].getHexStringValue(),this.n=Je(o,16),n=v.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else o=a.sub[0].getHexStringValue(),this.n=Je(o,16),n=a.sub[1].getHexStringValue(),this.e=parseInt(n,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new H.asn1.DERInteger({int:0}),new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e}),new H.asn1.DERInteger({bigint:this.d}),new H.asn1.DERInteger({bigint:this.p}),new H.asn1.DERInteger({bigint:this.q}),new H.asn1.DERInteger({bigint:this.dmp1}),new H.asn1.DERInteger({bigint:this.dmq1}),new H.asn1.DERInteger({bigint:this.coeff})]},o=new H.asn1.DERSequence(r);return o.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return io(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new H.asn1.DERSequence({array:[new H.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new H.asn1.DERNull]}),o=new H.asn1.DERSequence({array:[new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e})]}),n=new H.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new H.asn1.DERSequence({array:[r,n]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return io(this.getPublicBaseKey())},t.wordwrap=function(r,o){if(o=o||64,!r)return r;var n="(.{1,"+o+`})( +|$
|
|
82
|
+
?)|(.{1,`+o+"})";return r.match(RegExp(n,"g")).join(`
|
|
83
|
+
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
84
|
+
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
85
|
+
`,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
86
|
+
`;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
87
|
+
`,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t})(CS);var Fm,bO=typeof process<"u"?(Fm=process.env)===null||Fm===void 0?void 0:Fm.npm_package_version:void 0,AS=(function(){function e(t){t===void 0&&(t={}),this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=t.key||null}return e.prototype.setKey=function(t){t?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Um(t)):!this.key&&this.log&&console.error("A key was not set.")},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(Nm(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return io(this.getKey().encrypt(t))}catch{return!1}},e.prototype.encryptOAEP=function(t){try{return io(this.getKey().encrypt(t,kS))}catch{return!1}},e.prototype.sign=function(t,r,o){r===void 0&&(r=function(n){return n}),o===void 0&&(o="");try{return io(this.getKey().sign(t,r,o))}catch{return!1}},e.prototype.signSha256=function(t){return this.sign(t,function(r){return Dm(fs(r))},"sha256")},e.prototype.verify=function(t,r,o){o===void 0&&(o=function(n){return n});try{return this.getKey().verify(t,Nm(r),o)}catch{return!1}},e.prototype.verifySha256=function(t,r){return this.verify(t,r,function(o){return Dm(fs(o))})},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Um,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=bO,e})();var IS=AS;function hs(e,t){return function(){return e.apply(t,arguments)}}var{toString:_O}=Object.prototype,{getPrototypeOf:Nr}=Object,{iterator:ys,toStringTag:qS}=Symbol,gs=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),MS=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),LS=(e,t,r)=>e===Object.prototype||!r&&t===null,SO=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(r=>{if(MS(r))return!1;let o=Object.getOwnPropertyDescriptor(e,r);return!!o&&o.configurable&&o.writable===!0})},vs=(e,t)=>{let r=e,o=[];for(;r!=null;){if(o.indexOf(r)!==-1)return!1;o.push(r);let n=Nr(r);if(LS(r,n,r===e))return!1;if(gs(r,t))return!0;r=n}return!1},xO=(e,t)=>e!=null&&vs(e,t)?e[t]:void 0,wO=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;let t=Nr(e);if(t===null&&SO(e))return e;let r=Object.create(null),o=Object.create(null),n=[],i=e;for(;i!=null&&n.indexOf(i)===-1;){n.push(i);let s=i===e?t:Nr(i);if(LS(i,s,i===e))break;let a=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(i));for(let c of a)MS(c)||gs(o,c)||(r[c]=e[c],o[c]=!0);i=s}return r},Vm=(e=>t=>{let r=_O.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Lt=e=>(e=e.toLowerCase(),t=>Vm(t)===e),au=e=>t=>typeof t===e,{isArray:co}=Array,lo=au("undefined");function fn(e){return e!==null&&!lo(e)&&e.constructor!==null&&!lo(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var DS=Lt("ArrayBuffer");function RO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&DS(e.buffer),t}var zO=au("string"),Et=au("function"),US=au("number"),hn=e=>e!==null&&typeof e=="object",EO=e=>e===!0||e===!1,su=e=>{if(!hn(e))return!1;let t=Nr(e);return(t===null||t===Object.prototype||Nr(t)===null)&&!vs(e,qS)&&!vs(e,ys)},TO=e=>{if(!hn(e)||fn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$O=Lt("Date"),PO=Lt("File"),OO=e=>!!(e&&typeof e.uri<"u"),kO=e=>e&&typeof e.getParts<"u",CO=Lt("Blob"),AO=Lt("FileList"),IO=Lt("Set"),jO=e=>hn(e)&&Et(e.pipe);function NO(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var jS=NO(),NS=typeof jS.FormData<"u"?jS.FormData:void 0,qO=e=>{if(!e)return!1;if(NS&&e instanceof NS)return!0;let t=Nr(e);if(!t||t===Object.prototype||!Et(e.append))return!1;let r=Vm(e);return r==="formdata"||r==="object"&&Et(e.toString)&&e.toString()==="[object FormData]"},MO=Lt("URLSearchParams"),[LO,DO,UO,FO]=["ReadableStream","Request","Response","Headers"].map(Lt),BO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function bs(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,n;if(typeof e!="object"&&(e=[e]),co(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{if(fn(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length,a;for(o=0;o<s;o++)a=i[o],t.call(null,e[a],a,e)}}function FS(e,t){if(fn(e))return null;t=t.toLowerCase();let r=Object.keys(e),o=r.length,n;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}var ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,BS=e=>!lo(e)&&e!==ao;function Bm(...e){let{caseless:t,skipUndefined:r}=BS(this)&&this||{},o={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let a=t&&typeof s=="string"&&FS(o,s)||s,c=gs(o,a)?o[a]:void 0;su(c)&&su(i)?o[a]=Bm(c,i):su(i)?o[a]=Bm({},i):co(i)?o[a]=i.slice():(!r||!lo(i))&&(o[a]=i)};for(let i=0,s=e.length;i<s;i++){let a=e[i];if(!a||fn(a)||(bs(a,n),typeof a!="object"||co(a)))continue;let c=Object.getOwnPropertySymbols(a);for(let l=0;l<c.length;l++){let u=c[l];tk.call(a,u)&&n(a[u],u)}}return o}var VO=(e,t,r,{allOwnKeys:o}={})=>(bs(t,(n,i)=>{r&&Et(n)?Object.defineProperty(e,i,{__proto__:null,value:hs(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),HO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZO=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},JO=(e,t,r,o)=>{let n,i,s,a={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)s=n[i],(!o||o(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Nr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},KO=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let o=e.indexOf(t,r);return o!==-1&&o===r},GO=e=>{if(!e)return null;if(co(e))return e;let t=e.length;if(!US(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},WO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nr(Uint8Array)),YO=(e,t)=>{let o=(e&&e[ys]).call(e),n;for(;(n=o.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},XO=(e,t)=>{let r,o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},QO=Lt("HTMLFormElement"),ek=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,n){return o.toUpperCase()+n}),{propertyIsEnumerable:tk}=Object.prototype,rk=Lt("RegExp"),VS=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),o={};bs(r,(n,i)=>{let s;(s=t(n,i,e))!==!1&&(o[i]=s||n)}),Object.defineProperties(e,o)},ok=e=>{VS(e,(t,r)=>{if(Et(e)&&["arguments","caller","callee"].includes(r))return!1;let o=e[r];if(Et(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},nk=(e,t)=>{let r={},o=n=>{n.forEach(i=>{r[i]=!0})};return co(e)?o(e):o(String(e).split(t)),r},ik=()=>{},sk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ak(e){return!!(e&&Et(e.append)&&e[qS]==="FormData"&&e[ys])}var ck=e=>{let t=new WeakSet,r=o=>{if(hn(o)){if(t.has(o))return;if(fn(o))return o;if(!("toJSON"in o)){t.add(o);let n;if(IO(o)){n=[];for(let i of o){let s=r(i);!lo(s)&&n.push(s)}}else n=co(o)?[]:{},bs(o,(i,s)=>{let a=r(i);!lo(a)&&(n[s]=a)});return t.delete(o),n}}return o};return r(e)},lk=Lt("AsyncFunction"),uk=e=>e&&(hn(e)||Et(e))&&Et(e.then)&&Et(e.catch),HS=((e,t)=>e?setImmediate:t?((r,o)=>(ao.addEventListener("message",({source:n,data:i})=>{n===ao&&i===r&&o.length&&o.shift()()},!1),n=>{o.push(n),ao.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Et(ao.postMessage)),pk=typeof queueMicrotask<"u"?queueMicrotask.bind(ao):typeof process<"u"&&process.nextTick||HS,ZS=e=>e!=null&&Et(e[ys]),dk=e=>e!=null&&vs(e,ys)&&ZS(e),E={isArray:co,isArrayBuffer:DS,isBuffer:fn,isFormData:qO,isArrayBufferView:RO,isString:zO,isNumber:US,isBoolean:EO,isObject:hn,isPlainObject:su,isEmptyObject:TO,isReadableStream:LO,isRequest:DO,isResponse:UO,isHeaders:FO,isUndefined:lo,isDate:$O,isFile:PO,isReactNativeBlob:OO,isReactNative:kO,isBlob:CO,isRegExp:rk,isFunction:Et,isStream:jO,isURLSearchParams:MO,isTypedArray:WO,isFileList:AO,forEach:bs,merge:Bm,extend:VO,trim:BO,stripBOM:HO,inherits:ZO,toFlatObject:JO,kindOf:Vm,kindOfTest:Lt,endsWith:KO,toArray:GO,forEachEntry:YO,matchAll:XO,isHTMLForm:QO,hasOwnProperty:gs,hasOwnProp:gs,hasOwnInPrototypeChain:vs,getSafeProp:xO,toSafeFlatObject:wO,reduceDescriptors:VS,freezeMethods:ok,toObjectSet:nk,toCamelCase:ek,noop:ik,toFiniteNumber:sk,findKey:FS,global:ao,isContextDefined:BS,isSpecCompliantForm:ak,toJSONObject:ck,isAsyncFn:lk,isThenable:uk,setImmediate:HS,asap:pk,isIterable:ZS,isSafeIterable:dk};var mk=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JS=e=>{let t={},r,o,n;return e&&e.split(`
|
|
88
|
+
`).forEach(function(s){n=s.indexOf(":"),r=s.substring(0,n).trim().toLowerCase(),o=s.substring(n+1).trim();let a=E.hasOwnProp(t,r);!r||a&&E.hasOwnProp(mk,r)||(r==="set-cookie"?a?t[r].push(o):t[r]=[o]:t[r]=a?t[r]+", "+o:o)}),t};function fk(e){let t=0,r=e.length;for(;t<r;){let o=e.charCodeAt(t);if(o!==9&&o!==32)break;t+=1}for(;r>t;){let o=e.charCodeAt(r-1);if(o!==9&&o!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}var hk=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),gk=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Hm(e,t){return E.isArray(e)?e.map(r=>Hm(r,t)):fk(String(e).replace(t,""))}var KS=e=>Hm(e,hk),vk=e=>Hm(e,gk);function gn(e){let t=Object.create(null);return E.forEach(e.toJSON(),(r,o)=>{t[o]=vk(r)}),t}var GS=Symbol("internals");function _s(e){return e&&String(e).trim().toLowerCase()}function cu(e){return e===!1||e==null?e:E.isArray(e)?e.map(cu):KS(String(e))}function yk(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}var bk=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Zm(e){let t=0,r=e.length;for(;t<r;){let o=e.charCodeAt(t);if(o!==9&&o!==32)break;t+=1}for(;r>t;){let o=e.charCodeAt(r-1);if(o!==9&&o!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function _k(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let r="";for(let o=1;o<t;o++){let n=e.charCodeAt(o);if(n===34||n===92&&(o+=1,o>=t))return e;r+=e[o]}return r}function Sk(e){let t=Object.create(null),r=String(e),o=0,n=!1,i=!1;function s(a){let c=Zm(r.slice(o,a)),l=c.indexOf("=");if(l<1)return;let u=Zm(c.slice(0,l));if(!bk.test(u))return;let p=u.toLowerCase();if(p==="__proto__"||p==="constructor"||p==="prototype")return;let d=Zm(c.slice(l+1));t[p]=_k(d)}for(let a=0;a<r.length;a++){let c=r.charCodeAt(a);n?i?i=!1:c===92?i=!0:c===34&&(n=!1):c===34?n=!0:(c===44||c===59)&&(s(a),o=a+1)}return s(r.length),t}var xk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jm(e,t,r,o,n){if(E.isFunction(o))return o.call(this,t,r);if(n&&(t=r),!!E.isString(t)){if(E.isString(o))return t.indexOf(o)!==-1;if(E.isRegExp(o))return o.test(t)}}function wk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function Rk(e,t){let r=E.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{__proto__:null,value:function(n,i,s){return this[o].call(this,t,n,i,s)},configurable:!0})})}var vn=class{constructor(t){t&&this.set(t)}set(t,r,o){let n=this;function i(a,c,l){let u=_s(c);if(!u)return;let p=E.findKey(n,u);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(n[p||c]=cu(a))}let s=(a,c)=>E.forEach(a,(l,u)=>i(l,u,c));if(E.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(E.isString(t)&&(t=t.trim())&&!xk(t))s(JS(t),r);else if(E.isObject(t)&&E.isSafeIterable(t)){let a=Object.create(null),c,l;for(let u of t){if(!E.isArray(u))throw new TypeError("Object iterator must return a key-value pair");l=u[0],E.hasOwnProp(a,l)?(c=a[l],a[l]=E.isArray(c)?[...c,u[1]]:[c,u[1]]):a[l]=u[1]}s(a,r)}else t!=null&&i(r,t,o);return this}get(t,r){if(t=_s(t),t){let o=E.findKey(this,t);if(o){let n=this[o];if(!r)return n;if(r===!0)return yk(n);if(E.isFunction(r))return r.call(this,n,o);if(E.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=_s(t),t){let o=E.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||Jm(this,this[o],o,r)))}return!1}delete(t,r){let o=this,n=!1;function i(s){if(s=_s(s),s){let a=E.findKey(o,s);a&&(!r||Jm(o,o[a],a,r))&&(delete o[a],n=!0)}}return E.isArray(t)?t.forEach(i):i(t),n}clear(t){let r=Object.keys(this),o=r.length,n=!1;for(;o--;){let i=r[o];(!t||Jm(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){let r=this,o={};return E.forEach(this,(n,i)=>{let s=E.findKey(o,i);if(s){r[s]=cu(n),delete r[i];return}let a=t?wk(i):String(i).trim();a!==i&&delete r[i],r[a]=cu(n),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return E.forEach(this,(o,n)=>{o!=null&&o!==!1&&(r[n]=t&&E.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
89
|
+
`)}getSetCookie(){let t=this.get("set-cookie");return E.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return Sk(t)}static concat(t,...r){let o=new this(t);return r.forEach(n=>o.set(n)),o}static accessor(t){let o=(this[GS]=this[GS]={accessors:{}}).accessors,n=this.prototype;function i(s){let a=_s(s);o[a]||(Rk(n,s),o[a]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}};vn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(vn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});E.freezeMethods(vn);var Ve=vn;var Ss="[REDACTED ****]";function zk(e){if(E.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(E.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Ek(e,t){let r=new Set(t.map(i=>String(i).toLowerCase())),o=[],n=i=>{if(i===null||typeof i!="object"||E.isBuffer(i))return i;if(o.indexOf(i)!==-1)return;i instanceof Ve&&(i=i.toJSON()),o.push(i);let s;if(E.isArray(i))s=[],i.forEach((a,c)=>{let l=n(a);E.isUndefined(l)||(s[c]=l)});else{if(!E.isPlainObject(i)&&zk(i))return o.pop(),i;s=Object.create(null);for(let[a,c]of Object.entries(i)){let l=r.has(a.toLowerCase())?Ss:n(c);E.isUndefined(l)||(s[a]=l)}}return o.pop(),s};return n(e)}function WS(e){try{return String(e)}catch{return""}}function Tk(e){return e.errors.map(r=>{try{return r&&r.message?WS(r.message):WS(r)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}var mt=class e extends Error{static from(t,r,o,n,i,s){let a=t.message;!a&&E.isArray(t.errors)&&t.errors.length&&(a=Tk(t));let c=new e(a,r||t.code,o,n,i);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),s&&Object.assign(c,s),c}constructor(t,r,o,n,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let t=this.config,r=t&&E.hasOwnProp(t,"redact")?t.redact:void 0,o=E.isArray(r)&&r.length>0?Ek(t,r):E.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:o,code:this.code,status:this.status}}};mt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";mt.ERR_BAD_OPTION="ERR_BAD_OPTION";mt.ECONNABORTED="ECONNABORTED";mt.ETIMEDOUT="ETIMEDOUT";mt.ECONNREFUSED="ECONNREFUSED";mt.ERR_NETWORK="ERR_NETWORK";mt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";mt.ERR_DEPRECATED="ERR_DEPRECATED";mt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";mt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";mt.ERR_CANCELED="ERR_CANCELED";mt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";mt.ERR_INVALID_URL="ERR_INVALID_URL";mt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var D=mt;var tw=pt(ew(),1),bu=tw.default;var _u={isBufferAvailable(){return typeof Buffer<"u"},from(e){return Buffer.from(e)}};var gf=100;function hf(e){return E.isPlainObject(e)||E.isArray(e)}function rw(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function ff(e,t,r){return e?e.concat(t).map(function(n,i){return n=rw(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function dA(e){return E.isArray(e)&&!e.some(hf)}var mA=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function fA(e,t,r){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new(bu||FormData);let o=(b,_)=>{let w=E.getSafeProp(r,b);return E.isUndefined(w)?_:w},n=o("metaTokens",!0),i=o("visitor")||v,s=o("dots",!1),a=o("indexes",!1),c=o("Blob")||typeof Blob<"u"&&Blob,l=o("maxDepth",gf),u=c&&E.isSpecCompliantForm(t),p=[];if(!E.isFunction(i))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(E.isDate(b))return b.toISOString();if(E.isBoolean(b))return b.toString();if(!u&&E.isBlob(b))throw new D("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(b)||E.isTypedArray(b)){if(u&&typeof c=="function")return new c([b]);if(_u&&_u.isBufferAvailable())return _u.from(b);throw new D("Blob is not supported. Use a Buffer instead.",D.ERR_NOT_SUPPORT)}return b}function f(b){if(b>l)throw new D("Object is too deeply nested ("+b+" levels). Max depth: "+l,D.ERR_FORM_DATA_DEPTH_EXCEEDED)}function g(b,_){if(l===1/0)return JSON.stringify(b);let w=[];return JSON.stringify(b,function(S,x){if(!E.isObject(x))return x;for(;w.length&&w[w.length-1]!==this;)w.pop();return w.push(x),f(_+w.length-1),x})}function v(b,_,w){let z=b;if(E.isReactNative(t)&&E.isReactNativeBlob(b))return t.append(ff(w,_,s),d(b)),!1;if(b&&!w&&typeof b=="object"){if(E.endsWith(_,"{}"))_=n?_:_.slice(0,-2),b=g(b,1);else if(E.isArray(b)&&dA(b)||(E.isFileList(b)||E.endsWith(_,"[]"))&&(z=E.toArray(b)))return _=rw(_),z.forEach(function(x,T){!(E.isUndefined(x)||x===null)&&t.append(a===!0?ff([_],T,s):a===null?_:_+"[]",d(x))}),!1}return hf(b)?!0:(t.append(ff(w,_,s),d(b)),!1)}let y=Object.assign(mA,{defaultVisitor:v,convertValue:d,isVisitable:hf});function m(b,_,w=0){if(!E.isUndefined(b)){if(f(w),p.indexOf(b)!==-1)throw new Error("Circular reference detected in "+_.join("."));p.push(b),E.forEach(b,function(S,x){(!(E.isUndefined(S)||S===null)&&i.call(t,S,E.isString(x)?x.trim():x,_,y))===!0&&m(S,_?_.concat(x):[x],w+1)}),p.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return m(e),t}var Mr=fA;function ow(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(o){return t[o]})}function nw(e,t){this._pairs=[],e&&Mr(e,this,t)}var iw=nw.prototype;iw.append=function(t,r){this._pairs.push([t,r])};iw.toString=function(t){let r=t?o=>t.call(this,o,ow):ow;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};var sw=nw;function hA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function po(e,t,r){if(!t)return e;e=e||"";let o=E.isFunction(r)?{serialize:r}:r,n=E.getSafeProp(o,"encode")||hA,i=E.getSafeProp(o,"serialize"),s;if(i?s=i(t,o):s=E.isURLSearchParams(t)?t.toString():new sw(t,o).toString(n),s){let a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}var Es=Symbol("internals");function cw(e){return e?e.length:0}function aw(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Ts(e,t){let r=e.handlers,o=cw(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(i,s){r[i.index]!==i.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=o}var vf=class{constructor(){this.handlers=[],this[Es]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,r,o){let n={fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null},i=this[Es];this.handlers==null&&(this.handlers=[]),Ts(this,i);let s=i.nextId++;return this.handlers.push(n),i.handlerEntries.set(s,{handler:n,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,s}eject(t){let r=this[Es];Ts(this,r);let o=r.handlerEntries.get(t);if(o){if(r.handlerEntries.delete(t),this.handlers[o.index]!==o.handler)return;this.handlers[o.index]=null,r.iterationDepth||(aw(this.handlers),r.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Ts(this,this[Es]))}forEach(t){let r=this[Es];Ts(this,r),r.iterationDepth++;try{E.forEach(this.handlers,function(n){n!==null&&t(n)})}finally{--r.iterationDepth||(Ts(this,r),aw(this.handlers),r.handlersLength=cw(this.handlers))}}},yf=vf;var Lr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0};var dw=pt(require("crypto"),1);var lw=pt(require("url"),1),uw=lw.default.URLSearchParams;var bf="abcdefghijklmnopqrstuvwxyz",pw="0123456789",mw={DIGIT:pw,ALPHA:bf,ALPHA_DIGIT:bf+bf.toUpperCase()+pw},gA=(e=16,t=mw.ALPHA_DIGIT)=>{let r="",{length:o}=t,n=new Uint32Array(e);dw.default.randomFillSync(n);for(let i=0;i<e;i++)r+=t[n[i]%o];return r},fw={isNode:!0,classes:{URLSearchParams:uw,FormData:bu,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:mw,generateString:gA,protocols:["http","https","file","data"]};var xf={};la(xf,{hasBrowserEnv:()=>Sf,hasStandardBrowserEnv:()=>vA,hasStandardBrowserWebWorkerEnv:()=>yA,navigator:()=>_f,origin:()=>bA});var Sf=typeof window<"u"&&typeof document<"u",_f=typeof navigator=="object"&&navigator||void 0,vA=Sf&&(!_f||["ReactNative","NativeScript","NS"].indexOf(_f.product)<0),yA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bA=Sf&&window.location.href||"http://localhost";var Ie={...xf,...fw};function wf(e,t){return Mr(e,new Ie.classes.URLSearchParams,{visitor:function(r,o,n,i){return Ie.isNode&&E.isBuffer(r)?(this.append(o,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}var hw=gf;function gw(e){if(e>hw)throw new D("FormData field is too deeply nested ("+e+" levels). Max depth: "+hw,D.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _A(e){let t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g,o;for(;(o=r.exec(e))!==null;)gw(t.length),t.push(o[0]==="[]"?"":o[1]||o[0]);return t}function SA(e){let t={},r=Object.keys(e),o,n=r.length,i;for(o=0;o<n;o++)i=r[o],t[i]=e[i];return t}function xA(e){function t(r,o,n,i){gw(i);let s=r[i++];if(s==="__proto__")return!0;let a=Number.isFinite(+s),c=i>=r.length;return s=!s&&E.isArray(n)?n.length:s,c?(E.hasOwnProp(n,s)?n[s]=E.isArray(n[s])?n[s].concat(o):[n[s],o]:n[s]=o,!a):((!E.hasOwnProp(n,s)||!E.isObject(n[s]))&&(n[s]=[]),t(r,o,n[s],i)&&E.isArray(n[s])&&(n[s]=SA(n[s])),!a)}if(E.isFormData(e)&&E.isFunction(e.entries)){let r={};return E.forEachEntry(e,(o,n)=>{t(_A(o),n,r,0)}),r}return null}var Su=xA;var wA=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),xu=wA;var xn=(e,t)=>e!=null&&E.hasOwnProp(e,t)?e[t]:void 0;function RA(e,t,r){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var Rf={transitional:Lr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let o=r.getContentType()||"",n=o.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return n?JSON.stringify(Su(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){let c=xn(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return wf(t,c).toString();if((a=E.isFileList(t))||o.indexOf("multipart/form-data")>-1){let l=xn(this,"env"),u=l&&l.FormData;return Mr(a?{"files[]":t}:t,u&&new u,c)}}return i||n?(r.setContentType("application/json",!1),RA(t)):t}],transformResponse:[function(t){let r=xn(this,"transitional")||Rf.transitional,o=r&&r.forcedJSONParsing,n=xn(this,"responseType"),i=n==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(o&&!n||i)){let a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,xn(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?D.from(c,D.ERR_BAD_RESPONSE,this,null,xn(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(xu,e=>{Rf.headers[e]={}});var wn=Rf;function $s(e,t){let r=this||wn,o=t||r,n=Ve.from(o.headers),i=o.data;return E.forEach(e,function(a){i=a.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function Ps(e){return!!(e&&e.__CANCEL__)}var zf=class extends D{constructor(t,r,o){super(t??"canceled",D.ERR_CANCELED,r,o),this.name="CanceledError",this.__CANCEL__=!0}},It=zf;function Qt(e,t,r){let o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new D("Request failed with status code "+r.status,r.status>=400&&r.status<500?D.ERR_BAD_REQUEST:D.ERR_BAD_RESPONSE,r.config,r.request,r))}function Ef(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tf(e,t){if(!t)return e;let r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}var zA=/[\t\n\r]/g;function Os(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(zA,"")}var EA=/^https?:(?!\/\/)/i;function TA(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,r,o="")=>`${r}${o}${Ss}`)}function $A(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ss}@`),r=t.indexOf("#"),n=(r===-1?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ss}`);return r===-1?n:`${n}#${TA(t.slice(r+1))}`}function vw(e,t){if(typeof e=="string"){let r=Os(e);if(EA.test(r))throw new D(`Invalid URL ${JSON.stringify($A(r))}: missing "//" after protocol`,D.ERR_INVALID_URL,t)}}function mo(e,t,r,o){vw(t,o);let n=!Ef(t);return e&&(n||r===!1)?(vw(e,o),Tf(e,t)):t}var PA={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function OA(e){try{return new URL(e)}catch{return null}}function yw(e){var t=(typeof e=="string"?OA(e):e)||{},r=t.protocol,o=t.host,n=t.port;if(typeof o!="string"||!o||typeof r!="string"||(r=r.split(":",1)[0],o=o.replace(/:\d*$/,""),n=parseInt(n)||PA[r]||0,!kA(o,n)))return"";var i=$f(r+"_proxy")||$f("all_proxy");return i&&i.indexOf("://")===-1&&(i=r+"://"+i),i}function kA(e,t){var r=$f("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(o){if(!o)return!0;var n=o.match(/^(.+):(\d+)$/),i=n?n[1]:o,s=n?parseInt(n[2]):0;return s&&s!==t?!0:/^[.*]/.test(i)?(i.charAt(0)==="*"&&(i=i.slice(1)),!e.endsWith(i)):e!==i}):!0}function $f(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var uh=pt(Lw(),1),ph=pt(require("http"),1),dh=pt(require("https"),1),kR=pt(require("http2"),1),CR=pt(require("util"),1),lh=require("path"),AR=pt(Zw(),1),jt=pt(require("zlib"),1);var mr="1.20.0";function yo(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}var AI=/^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Xf(e,t,r){let o=r&&r.Blob||Ie.classes.Blob,n=yo(e);if(t===void 0&&o&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;let i=AI.exec(e);if(!i)throw new D("Invalid URL",D.ERR_INVALID_URL);let s=i[1],a=i[2],c=i[3]?"base64":"utf8",l=i[4],u="";s?u=a?s+a:s:a&&(u="text/plain"+a);let p=c==="base64"?Buffer.from(l,"base64"):Buffer.from(decodeURIComponent(l),c);if(t){if(!o)throw new D("Blob is not supported",D.ERR_NOT_SUPPORT);return new o([p],{type:u})}return p}throw new D("Unsupported protocol "+n,D.ERR_NOT_SUPPORT)}var Ut=pt(require("stream"),1);var II=["content-type","content-length"];function Ds(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([o,n])=>{II.includes(o.toLowerCase())&&e.set(o,n)})}var Jw=pt(require("stream"),1);var Qf=Symbol("internals"),eh=class extends Jw.default.Transform{constructor(t){t=E.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(o,n)=>!E.isUndefined(n[o])),super({readableHighWaterMark:t.chunkSize});let r=this[Qf]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",o=>{o==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){let r=this[Qf];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,o){let n=this[Qf],i=n.maxRate,s=this.readableHighWaterMark,a=n.timeWindow,c=1e3/a,l=i/c,u=n.minChunkSize!==!1?Math.max(n.minChunkSize,l*.01):0,p=(f,g)=>{let v=Buffer.byteLength(f);n.bytesSeen+=v,n.bytes+=v,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(f)?process.nextTick(g):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(g)}},d=(f,g)=>{let v=Buffer.byteLength(f),y=null,m=s,b,_=0;if(i){let w=Date.now();(!n.ts||(_=w-n.ts)>=a)&&(n.ts=w,b=l-n.bytes,n.bytes=b<0?-b:0,_=0),b=l-n.bytes}if(i){if(b<=0)return setTimeout(()=>{g(null,f)},a-_);b<m&&(m=b)}m&&v>m&&v-m>u&&(y=f.subarray(m),f=f.subarray(0,m)),p(f,y?()=>{process.nextTick(g,null,y)}:g)};d(t,function f(g,v){if(g)return o(g);v?d(v,f):o(null)})}},th=eh;var IR=require("events");var Gw=pt(require("util"),1),Ww=require("stream");var{asyncIterator:Kw}=Symbol,jI=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Kw]?yield*e[Kw]():yield e},$u=jI;var NI=Ie.ALPHABET.ALPHA_DIGIT+"-_",Us=typeof TextEncoder=="function"?new TextEncoder:new Gw.default.TextEncoder,bo=`\r
|
|
90
|
+
`,qI=Us.encode(bo),MI=2,rh=class{constructor(t,r){let{escapeName:o}=this.constructor,n=E.isString(r),i=`Content-Disposition: form-data; name="${o(t)}"${!n&&r.name?`; filename="${o(r.name)}"`:""}${bo}`;if(n)r=Us.encode(String(r).replace(/\r?\n|\r\n?/g,bo));else{let s=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");i+=`Content-Type: ${s}${bo}`}this.headers=Us.encode(i+bo),this.contentLength=n?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+MI,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;E.isTypedArray(t)?yield t:yield*$u(t),yield qI}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},LI=(e,t,r)=>{let{tag:o="form-data-boundary",size:n=25,boundary:i=o+"-"+Ie.generateString(n,NI)}=r||{};if(!E.isFormData(e))throw new TypeError("FormData instance required");if(i.length<1||i.length>70)throw new Error("boundary must be 1-70 characters long");let s=Us.encode("--"+i+bo),a=Us.encode("--"+i+"--"+bo),c=a.byteLength,l=Array.from(e.entries()).map(([p,d])=>{let f=new rh(p,d);return c+=f.size,f});c+=s.byteLength*l.length,c=E.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),Ww.Readable.from((async function*(){for(let p of l)yield s,yield*p.encode();yield a})())},Yw=LI;var Xw=pt(require("stream"),1),oh=class extends Xw.default.Transform{__transform(t,r,o){this.push(t),o()}_transform(t,r,o){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,r)}this.__transform(t,r,o)}},Qw=oh;var eR=pt(require("http2"),1),tR=pt(require("util"),1),nh=class{constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign(Object.create(null),{sessionTimeout:1e3},r);let o=this.sessions[t];if(o){let p=o.length;for(let d=0;d<p;d++){let[f,g]=o[d];if(!f.destroyed&&!f.closed&&tR.default.isDeepStrictEqual(g,r))return f}}let n=eR.default.connect(t,r),i,s,a=()=>{if(i)return;i=!0,s&&(clearTimeout(s),s=null);let p=o,d=p.length,f=d;for(;f--;)if(p[f][0]===n){d===1?delete this.sessions[t]:p.splice(f,1),n.closed||n.close();return}},c=n.request,{sessionTimeout:l}=r;if(l!=null){let p=0;n.request=function(){let d=c.apply(this,arguments);return p++,s&&(clearTimeout(s),s=null),d.once("close",()=>{--p||(s=setTimeout(()=>{s=null,a()},l))}),d}}n.once("close",a),n.once("error",a);let u=[n,r];return o?o.push(u):o=this.sessions[t]=[u],n}},rR=nh;var DI=(e,t)=>E.isAsyncFn(e)?function(...r){let o=r.pop();e.apply(this,r).then(n=>{try{t?o(null,...t(n)):o(null,n)}catch(i){o(i)}},o)}:e,oR=DI;var UI=new Set(["localhost","0.0.0.0"]),sR=e=>{let t=e.length;for(;t&&e.charCodeAt(t-1)===46;)t--;return t===e.length?e:e.slice(0,t)},aR=e=>{let t=e.split(".");return t.length!==4||t[0]!=="127"?!1:t.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},ih=e=>{if(/^0[xX][0-9a-fA-F]+$/.test(e)){let t=parseInt(e.slice(2),16);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-7]+$/.test(e)){let t=parseInt(e,8);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-9]+$/.test(e))return null;if(/^[0-9]+$/.test(e)){let t=parseInt(e,10);return Number.isFinite(t)?t:null}return null},cR=e=>{if(typeof e!="string"||!e||e.indexOf(":")!==-1)return e;let t=e;if(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),t=sR(t),!/^[0-9.xXa-fA-F]+$/.test(t))return e;let r=t.split(".");if(r.some(u=>u===""))return e;if(r.length===4){let u=r.map(ih);return u.some(p=>p===null||p<0||p>255)?e:u.join(".")}if(r.length>4||r.length===1)return e;let o=r.slice(0,-1),n=r[r.length-1],i=4-o.length,s=ih(n);if(s===null)return e;let a=(1<<8*i)-1;if(s<0||s>a)return e;let c=new Array(i).fill(0);for(let u=i-1,p=s;u>=0;u--,p>>=8)c[u]=p&255;let l=o.map(ih);return l.some(u=>u===null||u<0||u>255)?e:[...l,...c].join(".")},sh=e=>/^0{1,4}$/.test(e),FI=e=>{if(e==="::")return!0;let t=e.indexOf("::");if(t!==-1){if(t!==e.lastIndexOf("::"))return!1;let o=e.slice(0,t),n=e.slice(t+2),i=o?o.split(":"):[],s=n?n.split(":"):[];return i.length+s.length<8&&i.every(sh)&&s.every(sh)}let r=e.split(":");return r.length===8&&r.every(sh)},BI=e=>{if(e==="::1")return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return aR(t[1]);let r=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let n=parseInt(r[1],16);return n>=32512&&n<=32767}let o=e.split(":");if(o.length===8){for(let n=0;n<7;n++)if(!/^0+$/.test(o[n]))return!1;return/^0*1$/.test(o[7])}return!1},nR=e=>e?UI.has(e)||aR(e)||FI(e)?!0:BI(e):!1,VI={http:80,https:443,ws:80,wss:443,ftp:21},HI=e=>{let t=e,r=0;if(t.charAt(0)==="["){let i=t.indexOf("]");if(i!==-1){let s=t.slice(1,i),a=t.slice(i+1);return a.charAt(0)===":"&&/^\d+$/.test(a.slice(1))&&(r=Number.parseInt(a.slice(1),10)),[s,r]}}let o=t.indexOf(":"),n=t.lastIndexOf(":");return o!==-1&&o===n&&/^\d+$/.test(t.slice(n+1))&&(r=Number.parseInt(t.slice(n+1),10),t=t.slice(0,n)),[t,r]},ZI=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,JI=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,lR=e=>{if(typeof e!="string"||e.indexOf(":")===-1)return e;let t=e.match(ZI);if(t)return t[1];let r=e.match(JI);if(r){let o=parseInt(r[1],16),n=parseInt(r[2],16);return`${o>>8}.${o&255}.${n>>8}.${n&255}`}return e},KI=/^(?:0|[1-9]\d{0,2})$/,uR=e=>{let t=e.split(".");return t.length===4&&t.every(r=>KI.test(r)&&Number(r)<=255)?t.map(Number):null},GI=/^[0-9a-f]{1,4}$/i,WI=e=>{let t=e.split("::");if(t.length>2)return null;let r=t[0]?t[0].split(":"):[];if(t.length===2){let o=t[1]?t[1].split(":"):[],n=8-r.length-o.length;if(n<1)return null;r.push(...new Array(n).fill("0"),...o)}return r.length!==8||r.some(o=>!GI.test(o))?null:r.flatMap(o=>{let n=Number.parseInt(o,16);return[n>>8&255,n&255]})},pR=e=>typeof e!="string"||!e?null:e.indexOf(":")!==-1?WI(e):uR(e),iR=e=>{if(!e)return e;e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1));let t=sR(e),r=cR(t);return r!==t?r:lR(t)},YI=e=>{let t=e,r=t.charAt(0)==="[",o=t.charAt(t.length-1)==="]",n=t.includes("[")||t.includes("]");if(r||o){if(!r||!o||(t=t.slice(1,-1),t.indexOf(":")===-1||t.includes("[")||t.includes("]")))return null}else if(n)return null;if(!t||t.charAt(t.length-1)===".")return null;let i=t.indexOf(":")!==-1;if(i)try{t=new URL(`http://[${t}]/`).hostname.slice(1,-1)}catch{return null}else if(t=cR(t),!uR(t))return null;return{normalized:lR(t),wasIPv6:i}},XI=/^(.+)\/(0|[1-9]\d{0,2})$/,QI=e=>{if(e.indexOf("/")===-1)return;let t=XI.exec(e);if(!t)return null;let r=Number(t[2]),o=YI(t[1]);if(!o)return null;let{normalized:n,wasIPv6:i}=o;if(i&&n.indexOf(":")===-1){if(r<96)return null;r-=96}let s=pR(n);return!s||r>s.length*8?null:{bytes:s,prefix:r}},ej=(e,t,r)=>{let o=r>>3;for(let i=0;i<o;i++)if(e[i]!==t[i])return!1;let n=r&7;if(n){let i=255<<8-n&255;if((e[o]&i)!==(t[o]&i))return!1}return!0};function ah(e){let t;try{t=new URL(e)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let o=Number.parseInt(t.port,10)||VI[t.protocol.split(":",1)[0]]||0,n=iR(t.hostname.toLowerCase()),i=pR(n);return r.split(/[\s,]+/).some(s=>{if(!s)return!1;if(s==="*")return!0;let a=QI(s);if(a!==void 0)return a!==null&&!!i&&i.length===a.bytes.length&&ej(i,a.bytes,a.prefix);let[c,l]=HI(s);return c=iR(c),!c||l&&l!==o?!1:(c.charAt(0)==="*"&&(c=c.slice(1)),c.charAt(0)==="."?n.endsWith(c):n===c||nR(n)&&nR(c))})}function tj(e,t){e=e||10;let r=new Array(e),o=new Array(e),n=0,i=0,s;return t=t!==void 0?t:1e3,function(c){let l=Date.now(),u=o[i];s||(s=l),r[n]=c,o[n]=l;let p=i,d=0;for(;p!==n;)d+=r[p++],p=p%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),l-s<t)return;let f=u&&l-u;return f?Math.round(d*1e3/f):void 0}}var dR=tj;function rj(e,t){let r=0,o=1e3/t,n,i,s=(u,p=Date.now())=>{r=p,n=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{let p=Date.now(),d=p-r;d>=o?s(u,p):(n=u,i||(i=setTimeout(()=>{i=null,s(n)},o-d)))},()=>n&&s(n),(...u)=>s(u)]}var mR=rj;var fr=(e,t,r=3)=>{let o=0,n=dR(50,250);return mR(i=>{if(!i||!E.isNumber(i.loaded))return;let s=i.loaded,a=i.lengthComputable?i.total:void 0,c=Math.max(0,a!=null?Math.min(s,a):s),l=Math.max(0,c-o),u=n(l);o=Math.max(o,c);let p={loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a?(a-c)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},r)},$n=(e,t)=>{let r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Pn=(e,t=E.asap)=>(...r)=>t(()=>e(...r));var fR=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,gR=(e,t,r)=>t+2<r&&fR(e.charCodeAt(t+1))&&fR(e.charCodeAt(t+2)),hR=e=>e<=57?e-48:(e&223)-55,oj=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,nj=e=>e===9||e===10||e===12||e===13||e===32,ij=e=>{let t=Math.floor(e/4),r=e%4;return t*3+(r===2?1:r===3?2:0)},vR=e=>{let t=e.length,r=0;return t>0&&e.charCodeAt(t-1)===61&&(r++,t>1&&e.charCodeAt(t-2)===61&&r++),Math.floor((t-r)*3/4)},sj=e=>{let t=e.length,r=0,o=0,n=!1;for(let i=0;i<t;i++){let s=e.charCodeAt(i);if(s===37&&gR(e,i,t)&&(s=hR(e.charCodeAt(i+1))*16+hR(e.charCodeAt(i+2)),i+=2),!nj(s)){if(s===61){o++;continue}if(!oj(s)||o>0){n=!0;continue}r++}}return n||o>2||o>0&&(r+o)%4!==0||r%4===1?vR(e):ij(r)},yR=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;let r=e.indexOf(",");if(r<0)return 0;let o=e.slice(5,r),n=e.slice(r+1);if(/;base64/i.test(o))return t(n);let s=0;for(let a=0,c=n.length;a<c;a++){let l=n.charCodeAt(a);if(l===37&&gR(n,a,c))s+=1,a+=2;else if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&a+1<c){let u=n.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s};function ch(e){let t=typeof e=="string"?e.indexOf("#"):-1;return yR(t===-1?e:e.slice(0,t),sj)}function bR(e){return yR(e,vR)}var _R={flush:jt.default.constants.Z_SYNC_FLUSH,finishFlush:jt.default.constants.Z_SYNC_FLUSH},aj={flush:jt.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:jt.default.constants.BROTLI_OPERATION_FLUSH},cj={flush:jt.default.constants.ZSTD_e_flush,finishFlush:jt.default.constants.ZSTD_e_flush},jR=E.isFunction(jt.default.createBrotliDecompress),NR=E.isFunction(jt.default.createZstdDecompress),qR="gzip, compress, deflate"+(jR?", br":""),lj=qR+(NR?", zstd":""),SR=typeof process<"u"&&process.nextTick?process.nextTick.bind(process):E.asap,{http:uj,https:pj}=AR.default,mh=/https:?/,xR=Symbol("axios.http.socketListener"),Pu=Symbol("axios.http.currentReq");function dj(e){let t=this[Pu];t&&!t.destroyed&&t.destroy(e)}var MR=Symbol("axios.http.installedTunnel"),mj=new Map,wR=new WeakMap,RR={22:21,24:5};function fj(e=process.versions&&process.versions.node){if(!e)return!1;let[t,r]=e.split(".").map(o=>Number(o));return!Number.isInteger(t)||!Number.isInteger(r)?!1:t>24?!0:RR[t]!=null&&r>=RR[t]}function zR(e,t=process.versions&&process.versions.node){if(!fj(t))return!1;let r=e&&e.options;return!!(r&&E.hasOwnProp(r,"proxyEnv")&&r.proxyEnv!=null)}function hj(e,t,r){return mh.test(e.protocol)?r||dh.default.globalAgent:t||ph.default.globalAgent}function gj(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||"")+"#"+(e.auth||""),o=t?wR.get(t)||wR.set(t,new Map).get(t):mj,n=o.get(r);if(n)return n;let i=t&&t.options?{...t.options,...e}:e;if(n=new uh.default(i),t&&t.options){let s={...t.options},a=n.callback;n.callback=function(l,u){return a.call(this,l,{...s,...u})}}return n[MR]=!0,o.set(r,n),n}var ER=Ie.protocols.map(e=>e+":"),TR=e=>{if(!E.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},$R=(e,[t,r])=>(e.on("end",r).on("error",r),t),vj=new rR;function yj(e,t,r){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,r),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,r)}function bj(e,t){e&&Object.keys(e).forEach(r=>{t.has(r.toLowerCase())&&delete e[r]})}function _j(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}function LR(e,t,r,o,n,i,s=!0){let a=t,c=hj(e,i,n);if(!a&&a!==!1&&s&&!zR(c)){let l=yw(r);l&&(ah(r)||(a=new URL(l)))}if(o&&e.headers)for(let l of Object.keys(e.headers))l.toLowerCase()==="proxy-authorization"&&delete e.headers[l];if(o&&e.agent&&e.agent[MR]&&(e.agent=void 0),a){let l=a instanceof URL,u=v=>l||E.hasOwnProp(a,v)?a[v]:void 0,p=u("username"),d=u("password"),f=E.hasOwnProp(a,"auth")?a.auth:void 0;if(p&&(f=(p||"")+":"+(d||"")),f){let v=typeof f=="object",y=v&&E.hasOwnProp(f,"username")?f.username:void 0,m=v&&E.hasOwnProp(f,"password")?f.password:void 0;if(!!(y||m))f=(y||"")+":"+(m||"");else if(v)throw new D("Invalid proxy authorization",D.ERR_BAD_OPTION,{proxy:a})}if(mh.test(e.protocol)){if(!(n instanceof uh.default)){let v=u("hostname")||u("host"),y=u("port"),m=u("protocol"),b=m?m.includes(":")?m:`${m}:`:"http:",_=v&&v.includes(":")&&!v.startsWith("[")?`[${v}]`:v,w=new URL(`${b}//${_}${y?":"+y:""}`),z={protocol:w.protocol,hostname:w.hostname.replace(/^\[|\]$/g,""),port:w.port,auth:f&&typeof f=="string"?f:void 0};w.protocol==="https:"&&(z.ALPNProtocols=["http/1.1"]);let S=gj(z,n);e.agent=S,e.agents&&(e.agents.https=S)}}else{if(f){let b=Buffer.from(f,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+b}let v=!1;for(let b of Object.keys(e.headers))if(b.toLowerCase()==="host"){v=!0;break}v||(e.headers.host=e.hostname+(e.port?":"+e.port:""));let y=u("hostname")||u("host");e.hostname=y,e.host=y,e.port=u("port"),e.path=r;let m=u("protocol");m&&(e.protocol=m.includes(":")?m:`${m}:`)}}return e.beforeRedirects.proxy=function(u){LR(u,t,u.href,!0,n,i,s)},!!(a||t!==!1&&s&&zR(c))}var Sj=typeof process<"u"&&E.kindOf(process)==="process",xj=e=>new Promise((t,r)=>{let o,n,i=(c,l)=>{n||(n=!0,o&&o(c,l))},s=c=>{i(c),t(c)},a=c=>{i(c,!0),r(c)};e(s,a,c=>o=c).catch(a)}),wj=({address:e,family:t})=>{if(!E.isString(e))throw new D("address must be a string",D.ERR_BAD_OPTION_VALUE);return{address:e,family:t||(e.indexOf(".")<0?6:4)}},PR=(e,t)=>wj(E.isObject(e)?e:{address:e,family:t}),OR=new WeakMap,Rj=e=>{let t=OR.get(e);if(t)return t;let r=oR(e,o=>E.isArray(o)?o:[o]);return t=(o,n,i)=>{r(o,n,(s,a,c)=>{if(s)return i(s);let l;try{l=E.isArray(a)?a.map(u=>PR(u)):[PR(a,c)]}catch(u){return i(u)}n.all?i(s,l):i(s,l[0].address,l[0].family)})},OR.set(e,t),t},zj={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:o,headers:n}=e,i=vj.getSession(r,o),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=kR.default.constants,u={[s]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};E.forEach(n,(d,f)=>{f.charAt(0)!==":"&&(u[f]=d)});let p=i.request(u);return p.once("response",d=>{let f=p;d=Object.assign({},d);let g=d[l];delete d[l],f.headers=d,f.statusCode=+g,t(f)}),p}},DR=Sj&&function(t){return xj(async function(o,n,i){let s=Q=>E.getSafeProp(t,Q),a=s("transitional")||Lr,c=s("data"),l=s("lookup"),u=s("family"),p=s("httpVersion");p===void 0&&(p=1);let d=p,f=s("http2Options"),g=s("httpAgent"),v=s("httpsAgent"),y=s("proxy"),m=s("responseType"),b=s("responseEncoding"),_=s("socketPath"),w=s("method").toUpperCase(),z=s("maxRedirects"),S=s("maxBodyLength"),x=s("maxContentLength"),T=s("decompress"),j,V=!1,C,B;try{p=+p}catch{throw new D("Invalid protocol version: value is not a number",D.ERR_BAD_OPTION_VALUE,t)}if(Number.isNaN(p))throw new D(`Invalid protocol version: '${d}' is not a number`,D.ERR_BAD_OPTION_VALUE,t);if(p!==1&&p!==2)throw new D(`Unsupported protocol version '${p}'`,D.ERR_BAD_OPTION_VALUE,t);let Y=p===2;l&&(l=Rj(l));let G=new IR.EventEmitter;function he(Q){try{G.emit("abort",!Q||Q.type?new It(null,t,C):Q)}catch{}}function je(){B&&(clearTimeout(B),B=null)}function Ce(){let Q=s("timeout"),X=Q?"timeout of "+Q+"ms exceeded":"timeout exceeded",ge=s("timeoutErrorMessage");return ge&&(X=ge),new D(X,a.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,C)}G.once("abort",n);let Me=()=>{je(),t.cancelToken&&t.cancelToken.unsubscribe(he),t.signal&&t.signal.removeEventListener("abort",he),G.removeAllListeners()};(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(he),t.signal&&(t.signal.aborted?he():t.signal.addEventListener("abort",he))),i((Q,X)=>{if(j=!0,je(),X){V=!0,Me();return}let{data:ge}=Q;if(ge instanceof Ut.default.Readable||ge instanceof Ut.default.Duplex){let Ne=Ut.default.finished(ge,()=>{Ne(),Me()})}else Me()});let we=mo(s("baseURL"),s("url"),s("allowAbsoluteUrls"),t),k=_?"http://localhost":Ie.hasBrowserEnv?Ie.origin:void 0,I=new URL(we,k),U=I.protocol||ER[0];if(U==="data:"){if(x>-1){let X=String(s("url")||we||"");if(bR(X)>x)return n(new D("maxContentLength size of "+x+" exceeded",D.ERR_BAD_RESPONSE,t))}let Q;if(w!=="GET")return Qt(o,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{Q=Xf(s("url"),m==="blob",{Blob:t.env&&t.env.Blob})}catch(X){throw D.from(X,D.ERR_BAD_REQUEST,t)}return m==="text"?(Q=Q.toString(b),(!b||b==="utf8")&&(Q=E.stripBOM(Q))):m==="stream"&&(Q=Ut.default.Readable.from(Q)),Qt(o,n,{data:Q,status:200,statusText:"OK",headers:new Ve,config:t})}if(ER.indexOf(U)===-1)return n(new D("Unsupported protocol "+U,D.ERR_BAD_REQUEST,t));let R=Ve.from(t.headers).normalize();R.set("User-Agent","axios/"+mr,!1);let{onUploadProgress:O,onDownloadProgress:N}=t,W=t.maxRate,K,le;if(E.isSpecCompliantForm(c)){let Q=R.getContentType(/boundary=([-_\w\d]{10,70})/i);c=Yw(c,X=>{R.set(X)},{tag:`axios-${mr}-boundary`,boundary:Q&&Q[1]||void 0})}else if(E.isFormData(c)&&E.isFunction(c.getHeaders)&&c.getHeaders!==Object.prototype.getHeaders){if(Ds(R,c.getHeaders(),s("formDataHeaderPolicy")),!R.hasContentLength())try{let Q=await CR.default.promisify(c.getLength).call(c);Number.isFinite(Q)&&Q>=0&&R.setContentLength(Q)}catch{}}else if(E.isBlob(c)||E.isFile(c))c.size&&R.setContentType(c.type||"application/octet-stream"),R.setContentLength(c.size||0),c=Ut.default.Readable.from($u(c));else if(c&&!E.isStream(c)){if(!Buffer.isBuffer(c))if(E.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else if(E.isString(c))c=Buffer.from(c,"utf-8");else return n(new D("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",D.ERR_BAD_REQUEST,t));if(R.setContentLength(c.length,!1),S>-1&&c.length>S)return n(new D("Request body larger than maxBodyLength limit",D.ERR_BAD_REQUEST,t))}let ue=E.toFiniteNumber(R.getContentLength());E.isArray(W)?(K=W[0],le=W[1]):K=le=W,c&&(O||K)&&(E.isStream(c)||(c=Ut.default.Readable.from(c,{objectMode:!1})),c=Ut.default.pipeline([c,new th({maxRate:E.toFiniteNumber(K)})],E.noop),O&&c.on("progress",$R(c,$n(ue,fr(Pn(O,SR),!1,3)))));let $e,Qe=s("auth");if(Qe){let Q=E.getSafeProp(Qe,"username")||"",X=E.getSafeProp(Qe,"password")||"";$e=Q+":"+X}if(!$e&&(I.username||I.password)){let Q=TR(I.username),X=TR(I.password);$e=Q+":"+X}$e&&R.delete("authorization");let $;try{$=po(I.pathname+I.search,s("params"),s("paramsSerializer")).replace(/^\?/,"")}catch(Q){return n(D.from(Q,D.ERR_BAD_REQUEST,t,null,null,{url:s("url"),exists:!0}))}R.set("Accept-Encoding",E.hasOwnProp(a,"advertiseZstdAcceptEncoding")&&a.advertiseZstdAcceptEncoding===!0?lj:qR,!1),Y&&l&&(f=Object.assign(Object.create(null),f,{lookup:l}));let A=Object.assign(Object.create(null),{path:$,method:w,headers:gn(R),agents:{http:g,https:v},auth:$e,protocol:U,family:u,beforeRedirect:yj,beforeRedirects:Object.create(null),http2Options:f,createConnection:void 0});!E.isUndefined(l)&&(A.lookup=l);let F=!1;if(_){if(typeof _!="string")return n(new D("socketPath must be a string",D.ERR_BAD_OPTION_VALUE,t));let Q=s("allowedSocketPaths");if(Q!=null){let X=Array.isArray(Q)?Q:[Q],ge=(0,lh.resolve)(_);if(!X.some(ye=>typeof ye=="string"&&(0,lh.resolve)(ye)===ge))return n(new D(`socketPath "${_}" is not permitted by allowedSocketPaths`,D.ERR_BAD_OPTION_VALUE,t))}A.socketPath=_}else A.hostname=I.hostname.startsWith("[")?I.hostname.slice(1,-1):I.hostname,A.port=I.port,F=LR(A,y,U+"//"+I.hostname+(I.port?":"+I.port:"")+A.path,!1,v,g,!Y);let se,ae=!1,de=!1,ne=mh.test(A.protocol);if(A.agent==null&&(A.agent=ne?v:g),Y){if(F)return n(new D("HTTP/2 requests with a proxy are not supported",D.ERR_NOT_SUPPORT,t));se=zj}else{let Q=s("transport");if(Q)se=Q;else if(z===0)se=ne?dh.default:ph.default,ae=!0;else{de=!0,A.sensitiveHeaders=[],z&&(A.maxRedirects=z);let X=s("beforeRedirect");if(X&&(A.beforeRedirects.config=X),$e){let Ne=I.origin,ye=$e;A.beforeRedirects.auth=function(Fe){try{new URL(Fe.href).origin===Ne&&(Fe.auth=ye)}catch{}}}let ge=s("sensitiveHeaders");if(ge!=null){if(!E.isArray(ge))return n(new D("sensitiveHeaders must be an array of strings",D.ERR_BAD_OPTION_VALUE,t));let Ne=new Set;for(let ye of ge){if(!E.isString(ye))return n(new D("sensitiveHeaders must be an array of strings",D.ERR_BAD_OPTION_VALUE,t));Ne.add(ye.toLowerCase())}Ne.size&&(A.sensitiveHeaders=Array.from(Ne),A.beforeRedirects.sensitiveHeaders=function(Ze,Fe){_j(Ze,Fe)||bj(Ze.headers,Ne)})}se=ne?pj:uj}}S>-1?A.maxBodyLength=S:A.maxBodyLength=1/0,A.insecureHTTPParser=!!s("insecureHTTPParser"),C=se.request(A,function(X){if(je(),C.destroyed)return;let ge=[X],Ne=E.toFiniteNumber(X.headers["content-length"]);if(N||le){let De=new th({maxRate:E.toFiniteNumber(le)});N&&De.on("progress",$R(De,$n(Ne,fr(Pn(N,SR),!0,3)))),ge.push(De)}let ye=X,Ze=X.req||C;if(T!==!1&&X.headers["content-encoding"])switch((w==="HEAD"||X.statusCode===204)&&delete X.headers["content-encoding"],(X.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ge.push(jt.default.createUnzip(_R)),delete X.headers["content-encoding"];break;case"deflate":ge.push(new Qw),ge.push(jt.default.createUnzip(_R)),delete X.headers["content-encoding"];break;case"br":jR&&(ge.push(jt.default.createBrotliDecompress(aj)),delete X.headers["content-encoding"]);break;case"zstd":NR&&(ge.push(jt.default.createZstdDecompress(cj)),delete X.headers["content-encoding"]);break}ye=ge.length>1?Ut.default.pipeline(ge,E.noop):ge[0];let Fe={status:X.statusCode,statusText:X.statusMessage,headers:new Ve(X.headers),config:t,request:Ze};if(m==="stream"){if(x>-1){let De=x,Ot=ye;async function*St(){let Be=0;for await(let Wt of Ot){if(Be+=Wt.length,Be>De)throw new D("maxContentLength size of "+De+" exceeded",D.ERR_BAD_RESPONSE,t,Ze);yield Wt}}ye=Ut.default.Readable.from(St(),{objectMode:!1})}Fe.data=ye,Qt(o,n,Fe)}else{let De=[],Ot=0;ye.on("data",function(Be){De.push(Be),Ot+=Be.length,x>-1&&Ot>x&&(V=!0,ye.destroy(),he(new D("maxContentLength size of "+x+" exceeded",D.ERR_BAD_RESPONSE,t,Ze)))}),ye.on("aborted",function(){if(V)return;let Be=new D("stream has been aborted",D.ERR_BAD_RESPONSE,t,Ze,Fe);ye.destroy(Be),n(Be)}),ye.on("error",function(Be){V||n(D.from(Be,null,t,Ze,Fe))}),ye.on("end",function(){try{let Be=De.length===1?De[0]:Buffer.concat(De);m!=="arraybuffer"&&(Be=Be.toString(b),(!b||b==="utf8")&&(Be=E.stripBOM(Be))),Fe.data=Be}catch(Be){return n(D.from(Be,null,t,Fe.request,Fe))}Qt(o,n,Fe)})}G.once("abort",De=>{ye.destroyed||(ye.emit("error",De),ye.destroy())})}),G.once("abort",Q=>{C.close?C.close():C.destroy(Q)}),C.on("error",function(X){n(D.from(X,null,t,C))});let ze=new Set;if(C.on("socket",function(X){typeof X.setKeepAlive=="function"&&X.setKeepAlive(!0,1e3*60),X[xR]||(X.on("error",dj),X[xR]=!0),X[Pu]=C,ze.add(X)}),C.once("close",function(){je();for(let X of ze)X[Pu]===C&&(X[Pu]=null);ze.clear()}),s("timeout")){let Q=parseInt(s("timeout"),10);if(Number.isNaN(Q)){he(new D("error trying to parse `config.timeout` to int",D.ERR_BAD_OPTION_VALUE,t,C));return}let X=function(){j||he(Ce())};ae&&Q>0&&(B=setTimeout(X,Q)),C.setTimeout(Q,X)}else C.setTimeout(0);if(E.isStream(c)){let Q=!1,X=!1;c.on("end",()=>{Q=!0}),c.once("error",Ne=>{X=!0,C.destroy(Ne)}),c.on("close",()=>{!Q&&!X&&he(new It("Request stream has been aborted",t,C))});let ge=c;if(S>-1&&!de){let Ne=S,ye=0;ge=Ut.default.pipeline([c,new Ut.default.Transform({transform(Ze,Fe,De){if(ye+=Ze.length,ye>Ne)return De(new D("Request body larger than maxBodyLength limit",D.ERR_BAD_REQUEST,t,C));De(null,Ze)}})],E.noop),ge.on("error",Ze=>{C.destroyed||C.destroy(Ze)})}ge.pipe(C)}else c&&C.write(c),C.end()})};var UR=Ie.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ie.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ie.origin),Ie.navigator&&/(msie|trident)/i.test(Ie.navigator.userAgent)):()=>!0;var FR=Ie.hasStandardBrowserEnv?{write(e,t,r,o,n,i,s){if(typeof document>"u")return;let a=[`${e}=${encodeURIComponent(t)}`];E.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),E.isString(o)&&a.push(`path=${o}`),E.isString(n)&&a.push(`domain=${n}`),i===!0&&a.push("secure"),E.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let o=t[r].replace(/^\s+/,""),n=o.indexOf("=");if(n!==-1&&o.slice(0,n)===e)try{return decodeURIComponent(o.slice(n+1))}catch{return o.slice(n+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var BR=e=>e instanceof Ve?{...e}:e,Ej=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Gt(e,t){e=e||{},t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function o(u,p,d,f){return E.isPlainObject(u)&&E.isPlainObject(p)?E.merge.call({caseless:f},u,p):E.isPlainObject(p)?E.merge({},p):E.isArray(p)?p.slice():p}function n(u,p,d,f){if(E.isUndefined(p)){if(!E.isUndefined(u))return o(void 0,u,d,f)}else return o(u,p,d,f)}function i(u,p){if(!E.isUndefined(p))return o(void 0,p)}function s(u,p){if(E.isUndefined(p)){if(!E.isUndefined(u))return o(void 0,u)}else return o(void 0,p)}function a(u){let p=E.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!E.isUndefined(p))if(E.isPlainObject(p)){if(E.hasOwnProp(p,u))return p[u]}else return;let d=E.hasOwnProp(e,"transitional")?e.transitional:void 0;if(E.isPlainObject(d)&&E.hasOwnProp(d,u))return d[u]}function c(u,p,d){if(E.hasOwnProp(t,d))return o(u,p);if(E.hasOwnProp(e,d))return o(void 0,u)}let l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(u,p,d)=>n(BR(u),BR(p),d,!0)};return E.forEach(Ej({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;let d=E.hasOwnProp(l,p)?l[p]:n,f=E.hasOwnProp(e,p)?e[p]:void 0,g=E.hasOwnProp(t,p)?t[p]:void 0,v=d(f,g,p);E.isUndefined(v)&&d!==c||(r[p]=v)}),E.hasOwnProp(t,"validateStatus")&&E.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(E.hasOwnProp(e,"validateStatus")?r.validateStatus=o(void 0,e.validateStatus):delete r.validateStatus),r}var Tj=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function $j(e){let t=Gt({},e),r=d=>E.hasOwnProp(t,d)?t[d]:void 0,o=r("data"),n=r("withXSRFToken"),i=r("xsrfHeaderName"),s=r("xsrfCookieName"),a=r("headers"),c=r("auth"),l=r("baseURL"),u=r("allowAbsoluteUrls"),p=r("url");if(t.headers=a=Ve.from(a),t.url=po(mo(l,p,u,t),r("params"),r("paramsSerializer")),c){let d=E.getSafeProp(c,"username")||"",f=E.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(d+":"+(f?Tj(f):"")))}catch(g){throw D.from(g,D.ERR_BAD_OPTION_VALUE,e)}}if(E.isFormData(o)){let d=E.getSafeProp(o,"getHeaders");Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv||E.isReactNative(o)?a.setContentType(void 0):E.isFunction(d)&&Ds(a,d.call(o),r("formDataHeaderPolicy"))}if(Ie.hasStandardBrowserEnv&&(E.isFunction(n)&&(n=n(t)),n===!0||n==null&&UR(t.url))){let f=i&&s&&FR.read(s);f&&a.set(i,f)}return t}var Ou=$j;var Pj=typeof XMLHttpRequest<"u",VR=Pj&&function(e){return new Promise(function(r,o){let n=Ou(e),i=n.data,s=Ve.from(n.headers).normalize(),{responseType:a,onUploadProgress:c,onDownloadProgress:l}=n,u,p,d,f,g,v;function y(){f&&f(),g&&g(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(w){if(!m)return;if(m.status===0&&(yo(Os(n.url))||yo(Ie.origin))!=="file"&&!(m.responseURL&&m.responseURL.startsWith("file:"))){o(new D("Request aborted",D.ECONNABORTED,e,m)),y(),m=null;return}try{w?v&&v(w):g&&g()}catch(T){setTimeout(()=>{throw T})}if(!m)return;let z=Ve.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:z,config:e,request:m};Qt(function(j){r(j),y()},function(j){o(j),y()},x),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(b)},m.onabort=function(){m&&(o(new D("Request aborted",D.ECONNABORTED,e,m)),y(),m=null)},m.onerror=function(z){let S=z&&z.message?z.message:"Network Error",x=new D(S,D.ERR_NETWORK,e,m);x.event=z||null,o(x),y(),m=null},m.ontimeout=function(){let z=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",S=n.transitional||Lr;n.timeoutErrorMessage&&(z=n.timeoutErrorMessage),o(new D(z,S.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,m)),y(),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&E.forEach(gn(s),function(z,S){m.setRequestHeader(S,z)}),E.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),a&&a!=="json"&&(m.responseType=n.responseType),l&&([d,g,v]=fr(l,!0),m.addEventListener("progress",d)),c&&m.upload&&([p,f]=fr(c),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(u=w=>{m&&(o(!w||w.type?new It(null,e,m):w),m.abort(),y(),m=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));let _=yo(n.url);if(_&&!Ie.protocols.includes(_)){o(new D("Unsupported protocol "+_+":",D.ERR_BAD_REQUEST,e)),y();return}m.send(i||null)})};var Oj=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,o=!1,n=function(c){if(!o){o=!0,s();let l=c instanceof Error?c:this.reason;r.abort(l instanceof D?l:new It(l instanceof Error?l.message:l))}},i=t&&setTimeout(()=>{i=null,n(new D(`timeout of ${t}ms exceeded`,D.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(n):c.removeEventListener("abort",n)}),e=null)};e.forEach(c=>{if(!o){if(c.aborted){n.call(c);return}c.addEventListener("abort",n,{once:!0})}});let{signal:a}=r;return a.unsubscribe=()=>E.asap(s),a},HR=Oj;var kj=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let o=0,n;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Cj=async function*(e,t){for await(let r of Aj(e))yield*kj(r,t)},Aj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},fh=(e,t,r,o)=>{let n=Cj(e,t),i=0,s,a=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{let{done:l,value:u}=await n.next();if(l){a(),c.close();return}let p=u.byteLength;if(r){let d=i+=p;r(d)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),n.return()}},{highWaterMark:2})};var ZR=64*1024,Ij={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ku}=E,jj=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),JR=e=>{if(!E.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},KR=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nj=e=>{let t=e.indexOf("://"),r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},qj=e=>{let t=E.global!==void 0&&E.global!==null?E.global:globalThis,{ReadableStream:r,TextEncoder:o}=t;e=E.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:n,Request:i,Response:s}=e,a=n?ku(n):typeof fetch=="function",c=ku(i),l=ku(s);if(!a)return!1;let u=a&&ku(r),p=a&&(typeof o=="function"?(m=>b=>m.encode(b))(new o):async m=>new Uint8Array(await new i(m).arrayBuffer())),d=c&&u&&KR(()=>{let m=!1,b=new i(Ie.origin,{body:new r,method:"POST",get duplex(){return m=!0,"half"}}),_=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),m&&!_}),f=l&&u&&KR(()=>E.isReadableStream(new s("").body)),g={stream:f&&(m=>m.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!g[m]&&(g[m]=(b,_)=>{let w=b&&b[m];if(w)return w.call(b);throw new D(`Response type '${m}' is not supported`,D.ERR_NOT_SUPPORT,_)})});let v=async m=>{if(m==null)return 0;if(E.isBlob(m))return m.size;if(E.isSpecCompliantForm(m))return(await new i(Ie.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(E.isArrayBufferView(m)||E.isArrayBuffer(m))return m.byteLength;if(E.isURLSearchParams(m)&&(m=m+""),E.isString(m))return(await p(m)).byteLength},y=async(m,b)=>{let _=E.toFiniteNumber(m.getContentLength());return _??v(b)};return async m=>{let{url:b,method:_,data:w,signal:z,cancelToken:S,timeout:x,onDownloadProgress:T,onUploadProgress:j,responseType:V,headers:C,withCredentials:B="same-origin",fetchOptions:Y,maxContentLength:G,maxBodyLength:he,maxRedirects:je}=Ou(m),Ce=E.isNumber(G)&&G>-1,Me=E.isNumber(he)&&he>-1,we=K=>E.hasOwnProp(m,K)?m[K]:void 0,k=n||fetch;V=V?(V+"").toLowerCase():"text";let I=HR([z,S&&S.toAbortSignal()],x),U=null,R=I&&I.unsubscribe&&(()=>{I.unsubscribe()}),O,N=null,W=()=>new D("Request body larger than maxBodyLength limit",D.ERR_BAD_REQUEST,m,U);try{let K,le=we("auth");if(le){let ne=E.getSafeProp(le,"username")||"",ze=E.getSafeProp(le,"password")||"";K={username:ne,password:ze}}if(Nj(b)){let ne=new URL(b,Ie.origin);if(!K&&(ne.username||ne.password)){let ze=JR(ne.username),Q=JR(ne.password);K={username:ze,password:Q}}(ne.username||ne.password)&&(ne.username="",ne.password="",b=ne.href)}if(K&&(C.delete("authorization"),C.set("Authorization","Basic "+btoa(jj((K.username||"")+":"+(K.password||""))))),Ce&&typeof b=="string"&&b.startsWith("data:")&&ch(b)>G)throw new D("maxContentLength size of "+G+" exceeded",D.ERR_BAD_RESPONSE,m,U);if(Me&&_!=="get"&&_!=="head"){let ne=await v(w);if(typeof ne=="number"&&isFinite(ne)&&(O=ne,ne>he))throw W()}let ue=Me&&(E.isReadableStream(w)||E.isStream(w)),$e=(ne,ze,Q)=>fh(ne,ZR,X=>{if(Me&&X>he)throw N=W();ze&&ze(X)},Q);if(d&&_!=="get"&&_!=="head"&&(j||ue)){if(O=O??await y(C,w),O!==0||ue){let ne=new i(b,{method:"POST",body:w,duplex:"half"}),ze;if(E.isFormData(w)&&(ze=ne.headers.get("content-type"))&&C.setContentType(ze),ne.body){let[Q,X]=j&&$n(O,fr(Pn(j)))||[];w=$e(ne.body,Q,X)}}}else if(ue&&!c&&u&&_!=="get"&&_!=="head")w=$e(w);else if(ue&&c&&!d&&_!=="get"&&_!=="head")throw new D("Stream request bodies are not supported by the current fetch implementation",D.ERR_NOT_SUPPORT,m,U);E.isString(B)||(B=B?"include":"omit");let Qe=c&&"credentials"in i.prototype;if(E.isFormData(w)){let ne=C.getContentType();ne&&/^multipart\/form-data/i.test(ne)&&!/boundary=/i.test(ne)&&C.delete("content-type")}C.set("User-Agent","axios/"+mr,!1);let $=Y==null?Y:Object.assign(Object.create(null),Y);$&&(delete $.body,delete $.headers,delete $.method,delete $.signal,delete $.duplex,delete $.credentials);let A=Object.assign(Object.create(null),$,{signal:I,method:_.toUpperCase(),headers:gn(C.normalize()),body:w,duplex:"half",credentials:Qe?B:void 0});c&&(E.forEach(Ij,(ne,ze)=>{A[ze]===void 0&&(A[ze]=ne)}),A.signal===void 0&&(A.signal=null),A.body===void 0&&(A.body=null)),je===0&&(A.redirect="manual",$&&($.redirect="manual")),U=c&&new i(b,A);let F=await(c?k(U,$):k(b,A)),se=Ve.from(F.headers);if(Ce){let ne=E.toFiniteNumber(se.getContentLength());if(ne!=null&&ne>G)throw new D("maxContentLength size of "+G+" exceeded",D.ERR_BAD_RESPONSE,m,U)}let ae=f&&(V==="stream"||V==="response");if(f&&F.body&&(T||Ce||ae&&R)){let ne={};["status","statusText","headers"].forEach(ye=>{ne[ye]=F[ye]});let ze=E.toFiniteNumber(se.getContentLength()),[Q,X]=T&&$n(ze,fr(Pn(T),!0))||[],ge=0,Ne=ye=>{if(Ce&&(ge=ye,ge>G))throw new D("maxContentLength size of "+G+" exceeded",D.ERR_BAD_RESPONSE,m,U);Q&&Q(ye)};F=new s(fh(F.body,ZR,Ne,()=>{X&&X(),R&&R()}),ne)}V=V||"text";let de=await g[E.findKey(g,V)||"text"](F,m);if(Ce&&!f&&!ae){let ne;if(de!=null&&(typeof de.byteLength=="number"?ne=de.byteLength:typeof de.size=="number"?ne=de.size:typeof de=="string"&&(ne=typeof o=="function"?new o().encode(de).byteLength:de.length)),typeof ne=="number"&&ne>G)throw new D("maxContentLength size of "+G+" exceeded",D.ERR_BAD_RESPONSE,m,U)}return!ae&&R&&R(),await new Promise((ne,ze)=>{Qt(ne,ze,{data:de,headers:Ve.from(F.headers),status:F.status,statusText:F.statusText,config:m,request:U})})}catch(K){if(R&&R(),I&&I.aborted&&I.reason instanceof D){let le=I.reason;throw le.config=m,U&&(le.request=U),K!==le&&Object.defineProperty(le,"cause",{__proto__:null,value:K,writable:!0,enumerable:!1,configurable:!0}),le}if(N)throw U&&!N.request&&(N.request=U),N;if(K instanceof D)throw U&&!K.request&&(K.request=U),K;if(K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)){let le=new D("Network Error",D.ERR_NETWORK,m,U,K&&K.response);throw Object.defineProperty(le,"cause",{__proto__:null,value:K.cause||K,writable:!0,enumerable:!1,configurable:!0}),le}throw D.from(K,K&&K.code,m,U,K&&K.response)}}},Mj=new Map,hh=e=>{let t=e&&e.env||{},{fetch:r,Request:o,Response:n}=t,i=[o,n,r],s=i.length,a=s,c,l,u=Mj;for(;a--;)c=i[a],l=u.get(c),l===void 0&&u.set(c,l=a?new Map:qj(t)),u=l;return l},h3=hh();var gh={http:DR,xhr:VR,fetch:{get:hh}};E.forEach(gh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var GR=e=>`- ${e}`,Dj=e=>E.isFunction(e)||e===null||e===!1;function Uj(e,t){e=E.isArray(e)?e:[e];let{length:r}=e,o,n,i={};for(let s=0;s<r;s++){o=e[s];let a;if(n=o,!Dj(o)&&(n=gh[(a=String(o)).toLowerCase()],n===void 0))throw new D(`Unknown adapter '${a}'`);if(n&&(E.isFunction(n)||(n=n.get(t))))break;i[a||"#"+s]=n}if(!n){let s=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),a=r?s.length>1?`since :
|
|
91
|
+
`+s.map(GR).join(`
|
|
92
|
+
`):" "+GR(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+a,D.ERR_NOT_SUPPORT)}return n}var Cu={getAdapter:Uj,adapters:gh};function vh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new It(null,e)}function Fs(e){let t=E.toSafeFlatObject(e);return vh(t),t.headers=Ve.from(E.getSafeProp(t,"headers")),t.data=$s.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Cu.getAdapter(t.adapter||wn.adapter,t)(t).then(function(n){vh(t),t.response=n;try{n.data=$s.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=Ve.from(n.headers),n},function(n){if(!Ps(n)&&(vh(t),n&&n.response)){t.response=n.response;try{n.response.data=$s.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=Ve.from(n.response.headers)}return Promise.reject(n)})}var Au={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Au[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var WR={};Au.transitional=function(t,r,o){function n(i,s){return"[Axios v"+mr+"] Transitional option '"+i+"'"+s+(o?". "+o:"")}return(i,s,a)=>{if(t===!1)throw new D(n(s," has been removed"+(r?" in "+r:"")),D.ERR_DEPRECATED);return r&&!WR[s]&&(WR[s]=!0,console.warn(n(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};Au.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function Fj(e,t,r){if(typeof e!="object"||e===null)throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),n=o.length;for(;n-- >0;){let i=o[n],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){let a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new D("option "+i+" must be "+c,D.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new D("Unknown option "+i,D.ERR_BAD_OPTION)}}var Bs={assertOptions:Fj,validators:Au};var yt=Bs.validators,On=class{constructor(t){this.defaults=t||{},this.interceptors={request:new yf,response:new yf}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error)try{let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;let i=n.stack,s="";if(typeof i=="string"){let a=i.indexOf(`
|
|
93
|
+
`);s=a===-1?"":i.slice(a+1)}if(!o.stack)o.stack=s;else if(s){let a=s.indexOf(`
|
|
94
|
+
`),c=a===-1?-1:s.indexOf(`
|
|
95
|
+
`,a+1),l=c===-1?"":s.slice(c+1);String(o.stack).endsWith(l)||(o.stack+=`
|
|
96
|
+
`+s)}}catch{}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Gt(this.defaults,r);let{transitional:o,paramsSerializer:n,headers:i}=r;o!==void 0&&Bs.assertOptions(o,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean),legacyInterceptorReqResOrdering:yt.transitional(yt.boolean),advertiseZstdAcceptEncoding:yt.transitional(yt.boolean),validateStatusUndefinedResolves:yt.transitional(yt.boolean)},!1),n!=null&&(E.isFunction(n)?r.paramsSerializer={serialize:n}:Bs.assertOptions(n,{encode:yt.function,serialize:yt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Bs.assertOptions(r,{baseUrl:yt.spelling("baseURL"),withXsrfToken:yt.spelling("withXSRFToken")},!0),r.method=(E.getSafeProp(r,"method")||E.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=i&&E.merge(i.common,i[r.method]);i&&E.forEach(xu.concat("common"),g=>{delete i[g]}),r.headers=Ve.concat(s,i);let a=[],c=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(r)===!1)return;c=c&&v.synchronous;let y=r.transitional||Lr;y&&y.legacyInterceptorReqResOrdering?a.unshift(v.fulfilled,v.rejected):a.push(v.fulfilled,v.rejected)});let l=[];this.interceptors.response.forEach(function(v){l.push(v.fulfilled,v.rejected)});let u,p=0,d;if(!c){let g=[Fs.bind(this),void 0];for(g.unshift(...a),g.push(...l),d=g.length,u=Promise.resolve(r);p<d;)u=u.then(g[p++],g[p++]);return u}d=a.length;let f=r;for(;p<d;){let g=a[p++],v=a[p++];try{f=g?g(f):f}catch(y){if(!v){u=Promise.reject(y);break}try{let m=v.call(this,y);E.isThenable(m)&&(u=Promise.resolve(m).then(()=>Fs.call(this,f)))}catch(m){u=Promise.reject(m)}break}}if(!u)try{u=Fs.call(this,f)}catch(g){u=Promise.reject(g)}for(p=0,d=l.length;p<d;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=Gt(this.defaults,t);let r=mo(t.baseURL,t.url,t.allowAbsoluteUrls,t);return po(r,t.params,t.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(t){On.prototype[t]=function(r,o){return this.request(Gt(o||{},{method:t,url:r,data:o&&E.hasOwnProp(o,"data")?o.data:void 0}))}});E.forEach(["post","put","patch","query"],function(t){function r(o){return function(i,s,a){return this.request(Gt(a||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}On.prototype[t]=r(),t!=="query"&&(On.prototype[t+"Form"]=r(!0))});var Vs=On;var yh=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let o=this;this.promise.then(n=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](n);o._listeners=null}),this.promise.then=n=>{let i,s=new Promise(a=>{o.subscribe(a),i=a}).then(n);return s.cancel=function(){o.unsubscribe(i)},s},t(function(i,s,a){o.reason||(o.reason=new It(i,s,a),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}},YR=yh;function bh(e){return function(r){return e.apply(null,r)}}function _h(e){return E.isObject(e)&&e.isAxiosError===!0}var Iu={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Iu).forEach(([e,t])=>{Iu[t]===void 0&&(Iu[t]=e)});var XR=Iu;function QR(e){let t=new Vs(e),r=hs(Vs.prototype.request,t);return E.extend(r,Vs.prototype,t,{allOwnKeys:!0}),E.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return QR(Gt(e,n))},r}var ot=QR(wn);ot.Axios=Vs;ot.CanceledError=It;ot.CancelToken=YR;ot.isCancel=Ps;ot.VERSION=mr;ot.toFormData=Mr;ot.AxiosError=D;ot.Cancel=ot.CanceledError;ot.all=function(t){return Promise.all(t)};ot.spread=bh;ot.isAxiosError=_h;ot.mergeConfig=Gt;ot.AxiosHeaders=Ve;ot.formToJSON=e=>Su(E.isHTMLForm(e)?new FormData(e):e);ot.getAdapter=Cu.getAdapter;ot.HttpStatusCode=XR;ot.default=ot;var ju=ot;var{Axios:fB,AxiosError:hB,CanceledError:gB,isCancel:ez,CancelToken:vB,VERSION:yB,all:bB,Cancel:_B,isAxiosError:Sh,spread:SB,toFormData:xB,AxiosHeaders:wB,HttpStatusCode:RB,formToJSON:zB,getAdapter:EB,mergeConfig:TB,create:$B}=ju;var er=class extends Error{};var kn=class extends er{constructor(t){super(`\u51ED\u8BC1\u6570\u636E\u4E0D\u5B8C\u6574\uFF0C\u7F3A\u5C11\u5B57\u6BB5\uFF1A${t}`)}};var Cn=class extends er{constructor(r){let o=["ECONNABORTED","ETIMEDOUT","ERR_NETWORK"],n=r.code&&o.includes(r.code)?"\u65E0\u6CD5\u8FDE\u63A5\u81F3 ERP \u670D\u52A1\u5668\uFF0C\u5EFA\u8BAE\u68C0\u67E5\u7F51\u7EDC":"ERP \u670D\u52A1\u5668\u8BF7\u6C42\u51FA\u9519\uFF0C\u5EFA\u8BAE\u7A0D\u540E\u91CD\u8BD5";super(n);this.error=r}error};function xh(e){return typeof e=="object"&&e!==null}var An=class extends er{constructor(r){let o=xh(r.data)?`ERP \u8FD4\u56DE\u4E1A\u52A1\u9519\u8BEF\u4FE1\u606F\uFF1A${r.data.msg}`:"\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5";super(o);this.response=r}response};var Hs=class extends er{constructor(r){super("\u767B\u5F55\u72B6\u6001\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55");this.error=r}error};function tz(e){e.interceptors.request.use(t=>{let r=process.env.TOKEN;return r&&t.withAuthorization!==!1&&t.headers.setAuthorization(`Bearer ${r}`),t})}function rz(e,t){e.interceptors.request.use(void 0,r=>{throw Sh(r)?new Cn(r):r}),e.interceptors.response.use(void 0,r=>{throw!Sh(r)||ez(r)?r:r.response?new An(r.response):new Cn(r)})}function oz(e,t){e.interceptors.response.use(r=>{let o=r.data;if(t.validator.isValidJsonData(o)){if(!t.validator.isValidCode(o.code))throw t.validator.isSessionExpired(o)?new Hs(r):new An(r);r.config.unwrapResponse!==!1&&(r.data=o.data)}return r})}function nz(){return{validator:Bj()}}function Bj(){return{isSessionExpired:o=>o.code==="A0230",isValidCode:o=>o==="00000",isValidJsonData:o=>o===null||typeof o!="object"?!1:Reflect.has(o,"code")&&Reflect.has(o,"msg")}}function Vj(e){let t=ju.create({baseURL:process.env.SERVER_URL,headers:{"Content-Type":"application/json"},timeout:1e4});return tz(t),oz(t,e),rz(t,e),t}var wh=Vj(nz());function Rh(){let e=new AbortController,{signal:t}=e;return{abort:()=>e.abort(),signal:t}}function iz(e,t){return(r,o)=>{let{abort:n,signal:i}=Rh(),c=e(wh,r??{},{...t,...o,signal:i}).then(({data:l})=>l);return{abort:n,result:c,signal:i}}}function sz(e,t){return r=>{let{abort:o,signal:n}=Rh(),s=e(wh,{...t,...r,signal:n}).then(({data:a})=>a);return{abort:o,result:s,signal:n}}}var Hj=sz((e,t)=>e.get("/api/Next/getPublicKey",t)),Zj=iz(async(e,t,r)=>{let{RSA_PUBLICKEY:o}=await Hj({withAuthorization:!1}).result,n=`-----BEGIN PUBLIC KEY-----
|
|
97
|
+
${o}
|
|
98
|
+
-----END PUBLIC KEY-----`,i=new IS;i.setPublicKey(n);let s=new FormData;return s.set("username",t.username),s.set("password",i.encrypt(t.password)),s.set("isMobile","false"),s.set("rememberMe","false"),e.post("/apiLogin",s,{...r,withAuthorization:!1})}),az={login:Zj};async function cz(){let e=process.env.USERNAME,t=process.env.PASSWORD;if(Ql(e))throw new kn("\u7528\u6237\u540D(USERNAME)");if(Ql(t))throw new kn("\u5BC6\u7801(PASSWORD)");let o=(await az.login({password:t,username:e}).result)?.token;if(!o)throw new Error("ERP \u767B\u5F55\u672A\u8FD4\u56DE\u6709\u6548 token\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");return process.env.TOKEN=o,o}function lz(e){e.registerTool("test",{description:"\u9A8C\u8BC1 ERP \u8FDE\u63A5\u548C\u767B\u5F55\u72B6\u6001",inputSchema:P({username:h()})},async({username:t})=>(await cz(),{content:[{text:`\u7528\u6237 ${t} \u672A\u767B\u5F55`,type:"text"}]}))}async function Jj(){let e=new Xl({name:"GeXin ERP",version:"1.0.0"});lz(e);let t=new fS;await e.connect(t)}Jj();
|
|
99
|
+
/*! Bundled license information:
|
|
100
|
+
|
|
101
|
+
mime-db/index.js:
|
|
102
|
+
(*!
|
|
103
|
+
* mime-db
|
|
104
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
105
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
106
|
+
* MIT Licensed
|
|
107
|
+
*)
|
|
108
|
+
|
|
109
|
+
mime-types/index.js:
|
|
110
|
+
(*!
|
|
111
|
+
* mime-types
|
|
112
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
113
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
114
|
+
* MIT Licensed
|
|
115
|
+
*)
|
|
116
|
+
|
|
117
|
+
@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs:
|
|
118
|
+
(*!
|
|
119
|
+
* content-type
|
|
120
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
121
|
+
* MIT Licensed
|
|
122
|
+
*)
|
|
123
|
+
|
|
124
|
+
jsencrypt/lib/lib/jsrsasign/asn1-1.0.js:
|
|
125
|
+
(**
|
|
126
|
+
* @fileOverview
|
|
127
|
+
* @name asn1-1.0.js
|
|
128
|
+
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
129
|
+
* @version asn1 1.0.13 (2017-Jun-02)
|
|
130
|
+
* @since jsrsasign 2.1
|
|
131
|
+
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
132
|
+
*)
|
|
133
|
+
*/
|